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
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String url ="/"; response.setContentType("text/html"); String action = request.getParameter("action"); PrintWriter out = response.getWriter(); HttpSession session = request.getSession(); System.out.print(action); try{ if(action == null) { User UserObj = (User)session.getAttribute("theUser"); if(UserObj != null) { out.print("object is not null"); url = "/userhome.jsp?user=theUser"; out.print("url is" + url); } else { out.print("object is null"); url = "/index.jsp"; } } else if (action.equalsIgnoreCase("add")) { Appointment appt = new Appointment(); System.out.print("Action is" + action); User UserObj_add = (User)session.getAttribute("theUser"); appt.setUsername(UserObj_add.getName()); String username = UserObj_add.getName(); System.out.println(username); String email = UserObj_add.getEmail(); appt.setEmail(email); System.out.println(email); if(UserObj_add != null) { // count=count+1; System.out.print("object not null"); String pname = request.getParameter("patient_name"); String purpose = request.getParameter("purpose"); int age = Integer.parseInt(request.getParameter("age")); String doctor = request.getParameter("doctor"); DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm"); String date=request.getParameter("date_time"); Date aptdate = (Date)formatter.parse(date); //String code = request.getParameter("studyCode"); String status = request.getParameter("status"); appt.setPatientName(pname); appt.setPurpose(purpose); appt.setAppointDate(aptdate); appt.setAge(age); appt.setStatus(status); appt.setDoctor(doctor); System.out.print("After creating object"); // System.out.print(study.getStudyName() + study.getStudyCode()+ study.getQuestion() + study.getRequestedParticipants() + study.getDescription() +study.getStatus()); obj.addAppointment(appt); appt.setEmail(email); List<Appointment> newAppointments = obj.getAppointmentsFor(email); UserDB.updateUserAppointments(UserObj_add); System.out.println("hi"); // newStudies.add(study); System.out.println(appt.getStatus()); System.out.println("Hi"); request.setAttribute("newAppointment", newAppointments); System.out.println(newAppointments); url = "/userhome.jsp?user=theUser"; } else { System.out.println("object is null"); url = ("/login.jsp"); } } else if(action.equalsIgnoreCase("view")) { User UserObj = (User)session.getAttribute("theUser"); if(UserObj != null) { String email = UserObj.getEmail(); List<Appointment> newAppointments = obj.getAppointmentsFor(email); UserDB.updateUserAppointments(UserObj); request.setAttribute("newAppointment", newAppointments); System.out.println(newAppointments); url = "/view_appoint.jsp?user=theUser"; // out.print("object is not null"); // url = "/userhome.jsp?user=theUser"; // out.print("url is" + url); } else { out.print("object is null"); url = "/index.jsp"; } } else if (action.equalsIgnoreCase("approve")) { out.print("Action is" + action); User UserObj_stop = (User)session.getAttribute("theAdmin"); String email = UserObj_stop.getEmail(); if(UserObj_stop!= null) { String code = request.getParameter("appointmentCode"); out.print("Code in approve is " + code); Appointment a = obj.getAppointment(code); obj.updateAppointmentStatus(a,"Approved"); List<Appointment> adminAppointments= obj.getAppointmentsForStatus("Pending"); System.out.println("inside studies in my admin studies"+adminAppointments.size()); request.setAttribute("newAppointment", adminAppointments); //Code to send email String resultMessage = ""; String hostname="smtp.gmail.com"; String port="587"; String usrname=email; String password="gingerovitis"; String recipient=a.getUsername(); String subject="Appointment Confirmation"; String content="Hi "+a.getPatientName()+",\n"+"Your appointment has been confirmed with "+a.getDoctor()+" on "+a.getAppointDate()+"."+"\n\nThanks,\nAdmin"; try { EmailUtility.sendEmail(hostname,port , usrname,password, recipient,subject,content); resultMessage = "The e-mail was sent successfully"; } catch (Exception ex) { ex.printStackTrace(); resultMessage = "There were an error: " + ex.getMessage(); } finally { request.setAttribute("Message", resultMessage); //getServletContext().getRequestDispatcher("/Result.jsp").forward( // request, response); url = ("/review_appoint.jsp?user=theAdmin"); } //url = ("/review_appoint.jsp?user=theAdmin"); } else { url = ("/login.jsp"); } } else if (action.equalsIgnoreCase("decline")) { out.print("Action is" + action); User UserObj_stop = (User)session.getAttribute("theAdmin"); String email = UserObj_stop.getEmail(); if(UserObj_stop!= null) { String code = request.getParameter("appointmentCode"); out.print("Code in approve is " + code); Appointment a = obj.getAppointment(code); obj.updateAppointmentStatus(a,"Decline"); List<Appointment> adminAppointments= obj.getAppointmentsForStatus("Pending"); System.out.println("inside studies in my admin studies"+adminAppointments.size()); request.setAttribute("newAppointment", adminAppointments); //Code to send email String resultMessage = ""; String hostname="smtp.gmail.com"; String port="587"; String usrname=email; String password="gingerovitis"; String recipient=a.getUsername(); String subject="Appointment Declined"; String content="Hi "+a.getPatientName()+",\n"+"Your appointment has been declined"+"\n\nRegards,\nAdmin"; try { EmailUtility.sendEmail(hostname,port , usrname,password, recipient,subject,content); resultMessage = "The e-mail was sent successfully"; } catch (Exception ex) { ex.printStackTrace(); resultMessage = "There were an error: " + ex.getMessage(); } finally { request.setAttribute("Message", resultMessage); //getServletContext().getRequestDispatcher("/Result.jsp").forward( // request, response); url = ("/review_appoint.jsp?user=theAdmin"); } // url = ("/review_appoint.jsp?user=theAdmin"); } else { url = ("/login.jsp"); } } else if (action.equalsIgnoreCase("adminAppointments")){ if(session.getAttribute("theAdmin") != null){ List<Appointment> adminAppointments= obj.getAppointmentsForStatus("Pending"); System.out.println("inside studies in my admin studies"+adminAppointments.size()); request.setAttribute("newAppointment", adminAppointments); url = ("/review_appoint.jsp?user=theAdmin"); } } getServletContext().getRequestDispatcher(url).forward(request, response); }catch(Exception e){ System.out.println(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public String post();", "@Override\n\tpublic void doPost(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\n\t}", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }", "protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n }", "public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException {\n\n\t}", "public void postData() {\n\n\t}", "@Override\n public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {\n logger.warn(\"doPost Called\");\n handle(req, res);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\t\r\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}", "@Override\n\tprotected void handlePostBody(HashMap<String, HashMap<String, String>> params, DataFormat format) throws Exception {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\n\n\tpublic void handlePOST(CoapExchange exchange) {\n\t\tFIleStream read = new FIleStream();\n\t\tread.tempWrite(Temp_Path, exchange.getRequestText());\n\t\texchange.respond(ResponseCode.CREATED, \"POST successfully!\");\n\t\t_Logger.info(\"Receive post request:\" + exchange.getRequestText());\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.getWriter().println(\"go to post method in manager\");\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public abstract boolean handlePost(FORM form, BindException errors) throws Exception;", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doPost(req, resp);\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\n\t\t\t\n\t\t \n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "public void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n }", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\n\t}", "public void doPost(HttpServletRequest request ,HttpServletResponse response){\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieHead);\n\n\n\t\ttry {\n\t\t\tSystem.out.println(\"��������====\");\n\t\t\tint status = client.executeMethod(post);\n\t\t\tSystem.out.println(status);\n\t\t} catch (HttpException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n//\t\ttaskCount++;\n//\t\tcountDown--;\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"POST log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) {\r\n\t try {\r\n\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t } catch (IOException ex) {\r\n\t }\r\n\t logError( req, resp, new Exception(\"Unrecognized POST\"), \"\" );\r\n\t sendError(resp, \"Unrecognized POST\");\r\n\t} else\r\n\t if (\"post-request\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onMEVPostsRequest( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"MEV POST error\" );\r\n\t\t sendError( resp, \"MEV POST error: \" + e.toString() );\r\n\t\t}\r\n\t } else if (\"post-response\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onPVMPostsResponse( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"PVM POST error\" );\r\n\t\t sendError( resp, \"PVM POST error: \" + e.toString() );\r\n\t\t}\r\n\t }\r\n }", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest req, HttpServletResponse resp, Object handler, ModelAndView m)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "@Override\n public final void doPost() {\n try {\n checkPermissions(getRequest());\n final IItem jSonStreamAsItem = getJSonStreamAsItem();\n final IItem outputItem = api.runAdd(jSonStreamAsItem);\n\n output(JSonItemWriter.itemToJSON(outputItem));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }", "@Override\n\tvoid post() {\n\t\t\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tSystem.out.println(\"=========interCpetor Post=========\");\r\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString method = request.getParameter(\"method\");\n\t\tswitch(method){\n\t\tcase \"Crawl\":\n\t\t\tcrawl(request, response);\n\t\t\tbreak;\n\t\tcase \"Extract\":\n\t\t\textract(request, response);\n\t\t\tbreak;\n\t\tcase \"JDBC\":\n\t\t\tjdbc(request, response);\n\t\t\tbreak;\n\t\tcase \"Indexer\":\n\t\t\tindexer(request, response);\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }", "protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response)\r\n\t/* 43: */throws ServletException, IOException\r\n\t/* 44: */{\r\n\t\t/* 45:48 */doGet(request, response);\r\n\t\t/* 46: */}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tprocess(req,resp);\r\n\t}", "public void handlePost(SessionSrvc session, IObjectContext context)\n throws Exception\n {\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tdoGet(request, response);\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\n protected void doPost\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (JSONException ex) {\r\n Logger.getLogger(PDCBukUpload.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException,\r\n IOException {\r\n processRequest(request,\r\n response);\r\n\r\n }", "@Override\r\n\tpublic void doPost(CustomHttpRequest request, CustomHttpResponse response) throws Exception {\n\t\tdoGet(request, response);\r\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response,\n\t\t\tObject handler, ModelAndView modelAndView) throws Exception {\n\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoHandle(request, response);\n\t}", "private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n public void postHandle(HttpServletRequest request,\n HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (Exception ex) {\n Logger.getLogger(PedidoController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }" ]
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197", "0.6515622", "0.6513045", "0.6512626", "0.6492367", "0.64817846", "0.6477479", "0.64725804", "0.6472099", "0.6469389", "0.6456206", "0.6452577", "0.6452577", "0.6452577", "0.6450273", "0.6450273", "0.6438126", "0.6437522", "0.64339423", "0.64253825", "0.6422238", "0.6420897", "0.6420897", "0.6420897", "0.6407662", "0.64041835", "0.64041835", "0.639631", "0.6395677", "0.6354875", "0.63334197", "0.6324263", "0.62959254", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6280875", "0.6272104", "0.6272104", "0.62711537", "0.62616795", "0.62544584", "0.6251865", "0.62274224", "0.6214439", "0.62137586", "0.621211", "0.620854", "0.62023044", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61638993", "0.61603814", "0.6148914", "0.61465937", "0.61465937", "0.614548", "0.6141879", "0.6136717", "0.61313903", "0.61300284", "0.6124381", "0.6118381", "0.6118128", "0.61063534", "0.60992104", "0.6098801", "0.6096766" ]
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }", "@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }" ]
[ "0.87637174", "0.8732424", "0.8732424", "0.8732424", "0.8732424", "0.8732424", "0.8732424", "0.8732424", "0.8732424", "0.8732424", "0.8732424", "0.86993426", "0.86993426", "0.86993426", "0.86993426", "0.86993426", "0.86993426", "0.853123", "0.853123", "0.85280925", "0.85280925", "0.85280925", "0.85277", "0.85277", "0.85277", "0.85277", "0.85277", "0.85277", "0.8517062", "0.85123986", "0.8511423", "0.85103893", "0.8496402" ]
0.0
-1
alt shift abajo Method definitions
public void create(CategoriaDTO dto) throws SQLException{ getConnection(); CallableStatement callableStatement = null; try { callableStatement = (CallableStatement) connection.prepareCall(SQL_INSERT); callableStatement.setString(1, dto.getEntidad().getNombreCategoria()); callableStatement.setString(2, dto.getEntidad().getDescripcionCategoria()); callableStatement.executeUpdate(); // review } finally { if(callableStatement != null){ callableStatement.close(); } if(connection != null){ connection.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract boolean shift();", "public abstract void shift(int param);", "public void moveShiftLeft();", "public void moveShiftRight();", "public static void main(String[] args) {\n shift();\n\n }", "private void shift(int shift)\n\t{\n\t\tthis.shiftAmount = shift;\n\t}", "void addShift(Shift shiftToAdd);", "private static void testShift() {\n for (int a:new int[]{96754441, -206107026, 803362655, Integer.MIN_VALUE+1}) {\n System.out.println(\"<<\");\n for (int i=0;i<=32;i++) {\n System.out.println(intToBin(a<<i) + \" \" + (a<<i));\n }\n System.out.println();\n System.out.println(\">>\");\n for (int i=0;i<=32;i++) {\n System.out.println(intToBin(a>>i) + \" \" + (a>>i));\n }\n System.out.println();\n System.out.println(\">>>\");\n for (int i=0;i<=32;i++) {\n System.out.println(intToBin(a>>>i) + \" \" + (a>>>i));\n }\n System.out.println();\n }\n }", "void shift() {\n deleteStart += txnOps;\n deleteEnd += txnOps;\n updateStart += txnOps;\n updateEnd += txnOps;\n insertStart += txnOps;\n insertEnd += txnOps;\n }", "public final PythonParser.shift_expr_return shift_expr() throws RecognitionException {\n PythonParser.shift_expr_return retval = new PythonParser.shift_expr_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n List list_right=null;\n PythonParser.arith_expr_return left = null;\n\n PythonParser.shift_op_return shift_op202 = null;\n\n PythonParser.arith_expr_return right = null;\n right = null;\n RewriteRuleSubtreeStream stream_arith_expr=new RewriteRuleSubtreeStream(adaptor,\"rule arith_expr\");\n RewriteRuleSubtreeStream stream_shift_op=new RewriteRuleSubtreeStream(adaptor,\"rule shift_op\");\n\n List ops = new ArrayList();\n\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1188:5: (left= arith_expr ( ( shift_op right+= arith_expr )+ | -> $left) )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1188:7: left= arith_expr ( ( shift_op right+= arith_expr )+ | -> $left)\n {\n pushFollow(FOLLOW_arith_expr_in_shift_expr5124);\n left=arith_expr();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_arith_expr.add(left.getTree());\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1189:9: ( ( shift_op right+= arith_expr )+ | -> $left)\n int alt95=2;\n int LA95_0 = input.LA(1);\n\n if ( (LA95_0==RIGHTSHIFT||LA95_0==LEFTSHIFT) ) {\n alt95=1;\n }\n else if ( (LA95_0==EOF||LA95_0==NEWLINE||LA95_0==NAME||(LA95_0>=AND && LA95_0<=AS)||LA95_0==FOR||LA95_0==IF||(LA95_0>=IN && LA95_0<=IS)||(LA95_0>=NOT && LA95_0<=ORELSE)||(LA95_0>=RPAREN && LA95_0<=COMMA)||(LA95_0>=SEMI && LA95_0<=DOUBLESLASHEQUAL)||(LA95_0>=LESS && LA95_0<=AMPER)||LA95_0==RBRACK||(LA95_0>=RCURLY && LA95_0<=BACKQUOTE)) ) {\n alt95=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 95, 0, input);\n\n throw nvae;\n }\n switch (alt95) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1189:11: ( shift_op right+= arith_expr )+\n {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1189:11: ( shift_op right+= arith_expr )+\n int cnt94=0;\n loop94:\n do {\n int alt94=2;\n int LA94_0 = input.LA(1);\n\n if ( (LA94_0==RIGHTSHIFT||LA94_0==LEFTSHIFT) ) {\n alt94=1;\n }\n\n\n switch (alt94) {\n \tcase 1 :\n \t // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1189:13: shift_op right+= arith_expr\n \t {\n \t pushFollow(FOLLOW_shift_op_in_shift_expr5138);\n \t shift_op202=shift_op();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) stream_shift_op.add(shift_op202.getTree());\n \t pushFollow(FOLLOW_arith_expr_in_shift_expr5142);\n \t right=arith_expr();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) stream_arith_expr.add(right.getTree());\n \t if (list_right==null) list_right=new ArrayList();\n \t list_right.add(right.getTree());\n\n \t if ( state.backtracking==0 ) {\n\n \t ops.add((shift_op202!=null?shift_op202.op:null));\n \t \n \t }\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt94 >= 1 ) break loop94;\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n EarlyExitException eee =\n new EarlyExitException(94, input);\n throw eee;\n }\n cnt94++;\n } while (true);\n\n\n }\n break;\n case 2 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1195:8: \n {\n\n // AST REWRITE\n // elements: left\n // token labels: \n // rule labels: retval, left\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_left=new RewriteRuleSubtreeStream(adaptor,\"rule left\",left!=null?left.tree:null);\n\n root_0 = (PythonTree)adaptor.nil();\n // 1195:8: -> $left\n {\n adaptor.addChild(root_0, stream_left.nextTree());\n\n }\n\n retval.tree = root_0;}\n }\n break;\n\n }\n\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n if ( state.backtracking==0 ) {\n\n if (!ops.isEmpty()) {\n retval.tree = actions.makeBinOp((left!=null?((PythonTree)left.tree):null), ops, list_right);\n }\n\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }", "@Override\n\tpublic Procedure3<java.lang.Integer, UnsignedInt6Member, UnsignedInt6Member> bitShiftRight() {\n\t\treturn SHRZ;\n\t}", "private int addShift( int x ) { x += _nxx; int sz = H2O.CLOUD.size(); return x < sz ? x : x-sz; }", "static MoveStepType turnForLateralShift(final MoveStepType shift) {\n switch (shift) {\n case LATERAL_LEFT:\n return MoveStepType.TURN_LEFT;\n case LATERAL_RIGHT:\n return MoveStepType.TURN_RIGHT;\n case LATERAL_LEFT_BACKWARDS:\n return MoveStepType.TURN_LEFT;\n case LATERAL_RIGHT_BACKWARDS:\n return MoveStepType.TURN_RIGHT;\n default:\n return shift;\n }\n }", "@Override\n\tpublic void visit(BitwiseRightShift arg0) {\n\t\t\n\t}", "void shiftRight(int numberToShift);", "void shiftLeft(int numberToShift);", "public static void shift(){\n int[] x= {1, 5, 10, 7, -2};\n \n for (int i =0; i<x.length-1; i++){\n x[i]=x[i+1];\n }\n x[x.length-1]=0;\n for (int j=0; j<x.length; j++){\n System.out.println(x[j]);\n }\n\n\n\n }", "public Object visitShiftExpression(GNode n) {\n Object a, b, result;\n String op;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(2));\n op = n.getString(1);\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n if (op.equals(\"<<\")) {\n result = (Long) a << (Long) b;\n }\n else if (op.equals(\">>\")) {\n result = (Long) a >> (Long) b;\n }\n else {\n result = \"\";\n }\n }\n else {\n result = parens(a) + \" \" + op + \" \" + parens(b);\n }\n \n return result;\n }", "public static void main(String[] args) {\n\t\tint[] arr={1,0,2,0,0,-1};\r\n\t\tshift(arr);\r\n\t\tfor(int i=0;i<arr.length;i++)\r\n\t\tSystem.out.println(arr[i]);\r\n\t}", "@Override\n\tpublic void visit(BitwiseLeftShift arg0) {\n\t\t\n\t}", "public static BinaryExpression leftShift(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "public static void shift(StringBuilder s){\n\t\t\n\t\t\n\t\t\n\t}", "public void shiftIndexes(int shift, IndexPredicate predicate) {\n if (predicate == null) {\n index1 += shift;\n index2 += shift;\n } else {\n index1 += predicate.execute(index1) ? shift : 0;\n index2 += predicate.execute(index2) ? shift : 0;\n }\n }", "private static int xorShift(int r) {\n r ^= r << 1;\n r ^= r >>> 3;\n r ^= r << 10;\n return r;\n }", "public final PythonParser.shift_op_return shift_op() throws RecognitionException {\n PythonParser.shift_op_return retval = new PythonParser.shift_op_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token LEFTSHIFT203=null;\n Token RIGHTSHIFT204=null;\n\n PythonTree LEFTSHIFT203_tree=null;\n PythonTree RIGHTSHIFT204_tree=null;\n\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1201:5: ( LEFTSHIFT | RIGHTSHIFT )\n int alt96=2;\n int LA96_0 = input.LA(1);\n\n if ( (LA96_0==LEFTSHIFT) ) {\n alt96=1;\n }\n else if ( (LA96_0==RIGHTSHIFT) ) {\n alt96=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 96, 0, input);\n\n throw nvae;\n }\n switch (alt96) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1201:7: LEFTSHIFT\n {\n root_0 = (PythonTree)adaptor.nil();\n\n LEFTSHIFT203=(Token)match(input,LEFTSHIFT,FOLLOW_LEFTSHIFT_in_shift_op5226); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n LEFTSHIFT203_tree = (PythonTree)adaptor.create(LEFTSHIFT203);\n adaptor.addChild(root_0, LEFTSHIFT203_tree);\n }\n if ( state.backtracking==0 ) {\n retval.op = operatorType.LShift;\n }\n\n }\n break;\n case 2 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1203:7: RIGHTSHIFT\n {\n root_0 = (PythonTree)adaptor.nil();\n\n RIGHTSHIFT204=(Token)match(input,RIGHTSHIFT,FOLLOW_RIGHTSHIFT_in_shift_op5244); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n RIGHTSHIFT204_tree = (PythonTree)adaptor.create(RIGHTSHIFT204);\n adaptor.addChild(root_0, RIGHTSHIFT204_tree);\n }\n if ( state.backtracking==0 ) {\n retval.op = operatorType.RShift;\n }\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }", "public boolean isShift ()\n {\n return isShift;\n }", "public void handler() {\n int t, r;\n t = RM(ea);\n r = konami.cc & CC_C;\n r = (r | t << 1);\n CLR_NZVC();\n SET_FLAGS8(t, t, r);\n WM(ea, r);\n if (konamilog != null) {\n fprintf(konamilog, \"konami#%d rol_ix :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\\n\", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);\n }\n\n }", "public static BinaryExpression leftShift(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public static void shifter() {\n\t\t\n\t\tint preshift = 0xFF;\n\t\tint postshift = preshift >> 1;\n\t\t\n\t\tint[] nums = {preshift, postshift};\n\t\t\n\t\tfor (int i: nums) {\n\t\t\t\n\t\t\tSystem.out.println(\"Decimal Representation:\\t\\t\" + i);\n\t\t\tSystem.out.println(\"Hexadecimal Representation:\\t0x\" + Integer.toHexString(i).toUpperCase());\n\t\t\tSystem.out.println(\"Binary Representation:\\t\\t\" + Integer.toBinaryString(i) + \" (length: \" + Integer.toBinaryString(i).length() + \" bits, \" + Integer.toBinaryString(i).length() / 8 + \" bytes)\");\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t}\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n private void transformLateralShift() {\n if (steps.size() < 3) {\n return;\n }\n final int index = steps.size() - 3;\n final MoveStep step1 = getStep(index);\n final MoveStep step2 = getStep(index + 1);\n final MoveStep step3 = getStep(index + 2);\n\n if (step1.oppositeTurn(step3)\n && ((step2.getType() == MovePath.MoveStepType.BACKWARDS) || (step2.getType() == MovePath.MoveStepType.FORWARDS))) {\n final MoveStepType stepType = step1.getType();\n final MoveStepType direction = step2.getType();\n // remove all old steps\n steps.removeElementAt(index);\n steps.removeElementAt(index);\n steps.removeElementAt(index);\n // add new step\n final MoveStep shift = new MoveStep(this, lateralShiftForTurn(stepType, direction));\n addStep(shift);\n }\n }", "static void primitiveRightShift(int[] a, int len, int n) {\n int n2 = 32 - n;\n for (int i=len-1, c=a[i]; i > 0; i--) {\n int b = c;\n c = a[i-1];\n a[i] = (c << n2) | (b >>> n);\n }\n a[0] >>>= n;\n }", "private static int xorShift(int r) {\n r ^= (r << 13);\n r ^= (r >>> 17);\n return r ^ (r << 5);\n }", "void shiftAndAddToRight(BitField fieldToAddToTheRight);", "public void visit(ShiftExpression n) {\n n.f0.accept(this);\n n.f1.accept(this);\n }", "public static void doShift(ZombieTrapGame game, String shift){\r\n switch(shift){ \r\n case \"u\": game.shiftUp(); break; // case \"u\": \r\n case \"d\": game.shiftDown(); break; // case \"d\": \r\n case \"l\": game.shiftLeft(); break; // case \"l\": \r\n case \"r\": game.shiftRight(); break; // case \"r\": \r\n default: throw new RuntimeException(\"Something is terribly wrong.\");\r\n }\r\n }", "public boolean canShift() {\n\t\treturn marker < getRhs().length;\n\t}", "public int getShift() {\n\t\treturn shift;\n\t}", "private int[] copyDigitalShift (int[] S) {\n if (S == null) return null;\n int[] T = new int [S.length];\n for (int i = 0; i < S.length; ++i)\n T[i] = S[i];\n return T;\n }", "public final void rule__AstExpressionShift__OperatorAlternatives_1_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2912:1: ( ( '<<' ) | ( '>>' ) | ( '>>>' ) )\n int alt16=3;\n switch ( input.LA(1) ) {\n case 25:\n {\n alt16=1;\n }\n break;\n case 26:\n {\n alt16=2;\n }\n break;\n case 27:\n {\n alt16=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 16, 0, input);\n\n throw nvae;\n }\n\n switch (alt16) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2913:1: ( '<<' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2913:1: ( '<<' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2914:1: '<<'\n {\n before(grammarAccess.getAstExpressionShiftAccess().getOperatorLessThanSignLessThanSignKeyword_1_1_0_0()); \n match(input,25,FOLLOW_25_in_rule__AstExpressionShift__OperatorAlternatives_1_1_06290); \n after(grammarAccess.getAstExpressionShiftAccess().getOperatorLessThanSignLessThanSignKeyword_1_1_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2921:6: ( '>>' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2921:6: ( '>>' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2922:1: '>>'\n {\n before(grammarAccess.getAstExpressionShiftAccess().getOperatorGreaterThanSignGreaterThanSignKeyword_1_1_0_1()); \n match(input,26,FOLLOW_26_in_rule__AstExpressionShift__OperatorAlternatives_1_1_06310); \n after(grammarAccess.getAstExpressionShiftAccess().getOperatorGreaterThanSignGreaterThanSignKeyword_1_1_0_1()); \n\n }\n\n\n }\n break;\n case 3 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2929:6: ( '>>>' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2929:6: ( '>>>' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2930:1: '>>>'\n {\n before(grammarAccess.getAstExpressionShiftAccess().getOperatorGreaterThanSignGreaterThanSignGreaterThanSignKeyword_1_1_0_2()); \n match(input,27,FOLLOW_27_in_rule__AstExpressionShift__OperatorAlternatives_1_1_06330); \n after(grammarAccess.getAstExpressionShiftAccess().getOperatorGreaterThanSignGreaterThanSignGreaterThanSignKeyword_1_1_0_2()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public TribitByte shiftLeft(int shift){\n return shiftRight(-shift);\n }", "public void setShift(int x, int y){\n xShift = x;\n yShift = y;\n }", "void shiftR(int amount) {\n\t\tint newlength = data.length + amount;\n\t\tint newdata[] = Arrays.copyOf(data, newlength);\n\t\tfor(int i = newdata.length - 1;i >= amount;i--) {\n\t\t\tnewdata[i] = data[i - amount];\n\t\t}\n\t\tfor(int i = 0;i < amount;i++) {\n\t\t\tnewdata[i] = 0;\n\t\t\t\n\t\t}\n\t\tString str = \"\";\n\t\tfor(int i = 0 ;i < newlength;i++) {\n\t\t\tstr = str + newdata[i];\n\t\t}\n\t\tSystem.out.println(\"the result of shifting:\" + str);\n\t}", "private void _setUnshifted ()\r\n {\r\n m_bBase64mode = false;\r\n m_nBitsRead = 0;\r\n m_nTempChar = 0;\r\n }", "public void handler() {\n int t = B();\n int r = (konami.cc & CC_C) | t << 1;\n CLR_NZVC();\n SET_FLAGS8(t, t, r);\n B(r);\n if (konamilog != null) {\n fprintf(konamilog, \"konami#%d rolb :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\\n\", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);\n }\n }", "public final EObject ruleShiftExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject this_NumericalAddSubtractExpression_0 = null;\r\n\r\n Enumerator lv_operator_2_0 = null;\r\n\r\n EObject lv_rightOperand_3_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3000:28: ( (this_NumericalAddSubtractExpression_0= ruleNumericalAddSubtractExpression ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_rightOperand_3_0= ruleNumericalAddSubtractExpression ) ) )* ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3001:1: (this_NumericalAddSubtractExpression_0= ruleNumericalAddSubtractExpression ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_rightOperand_3_0= ruleNumericalAddSubtractExpression ) ) )* )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3001:1: (this_NumericalAddSubtractExpression_0= ruleNumericalAddSubtractExpression ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_rightOperand_3_0= ruleNumericalAddSubtractExpression ) ) )* )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3002:5: this_NumericalAddSubtractExpression_0= ruleNumericalAddSubtractExpression ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_rightOperand_3_0= ruleNumericalAddSubtractExpression ) ) )*\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getShiftExpressionAccess().getNumericalAddSubtractExpressionParserRuleCall_0()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleNumericalAddSubtractExpression_in_ruleShiftExpression6875);\r\n this_NumericalAddSubtractExpression_0=ruleNumericalAddSubtractExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_NumericalAddSubtractExpression_0; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3010:1: ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_rightOperand_3_0= ruleNumericalAddSubtractExpression ) ) )*\r\n loop48:\r\n do {\r\n int alt48=2;\r\n int LA48_0 = input.LA(1);\r\n\r\n if ( ((LA48_0>=70 && LA48_0<=71)) ) {\r\n alt48=1;\r\n }\r\n\r\n\r\n switch (alt48) {\r\n \tcase 1 :\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3010:2: () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_rightOperand_3_0= ruleNumericalAddSubtractExpression ) )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3010:2: ()\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3011:5: \r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t current = forceCreateModelElementAndSet(\r\n \t grammarAccess.getShiftExpressionAccess().getShiftExpressionLeftOperandAction_1_0(),\r\n \t current);\r\n \t \r\n \t }\r\n\r\n \t }\r\n\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3016:2: ( (lv_operator_2_0= ruleShiftOperator ) )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3017:1: (lv_operator_2_0= ruleShiftOperator )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3017:1: (lv_operator_2_0= ruleShiftOperator )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3018:3: lv_operator_2_0= ruleShiftOperator\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getShiftExpressionAccess().getOperatorShiftOperatorEnumRuleCall_1_1_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleShiftOperator_in_ruleShiftExpression6905);\r\n \t lv_operator_2_0=ruleShiftOperator();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getShiftExpressionRule());\r\n \t \t }\r\n \t \t\tset(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"operator\",\r\n \t \t\tlv_operator_2_0, \r\n \t \t\t\"ShiftOperator\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3034:2: ( (lv_rightOperand_3_0= ruleNumericalAddSubtractExpression ) )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3035:1: (lv_rightOperand_3_0= ruleNumericalAddSubtractExpression )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3035:1: (lv_rightOperand_3_0= ruleNumericalAddSubtractExpression )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3036:3: lv_rightOperand_3_0= ruleNumericalAddSubtractExpression\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getShiftExpressionAccess().getRightOperandNumericalAddSubtractExpressionParserRuleCall_1_2_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleNumericalAddSubtractExpression_in_ruleShiftExpression6926);\r\n \t lv_rightOperand_3_0=ruleNumericalAddSubtractExpression();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getShiftExpressionRule());\r\n \t \t }\r\n \t \t\tset(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"rightOperand\",\r\n \t \t\tlv_rightOperand_3_0, \r\n \t \t\t\"NumericalAddSubtractExpression\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop48;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public void shift(double shiftX, double shiftY, double shiftZ){\n pos[0] += shiftX;\n pos[1] += shiftY;\n pos[2] += shiftZ;\n }", "float getStepPhaseShiftIncrement();", "private static int getShiftForChannel(int channel) {\n return 24 - 8 * channel;\n }", "public void evenRowShift(int shift)\n{\n if(m != null && m.getOutputImageManager().getMosaic()!= null)\n {\n m.getOutputImageManager().setEvenRowShift((float)(shift*0.01f));\n m.getOutputImageManager().setToRerender();\n }\n}", "private static void shift(int oddShift, int evenShift) {\n oddCipher = new ArrayList<String>();\n evenCipher = new ArrayList<String>();\n for (int i = 0; i < letters.size(); i++) {\n String element;\n element = letters.get(i);\n oddCipher.add(element);\n evenCipher.add(element);\n }\n\n//\t\tShifts the letters for the oddCipher text\n String element = null;\n while (oddShift > 0) {\n element = oddCipher.remove(0);\n oddCipher.add(oddCipher.size(), element);\n oddShift--;\n }\n\n //\tShifts the letters for the evenCipher text\n while (evenShift > 0) {\n element = evenCipher.remove(0);\n evenCipher.add(evenCipher.size(), element);\n evenShift--;\n }\n }", "public arm a(int paramInt1, int paramInt2)\r\n/* 18: */ {\r\n/* 19:32 */ return this.b[(paramInt1 & 0xF | (paramInt2 & 0xF) << 4)];\r\n/* 20: */ }", "public void shiftLeft() {\n int currentPointer = this.registerPointer;\n\n if (currentPointer == 0)\n this.registerPointer = this.registerCapacity - 1;\n else\n this.registerPointer -= 1;\n }", "public LR0Item getShiftedItem() {\n\t\tassert (canShift());\n\t\treturn new LR0Item(getLhs(), getRhs(), marker + 1);\n\t}", "public void calRightMove() {\n }", "public static void main(String[] args) {\n\t\tshiftValues();\n\t}", "public static BinaryExpression leftShiftAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "public void setShift(boolean shift) {\n mShift = shift;\n }", "public static void main(String[] args) {\n\n\t\tint i[]= new int[4];\n\t\tint count =3;\n\t\t\n\t\ti[0] =20;\n\t\ti[1]=30;\n\t\ti[2]=40;\n\t\ti[3]=50;\n\t\t\n\t\tfor (int j=0; j<=count + 1; j++ ) {\n\t\t\t\n\t\t\t int temp= i[0];\n\t\t\t System.out.println(\"temp\" + temp);\n\t\t\tfor (int k=0; k<(i.length-1); k++) {\n\t\t\t\t\n\t\t\t\t i[k] =i [k + 1];\n\t\t\t\t// i[(i.length)-1] = temp;\n\t\t\t\t System.out.println(\"shifting \" + i[k]);\n\t\t\t}\n\t\t\t//System.out.println(i.length);\n\t\t\ti[(i.length)-1] = temp;\n\t\t\t//System.out.println(i[j]);\n\t\t}\n\t\t\n\t\tfor (int m=0; m<i.length-1; m++ ) {\n\t\tSystem.out.println(i[m]);\n\t\t}\n\t}", "@Override\n\tpublic void shiftCamera() {\n\t\t\n\t}", "private int shift(int x) {\n\tif (x >= upperBound) \n\t return (x%upperBound); \n\telse if (x < 0)\n\t return ((-x)%upperBound);\n\telse\n\t return x; \n }", "public void oddRowShift(int shift)\n{\n if(m != null && m.getOutputImageManager().getMosaic()!= null)\n {\n m.getOutputImageManager().setOddRowShift((float)(shift*0.01f));\n m.getOutputImageManager().setToRerender();\n }\n}", "public DynamicModelPart shiftU(int shift) {\n this.u = shiftIntArray(this.u, shift);\n return this;\n }", "public Snippet visit(ShiftRightUnsignedExpression n, Snippet argu) {\n\t\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t\t Snippet f0 = n.identifier.accept(this, argu);\n\t\t n.nodeToken.accept(this, argu);\n\t\t Snippet f2 = n.identifier1.accept(this, argu);\n\t\t _ret.returnTemp = f0.returnTemp+\" >>> \"+f2.returnTemp;\n\t return _ret;\n\t }", "public void addShift(Shift shift){shifts_dao.addShift(shift);}", "static char shift(char c, int key) {\n // Handle key values >=ALPHABET_LENGTH \n key %= ALPHABET_LENGTH;\n char start = Character.isUpperCase(c) ? 'A' : 'a';\n // Shift down to 0-25 for a-z\n char shifted = (char) (c - start);\n // Handle wrap-around for negative values:\n shifted = (char) ((shifted + key + ALPHABET_LENGTH) % ALPHABET_LENGTH);\n return (char) (shifted + start);\n }", "public static <E> void rightShift (E[] array, int shift) {\r\n\t\tif (shift > 0) {\r\n\t\t\t// save items displaced off of right end\r\n\t\t\tArrayList<E> temp = new ArrayList<E>();\r\n\t\t\tint length = array.length;\r\n\t\t\tfor (int i = length - shift ; i < length; i++) {\r\n\t\t\t\ttemp.add(array[i]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// copy in place\r\n\t\t\tfor (int i = length - 1; i > shift - 1; i--) {\r\n\t\t\t\tarray[i] = array[i - shift];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// copy displaced items to left end\r\n\t\t\tfor (int i = 0; i < shift; i++) {\r\n\t\t\t\tarray[i] = temp.get(i);\r\n\t\t\t}\r\n\t\t} else return;\r\n\t}", "public static final int[] get_LEFT_SHIFT(){\n\t\t\n\t\tint[] table = new int[16*16];\n\t\t\n\t\t//\ttable[(T_undefined<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_byte] \t\t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_long] \t\t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_short] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_char] \t\t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_undefined<<4)+T_null] \t\t\t= T_undefined;\n\t\t\t\n\t\t//\ttable[(T_byte<<4)+T_undefined] \t= T_undefined;\n\t\ttable[(T_byte<<4)+T_byte] \t\t= (Byte2Int<<12)+(Byte2Int<<4)+T_int;\n\t\ttable[(T_byte<<4)+T_long] \t\t= (Byte2Int<<12)+(Long2Int<<4)+T_int;\n\t\ttable[(T_byte<<4)+T_short] \t\t= (Byte2Int<<12)+(Short2Int<<4)+T_int;\n\t\t//\ttable[(T_byte<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_byte<<4)+T_String] \t= T_undefined;\n\t\t//\ttable[(T_byte<<4)+T_Object] \t= T_undefined;\n\t\t//\ttable[(T_byte<<4)+T_double] \t= T_undefined;\n\t\t//\ttable[(T_byte<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_byte<<4)+T_boolean] \t= T_undefined;\n\t\ttable[(T_byte<<4)+T_char] \t\t= (Byte2Int<<12)+(Char2Int<<4)+T_int;\n\t\ttable[(T_byte<<4)+T_int] \t\t= (Byte2Int<<12)+(Int2Int<<4)+T_int;\n\t\t//\ttable[(T_byte<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_long<<4)+T_undefined] \t= T_undefined;\n\t\ttable[(T_long<<4)+T_byte] \t\t= (Long2Long<<12)+(Byte2Int<<4)+T_long;\n\t\ttable[(T_long<<4)+T_long] \t\t= (Long2Long<<12)+(Long2Int<<4)+T_long;\n\t\ttable[(T_long<<4)+T_short] \t\t= (Long2Long<<12)+(Short2Int<<4)+T_long;\n\t\t//\ttable[(T_long<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_long<<4)+T_String] \t= T_undefined;\n\t\t//\ttable[(T_long<<4)+T_Object] \t= T_undefined;\n\t\t//\ttable[(T_long<<4)+T_double] \t= T_undefined;\n\t\t//\ttable[(T_long<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_long<<4)+T_boolean] \t= T_undefined;\n\t\ttable[(T_long<<4)+T_char] \t\t= (Long2Long<<12)+(Char2Int<<4)+T_long;\n\t\ttable[(T_long<<4)+T_int] \t\t= (Long2Long<<12)+(Int2Int<<4)+T_long;\n\t\t//\ttable[(T_long<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_short<<4)+T_undefined] \t= T_undefined;\n\t\ttable[(T_short<<4)+T_byte] \t\t\t= (Short2Int<<12)+(Byte2Int<<4)+T_int;\n\t\ttable[(T_short<<4)+T_long] \t\t\t= (Short2Int<<12)+(Long2Int<<4)+T_int;\n\t\ttable[(T_short<<4)+T_short] \t\t= (Short2Int<<12)+(Short2Int<<4)+T_int;\n\t\t//\ttable[(T_short<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_short<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_short<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_short<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_short<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_short<<4)+T_boolean] \t\t= T_undefined;\n\t\ttable[(T_short<<4)+T_char] \t\t\t= (Short2Int<<12)+(Char2Int<<4)+T_int;\n\t\ttable[(T_short<<4)+T_int] \t\t\t= (Short2Int<<12)+(Int2Int<<4)+T_int;\n\t\t//\ttable[(T_short<<4)+T_null] \t\t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_void<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_byte] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_long] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_short] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_String] \t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_Object] \t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_double] \t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_boolean] \t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_char] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_int] \t\t= T_undefined;\n\t\t//\ttable[(T_void<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_String<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_byte] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_long] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_short] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_char] \t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_String<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_Object<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_byte] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_long] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_short]\t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_boolean]\t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_char] \t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_Object<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_double<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_byte] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_long] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_short] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_char] \t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_double<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_float<<4)+T_undefined] \t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_byte] \t\t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_long] \t\t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_short] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_char] \t\t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_float<<4)+T_null] \t\t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_boolean<<4)+T_undefined] \t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_byte] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_long] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_short] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_String] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_Object] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_double] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_float] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_char] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_boolean<<4)+T_null] \t\t\t= T_undefined;\n\t\t\t\n\t\t//\ttable[(T_char<<4)+T_undefined] \t\t= T_undefined;\n\t\ttable[(T_char<<4)+T_byte] \t\t\t= (Char2Int<<12)+(Byte2Int<<4)+T_int;\n\t\ttable[(T_char<<4)+T_long] \t\t\t= (Char2Int<<12)+(Long2Int<<4)+T_int;\n\t\ttable[(T_char<<4)+T_short] \t\t\t= (Char2Int<<12)+(Short2Int<<4)+T_int;\n\t\t//\ttable[(T_char<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_char<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_char<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_char<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_char<<4)+T_float] \t\t\t= T_undefined;\n\t\t//\ttable[(T_char<<4)+T_boolean] \t\t= T_undefined;\n\t\ttable[(T_char<<4)+T_char] \t\t\t= (Char2Int<<12)+(Char2Int<<4)+T_int;\n\t\ttable[(T_char<<4)+T_int] \t\t\t= (Char2Int<<12)+(Int2Int<<4)+T_int;\n\t\t//\ttable[(T_char<<4)+T_null] \t\t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_int<<4)+T_undefined] \t= T_undefined;\n\t\ttable[(T_int<<4)+T_byte] \t\t= (Int2Int<<12)+(Byte2Int<<4)+T_int;\n\t\ttable[(T_int<<4)+T_long] \t\t= (Int2Int<<12)+(Long2Int<<4)+T_int;\n\t\ttable[(T_int<<4)+T_short] \t\t= (Int2Int<<12)+(Short2Int<<4)+T_int;\n\t\t//\ttable[(T_int<<4)+T_void] \t\t= T_undefined;\n\t\t//\ttable[(T_int<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_int<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_int<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_int<<4)+T_float] \t\t= T_undefined;\n\t\t//\ttable[(T_int<<4)+T_boolean] \t= T_undefined;\n\t\ttable[(T_int<<4)+T_char] \t\t= (Int2Int<<12)+(Char2Int<<4)+T_int;\n\t\ttable[(T_int<<4)+T_int] \t\t= (Int2Int<<12)+(Int2Int<<4)+T_int;\n\t\t//\ttable[(T_int<<4)+T_null] \t\t= T_undefined;\n\t\t\n\t\t//\ttable[(T_null<<4)+T_undefined] \t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_byte] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_long] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_short] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_void] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_String] \t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_Object] \t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_double] \t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_float] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_boolean] \t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_char] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_int] \t\t\t= T_undefined;\n\t\t//\ttable[(T_null<<4)+T_null] \t\t\t= T_undefined;\n\t\n\t\treturn table;\n\t}", "public static void main(String[] args) {\n System.out.println(32>>2);// 0010 0000>>2= 0000 1000=8\n\n System.out.println(32/4);//32除以2的2次幂\n\n System.out.println(8<<2);// 0000 1000<<2=0010 0000=32\n System.out.println(8*4);//8 乘以2的2次幂\n\n System.out.println(2<<2);//2*2(2)=8\n\n System.out.println(-32>>>2);//32除以2的2次幂\n\n\n }", "protected final byte operationROL(final byte data) {\r\n int data_ = (data & 0xff) << 1;\r\n\r\n if (this.carryFlag) {\r\n ++data_;\r\n }\r\n this.carryFlag = data_ >= 0x100;\r\n data_ &= 0xff;\r\n this.zeroFlag = data_ == 0;\r\n this.signFlag = data_ >= 0x80;\r\n\r\n return (byte)data_;\r\n }", "public void resetSubtraction() {\n\t\tset((byte) (get() & ~(1 << 6)));\n\t}", "@Override public void shiftIndex(byte[] code, int location, int offset) {\n\t\t\tbyte op = code[location];\n\t\t\tif(op == OPCODE) {\n\t\t\t\tlocation++;\n\t\t\t\t// Skip padding\n\t\t\t\tint padding = (location % 4);\n\t\t\t\tlocation+=padding;\n\t\t\t\t// Default 32bit offset\n\t\t\t\tint defaultOffset = IoUtility.readInt(code, location);\n\t\t\t\tdefaultOffset += offset;\n\t\t\t\tIoUtility.writeInt(defaultOffset, code, location);\n\t\t\t\tlocation += 4;\n\t\t\t\t// low\n\t\t\t\tint low = IoUtility.readInt(code, location);\n\t\t\t\tlocation += 4;\n\t\t\t\t// high\n\t\t\t\tint high = IoUtility.readInt(code, location);\n\t\t\t\tlocation += 4;\n\t\t\t\t// For each jump-offset 32bit value\n\t\t\t\tfor(int ii = 0; ii < (high-low+1); ii++, location += 4) {\n\t\t\t\t\tint matchOffset = IoUtility.readInt(code, location);\n\t\t\t\t\tmatchOffset += offset;\n\t\t\t\t\tIoUtility.writeInt(matchOffset, code, location);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "static void primitiveLeftShift(int[] a, int len, int n) {\n if (len == 0 || n == 0)\n return;\n\n int n2 = 32 - n;\n for (int i=0, c=a[i], m=i+len-1; i < m; i++) {\n int b = c;\n c = a[i+1];\n a[i] = (b << n) | (c >>> n2);\n }\n a[len-1] <<= n;\n }", "public static BinaryExpression leftShiftAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public static boolean shiftOperator(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"shiftOperator\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, SHIFT_OPERATOR, \"<shift operator>\");\n r = consumeToken(b, LT_LT);\n if (!r) r = gtGtGt(b, l + 1);\n if (!r) r = gtGt(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public static double shift(double[] a, int shift, double insert) {\n\t\tif (shift>0) {\n\t\t\tdouble re = sum(a,a.length-shift,a.length);\n\t\t\tfor (int i=a.length-1; i>=shift; i--)\n\t\t\t\ta[i] = a[i-shift];\n\t\t\tArrays.fill(a,0,shift, insert);\n\t\t\treturn re;\n\t\t} else {\n\t\t\tdouble re = sum(a,0,-shift);\n\t\t\tfor (int i=0; i<a.length+shift; i++)\n\t\t\t\ta[i] = a[i-shift];\n\t\t\tArrays.fill(a,a.length+shift,a.length, insert);\n\t\t\treturn re;\n\t\t}\n\t}", "public void alt_SET(int src)\n { set_bytes((int)(src) & -1L, 4, data, 24); }", "public SequenceMapping mapping(int shift) {\n\treturn mapping(shift, null);\n/*\nudanax-top.st:15788:SequenceSpace methodsFor: 'smalltalk: defaults'!\n{SequenceMapping CLIENT} mapping: shift {IntegerVar}\n\t\"A transformation which shifts a value by some number of places and then adds a translation to it.\"\n\t\n\t^self mapping: shift with: NULL!\n*/\n}", "@Override // com.google.android.gms.internal.firebase_ml.zzww\n public final /* synthetic */ void zza(zzwx zzwx, int i, zzsw zzsw) {\n zzwx.zzb((i << 3) | 2, zzsw);\n }", "Observable<Shift> endCurrentShift(Shift shift);", "public final void shiftExpression() throws RecognitionException {\n int shiftExpression_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"shiftExpression\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(788, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 117) ) { return ; }\n // Java.g:789:5: ( additiveExpression ( shiftOp additiveExpression )* )\n dbg.enterAlt(1);\n\n // Java.g:789:9: additiveExpression ( shiftOp additiveExpression )*\n {\n dbg.location(789,9);\n pushFollow(FOLLOW_additiveExpression_in_shiftExpression4695);\n additiveExpression();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(789,28);\n // Java.g:789:28: ( shiftOp additiveExpression )*\n try { dbg.enterSubRule(138);\n\n loop138:\n do {\n int alt138=2;\n try { dbg.enterDecision(138);\n\n int LA138_0 = input.LA(1);\n\n if ( (LA138_0==40) ) {\n int LA138_1 = input.LA(2);\n\n if ( (LA138_1==40) ) {\n int LA138_4 = input.LA(3);\n\n if ( (LA138_4==Identifier||(LA138_4>=FloatingPointLiteral && LA138_4<=DecimalLiteral)||LA138_4==47||(LA138_4>=56 && LA138_4<=63)||(LA138_4>=65 && LA138_4<=66)||(LA138_4>=69 && LA138_4<=72)||(LA138_4>=105 && LA138_4<=106)||(LA138_4>=109 && LA138_4<=113)) ) {\n alt138=1;\n }\n\n\n }\n\n\n }\n else if ( (LA138_0==42) ) {\n int LA138_2 = input.LA(2);\n\n if ( (LA138_2==42) ) {\n int LA138_5 = input.LA(3);\n\n if ( (LA138_5==42) ) {\n int LA138_7 = input.LA(4);\n\n if ( (LA138_7==Identifier||(LA138_7>=FloatingPointLiteral && LA138_7<=DecimalLiteral)||LA138_7==47||(LA138_7>=56 && LA138_7<=63)||(LA138_7>=65 && LA138_7<=66)||(LA138_7>=69 && LA138_7<=72)||(LA138_7>=105 && LA138_7<=106)||(LA138_7>=109 && LA138_7<=113)) ) {\n alt138=1;\n }\n\n\n }\n else if ( (LA138_5==Identifier||(LA138_5>=FloatingPointLiteral && LA138_5<=DecimalLiteral)||LA138_5==47||(LA138_5>=56 && LA138_5<=63)||(LA138_5>=65 && LA138_5<=66)||(LA138_5>=69 && LA138_5<=72)||(LA138_5>=105 && LA138_5<=106)||(LA138_5>=109 && LA138_5<=113)) ) {\n alt138=1;\n }\n\n\n }\n\n\n }\n\n\n } finally {dbg.exitDecision(138);}\n\n switch (alt138) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:789:30: shiftOp additiveExpression\n \t {\n \t dbg.location(789,30);\n \t pushFollow(FOLLOW_shiftOp_in_shiftExpression4699);\n \t shiftOp();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n \t dbg.location(789,38);\n \t pushFollow(FOLLOW_additiveExpression_in_shiftExpression4701);\n \t additiveExpression();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop138;\n }\n } while (true);\n } finally {dbg.exitSubRule(138);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 117, shiftExpression_StartIndex); }\n }\n dbg.location(790, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"shiftExpression\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "Observable<Shift> createNewShift(Shift shift);", "public void act() {\n\t\tsuper.act();\n\t\t//Gracias www.trucoteca.com\n\t\tif(control && shift && n) {\n\t\t\tthis.x = Ventana.getInstancia().getBola().getX();\n\t\t}\n\t\t//Si quieres ser legal\n\t\telse {\n\t\tthis.x += this.vx;\n\t\t}\n\t\tif(this.x < 0)\n\t\t\tthis.x = 0;\n\t\tif(this.x > Stage.WIDTH - getWidth())\n\t\t\tx = Stage.WIDTH - getWidth();\n\t\t}", "public DynamicModelPart shiftV(int shift) {\n this.v = shiftIntArray(this.v, shift);\n return this;\n }", "private static void shiftArray(char [] dest,int start, int e, char subChar){\n int w = e;\n int r = e;\n while (--r >= start) {\n char ch = dest[r];\n if (ch != subChar) {\n --w;\n if (w != r) {\n dest[w] = ch;\n }\n }\n }\n }", "public void alt_SET(int src)\n { set_bytes((int)(src) & -1L, 4, data, 14); }", "private int m10275g(int i) {\r\n return (i >>> 1) ^ (-(i & 1));\r\n }", "public void setSubtraction() {\n\t\tset((byte) (get() | (1 << 6)));\n\t}", "public Snippet visit(ShiftLeftExpression n, Snippet argu) {\n\t\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t\t Snippet f0 = n.identifier.accept(this, argu);\n\t\t n.nodeToken.accept(this, argu);\n\t\t Snippet f2 = n.identifier1.accept(this, argu);\n\t\t _ret.returnTemp = f0.returnTemp+\" << \"+f2.returnTemp;\n\t return _ret;\n\t }", "public static BinaryExpression leftShiftAssign(Expression expression0, Expression expression1, Method method, LambdaExpression lambdaExpression) { throw Extensions.todo(); }", "private void shift(){\n if (queue.length < 1){\n throw new Error(\"Table self destruction!\");\n }\n if (size <= 0){\n return;\n }\n\n if (queue[0] == null){\n E best = null;\n int bestAT = -1;\n for (int x = 0 ; x < queue.length; x++){\n E cur = (E)queue[x];\n if (cur == null){\n continue;\n }\n if (best == null || cur.compareTo(best) > 0){\n best = cur;\n bestAT = x;\n }\n }\n // Not put best at front;\n queue[bestAT] = null;\n queue[0] = best;\n }\n\n }", "public abstract void wrapup();", "public Snippet visit(ShiftRightExpression n, Snippet argu) {\n\t\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t\t Snippet f0 = n.identifier.accept(this, argu);\n\t\t n.nodeToken.accept(this, argu);\n\t\t Snippet f2 = n.identifier1.accept(this, argu);\n\t\t _ret.returnTemp = f0.returnTemp+\" >> \"+f2.returnTemp;\n\t return _ret;\n\t }", "public Instrucoes2op(){\n\t\tmmm1 = super.BitsModoDeEnderecamento();\t// pega os bits do endereçamento do primeiro operando\n\t\tmmm2 = super.BitsModoDeEnderecamento();\t// pega os bits do endereçamento do segundo operando \n\t\trrr1 = \"\";\n\t\trrr2 = \"\";\t\n\t}", "public static void main(String[] args) {\nint a = 4;\n\na += 2;\na -= 2;\na %= 2;\n\n\nSystem.out.println(a);\n\t\t\n\t\t\n\t\t\n\t}", "@Override\r\n public void MIPSme() {\r\n MIPSMove(this.dst, this.op1);\r\n }", "static <T> T[] rotateAnArray(T array[], int shift) {\n shift %= array.length;\n\n for (int i = 0; i < array.length / 2; i++) Utilities.swap(array, i, array.length - i - 1);\n\n for (int i = 0; i < shift / 2; i++) Utilities.swap(array, i, shift - i - 1);\n for (int i = shift; i < shift + (array.length - shift) / 2; i++) Utilities.swap(array, i, array.length - i + shift - 1);\n\n return array;\n }", "public void insertByRightShift(Object elem, int pos){\n if(size==cir.length){\n resizeStartUnchanged(cir.length+3);\n }\n int nshift=size-pos;\n int from=(start+size-1)%cir.length;\n int to=(from+1)%cir.length;\n for(int i=0;i<nshift;i++){\n cir[to]=cir[from];\n to=from;\n from--;\n if(from==-1){\n from=cir.length-1;\n }\n }\n int index=(start+pos)%cir.length;\n cir[index]=elem;\n size++;\n }", "private void aretes_aW(){\n\t\tthis.cube[4] = this.cube[16]; \n\t\tthis.cube[16] = this.cube[23];\n\t\tthis.cube[23] = this.cube[37];\n\t\tthis.cube[37] = this.cube[30];\n\t\tthis.cube[30] = this.cube[4];\n\t}", "public static void main(String[] args) {\n int[] list = {1, 2, 3, 4, 5};\n System.out.println(\"OldList = \" + Arrays.toString(list));\n ShiftArrayRight(list);\n System.out.println(\"NewList = \" + Arrays.toString(list));\n\n }", "@Override\n public void unshift_native(ThreadContext tc) {\n if (start < 1) {\n int n = 8;\n int i;\n\n /* grow the array */\n int origElems = elems;\n set_size_internal(tc, elems + n);\n\n /* move elements and set start */\n memmove(slots, n, 0, origElems);\n start = n;\n elems = origElems;\n\n /* clear out beginning elements */\n for (i = 0; i < n; i++)\n slots[i] = 0.0;\n }\n\n /* Now do the unshift */\n start--;\n tc.native_type = ThreadContext.NATIVE_NUM;\n slots[start] = tc.native_n;\n elems++;\n }", "public int upright();" ]
[ "0.75354123", "0.73570883", "0.7248782", "0.71389776", "0.6671958", "0.6649657", "0.64227945", "0.6306232", "0.6274765", "0.6220693", "0.61688304", "0.6054577", "0.6015317", "0.60064185", "0.5988094", "0.59792227", "0.5951098", "0.59495544", "0.59311706", "0.59061134", "0.58873117", "0.58750623", "0.5860888", "0.5852046", "0.5838574", "0.58261764", "0.58109885", "0.57408786", "0.5734702", "0.57073784", "0.56858814", "0.5679666", "0.5662839", "0.5623916", "0.5610186", "0.55976486", "0.558768", "0.55787", "0.55598384", "0.5549583", "0.554403", "0.5529969", "0.5527072", "0.55245596", "0.55209124", "0.5519337", "0.55059123", "0.54962575", "0.5486368", "0.5480195", "0.5477587", "0.54731524", "0.5467027", "0.5453701", "0.54380304", "0.54216653", "0.54120964", "0.53923476", "0.5385572", "0.53709275", "0.53689206", "0.53465366", "0.5344061", "0.53395945", "0.53343034", "0.53319114", "0.5329815", "0.532855", "0.531002", "0.53066635", "0.5264647", "0.52640927", "0.5263939", "0.5262762", "0.52530926", "0.52517766", "0.5250435", "0.52462184", "0.52396125", "0.5237054", "0.5230362", "0.5217226", "0.51980287", "0.5197549", "0.5197296", "0.51907784", "0.51906264", "0.51828897", "0.51811343", "0.5174412", "0.51710063", "0.5161153", "0.5156057", "0.51446295", "0.5144315", "0.5142474", "0.51349115", "0.51345766", "0.51253104", "0.5124835", "0.5115501" ]
0.0
-1
when the robot find a ball
public void run () { if (ballDetected()) { //findColor(); mainMotorSetSpeeds(normalSpeed,normalSpeed); mainLeftMotor.rotate(-30,true); //CHANGE VALUE SO THAT IT ROTATES TO MIDWAY ACCROSS THE BALL mainRightMotor.rotate(-30,false); //turn and move forward to grab the ball mainLeftMotor.rotate(-90,true); mainRightMotor.rotate(90,false); mainLeftMotor.rotate(360, true); mainRightMotor.rotate(360,false); //V2.0 for BallGrab_V2.0 motorSetSpeeds(loweringSpeed,loweringSpeed); leftMotor.rotate(110,true); rightMotor.rotate(110,false); //V1.0 for BallGrab_V1.0 grabMotor.setSpeed(speed); grabMotor.rotate(50); grabMotor.rotate(-45); grabMotor.rotate(45); //hold the ball at a rather vertical angle motorSetSpeeds(holdingSpeed,holdingSpeed); leftMotor.rotate(-11,true); rightMotor.rotate(-110,false); } //use navigation class to navigate to the designated area, then shoot //V2.0 for BallGrab_V2.0 /* leftMotor.setAcceleration(acceleration); rightMotor.setAcceleration(acceleration); leftMotor.setSpeed(forwardSpeed); rightMotor.setSpeed(forwardSpeed);*/ grabMotor.rotate(-10); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean ballDetected()\n\t{\n\t\tusSampleProvider.fetchSample(usData, 0);\n\t\tusDistance = (double)(usData[0]*100.0);\n\t\t\n\t\t//while the robot isn't seeing an object\n\t\twhile (usDistance>100)\n\t\t{\n\t\t\tmainMotorSetSpeeds(normalSpeed,normalSpeed);\n\t\t\tmainLeftMotor.forward();\n\t\t\tmainRightMotor.forward();\n\t\t}\n\t\tmainLeftMotor.stop();\n\t\tmainRightMotor.stop();\n\t\t\n\t\treturn true;\n\t}", "abstract public void performCollision(Ball ball);", "@Override\n public void collision(Ball ball) {\n if (!(this.collideLine.size() == 0)){\n ball.setVelocity(Geometry.reflectWall(this.collideLine.get(0), ball.getVelocity()));\n //if ball collides with corner, reflect off circle\n }else if (!(this.collideCirc.size() == 0)){\n ball.setVelocity(Geometry.reflectCircle(this.collideCirc.get(0).getCenter(), ball.getPosition(), ball.getVelocity()));\n }\n\n this.trigger();\n\n }", "void hitBall() {\n \n System.out.println(this.golfBall.vel_vector.x + \",\"\n + this.golfBall.vel_vector.y + \",\"\n + this.golfBall.acc_vector.x + \",\"\n + this.golfBall.acc_vector.y);\n \n if (this.golfBall.stopped) {\n new Sound(\"resources/hit.wav\").play();\n this.golfBall.stopped = false;\n this.golfBall.acc(this.strokeAcc.x, this.strokeAcc.y);\n this.strokes += 1;\n }\n \n }", "@Override\n public void update() {\n super.update();\n\n //check if ball is out\n checkBallOutTopBottom();\n checkBallOutLeftRight();\n }", "abstract public double timeUntilCollision(Ball ball);", "public void ballShoot() {\n\n ballRight.setPower(-1);\n ballLeft.setPower(1);\n\n wait(2.0);\n\n flipper.setPosition(0.7);\n\n wait(0.5);\n\n flipper.setPosition(0.9);\n ballLeft.setPower(0);\n ballRight.setPower(0);\n\n\n }", "public void moveBall() {\n\t\tif (BrickPanel.getBrickCount() == -1) {\n\t\t\t\n \t\tcontrolPanel.resetGame();\n \t\tcontrolPanel.gameWonText();\n \t}\n\t\tif (BrickPanel.getBallShape().getY() >= 300) {\n\t\t\t \n\t\t\tcontrolPanel.resetGame();\n\t\t\t controlPanel.gameOverText();\n\t\t\t \n\t\t\t}\n\t\t//calls the moveBall method to move the ball\n\t\tBrickPanel.moveBall();\n\t}", "@Override\n\tpublic void collision(Ball ball) {\n PhysicsComponent gadgetPartToCollideWith = this.physicsComponentList.get(0);\n double minTimeUntilCollision = Double.MAX_VALUE;\n for(PhysicsComponent gadgetPart: physicsComponentList){\n double timeUntilCollisionPart = gadgetPart.timeUntilCollision(ball.getBallCircle(), ball.getVelocity());\n if (timeUntilCollisionPart < minTimeUntilCollision){ \n minTimeUntilCollision = timeUntilCollisionPart;\n gadgetPartToCollideWith = gadgetPart;\n }\n }\n Vect newVelocity = gadgetPartToCollideWith.reflect(ball.getBallCircle(), ball.getVelocity(), ball.getCoefficentOfReflection()); \n ball.setVelocity(newVelocity);\n trigger();\n\t}", "public void setBallTouched(Ball ball)\n {\n ballTouched = ball;\n }", "public int TakeStep()\n\t\t{\n\t\t// the eventual movement command is placed here\n\t\tVec2\tresult = new Vec2(0,0);\n\n\t\t// get the current time for timestamps\n\t\tlong\tcurr_time = abstract_robot.getTime();\n\n\n\t\t/*--- Get some sensor data ---*/\n\t\t// get vector to the ball\n\t\tVec2 ball = abstract_robot.getBall(curr_time);\n\n\t\t// get vector to our and their goal\n\t\tVec2 ourgoal = abstract_robot.getOurGoal(curr_time);\n\t\tVec2 theirgoal = abstract_robot.getOpponentsGoal(curr_time);\n\n\t\t// get a list of the positions of our teammates\n\t\tVec2[] teammates = abstract_robot.getTeammates(curr_time);\n\n\t\t// find the closest teammate\n\t\tVec2 closestteammate = new Vec2(99999,0);\n\t\tfor (int i=0; i< teammates.length; i++)\n\t\t\t{\n\t\t\tif (teammates[i].r < closestteammate.r)\n\t\t\t\tclosestteammate = teammates[i];\n\t\t\t}\n\n\n\t\t/*--- now compute some strategic places to go ---*/\n\t\t// compute a point one robot radius\n\t\t// behind the ball.\n\t\tVec2 kickspot = new Vec2(ball.x, ball.y);\n\t\tkickspot.sub(theirgoal);\n\t\tkickspot.setr(abstract_robot.RADIUS);\n\t\tkickspot.add(ball);\n\n\t\t// compute a point three robot radii\n\t\t// behind the ball.\n\t\tVec2 backspot = new Vec2(ball.x, ball.y);\n\t\tbackspot.sub(theirgoal);\n\t\tbackspot.setr(abstract_robot.RADIUS*5);\n\t\tbackspot.add(ball);\n\n\t\t// compute a north and south spot\n\t\tVec2 northspot = new Vec2(backspot.x,backspot.y+0.7);\n\t\tVec2 southspot = new Vec2(backspot.x,backspot.y-0.7);\n\n\t\t// compute a position between the ball and defended goal\n\t\tVec2 goaliepos = new Vec2(ourgoal.x + ball.x,\n\t\t\t\tourgoal.y + ball.y);\n\t\tgoaliepos.setr(goaliepos.r*0.5);\n\n\t\t// a direction away from the closest teammate.\n\t\tVec2 awayfromclosest = new Vec2(closestteammate.x,\n\t\t\t\tclosestteammate.y);\n\t\tawayfromclosest.sett(awayfromclosest.t + Math.PI);\n\n\n\t\t/*--- go to one of the places depending on player num ---*/\n\t\tint mynum = abstract_robot.getPlayerNumber(curr_time);\n\n\t\t/*--- Goalie ---*/\n\t\tif (mynum == 0)\n\t\t\t{\n\t\t\t// go to the goalie position if far from the ball\n\t\t\tif (ball.r > 0.5) \n\t\t\t\tresult = goaliepos;\n\t\t\t// otherwise go to kick it\n\t\t\telse if (ball.r > 0.1) \n\t\t\t\tresult = kickspot;\n\t\t\telse \n\t\t\t\tresult = ball;\n\t\t\t// keep away from others\n\t\t\tif (closestteammate.r < 0.3)\n\t\t\t\t{\n\t\t\t\tresult = awayfromclosest;\n\t\t\t\t}\n\t\t\t}\n\n\t\t/*--- midback ---*/\n\t\telse if (mynum == 1)\n\t\t\t{\n\t\t\t// go to a midback position if far from the ball\n\t\t\tif (ball.r > 0.5) \n\t\t\t\tresult = backspot;\n\t\t\t// otherwise go to kick it\n\t\t\telse if (ball.r > 0.30) \n\t\t\t\tresult = kickspot;\n\t\t\telse \n\t\t\t\tresult = ball;\n\t\t\t// keep away from others\n\t\t\tif (closestteammate.r < 0.3)\n\t\t\t\t{\n\t\t\t\tresult = awayfromclosest;\n\t\t\t\t}\n\t\t\t}\n\n\t\telse if (mynum == 2)\n\t\t\t{\n\t\t\t// go to a the northspot position if far from the ball\n\t\t\tif (ball.r > 0.5) \n\t\t\t\tresult = northspot;\n\t\t\t// otherwise go to kick it\n\t\t\telse if (ball.r > 0.30) \n\t\t\t\tresult = kickspot;\n\t\t\telse \n\t\t\t\tresult = ball;\n\t\t\t// keep away from others\n\t\t\tif (closestteammate.r < 0.3)\n\t\t\t\t{\n\t\t\t\tresult = awayfromclosest;\n\t\t\t\t}\n\t\t\t}\n\n\t\telse if (mynum == 4)\n\t\t\t{\n\t\t\t// go to a the northspot position if far from the ball\n\t\t\tif (ball.r > 0.5) \n\t\t\t\tresult = southspot;\n\t\t\t// otherwise go to kick it\n\t\t\telse if (ball.r > 0.3 )\n\t\t\t\tresult = kickspot;\n\t\t\telse \n\t\t\t\tresult = ball;\n\t\t\t// keep away from others\n\t\t\tif (closestteammate.r < 0.3)\n\t\t\t\t{\n\t\t\t\tresult = awayfromclosest;\n\t\t\t\t}\n\t\t\t}\n\n\t\t/*---Lead Forward ---*/\n\t\telse if (mynum == 3)\n\t\t\t{\n\t\t\t// if we are more than 4cm away from the ball\n\t\t\tif (ball.r > .3)\n\t\t\t\t// go to a good kicking position\n\t\t\t\tresult = kickspot;\n\t\t\telse\n\t\t\t\t// go to the ball\n\t\t\t\tresult = ball;\n\t\t\t}\n\n\n\t\t/*--- Send commands to actuators ---*/\n\t\t// set the heading\n\t\tabstract_robot.setSteerHeading(curr_time, result.t);\n\n\t\t// set speed at maximum\n\t\tabstract_robot.setSpeed(curr_time, 1.0);\n\n\t\t// kick it if we can\n\t\tif (abstract_robot.canKick(curr_time))\n\t\t\tabstract_robot.kick(curr_time);\n\n\t\t/*--- Send message to other robot ---*/\n\t\t// COMMUNICATION\n\t\t// if I can kick\n\t\tif (abstract_robot.canKick(curr_time))\n\t\t\t{\n\t\t\t// and I am robot #3\n\t\t\tif ((mynum==3))\n\t\t\t\t{\n\t\t\t\t// construct a message\n\t\t\t\tStringMessage m = new StringMessage();\n\t\t\t\tm.val = (new Integer(mynum)).toString();\n\t\t\t\tm.val = m.val.concat(\" can kick\");\n\n\t\t\t\t// send the message to robot 2\n\t\t\t\t// note: broadcast and multicast are also\n\t\t\t\t// available.\n\t\t\t\ttry{abstract_robot.unicast(2,m);}\n\t\t\t\tcatch(CommunicationException e){}\n\t\t\t\t}\n\t\t\t}\n\n\t\t/*--- Look for incoming messages ---*/\n\t\t//COMMUNICATION\n\t\twhile (messagesin.hasMoreElements())\n\t\t\t{\n\t\t\tStringMessage recvd = \n\t\t\t\t(StringMessage)messagesin.nextElement();\n\t\t\tSystem.out.println(mynum + \" received:\\n\" + recvd);\n\t\t\t}\n\n\t\t// tell the parent we're OK\n\t\treturn(CSSTAT_OK);\n\t\t}", "public boolean isAround(Ball ball)\n {\n int delta = 10;\n Rectangle2D rectangle = new Rectangle2D.Double(mPosition.getX() - delta, mPosition.getY() - delta, 2 * delta, 2 * delta);\n \n return rectangle.contains(ball.getPosition());\n }", "void addEventGoal(DefaultGoal goal, DefaultBall ball);", "public void moveOneStep() {\r\n\r\n // detects what direction the ball moves and switches it.\r\n double xDirection, yDirection;\r\n if (v.getDx() < 0) {\r\n xDirection = -r;\r\n } else {\r\n xDirection = r;\r\n }\r\n if (v.getDy() < 0) {\r\n yDirection = -r;\r\n } else {\r\n yDirection = r;\r\n }\r\n // if the ball is in the paddle because they move towards each other, the ball moves to the top of the paddle.\r\n Rectangle danger;\r\n // finding the paddle.\r\n for (Collidable c: environment.getCollidables()) {\r\n if (c.getCollisionRectangle().getUpperLeft().getY() == 550) {\r\n danger = c.getCollisionRectangle();\r\n // moving the ball up if its in the paddle.\r\n if (center.getY() > danger.getUpperLeft().getY()\r\n && center.getX() > danger.getUpperLeft().getX()\r\n && center.getX() < danger.getUpperRight().getX()) {\r\n this.center = new Point(center.getX(), danger.getUpperLeft().getY() - r);\r\n }\r\n }\r\n }\r\n Line yTrajectory = new Line(center.getX(), center.getY() + yDirection,\r\n center.getX() + v.getDx(), center.getY() + yDirection + v.getDy());\r\n Line xTrajectory = new Line(center.getX() + xDirection, center.getY(),\r\n center.getX() + v.getDx() + xDirection, center.getY() + v.getDy());\r\n // the collision is on the y field.\r\n if (environment.getClosestCollision(yTrajectory) != null) {\r\n Collidable bangedCollidable = environment.getClosestCollision(yTrajectory).collisionObject();\r\n Point bangedPoint = environment.getClosestCollision(yTrajectory).collisionPoint();\r\n this.setVelocity(bangedCollidable.hit(this, bangedPoint, this.v));\r\n this.center = new Point(this.center.getX(),\r\n bangedPoint.getY() - yDirection - v.getDy());\r\n }\r\n // the collision is on the x field.\r\n if (environment.getClosestCollision(xTrajectory) != null) {\r\n Collidable bangedCollidable = environment.getClosestCollision(xTrajectory).collisionObject();\r\n Point bangedPoint = environment.getClosestCollision(xTrajectory).collisionPoint();\r\n this.setVelocity(bangedCollidable.hit(this, bangedPoint, this.v));\r\n this.center = new Point(bangedPoint.getX() - xDirection - v.getDx(),\r\n this.center.getY());\r\n }\r\n this.center = this.getVelocity().applyToPoint(this.center);\r\n }", "public void receiveBall(BallControl iBall) {\r\n ball = iBall;\r\n ball.assignEnemy((Enemy)spatial);\r\n }", "private void moveBall() {\n\t\tball.move(vx,vy);\n\t\tpause(10);\t\n\t\t\n\t}", "@Override\n public boolean checkForScoringCondition(BotState botState) {\n Location botLocation = new Location(botState.x, botState.y);\n for (var ballLocation: ballLocations) {\n if (botLocation.getDistance(ballLocation) < SCORING_DISTANCE) {\n // The robot picked up the ball!\n logger.info(\"FOUND A BALL BOT=\"+botLocation+\" ball=\"+ballLocation);\n ballLocations.remove(ballLocation);\n return true;\n }\n }\n return false;\n }", "private void playRound(GOval ball) {\n int bricksOnStage = NBRICK_ROWS * NBRICKS_PER_ROW;\n\n while(true) {\n bricksOnStage = collideObject(ball, bricksOnStage);\n collideStageLimits(ball);\n if (hasMissPaddle(ball)) {\n showLabel(\"BUSTED\", Color.BLACK);\n clearStage(ball);\n break;\n }\n ball.move(vx, vy);\n //println(vx + \" \" + vy);\n if (isBricksLeft(bricksOnStage)){\n showLabel(\"YOU WON!\", Color.red);\n clearStage(ball);\n break;\n }\n pause(PAUSE_TIME);\n }\n }", "Velocity hit(Ball hitter, Point collisionPoint, Velocity currentVelocity);", "@Test\n public void RandomBallLocationStopped() {\n final boolean seenAll[] = new boolean[1];\n seenAll[0] = false;\n\n WheelObserver wheelObserver = new WheelObserver() {\n Set<Integer> seen = new HashSet<Integer>();\n public void stopped(final int location) {\n if (location < 0 || location > 36)\n throw new IllegalArgumentException();\n seen.add(location);\n if (seen.size() == 37) seenAll[0] = true;\n }\n };\n RouletteWheel wheel = new RouletteWheel(wheelObserver);\n\n for (int x = 0; x < 1000; x++)\n {\n wheel.spin(0);\n wheel.tick(20000);\n }\n\n assertTrue(seenAll[0]);\n }", "private GOval drawBall(){\n GOval ball = new GOval(getWidth() / 2.0 - BALL_RADIUS, getHeight() - PADDLE_Y_OFFSET - 2 * BALL_RADIUS,\n 2 * BALL_RADIUS, 2 * BALL_RADIUS);\n ball.setFilled(true);\n ball.setColor(Color.gray);\n add(ball);\n return ball;\n }", "public void moveBall()\n\t{\n\t\tx -= vx;\n\t\ty += vy;\n\t}", "public void ballManagement(){\n\t\t\n//\t\tUpdates the Ball's X Position\n\t\tif (validBall.getxLoc() <0)\n\t\t\tvalidBall.setActiveBall(false);\n\t\telse\n\t\t\tvalidBall.updateBallXPos();\n\n//\t\tUpdates the Ball's Y Position\n\t\tif (validBall.getyLoc() > screenHeight)\n\t\t\tvalidBall.setActiveBall(false);\n\t\telse\n\t\t\tvalidBall.updateBallYPos();\n\t\t\n//\t\tUpdates the Ball Count of the Level\n\t\tupdateBallCount();\n\t\t\n//\t\tDraw the Ball on the Screen\n\t\tbatch.draw(validBall.getBallImage(), validBall.getxLoc(),validBall.getyLoc(), validBall.getBallImage().getWidth() * validBall.getBallScale(),validBall.getBallImage().getHeight() * validBall.getBallScale() );\n\t\t\n\t}", "public boolean bounceBall(Ball ball) {\r\n\t\t\r\n\t\tint radius= ball.getRadius(), fullRound= 360;\r\n\t\t\r\n\t\tif ((ball.getX()>topX-radius && ball.getX()< topX+width+radius)// in X radius\r\n\t\t\t\t&& ball.getY()>= topY-radius && ball.getY()< topY){// in Y radius\r\n\t\t\tball.setDirection(fullRound-ball.getDirection());\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "public void collision(Ball b){\n float cir_center_X = b.getCenterX();\r\n float cir_center_Y = b.getCenterY();\r\n \r\n // aabb half extent\r\n float extent_X = (this.p4[0]-this.p1[0])/2; //half width\r\n float extent_Y = (this.p3[1]-this.p4[1])/2; // half height\r\n // rec center \r\n float rec_center_X = this.p1[0]+extent_X;\r\n float rec_center_Y = this.p1[1]+extent_Y;\r\n \r\n // difference between center : vector D = Vector Cir_center-Rec-center\r\n float d_X =cir_center_X-rec_center_X;\r\n float d_Y = cir_center_Y-rec_center_Y;\r\n \r\n //\r\n float p_X =Support_Lib.clamp(d_X,-extent_X,extent_X);\r\n float p_Y =Support_Lib.clamp(d_Y,-extent_Y,extent_Y);\r\n \r\n\r\n \r\n float closest_point_X = rec_center_X +p_X;\r\n float closest_point_Y = rec_center_Y +p_Y; \r\n \r\n \r\n d_X = closest_point_X -cir_center_X;\r\n d_Y = closest_point_Y -cir_center_Y;\r\n \r\n \r\n \r\n float length = (float)Math.sqrt((d_X*d_X)+(d_Y*d_Y));\r\n \r\n if(length+0.001 <=b.getRadius()){\r\n\r\n \r\n float ratio =(closest_point_X-rec_center_X)/(extent_X*2);\r\n b.accelartion(ratio);\r\n b.updateVelocity(Support_Lib.direction(d_X,d_Y));\r\n \r\n }\r\n \r\n \r\n }", "private boolean isBallInside(Ball ball) {\n Vect ballCenter = ball.getCircle().getCircle().getCenter();\n Double ballX = ballCenter.x();\n Double ballY = ballCenter.y();\n Double radius = ball.getCircle().getCircle().getRadius();\n Double centerX = this.location.x()+0.5;\n Double centerY = this.location.y()+0.5;\n assert(checkRep());\n return ((ballX-centerX)*(ballX-centerX)+(ballY-centerY)*(ballY-centerY)) < ((0.5+radius)*(0.5+radius));\n }", "boolean findRobot();", "public void handle(long currentNanoTime) {\n\t \t\t\tobw.updateWorld(mc);\t\t\t// find new position of ball \n\t \t\t\tobw.drawWorld(mc);\t\t\t\t// draw ball in new position\n\t \t\t}", "public void bounce(Ball ball) {\n\t\tPoint location = ball.getLocation();\n\t\tPoint velocity = ball.getVelocity();\n\t\tint radius = ball.getRadius();\n\n\t\tif (location.x < 0) {\n\t\t\tlocation.x = -location.x;\n\t\t\tvelocity.x = -velocity.x;\n\t\t}\n\n\t\tif (location.x + 1 * radius > BallWorldModel.returnBounds().width) {\n\t\t\tlocation.x = BallWorldModel.returnBounds().width * 2 - location.x - 2 * radius;\n\t\t\tvelocity.x = -velocity.x;\n\n\t\t}\n\t\tif (location.y < 0) {\n\t\t\tlocation.y = -location.y;\n\t\t\tvelocity.y = -velocity.y;\n\t\t}\n\t\tif (location.y + 1 * radius > BallWorldModel.returnBounds().height) {\n\t\t\tlocation.y = BallWorldModel.returnBounds().height * 2 - location.y - 2 * radius;\n\t\t\tvelocity.y = -velocity.y;\n\n\t\t}\n\t}", "@Override\n public void robotPeriodic() {\n double high = m_filter.calculate(m_photoHigh.getValue());// * kValueToInches;\n double low = m_filter.calculate(m_photoLow.getValue()); //* kValueToInches;\n if (low<=6){\n BallPresent = true;\n //stop motor if ultrasonic sensor median falls below 6 inches indicating a ball is blocking the sensor\n m_RightMotor.set(ControlMode.PercentOutput, 0);\n } else {\n BallPresent = false;\n //stop motor if ultrasonic sensor median falls below 6 inches indicating a ball is blocking the sensor\n m_RightMotor.set(ControlMode.PercentOutput, 0.5);\n }\n /*Shuffleboard.getTab(\"Shooter\").add(\"Ball Present\", BallPresent)\n .withWidget(BuiltInWidgets.kBooleanBox)\n .withPosition(0, 0)\n .withSize(1, 1)\n .withProperties(Map.of(\"colorWhenTrue\",\"green\",\"colorWhenFalse\",\"black\"));*/\n SmartDashboard.putNumber(\"High\", high);\n SmartDashboard.putNumber(\"Low\", low); \n /*Shuffleboard.getTab(\"Shooter\").add(\"Ultrasonic 1\", currentDistance)\n .withWidget(BuiltInWidgets.kGraph)\n .withPosition(0, 2)\n .withSize(4, 4);*/\n // convert distance error to a motor speed\n //double currentSpeed = (kHoldDistance - currentDistance) * kP;\n\n // drive robot\n //m_robotDrive.arcadeDrive(currentSpeed, 0);\n }", "public void setBall(Ball b){\r\n\t\tthis.ball = b;\r\n\t}", "public boolean collides(Ball ball) //collision detection\n {\n if( ( position.y+height ) > ball.getPosY()-8 )\n {\n if( position.y+10 < ( ball.getPosY()-8 ) )\n {\n if(\n !((\n (ball.getPosX()-12 < ( position.x)+width ) &&\n (ball.getPosX()+12 < (position.x+width) ) &&\n (ball.getPosX()-12 < position.x ) &&\n (ball.getPosX()+12 < position.x )\n )||\n (\n (ball.getPosX()-12 > ( position.x+width )) &&\n (ball.getPosX()+12 > (position.x+width) ) &&\n (ball.getPosX()-12 > ( position.x )) &&\n (ball.getPosX()+12 > position.x )\n ))\n ){return true;}\n }\n\n }\n\n return false;\n\n /*\n if(position.y > (ball.getPosY() - 77 ) ) //should be ball.getheight\n {\n\n return Intersector.overlaps(ball.getCircle(), rect);\n }\n */\n\n }", "public static void moveBalls() {\n\t\tfor (Ball b : Panel.balls) {\n\t\t\tif (b.getxPOS() + b.getxVelocity() < 410 || b.getxPOS() + b.getxVelocity() > (1200 - (b.getMass() * 7))) { //checking next frame for boundry collision\n\t\t\t\tb.setxVelocity(-b.getxVelocity());\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//reverseing velocity if true\n\t\t\t}\n\t\t\tif (b.getyPOS() + b.getyVelocity() < 0) {\n\t\t\t\tb.setyVelocity(-(b.getyVelocity()));\n\t\t\t}\n\t\t\tif (b.getyPOS() + b.getyVelocity() > (800 - (b.getMass() * 7)) - 22) { //on each collision with the floor, decrease the balls X and Y velocity\n\t\t\t\tb.setyVelocity(-(b.getyVelocity() - energyLost));\n\t\t\t\tif (Panel.tick % 7 == 0 && Panel.Gravity) {\n\t\t\t\t\tif (b.getxVelocity() < 0) {\n\t\t\t\t\t\tb.setxVelocity(b.getxVelocity() + 1);\n\t\t\t\t\t}\n\t\t\t\t\tif (b.getxVelocity() > 0) {\n\t\t\t\t\t\tb.setxVelocity(b.getxVelocity() - 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!(b.getyPOS() + b.getyVelocity() > (800 - (b.getMass() * 7)) - 22)) { //applying motion in the Y direction only if the ball is not resting on the floor\n\t\t\t\tb.setyPOS(b.getyPOS() + b.getyVelocity());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tb.setyPOS((800 - (b.getMass() * 7)) - 22);\n\t\t\t}\n\t\t\t\n\t\t\tb.setxPOS(b.getxPOS() + b.getxVelocity()); //motion is always applied in the X direction\n\t\t}\n\t}", "protected void moveBall() {\n int width = getWidth();\n int height = getHeight();\n int min, max, randomX, randomY;\n min = 0;\n max = 200;\n randomX = min + (int)(Math.random() * ((max - min)+1));\n randomY = min + (int)(Math.random() * ((max - min)+1));\n //System.out.println(randomX + \", \" + randomY);\n\n Rectangle ballBounds = ball.getBounds();\n// //System.out.println(ballBounds.x + \", \" + ballBounds.y);\n// if (ballBounds.x + randomX < 0) {\n// randomX = 200;\n// } else if (ballBounds.x + ballBounds.width + randomX > width) {\n// randomX = -200;\n// }\n// if (ballBounds.y + randomY < 0) {\n// randomY = 200;\n// } else if (ballBounds.y + ballBounds.height + randomY > height) {\n// randomY = -200;\n// } \n\n ballBounds.x = randomX;\n ballBounds.y = randomY;\n _ballXpos = ballBounds.x;\n _ballYpos = ballBounds.y;\n ball.setFrame(ballBounds);\n thePlacebo.repaint();\n }", "double getBallY();", "public void setBallInitial(){\n\tvalidBall = new Ball(Player.getxPlayerLoc(),Player.getyPlayerLoc(), angle,true,ballImage,game.getDifficulty());\n}", "public void updateBallCount(){\n\t\tif (validBall.getxLoc() < 0 || validBall.getxLoc() > screenWidth)\n\t\t\tballCount = 0;\n\t\telse if (validBall.getyLoc() < 0 || validBall.getyLoc() > screenHeight)\n\t\t\tballCount = 0;\n\t\telse\n\t\t\tballCount = 1;\n\t}", "public void playerMissedBall(){ active = false;}", "public void moveOneStep() {\n //We will create a line that checks the movement of the ball.\n Line trajectory = new Line(this.center.getX(), this.center.getY(),\n this.center.getX() + this.velocity.getDx(), this.center.getY() + this.velocity.getDy());\n //We will get information for the closest barrier.\n CollisionInfo info = this.gameEnvironment.getClosestCollision(trajectory);\n //If there is information about an obstacle on the way, we will almost change our direction before reaching\n // the barrier.\n if (info != null) {\n this.center = new Velocity(-0.2 * this.velocity.getDx(),\n -0.2 * this.velocity.getDy()).applyToPoint(this.center);\n this.velocity = info.collisionObject().hit(this, info.collisionPoint(), this.velocity);\n //Otherwise, we will allow it to reach its destination\n } else {\n this.center = this.velocity.applyToPoint(this.center);\n }\n }", "@Test\n void testTrackBallYMid() {\n goalie.setPosition(goalie.getX(), 187f);\n\n // test ball y value equal 360 the goalie mid\n goalie.TrackBallSetDirection(new Vector(45f,360f), new Vector(-0.5f,0.5f));\n\n // goalie should move in pos direction to get to mid point in this case\n assertEquals(1,goalie.getNext_direction().getY());\n\n // test when goalie current position is greater than the middle\n goalie.setPosition(goalie.getX(), 480f);\n\n // test ball y = 360\n goalie.TrackBallSetDirection(new Vector(45f,360f), new Vector(-0.5f,0.5f));\n\n // goalie should move in negative direction to get to mid point in this case\n assertEquals(-1,goalie.getNext_direction().getY());\n\n }", "@Override\n\tpublic boolean collide(int ballX, int ballY, Drawable ball) {\n\t\tint[] coordinates = brick.get();\n\t\tint brickX = coordinates[0];\n\t\tint brickY = coordinates[1];\n\t\tif (ballX + ball.getWidth() >= brickX\n\t\t\t\t&& ballX <= brickX + brick.getWidth()\n\t\t\t\t&& ballY+ ball.getHeight() >= brickY\n\t\t\t\t&& ballY <= brickY + brick.getHeight()) {\n\t\t\t\n\t\t\t//System.out.println(\"Collideed\");\n\t\t\tbrickBlast = true;\n\t\t\treturn true;\n\t\t \n\t\t}\n\t\treturn false;\n\t}", "public void moveOneStep() {\n // special case - the ball is inside the paddle\n Map<Integer, Point> result = movingBlock.getCollisionRectangle().insideRectangle(this.center);\n if (result != null) {\n // getting a pair information of:\n // A point: the new point of the center outside the paddle\n // An Integer: 1 if it's on the right, -1 if on the left\n for (Integer direction : result.keySet()) {\n // setting the new center, and the new velocity, based on the result\n this.center = result.get(direction);\n this.setVelocity(Math.abs(this.getVelocity().getX()) * direction, -Math.abs(this.getVelocity().getY()));\n }\n // normal case - the ball is not inside the paddle\n } else {\n // getting the line trajectory\n Line trajectory = new Line(this.center, this.getVelocity().applyToPoint(this.center));\n // getting the collision info\n CollisionInfo info = this.gameEnvironment.getClosestCollision(trajectory);\n int count = 0;\n // while this info is not null\n while (info != null) {\n // changing the velocity of the ball\n // notify the object it has been hit\n this.setVelocity(info.collisionObject().hit(this, info.collisionPoint(), this.getVelocity()));\n // getting the update trajectory and info (while they're not null!)\n trajectory = new Line(this.center, this.getVelocity().applyToPoint(this.center));\n info = this.gameEnvironment.getClosestCollision(trajectory);\n // if the count is 3, it means we are into an infinite loop!\n // oppose the velocity and break\n if (count == 3) {\n this.setVelocity(-this.getVelocity().getX(), -this.getVelocity().getY());\n break;\n }\n count++;\n }\n this.center = this.getVelocity().applyToPoint(this.center);\n }\n }", "public void checkWallBounce(){\n // Bounce the ball back when it hits the top of screen\n if (getRect().top < 0) {\n reverseYVelocity();\n clearObstacleY(40);\n }\n\n // If the ball hits left wall bounce\n if (getRect().left < 0) {\n reverseXVelocity();\n clearObstacleX(2);\n }\n\n // If the ball hits right wall Velocity\n if (getRect().right > screenX) {\n reverseXVelocity();\n clearObstacleX(screenX - 57);\n }\n }", "public ShootBall() {\n addRequirements(Robot.shooterBall);\n }", "private void bounceIfWallCollision() {\n \tdouble x = ball.getX();\n \tdouble y = ball.getY();\n \t\n \t// Ball hits side\n \tif (x <= 0 || (x + BALL_RADIUS * 2) >= getWidth()) vx = -vx;\n \t\n \t// Ball hits top\n \tif (y <= 0) vy = -vy;\n }", "private void createBall(GL2 gl)\n\t{\n\t\tif(!change)\n\t\t{\n\t\t\tif(shape2)\n\t\t\t{\n\t\t\t\tsetColor(gl, 0, 0, 0, 255 - (13 * hitCount));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsetColor(gl, 0, 0, 0, 255);\n\t\t\t}\n\t\t\t\n\t\t\tdrawGon(gl, 20, currentPoint.getX(), currentPoint.getY(), 10);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetColor(gl, 0, 0, 0, 255);\n\t\t\tcurrentPoint.setLocation(640, 360);\n\t\t\tdrawGon(gl, 20, currentPoint.getX(), currentPoint.getY(), 10);\n\t\t\tchange = false;\n\t\t\thitCount = 0;\n\t\t}\n\t}", "public void checkBrickHit(List<Brick> myBricks, Ball myBall, Ball secondBall) {\n if(myBricks.contains(this.getBrick()) == false) {\n if(myBall.getSpeed() != 0 || secondBall.getSpeed() != 0) {\n this.setY_vel(50);\n }\n else {\n this.setY_vel(0);\n }\n this.getMyImageView().setVisible(true);\n }\n }", "@Test\n public void SpecifyBallLocationOnceStopped() {\n WheelObserver wheelObserver = mock(WheelObserver.class);\n RouletteWheel wheel = new RouletteWheel(wheelObserver);\n\n long spinFor20s = 20000;\n wheel.spin(spinFor20s);\n wheel.tick(20000);\n wheel.tick(20001);\n\n verify(wheelObserver, times(1)).stopped(anyInt());\n }", "private boolean didBallHitFloor() {\n \tdouble y = ball.getY();\n \t\n \treturn (y + BALL_RADIUS * 2) <= HEIGHT;\n }", "@Override \n public void collide(Ball ball, Collidable collidable) {\n super.collide(ball, collidable);\n Vect transferLoc = new Vect(this.getLocation().x()+0.5, this.getLocation().y()+0.5);\n Double theta = Math.random()*2*Math.PI;\n board.addBall(new Ball(transferLoc, new Vect(Constants.SPAWNER_SHOOT_VELOCITY*Math.cos(theta),Constants.SPAWNER_SHOOT_VELOCITY*Math.sin(theta) ), this.getName()+\"SpawnedBall\"+this.spawnCount, board.getGravity(), board.getFriction1(), board.getFriction2()));\n spawnCount += 1;\n this.trigger();\n }", "private void update() {\r\n\t\t// Get new (x,y) position\r\n\r\n ballX1 += ballSpeedX1;\r\n ballY1 += ballSpeedY1;\r\n\r\n\t\tballX2 += ballSpeedX2;\r\n\t\tballY2 += ballSpeedY2;\r\n\r\n ballX3 += ballSpeedX3;\r\n ballY3 += ballSpeedY3;\r\n\r\n ballX4 += ballSpeedX4;\r\n ballY4 += ballSpeedY4;\r\n\r\n ballX5 += ballSpeedX5;\r\n ballY5 += ballSpeedY5;\r\n\r\n ballX6 += ballSpeedX6;\r\n ballY6 += ballSpeedY6;\r\n\r\n\t\r\n\t\t// left = ballX - ballRadius\r\n\t\t// top = ballY - ballRadius\r\n\t\t// right = ballX + ballRadius\r\n\t\t// bottom = ballY + ballRadius\r\n\r\n // 1st ball\r\n // Detect collision and react\r\n if (ballX1 + ballRadius > xMax) {\r\n ballSpeedX1 = -ballSpeedX1;\r\n ballX1 = xMax - ballRadius;\r\n } else if (ballX1 - ballRadius < xMin) {\r\n ballSpeedX1 = -ballSpeedX1;\r\n ballX1 = xMin + ballRadius;\r\n }\r\n if (ballY1 + ballRadius > yMax) {\r\n ballSpeedY1 = -ballSpeedY1;\r\n ballY1 = yMax - ballRadius;\r\n } else if (ballY1 - ballRadius < yMin) {\r\n ballSpeedY1 = -ballSpeedY1;\r\n ballY1 = yMin + ballRadius;\r\n }\r\n\r\n\t\t// 2nd ball\r\n\t\t// Detect collision and react\r\n\t\tif (ballX2 + ballRadius > xMax) {\r\n\t\t\tballSpeedX2 = -ballSpeedX2;\r\n\t\t\tballX2 = xMax - ballRadius;\r\n\t\t} else if (ballX2 - ballRadius < xMin) {\r\n\t\t\tballSpeedX2 = -ballSpeedX2;\r\n\t\t\tballX2 = xMin + ballRadius;\r\n\t\t}\r\n\t\tif (ballY2 + ballRadius > yMax) {\r\n\t\t\tballSpeedY2 = -ballSpeedY2;\r\n\t\t\tballY2 = yMax - ballRadius;\r\n\t\t} else if (ballY2 - ballRadius < yMin) {\r\n\t\t\tballSpeedY2 = -ballSpeedY2;\r\n\t\t\tballY2 = yMin + ballRadius;\r\n\t\t}\r\n\r\n // 3rd ball\r\n // Detect collision and react\r\n if (ballX3 + ballRadius > xMax) {\r\n ballSpeedX3 = -ballSpeedX3;\r\n ballX3 = xMax - ballRadius;\r\n } else if (ballX3 - ballRadius < xMin) {\r\n ballSpeedX3 = -ballSpeedX3;\r\n ballX3 = xMin + ballRadius;\r\n }\r\n if (ballY3 + ballRadius > yMax) {\r\n ballSpeedY3 = -ballSpeedY3;\r\n ballY3 = yMax - ballRadius;\r\n } else if (ballY3 - ballRadius < yMin) {\r\n ballSpeedY3 = -ballSpeedY3;\r\n ballY3 = yMin + ballRadius;\r\n }\r\n\r\n //4th ball\r\n if (ballX4 + ballRadius > xMax) {\r\n ballSpeedX4 = -ballSpeedX4;\r\n ballX4 = xMax - ballRadius;\r\n } else if (ballX4 - ballRadius < xMin) {\r\n ballSpeedX4 = -ballSpeedX4;\r\n ballX4 = xMin + ballRadius;\r\n }\r\n if (ballY4 + ballRadius > yMax) {\r\n ballSpeedY4 = -ballSpeedY4;\r\n ballY4 = yMax - ballRadius;\r\n } else if (ballY4 - ballRadius < yMin) {\r\n ballSpeedY4 = -ballSpeedY4;\r\n ballY4 = yMin + ballRadius;\r\n }\r\n\r\n //5th ball\r\n if (ballX5 + ballRadius > xMax) {\r\n ballSpeedX5 = -ballSpeedX5;\r\n ballX5 = xMax - ballRadius;\r\n } else if (ballX5 - ballRadius < xMin) {\r\n ballSpeedX5 = -ballSpeedX5;\r\n ballX5 = xMin + ballRadius;\r\n }\r\n if (ballY5 + ballRadius > yMax) {\r\n ballSpeedY5 = -ballSpeedY5;\r\n ballY5 = yMax - ballRadius;\r\n } else if (ballY5 - ballRadius < yMin) {\r\n ballSpeedY5 = -ballSpeedY5;\r\n ballY5 = yMin + ballRadius;\r\n }\r\n\r\n //6th ball\r\n if (ballX6 + ballRadius > xMax) {\r\n ballSpeedX6 = -ballSpeedX6;\r\n ballX6 = xMax - ballRadius;\r\n } else if (ballX6 - ballRadius < xMin) {\r\n ballSpeedX6 = -ballSpeedX6;\r\n ballX6 = xMin + ballRadius;\r\n }\r\n if (ballY6 + ballRadius > yMax) {\r\n ballSpeedY6 = -ballSpeedY6;\r\n ballY6 = yMax - ballRadius;\r\n } else if (ballY6 - ballRadius < yMin) {\r\n ballSpeedY6 = -ballSpeedY6;\r\n ballY6 = yMin + ballRadius;\r\n }\r\n\r\n float dy12 = ballY1 - ballY2;\r\n float dx12 = ballX1 - ballX2;\r\n float distance12 = dy12 * dy12 + dx12 * dx12;\r\n\r\n if (distance12 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX1 = -ballSpeedX1;\r\n ballSpeedX2 = -ballSpeedX2;\r\n }\r\n float dy13 = ballY1 - ballY3;\r\n float dx13 = ballX1 - ballX3;\r\n float distance13 = dy13 * dy13 + dx13 * dx13;\r\n\r\n if (distance13 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX1 = -ballSpeedX1;\r\n ballSpeedX3 = -ballSpeedX3;\r\n }\r\n\r\n float dy14 = ballY1 - ballY4;\r\n float dx14 = ballX1 - ballX4;\r\n float distance14 = dy14 * dy14 + dx14 * dx14;\r\n\r\n if (distance14 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX1 = -ballSpeedX1;\r\n ballSpeedX4 = -ballSpeedX4;\r\n }\r\n\r\n float dy15 = ballY1 - ballY5;\r\n float dx15 = ballX1 - ballX5;\r\n float distance15 = dy15 * dy15 + dx15 * dx15;\r\n\r\n if (distance15 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX1 = -ballSpeedX1;\r\n ballSpeedX5 = -ballSpeedX5;\r\n }\r\n\r\n float dy16 = ballY1 - ballY6;\r\n float dx16 = ballX1 - ballX6;\r\n float distance16 = dy16 * dy16 + dx16 * dx16;\r\n\r\n if (distance16 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX1 = -ballSpeedX1;\r\n ballSpeedX6 = -ballSpeedX6;\r\n }\r\n\r\n float dy23 = ballY2 - ballY3;\r\n float dx23 = ballX2 - ballX3;\r\n float distance23 = dy23 * dy23 + dx23 * dx23;\r\n\r\n if (distance23 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX2 = -ballSpeedX2;\r\n ballSpeedX3 = -ballSpeedX3;\r\n }\r\n\r\n float dy24 = ballY2 - ballY4;\r\n float dx24 = ballX2 - ballX4;\r\n float distance24 = dy24 * dy24 + dx24 * dx24;\r\n\r\n if (distance24 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX2 = -ballSpeedX2;\r\n ballSpeedX4 = -ballSpeedX4;\r\n }\r\n\r\n float dy25 = ballY2 - ballY5;\r\n float dx25 = ballX2 - ballX5;\r\n float distance25 = dy25 * dy25 + dx25 * dx25;\r\n\r\n if (distance25 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX2 = -ballSpeedX2;\r\n ballSpeedX5 = -ballSpeedX5;\r\n }\r\n\r\n float dy26 = ballY2 - ballY6;\r\n float dx26 = ballX2 - ballX6;\r\n float distance26 = dy26 * dy26 + dx26 * dx26;\r\n\r\n if (distance26 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX2 = -ballSpeedX2;\r\n ballSpeedX6 = -ballSpeedX6;\r\n }\r\n\r\n float dy34 = ballY3 - ballY4;\r\n float dx34 = ballX3 - ballX4;\r\n float distance34 = dy34 * dy34 + dx34 * dx34;\r\n\r\n if (distance34 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX3 = -ballSpeedX3;\r\n ballSpeedX4 = -ballSpeedX4;\r\n }\r\n\r\n float dy35 = ballY3 - ballY5;\r\n float dx35 = ballX3 - ballX5;\r\n float distance35 = dy35 * dy35 + dx35 * dx35;\r\n\r\n if (distance35 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX3 = -ballSpeedX3;\r\n ballSpeedX5 = -ballSpeedX5;\r\n }\r\n\r\n float dy36 = ballY3 - ballY6;\r\n float dx36 = ballX3 - ballX6;\r\n float distance36 = dy36 * dy36 + dx36 * dx36;\r\n\r\n if (distance36 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX3 = -ballSpeedX3;\r\n ballSpeedX6 = -ballSpeedX6;\r\n }\r\n\r\n\r\n float dy45 = ballY4 - ballY5;\r\n float dx45 = ballX4 - ballX5;\r\n float distance45 = dy45 * dy45 + dx45 * dx45;\r\n\r\n if (distance45 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX4 = -ballSpeedX4;\r\n ballSpeedX5 = -ballSpeedX5;\r\n }\r\n\r\n float dy46 = ballY4 - ballY6;\r\n float dx46 = ballX4 - ballX6;\r\n float distance46 = dy46 * dy46 + dx46 * dx46;\r\n\r\n if (distance46 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX4 = -ballSpeedX4;\r\n ballSpeedX6 = -ballSpeedX6;\r\n }\r\n\r\n float dy56 = ballY5 - ballY6;\r\n float dx56 = ballX5 - ballX6;\r\n float distance56 = dy56 * dy56 + dx56 * dx56;\r\n\r\n if (distance56 < ((2 * ballRadius) * (2 * ballRadius))) {\r\n\r\n ballSpeedX5 = -ballSpeedX5;\r\n ballSpeedX6 = -ballSpeedX6;\r\n }\r\n\r\n\r\n\r\n collision(playerX, playerY,ballX1,ballY1);\r\n collision(playerX, playerY,ballX2,ballY2);\r\n collision(playerX, playerY,ballX3,ballY3);\r\n collision(playerX, playerY,ballX4,ballY4);\r\n collision(playerX, playerY,ballX5,ballY5);\r\n collision(playerX, playerY,ballX6,ballY6);\r\n\r\n\t}", "@Test\n public void SpecifyBallLocationStopped() {\n WheelObserver wheelObserver = mock(WheelObserver.class);\n RouletteWheel wheel = new RouletteWheel(wheelObserver);\n\n\n long spinFor20s = 20000;\n wheel.spin(spinFor20s);\n wheel.tick(20000);\n\n verify(wheelObserver, times(1)).stopped(anyInt());\n }", "public void act() \n {\n // need to explicitly cast as the World subclass (i.e., Game)\n playField = (Game)getWorld();\n \n // behavior depends on the game status\n if ( playField.getGameStatus() == Status.NOT_PLAYING )\n {\n // don't do anything\n }\n else if ( playField.getGameStatus() == Status.PLAYING )\n {\n move();\n \n /* \n * Check for intersection with the player's paddle \n */\n Paddle possiblePaddle = (Paddle)( getOneObjectAtOffset(-4,0,Paddle.class) );\n if ( possiblePaddle != null )\n {\n // Display debug message\n System.out.printf(\"Ball has intersected with %s\\n\",possiblePaddle.toString());\n \n // compute return angle and increase speed by 10%\n // TODO: Since this code is duplicated elsewhere, I probably \n // should move it into a separate method in this class\n double hitLocation = (this.getExactY()-4.0) - (possiblePaddle.getExactY()-32.0);\n int returnAngle = (int)( 315.0 + (90.0/64.0)*hitLocation );\n getMovement().setDirection( returnAngle );\n getMovement().scale( 1.1 );\n playField.playHighBlip();\n } // end if\n \n /* \n * Check for intersection with the CPU paddle \n */\n CPUPaddle possibleCPUPaddle = (CPUPaddle)( getOneObjectAtOffset(+4,0,CPUPaddle.class) );\n if ( possibleCPUPaddle != null )\n {\n // Display debug message\n System.out.printf(\"Ball has intersected with %s\\n\",possibleCPUPaddle.toString());\n \n // compute return angle and increase speed by 10%\n // TODO: Since this code is duplicated elsewhere, I probably \n // should move it into a separate method in this class\n double hitLocation = (this.getExactY()-4.0) - (possibleCPUPaddle.getExactY()-32.0);\n int returnAngle = (int)( 225.0 - (90.0/64.0)*hitLocation );\n getMovement().setDirection( returnAngle );\n getMovement().scale( 1.1 );\n playField.playHighBlip();\n } // end if\n \n /*\n * If the ball hits the boundary, simply have it reflect off the \n * surface in the opposite Y direction \n */\n Boundary possibleTopBoundary = (Boundary)( getOneObjectAtOffset(0,-4,Boundary.class) );\n Boundary possibleBottomBoundary = (Boundary)( getOneObjectAtOffset(0,4,Boundary.class) );\n if ( possibleTopBoundary != null || possibleBottomBoundary != null )\n {\n getMovement().revertVertical();\n playField.playLowBlip();\n } // end if \n \n // check if the ball has passed the player's paddle\n if ( getExactX() <= 0 )\n {\n playField.updateScore( PLAYER_TWO );\n \n // TODO: Since this code is duplicated elsewhere, I probably \n // should move it into a separate method in this class\n setLocation( playField.GAME_WIDTH / 2, playField.GAME_HEIGHT / 2 );\n getMovement().setNeutral();\n getMovement().add( new Vector( -45 + Greenfoot.getRandomNumber( 90 ), 3.0 ) );\n \n if ( Greenfoot.getRandomNumber( 2 ) == 0 )\n {\n getMovement().revertHorizontal();\n } // end inner if\n \n playField.playLongBeep();\n } // end outer if\n \n // check if the ball has passed the CPU's paddle\n if ( getExactX() >= playField.GAME_WIDTH )\n {\n playField.updateScore( PLAYER_ONE );\n \n // TODO: Since this code is duplicated elsewhere, I probably \n // should move it into a separate method in this class\n setLocation( playField.GAME_WIDTH / 2, playField.GAME_HEIGHT / 2 );\n getMovement().setNeutral();\n getMovement().add( new Vector( -45 + Greenfoot.getRandomNumber( 90 ), 3.0 ) );\n \n if ( Greenfoot.getRandomNumber( 2 ) == 0 )\n {\n getMovement().revertHorizontal();\n } // end inner if\n \n playField.playLongBeep();\n } // end outer if\n \n } \n else if ( playField.getGameStatus() == Status.GAME_OVER )\n {\n playField.removeObject( this );\n } // end multiway if/else\n \n }", "public BouncingBall dartOnBall(int x, int y) {\t\t\n\t\tfor (var ball : balls) {\t\t\t\t\n\t\t\t// Aufgabe 2: Hier herausfinden ob ein Ball getroffen wurde\n\t\t\t// Achten Sie auf den R�ckgabewert. Alles klar?\n\t\t\tvar ellipse = new Ellipse2D.Double(ball.getXPosition(), ball.getYPosition(), ball.getDiameter(), ball.getDiameter());\n\t\t\tif(ellipse.contains(new Point2D.Double(x, y))) {\n\t\t\t\treturn ball;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Ball()\n {\n Random randomSpeed = new Random ();\n xSpeed = randomSpeed.nextInt(7);\n if (xSpeed == 0)\n { xSpeed = randomSpeed.nextInt(7);\n }\n else\n {}\n ySpeed = randomSpeed.nextInt(7);\n if (ySpeed == 0)\n { ySpeed = randomSpeed.nextInt(7);\n }\n else\n {}\n colors = new ArrayList <String>();\n colors.add(new String (\"red\"));\n colors.add(new String (\"blue\"));\n colors.add(new String (\"green\"));\n colors.add(new String (\"cyan\"));\n colors.add(new String (\"magenta\"));\n colors.add(new String (\"yellow\"));\n colors.add(new String (\"pink\"));\n colors.add(new String (\"orange\"));\n Random randomColor = new Random();\n\n int index = randomColor.nextInt(8);\n color = colors.get(index);\n diameter = 35;\n xPosition = leftBound;\n yPosition = upBound;\n ballTouched = null;\n\n draw(); //draws the ball on the screen\n }", "@Test\n void testTrackBallSameY() {\n goalie.setPosition(goalie.getX(),400);\n Vector result =\n goalie.TrackBallSetDirection(new Vector (120f,400), new Vector(-1,0));\n\n // when the goalieY == ballY the direction of movement should evaluate zero\n assertEquals(0, result.getY());\n }", "public void moveOneStep(double dt) {\r\n double movementX = this.p.getX() + dt * this.vel.getDx();\r\n double movementY = this.p.getY() + dt * this.vel.getDy();\r\n Line trajectory = new Line(this.p, new Point(movementX, movementY));\r\n CollisionInfo collInfo = gameE.getClosestCollision(trajectory);\r\n // if there is a collision point collInfo doesn't equal to null.\r\n if (collInfo != null) {\r\n double x = this.getX();\r\n double y = this.getY();\r\n Point collisionPoint = collInfo.collisionPoint();\r\n Collidable obj = collInfo.collisionObject();\r\n Rectangle r = obj.getCollisionRectangle();\r\n // Check if the ball hit on one of the corners block.\r\n if (collisionPoint.getY() == collisionPoint.getX()) {\r\n // If the ball hit on the top corners.\r\n if (collisionPoint.getY() == r.getUpperLeft().getY()\r\n || collisionPoint.getX() == r.getUpperLeft().getX()) {\r\n x = collisionPoint.getX() - this.getSize() - 0.001;\r\n y = collisionPoint.getY() - this.getSize() - 0.001;\r\n // else the ball hit on the bottom corners.\r\n } else {\r\n x = collisionPoint.getX() + this.getSize() + 0.001;\r\n y = collisionPoint.getY() + this.getSize() + 0.001;\r\n }\r\n // Set a new velocity.\r\n this.setVelocity(obj.hit(this, collInfo.collisionPoint(), this.getVelocity()));\r\n this.p = new Point(x, y);\r\n return;\r\n }\r\n\r\n // If the ball hit on the left border block.\r\n if (collisionPoint.getX() == r.getUpperLeft().getX()) {\r\n x = collisionPoint.getX() - this.getSize() - 0.001;\r\n y = collisionPoint.getY();\r\n // If the ball hit on the right border block.\r\n } else if (collisionPoint.getX() == r.getWidth() + r.getUpperLeft().getX()) {\r\n x = collisionPoint.getX() + this.getSize() + 0.001;\r\n y = collisionPoint.getY();\r\n\r\n }\r\n // If the ball hit on the top border block.\r\n if (collisionPoint.getY() == r.getUpperLeft().getY()) {\r\n y = collisionPoint.getY() - this.getSize() - 0.001;\r\n x = collisionPoint.getX();\r\n // If the ball hit on the bottom border block.\r\n } else if (collisionPoint.getY() == r.getHeight() + r.getUpperLeft().getY()) {\r\n y = collisionPoint.getY() + this.getSize() + 0.001;\r\n x = collisionPoint.getX();\r\n }\r\n // set a new velocity.\r\n this.setVelocity(obj.hit(this, collInfo.collisionPoint(), this.getVelocity()));\r\n this.p = new Point(x, y);\r\n // else move the ball one step.\r\n } else {\r\n this.p = this.getVelocity().applyToPoint(this.p, dt);\r\n }\r\n }", "public void trackball(Point from, Point to) {\r\n\t\t// Find the points coordinates on a unit sphere\r\n\t\tdouble fromX = 2 * from.getX() / screenWidth - 1;\r\n\t\tdouble fromY = 1 - 2 * from.getY() / screenHeight;\r\n\t\tdouble tmp = 1 - fromX * fromX - fromY * fromY;\r\n\t\tif (tmp < 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tdouble fromZ = Math.sqrt(tmp);\r\n\t\tdouble toX = 2 * to.getX() / screenWidth - 1;\r\n\t\tdouble toY = 1 - 2 * to.getY() / screenHeight;\r\n\t\ttmp = 1 - toX * toX - toY * toY;\r\n\t\tif (tmp < 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tdouble toZ = Math.sqrt(tmp);\r\n\t\t\r\n\t\t// Find a common perpendicular to be used as the rotation axis\r\n\t\tVec fromVec = new Vec(fromX, fromY, fromZ);\r\n\t\tVec toVec = new Vec(toX, toY, toZ);\r\n\t\tnextRotationAxis = Vec.crossProd(fromVec, toVec);\r\n\t\t\r\n\t\t// Find the rotation angle (in degrees) between the vectors\r\n\t\tnextRotationAngle = Math.acos(Vec.dotProd(fromVec, toVec)) * 180 / Math.PI;\r\n\t}", "@Override\n\tpublic void startAction() {\n\t if (!balls.isEmpty() && firingBall == null) {\n\t gb.addToActiveList(this);\n\t //fire next ball\n\t firingBall = (Ball)balls.remove(0);\n\t firingBall.setAbsorbed(false);\n\t firingBall.setVy(-50*25);\n\t //align balls that are being held\n\t if (!balls.isEmpty()) setBalls();\n\t }\n\t}", "public void CheckCollision(Ball b){\n\n if( b.getDirX() < 0f ){\n if( (b.getPosX() - b.getSizeX() ) < px + sx){\n //if we're in the upper \n if( b.getPosY() > py+sy/2 && b.getPosY() < py+sy){\n b.setDirX(-b.getDirX());\n b.setDirY(b.getDirY() + .25f);\n }\n //if we are in the lower\n else if( b.getPosY() < py-sy/2 && b.getPosY() > py-sy){\n b.setDirX(-b.getDirX());\n b.setDirY(b.getDirY() - .25f); \n }\n else if( b.getPosY() > py-sy && b.getPosY() < py+sy)\n b.setDirX(-b.getDirX());\n b.setVelocity(b.getVelocity() * 1.10f);\n } \n }else{\n if( (b.getPosX() + b.getSizeX() ) > px - sx){\n //if we're in the upper \n if( b.getPosY() > py+sy/2 && b.getPosY() < py+sy){\n b.setDirX(-b.getDirX());\n b.setDirY(b.getDirY() + .25f);\n }\n //if we are in the lower\n else if( b.getPosY() < py-sy/2 && b.getPosY() > py-sy){\n b.setDirX(-b.getDirX());\n b.setDirY(b.getDirY() - .25f); \n }\n else if( b.getPosY() > py-sy && b.getPosY() < py+sy)\n b.setDirX(-b.getDirX());\n b.setVelocity(b.getVelocity() * 1.10f);\n }\n }\n }", "public void startGame() {\n\t\t\n\t\tmyCanvas.setVisible(true);\n\n\t\t// draw the ground\n\t\tmyCanvas.drawLine(50, GROUNDLINE, 550, GROUNDLINE);\n\n\t\t// B�lle erzeugen\n\t\tvar r = new Random();\n\t\t// Aufgabe 6: ein Ball ist nicht genug, oder?\n\t\t// Erweitern Sie die Erzeugung mit Random Zahlen und generieren Sie B�lle in einer Schleife\n\t\tfor(var i = 0; i < 5; ++i) {\n\t\t\tballs.add( new BouncingBall(20 + r.nextInt(80), 100, 20 + r.nextInt(60), new Color(r.nextInt(200)+56,r.nextInt(256),r.nextInt(256)), GROUNDLINE, myCanvas) );\n\t\t}\n\t\t\n\t\t\t\t\t\t\n\t\t// draw every ball in the list\n\t\tfor (BouncingBall ball : balls) {\n\t\t\tball.draw();\n\t\t}\t\t\n\t\t\n\t\t// make them bounce\n\t\tvar finished = false;\n\t\twhile (!finished) {\n\t\t\tmyCanvas.wait(50); // small delay\n\t\t\t\n\t\t\t// move every ball in the list\n\t\t\tfor (BouncingBall ball : balls) {\n\t\t\t\tball.move();\n\t\t\t}\t\t\n\t\t\t\n\t\t\t// stop if a ball has travelled a certain distance on x axis\n\t\t\tfor (BouncingBall ball : balls) {\t\t\t\t\n\t\t\t\tif (ball.getXPosition() >= 550) {\n\t\t\t\t\tfinished = true;\n\t\t\t\t\t// Aufgabe 5: Gameover\n\t\t\t\t\t// ...\n\t\t\t\t\tvar image = new ImageIcon(\"src/app/images/gameover.jpg\").getImage();\n\t\t\t\t\tmyCanvas.drawImage(image, 340, 240);\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t\t\n\t\t\t// Aufgabe 3: Alle B�lle getroffen?\n\t\t\tif (balls.size()==0) {\n\t\t\t\tfinished = true;\n\t\t\t\tvar image = new ImageIcon(\"src/app/images/gewonnen.jpg\").getImage();\n\t\t\t\tmyCanvas.drawImage(image, 340, 240);\n\t\t\t\t// Bild ausgeben, Gewonnen\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// erase every ball from the canvas\n\t\tfor (var ball : balls) {\n\t\t\tball.erase();\n\t\t}\t\t\n\t}", "void addEventPaddle(DefaultPlayer player, DefaultBall ball);", "public void move() {\n if (Math.abs(rx + vx) + radius > 1.0) bounceOffVerticalWall();\n if (Math.abs(ry + vy) + radius > 1.0) bounceOffHorizontalWall();\n rx = rx + vx;\n ry = ry + vy;\n }", "@Override\n public void run() {\n if (player.canKickBall(fsmAI.ball)) {\n player.stateMachine.changeState(new KickBall(player, fsmAI));\n return;\n }\n \n Player nearestToBall = fsmAI.myTeam.getNearestPlayerToBall();\n if (player != nearestToBall && !(nearestToBall instanceof GoalKeeper)) {\n player.stateMachine.changeState(new MoveToHomeRegion(player, fsmAI));\n MessageDispatcher.getInstance().sendMessage(new PursueBallMessage(), nearestToBall);\n }\n }", "Velocity hit(Ball hitter, Point collisionPoint,\r\n Velocity currentVelocity);", "public void moveOneStep() {\n\n //computing the predicted trajectory\n Line trajectory = computeTrajectory();\n\n //checking the borders\n if (reachedBorder(trajectory)) {\n return;\n }\n\n //getting the closest collision info\n //CollisionInfo collisionInfo = this.gameEnvironment.getClosestCollision(trajectory);\n CollisionInfo collisionInfo = this.gameLevel.getEnvironment().getClosestCollision(trajectory);\n\n if (collisionInfo != null && collisionInfo.collisionObject() != null) {\n\n //changing the velocity according to the collision info (point, type of collidiable\n // and position on the collidable)\n Velocity newVelocity =\n collisionInfo.collisionObject().hit(this, collisionInfo.collisionPoint(), this.velocity);\n this.velocity = newVelocity;\n }\n\n //setting the next position of the center of the ball (new velocity after collision)\n this.center = this.getVelocity().applyToPoint(this.center);\n }", "public void move() {\n boolean changeDirection = true;\r\n if (y + y1 < 0) { // We want to change the direction if the ball hits the upper border\r\n y1 = game.speed;\r\n }else if (y + y1 > game.getHeight() - DIAMETER) { // we want to change the direction if the ball hits the lower border\r\n y1 = -game.speed;\r\n }else if (x + x1 < 0) { // Checks if the ball hits the left or right border. If it does, the round ends\r\n score2++;\r\n game.player2Score = score2;\r\n x1 = game.speed;\r\n }else if (x + x1 > game.getWidth() - DIAMETER) {\r\n score1++;\r\n game.player1Score = score1;\r\n x1 = -game.speed;\r\n }else if (collision1()) { // checks if our ball collides with our first racket\r\n x1 = -game.speed;\r\n// y = game.racket1.getTopY() - DIAMETER;\r\n game.speed++;\r\n }else if (collision2()) { // checks if our ball collides with our second racket\r\n x1 = game.speed + 1;\r\n// y = game.racket2.getTopY() + DIAMETER;\r\n// game.speed++;\r\n }else { // if neither of the borders nor the rackets are hit, we don't change our direction of the ball\r\n changeDirection = false;\r\n }\r\n if (changeDirection) { // if the ball hits the border or the racket, the sound of collision is going to play.\r\n Sound.BALL.play();\r\n }\r\n\r\n if (score1 == 3 || score2 == 3) {\r\n game.gameOver(\" Wins!\");\r\n }\r\n x += x1; // helps in moving our ball in x-axis\r\n y += y1; // helps in moving our ball in y-axis\r\n }", "public void onHitRobot(HitRobotEvent e) {\r\n\t\tif(state == 0) {\r\n\t\t\t/* ============== WALL =========== */\r\n\t\t\t\r\n\t\t\t// If he's in front of us, set back up a bit.\r\n\t\t\tif (e.getBearing() > -90 && e.getBearing() < 90) {\r\n\t\t\t\tback(100);\r\n\t\t\t} // else he's in back of us, so set ahead a bit.\r\n\t\t\telse {\r\n\t\t\t\tahead(100);\r\n\t\t\t}\r\n\t\t\t/* ============== WALL =========== */\r\n\t\t}\r\n\t\telse if(state == 1) {\r\n\t\t\tif (e.getBearing() > -10 && e.getBearing() < 10) {\r\n\t\t\t\tfire(2);\r\n\t\t\t}\r\n\t\t\tif (e.isMyFault()) {\r\n\t\t\t\tturnRight(10);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public interface BallListener {\n void ballDied(Ball ball);\n void ballAdded(Ball ball);\n}", "@Override\n public void onScannedRobot(ScannedRobotEvent evt) {\n BotInfo info = getBotInfo(evt.getName());\n info.addVelocity(evt.getVelocity());\n\n // verificar tracking y/o actualizar tracking\n if (getTracking() != null && !evt.getName().equals(tracking)) {\n return;\n }\n if (getTracking() == null) {\n setTracking(evt.getName());\n }\n\n inScannedRobot = true;\n\n double velocity = getVelocity();\n double maxRobotTurn = 10 - .75 * Math.abs(velocity);\n double distance = evt.getDistance();\n double x = getX();\n double y = getY();\n\n double absoluteBearing = getHeading() + evt.getBearing();\n double radarTurn = absoluteBearing - getRadarHeading();\n double gunTurn = absoluteBearing - getGunHeading();\n\n // calcular el giro del robot usando \"centros gravitatorios\" en el objetivo,\n // el centro de la arena, y \n double robotTurn = 0;\n \n GUtil.GravityCenter targetGC = new GUtil.GravityCenter(x, y, absoluteBearing, distance, TARGET_DESIRED_DISTANCE);\n double turnForTarget = targetGC.calculateTurn(x, y, getHeading(), velocity);\n double qt = sigmoid(TARGET_DESIRED_DISTANCE, distance);\n\n // verificar distancia a las esquinas\n double turnForCorner = 0;\n double qc = 0;\n double cornerDistance = Math.min(getBattleFieldHeight(), getBattleFieldWidth()) / 8;\n for (int i = 0; i < cornerGCs.length; i++) {\n GUtil.GravityCenter cgc = cornerGCs[i];\n double dist = cgc.calculateDistance(x, y);\n if (dist < cornerDistance) {\n // estamos muy cerca de la esquina i\n // calcular los giros para las esquinas i-1 e i+1\n qc = sigmoid(cornerDistance, dist);\n int ni = i < cornerGCs.length - 1 ? i + 1 : 0;\n int pi = i > 0 ? i - 1 : cornerGCs.length - 1;\n double nturn = cornerGCs[ni].calculateTurn(x, y, getHeading(), velocity);\n double pturn = cornerGCs[pi].calculateTurn(x, y, getHeading(), velocity);\n if (Math.abs(nturn) < Math.abs(pturn)) {\n turnForCorner = nturn;\n } else {\n turnForCorner = pturn;\n }\n break;\n }\n }\n\n if (qc > .2 || getOthers() <= 1) {\n robotTurn = qc * turnForCorner + (1 - qc) * turnForTarget;\n } else {\n double turnForCenter = centerGC.calculateTurn(x, y, getHeading(), velocity);\n double dist2Center = centerGC.calculateDistance(x, y);\n double q = sigmoid(centerGC.getDesiredDistance(), dist2Center);\n if (q > qt) {\n robotTurn = (1 - q) * turnForTarget + q * turnForCenter;\n } else {\n robotTurn = qt * turnForTarget + (1 - qt) * turnForCenter;\n }\n }\n \n gunTurn = GUtil.normalRelativeAngle(gunTurn);\n radarTurn = GUtil.normalRelativeAngle(radarTurn);\n\n // signo de radar turn, para que si con el próximo giro no logramos un \n // scan del objetivo, el giro en onStatus() sí lo alcance\n scanSign = radarTurn < 0 ? -1 : 1;\n\n // calcular la potencia de disparo si podemos disparar\n // recalcular gunTurn también usando una técnica lineal simple\n double power = 0.0;\n if (getGunHeat() == 0) {\n power = Math.min(3.0, getEnergy() / 10);\n power = Math.min(power, evt.getEnergy() / 4);\n\n if (distance > MAX_POWER_DISTANCE) {\n power = (power - .1) * Math.exp((MAX_POWER_DISTANCE - distance) / POWER_DISTANCE_DECAY) + .1;\n }\n power = Math.max(power, .1);\n\n if (evt.getEnergy() > 0) {\n // gunTurn tiene el ángulo head-on; calcular otro ángulo usando una \n // técnica lineal\n double bulletSpeed = 20.0 - 3 * power;\n double enemyVelocity = info.getAverageVelocity();\n out.printf(\"Enemy velocity %.2f\\n\", enemyVelocity);\n double linearGunTurn = Math.toRadians(gunTurn) + (enemyVelocity * Math.sin(evt.getHeadingRadians() - Math.toRadians(absoluteBearing)) / (bulletSpeed * 1.0));\n linearGunTurn = GUtil.normalRelativeAngle(Math.toDegrees(linearGunTurn));\n gunTurn = linearGunTurn;\n }\n }\n\n // si podemos disparar, hacerlo lo más pronto posible\n boolean doFire = false;\n if (getGunHeat() == 0 && Math.abs(gunTurn) < 20) {\n doFire = true;\n }\n\n if (!doFire && velocity == 0) {\n // dar la oportunidad de iniciar el movimiento si estamos trackeando\n // a menos que estemos muy mal orientados\n if (Math.abs(robotTurn) > 2 * maxRobotTurn) {\n // si estamos mal orientados, permitir todo el giro antes de empezar a movernos\n maxRobotTurn = Math.abs(robotTurn);\n } else {\n inScannedRobot = false;\n return;\n }\n }\n\n // ajustar el radarTurn para un wide lock\n //double arcToScan = Math.min(Math.atan(3 * 36.0 / evt.getDistance()), Math.PI / 4.0);\n //radarTurn += (radarTurn < 0) ? -arcToScan : arcToScan;\n\n boolean gunForRobot = true;\n if (Math.signum(robotTurn) == Math.signum(gunTurn) && Math.abs(robotTurn) <= Math.abs(gunTurn)) {\n gunForRobot = false;\n }\n setAdjustGunForRobotTurn(gunForRobot);\n\n boolean radarForGun = true;\n if (Math.signum(gunTurn) == Math.signum(radarTurn)) {\n radarForGun = false;\n }\n setAdjustRadarForGunTurn(radarForGun);\n\n //out.format(\"[%04d] radarTurn: %6.2f, gunTurn: %6.2f, robotTurn: %6.2f\\n\",\n // getTime(), radarTurn, gunTurn, robotTurn);\n\n if (!doFire && Math.abs(robotTurn) > maxRobotTurn / 3) {\n if (Math.abs(robotTurn) > maxRobotTurn) {\n robotTurn = maxRobotTurn * Math.signum(robotTurn);\n }\n turnRight(robotTurn);\n if (!gunForRobot) {\n gunTurn -= robotTurn;\n if (!radarForGun) {\n radarTurn -= robotTurn;\n }\n }\n }\n\n double targetArc = Math.min(Math.atan(36.0 / distance), Math.PI / 4.0);\n if (!(Utils.isNear(gunTurn, 0.0) || (doFire && Math.abs(gunTurn) < targetArc))) {\n if (Math.abs(gunTurn) > 20) {\n gunTurn = 20 * Math.signum(gunTurn);\n }\n turnGunRight(gunTurn);\n if (!radarForGun) {\n if (Math.abs(gunTurn) > Math.abs(radarTurn)) {\n radarTurn = 0;\n } else {\n radarTurn -= gunTurn;\n }\n }\n }\n if (doFire) {\n out.printf(\"Fire power %.2f\\n\", power);\n fire(power);\n }\n\n if (!Utils.isNear(radarTurn, 0.0)) {\n turnRadarRight(radarTurn);\n }\n\n inScannedRobot = false;\n }", "public void RobotLoop() {\n if (mOperatorInterface.getVisionToggle()) {\n toggleVision();\n }\n\n mShooter.updateDistance(LastDistance);\n\n turretLoop();\n\n driveTrainLoop();\n\n updateSmartDashboard();\n\n State prevState = mState;\n IntakeState prevIntakeState = mIntakeState;\n ClimbingState prevClimbState = mClimbingState;\n ShootingState prevShootState = mShootingState;\n executeRobotStateMachine();\n if (prevState != mState) {\n mRobotLogger.log(\"Changed state to \" + mState);\n }\n if (prevIntakeState != mIntakeState) {\n mRobotLogger.log(\"Changed state to \" + mIntakeState);\n }\n if (prevClimbState != mClimbingState) {\n mRobotLogger.log(\"Changed state to \" + mClimbingState);\n }\n if (prevShootState != mShootingState) {\n mRobotLogger.log(\"Changed state to \" + mShootingState);\n }\n\n if (mOperatorInterface.getStateReset()) {\n mState = State.INTAKE;\n mIntakeState = IntakeState.IDLE;\n mClimbingState = ClimbingState.IDLE;\n mShootingState = ShootingState.IDLE;\n if (mState == State.SHOOTING) {\n mShootingState = ShootingState.SHOOTING_COMPLETE;\n }\n if (mState == State.INTAKE) {\n mIntakeState = IntakeState.IDLE;\n }\n }\n\n if (mOperatorInterface.isBarf()) {\n if (mIntakeState == IntakeState.STORAGE_EJECT) {\n mIntakeState = IntakeState.IDLE;\n } else {\n mIntakeState = IntakeState.STORAGE_EJECT;\n mBarfTimer.reset();\n mBarfTimer.start();\n }\n }\n\n // TODO: REMOVE THIS IT SHOULDNT BE HERE\n // check if we are shooting\n // TODO: remove this and only allow shooting if you have at least 1 ball\n checkTransitionToShooting();\n\n updateSmartDashboard();\n\n if (mOperatorInterface.getSpinUp()) {\n sIsSpinningUp = !sIsSpinningUp;\n }\n\n // spin up shooter if commanded\n if (sIsSpinningUp) {\n mShooter.start();\n } else if (mState != State.SHOOTING) {\n mShooter.stop();\n }\n\n // Shooter velocity trim\n if (mShooterVelocityTrimDown.update(mOperatorInterface.getShooterVelocityTrimDown())) {\n // mShooter.decreaseVelocity();\n } else if (mShooterVelocityTrimUp.update(mOperatorInterface.getShooterVelocityTrimUp())) {\n // mShooter.increaseVelocity();\n } else if (mOperatorInterface.getResetVelocityTrim()) {\n mShooter.resetVelocity();\n }\n }", "void addBallObject() {\n\t\tint ballObjectHeight = ScreenManager.getSizeFromPercentageOfWindowY((float) 10.0);\n\t\tint ballObjectWidth = ballObjectHeight;\n\t\t\n\t\t// Spawning BallObject on the racket\n\t\tint ballObjectX = (int) (racketObject.getX() + (racketObject.width/4.0));\n\t\tint ballObjectY = (int) racketObject.getY() - ballObjectHeight;\n\t\t\n\t\t// BallObject's mass\n\t\tfloat ballObjectMass = (float) 1.075;\n\t\t\n\t\t// Ball velocity X\n\t\tint ballObjectDistanceFromRacketX = -35*(racketObject.getCenterOfWidth() - mouseX);\n\t\tint ballObjectVelocityX = (int) ballObjectDistanceFromRacketX/ScreenManager.getWindowWidth();\n\t\t\n\t\t// Ball velocity Y\n\t\tint ballObjectDistanceFromRacketY = (int) (-35*((racketObject.getY() + racketObject.getHeight()) - mouseY));\n\t\tint ballObjectVelocityY = (int) ballObjectDistanceFromRacketY/ScreenManager.getWindowHeight();\n\t\t\n\t\tballObjects.add(new BallObject(ballObjectX, ballObjectY, ballObjectWidth, ballObjectHeight, ballObjectGravity, ballObjectMass, ballObjectVelocityX, ballObjectVelocityY));\n\t\t\n\t\t// Reduces the amount of time left by 5 seconds\n\t\tMainPanel.gameDuration -= 5;\n\t}", "private boolean isBallCollideCelling(GOval ball) {\n return ball.getY() <= 0;\n }", "public void checkForBounce()\n {\n if (isTouching(mid.class)){\n \n bounce = 1;\n \n \n }\n \n \n \n \n if (getY() <= 0 || getY() >= getWorld().getHeight() -1 )\n {\n \n dY = -dY;\n \n }\n \n \n if(isTouching(Pad1.class )){\n \n if (bounce == 1){\n \n \n Greenfoot.playSound(\"paddleHit.wav\"); \n dX = -dX;\n bounce = 0;\n change(); \n }\n \n \n }\n \n \n \n }", "private void move() {\n if(this.movement[0]) {\n moveRight();\n } else {\n moveLeft();\n }\n if(this.movement[1]) {\n moveDown();\n } else {\n moveUp();\n }\n\n //Checking boundaries of the game\n if(this.XPosition + this.ballWidth > instance.getWidth()) {\n this.movement[0] = false;\n } else if(XPosition <= 0) {\n this.movement[0] = true;\n } else if(YPosition <= 0) {\n this.movement[1] = true;\n } else if(YPosition + ballHeight >= instance.getHeight()) {\n instance.missedBall();\n if (instance.getBalls() > 0){\n this.lostLife.play();\n }\n this.XPosition = instance.getWidth() / 2;\n this.YPosition = instance.getHeight() - 43;\n this.movement[1] = false;\n Player.setPlayerX((instance.getWidth() - 111) / 2);\n Player.setPlayerY(instance.getHeight() - 19);\n instance.isPaused(true);\n }\n\n if (this.boundingBox.intersects(this.playerBoundingBox)){\n Rectangle leftHalfOfPlayer = new Rectangle((int)this.playerBoundingBox.getWidth() / 2, (int)this.playerBoundingBox.getHeight(),\n this.playerBoundingBox.x, this.playerBoundingBox.y);\n this.movement[0] = !this.boundingBox.intersects(leftHalfOfPlayer);\n this.movement[1] = false;\n } else {\n // Check if ball collides with brick;\n for (Bricks[] bricks : instance.getBricks()){\n for (Bricks brick: bricks){\n if (brick.collidesWith(new Rectangle(this.XPosition , this.YPosition , this.ballWidth , this.ballHeight))){\n Rectangle iRect = brick.brickHitBox.intersection(this.boundingBox);\n brick.destroy();\n //Sound brickBreak = new Sound(\"res/Break-Sound.wav\");\n this.brickBreak.play();\n // make logic\n this.movement[1] = true;\n if ((this.boundingBox.x+(this.boundingBox.width/2))<(iRect.x+(iRect.width/2))) {\n this.movement[0] = false;\n }\n if ((this.boundingBox.x+(this.boundingBox.width/2))>(iRect.x+(iRect.width/2))) {\n this.movement[0] = true;\n }\n if ((this.boundingBox.y+(this.boundingBox.height/2))<(iRect.y+(iRect.height/2))) {\n this.movement[1] = false;\n }\n }\n }\n }\n\n }\n\n }", "void lostBall()\n {\n currentBall = null;\n }", "public void setUpBall(){\n new OrangeBall().setUpOrangeBall();\n }", "private void translate(Ball ball, double timeDelta) {\n\n /*\n * The point of indexing into the arrays rather than, for example, using\n * Ball ball=this.getBallWithMinCollisionTime(ball, timeDelta) is that\n * we want the elements of the array to mutate if need be.\n */\n int gadgetIndex = this.getGadgetWithMinCollisionTime(ball, timeDelta);\n int ballIndex = this.getBallWithMinCollisionTime(ball, timeDelta);\n // If any gadgets are triggered, they will be kept track of with this\n // and then their actions called.\n Gadget[] triggeredGadgets = new Gadget[] {};\n // If the ball won't collide with a Gadget within timeDelta.\n if (gadgetIndex == this.gadgets.length) {\n // If the ball won't collide with a Ball within timeDelta.\n if (this.balls.length == ballIndex) {\n this.moveWithoutCollision(ball, timeDelta);\n }\n // If the ball will collide with a Ball within timeDelta.\n else {\n double ballTime = Geometry.timeUntilBallBallCollision(\n ball.getCircle(), ball.getVelocity(),\n this.balls[ballIndex].getCircle(),\n this.balls[ballIndex].getVelocity());\n this.moveWithoutCollision(ball, ballTime);\n this.moveWithoutCollision(this.balls[ballIndex], ballTime);\n this.makeBallsCollide(ball, this.balls[ballIndex]);\n }\n }\n // If the ball will possibly collide with a Gadget within timeDelta.\n else {\n double gadgetTime = this.gadgets[gadgetIndex].getMinCollisionTime(ball);\n // If the ball won't collide with a Ball within timeDelta.\n if (this.balls.length == ballIndex) {\n this.moveWithoutCollision(ball, gadgetTime);\n Vect priorVel=ball.getVelocity();\n this.gadgets[gadgetIndex].interactWithBall(ball);\n Vect afterVel =ball.getVelocity();\n if (afterVel.equals(priorVel)){\n throw new RuntimeErrorException(null, \"interaction failed\");\n }\n\n triggeredGadgets = this.gadgets[gadgetIndex].trigger();\n\n }\n // If the ball will possibly collide with both a ball and a Gadget.\n else {\n double ballTime = Geometry.timeUntilBallBallCollision(\n ball.getCircle(), ball.getVelocity(),\n this.balls[ballIndex].getCircle(),\n this.balls[ballIndex].getVelocity());\n\n // For now avoiding the case that a ball will hit a ball and\n // gadget at the same time.\n if (gadgetTime < ballTime) {\n\n this.moveWithoutCollision(ball, gadgetTime);\n this.gadgets[gadgetIndex].interactWithBall(ball);\n triggeredGadgets = this.gadgets[gadgetIndex].trigger();\n\n } else {\n this.moveWithoutCollision(ball, ballTime);\n this.moveWithoutCollision(this.balls[ballIndex], ballTime);\n this.makeBallsCollide(ball, this.balls[ballIndex]);\n }\n }\n }\n if (triggeredGadgets.length != 0) {\n\n this.triggerGadgets(triggeredGadgets);\n }\n // If the ball isn't done moving, make sure it keeps moving\n if (!Util.doublesAreEqual(ball.getTime(), 0)) {\n this.translate(ball, ball.getTime());\n }\n }", "public void ballVSbrick(Ball bb, Brick br) {\n Rectangle bb_box = new Rectangle(bb.getX(), bb.getY(), bb.getWidth(), bb.getHeight());\r\n Rectangle br_box = new Rectangle(br.getX(), br.getY(), br.getWidth(), br.getHeight());\r\n\r\n if (bb_box.intersects(br_box)) {\r\n //collision\r\n if (bb.getVX() < 0 && bb.getVY() < 0) {//-x,-y\r\n bb.setVY(bb.getVY() * -1);\r\n //remove brick\r\n //totalBricks.get(i)\r\n }//Inconsistent with collision\r\n else if (bb.getVX() > 0 && (bb.getVY() > 0)) {//+x,+y\r\n bb.setVY(bb.getVY() * -1);\r\n }//works\r\n else if (bb.getVX() < 0 && (bb.getVY() > 0)) {//-x,+y\r\n bb.setVY(bb.getVY() * -1);\r\n }//also inconsistent with collision\r\n else if(bb.getVX()>0 && bb.getVY()<0){//+x,-y\r\n bb.setVY(bb.getVY()*-1);\r\n }\r\n }\r\n if (totalBricks.isEmpty()) {\r\n this.setCleared(true);\r\n }\r\n //when the ball hits a brick\r\n //remove the brick\r\n //update velocity of ball\r\n\r\n }", "public abstract void interagir (Robot robot);", "public boolean isCollision(Ball ob) { // Kollisionsabfrage\r\n\t\t\r\n\t\tdX = posX - ob.getPosX();\r\n\t\tdY = posY - ob.getPosY();\r\n\t\tfloat vector = dX * dX + dY * dY;\r\n\t\tfloat hypo = radius * radius * 4;\r\n\t\tif (hypo >= vector) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@EventHandler\n public void ballInteractEvent(BallInteractEvent event) {\n final Game game;\n if ((game = this.controller.getGameFromBall(event.getBall())) != null) {\n final GameEntity entity = (GameEntity) game;\n if (entity.ballPreviousCacheLocation != null && entity.ballPreviousCacheLocation.distance(event.getBall().getLocation().toVector()) < 2) {\n entity.ballCornerBumper++;\n } else {\n entity.ballCornerBumper = 0;\n }\n if (entity.ballCornerBumper >= 3) {\n final Vector direction = entity.arena.getBallSpawnLocation().toVector().subtract(event.getBall().getLocation().toVector());\n int x = 1;\n int z = 1;\n if (direction.getX() < 0)\n x = -1;\n if (direction.getZ() < 0)\n z = -1;\n event.getBall().teleport(new Location(event.getBall().getLocation().getWorld(), event.getBall().getLocation().getX() + x, event.getBall().getLocation().getY(), event.getBall().getLocation().getZ() + z));\n entity.ballCornerBumper = 0;\n }\n entity.ballPreviousCacheLocation = event.getBall().getLocation().toVector();\n if (entity.blueTeam.contains(event.getPlayer())) {\n entity.lastHitTeam = Team.BLUE;\n } else {\n entity.lastHitTeam = Team.RED;\n }\n entity.lastHit = event.getPlayer();\n }\n }", "void ballState(boolean hasBall, String ballPlayer) {\n if (hasBall) {\n hasBallLabel.setText(\"You have the ball\");\n hasBallLabel.setForeground(Color.RED);\n updateComboBox();\n } else {\n hasBallLabel.setText(ballPlayer + \" has the ball\");\n hasBallLabel.setForeground(Color.BLACK);\n }\n menuPlayersComboBox.setEnabled(hasBall);\n menuThrowButton.setEnabled(hasBall);\n menuRefreshButton.setEnabled(hasBall);\n }", "@Override\n public void teleopPeriodic() {\n \n boolean targetFound = false; \n int Xpos = -1; int Ypos = -1; int Height = -1; int Width = -1; Double objDist = -1.0; double []objAng = {-1.0,-1.0};\n\n //Getting the number of blocks found\n int blockCount = pixy.getCCC().getBlocks(false, Pixy2CCC.CCC_SIG1, 25);\n\t\tSystem.out.println(\"Found \" + blockCount + \" blocks!\"); // Reports number of blocks found\n\t\tif (blockCount <= 0) {\n System.err.println(\"No blocks found\");\n }\n ArrayList <Block> blocks = pixy.getCCC().getBlocks();\n Block largestBlock = null;\n\n //verifies the largest block and store it in largestBlock\n for (Block block:blocks){\n if (block.getSignature() == Pixy2CCC.CCC_SIG1) {\n\n\t\t\t\tif (largestBlock == null) {\n\t\t\t\t\tlargestBlock = block;\n\t\t\t\t} else if (block.getWidth() > largestBlock.getWidth()) {\n\t\t\t\t\tlargestBlock = block;\n }\n\t\t\t}\n }\n //loop\n while (pixy.getCCC().getBlocks(false, Pixy2CCC.CCC_SIG1, 25)>=0 && ButtonLB){\n\n if (largestBlock != null){\n targetFound = true; \n Xpos = largestBlock.getX();\n Ypos = largestBlock.getY();\n Height = largestBlock.getHeight();\n Width = largestBlock.getWidth();\n\n objDist = RobotMap.calculateDist((double)Height, (double)Width, (double)Xpos, (double)Ypos);\n objAng = RobotMap.calculateAngle(objDist, Xpos, Ypos);\n \n }\n //print out values to Dashboard\n SmartDashboard.putBoolean(\"Target found\", targetFound);\n SmartDashboard.putNumber (\"Object_X\", Xpos);\n SmartDashboard.putNumber (\"Object_Y\", Ypos);\n SmartDashboard.putNumber (\"Height\", Height);\n SmartDashboard.putNumber(\"Width\", Width);\n SmartDashboard.putNumber (\"Distance\", objDist);\n SmartDashboard.putNumber(\"X Angle\", objAng[0]);\n SmartDashboard.putNumber(\"Y Angle\", objAng[1]);\n }\n }", "public void run() {\n while (canPlay) {\n // Get ball position and speed\n double ballX = myBall.getX();\n double ballY = myBall.getY();\n double ballVx = myBall.getVx();\n double ballVy = myBall.getVy();\n // Track the ball if it is on the agent's side coming towards him\n if (ballVx < 0 && ballX < (ppPaddleXinit + ppAgentXinit) / 2) {\n // Find linear approximation of ball's Y position when it reaches the paddle's X position\n double predictedY = ballVy / ballVx * (getX() - ballX) + ballY;\n myTable.getDisplay().pause(AGENTLAG);\n setY(predictedY);\n }\n // Update paddle parameters\n updateParams();\n // Time has to be translated to ms\n myTable.getDisplay().pause(TICK * TIMESCALE);\n }\n }", "public aBall(double Xi,double Yi, double Vo, double theta, double bSize, Color bColor, double loss, bSim link) {\r\n\t\tthis.Xi = Xi; \t\t\t\t\t//Get simulation parameters\r\n\t\tthis.Yi = Yi;\r\n\t\tthis.Vo = Vo;\r\n\t\tthis.theta = theta;\r\n\t\tthis.bSize = bSize;\r\n\t\tthis.bColor = bColor;\r\n\t\tthis.loss = loss; \r\n\t\tthis.link = link;\r\n\t\tthis.SIMRunning = true;\r\n\t\t\r\n\t\tthis.left=null;\r\n\t\tthis.right= null;\r\n\t\t\r\n\t\t\r\n\t\tmyBall = new GOval(Xi*SCALE,Yi*SCALE,2*bSize*SCALE,2*bSize*SCALE); \r\n\t\tmyBall.setFilled(true);\r\n\t\tmyBall.setFillColor(bColor);\r\n\t\t}", "public void act(){\n if (alive) {\n x = x + vx * dt;\n vx = vx * (1. - daempfung); //Luftwiderstand, eventuell muss dass nur in der Spielerklasse implementiert\n //werden, damit die Pilze nicht abgebremst werden.\n if (bewegung == Bewegung.fallen) {\n y = y + vy * dt;\n vy = vy + g * dt;\n }\n }\n }", "void think() {\n //get the output of the neural network\n decision = brain.output(vision);\n\n if (decision[0] > 0.8) {//output 0 is boosting\n boosting = true;\n } else {\n boosting = false;\n }\n if (decision[1] > 0.8) {//output 1 is turn left\n spin = -0.08f;\n } else {//cant turn right and left at the same time\n if (decision[2] > 0.8) {//output 2 is turn right\n spin = 0.08f;\n } else {//if neither then dont turn\n spin = 0;\n }\n }\n //shooting\n if (decision[3] > 0.8) {//output 3 is shooting\n shoot();\n }\n }", "public BoxBall(int xPos, int yPos, int ballDiameter, Color ballColor,\n int groundPos1, int groundPos2, int groundPos3, int groundPos4, Canvas drawingCanvas)\n {\n xPosition = xPos; // Initial position\n yPosition = yPos; // Initial position\n color = ballColor;\n diameter = ballDiameter;\n groundPositionX1 = groundPos1;\n groundPositionY1 = groundPos2;\n groundPositionX2 = groundPos3;\n groundPositionY2 = groundPos4;\n canvas = drawingCanvas; \n \n Random aleatorio = new Random();\n int y = aleatorio.nextInt(2);\n if(y == 0){\n ySpeed = -ySpeed;\n }\n int x = aleatorio.nextInt(2);\n if(x == 0){\n xSpeed = -xSpeed;\n }\n }", "@Override\n public void robotPeriodic() {\n\n boolean c = mGPM.haveCargo();\n \n // Need signal due to distance for assurance that cargo is obtained/\n if (c) {\n CargoLight.set(Value.kOn);\n } else{\n CargoLight.set(Value.kOff);\n }\n }", "private void wentOffWall() {\n //random location\n b.numX = r.nextInt(2400) + 100;\n b.numY = r.nextInt(1400) + 100;\n //random speed\n b.xSpeed = this.newSpeed();\n b.ySpeed = this.newSpeed();\n }", "public void moveBallTo(int x, int y)\n {\n currentBallX = x;\n currentBallY = y;\n }", "private void updatePos() {\n var ballBounds = ball.getMesh().getRelativeRectangleBounds().getBounds2D();\n var hookBallBounds = hook.getHookBall().getMesh().getRelativeRectangleBounds().getBounds2D();\n var ballCenter = new Vector2(ballBounds.getCenterX(), ballBounds.getCenterY());\n var hookBallCenter = new Vector2(hookBallBounds.getCenterX(), hookBallBounds.getCenterY());\n fullDirection = hookBallCenter.subtracted(ballCenter);\n var oposDir = ballCenter.subtracted(hookBallCenter).normalized();\n oposDir.multiplyBy(hookBallBounds.getWidth() / 2);\n hookBallCenter.add(oposDir);\n direction = hookBallCenter.subtracted(ballCenter);\n getTransform().setPosition(ballCenter);\n getTransform().setRotation(GeometryHelper.vectorToAngle(hookBallCenter.subtracted(ballCenter)));\n getTransform().translate(0, -GameSettings.ROPE_HEIGHT / 2 - 1);\n }", "@Override\n public void run() {\n try {\n while (true) {\n /*---------------For Moving ball-----------------*/\n if (isPause) {\n synchronized (this) {\n\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n if (xcircle > 1900) {\n i = (int) ((Math.random() * 1000) % 30);\n flag2 = 1;\n\n }\n if (xcircle < 20) {\n i = (int) ((Math.random() * 1000) % 30);\n flag2 = 0;\n }\n if (ycircle >= 972) {\n /*i=(int) ((Math.random()*1000)%30);\n\t\t\t\tflag=0;*/\n if (xcircle > x && xcircle < x + 200) {\n /* ball hits bar !!! well done */\n i = (int) ((Math.random() * 1000) % 30);\n flag = 0;\n Score += 10;\n } else {\n System.out.println(\"XCircle = \" + xcircle + \" and xbar = \" + x);\n System.out.println(\"Sorry ... You lose !!!\");\n new ScoreScreen(Score);\n break;\n }\n }\n if (ycircle < 60) {\n i = (int) ((Math.random() * 1000) % 30);\n flag = 1;\n }\n if (flag2 == 0) {\n xcircle += i;\n } else {\n xcircle -= i;\n }\n if (flag == 0) {\n ycircle -= 30 - i;\n } else {\n ycircle += 30 - i;\n }\n\n /*---------------For Moving bottom bar--------------\n\t\t\tif(x<30)\n\t\t\t{\n\t\t\t\tflag3=0;\n\t\t\t}\n\t\t\tif(x>1700){\n\t\t\t\tflag3=1;\n\t\t\t}\n\t\t\tif(flag3==0)\n\t\t\t{\n\t\t\t\tx+=10;\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx-=10;\t\n\t\t\t}*/\n Thread.sleep(50);\n\n repaint();\n }\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n\t\t\n\t//2. create an array of 5 robots.\n\tRobot[] robs = new Robot[5];\n\t//3. use a for loop to initialize the robots.\n\tfor (int i = 0; i < robs.length; i++) {\n\t\t\trobs[i] = new Robot();\n\t\t\trobs[i].setX(100 * i + 100);\n\t\t\trobs[i].setY(500);\n\t\t\trobs[i].setSpeed(10);\n\t}\n\t\t//4. make each robot start at the bottom of the screen, side by side, facing up\n\t\t\n\t//5. use another for loop to iterate through the array and make each robot move \n\t// a random amount less than 50.\n\tfor (int i = 0; i < robs.length; i++) {\n\t\tRandom rnd = new Random();\n\t\trobs[i].move(rnd.nextInt(50)+1);\n\t}\n\t//6. use a while loop to repeat step 5 until a robot has reached the top of the screen.\n\tboolean notwon = true;\n\tint winner = -250;\n\twhile(notwon) {\n\t\tfor (int i = 0; i < robs.length; i++) {\n\t\t\tRandom rnd = new Random();\n\t\t\trobs[i].move(rnd.nextInt(50)+1);\n\t\t}\n\t\tfor (int i = 0; i < robs.length; i++) {\n\t\t\tif (notwon && winner == -250 && robs[i].getY() <= 72) {\n\t\t\t\twinner = i;\n\t\t\t\tnotwon = false;\n\t\t\t}\n\t\t}\n\t}\n\t\n\trobs[winner].sparkle();\n\t//7. declare that robot the winner and throw it a party!\n\t\n\t//8. try different races with different amounts of robots.\n\n\t//9. make the robots race around a circular track.\n}", "Robot getRobot(Position pos);", "public abstract void interagir(Robot robot);", "public void autoUpdate()\n {\n if(distanceSensor.checkDistance() < 300 && myRobot.getAutoDrive())\n {\n activateDumpSolenoid(forward);\n myRobot.setAutoDoneTrue();\n }\n\n //closes the ball tray after doing autonomous\n if(distanceSensor.checkDistance() > 900 && myRobot.getAutoDrive())\n {\n activateDumpSolenoid(reverse);\n }\n }", "@Override\n\tpublic void onScannedRobot(ScannedRobotEvent e)\n\t{\n\t\tif(this.running)\n\t\t{\n\n\t\t\tdouble angleToEnemy = e.getBearing();\n\t\t\tdouble angleToEnemyRadians = e.getBearingRadians();\n\t\n\t // Calculate the angle to the scanned robot\n\t \tdouble angle = Math.toRadians((this.robotStatus.getHeading() + angleToEnemy) % 360);\n\t\n\t // Calculate the coordinates of the robot\n\t \tdouble enemyX = (this.robotStatus.getX() + Math.sin(angle) * e.getDistance());\n\t \tdouble enemyY = (this.robotStatus.getY() + Math.cos(angle) * e.getDistance());\n\t \tdouble enemyDistance = e.getDistance();\n\t \t\n\t \t//Saving enemy position variables in a list of object class.\n\t \t//Only enemy positions from different quadrants, that were never reached will be saved.\n\t \tif((getQuadrant(getX(), getY()) != getQuadrant(enemyX, enemyY)) && (!quadrants.contains((double)getQuadrant(enemyX, enemyY))))\n\t\t\t\tthis.positions.add(new Position<Double>(enemyX, enemyY, enemyDistance, angleToEnemyRadians));\n\t\t}\n\t}", "public void shape() {\n\t\tSystem.out.println(\"super robot입니다. 팔, 다리, 몸통, 머리가 있습니다.\");\r\n\t}" ]
[ "0.7387581", "0.6863364", "0.67338574", "0.661107", "0.65557057", "0.65513134", "0.6536858", "0.651921", "0.64843506", "0.6474607", "0.64686406", "0.64152104", "0.6404706", "0.63792324", "0.6365752", "0.63600326", "0.6335306", "0.6332299", "0.6318963", "0.6260992", "0.625714", "0.6252621", "0.62162995", "0.62073034", "0.6200775", "0.61922145", "0.6187383", "0.61846364", "0.6182152", "0.6153252", "0.6138789", "0.6129006", "0.612868", "0.6116247", "0.60955846", "0.6086127", "0.6082158", "0.6079659", "0.6054647", "0.6048786", "0.60464245", "0.6038319", "0.60244435", "0.6020864", "0.6020264", "0.6019367", "0.6019118", "0.59980464", "0.59917337", "0.5987731", "0.5985762", "0.59804606", "0.5969596", "0.5961281", "0.59604985", "0.59387577", "0.59336835", "0.59257245", "0.5910256", "0.5896796", "0.58865714", "0.588554", "0.5883532", "0.58803385", "0.58742076", "0.58675426", "0.5866072", "0.5862105", "0.58580035", "0.584926", "0.58440554", "0.58418095", "0.58417004", "0.5840616", "0.5828209", "0.5827645", "0.58177143", "0.58091277", "0.5808471", "0.58038145", "0.58033514", "0.5802165", "0.57976663", "0.5791509", "0.5783671", "0.57828873", "0.5775001", "0.57700205", "0.5763985", "0.5762205", "0.5757239", "0.57550526", "0.57494926", "0.57479423", "0.5732839", "0.5728614", "0.5723448", "0.57198656", "0.57187617", "0.57186854" ]
0.64114493
12
returns true when the Robot detects a ball
public boolean ballDetected() { usSampleProvider.fetchSample(usData, 0); usDistance = (double)(usData[0]*100.0); //while the robot isn't seeing an object while (usDistance>100) { mainMotorSetSpeeds(normalSpeed,normalSpeed); mainLeftMotor.forward(); mainRightMotor.forward(); } mainLeftMotor.stop(); mainRightMotor.stop(); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isAround(Ball ball)\n {\n int delta = 10;\n Rectangle2D rectangle = new Rectangle2D.Double(mPosition.getX() - delta, mPosition.getY() - delta, 2 * delta, 2 * delta);\n \n return rectangle.contains(ball.getPosition());\n }", "private boolean isBallInside(Ball ball) {\n Vect ballCenter = ball.getCircle().getCircle().getCenter();\n Double ballX = ballCenter.x();\n Double ballY = ballCenter.y();\n Double radius = ball.getCircle().getCircle().getRadius();\n Double centerX = this.location.x()+0.5;\n Double centerY = this.location.y()+0.5;\n assert(checkRep());\n return ((ballX-centerX)*(ballX-centerX)+(ballY-centerY)*(ballY-centerY)) < ((0.5+radius)*(0.5+radius));\n }", "public boolean collides(Ball ball) //collision detection\n {\n if( ( position.y+height ) > ball.getPosY()-8 )\n {\n if( position.y+10 < ( ball.getPosY()-8 ) )\n {\n if(\n !((\n (ball.getPosX()-12 < ( position.x)+width ) &&\n (ball.getPosX()+12 < (position.x+width) ) &&\n (ball.getPosX()-12 < position.x ) &&\n (ball.getPosX()+12 < position.x )\n )||\n (\n (ball.getPosX()-12 > ( position.x+width )) &&\n (ball.getPosX()+12 > (position.x+width) ) &&\n (ball.getPosX()-12 > ( position.x )) &&\n (ball.getPosX()+12 > position.x )\n ))\n ){return true;}\n }\n\n }\n\n return false;\n\n /*\n if(position.y > (ball.getPosY() - 77 ) ) //should be ball.getheight\n {\n\n return Intersector.overlaps(ball.getCircle(), rect);\n }\n */\n\n }", "private boolean didBallHitFloor() {\n \tdouble y = ball.getY();\n \t\n \treturn (y + BALL_RADIUS * 2) <= HEIGHT;\n }", "boolean findRobot();", "@Override\n public boolean checkForScoringCondition(BotState botState) {\n Location botLocation = new Location(botState.x, botState.y);\n for (var ballLocation: ballLocations) {\n if (botLocation.getDistance(ballLocation) < SCORING_DISTANCE) {\n // The robot picked up the ball!\n logger.info(\"FOUND A BALL BOT=\"+botLocation+\" ball=\"+ballLocation);\n ballLocations.remove(ballLocation);\n return true;\n }\n }\n return false;\n }", "public boolean isCollision(Ball ob) { // Kollisionsabfrage\r\n\t\t\r\n\t\tdX = posX - ob.getPosX();\r\n\t\tdY = posY - ob.getPosY();\r\n\t\tfloat vector = dX * dX + dY * dY;\r\n\t\tfloat hypo = radius * radius * 4;\r\n\t\tif (hypo >= vector) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private boolean isBallCollideCelling(GOval ball) {\n return ball.getY() <= 0;\n }", "public boolean bounceBall(Ball ball) {\r\n\t\t\r\n\t\tint radius= ball.getRadius(), fullRound= 360;\r\n\t\t\r\n\t\tif ((ball.getX()>topX-radius && ball.getX()< topX+width+radius)// in X radius\r\n\t\t\t\t&& ball.getY()>= topY-radius && ball.getY()< topY){// in Y radius\r\n\t\t\tball.setDirection(fullRound-ball.getDirection());\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "public boolean checkCollisionWithBall(Ball ball, float delta) {\n return false;\n }", "abstract public void performCollision(Ball ball);", "private boolean isBallCollideRightWall(GOval ball) {\n return ball.getX() + 2 * BALL_RADIUS >= getWidth();\n }", "private boolean contains(Ball ball) {\n checkRep();\n boolean contains =\n ball.getPosition().x() > this.boundingBoxPosition.x()\n && ball.getPosition().x() < this.boundingBoxPosition.x() + this.width\n && ball.getPosition().y() > this.boundingBoxPosition.y() \n && ball.getPosition().y() < this.boundingBoxPosition.y() + this.height;\n return contains;\n }", "@Override\n public void collision(Ball ball) {\n if (!(this.collideLine.size() == 0)){\n ball.setVelocity(Geometry.reflectWall(this.collideLine.get(0), ball.getVelocity()));\n //if ball collides with corner, reflect off circle\n }else if (!(this.collideCirc.size() == 0)){\n ball.setVelocity(Geometry.reflectCircle(this.collideCirc.get(0).getCenter(), ball.getPosition(), ball.getVelocity()));\n }\n\n this.trigger();\n\n }", "private void bounceIfWallCollision() {\n \tdouble x = ball.getX();\n \tdouble y = ball.getY();\n \t\n \t// Ball hits side\n \tif (x <= 0 || (x + BALL_RADIUS * 2) >= getWidth()) vx = -vx;\n \t\n \t// Ball hits top\n \tif (y <= 0) vy = -vy;\n }", "public boolean[] areObstaclesDetected()\n {\n return finchController.areObstaclesDetected();\n }", "private boolean hitMyPaddle() {\n if (b.numX - 60 <= 0) {\n if ((b.numY <= (this.touchedY + 260)) && (b.numY >= (this.touchedY - 260))) {\n } else {\n this.wentOffWall();\n }\n return true;\n } else {\n return false;\n }\n }", "public boolean isTouching(Ball otherBall)\n {\n boolean isTouching = true;\n int x1 = xPosition + diameter/2;\n int y1 = yPosition + diameter/2;\n int x2 = otherBall.getXPosition() + diameter/2;\n int y2 = otherBall.getYPosition() + diameter/2;\n if(Math.sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))<=diameter)\n {\n isTouching = true;\n } \n else\n {\n isTouching = false;\n }\n return isTouching;\n }", "@Override\n\tpublic boolean collide(int ballX, int ballY, Drawable ball) {\n\t\tint[] coordinates = brick.get();\n\t\tint brickX = coordinates[0];\n\t\tint brickY = coordinates[1];\n\t\tif (ballX + ball.getWidth() >= brickX\n\t\t\t\t&& ballX <= brickX + brick.getWidth()\n\t\t\t\t&& ballY+ ball.getHeight() >= brickY\n\t\t\t\t&& ballY <= brickY + brick.getHeight()) {\n\t\t\t\n\t\t\t//System.out.println(\"Collideed\");\n\t\t\tbrickBlast = true;\n\t\t\treturn true;\n\t\t \n\t\t}\n\t\treturn false;\n\t}", "public void setBallTouched(Ball ball)\n {\n ballTouched = ball;\n }", "public boolean isRobot() {\n\t\treturn isRobot;\n\t}", "abstract public double timeUntilCollision(Ball ball);", "@Override\n public boolean detect() {\n QQRobot.checkBoardExists(RGB_MY_SPACE);\n CurrentData.REAL.reset();\n QQRobot.findBoard(RGB_MY_SPACE, CurrentData.REAL.board);\n QQRobot.findAndCleanBoard(CurrentData.REAL.board, CurrentData.REAL.tetromino, CurrentData.REAL.nextBlocks);\n QQRobot.findFutures(RGB_MY_SPACE, CurrentData.REAL.nextBlocks);\n\n if (CurrentData.REAL.tetromino.isValid()) {\n return true;\n } else {\n return false;\n }\n }", "public boolean paddleHit() {\n\t\tboolean collision = false;\n\t\t// relevant ball point (center) and rad\n\t\tint bc_x = this.ball.x_pos + this.ball.rad;\n\t\tint bc_y = this.ball.y_pos + this.ball.rad;\n\t\tint bc_r = this.ball.rad;\n\t\t// relevant paddle point (top left) and width\n\t\tint pp_x = this.paddle.x_pos;\n\t\tint pp_y = this.paddle.y_pos;\n\t\tint pp_w = this.paddle.width;\n\t\t// calculated distance\n\t\tdouble d;\n\t\t\n\t\tfor ( int x=pp_x; x <= pp_x + pp_w; x++ ) {\n // chunky equation for distance between two points\n\t\t\td = Math.sqrt(Math.pow((bc_x-x), 2) + Math.pow((bc_y-pp_y), 2));\n\t\t\tif (d <= bc_r)\n collision = true;\n\t\t}\n\t\t\n\t\treturn collision;\n\t}", "public abstract boolean interactionPossible(Robot robot);", "@Override\n public void update() {\n super.update();\n\n //check if ball is out\n checkBallOutTopBottom();\n checkBallOutLeftRight();\n }", "Velocity hit(Ball hitter, Point collisionPoint, Velocity currentVelocity);", "public void checkWallBounce(){\n // Bounce the ball back when it hits the top of screen\n if (getRect().top < 0) {\n reverseYVelocity();\n clearObstacleY(40);\n }\n\n // If the ball hits left wall bounce\n if (getRect().left < 0) {\n reverseXVelocity();\n clearObstacleX(2);\n }\n\n // If the ball hits right wall Velocity\n if (getRect().right > screenX) {\n reverseXVelocity();\n clearObstacleX(screenX - 57);\n }\n }", "protected Boolean collideWith(MovableItem mitem){\n\t\tif (mitem instanceof Ball){\n\t\t\tBall it = (Ball) mitem; \n\t\t\tDouble dist = Math.pow((it.xnext-this.xnext + it.diameter/2 - this.diameter/2),2) + Math.pow((it.ynext-this.ynext + it.diameter/2 - this.diameter/2),2);\n\t\t\tif (dist <= ((it.diameter/2+this.diameter/2)*(it.diameter/2+this.diameter/2))){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\tif (mitem instanceof Rect){\n\t\t\tRect it = (Rect) mitem;\n\t\t\ttheball.setFrame(xnext,ynext,diameter,diameter);\n\t\t\tEllipse2D.Double circle = this.theball;\n\t\t\tif (circle.intersects(it.xnext, it.ynext, it.width, it.height)){\n\t\t\t\ttheball.setFrame(this.getX(),this.getY(),diameter,diameter);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\ttheball.setFrame(this.getX(),this.getY(),diameter,diameter);\n\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "boolean foil_is_cylinder_or_ball (Foil foil) {\n return foil == FOIL_CYLINDER || foil == FOIL_BALL;\n }", "@Override\n public boolean isFinished() {\n// return false;\n return LightningMath.epsilonEqual(shooter.getFlywheelMotor1Velocity(), shooter.motor1setpoint, Constants.FLYWHEEL_EPSILON) &&\n LightningMath.epsilonEqual(shooter.getFlywheelMotor2Velocity(), shooter.motor2setpoint, Constants.FLYWHEEL_EPSILON) &&\n LightningMath.epsilonEqual(shooter.getFlywheelMotor3Velocity(), shooter.motor3setpoint, Constants.FLYWHEEL_EPSILON);\n }", "public boolean collisionDetection(Body body) {\n boolean collision = false; // default: no collision\n if (body.name != this.name) {\n double r = Math.sqrt(Math.pow((this.x - body.x),2) + Math.pow((this.y - body.y),2));\n if (r <= 1*(body.radius + this.radius)) {\n collision = true; // collision detected\n }\n\n }\n return collision;\n }", "boolean wasHit();", "public abstract boolean hit(Rectangle2D r);", "void hitBall() {\n \n System.out.println(this.golfBall.vel_vector.x + \",\"\n + this.golfBall.vel_vector.y + \",\"\n + this.golfBall.acc_vector.x + \",\"\n + this.golfBall.acc_vector.y);\n \n if (this.golfBall.stopped) {\n new Sound(\"resources/hit.wav\").play();\n this.golfBall.stopped = false;\n this.golfBall.acc(this.strokeAcc.x, this.strokeAcc.y);\n this.strokes += 1;\n }\n \n }", "private boolean isBallCollideLeftWall(GOval ball) {\n return ball.getX() <= 0;\n }", "public Ball getBallTouched()\n {\n return ballTouched;\n }", "public boolean checkBallBatCollision(Bat bat){\n // Check for ball colliding with paddle\n if(this.intersect(bat)) {\n if(!getActive()){\n makeActive();\n setRandomVelocity(3);\n }\n\n // Interpolate the incoming position for computation of the new Velocity\n float midBall = getMiddle();\n float midBat = bat.getMiddle();\n float fracDisplacementFromMid = (midBall - midBat) / midBat;\n\n getNewVelocity(fracDisplacementFromMid, bat);\n\n return true;\n }\n return false;\n }", "private boolean hasMissPaddle(GOval ball){\n return ball.getY() + 2 * BALL_RADIUS >= getHeight();\n }", "public boolean collides(Ball b)\n\t{\n\t\tdouble dx = b.xPosition - xPosition;\n\t\tdouble dy = b.yPosition - yPosition;\n\t\tdouble distance = Math.sqrt(dx*dx+dy*dy);\n\n\t\treturn distance < size/2 + b.size/2;\n\t}", "public void CheckCollision(Ball b){\n\n if( b.getDirX() < 0f ){\n if( (b.getPosX() - b.getSizeX() ) < px + sx){\n //if we're in the upper \n if( b.getPosY() > py+sy/2 && b.getPosY() < py+sy){\n b.setDirX(-b.getDirX());\n b.setDirY(b.getDirY() + .25f);\n }\n //if we are in the lower\n else if( b.getPosY() < py-sy/2 && b.getPosY() > py-sy){\n b.setDirX(-b.getDirX());\n b.setDirY(b.getDirY() - .25f); \n }\n else if( b.getPosY() > py-sy && b.getPosY() < py+sy)\n b.setDirX(-b.getDirX());\n b.setVelocity(b.getVelocity() * 1.10f);\n } \n }else{\n if( (b.getPosX() + b.getSizeX() ) > px - sx){\n //if we're in the upper \n if( b.getPosY() > py+sy/2 && b.getPosY() < py+sy){\n b.setDirX(-b.getDirX());\n b.setDirY(b.getDirY() + .25f);\n }\n //if we are in the lower\n else if( b.getPosY() < py-sy/2 && b.getPosY() > py-sy){\n b.setDirX(-b.getDirX());\n b.setDirY(b.getDirY() - .25f); \n }\n else if( b.getPosY() > py-sy && b.getPosY() < py+sy)\n b.setDirX(-b.getDirX());\n b.setVelocity(b.getVelocity() * 1.10f);\n }\n }\n }", "public boolean checkBallOutLeftRight() {\n //if ball is out of left and right\n if (x <= -radius || x >= GameView.width + radius) {\n out = true;\n return true;\n }\n return false;\n }", "@Override\n\tpublic void collision(Ball ball) {\n PhysicsComponent gadgetPartToCollideWith = this.physicsComponentList.get(0);\n double minTimeUntilCollision = Double.MAX_VALUE;\n for(PhysicsComponent gadgetPart: physicsComponentList){\n double timeUntilCollisionPart = gadgetPart.timeUntilCollision(ball.getBallCircle(), ball.getVelocity());\n if (timeUntilCollisionPart < minTimeUntilCollision){ \n minTimeUntilCollision = timeUntilCollisionPart;\n gadgetPartToCollideWith = gadgetPart;\n }\n }\n Vect newVelocity = gadgetPartToCollideWith.reflect(ball.getBallCircle(), ball.getVelocity(), ball.getCoefficentOfReflection()); \n ball.setVelocity(newVelocity);\n trigger();\n\t}", "public static boolean handleWallCollision(Ball ball) {\n // hit top wall\n if(ball.getCenterY() - ball.getRadius() <= 0) {\n ball.moveDown();\n }\n // hit bottom wall\n if(ball.getCenterY() - ball.getRadius() >= BreakoutGame.GAME_HEIGHT) {\n return true;\n }\n // hit right wall\n if(ball.getCenterX() + ball.getRadius() >= BreakoutGame.GAME_WIDTH) {\n ball.moveLeft();\n }\n // hit left wall\n if(ball.getCenterX() - ball.getRadius() <= 0) {\n ball.moveRight();\n }\n return false;\n }", "private static boolean isBrickCollision(Ball ball, Brick brick) {\n if(Shape.intersect(ball, brick).getBoundsInLocal().getWidth() != -1) {\n // TODO: Ball needs a damage instance variable\n brick.hit(1);\n // hit was to the left of brick\n if(ball.getCenterX() < brick.getX()) {\n ball.moveLeft();\n }\n // hit was to the right of brick\n else if(ball.getCenterX() > brick.getX() + brick.getWidth()) {\n ball.moveRight();\n }\n // hit was below the brick\n else if(ball.getCenterY() > brick.getY() + (brick.getHeight() / 2)) {\n ball.moveDown();\n }\n // hit was above the brick\n else if(ball.getCenterY() < brick.getY() + (brick.getHeight() / 2)) {\n ball.moveUp();\n }\n return true;\n }\n return false;\n }", "protected boolean isFinished() {\n\tif(this.motionMagicEndPoint >0) {\n \tif(Math.abs(RobotMap.motorLeftTwo.get() )< 0.09 && Math.abs(RobotMap.motorRightTwo.get() )> -0.09&& Timer.getFPGATimestamp()-starttime > 10) {\n \t\treturn true;\n \t}\n\t}\n\t\n return false;\n }", "public Boolean isObstacleDetected(final int id)\n {\n return finchController.isObstacleDetected(id);\n }", "@Override\n public boolean detect() {\n \t slowDown();\n final MoveResult move = CurrentData.CALCULATED.tetromino.move;\n\t\t\t\t\t\tif (move.hasMove()) {\n final Tetromino moveTetromino = move.tetromino;\n final int y = QQRobot.findTetromino(moveTetromino, 3 + missingTetromino * 2);\n if (y == -1) {\n missingTetromino++;\n if (missingTetromino == 3) {\n // System.out.println(\"没找到块\" + nr + \"!\" + CurrentData.CALCULATED.tetromino.move + \", \"\n // + CurrentData.CALCULATED.tetromino + \", \"\n // + CurrentData.CALCULATED.tetromino.move.tetromino);\n // QQDebug.save(QQRobot.getScreen(), \"qqtetris_\" + nr);\n // nr++;\n throw new NoTetrominoFoundException(\"没找到块!\");\n // CurrentData.CALCULATED.tetromino.move.doMove();\n }\n } else {\n \t final int fallen = y - moveTetromino.y;\n if (fallen > 0) {\n // System.out.println(\"掉落:\" + fallen);\n moveTetromino.y = y;\n } \t \n \t if (move.clever) {\n \t \t if (firstScan) {\n \t \t firstScan = false;\n \t \t } else if (fallen > 0) {\n\t\t\t move.doMove(); \t \t \t \n \t \t }\n \t } else {\n\t\t move.doMove();\n \t }\n }\n }\n if (move.hasMove()) {\n return false;\n } else {\n // QQDebug.printBoard(CurrentData.CALCULATED.board);\n return true;\n }\n }", "@Override\n\t\tprotected boolean condition() {\n\t\t\tWhichSide whichSide = VisionUtil.getPositionOfGearTarget();\n\t\t\tSystem.err.println(\"Position of gear target: \"+whichSide);\n\t\t\tif (whichSide == WhichSide.RIGHT)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "public void playerMissedBall(){ active = false;}", "@Test\n public void RandomBallLocationStopped() {\n final boolean seenAll[] = new boolean[1];\n seenAll[0] = false;\n\n WheelObserver wheelObserver = new WheelObserver() {\n Set<Integer> seen = new HashSet<Integer>();\n public void stopped(final int location) {\n if (location < 0 || location > 36)\n throw new IllegalArgumentException();\n seen.add(location);\n if (seen.size() == 37) seenAll[0] = true;\n }\n };\n RouletteWheel wheel = new RouletteWheel(wheelObserver);\n\n for (int x = 0; x < 1000; x++)\n {\n wheel.spin(0);\n wheel.tick(20000);\n }\n\n assertTrue(seenAll[0]);\n }", "protected boolean isFinished() {\n \treturn Robot.lift.isMotionMagicNearTarget() || totalTimer.get() > 5.0;\n }", "public abstract boolean isHit(int x, int y);", "@Test\n void testTrackBallYMid() {\n goalie.setPosition(goalie.getX(), 187f);\n\n // test ball y value equal 360 the goalie mid\n goalie.TrackBallSetDirection(new Vector(45f,360f), new Vector(-0.5f,0.5f));\n\n // goalie should move in pos direction to get to mid point in this case\n assertEquals(1,goalie.getNext_direction().getY());\n\n // test when goalie current position is greater than the middle\n goalie.setPosition(goalie.getX(), 480f);\n\n // test ball y = 360\n goalie.TrackBallSetDirection(new Vector(45f,360f), new Vector(-0.5f,0.5f));\n\n // goalie should move in negative direction to get to mid point in this case\n assertEquals(-1,goalie.getNext_direction().getY());\n\n }", "public boolean detectBound(){\n if(posX < 10){\n posX = 10;\n velX = 0;\n accX = 0;\n return true;\n }\n else if(posX > width - 10){\n posX = width - 10;\n velX = 0;\n accX = 0;\n return true;\n }\n if(posY < 10){\n posY = 10;\n velY = 0;\n accY = 0;\n return true;\n }\n else if(posY > height - 10){\n posY = height - 10;\n velY = 0;\n accY = 0;\n return true;\n }\n return false;\n }", "private boolean isObjectAPaddle(GObject collider) {\n return (collider == paddle);\n }", "@Override\n public boolean detect() {\n QQRobot.checkBoardExists(RGB_MY_SPACE);\n if (!BoardUtils.isSameBoard(CurrentData.REAL.board, CurrentData.CALCULATED.board)) {\n this.boardChangeDetected++;\n if (this.boardChangeDetected == 3) {\n throw new UnexpectedBoardChangeException(\"找到变动!\");\n }\n }\n CurrentData.REAL.reset();\n QQRobot.findTetromino(RGB_MY_SPACE, CurrentData.REAL.tetromino, CurrentData.REAL.nextBlocks, 5);\n QQRobot.findFutures(RGB_MY_SPACE, CurrentData.REAL.nextBlocks);\n boolean valid = false;\n if (CurrentData.REAL.tetromino.isValid()) {\n if (CurrentData.REAL.nextBlocks[1] == null) {\n this.missingFutures++;\n if (this.missingFutures == 3) {\n throw new NoFuturesFoundException(\"没找到预知块!\");\n }\n } else {\n valid = true;\n }\n } else {\n this.missingTetromino++;\n if (this.missingTetromino == 2000 / this.delayMillis) {\n throw new NoTetrominoFoundException(\"没找到游戏块!\");\n }\n }\n if (valid) {\n return true;\n } else {\n return false;\n }\n }", "boolean isMoving();", "public boolean isOnGround() {\n return this.sim_pos.getY() <= 2;\n }", "@Override\n public boolean detect() {\n QQRobot.findWindowLocation(RGB_SCREEN);\n if (QQTetris.QQCoord.x != -1) {\n return true;\n } else {\n return false;\n }\n }", "public void collision(Ball b){\n float cir_center_X = b.getCenterX();\r\n float cir_center_Y = b.getCenterY();\r\n \r\n // aabb half extent\r\n float extent_X = (this.p4[0]-this.p1[0])/2; //half width\r\n float extent_Y = (this.p3[1]-this.p4[1])/2; // half height\r\n // rec center \r\n float rec_center_X = this.p1[0]+extent_X;\r\n float rec_center_Y = this.p1[1]+extent_Y;\r\n \r\n // difference between center : vector D = Vector Cir_center-Rec-center\r\n float d_X =cir_center_X-rec_center_X;\r\n float d_Y = cir_center_Y-rec_center_Y;\r\n \r\n //\r\n float p_X =Support_Lib.clamp(d_X,-extent_X,extent_X);\r\n float p_Y =Support_Lib.clamp(d_Y,-extent_Y,extent_Y);\r\n \r\n\r\n \r\n float closest_point_X = rec_center_X +p_X;\r\n float closest_point_Y = rec_center_Y +p_Y; \r\n \r\n \r\n d_X = closest_point_X -cir_center_X;\r\n d_Y = closest_point_Y -cir_center_Y;\r\n \r\n \r\n \r\n float length = (float)Math.sqrt((d_X*d_X)+(d_Y*d_Y));\r\n \r\n if(length+0.001 <=b.getRadius()){\r\n\r\n \r\n float ratio =(closest_point_X-rec_center_X)/(extent_X*2);\r\n b.accelartion(ratio);\r\n b.updateVelocity(Support_Lib.direction(d_X,d_Y));\r\n \r\n }\r\n \r\n \r\n }", "public void checkBallCollisions(Ball ball, Board board, ArrayList<Brick> bricks) {\n float currDir = ball.getDirection();\n // check if the ball has hit any of the bricks\n for(Brick brick : bricks){\n boolean hitBrick = false;\n boolean hitCorner = false;\n\n if (ball.intersects(brick.getTopLeftCorner())) {\n float angle = getDirectionAfterCollisionWithCircle(ball,brick.getTopLeftCorner());\n if ((!ball.hasPositiveXDirection()) && angle<reverseVerticalDirection(angle)) ball.reverseVerticalDirection();\n else if (ball.hasPositiveYDirection() && angle>reverseHorizontalDirection(angle)) ball.reverseHorizontalDirection();\n else ball.setDirection(angle);\n hitCorner = true;\n } else if (ball.intersects(brick.getTopRightCorner())) {\n float angle = getDirectionAfterCollisionWithCircle(ball,brick.getTopRightCorner());\n if (ball.hasPositiveXDirection() && angle>reverseVerticalDirection(angle) && angle<Math.PI) ball.reverseVerticalDirection();\n else if (ball.hasPositiveYDirection() && (angle<reverseHorizontalDirection(angle)\n || angle>Math.PI)) ball.reverseHorizontalDirection();\n else ball.setDirection(angle);\n hitCorner = true;\n } else if (ball.intersects(brick.getBottomLeftCorner())) {\n float angle = getDirectionAfterCollisionWithCircle(ball,brick.getBottomLeftCorner());\n if ((!ball.hasPositiveXDirection()) && angle>reverseVerticalDirection(angle)) ball.reverseVerticalDirection();\n else if ((!ball.hasPositiveYDirection()) && angle<reverseHorizontalDirection(angle)) ball.reverseHorizontalDirection();\n else ball.setDirection(angle);\n hitCorner = true;\n } else if (ball.intersects(brick.getBottomRightCorner())) {\n float angle = getDirectionAfterCollisionWithCircle(ball,brick.getBottomRightCorner());\n if (ball.hasPositiveXDirection() && angle<reverseVerticalDirection(angle) && angle>Math.PI) ball.reverseVerticalDirection();\n else if ((!ball.hasPositiveYDirection()) && angle>reverseHorizontalDirection(angle)) ball.reverseHorizontalDirection();\n else ball.setDirection(angle);\n hitCorner = true;\n }\n if (hitCorner) {\n brick.decrementLife(); Points.getInstance().addPoints(10);\n break;\n }\n if (ball.intersects(brick.getNorthLine()) && Math.PI<=currDir\n && currDir<=2*Math.PI) {\n ball.reverseVerticalDirection();\n hitBrick = true;\n } else if (ball.intersects(brick.getSouthLine()) && 0<=currDir\n && currDir<=Math.PI) {\n ball.reverseVerticalDirection();\n hitBrick = true;\n } else if (ball.intersects(brick.getWestLine()) && ((0<=currDir\n && currDir<=(Math.PI)/2) || ((3*Math.PI)/2<=currDir\n && currDir<=2*Math.PI))) {\n ball.reverseHorizontalDirection();\n hitBrick = true;\n } else if (ball.intersects(brick.getEastLine()) && (Math.PI)/2<=currDir\n && currDir<=(3*Math.PI)/2) {\n ball.reverseHorizontalDirection();\n hitBrick = true;\n }\n if (hitBrick) {\n brick.decrementLife(); Points.getInstance().addPoints(10);\n break;\n }\n }\n\n // check if the ball has hit the ceiling or one of the walls\n if (ball.getY() <= ceilingPos) {\n ball.setY(ceilingPos);\n ball.reverseVerticalDirection();\n } else if (ball.getMaxX() >= rightWallPos) {\n ball.setX(rightWallPos - 2 * ball.getRadius());\n ball.reverseHorizontalDirection();\n } else if (ball.getX() <= leftwallPos) {\n ball.setX(leftwallPos);\n ball.reverseHorizontalDirection();\n }\n\n // check if the ball has hit the board\n if (currDir>((Math.PI)/6) && currDir<((3*Math.PI)/6)) return;\n if (ball.intersects(board.getBody()) && currDir>Math.PI) {\n ball.reverseVerticalDirection();\n } else if (ball.intersects(board.getLeftEdge())) {\n float angle = getDirectionAfterCollisionWithCircle(ball, board.getLeftEdge());\n if (angle<((Math.PI)/2) || angle>(3*Math.PI)/2) ball.reverseVerticalDirection();\n else ball.setDirection(angle);\n } else if (ball.intersects(board.getRightEdge())) {\n float angle = getDirectionAfterCollisionWithCircle(ball, board.getRightEdge());\n if (angle>((Math.PI)/2) && angle<(3*Math.PI)/2) ball.reverseVerticalDirection();\n else ball.setDirection(angle);\n }\n }", "Velocity hit(Ball hitter, Point collisionPoint,\r\n Velocity currentVelocity);", "abstract public boolean isTurtleCommand();", "public void checkForBounce()\n {\n if (isTouching(mid.class)){\n \n bounce = 1;\n \n \n }\n \n \n \n \n if (getY() <= 0 || getY() >= getWorld().getHeight() -1 )\n {\n \n dY = -dY;\n \n }\n \n \n if(isTouching(Pad1.class )){\n \n if (bounce == 1){\n \n \n Greenfoot.playSound(\"paddleHit.wav\"); \n dX = -dX;\n bounce = 0;\n change(); \n }\n \n \n }\n \n \n \n }", "public boolean hit(float[] bInfo){\n\t\tfloat bx=bInfo[0],by=bInfo[1],xpd=bInfo[2],ypd=bInfo[3];\r\n int sx = (int)bx,sy=(int)by,ex=(int)(bx+xpd),ey=(int)(by+ypd);\r\n //print(\"shot in your area \" + commu.getAddr());\r\n /*float PX = xPos,PY=yPos;\r\n double opme = angleBP(sx,sy,(int)PX,(int)PY);\r\n double shotang = angleBP(sx,sy,ex,ey);\r\n //println(\" difang \" + opme + \" ashot\" + shotang);\r\n double angle = min(min(abd(opme-shotang),abd(opme+(2*Math.PI)-shotang)),abd(opme-((2*Math.PI)+shotang)));\r\n double distance = DBP((int)PX,(int)PY,sx,sy)*Math.sin((float)angle);\r\n //println(\"distance to bullet path \" + distance + \" angle \" + angle + \" hyp \" + DBP((int)PX,(int)PY,sx,sy));\r\n if(distance<10){\r\n \treturn true; \r\n }\r\n return false;*/\r\n if((sx>xPos && sx < xPos+size) || (ex>xPos && ex< xPos+size)){\r\n \tif((sy>yPos && sy < yPos+size) || (ey>yPos && ey< yPos+size)){\r\n \treturn true;\r\n }\r\n }\r\n return false;\r\n }", "public void checkBrickHit(List<Brick> myBricks, Ball myBall, Ball secondBall) {\n if(myBricks.contains(this.getBrick()) == false) {\n if(myBall.getSpeed() != 0 || secondBall.getSpeed() != 0) {\n this.setY_vel(50);\n }\n else {\n this.setY_vel(0);\n }\n this.getMyImageView().setVisible(true);\n }\n }", "public void updateBallCount(){\n\t\tif (validBall.getxLoc() < 0 || validBall.getxLoc() > screenWidth)\n\t\t\tballCount = 0;\n\t\telse if (validBall.getyLoc() < 0 || validBall.getyLoc() > screenHeight)\n\t\t\tballCount = 0;\n\t\telse\n\t\t\tballCount = 1;\n\t}", "public boolean isCircle();", "private void playRound(GOval ball) {\n int bricksOnStage = NBRICK_ROWS * NBRICKS_PER_ROW;\n\n while(true) {\n bricksOnStage = collideObject(ball, bricksOnStage);\n collideStageLimits(ball);\n if (hasMissPaddle(ball)) {\n showLabel(\"BUSTED\", Color.BLACK);\n clearStage(ball);\n break;\n }\n ball.move(vx, vy);\n //println(vx + \" \" + vy);\n if (isBricksLeft(bricksOnStage)){\n showLabel(\"YOU WON!\", Color.red);\n clearStage(ball);\n break;\n }\n pause(PAUSE_TIME);\n }\n }", "public boolean checkWallCollision(){\r\n\t\tint x;\r\n\t\tint y;\r\n\t\t\r\n\t\tif(pacman.direction.equals(\"up\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y > 0){\r\n\t\t\t\tif(colours[x][y-1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"down\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y < colours[0].length-1){\r\n\t\t\t\tif(colours[x][y+1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"left\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x > 0){\r\n\t\t\t\tif(colours[x-1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"right\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x < colours.length-1){\r\n\t\t\t\tif(colours[x+1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean takeControl() {\n\t\tif (Squirrel.us.getDistance() <= 30 && Squirrel.notDetected)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "protected boolean isFinished() {\n \tif(Math.abs(Robot.driveTrain.getHeading() - targetDirection) < 2) {\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\n }", "boolean hasRadius();", "boolean hasRadius();", "boolean motorsAreBusy();", "@Override\n public void robotPeriodic() {\n double high = m_filter.calculate(m_photoHigh.getValue());// * kValueToInches;\n double low = m_filter.calculate(m_photoLow.getValue()); //* kValueToInches;\n if (low<=6){\n BallPresent = true;\n //stop motor if ultrasonic sensor median falls below 6 inches indicating a ball is blocking the sensor\n m_RightMotor.set(ControlMode.PercentOutput, 0);\n } else {\n BallPresent = false;\n //stop motor if ultrasonic sensor median falls below 6 inches indicating a ball is blocking the sensor\n m_RightMotor.set(ControlMode.PercentOutput, 0.5);\n }\n /*Shuffleboard.getTab(\"Shooter\").add(\"Ball Present\", BallPresent)\n .withWidget(BuiltInWidgets.kBooleanBox)\n .withPosition(0, 0)\n .withSize(1, 1)\n .withProperties(Map.of(\"colorWhenTrue\",\"green\",\"colorWhenFalse\",\"black\"));*/\n SmartDashboard.putNumber(\"High\", high);\n SmartDashboard.putNumber(\"Low\", low); \n /*Shuffleboard.getTab(\"Shooter\").add(\"Ultrasonic 1\", currentDistance)\n .withWidget(BuiltInWidgets.kGraph)\n .withPosition(0, 2)\n .withSize(4, 4);*/\n // convert distance error to a motor speed\n //double currentSpeed = (kHoldDistance - currentDistance) * kP;\n\n // drive robot\n //m_robotDrive.arcadeDrive(currentSpeed, 0);\n }", "@Override\n\tprotected boolean isFinished() {\n\t\treturn Math.abs(Robot.lidar.getRange() - range) < 2.0f;\n\t}", "public void run ()\n\t{\n\t\tif (ballDetected())\n\t\t{\n\t\t\t//findColor();\n\t\t\t\n\t\t\tmainMotorSetSpeeds(normalSpeed,normalSpeed);\n\t\t\tmainLeftMotor.rotate(-30,true); //CHANGE VALUE SO THAT IT ROTATES TO MIDWAY ACCROSS THE BALL\n\t\t\tmainRightMotor.rotate(-30,false);\n\t\t\t\n\t\t\t//turn and move forward to grab the ball\n\t\t\tmainLeftMotor.rotate(-90,true);\n\t\t\tmainRightMotor.rotate(90,false);\n\t\t\tmainLeftMotor.rotate(360, true);\n\t\t\tmainRightMotor.rotate(360,false);\n\t\t\t\n\t\t\t//V2.0 for BallGrab_V2.0\n\t\t\tmotorSetSpeeds(loweringSpeed,loweringSpeed);\n\t\t\tleftMotor.rotate(110,true);\n\t\t\trightMotor.rotate(110,false);\n\n\t\t\t//V1.0 for BallGrab_V1.0\n\t\t\tgrabMotor.setSpeed(speed);\n\t\t\tgrabMotor.rotate(50);\n\t\t\tgrabMotor.rotate(-45);\n\t\t\tgrabMotor.rotate(45);\n\t\t\t\n\t\t\t//hold the ball at a rather vertical angle\n\t\t\tmotorSetSpeeds(holdingSpeed,holdingSpeed);\n\t\t\tleftMotor.rotate(-11,true);\n\t\t\trightMotor.rotate(-110,false);\n\t\t\t\n\t\t}\n\t\t\n\t\t//use navigation class to navigate to the designated area, then shoot \n\t\t\n\t\t//V2.0 for BallGrab_V2.0\n/*\t\tleftMotor.setAcceleration(acceleration);\n\t\trightMotor.setAcceleration(acceleration);\n\t\tleftMotor.setSpeed(forwardSpeed);\n\t\trightMotor.setSpeed(forwardSpeed);*/\n\t\tgrabMotor.rotate(-10);\n\t}", "public boolean hitBallChecker(int x, int y) {\n if (fishX < x && x < (fishX + fish[0].getWidth()) && fishY < y && y < (fishY + fish[0].getHeight())) {\n return true;\n }\n return false;\n }", "public boolean isProjectile();", "public static boolean checkSensors() {\n //Default booleans set to true\n rightLineDetect = true;\n leftLineDetect = true;\n \n //If the left sensor detects the line first\n if (Math.abs(leftRedVal - initialRedValue) > rgbThres) {\n leftMotor.stop(true);\n rightMotor.stop(false);\n //if the right sensor does not detect a line\n if(Math.abs(rightRedVal - initialRedValue) < rgbThres) {\n rightLineDetect = false;\n return false;\n }\n }\n \n //if the right sensor detects the line first\n else if(Math.abs(rightRedVal - initialRedValue) > rgbThres) {\n leftMotor.stop(true);\n rightMotor.stop(false);\n //if the left sensor does not detect a line\n if(Math.abs(leftRedVal - initialRedValue) < rgbThres) {\n leftLineDetect = false;\n return false;\n }\n }\n return true;\n }", "boolean getWheel();", "public boolean collidepoint(float mX, float mY){\n return super.shape.contains(mX, mY);\n //return isPressed;\n }", "public boolean isWall();", "@Test\n void testTrackBallSameY() {\n goalie.setPosition(goalie.getX(),400);\n Vector result =\n goalie.TrackBallSetDirection(new Vector (120f,400), new Vector(-1,0));\n\n // when the goalieY == ballY the direction of movement should evaluate zero\n assertEquals(0, result.getY());\n }", "public void moveBall() {\n\t\tif (BrickPanel.getBrickCount() == -1) {\n\t\t\t\n \t\tcontrolPanel.resetGame();\n \t\tcontrolPanel.gameWonText();\n \t}\n\t\tif (BrickPanel.getBallShape().getY() >= 300) {\n\t\t\t \n\t\t\tcontrolPanel.resetGame();\n\t\t\t controlPanel.gameOverText();\n\t\t\t \n\t\t\t}\n\t\t//calls the moveBall method to move the ball\n\t\tBrickPanel.moveBall();\n\t}", "public void ballShoot() {\n\n ballRight.setPower(-1);\n ballLeft.setPower(1);\n\n wait(2.0);\n\n flipper.setPosition(0.7);\n\n wait(0.5);\n\n flipper.setPosition(0.9);\n ballLeft.setPower(0);\n ballRight.setPower(0);\n\n\n }", "public void moveOneStep() {\r\n\r\n // detects what direction the ball moves and switches it.\r\n double xDirection, yDirection;\r\n if (v.getDx() < 0) {\r\n xDirection = -r;\r\n } else {\r\n xDirection = r;\r\n }\r\n if (v.getDy() < 0) {\r\n yDirection = -r;\r\n } else {\r\n yDirection = r;\r\n }\r\n // if the ball is in the paddle because they move towards each other, the ball moves to the top of the paddle.\r\n Rectangle danger;\r\n // finding the paddle.\r\n for (Collidable c: environment.getCollidables()) {\r\n if (c.getCollisionRectangle().getUpperLeft().getY() == 550) {\r\n danger = c.getCollisionRectangle();\r\n // moving the ball up if its in the paddle.\r\n if (center.getY() > danger.getUpperLeft().getY()\r\n && center.getX() > danger.getUpperLeft().getX()\r\n && center.getX() < danger.getUpperRight().getX()) {\r\n this.center = new Point(center.getX(), danger.getUpperLeft().getY() - r);\r\n }\r\n }\r\n }\r\n Line yTrajectory = new Line(center.getX(), center.getY() + yDirection,\r\n center.getX() + v.getDx(), center.getY() + yDirection + v.getDy());\r\n Line xTrajectory = new Line(center.getX() + xDirection, center.getY(),\r\n center.getX() + v.getDx() + xDirection, center.getY() + v.getDy());\r\n // the collision is on the y field.\r\n if (environment.getClosestCollision(yTrajectory) != null) {\r\n Collidable bangedCollidable = environment.getClosestCollision(yTrajectory).collisionObject();\r\n Point bangedPoint = environment.getClosestCollision(yTrajectory).collisionPoint();\r\n this.setVelocity(bangedCollidable.hit(this, bangedPoint, this.v));\r\n this.center = new Point(this.center.getX(),\r\n bangedPoint.getY() - yDirection - v.getDy());\r\n }\r\n // the collision is on the x field.\r\n if (environment.getClosestCollision(xTrajectory) != null) {\r\n Collidable bangedCollidable = environment.getClosestCollision(xTrajectory).collisionObject();\r\n Point bangedPoint = environment.getClosestCollision(xTrajectory).collisionPoint();\r\n this.setVelocity(bangedCollidable.hit(this, bangedPoint, this.v));\r\n this.center = new Point(bangedPoint.getX() - xDirection - v.getDx(),\r\n this.center.getY());\r\n }\r\n this.center = this.getVelocity().applyToPoint(this.center);\r\n }", "public boolean checkBallOutTopBottom() {\n //if ball is out of top and bottom\n if (y <= -radius || y >= GameView.height + radius) {\n out = true;\n return true;\n }\n return false;\n }", "boolean collideWithVehicles(Vehicle v);", "private GOval drawBall(){\n GOval ball = new GOval(getWidth() / 2.0 - BALL_RADIUS, getHeight() - PADDLE_Y_OFFSET - 2 * BALL_RADIUS,\n 2 * BALL_RADIUS, 2 * BALL_RADIUS);\n ball.setFilled(true);\n ball.setColor(Color.gray);\n add(ball);\n return ball;\n }", "public void checkBodyCollisions(ArrayList<CollisionBody> bodies) {\n for (CollisionBody body : bodies) {\n if (this.collidesWith(body)) {\n Line line = (Line) body.getShape();\n\n double lineMidX = (line.getStartX() + line.getEndX()) / 2;\n double lineMidY = (line.getStartY() + line.getEndY()) / 2;\n double ballMidX = ball.getLayoutX();\n double ballMidY = ball.getLayoutY();\n double ratioX = (ballMidX - lineMidX) / Math.min(Math.abs(ballMidX - lineMidX), Math.abs(ballMidY - lineMidY));\n double ratioY = (ballMidY - lineMidY) / Math.min(Math.abs(ballMidX - lineMidX), Math.abs(ballMidY - lineMidY));\n\n double increment = 0.05;\n while (collidesWith(body)) {\n System.out.print(\"|\");\n ball.setLayoutX(ball.getLayoutX() + (ratioX * increment));\n ball.setLayoutY(ball.getLayoutY() + (ratioY * increment));\n }\n System.out.println(\"\");\n\n double lineAngle = getAngleFromXY(line.getEndX() - line.getStartX(), line.getStartY() - line.getEndY());\n double velAngle = getAngleFromXY(velX, velY);\n double totalVel = Math.hypot(velX, velY);\n\n velAngle -= lineAngle;\n velAngle = normalizeAngle(velAngle);\n velAngle = 360 - velAngle;\n velAngle += lineAngle;\n\n velX = totalVel * Math.cos(Math.toRadians(velAngle)) * frictionX;\n velY = totalVel * Math.sin(Math.toRadians(velAngle)) * frictionY;\n }\n }\n }", "protected boolean isFinished() {\n \tif (moving) return Robot.armPiston.getMajor() != PistonPositions.Moving; /* && Robot.armPiston.getMinor() != PistonPositions.Moving; */\n \treturn true;\n }", "public abstract boolean collisionWith(CollisionObject obj);", "protected boolean isFinished() {\n \tdouble changeInX = targetX - Robot.sensors.getXCoordinate();\n \tdouble changeInY = targetY - Robot.sensors.getYCoordinate();\n \tdouble distance = Math.sqrt(Math.pow(changeInX, 2) + Math.pow(changeInY, 2));\n return distance < 8 || System.currentTimeMillis() >= stopTime;\n }", "public boolean onGround() {\n return getLocation().getY() <= 0 || (interactingWithY != null && interactingWithY.getLocation().getY() + interactingWithY.size.height <= getLocation().getY());\n }", "@Test\n public void nearestObjectHighlighted() {\n radar.loop();\n assertTrue(world.getPasslist().get(0).isHighlightedWhenRadarIsOn());\n }", "public boolean checkObs(double x, double y, Landscape scape){\n\t\tArrayList<SimObject> obs = (ArrayList<SimObject>)scape.getAgents();\n\t\t// for each Obstacle object\n\t\tfor( int i = 0 ; i < obs.size() ; i++){\n\t\t\tSimObject obstacle = obs.get(i);\n\t\t\t// if the x and y positions are the same (+/- 1 or .5 is because the defender not a point element and it's width\n\t\t\t// and height need to be taken into account)\n\t\t\tif( obstacle.getX() >= (x-1) && obstacle.getX() <= (x+.5) \n\t\t\t\t\t&& obstacle.getY() >= (y-1) && obstacle.getY() <=(y+.5) ){\n\t\t\t\t// this obstacle is in the way of the motion, return false and stop checking for other obstacles\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// no obstacles in the way, the Defender is free to move with respect to the Obstacles\n\t\treturn true;\n\t}", "Shape whoIsPlaying();" ]
[ "0.7097965", "0.678621", "0.67669266", "0.67663836", "0.6749703", "0.66050017", "0.6386631", "0.63538885", "0.6351919", "0.63157284", "0.629054", "0.6282911", "0.6260604", "0.6225654", "0.62205136", "0.62140024", "0.6180773", "0.61475617", "0.61243206", "0.6120854", "0.6112978", "0.610213", "0.6090046", "0.6066632", "0.60458666", "0.6040007", "0.6023468", "0.6016004", "0.60127157", "0.599786", "0.59943175", "0.59929466", "0.59653866", "0.59649426", "0.5962779", "0.5960541", "0.59430164", "0.5932579", "0.5926753", "0.5909917", "0.5907518", "0.590524", "0.587881", "0.5871288", "0.5865452", "0.5851086", "0.58339715", "0.58307356", "0.5821779", "0.57989764", "0.5796423", "0.57889265", "0.57801336", "0.5774956", "0.5771277", "0.5768054", "0.57542855", "0.5745743", "0.5740871", "0.5739576", "0.5732599", "0.5728199", "0.5713578", "0.57132035", "0.57095706", "0.5703031", "0.5699296", "0.56902605", "0.5687738", "0.5671104", "0.56618047", "0.565767", "0.56482494", "0.5644189", "0.5644189", "0.56355935", "0.56314856", "0.56246054", "0.5617007", "0.56133974", "0.561229", "0.56024396", "0.5599848", "0.5599562", "0.5598724", "0.5598528", "0.5593615", "0.55741847", "0.5567457", "0.5565954", "0.5563133", "0.55615973", "0.5557565", "0.5547194", "0.5545131", "0.5519246", "0.5514816", "0.55126905", "0.54930323", "0.5485638" ]
0.8338101
0
TODO conditional on this being a cw, probably factor out
private void makeFreezeInfos(ReplayBattle replay, Set<ReplayPlayer> players) { Clan ownerClan = replay.getPlayer().getClanInfo().getClan(); // battle end time: 45 seconds extra for battle loading Instant endTime = replay.getArenaCreateTime().plus(replay.getDuration()) .plus(Duration.ofSeconds(45)); // TODO decide which to use based on user input, freeze duration of // uploading player or something FreezeDurations freezeDurations = em.find(FreezeDurations.class, "standard"); for (ReplayPlayer p : players) { if (p.isSurvived() || p.getTank() == null) { // not interested if tank survived (not frozen), or wasn't // spotted in fog of war continue; } Query q = em.createNamedQuery("findPlayerTank", PlayerTankInformation.class); q.setParameter("player", p.getPlayer()); q.setParameter("tank", p.getTank()); PlayerTankInformation tankInfo = (PlayerTankInformation) q.getSingleResult(); TankFreezeInformation freezeInfo = new TankFreezeInformation(tankInfo, ownerClan); Instant unfreezeTime = endTime; Tank tank = p.getTank(); switch (tank.getInternalType()) { case "heavyTank": unfreezeTime = unfreezeTime.plus(freezeDurations.getHeavyDurations() .get(tank.getTier())); break; case "mediumTank": unfreezeTime = unfreezeTime.plus(freezeDurations.getMediumDurations() .get(tank.getTier())); break; case "lightTank": unfreezeTime = unfreezeTime.plus(freezeDurations.getLightDurations() .get(tank.getTier())); break; case "AT-SPG": unfreezeTime = unfreezeTime.plus(freezeDurations.getTdDurations().get( tank.getTier())); break; case "SPG": unfreezeTime = unfreezeTime.plus(freezeDurations.getSpgDurations() .get(tank.getTier())); break; } if (unfreezeTime.isBefore(Instant.now())) { // irrelevant return; } freezeInfo.setUnfreezeTime(unfreezeTime); ownerClan.getFreezeInfos().add(freezeInfo); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void kk12() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "private final boolean cvc(int i)\n\t { if (i < 2 || !cons(i) || cons(i-1) || !cons(i-2)) return false;\n\t { int ch = b[i];\n\t if (ch == 'w' || ch == 'x' || ch == 'y') return false;\n\t }\n\t return true;\n\t }", "@Override\n\tpublic void w() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "public cvt(cwk paramcwk)\r\n/* 24: */ {\r\n/* 25: 29 */ this.f = paramcwk;\r\n/* 26: */ }", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo12628c() {\n }", "public abstract void mo4371a(zzwt zzwt);", "private FlyWithWings(){\n\t\t\n\t}", "@Override\n public void toogleFold() {\n }", "public abstract void wrapup();", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", "public final boolean zzw() {\n return false;\n }", "public abstract void mo27385c();", "@Override\n\tprotected void interr() {\n\t}", "public void method_4270() {}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void mo97906c() {\n }", "public int zzz() {\n int i;\n int i2 = 0;\n int zzz = super.zzz();\n if (this.zzbuR != 0) {\n zzz += zzsn.zzd(1, this.zzbuR);\n }\n if (!this.tag.equals(\"\")) {\n zzz += zzsn.zzo(2, this.tag);\n }\n if (this.zzbuW != null && this.zzbuW.length > 0) {\n i = zzz;\n for (zzsu zzsu : this.zzbuW) {\n if (zzsu != null) {\n i += zzsn.zzc(3, zzsu);\n }\n }\n zzz = i;\n }\n if (!Arrays.equals(this.zzbuY, zzsx.zzbuD)) {\n zzz += zzsn.zzb(6, this.zzbuY);\n }\n if (this.zzbvb != null) {\n zzz += zzsn.zzc(7, this.zzbvb);\n }\n if (!Arrays.equals(this.zzbuZ, zzsx.zzbuD)) {\n zzz += zzsn.zzb(8, this.zzbuZ);\n }\n if (this.zzbuX != null) {\n zzz += zzsn.zzc(9, this.zzbuX);\n }\n if (this.zzbuV) {\n zzz += zzsn.zzf(10, this.zzbuV);\n }\n if (this.zzbuU != 0) {\n zzz += zzsn.zzC(11, this.zzbuU);\n }\n if (this.zzob != 0) {\n zzz += zzsn.zzC(12, this.zzob);\n }\n if (!Arrays.equals(this.zzbva, zzsx.zzbuD)) {\n zzz += zzsn.zzb(13, this.zzbva);\n }\n if (!this.zzbvc.equals(\"\")) {\n zzz += zzsn.zzo(14, this.zzbvc);\n }\n if (this.zzbvd != 180000) {\n zzz += zzsn.zze(15, this.zzbvd);\n }\n if (this.zzbve != null) {\n zzz += zzsn.zzc(16, this.zzbve);\n }\n if (this.zzbuS != 0) {\n zzz += zzsn.zzd(17, this.zzbuS);\n }\n if (!Arrays.equals(this.zzbvf, zzsx.zzbuD)) {\n zzz += zzsn.zzb(18, this.zzbvf);\n }\n if (this.zzbvg != 0) {\n zzz += zzsn.zzC(19, this.zzbvg);\n }\n if (this.zzbvh != null && this.zzbvh.length > 0) {\n i = 0;\n while (i2 < this.zzbvh.length) {\n i += zzsn.zzmx(this.zzbvh[i2]);\n i2++;\n }\n zzz = (zzz + i) + (this.zzbvh.length * 2);\n }\n if (this.zzbuT != 0) {\n zzz += zzsn.zzd(21, this.zzbuT);\n }\n return this.zzbvi != 0 ? zzz + zzsn.zzd(22, this.zzbvi) : zzz;\n }", "C2841w mo7234g();", "private void m7226c() {\n this.f5601w.mo5542b((C1272h) this);\n this.f5601w.mo5544b((C1280l) this);\n this.f5601w.mo5545b(this.f5580E);\n m7230f();\n }", "abstract void mo4372a(zzwt zzwt, cu cuVar);", "public void func_70295_k_() {}", "private void m50366E() {\n }", "private void strin() {\n\n\t}", "public abstract void mo2624j();", "@Override\n\tpublic void effetCase() {\n\t\t\n\t}", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "@Override // com.google.android.gms.internal.firebase_ml.zzww\n public final /* synthetic */ zzwx zzk(zzwx zzwx, zzwx zzwx2) {\n zzwx zzwx3 = zzwx;\n zzwx zzwx4 = zzwx2;\n if (zzwx4.equals(zzwx.zztg())) {\n return zzwx3;\n }\n return zzwx.zza(zzwx3, zzwx4);\n }", "@Override\n public String toString() {\n return \"w\";\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public abstract void mo4379b(int i, zzwt zzwt);", "public int c()\r\n/* 74: */ {\r\n/* 75:78 */ return this.c;\r\n/* 76: */ }", "public void gored() {\n\t\t\n\t}", "@Override\n public Boolean colisionoCon(MH gr) {\n return true;\n }", "public abstract int selfExplodingKittenDrawn();", "public final void mo19209c() {\n zzi.f56267a.mo31623a(getApplicationContext(), new zyz());\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "int CONVOLVE() { return 44; }", "public abstract String mo9239aw();", "public abstract Object mo26777y();", "void mo28717a(zzc zzc);", "public abstract void mo70713b();", "void mo17012c();", "public void GetFontW (){\n fontBolW = false;\n fontBolS = true;\n fontBolA = true;\n fontBol = true;\n }", "protected final /* synthetic */ java.lang.Object run() {\n /*\n r4 = this;\n r0 = 1;\n r1 = 0;\n r2 = com.tencent.mm.plugin.appbrand.b.c.this;\n r2 = r2.chu();\n r3 = com.tencent.mm.plugin.appbrand.b.c.this;\n r3 = r3.iKh;\n if (r2 != r3) goto L_0x0022;\n L_0x000e:\n r2 = com.tencent.mm.plugin.appbrand.b.c.this;\n r2 = r2.iKh;\n r2 = r2.iKy;\n r2 = r2 & 1;\n if (r2 <= 0) goto L_0x0020;\n L_0x0018:\n r2 = r0;\n L_0x0019:\n if (r2 == 0) goto L_0x0022;\n L_0x001b:\n r0 = java.lang.Boolean.valueOf(r0);\n return r0;\n L_0x0020:\n r2 = r1;\n goto L_0x0019;\n L_0x0022:\n r0 = r1;\n goto L_0x001b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.appbrand.b.c.5.run():java.lang.Object\");\n }", "@Override\n\tprotected void logic() {\n\n\t}", "static int type_of_cnz(String passed){\n\t\treturn 1;\n\t}", "private final zzgy zzgb() {\n }", "public void skystonePos4() {\n }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }", "private SBomCombiner()\n\t{}", "double seBlesser();", "@Override\n public Boolean colisionoCon(MV gr) {\n return true;\n }", "private stendhal() {\n\t}", "abstract void mo4366a(int i, zzwt zzwt, cu cuVar);", "public final void mo51373a() {\n }", "abstract String mo1748c();", "int CONVOLVE() { return 22; }", "public int getMobCap()\r\n/* 24: */ {\r\n/* 25:41 */ return this.f;\r\n/* 26: */ }", "public Entry method_1584() {\n return this.c();\n }", "public boolean func_145773_az() { return true; }", "void mo57278c();", "static int size_of_stc(String passed){\n\t\treturn 1;\n\t}", "double passer();", "public static asw m47155c() {\n return zzfkz;\n }", "public abstract int mo9754s();", "private boolean marked(int w) {\n return marked[w];\r\n }", "private void m7222b() {\n this.f5601w.mo5525a((C1272h) this);\n this.f5601w.mo5527a((C1280l) this);\n this.f5601w.mo5528a(this.f5580E);\n }", "static int type_of_cnc(String passed){\n\t\treturn 1;\n\t}", "private byte[] wwcwCommand(byte ww, byte cw) {\n byte[] command = new byte[8];\n command[0] = (byte) 0x31;\n command[1] = 0;\n command[2] = 0;\n command[3] = 0;\n command[4] = ww;\n command[5] = cw;\n command[6] = (byte) 0x0f;\n command[7] = (byte) 0x0f;\n return Utils.withCheckSum(command);\n }", "public void mo21786K() {\n }", "private void m50367F() {\n }", "private void level7() {\n }", "public void mo1403c() {\n }", "public abstract void mo4365a(int i, zzwt zzwt);", "void blackhole(){ if (zzAtBOL) return; }", "static int type_of_cz(String passed){\n\t\treturn 1;\n\t}", "public abstract boolean mo9737c();", "private int little1D(int lv, int s, int e, int c, final WaveletMatrix wm) {\n\t\tint result = 0;\n\t\tc <<= ~lv;\n\t\tfor (; lv >= 0; c <<= 1, lv--) {\n\t\t\tSuccinctBitVector sbv = wm.mWM[lv];\n\t\t\tint s1 = sbv.rank1(s);\n\t\t\tint e1 = sbv.rank1(e);\n\t\t\tif (c < 0) {\n\t\t\t\t// If bit of c is 1, the 0's children are always less than c. So add the number of 0's children to result.\n\t\t\t\tif (s1 < e1) {\n\t\t\t\t\tresult += (e - e1) - (s - s1); // equivalent to e0 - s0\n\t\t\t\t\ts = s1 + wm.mZ[lv];\n\t\t\t\t\te = e1 + wm.mZ[lv];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tresult += e - s;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\ts -= s1;\n\t\t\t\te -= e1;\n\t\t\t\tif (s >= e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "private int previousSpecial(RuleBasedCollator collator, int ce, char ch)\n {\n while(true) {\n // the only ces that loops are thai, special prefix and\n // contractions\n switch (RuleBasedCollator.getTag(ce)) {\n case CE_NOT_FOUND_TAG_: // this tag always returns\n return ce;\n case RuleBasedCollator.CE_SURROGATE_TAG_: // unpaired lead surrogate\n return CE_NOT_FOUND_;\n case CE_SPEC_PROC_TAG_:\n ce = previousSpecialPrefix(collator, ce);\n break;\n case CE_CONTRACTION_TAG_:\n // may loop for first character e.g. \"0x0f71\" for english\n if (isBackwardsStart()) {\n // start of string or this is not the end of any contraction\n ce = collator.m_contractionCE_[\n getContractionOffset(collator, ce)];\n break;\n }\n return previousContraction(collator, ce, ch); // else\n case CE_LONG_PRIMARY_TAG_:\n return previousLongPrimary(ce);\n case CE_EXPANSION_TAG_: // always returns\n return previousExpansion(collator, ce);\n case CE_DIGIT_TAG_:\n ce = previousDigit(collator, ce, ch);\n break;\n case CE_HANGUL_SYLLABLE_TAG_: // AC00-D7AF\n return previousHangul(collator, ch);\n case CE_LEAD_SURROGATE_TAG_: // D800-DBFF\n return CE_NOT_FOUND_; // broken surrogate sequence, treat like unassigned\n case CE_TRAIL_SURROGATE_TAG_: // DC00-DFFF\n return previousSurrogate(ch);\n case CE_CJK_IMPLICIT_TAG_:\n // 0x3400-0x4DB5, 0x4E00-0x9FA5, 0xF900-0xFA2D\n return previousImplicit(ch);\n case CE_IMPLICIT_TAG_: // everything that is not defined\n // UCA is filled with these. Tailorings are NOT_FOUND\n return previousImplicit(ch);\n case CE_CHARSET_TAG_: // this tag always returns\n return CE_NOT_FOUND_;\n default: // this tag always returns\n ce = IGNORABLE;\n }\n if (!RuleBasedCollator.isSpecial(ce)) {\n break;\n }\n }\n return ce;\n }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "@Override\n public void perish() {\n \n }", "void mo67924c();", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "java.lang.String getCit();", "public abstract void mo53562a(C18796a c18796a);", "int nextcwedge(int edge, int face) {\n switch (edge) {\n case LB:\n return (face == L) ? LF : BN;\n case LT:\n return (face == L) ? LN : TF;\n case LN:\n return (face == L) ? LB : TN;\n case LF:\n return (face == L) ? LT : BF;\n case RB:\n return (face == R) ? RN : BF;\n case RT:\n return (face == R) ? RF : TN;\n case RN:\n return (face == R) ? RT : BN;\n case RF:\n return (face == R) ? RB : TF;\n case BN:\n return (face == B) ? RB : LN;\n case BF:\n return (face == B) ? LB : RF;\n case TN:\n return (face == T) ? LT : RN;\n case TF:\n return (face == T) ? RT : LF;\n }\n System.err.println(\"nextcwedge: should not be here...\");\n return 0;\n }", "public abstract void mo56925d();", "public final boolean mo2211mk() {\n AppMethodBeat.m2504i(91877);\n List mp = this.azT.mo59249mp();\n if (mp.isEmpty()) {\n AppMethodBeat.m2505o(91877);\n return false;\n }\n C37168f c37168f = this.azT;\n List b = c37168f.awi.awj.mo52081b(c37168f.axb.getClass(), c37168f.aAf, c37168f.awY);\n if (b.isEmpty() && File.class.equals(this.azT.awY)) {\n AppMethodBeat.m2505o(91877);\n return false;\n }\n while (true) {\n if (this.azX == null || !m27364ml()) {\n this.aCg++;\n if (this.aCg >= b.size()) {\n this.azV++;\n if (this.azV >= mp.size()) {\n AppMethodBeat.m2505o(91877);\n return false;\n }\n this.aCg = 0;\n }\n C0779h c0779h = (C0779h) mp.get(this.azV);\n Class cls = (Class) b.get(this.aCg);\n this.aCh = new C41548w(this.azT.awi.awk, c0779h, this.azT.aAb, this.azT.width, this.azT.height, this.azT.mo59250n(cls), cls, this.azT.aAd);\n this.aAa = this.azT.mo59247mn().mo52046a(this.aCh);\n if (this.aAa != null) {\n this.azW = c0779h;\n this.azX = this.azT.mo59251n(this.aAa);\n this.azY = 0;\n }\n } else {\n this.azZ = null;\n boolean z = false;\n while (!z && m27364ml()) {\n boolean z2;\n List list = this.azX;\n int i = this.azY;\n this.azY = i + 1;\n this.azZ = ((C37175n) list.get(i)).mo2225b(this.aAa, this.azT.width, this.azT.height, this.azT.aAd);\n if (this.azZ == null || !this.azT.mo59245l(this.azZ.aEq.mo2187mg())) {\n z2 = z;\n } else {\n z2 = true;\n this.azZ.aEq.mo2184a(this.azT.aAk, this);\n }\n z = z2;\n }\n AppMethodBeat.m2505o(91877);\n return z;\n }\n }\n }", "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: */ }", "Mat rotateMatCW(Mat src ) {\n Mat rotationMatrix = Imgproc.getRotationMatrix2D(new Point(src.cols()/2,src.rows()/2),270,1);\n\n //Rotating the given image\n Imgproc.warpAffine(src, result,rotationMatrix, new Size(src.cols(), src.rows()));\n return result;\n }" ]
[ "0.5640525", "0.5637132", "0.546884", "0.5433135", "0.5424144", "0.54090804", "0.5323049", "0.52695096", "0.5255728", "0.52199626", "0.51658666", "0.5147497", "0.5144069", "0.51290196", "0.5120932", "0.50946075", "0.50615525", "0.5057407", "0.50542206", "0.49976072", "0.49894595", "0.49894595", "0.49860665", "0.49648693", "0.4964167", "0.4963138", "0.49619073", "0.4944832", "0.49363893", "0.4933236", "0.4923474", "0.49228087", "0.49181214", "0.4885816", "0.48855314", "0.48824707", "0.48699626", "0.48683822", "0.4856862", "0.48450238", "0.4840048", "0.48374376", "0.4836473", "0.48305845", "0.4825895", "0.4825638", "0.48238444", "0.48222402", "0.48179236", "0.4817603", "0.48132187", "0.48116517", "0.48098382", "0.48072392", "0.47994652", "0.47983572", "0.47958633", "0.47835964", "0.47821993", "0.47791988", "0.4778207", "0.47754076", "0.47646782", "0.47601956", "0.4759397", "0.47565633", "0.47496113", "0.4747781", "0.47437042", "0.4743056", "0.47428045", "0.47426364", "0.47415847", "0.47393534", "0.47386807", "0.47337985", "0.4731755", "0.47311196", "0.4729384", "0.47267365", "0.47261268", "0.47241092", "0.4721955", "0.47211954", "0.47190264", "0.47181052", "0.47157425", "0.47144067", "0.47131142", "0.47085443", "0.47074568", "0.470646", "0.47042587", "0.47016662", "0.46999088", "0.46963832", "0.46917397", "0.4691392", "0.46897495", "0.46897337", "0.46848476" ]
0.0
-1
Returns the value of this Month as an int.
public int intValue() { return this.month; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMonthValue(){\n\t\treturn monthValue;\n\t}", "public int getMonthInt() {\n return month;\r\n }", "public int getMonth() {\r\n return FormatUtils.uint8ToInt(mMonth);\r\n }", "public int getMonthInteger() \n\t{\n\t\t// 1 will be added here to be able to use this func alone to construct e.g adate\n\t\t// to get the name of the month from getMonth(), 1 must be deducted.\n\t\treturn 1+m_calendar.get(Calendar.MONTH);\n\n\t}", "public int getMonth() {\r\n\t\treturn (this.month);\r\n\t}", "public Integer getMonth() {\r\n return month;\r\n }", "public int getMonth() {\n return this.month;\n }", "public int getMonth() {\n return this.month;\n }", "public Integer getMonth() {\n return month;\n }", "public Integer getMonth() {\n return month;\n }", "public Integer toInteger() {\n\t\treturn this.getValue().intValue();\n\t}", "public int getMonth() {\n\t\treturn date.getMonthValue();\n\t}", "public int getMonth() {\n return month;\n }", "public int intValue()\n\t\t{\n\t\t\treturn (int) doubleValue();\n\t\t}", "public int getMonth()\n {\n return month;\n }", "public int getMonth(){\n\t\treturn month;\n\t}", "public int intValue() {\n return m_value;\n }", "public int toInt() {\n return this.toIntArray()[0];\n }", "public int monthOfYear() {\r\n\t\treturn mC.get(Calendar.MONTH);\r\n\t}", "public static int getValueInt()\n {\n return Util.valueInt;\n }", "public int toInt()\n\t{\n\t\treturn (int) toLong();\n\t}", "public int intValue() {\n return value;\n }", "public int getMonthDate()\n\t{\n\t\tif (m_nType == AT_MONTH_DATE)\n\t\t\treturn ((Integer)m_oData).intValue();\n\t\telse\n\t\t\treturn -1;\n\t}", "public int getValue()\n {\n return mi_value;\n }", "public int getValue()\n {\n return mi_value;\n }", "public int getCurrentDayOfMonthAsNum() {\n\t\t\t\tint dayOfMonth = Calendar.getInstance().get(Calendar.DAY_OF_MONTH);\n\t\t\t\treturn dayOfMonth;\n\t\t\t}", "public final int getValue() {\n return mValue;\n }", "public int intValue( )\n {\n return value;\n }", "public int getInt(){\n return new BigInteger(this.value).intValue();\n }", "public int get_int_value()\n\t{\n\t\treturn this.int_value;\n\t}", "public int getInt() {\r\n\t\treturn (value.getInt());\r\n\t}", "public int getIntValue() {\n return (int)getValue();\n }", "public int getMonth() {\n\t\treturn month;\n\t}", "public int getIntValue(){\n\t\treturn value.intValue();\n\t}", "public int getMonth() {\n\t\treturn month;\n\t}", "public int getValue() {\n\t\t// Precondition -- The value is a non-negative integer.\n\t\tassert(value >= 0);\n\t\t\n\t\treturn value;\n\t}", "public int getMonthOfYear() {\n return _calendar.get(Calendar.MONTH) + 1;\n }", "public int getMonth() {\r\n // ersetzt deprecated Methode Date.getMonth()\r\n return this.month;\r\n }", "public int intValue() {\r\n return _value;\r\n }", "public int getValue() {\n return intValue;\n }", "public int getValue() {\n return intValue;\n }", "public int intValue() {\n\t\treturn (int) mDouble;\n\t}", "@JsonGetter(\"exp_month\")\r\n public int getExpMonth ( ) { \r\n return this.expMonth;\r\n }", "public byte getMonth() {\n return month;\n }", "public byte getMonth() {\r\n return month;\r\n }", "public int getIntValue() {\n return intValue_;\n }", "public int getValue() {\n return mValue;\n }", "public int getValue() {\n return mValue;\n }", "public int getValue() {\n\t\treturn this.getValue();\n\t}", "public int intValue() {\n\t\treturn getSection().intValue();\n\t}", "public int getValue() {\n\t\treturn mValue;\n\t}", "public int getMonths() {\n return this.months;\n }", "public int getIntValue() {\n return intValue_;\n }", "public byte getMonth() {\n return month;\n }", "public byte getMonth() {\n return month;\n }", "public byte getMonth() {\n return month;\n }", "public byte getMonth() {\n return month;\n }", "public int getValue ()\r\n\t{\r\n\t\treturn (m_value);\r\n\t}", "public int getValue() {\n return m_value;\n }", "public Integer getValue() {\n return formatter.getValue();\n }", "public int getValue() {\n\t\treturn this.value;\n\t}", "public int getDateAsNumber(){\n\t\tSimpleDateFormat f = new SimpleDateFormat(\"yyyyMMdd\");\n\t\treturn Integer.parseInt(f.format(date.get()));\n\t}", "public int getValue() {\r\n\t\treturn this.value;\r\n\t}", "public int getValue() {\r\n\t\treturn this.value;\r\n\t}", "public int getValue() {\n\t\t\treturn value;\n\t\t}", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "public IntType asInt(){\n return TypeFactory.getIntType(this.toInt(this.getValue()));\n }", "public int getValue() {\n return value_;\n }", "public int mo23310ma() {\n return ((Integer) this.f13965a.mo23249a(C7196pb.f13711Jb)).intValue();\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\r\n Object subjectValue = subject.getValue();\r\n return subjectValue == null\r\n ? getMinimum()\r\n : ((Integer) subjectValue).intValue();\r\n }", "public final int getInt()\n {\n return intValue;\n }", "public Integer getValidMonths() {\n return (Integer) getAttributeInternal(VALIDMONTHS);\n }", "public int getValue() {\n\t\treturn value;\n\t}", "public int getValue() {\n\t\treturn value;\n\t}", "public int getValue() {\n\t\treturn value;\n\t}", "public int getValue() {\n\t\treturn value;\n\t}", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public final native int getMonth() /*-{\n return this.getMonth();\n }-*/;", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }" ]
[ "0.7565369", "0.74934334", "0.74289113", "0.72033334", "0.68051517", "0.6723722", "0.67031956", "0.67031956", "0.66912675", "0.66912675", "0.6671523", "0.6662182", "0.65645796", "0.65552884", "0.6553972", "0.6541254", "0.65157944", "0.64943695", "0.64766514", "0.6450192", "0.6437411", "0.6431527", "0.6425188", "0.63672924", "0.63672924", "0.6365114", "0.6353845", "0.63423926", "0.63226944", "0.63194805", "0.6319047", "0.6304863", "0.6291251", "0.6284897", "0.6271249", "0.62621766", "0.6259185", "0.6244245", "0.62305796", "0.6224165", "0.6224165", "0.6220208", "0.6217909", "0.619207", "0.61894", "0.61762846", "0.61624354", "0.6160901", "0.6160531", "0.615294", "0.6148983", "0.6141808", "0.6134914", "0.6133592", "0.61263806", "0.61263806", "0.61263806", "0.61155415", "0.6094666", "0.60728073", "0.60421324", "0.60154414", "0.60151374", "0.60151374", "0.6014276", "0.5995493", "0.5995493", "0.5995493", "0.5995493", "0.5994912", "0.59942853", "0.5989092", "0.5983605", "0.59795815", "0.5973237", "0.5946613", "0.5937533", "0.5937533", "0.5937533", "0.5937533", "0.5935599", "0.5935599", "0.5933609", "0.5933609", "0.5933609", "0.5933609", "0.5933609", "0.5933609", "0.5933609", "0.5933609", "0.5928538", "0.5923014", "0.5923014", "0.5923014", "0.5923014", "0.5923014", "0.5923014", "0.5923014", "0.5923014", "0.5923014" ]
0.82073367
0
Is equal with another object.
@Override public boolean equals(final Object obj) { return this == obj; /* if (this == obj) { return true; } if (!(obj instanceof Month)) { return false; } final Month other = (Month)obj; return false; // this.month == other.month; */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testEquality(){\n\t\t assertEquals(object1, object2);\r\n\t}", "@Test\n\tpublic void testEqualsObject_True() {\n\t\tbook3 = new Book(DEFAULT_TITLE, DEFAULT_AUTHOR, DEFAULT_YEAR, DEFAULT_ISBN);\n\t\tassertEquals(book1, book3);\n\t}", "public abstract boolean equals(Object other);", "public boolean equals( Object obj );", "public boolean equals(Object object);", "public boolean equals(java.lang.Object other){\n return false; //TODO codavaj!!\n }", "public boolean equals(Object obj);", "public boolean isEqual(Object objectname1, Object objectname2, Class<?> voClass) {\n\t\treturn false;\n\t}", "public boolean equals(Object o);", "boolean equals(Object object);", "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Receta instance = new Receta();\n instance.setNombre(\"nom1\");\n Receta instance2 = new Receta();\n instance.setNombre(\"nom2\");\n boolean expResult = false;\n boolean result = instance.equals(instance2);\n assertEquals(expResult, result);\n }", "public boolean equal(Object obj1, Object obj2) {\n\t\treturn obj1.equals(obj2);\r\n\t}", "public abstract boolean equals(Object o);", "@Test\n public void testEquals02() {\n System.out.println(\"equals\");\n Object otherObject = new SocialNetwork();\n boolean result = sn10.equals(otherObject);\n assertFalse(result);\n }", "public void testEqualsObject()\n {\n // Null check\n assertFalse(b1.equals(null));\n // Type mismatch\n assertFalse(b1.equals(\"a\"));\n\n // Reflexive\n assertTrue(b1.equals(b1));\n\n // In general, two empty boards\n assertTrue(b1.equals(b2));\n\n // Different contents\n b1.setCell(0, 0, Cell.RED1);\n assertFalse(b1.equals(b2));\n\n // Same Contents\n b2.setCell(0, 0, Cell.RED1);\n assertTrue(b1.equals(b2));\n\n // Some more complex cases\n b1.fromString(\"RRRBEEBBE\");\n assertFalse(b1.equals(b2));\n b2.fromString(\"RRRBEEBBE\");\n assertTrue(b1.equals(b2));\n\n }", "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Commissioner instance = new Commissioner();\n Commissioner instance2 = new Commissioner();\n instance.setLogin(\"genie\");\n instance2.setLogin(\"genie\");\n boolean expResult = true;\n boolean result = instance.equals(instance2);\n assertEquals(expResult, result);\n }", "@Override public boolean equals(Object object);", "boolean equals(Object obj);", "boolean equals(Object obj);", "@Test\n void equals1() {\n Student s1=new Student(\"emina\",\"milanovic\",18231);\n Student s2=new Student(\"emina\",\"milanovic\",18231);\n assertEquals(true,s1.equals(s2));\n }", "boolean equals(Object o);", "boolean equals(Object o);", "boolean equals(Object o);", "boolean equals(Object o);", "boolean equals(Object o);", "@Override\n boolean equals(Object other);", "public void testEqualsObject()\n {\n Mana meme = new Mana( myMise );\n Assert.assertEquals( myMise, meme );\n \n System.out.println( myMise.toString());\n Mana autre = new Mana( 49 );\n Assert.assertFalse( myMise.equals( autre ));\n autre = new Mana( 50 );\n Assert.assertTrue( myMise.equals( autre ));\n }", "boolean canEqual(Object obj);", "public final void testSameObjectEquals() {\n final Transaction copy = testTransaction1;\n assertTrue(testTransaction1.equals(copy)); // pmd doesn't like either\n // way\n\n }", "@Test\n void testEquals() {\n final boolean expected_boolean = true;\n\n // Properties for the objects\n final String username = \"username\";\n final String name = \"their_name\";\n final String password = \"password\";\n\n // Create two LoginAccount objects\n LoginAccount first_account = new LoginAccount(username, name, password);\n LoginAccount second_account = new LoginAccount(username, name, password);\n\n // Variable to check\n boolean objects_are_equal = first_account.equals(second_account);\n\n // Assert that the two boolean values are the same\n assertEquals(expected_boolean, objects_are_equal);\n }", "public boolean equals(Object another) {\n return (this == another);\n }", "@Test\n public void testEquals01() {\n System.out.println(\"equals\");\n Object otherObject = new SocialNetwork();\n SocialNetwork sn = new SocialNetwork();\n boolean result = sn.equals(otherObject);\n assertTrue(result);\n }", "public boolean isIdentical(Remote obj1, Remote obj2)\n {\n\torg.omg.CORBA.Object corbaObj1 = (org.omg.CORBA.Object)obj1;\n\torg.omg.CORBA.Object corbaObj2 = (org.omg.CORBA.Object)obj2;\n\n\treturn corbaObj1._is_equivalent(corbaObj2);\n }", "@Test\n @DisplayName(\"Test should detect equality between equal states.\")\n public void testShouldResultInEquality() {\n ObjectBag os1 = new ObjectBag(null, \"Hi\");\n ObjectBag os2 = new ObjectBag(null, \"Hi\");\n\n Assertions.assertThat(os1).isEqualTo(os2);\n }", "@Test\n public void testEquals() {\n System.out.println(\"Animal.equals\");\n Animal newAnimal = new Animal(252, \"Candid Chandelier\", 10, \"Cheetah\", 202);\n assertTrue(animal1.equals(newAnimal));\n assertFalse(animal2.equals(newAnimal));\n }", "@Override\n public boolean equals(Object other) {\n return this == other;\n }", "boolean equalTo(ObjectPassDemo o) {\n return (o.a == a && o.b == b);\n }", "@Test\n public void testEquals() {\n \n Beneficiaire instance = ben2;\n Beneficiaire unAutreBeneficiaire = ben3;\n boolean expResult = false;\n boolean result = instance.equals(unAutreBeneficiaire);\n assertEquals(expResult, result);\n\n unAutreBeneficiaire = ben2;\n expResult = true;\n result = instance.equals(unAutreBeneficiaire);\n assertEquals(expResult, result);\n }", "@Override\n\tpublic abstract boolean equals(Object other);", "boolean _is_equivalent(org.omg.CORBA.Object other);", "@Test\n public void testEquals_2()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n Object obj = new Project();\n\n boolean result = fixture.equals(obj);\n\n assertEquals(true, result);\n }", "@Override\n public abstract boolean equals(Object other);", "@Override\n public abstract boolean equals(Object other);", "public static boolean equals(Object obj1, Object obj2)\n {\n return obj1 == obj2;\n }", "private static final boolean equal(Object a, Object b) {\n if (a == b)\n return true;\n if (a == null)\n return false;\n if (b == null)\n return false;\n return a.equals(b);\n }", "@Override\n public final boolean equals(final Object other) {\n return super.equals(other);\n }", "@Override\n boolean equals(Object obj);", "@Override\n public abstract boolean equals(Object obj);", "@Override \n boolean equals(Object obj);", "@Override // com.google.common.base.Equivalence\n public boolean doEquivalent(Object a, Object b) {\n return a.equals(b);\n }", "@Test\n\tpublic void test_TCM__boolean_equals_Object() {\n\t\tfinal Attribute attribute = new Attribute(\"test\", \"value\");\n\n assertFalse(\"attribute equal to null\", attribute.equals(null));\n\n final Object object = attribute;\n assertTrue(\"object not equal to attribute\", attribute.equals(object));\n assertTrue(\"attribute not equal to object\", object.equals(attribute));\n\n // current implementation checks only for identity\n// final Attribute clonedAttribute = (Attribute) attribute.clone();\n// assertTrue(\"attribute not equal to its clone\", attribute.equals(clonedAttribute));\n// assertTrue(\"clone not equal to attribute\", clonedAttribute.equals(attribute));\n\t}", "@Override\n public boolean equals(Object obj) {\n return this == obj;\n }", "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Object object = null;\n Reserva instance = new Reserva();\n boolean expResult = false;\n boolean result = instance.equals(object);\n assertEquals(expResult, result);\n \n }", "@Test\n public void testEquals_sameParameters() {\n CellIdentityNr cellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI,\n ALPHAL, ALPHAS, Collections.emptyList());\n CellIdentityNr anotherCellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI,\n ALPHAL, ALPHAS, Collections.emptyList());\n\n // THEN this two objects are equivalent\n assertThat(cellIdentityNr).isEqualTo(anotherCellIdentityNr);\n }", "public void testObjEqual()\n {\n assertEquals( true, Util.objEqual(null,null) );\n assertEquals( false,Util.objEqual(this,null) );\n assertEquals( false,Util.objEqual(null,this) );\n assertEquals( true, Util.objEqual(this,this) );\n assertEquals( true, Util.objEqual(\"12\",\"12\") );\n }", "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Object outroObjecto = new RegistoExposicoes();\n RegistoExposicoes instance = new RegistoExposicoes();\n assertTrue(instance.equals(outroObjecto));\n }", "public boolean equals(XObject obj2) {\n/* */ try {\n/* 262 */ if (4 == obj2.getType())\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 268 */ return obj2.equals(this);\n/* */ }\n/* 270 */ if (1 == obj2.getType())\n/* */ {\n/* 272 */ return (bool() == obj2.bool());\n/* */ }\n/* 274 */ if (2 == obj2.getType())\n/* */ {\n/* 276 */ return (num() == obj2.num());\n/* */ }\n/* 278 */ if (4 == obj2.getType())\n/* */ {\n/* 280 */ return xstr().equals(obj2.xstr());\n/* */ }\n/* 282 */ if (3 == obj2.getType())\n/* */ {\n/* 284 */ return xstr().equals(obj2.xstr());\n/* */ }\n/* 286 */ if (5 == obj2.getType())\n/* */ {\n/* */ \n/* */ \n/* 290 */ return xstr().equals(obj2.xstr());\n/* */ }\n/* */ \n/* */ \n/* 294 */ return super.equals(obj2);\n/* */ \n/* */ }\n/* 297 */ catch (TransformerException te) {\n/* */ \n/* 299 */ throw new WrappedRuntimeException(te);\n/* */ } \n/* */ }", "@Test\n public void testEquals() {\n\tLoadCategoriesForm obj = new LoadCategoriesForm();\n\tobj.setLoadCategory(new LoadCategories());\n\tLoadCategoriesForm instance = new LoadCategoriesForm();\n\tinstance.setLoadCategory(new LoadCategories());\n\tboolean expResult = true;\n\tboolean result = instance.equals(obj);\n\tassertEquals(expResult, result);\n }", "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Object object = null;\n Paciente instance = new Paciente();\n boolean expResult = false;\n boolean result = instance.equals(object);\n assertEquals(expResult, result);\n\n }", "@Test\n public void equalsTest() {\n prepareEntitiesForEqualityTest();\n\n assertEquals(entity0, entity1);\n }", "@Test\r\n public void testEquals() {\r\n Articulo art = new Articulo();\r\n articuloPrueba.setCodigo(1212);\r\n art.setCodigo(1212);\r\n boolean expResult = true;\r\n boolean result = articuloPrueba.equals(art);\r\n assertEquals(expResult, result);\r\n }", "public boolean mojeEquals(Obj o1, Obj o2) {\r\n\t\t//System.out.println(o1.getName() + \" \" + o2.getName());\r\n\t\tboolean sameRight = true; // 21.06.2020. provera prava pristupa\r\n\t\tboolean sameName = true;\t// 22.06.2020. ako nisu metode ne moraju da imaju isto ime\r\n\t\tboolean sameArrayType = true; //22.6.2020 ako je parametar niz mora isti tip niza da bude\r\n\t\t\r\n\t\tif (o1.getKind() == Obj.Meth && o2.getKind() == Obj.Meth) {\r\n\t\t\tsameRight = o1.getFpPos() == o2.getFpPos()+10; \r\n\t\t\tsameName = o1.getName().equals(o2.getName());\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (o1.getType().getKind() == Struct.Array && o2.getType().getKind() == Struct.Array) {\r\n\t\t\t\tif (!(o1.getType().getElemType() == o2.getType().getElemType())) { // ZA KLASE MOZDA TREBA equals\r\n\t\t\t\t\tsameArrayType = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// 16.08.2020.\r\n//\t\tif (o1.getType().getKind() == Struct.Class || o1.getType().getKind() == Struct.Interface)\r\n//\t\t\treturn true;\r\n\t\t\r\n\t\t\r\n\t\treturn o1.getKind() == o2.getKind() \r\n\t\t\t\t&& sameName\r\n\t\t\t\t&& o1.getType().equals(o2.getType())\r\n\t\t\t\t&& /*adr == other.adr*/ o1.getLevel() == o2.getLevel()\r\n\t\t\t\t&& equalsCompleteHash(o1.getLocalSymbols(), o2.getLocalSymbols())\r\n\t\t\t\t&& sameRight // 21.06.2020. provera prava pristupa\r\n\t\t\t\t&& sameArrayType; //22.6.2020 ako je parametar niz mora isti tip niza da bude\r\n\t}", "@Override\n boolean equals(Object o);", "@JRubyMethod(name = \"==\", required = 1)\n public static IRubyObject op_equal(ThreadContext ctx, IRubyObject self, IRubyObject oth) {\n RubyString str1, str2;\n RubyModule instance = (RubyModule)self.getRuntime().getModule(\"Digest\").getConstantAt(\"Instance\");\n if (oth.getMetaClass().getRealClass().hasModuleInHierarchy(instance)) {\n str1 = digest(ctx, self, null).convertToString();\n str2 = digest(ctx, oth, null).convertToString();\n } else {\n str1 = to_s(ctx, self).convertToString();\n str2 = oth.convertToString();\n }\n boolean ret = str1.length().eql(str2.length()) && (str1.eql(str2));\n return ret ? self.getRuntime().getTrue() : self.getRuntime().getFalse();\n }", "public static void main(String[] args) {\nAddress addobj = new Address();\r\nAddress addobj2=new Address();\r\n\r\nSystem.out.println(\"addobj: \"+addobj);\r\nSystem.out.println(\"addobj2: \"+addobj2);\r\nSystem.out.println(addobj==addobj2);\r\n//System.out.println(addobj.equals(addobj2));\r\n\r\naddobj.name=\"F\";\r\naddobj.zip=94536;\r\naddobj2.name=\"F\";\r\naddobj2.zip=94536;\r\n\r\nSystem.out.println(addobj.equals(addobj2));\r\n\r\n\r\n}", "public boolean equals( Object other){\n \tif( other instanceof Person){\n \t\treturn personId == ((Person)other).getPersonId();\n \t}\n \treturn false;\n }", "@Test\n\tpublic void testEqualsObject_False() {\n\t\tassertNotEquals(book1, book2);;\n\t}", "@Override\n public boolean equals(Object o) {\n return this == o;\n }", "public static boolean defaultEquals(DataValue obj1, Object obj2) {\r\n if (obj1 == obj2) return true;\r\n if (obj2 == null) return false;\r\n if (!(obj2 instanceof DataValue)) return false;\r\n DataValue other = (DataValue) obj2;\r\n if (!obj1.getName().equals(other.getName())) return false;\r\n if (obj1.getObject() == null) {\r\n if (other.getObject() != null) return false;\r\n } else if (obj1.getObject().getClass().isArray()) {\r\n if (!other.getObject().getClass().isArray()) return false;\r\n return Arrays.equals((byte[]) obj1.getObject(), (byte[]) other.getObject());\r\n } else {\r\n if (!obj1.getObject().equals(other.getObject())) return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean equals(Object other) {\n if (other.getClass() == getClass()) {\n return hashCode() == other.hashCode();\n }\n\n return false;\n }", "@Test\n\tpublic void test_equals1() {\n\tTennisPlayer c1 = new TennisPlayer(11,\"Joe Tsonga\");\n\tTennisPlayer c2 = new TennisPlayer(11,\"Joe Tsonga\");\n\tassertTrue(c1.equals(c2));\n }", "public void testEqualsObject()\n {\n EtatJeu meme = new EtatJeu( myEtat );\n Assert.assertEquals( myEtat, meme );\n \n EtatJeu autre = new EtatJeu();\n \n System.out.println( myEtat.toString());\n Assert.assertTrue( myEtat.equals( autre ));\n }", "static public boolean areEqual(Object aThis, Object aThat) {\r\n // System.out.println(\"Object\");\r\n return aThis == null ? aThat == null : aThis.equals(aThat);\r\n }", "@Test\n public void equalsSameTest() {\n Device device2 = new Device(deviceID, token);\n assertEquals(device, device2);\n }", "@Override\n public boolean equals(Object other) {\n return super.equals(other);\n }", "@Test\n public void testEquals_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n Object obj = new Object();\n\n boolean result = fixture.equals(obj);\n\n assertEquals(false, result);\n }", "@Test\n public void testEquals() {\n\tSystem.out.println(\"equals\");\n\tObject obj = null;\n\tJenkinsBuild instance = new JenkinsBuild();\n\tboolean expResult = false;\n\tboolean result = instance.equals(obj);\n\tassertEquals(expResult, result);\n\tJenkinsBuild newObj = new JenkinsBuild();\n\tnewObj.setBuildNumber(0);\n\tnewObj.setSystemLoadId(\"\");\n\tnewObj.setJobName(\"\");\n\tassertEquals(expResult, instance.equals(newObj));\n }", "public boolean equals(Object other){\r\n Car nuCar = (Car)other;\r\n if(super.equals(nuCar)){\r\n if(this.model==nuCar.model&&this.AWD==nuCar.AWD){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }else{\r\n return false;\r\n }\r\n\t}", "@Test\n\tpublic void test_equals1() {\n\tTvShow t1 = new TvShow(\"Sherlock\",\"BBC\");\n\tTvShow t2 = new TvShow(\"Sherlock\",\"BBC\");\n\tassertTrue(t1.equals(t2));\n }", "@Override\n\tpublic boolean equal() {\n\t\treturn false;\n\t}", "@Test\n public void testEquals() {\n Coctail c1 = new Coctail(\"coctail\", new Ingredient[]{ \n new Ingredient(\"ing1\"), new Ingredient(\"ing2\")});\n Coctail c2 = new Coctail(\"coctail\", new Ingredient[]{ \n new Ingredient(\"ing1\"), new Ingredient(\"ing2\")});\n assertEquals(c1, c2);\n }", "@Test\n public void equals() {\n assertTrue(semester.equals(new Semester(1, 0)));\n\n // same object -> returns true\n assertTrue(semester.equals(semester));\n\n // null -> returns false\n assertFalse(semester.equals(null));\n\n // different type -> returns false\n assertFalse(semester.equals(5));\n\n // different year -> returns false\n assertFalse(semester.equals(new Semester(2, 0)));\n\n // different index -> returns false\n assertFalse(semester.equals(new Semester(1, 1)));\n\n // different modules -> returns false\n Semester differentSemester = new Semester(1, 0);\n differentSemester.addModules(getTypicalModules());\n assertFalse(semester.equals(differentSemester));\n }", "public void testEqualsObject() {\n\t\t\tTipoNodoLeisure tipo1 = new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.0\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo2= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.1\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo3= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.2\")); //$NON-NLS-1$\n\t\t\tif (tipo1 != tipo1)\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.3\")); //$NON-NLS-1$\n\t\t\tif (!tipo1.equals(tipo2))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.4\"));\t\t\t //$NON-NLS-1$\n\t\t\tif (tipo1.equals(tipo3))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.5\"));\t //$NON-NLS-1$\n\t\t}", "@Test\n public void testEqualsObject() {\n \n BSPJobID jobId1 = new BSPJobID(jtIdentifier, 2);\n System.out.println(jobId.equals(jobId1));\n assertEquals(false, jobId.equals(jobId1));\n }", "public final boolean equals(Object obj) {\r\n return this == obj;\r\n }", "@Override // com.google.common.base.Equivalence\n public boolean doEquivalent(Object a, Object b) {\n return false;\n }", "@Test\n public void testEquals_1() {\n LOGGER.info(\"testEquals_1\");\n final AtomString atomString = new AtomString(\"Hello\");\n final Atom atom = new AtomString(\"Hello\");\n final boolean actual = atomString.equals(atom);\n assertTrue(actual);\n }", "@Test\r\n public void testEquals() {\r\n System.out.println(\"equals\");\r\n Object obj = null;\r\n RevisorParentesis instance = null;\r\n boolean expResult = false;\r\n boolean result = instance.equals(obj);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n public void testEquals_2() {\n LOGGER.info(\"testEquals_2\");\n final AtomString atomString = new AtomString(\"Hello\");\n final Atom atom = new AtomString(\"Hej\");\n final boolean actual = atomString.equals(atom);\n assertFalse(actual);\n }", "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Object obj = null;\n Usuario instance = null;\n boolean expResult = false;\n boolean result = instance.equals(obj);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Override\n public boolean equals(Object obj) {\n return this == obj;\n }", "public boolean equals(Object otherObject)\n {\n boolean isEqual = super.equals(otherObject);\n\n if(isEqual)\n {\n if(getClass() == otherObject.getClass())\n {\n isEqual = true;\n }\n else\n {\n isEqual = false;\n }\n }\n\n return isEqual;\n }", "@Test\n\tpublic void testEquals() {\n\t\tPMUser user = new PMUser(\"Smith\", \"John\", \"jsmith@gmail.com\");\n\t\tPark a = new Park(\"name\", \"address\", user);\n\t\tPark b = new Park(\"name\", \"address\", user);\n\t\tPark c = new Park(\"name\", \"different address\", user);\n\t\tassertEquals(a, a);\n\t\tassertEquals(a, b);\n\t\tassertEquals(b, a);\n\t\tassertFalse(a.equals(c));\n\t}", "@Override public boolean equals(Object o) { // since 1.3.1\n // should these ever match actually?\n return (o == this);\n }", "public static boolean operator ==(LocalValueEnumerator obj1, LocalValueEnumerator obj2)\r\n { \r\n return obj1.Equals(obj2); \r\n }", "public boolean equal(Object obj) {\n\t\tif((super.equal(obj))==false) {return false;}\n\t\tif (!(this.purpose).equals(((Airborne)obj).purpose)) {return false;}\n\t\treturn true;\n\t}", "public static boolean isSameObject(Object a, Object b) {\n return Builtins.isSameObject(a, b);\n }", "@Test\n public void equals() throws Exception {\n SmartPlayer x = new SmartPlayer(0, 0);\n SmartPlayer y = new SmartPlayer(0, 0);\n assertTrue(x.equals(y));\n }", "@Test\n\tpublic void objectEqualsTest() {\n\t\tAssert.assertEquals(service1, service2);\n\t\tAssert.assertSame(service1, service2);\n\t}", "@Test\n public void equals_DifferentObjects_Test() {\n Assert.assertFalse(bq1.equals(ONE));\n }", "public boolean equals(XObject obj2){\n if(obj2.getType()==XObject.CLASS_NODESET)\n return obj2.equals(this);\n if(null!=m_obj){\n return m_obj.equals(obj2.m_obj);\n }else{\n return obj2.m_obj==null;\n }\n }" ]
[ "0.78970635", "0.76428384", "0.7617651", "0.75961274", "0.7570265", "0.7532897", "0.7497519", "0.7424101", "0.7383553", "0.7363338", "0.73619705", "0.73470235", "0.7286246", "0.727481", "0.72471565", "0.72393596", "0.7213495", "0.7212865", "0.7212865", "0.7198569", "0.71980363", "0.71980363", "0.71980363", "0.71980363", "0.71980363", "0.7187961", "0.7186758", "0.714982", "0.7148592", "0.714659", "0.7143248", "0.7127933", "0.71174836", "0.71101576", "0.7100449", "0.7091768", "0.70657665", "0.70531714", "0.7044386", "0.70423746", "0.70360076", "0.7035143", "0.7035143", "0.69933856", "0.6990724", "0.69779253", "0.6960956", "0.6951297", "0.6951098", "0.69469947", "0.6938551", "0.6935131", "0.6932958", "0.6914624", "0.6905405", "0.6898625", "0.6894709", "0.68930894", "0.6887789", "0.6879948", "0.68794495", "0.6866478", "0.68662214", "0.6858453", "0.68521994", "0.6836575", "0.6835657", "0.6833817", "0.68321335", "0.68282455", "0.6827519", "0.68059367", "0.67828256", "0.6779489", "0.6775279", "0.67680633", "0.67590433", "0.6752934", "0.6739414", "0.6734386", "0.67330927", "0.673286", "0.67323023", "0.67261195", "0.6720557", "0.671427", "0.67129475", "0.67109984", "0.6705691", "0.6705303", "0.6701517", "0.6698737", "0.6696251", "0.6691987", "0.6682638", "0.66773653", "0.667171", "0.6661517", "0.66611725", "0.66604346", "0.66573" ]
0.0
-1
Returns the string representation of this Month. The exact details of this representation are unspecified and subject to change, but the following may be regarded as typical: "Month[month=1]"
@Override public String toString() { final StringBuilder builder = new StringBuilder(); builder.append("Month[month=").append(this.month).append(']'); //$NON-NLS-1$ return builder.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\r\n\t\treturn \"[\" + month + \"-\" + day + \"-\" + year + \"]\";\r\n\t}", "public String toString(){\n\t\t\n\t\treturn month+\"/\"+day+\"/\"+year;\n\t}", "public String getMonthName()\r\n {\r\n int mn = theMonthNumber;\r\n if (mn == 1)\r\n {return \"January\";}\r\n else if (mn == 2)\r\n {return \"February\";}\r\n else if (mn == 3)\r\n {return \"March\";}\r\n else if (mn == 4)\r\n {return \"April\";}\r\n else if (mn == 5)\r\n {return \"May\";}\r\n else if (mn == 6)\r\n {return \"June\";}\r\n else if (mn == 7)\r\n {return \"July\";}\r\n else if (mn == 8)\r\n {return \"August\";}\r\n else if (mn == 9)\r\n {return \"September\";}\r\n else if (mn == 10)\r\n {return \"October\";}\r\n else if (mn == 11)\r\n {return \"November\";}\r\n else\r\n {return \"December\";}\r\n }", "public String getMonth()\n {\n return Month.get();\n }", "public String toString() {\n\t\t\treturn month + \"/\" + day + \"/\" + year;\n\t\t}", "public String toString(){\n\t\tString result = Integer.toString(day) + \" \";\n\t\tswitch (month){\n\t\t\tcase 1:\n\t\t\t\tresult += \"January, \";\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tresult += \"February, \";\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tresult += \"March, \";\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tresult += \"April, \";\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tresult += \"May, \";\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\tresult += \"June, \";\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\tresult += \"July, \";\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\tresult += \"August, \";\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\tresult += \"September, \";\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\tresult += \"October, \";\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\tresult += \"November, \";\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\tresult += \"December, \";\n\t\t\t\tbreak;\n\t\t}\n\t\tresult += Integer.toString((year / 10 % 10)) + Integer.toString((year % 10));\n\n\t\treturn result;\n\t}", "@Override\n public String toString() {\n return (this.month + \"/\" + this.day + \"/\" + this.year);\n }", "public String getMonth() {\r\n return month;\r\n }", "public String getMonth() {\n return month;\n }", "public String toString() {\r\n\t\treturn String.format(\"%02d/%02d/%02d\", month, day, year);\r\n\r\n\t}", "public String toString(){\r\n\t\treturn (month+\", \"+year+\" // \"+location.toString());\r\n\t}", "public String toString() {\r\n String date = month + \"/\" + day;\r\n return date;\r\n }", "public String toString() {\n return this.day + \" \" + this.month + \" \" + this.time;\n }", "public final String getMonthName() {\n return yearMonthProperty().get().getMonth().getDisplayName(TextStyle.FULL, Locale.getDefault());\n }", "public String toString() {\n return String.format(\"%02d:%02dZ%02d%s%d\", hour, minute, day, months[month - 1], year);\n }", "@Override\n public String toString() {\n return month + \"/\" + day + \"/\" + year;\n }", "public String toString() {\n StringBuilder output = new StringBuilder();\n LocalDateTime currentTime = getCurrentTime();\n output.append(currentTime.getYear()).append(\":\").append(currentTime.getMonthValue()).append(\":\")\n .append(currentTime.getDayOfMonth());\n return output.toString();\n }", "public String getMonth(int Month)\n {\n String[] months = {\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"};\n String realMonth = months[Month] + \" \" + i.getYear();\n return realMonth;\n }", "public String getMonth() {\n return month.getText();\n }", "public String asMonth() {\n \treturn new SimpleDateFormat(\"MM\").format(expiredAfter);\n }", "public String getMonth()\n {\n SimpleDateFormat newDateFormat = new SimpleDateFormat(\"dd/MM\");\n String MySDate = newDateFormat.format(this.dueDate);\n return MySDate;\n }", "@Override\n\tpublic String toString() {\n\t\ttry {\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\t\tDate date = formatter.parse(month + \"/\" + day + \"/\" + year);\n\n\t\t\treturn formatter.format(date);\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public String getReportMonth() {\r\n return reportMonth;\r\n }", "public String getCurrentDayOfMonthAsString() {\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "public static String getCalendarMonthString(int month)\r\n\t{\r\n\t\tString[] arrMonths = {\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"};\r\n\t\treturn arrMonths[month];\r\n\t}", "public String getMonth(int month) {\r\n\t\tString str = \"\";\r\n\t\tswitch (month) {\r\n\t\tcase 1:\r\n\t\t\tstr = \"January\";\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tstr = \"February\";\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tstr = \"March\";\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tstr = \"April\";\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tstr = \"May\";\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tstr = \"June\";\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tstr = \"July\";\r\n\t\t\tbreak;\r\n\t\tcase 8:\r\n\t\t\tstr = \"August\";\r\n\t\t\tbreak;\r\n\t\tcase 9:\r\n\t\t\tstr = \"September\";\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tstr = \"October\";\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tstr = \"November\";\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tstr = \"December\";\r\n\t\t}\r\n\t\treturn str;\r\n\t}", "public String toString()\n\t{\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"MMM-yyyy\");\n\t\t\n\t\treturn getBank() + \" \" + getAccount() + \" \" + format.format(getDate());\n\t}", "public String getJP_AcctMonth();", "private String getMonth(int i) {\n String month = \"\";\n switch (i) {\n case 0:\n month = \"Jan\";\n break;\n case 1:\n month = \"Feb\";\n break;\n case 2:\n month = \"Mar\";\n break;\n case 3:\n month = \"Apr\";\n break;\n case 4:\n month = \"May\";\n break;\n case 5:\n month = \"Jun\";\n break;\n case 6:\n month = \"Jul\";\n break;\n case 7:\n month = \"Aug\";\n break;\n case 8:\n month = \"Sep\";\n break;\n case 9:\n month = \"Oct\";\n break;\n case 10:\n month = \"Nov\";\n break;\n case 11:\n month = \"Dec\";\n break;\n }\n return month;\n }", "public String toString() {\n\t\treturn String.format(\"%d/%d/%d\", year, month, day);\n\t}", "@Override\n public final String toString() {\n \t\n \treturn String.format(\"[%1$s [%2$s\\t%3$s\\t%4$s]%1$s [%5$s\\t%6$s\\t%7$s]%1$s [%8$s\\t%9$s\\t%10$s] ]\", System.getProperty(\"line.separator\"), this.m00, this.m01, this.m02,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.m10, this.m11, this.m12,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.m20, this.m21, this.m22);\n }", "public java.lang.String getMonth() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: gov.nist.javax.sip.header.SIPDate.getMonth():java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.getMonth():java.lang.String\");\n }", "public String numToMonth(int m)\n {\n return monthsArray[m-1];\n }", "public CopticMonth getMonth() {\n\n return CopticMonth.valueOf(this.cmonth);\n\n }", "public String getYearMonthLabel() {\r\n return yearMonthLabel;\r\n }", "public String toString()\n {\n if ( ordinal == NULL_ORDINAL )\n {\n return \"\";\n }\n String result;\n if ( -999 <= yyyy && yyyy <= 9999 )\n {\n result = this.toLZ(yyyy,4);\n }\n else\n {\n result = Integer.toString(yyyy);\n }\n result += \"-\" + this.toLZ(mm,2) + \"-\" + this.toLZ(dd,2);\n return result;\n }", "public int getMonth() {\n return this.month;\n }", "public int getMonth() {\n return this.month;\n }", "public DateTimeFormatterBuilder appendMonthOfYearText() { \r\n return appendText(DateTimeFieldType.monthOfYear());\r\n }", "@Override\r\n\tpublic String toString() {\r\n\t\tString dispyear = \"\" + this.year;\r\n\t\tString dispmonth = \"\" + this.month;\r\n\t\tString dispday = \"\" + this.day;\r\n\t\tString disphour = \"\" + this.hour;\r\n\t\tString dispminute = \"\" + this.minute;\r\n\t\tif (this.month < 10) {\r\n\t\t\tdispmonth = \"0\" + dispmonth;\r\n\t\t}\r\n\t\tif (this.day < 10) {\r\n\t\t\tdispday = \"0\" + dispday;\r\n\t\t}\r\n\t\tif (this.hour < 10) {\r\n\t\t\tdisphour = \"0\" + disphour;\r\n\t\t}\r\n\t\tif (this.minute < 10) {\r\n\t\t\tdispminute = \"0\" + dispminute;\r\n\t\t}\r\n\t\treturn disphour + \":\" + dispminute + \", \" + dispday +\"/\" + dispmonth +\"/\" + dispyear;\r\n\t}", "public int getMonth() {\r\n return FormatUtils.uint8ToInt(mMonth);\r\n }", "public Integer getMonth() {\r\n return month;\r\n }", "public String toString()\n {\n String str = \"\";\n\n if (day < 10)\n {\n str += \"0\";\n }\n str += day + \"/\";\n\n if (month < 10)\n {\n str += \"0\";\n }\n str += month + \"/\";\n\n str += year + \"; \";\n\n if (hour < 10)\n {\n str += \"0\";\n }\n str += hour + \":\";\n\n if (minute < 10)\n {\n str += \"0\";\n }\n str += minute;\n\n return str;\n }", "@Override\n public String toString() {\n return String.format(year + \",\" + month + \",\" + day);\n\n }", "public int getMonth() {\r\n\t\treturn (this.month);\r\n\t}", "public String toString() {\n return '[' + description + \"][\" + date + ']';\n }", "private String monthIntToString (int month){\n String mese = \"\";\n Log.d(TAG, \"valore di mese in monthIntToString: \" + month);\n switch (month){\n case 0:\n mese = \"Gennaio\";\n break;\n case 1:\n mese = \"Febbraio\";\n break;\n case 2:\n mese = \"Marzo\";\n break;\n case 3:\n mese = \"Aprile\";\n break;\n case 4:\n mese = \"Maggio\";\n break;\n case 5:\n mese = \"Giugno\";\n break;\n case 6:\n mese = \"Luglio\";\n break;\n case 7:\n mese = \"Agosto\";\n break;\n case 8:\n mese = \"Settembre\";\n break;\n case 9:\n mese = \"Ottobre\";\n break;\n case 10:\n mese = \"Novembre\";\n break;\n case 11:\n mese = \"Dicembre\";\n break;\n }\n Log.d(TAG, \"a fine metodo monthIntToString se mese è \" + month + \" allora siamo nel mese di: \" + mese);\n return mese;\n }", "public Integer getMonth() {\n return month;\n }", "public Integer getMonth() {\n return month;\n }", "public int getMonth() {\n return month;\n }", "public String getMonth(int month) {\n\t\t\t\treturn new DateFormatSymbols().getMonths()[month];\n\t\t\t}", "public String dateToString() {\n\t\treturn new String(year + \"/\"\n\t\t\t\t+ month + \"/\"\n\t\t\t\t+ day);\n }", "public int getMonth() {\n\t\treturn month;\n\t}", "public String toString()\n {\n return getValue(12);\n }", "public static String getMonthNameByNumber(int Month){\n\t\tString MonthName = \"\";\n\t\tif(Month == 1){\n\t\t\tMonthName = \"January\" ;\t\n\t\t}else if(Month == 2){\n\t\t\tMonthName = \"February\";\n\t\t}else if(Month == 3){\n\t\t\tMonthName = \"March\";\n\t\t}else if(Month == 4){\n\t\t\tMonthName = \"April\";\n\t\t}else if(Month == 5){\n\t\t\tMonthName = \"May\";\n\t\t}else if(Month == 6){\n\t\t\tMonthName = \"June\";\n\t\t}else if(Month == 7){\n\t\t\tMonthName = \"July\";\n\t\t}else if(Month == 8){\n\t\t\tMonthName = \"August\";\n\t\t}else if(Month == 9){\n\t\t\tMonthName = \"September\";\n\t\t}else if(Month == 10){\n\t\t\tMonthName = \"October\";\n\t\t}else if(Month == 11){\n\t\t\tMonthName = \"November\";\n\t\t}else if(Month == 12){\n\t\t\tMonthName = \"December\";\n\t\t}\n\t\treturn MonthName;\n\t}", "public byte getMonth() {\r\n return month;\r\n }", "public int getMonth(){\n\t\treturn month;\n\t}", "public int getMonth() {\n\t\treturn month;\n\t}", "public int getMonth()\n {\n return month;\n }", "@Override\n public String getCurrentMonthAndYear() {\n\n setLogString(\"Get Month and year\", true, CustomLogLevel.HIGH);\n final String currentMonth = getElement(getDriver(), By.className(SAVINGS_MONTH),\n TINY_TIMEOUT).getText();\n setLogString(\"Current Month and Year: \" + currentMonth, true, CustomLogLevel.HIGH);\n return currentMonth.substring(currentMonth.indexOf(\"-\") + 1, currentMonth.length()).trim();\n }", "public String toString() {\n \tSimpleDateFormat formatter = new SimpleDateFormat(\"MMM dd, yyyy\");\n \t\n \t// convert the released date from calendar object to a date object\n \tDate gameDateobject = this.released.getTime();\n \t\n \t// convert the date object to a specific format\n \tString printDate = formatter.format(gameDateobject);\n \t\n \t// build and return the final string\n \tString finalOutput = \"\\\"\" + this.name + \"\\\"\" + \", released on: \" + printDate;\n \t\n\t\treturn finalOutput;\n }", "public String toString(){\r\n String details = \"Name: \" + name + \" Monthly Salary: \" + monthlySalary;\r\n return details; \r\n }", "public byte getMonth() {\n return month;\n }", "public byte getMonth() {\n return month;\n }", "public String toString() {\n System.out.println(this.getName() +\":\");\n System.out.println(\"Balance: $\" + this.getBalance());\n System.out.println(\"Monthly Interest: $\" + this.getMonthlyInterest());\n System.out.println(\"Date Created: \" + this.getDateCreated());\n System.out.println();\n return \"\";\n }", "public String getMonth(int month) {\n\t\treturn new DateFormatSymbols().getMonths()[month-1];\n\t}", "public byte getMonth() {\n return month;\n }", "public byte getMonth() {\n return month;\n }", "public byte getMonth() {\n return month;\n }", "public String toString() {\n\treturn String.format(\"%d/%d/%d\", year, month, day);\t\r\n\t}", "public static String[] getMonthNames() {\n if (MONTH_NAMES == null) {\n MONTH_NAMES = new String[12];\n int i = 0;\n for(Month m: Month.values()) {\n MONTH_NAMES[i++] = ProjectSummaryLogic.formatMonthName(m);\n }\n }\n return MONTH_NAMES;\n }", "public String toString() {\n\t\tdouble hour = getHour();\n\t\tString h = (hour < 10 ? \" \" : \"\") + (int) hour + \":\";\n\t\thour = 60 * (hour - (int) hour);\n\t\th += (hour < 10 ? \"0\" : \"\") + (int) hour + \":\";\n\t\thour = 60 * (hour - (int) hour);\n\t\th += (hour < 10 ? \"0\" : \"\") + hour;\n\n\t\treturn \"(YYYY/MM/DD) \" + getYear() + \"/\" + (getMonth() < 10 ? \"0\" : \"\") + getMonth() + \"/\"\n\t\t\t\t+ (getDay() < 10 ? \"0\" : \"\") + getDay() + \", \" + h + \"h \" + (getCalendarType() ? \"(greg)\" : \"(jul)\")\n\t\t\t\t+ \"\\n\" + \"Jul. Day: \" + getJulDay() + \"; \" + \"DeltaT: \" + getDeltaT();\n\t}", "@Override\n public String toString() {\n // Jahr, immer 4-stellig (führenden Nullen)\n String j = String.format(\"%04d\", jahr());\n\n // Monat, immer 2-stellig (führende Null)\n String m = String.format(\"%02d\", monat());\n\n // Tag, immer 2-stellig (führende Null)\n String t = String.format(\"%02d\", tag());\n\n // Trennzeichen (char -> String für String.join())\n String tz = String.valueOf(separator);\n\n // Setzt Datum entsprechend dem festgelegten format zusammen\n String datum = switch (format) {\n case \"jmt\" -> String.join(tz, j, m, t);\n case \"tmj\" -> String.join(tz, t, m, j);\n case \"mtj\" -> String.join(tz, m, t, j);\n default -> \"Usage: jmt/tmj/mtj\";\n };\n return datum;\n }", "@Override\n public String toString(){\n \n String result = (year + \" \" + preTB + \" \" + postTB + \" \" + Total + \"\\n\");\n return result;\n }", "public String toString()\n\t{\n\t\treturn super.toString() + \"\\n\" +\n\t\t\t \"\\t\" + \"Full Time\" + \"\\n\" +\n\t\t\t \"\\t\" + \"Monthly Salary: $\" + Double.toString(monthlyEarning());\n\t}", "public int getMonthInt() {\n return month;\r\n }", "public DateTimeFormatterBuilder appendMonthOfYearShortText() {\r\n return appendShortText(DateTimeFieldType.monthOfYear());\r\n }", "public String toString() {\n return title() + \" \" + longValue() + \" [DateTime]\";\n }", "public String toString(){\r\n\t\tString ret = \"MatrixArray:\\n\";\r\n\t\tfor (int i = 0; i < this.MA.length; i++) {\r\n\t\t\tfor (int j = 0; j < this.MA[i].length; j++){\r\n\t\t\t\tif (j > 0) {\r\n\t\t\t\t\tret += \", \";\r\n\t\t }\r\n\t\t ret += String.valueOf(this.MA[i][j]);\r\n\t\t\t}\r\n\t\t\tret += \"\\n\";\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "public List<String> getMonthList() {\n\t\treturn stateEqualMasterDao.getElementValueList(\"Month_Of_a_Year\");\n\t}", "@Override\r\n public String toString() {\r\n return pontosTimeMandante + \" x \" + pontosTimeVisitante + \" - \" + (isFinalizado() ? \"Finalizado\" : \"Em andamento\");\r\n }", "public void printMonth() {\r\n switch (cur.getMonth()){\r\n case 1:\r\n System.out.println(\"JANUARY\");\r\n break;\r\n case 2:\r\n System.out.println(\"FEBRUARY\");\r\n break;\r\n case 3:\r\n System.out.println(\"MARCH\");\r\n break;\r\n case 4:\r\n System.out.println(\"APRIL\");\r\n break;\r\n case 5:\r\n System.out.println(\"MAY\");\r\n break;\r\n case 6:\r\n System.out.println(\"JUNE\");\r\n break;\r\n case 7:\r\n System.out.println(\"JULY\");\r\n break;\r\n case 8:\r\n System.out.println(\"AUGUST\");\r\n break;\r\n case 9:\r\n System.out.println(\"SEPTEMBER\");\r\n break;\r\n case 10:\r\n System.out.println(\"OCTOBER\");\r\n break;\r\n case 11:\r\n System.out.println(\"NOVEMBER\");\r\n break;\r\n case 12:\r\n System.out.println(\"DECEMBER\");\r\n break;\r\n }\r\n }", "public String toString() {\n\t\treturn hours + \"h\" + minutes + \"m\";\n\t}", "private String getMonth(Date date) {\n\t\tLocalDate localDate = date.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();\n\n\t\tMonth month = localDate.getMonth();\n\n\t\treturn month.name();\n\t}", "public int getMonth() {\n\t\treturn date.getMonthValue();\n\t}", "public String toString() {\n\t\treturn toString(Locale.getDefault());\n\t}", "public String toString() {\n\t\treturn new String(dateToString() + \" \"\n\t\t\t\t+ timeToString());\n }", "@Override\n public String toString() {\n String byFormatted = by.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\"));\n return \"[D]\" + super.toString() + \" (by: \" + byFormatted + \")\";\n }", "@Test\n public void Month() {\n System.out.printf(\"%d%n\", Month.FEBRUARY.maxLength());\n\n Month month = Month.AUGUST;\n Locale locale = Locale.getDefault();\n System.out.println(month.getDisplayName(TextStyle.FULL, locale));\n System.out.println(month.getDisplayName(TextStyle.NARROW, locale));\n System.out.println(month.getDisplayName(TextStyle.SHORT, locale));\n }", "public static String monthToString(int month){\r\n\r\n if(month == 1) {return \"jan\"}\r\n else if(month == 2) {return \"feb\"}\r\n else if(month == 3) {return \"mar\"}\r\n else if(month == 4) {return \"apl\"}\r\n else if(month == 5) {return \"may\"}\r\n else if(month == 6) {return \"jun\"}\r\n else if(month == 7) {return \"jul\"}\r\n else if(month == 8) {return \"aug\"}\r\n else if(month == 9) {return \"sep\"}\r\n else if(month == 10) {return \"oct\"}\r\n else if(month == 11) {return \"nov\"}\r\n else if (month == 12) {return \"dec\"}\r\n else {}\r\n return \"broken\";\r\n\r\n}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getTimePeriod() != null)\n sb.append(\"TimePeriod: \").append(getTimePeriod()).append(\",\");\n if (getGroups() != null)\n sb.append(\"Groups: \").append(getGroups()).append(\",\");\n if (getTotal() != null)\n sb.append(\"Total: \").append(getTotal());\n sb.append(\"}\");\n return sb.toString();\n }", "public String getMonthName(int monthNumber) {\n String month = \"\";\n switch (monthNumber) {\n case 0:\n month = \"January\";\n break;\n case 1:\n month = \"February\";\n break;\n case 2:\n month = \"March\";\n break;\n case 3:\n month = \"April\";\n break;\n case 4:\n month = \"May\";\n break;\n case 5:\n month = \"June\";\n break;\n case 6:\n month = \"July\";\n break;\n case 7:\n month = \"August\";\n break;\n case 8:\n month = \"September\";\n break;\n case 9:\n month = \"October\";\n break;\n case 10:\n month = \"November\";\n break;\n case 11:\n month = \"December\";\n break;\n default:\n month = \"Invalid Month\";\n break;\n }\n return month;\n }", "@Override\n\tpublic String toString() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\treturn builder.append(title)\n\t\t\t.append(\"(\")\n\t\t\t.append(year)\n\t\t\t.append(\", \")\n\t\t\t.append(duration)\n\t\t\t.append(\" mn)#\")\n\t\t\t.append(id)\n\t\t\t.toString(); // finalize String result\n\t}", "@Override\n public String toString() {\n SimpleDateFormat format = new SimpleDateFormat (\"MMM d yyyy\");\n String dateString = format.format(by);\n return \"[D]\" + super.toString() + \" (by: \" + dateString + \")\";\n }", "public String getMonthOfYear() {\r\n return monthOfYear;\r\n }", "public int getMonthValue(){\n\t\treturn monthValue;\n\t}", "public int getMonthInteger() \n\t{\n\t\t// 1 will be added here to be able to use this func alone to construct e.g adate\n\t\t// to get the name of the month from getMonth(), 1 must be deducted.\n\t\treturn 1+m_calendar.get(Calendar.MONTH);\n\n\t}", "@Override\n public String toString() {\n DateTimeFormatter df = DateTimeFormatter.ofPattern(\"dd MMM yyyy HHmm\");\n return \"[\" + super.getType() + \"]\" + super.toString() + \" (by: \" + df.format(this.date) + \")\";\n }", "public String toString() {\n\t\tString s = n + \" x \" + n + \" Matrix:\\n\";\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\ts += content[i][j] + \"\\t\\t\";\n\t\t\t}\n\t\t\ts += \"\\n\\n\";\n\t\t}\n\t\treturn s;\n\t}", "public String toString() {\r\n\t\tStringBuilder b = new StringBuilder();\r\n\t\tb.append(instrument.toString());\r\n\t\tb.append(\" ----- \");\r\n\t\tb.append(period.name());\r\n\t\tb.append(\" ----- \");\r\n\t\tb.append(new Timestamp(timeStart));\r\n\t\treturn b.toString();\r\n\t}" ]
[ "0.6960102", "0.6922678", "0.69135416", "0.6867417", "0.68414104", "0.6765076", "0.6618671", "0.66049075", "0.6581945", "0.65532124", "0.655101", "0.65442514", "0.6509244", "0.65002817", "0.6498082", "0.64974475", "0.6406775", "0.62984604", "0.6288739", "0.62673116", "0.6228831", "0.62050617", "0.6128433", "0.6083329", "0.60553896", "0.60549724", "0.60440177", "0.60169065", "0.6006041", "0.6004803", "0.5984996", "0.5966217", "0.59494495", "0.587507", "0.58691955", "0.5856913", "0.58415526", "0.58415526", "0.5840353", "0.583664", "0.5825738", "0.58255583", "0.58130157", "0.5794611", "0.5794374", "0.5793827", "0.5791605", "0.5791303", "0.5791303", "0.57853174", "0.5785166", "0.57820183", "0.5776323", "0.5775066", "0.5764969", "0.5753374", "0.575296", "0.57496595", "0.5737472", "0.57334065", "0.5727624", "0.5726585", "0.5716554", "0.57154226", "0.57032484", "0.56980056", "0.5694656", "0.5694656", "0.5694656", "0.56918794", "0.5690153", "0.56703967", "0.56703347", "0.5662099", "0.5645538", "0.56322104", "0.56253463", "0.56248015", "0.5623116", "0.5606084", "0.5578593", "0.5576264", "0.555079", "0.5548638", "0.5542079", "0.5537353", "0.5534184", "0.5525901", "0.55247015", "0.55173403", "0.55132234", "0.55094844", "0.5505618", "0.5488279", "0.5487403", "0.54810804", "0.5474544", "0.5474399", "0.5463857", "0.54637796" ]
0.8411993
0
Compare with another object.
@Override public int compareTo(final Month obj) { Objects.requireNonNull(obj, "obj"); //$NON-NLS-1$ return Integer.compare(this.month, obj.month); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean compare(Object targetOne, Object targetTwo);", "protected abstract int doCompare(Object o1, Object o2);", "@Override\n public int compare(final E obj1, final E obj2) {\n return comparator.compare(obj2, obj1);\n }", "public boolean isEqual(Object objectname1, Object objectname2, Class<?> voClass) {\n\t\treturn false;\n\t}", "public abstract void compare();", "@Override\r\n\tpublic void comparo(Persona p1, Persona p2) {\n\t\t\r\n\t}", "public compare(){\r\n }", "@Test\r\n\tpublic void testEquality(){\n\t\t assertEquals(object1, object2);\r\n\t}", "public void testObjCompare()\n {\n assertEquals( Comparator.EQUAL, Util.objCompare(null,null) );\n assertEquals( Comparator.LESS, Util.objCompare(new Integer(10), new Integer(20)) );\n assertEquals( Comparator.GREATER, Util.objCompare(new Integer(25), new Integer(20)) );\n assertEquals( Comparator.UNDECIDABLE,Util.objCompare(null,new Integer(1)) );\n assertEquals( Comparator.UNDECIDABLE,Util.objCompare(new Integer(1),null) );\n }", "@Override public int compare(final IdentifiedObject o1, final IdentifiedObject o2) {\n Collection<Identifier> a1 = o1.getIdentifiers();\n Collection<Identifier> a2 = o2.getIdentifiers();\n if (a1 == null) a1 = Collections.emptySet();\n if (a2 == null) a2 = Collections.emptySet();\n final Iterator<Identifier> i1 = a1.iterator();\n final Iterator<Identifier> i2 = a2.iterator();\n boolean n1, n2;\n while ((n1 = i1.hasNext()) & (n2 = i2.hasNext())) { // NOSONAR: Really '&', not '&&'\n final int c = IdentifiedObjects.doCompare(i1.next().getCode(), i2.next().getCode());\n if (c != 0) {\n return c;\n }\n }\n if (n1) return +1;\n if (n2) return -1;\n return 0;\n }", "@Override\n\t\tpublic int compare(PathfindingNode object1, PathfindingNode object2) \n\t\t{\n\t\t\treturn _totalCosts.get(object1) - _totalCosts.get(object2);\n\t\t}", "@Override\n public boolean equals(Object other) {\n return super.equals(other);\n }", "@Override\n public boolean equals(Object o1) {\n return super.equals(o1);\n }", "@Override\r\n public int compare(Object o1, Object o2){\r\n return ((Record)o1).getField2().compareTo(((Record)o2).getField2());\r\n }", "public int compare(Object obj1, Object obj2) {\n\t\treturn obj1.toString().compareTo(obj2.toString());\r\n\t}", "@Override\n boolean equals(Object other);", "@Override\n public final boolean equals(final Object other) {\n return super.equals(other);\n }", "public static int compare(Object obj1, Object obj2) throws UnsupportedException{\n\t\tint result = EQUAL;\n\t\tboolean isResultSet = false;\n\t\tif(obj1 == null && obj2!= null){\n\t\t\tif(obj2 instanceof String){\n\t\t\t\tobj1 = EMPTY;\n\t\t\t} else {\n\t\t\t\tisResultSet = true;\n\t\t\t\tresult = LESS;\n\t\t\t}\n\t\t} else if(obj1!=null && obj2== null){\n\t\t\tif(obj1 instanceof String){\n\t\t\t\tobj2 = EMPTY;\n\t\t\t} else {\n\t\t\t\tisResultSet = true;\n\t\t\t\tresult = GREATER;\n\t\t\t}\n\t\t}\n\t\tif(isResultSet){\n\t\t\treturn result;\n\t\t}\n\t\t\n\t\t//Check that 2 objects are the same class\n\t\tif(obj1.getClass() != obj2.getClass()){\n\t\t\tthrow new ClassCastException(\"Objects to compare are not the same class\");\n\t\t}\n\t\t\n\t\tif(obj1 instanceof String){\n\t\t\tresult = ((String)obj1).compareTo((String)obj2);\n\t\t} else if(obj1 instanceof DateUtil){\n\t\t\tthrow new UnsupportedException(\"Comparison method is not implemeted for this class\" + obj1.getClass().getName());\n\t\t}else if(obj1 instanceof BigDecimal){\n\t\t\tthrow new UnsupportedException(\"Comparison method is not implemeted for this class\" + obj1.getClass().getName());\n\t\t}else{\n\t\t\tthrow new UnsupportedException(\"Comparison method is not implemeted for this class\" + obj1.getClass().getName());\n\t\t}\n\t\treturn result;\n\t}", "boolean equalTo(ObjectPassDemo o) {\n return (o.a == a && o.b == b);\n }", "public abstract boolean equals(Object other);", "@Override\n\tpublic int compare(Object o1, Object o2) {\n\t\tint a1=((TestBig)o1).a;\n\t\tint a2=((TestBig)o2).a;\n\t\tif(a1<a2)\n\t\t\treturn 1;\n\t\treturn -1;\n\t}", "@Override\n\t\t\tpublic int compare(Object o1, Object o2) {\n\t\t\t\tint result = ((Student)o2).getAge() - ((Student)o1).getAge();\n\t\t\t\tif (result == 0 ) result = 1;\n\t\t\t\treturn result;\n\t\t\t}", "@Override\n public boolean equals(Object other) {\n return this == other;\n }", "@Override\n\tpublic final boolean equals(Object compareTo) {\n\n\t\tif (compareTo == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (!compareTo.getClass().equals(this.getClass())) {\n\t\t\treturn false;\n\t\t}\n\t\tbyte[] compareArray = ((SerializedObject) compareTo).mStoredObjectArray;\n\t\tif (compareArray.length != mStoredObjectArray.length) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (int i = 0; i < compareArray.length; i++) {\n\t\t\tif (compareArray[i] != mStoredObjectArray[i]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public int compare(Person o1, Person o2) {\n log.info(\"Compare date of birth \" + o1.getDateOfBirth() + \" and \" + o2.getDateOfBirth());\n\n return o1.getDateOfBirth().compareTo(o2.getDateOfBirth());\n }", "public int compare(Object a, Object b) {\n if (a == b) {\n return 0;\n }\n CountedObject ca = (CountedObject)a;\n CountedObject cb = (CountedObject)b;\n int countA = ca.count;\n int countB = cb.count;\n if (countA < countB) {\n return 1;\n }\n if (countA > countB) {\n return -1;\n }\n return 0;\n }", "@Override\n public int compareTo(Object otherobject)\n {\n\n Stamp other = (Stamp) otherobject;\n if(id < other.getID())\n return -1;\n else if(id == other.getID())\n return 0;\n else\n return 1;\n }", "int compare(T o1, T o2);", "private boolean equalKeys(Object other) {\r\n if (this == other) {\r\n return true;\r\n }\r\n if (!(other instanceof Contacto)) {\r\n return false;\r\n }\r\n Contacto that = (Contacto) other;\r\n if (this.getIdContacto() != that.getIdContacto()) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public int compare(HDTV o1, HDTV o2) {\n return o1.getSize() - o2.getSize(); // prints object in ascending order\r\n\r\n }", "public int compareTo(Object other) { return 404;}", "@Override\n public boolean equals(Object other) {\n if (other.getClass() == getClass()) {\n return hashCode() == other.hashCode();\n }\n\n return false;\n }", "@Override\n\t\t\tpublic int compare(LiveAlarm object1, LiveAlarm object2) {\n\t\t\t\tlong start1 = object1.startT;\n\t\t\t\tlong start2 = object2.startT;\n\t\t\t\t\n\t\t\t\tif (start1 < start2) return -1;\n\t\t\t\tif (start1 == start2) return 0;\n\t\t\t\tif (start1 > start2) return 1;\n\t\t\t\t\n\t\t\t\treturn 0;//to suppress the compiler error;\n\t\t\t}", "public int compare(Object Object1, Object Object2)\n\t{\n\t\treturn CompareRecipes((IRecipe)Object1, (IRecipe)Object2);\n\t}", "@Test\r\n\tpublic void testCompareEqualsCase0() throws IOException {\r\n\t\tPerson p1 = DataUtil.readDataFromFile(\"test/data/case0/case0-person.json\", Person.class);\r\n\t\tPerson p2 = DataUtil.readDataFromFile(\"test/data/case0/case0-person.json\", Person.class);\r\n\r\n\t\tIContext ctx = ObjectCompare.compare(p1, p2);\r\n\t\tdebug(ctx.getDifferences());\r\n\t\tAssert.assertFalse(ctx.hasDifferences());\r\n\t}", "@Override\n\t\t public int compare(PathObject lhs, PathObject rhs) {\n\t\t return Double.compare(lhs.getClassProbability(), rhs.getClassProbability()); // Use double compare to safely handle NaN and Infinity\n\t\t }", "@Override\n\t\t public int compare(PathObject lhs, PathObject rhs) {\n\t\t return Double.compare(lhs.getClassProbability(), rhs.getClassProbability()); // Use double compare to safely handle NaN and Infinity\n\t\t }", "public int compareTo(Object other){\r\n int[][] thisState = this.getState();\r\n int[][] thatState = ((Node)other).getState();\r\n int length = this.getState().length;\r\n for (int i = 0; i<length; i++){\r\n for (int j = 0; j<length; j++){\r\n if (thisState[i][j] != thatState[i][j])\r\n return 1;\r\n }\r\n }\r\n return 0;\r\n }", "@Override\n public abstract boolean equals(Object other);", "@Override\n public abstract boolean equals(Object other);", "@Override public boolean equals(Object object);", "int compareTo(Object obj);", "public int compare(Object obj1, Object obj2){\n\t\t\n\t\tString s1 = obj1.toString(); // sudha\n\t\tString s2 = obj2.toString(); // rani\n\t\t\n\t\tif(s1.length()>s2.length()){\n\t\t\treturn 100;\n\t\t}else if(s1.length()<s2.length()){\n\t\t\treturn -10;\n\t\t} else{\n\t\t\treturn s1.compareTo(s2);\n\t\t}\n\t\t\n\t}", "private int Compare(ResultsClass lhs, ResultsClass rhs) {\n if (lhs.bodyPart > rhs.bodyPart) {\n return 1;\n } else if (lhs.bodyPart > rhs.bodyPart) {\n return -1;\n } else {\n return 0;\n }\n }", "@Override\n public int compare(CostVector o1, CostVector o2) {\n int i = 0;\n while (i < o1.getCosts().length && o1.getCosts()[i] == o2.getCosts()[i]) {\n i++;\n }\n if (i != o1.getCosts().length) {\n return o1.getCosts()[i] > o2.getCosts()[i] ? 1 : -1;\n } else {\n return 0;\n }\n }", "@Test\r\n\tpublic void testCompareCase1() throws IOException {\r\n\t\tPerson p1 = DataUtil.readDataFromFile(\"test/data/case1/case1-person1.json\", Person.class);\r\n\t\tPerson p2 = DataUtil.readDataFromFile(\"test/data/case1/case1-person2.json\", Person.class);\r\n\r\n\t\tIContext ctx = ObjectCompare.compare(p1, p2);\r\n\t\tdebug(ctx.getDifferences());\r\n\t\tAssert.assertTrue(ctx.hasDifferences());\r\n\t\tAssert.assertEquals(4, ctx.getDifferences().size());\r\n\t}", "@Override\n\tpublic abstract boolean equals(Object other);", "public void testEquals(PCEPObject object1, PCEPObject object2) {\n \tInteger test1=new Integer(2);\n\t\tobject1.equals(test1);\n \t//Test same object\n \tobject1.equals(object1);\n \t//Test change in parent\n \tobject2.setObjectClass(object1.getObjectClass()+1);\n \tobject1.equals(object2);\n \tobject2.setObjectClass(object1.getObjectClass());\n \t//Test changes in fields\n\t\tList<Field> fieldListNS = new ArrayList<Field>();\n\t\tList<Field> fieldList= Arrays.asList(object1.getClass().getDeclaredFields());\n\t\tfor (Field field : fieldList) {\n\t\t\tfieldListNS.add(field);\n\t\t\tType ty=field.getGenericType();\n\t\t\tif (!java.lang.reflect.Modifier.isStatic(field.getModifiers())) {\n\t\t\t\tif (ty instanceof Class){\n\t\t\t\t\tClass c =(Class)ty;\n\t\t\t\t\tSystem.out.println(\"XXXXXXXXXXXXXXXXXClass name: \"+c.getName()); \n\t\t\t\t\tMethod method;\n\t\t\t\t\tMethod methods;\n\t\t\t\t\tif (c.isPrimitive()){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (c.getName().equals(\"boolean\")) {\n\t\t\t\t\t\t\tmethod = object1.getClass().getMethod(\"is\"+field.getName().replaceFirst(field.getName().substring(0, 1), field.getName().substring(0, 1).toUpperCase()));\n\t\t\t\t\t\t\tmethods = object2.getClass().getMethod(\"set\"+field.getName().replaceFirst(field.getName().substring(0, 1), field.getName().substring(0, 1).toUpperCase()),boolean.class);\n\t\t\t\t\t\t\tif (((boolean)method.invoke(object1,null))==true) {\n\t\t\t\t\t\t\t\tmethods.invoke(object2,false);\n\t\t\t\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tmethods.invoke(object2,true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tobject1.equals(object2);\n\t\t\t\t\t\t\tmethods.invoke(object2,(boolean)method.invoke(object1,null));\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\tmethod = object1.getClass().getMethod(\"get\"+field.getName().replaceFirst(field.getName().substring(0, 1), field.getName().substring(0, 1).toUpperCase()));\n\t\t\t\t\t\t\tmethods = object2.getClass().getMethod(\"set\"+field.getName().replaceFirst(field.getName().substring(0, 1), field.getName().substring(0, 1).toUpperCase()),c);\n\t\t\t\t\t\t\tmethods.invoke(object2,77);\n\t\t\t\t\t\t\tobject1.equals(object2);\n\t\t\t\t\t\t\tmethods.invoke(object2,method.invoke(object1,null));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \t\n }", "public static int compare(Object o1, Object o2) {\n\n byte dt1 = findType(o1);\n byte dt2 = findType(o2);\n return compare(o1, o2, dt1, dt2);\n }", "@Test public void equalTest() {\n Dog d = new Dog(\"Owner 1\", \"Rex\", \"Boxer\", 90.0, 7);\n Dog d2 = new Dog(\"Owner 2\", \"Spot\", \"Pit Bull\", 90.0, 7);\n Assert.assertEquals(0, test.compare(d, d2));\n }", "public boolean equal(Object obj1, Object obj2) {\n\t\treturn obj1.equals(obj2);\r\n\t}", "public boolean equals(java.lang.Object other){\n return false; //TODO codavaj!!\n }", "@Override\r\n\t\t\t\tpublic int compare(Comparendo o1, Comparendo o2) \r\n\t\t\t\t{\n\t\t\t\t\treturn (new Integer(o1.id)).compareTo(o2.id);\r\n\t\t\t\t}", "public int compare (Object object1,Object object2)\r\n {\r\n Map map1 = (Map)object1;\r\n Map map2 = (Map)object2;\r\n\r\n /*Get sort info keys*/\r\n Map sortKeys = getSortKeys();\r\n\r\n String keyName = (String) sortKeys.get(\"name\");\r\n String keyDir = (String) sortKeys.get(\"dir\");\r\n\r\n String stringValue1 = (String) map1.get(keyName); \r\n String stringValue2 = (String) map2.get(keyName);\r\n\r\n boolean str1Empty = isEmpty(stringValue1);\r\n boolean str2Empty = isEmpty(stringValue2);\r\n \r\n /* \r\n * If both values are null or empty diff = 0\r\n * If first string is null or empty diff = -1\r\n * If second string is null or empty diff = 1\r\n * If both the strings are not empty then compare the strings\r\n */ \r\n int diff = str1Empty && str2Empty ? 0 : \r\n str1Empty ? -1 : \r\n str2Empty ? 1 : \r\n compareAnchorDataPart(stringValue1, stringValue2); \r\n \r\n /* If the direction is not ascending, then invert the sign of 'diff' value\r\n * */\r\n return \"ascending\".equals(keyDir)? diff : -diff ;\r\n }", "public boolean isIdentical(Remote obj1, Remote obj2)\n {\n\torg.omg.CORBA.Object corbaObj1 = (org.omg.CORBA.Object)obj1;\n\torg.omg.CORBA.Object corbaObj2 = (org.omg.CORBA.Object)obj2;\n\n\treturn corbaObj1._is_equivalent(corbaObj2);\n }", "@Test\r\n public void testCompareTo() {\r\n Articulo art = new Articulo();\r\n art.setCantidadVendidos(3);\r\n articuloPrueba.setCantidadVendidos(3);\r\n int expResult = 0;\r\n int result = art.compareTo(articuloPrueba);\r\n assertEquals(expResult, result);\r\n }", "public int compare(Object object1, Object object2) {\n CompanyGroupMaster firstGroup = (CompanyGroupMaster)object1;\n CompanyGroupMaster secondGroup = (CompanyGroupMaster)object2;\n // comparing group ID's\n String first = firstGroup.getComp_id().getGrpId().trim();\n\n String second = secondGroup.getComp_id().getGrpId().trim();\n if (\"\".equals(first)) {\n first = firstGroup.getComp_id().getGrpId();\n\n }\n if (\"\".equals(second)) {\n second = secondGroup.getComp_id().getGrpId();\n\n }\n int result = first.compareToIgnoreCase(second);\n return result;\n }", "@Override\n public int compare(ObjectRelation o1, ObjectRelation o2) {\n return (o1.order - o2.order);\n }", "@Override\n public boolean equals(Object obj) {\n return this == obj;\n }", "public boolean equals(Object other){\r\n Car nuCar = (Car)other;\r\n if(super.equals(nuCar)){\r\n if(this.model==nuCar.model&&this.AWD==nuCar.AWD){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }else{\r\n return false;\r\n }\r\n\t}", "@Override\n public boolean equals(Object obj) {\n return this == obj;\n }", "@Override\n\tpublic int compare(WritableComparable a, WritableComparable b) {\n\t\tOrderBean aa=(OrderBean)a;\n\t\tOrderBean bb=(OrderBean)b;\n\t\treturn aa.getOrderId().compareTo(bb.getOrderId());\n\t}", "@Test\r\n\tpublic void testCompareCase2() throws IOException {\r\n\t\tPerson p1 = DataUtil.readDataFromFile(\"test/data/case2/case2-person1.json\", Person.class);\r\n\t\tPerson p2 = DataUtil.readDataFromFile(\"test/data/case2/case2-person2.json\", Person.class);\r\n\r\n\t\t// Custom context\r\n\t\tString ageFieldName = FieldUtil.makeFieldName(Person.class, \"age\");\r\n\t\tIContext ctx = ObjectCompare.buildContext().register(FieldFeature.IGNORE_FIELD, ageFieldName);\r\n\t\tObjectCompare.compare(p1, p2, ctx);\r\n\t\tdebug(ctx.getDifferences());\r\n\t\tAssert.assertFalse(ctx.hasDifferences());\r\n\t}", "public int compareTo(Object other) { \r\n\t\treturn Integer.compare(confidence, ((Candidate) other).getConfidence());\r\n\t}", "@JRubyMethod(name = \"==\", required = 1)\n public static IRubyObject op_equal(ThreadContext ctx, IRubyObject self, IRubyObject oth) {\n RubyString str1, str2;\n RubyModule instance = (RubyModule)self.getRuntime().getModule(\"Digest\").getConstantAt(\"Instance\");\n if (oth.getMetaClass().getRealClass().hasModuleInHierarchy(instance)) {\n str1 = digest(ctx, self, null).convertToString();\n str2 = digest(ctx, oth, null).convertToString();\n } else {\n str1 = to_s(ctx, self).convertToString();\n str2 = oth.convertToString();\n }\n boolean ret = str1.length().eql(str2.length()) && (str1.eql(str2));\n return ret ? self.getRuntime().getTrue() : self.getRuntime().getFalse();\n }", "public int compare(OnlineObject o1, OnlineObject o2) {\n\t\t\tif (o1.equals(o2)) { // if it's the same object, they are equal\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\treturn o2.getSeenAt().compareTo(o1.getSeenAt());\n\t\t}", "@Override\n\tpublic int compare(Object oldObj) {\n\t\treturn 0;\n\t}", "public static int compare(Object input1, Object input2) {\n\t\tif (input1.getClass().equals(Integer.class) && input2.getClass().equals(Integer.class)) {\n\t\t\treturn compareInt((Integer) input1, (Integer) input2);\n\n\t\t\t// if object is string\n\t\t} else if (input1.getClass().equals(String.class) && input2.getClass().equals(String.class)) {\n\t\t\treturn compareString((String) input1, (String) input2);\n\n\t\t\t// if object is date\n\t\t} else if (input1.getClass().equals(Date.class) && input2.getClass().equals(Date.class)) {\n\t\t\treturn compareDate((Date) input1, (Date) input2);\n\n\t\t\t// if object is big decimal\n\t\t} else if (input1.getClass().equals(BigDecimal.class) && input2.getClass().equals(BigDecimal.class)) {\n\t\t\treturn compareBigDecimal((BigDecimal) input1, (BigDecimal) input2);\n\t\t\t\n\t\t} else {\n\t\t\tSystem.err.println(\"no object match\");\n\t\t\treturn 0;\n\t\t}\n\n\t}", "@Override\n public boolean equals(Object objectToCompare)\n {\n if (this == objectToCompare)\n {\n return true;\n }\n if (! (objectToCompare instanceof APIOperationResponse))\n {\n return false;\n }\n if (! super.equals(objectToCompare))\n {\n return false;\n }\n\n APIOperationResponse that = (APIOperationResponse) objectToCompare;\n\n if (headerAttributeCount != that.headerAttributeCount)\n {\n return false;\n }\n if (requestAttributeCount != that.requestAttributeCount)\n {\n return false;\n }\n if (responseAttributeCount != that.responseAttributeCount)\n {\n return false;\n }\n return apiOperation != null ? apiOperation.equals(that.apiOperation) : that.apiOperation == null;\n }", "Comparison createComparison();", "Comparison createComparison();", "public boolean mojeEquals(Obj o1, Obj o2) {\r\n\t\t//System.out.println(o1.getName() + \" \" + o2.getName());\r\n\t\tboolean sameRight = true; // 21.06.2020. provera prava pristupa\r\n\t\tboolean sameName = true;\t// 22.06.2020. ako nisu metode ne moraju da imaju isto ime\r\n\t\tboolean sameArrayType = true; //22.6.2020 ako je parametar niz mora isti tip niza da bude\r\n\t\t\r\n\t\tif (o1.getKind() == Obj.Meth && o2.getKind() == Obj.Meth) {\r\n\t\t\tsameRight = o1.getFpPos() == o2.getFpPos()+10; \r\n\t\t\tsameName = o1.getName().equals(o2.getName());\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (o1.getType().getKind() == Struct.Array && o2.getType().getKind() == Struct.Array) {\r\n\t\t\t\tif (!(o1.getType().getElemType() == o2.getType().getElemType())) { // ZA KLASE MOZDA TREBA equals\r\n\t\t\t\t\tsameArrayType = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// 16.08.2020.\r\n//\t\tif (o1.getType().getKind() == Struct.Class || o1.getType().getKind() == Struct.Interface)\r\n//\t\t\treturn true;\r\n\t\t\r\n\t\t\r\n\t\treturn o1.getKind() == o2.getKind() \r\n\t\t\t\t&& sameName\r\n\t\t\t\t&& o1.getType().equals(o2.getType())\r\n\t\t\t\t&& /*adr == other.adr*/ o1.getLevel() == o2.getLevel()\r\n\t\t\t\t&& equalsCompleteHash(o1.getLocalSymbols(), o2.getLocalSymbols())\r\n\t\t\t\t&& sameRight // 21.06.2020. provera prava pristupa\r\n\t\t\t\t&& sameArrayType; //22.6.2020 ako je parametar niz mora isti tip niza da bude\r\n\t}", "@Override\n public boolean equals(Object other) \n {\n Student s = (Student)other; \n return this.name.equals(s.getName()) && this.id.equals(s.getId()); \n }", "@Override\n\tpublic int compareTo(Objeto o) {\n\t\treturn 0;\n\t}", "@Test\n\tpublic void testEqualsObject_True() {\n\t\tbook3 = new Book(DEFAULT_TITLE, DEFAULT_AUTHOR, DEFAULT_YEAR, DEFAULT_ISBN);\n\t\tassertEquals(book1, book3);\n\t}", "public boolean cmp(Type other){\n if (this.dimension != other.dimension) return false;\n if (this.type != type.CLASS && this.type.equals(other.type)) return true;\n// System.out.println(\"this: \" + this.type);\n// System.out.println(\"other: \" + other.type);\n if (this.type == type.CLASS && other.type == type.CLASS && this.class_id.equals(other.class_id)) return true;\n return false;\n }", "public int compare(Prototype one, Prototype two)\r\n {\r\n double one_d = Distance.d(basePrototype, one);\r\n double two_d = Distance.d(basePrototype, two);\r\n if (one_d > two_d)\r\n {\r\n return 1;\r\n } else if (one_d == two_d)\r\n {\r\n return 0;\r\n } else\r\n {\r\n return -1;\r\n }\r\n }", "public int compareTo(Object anotherObj) throws ClassCastException {\n if(!(anotherObj instanceof UMarkerSetDTO))\n throw new ClassCastException(\"Object is of wrong class. UMarkerSetDTO object expected but not found.\");\n return umsid - ((UMarkerSetDTO)anotherObj).getUmsid();\n }", "@Override\n public boolean equals(Object obj) {\n return super.equals(obj);\n }", "public static boolean defaultEquals(DataValue obj1, Object obj2) {\r\n if (obj1 == obj2) return true;\r\n if (obj2 == null) return false;\r\n if (!(obj2 instanceof DataValue)) return false;\r\n DataValue other = (DataValue) obj2;\r\n if (!obj1.getName().equals(other.getName())) return false;\r\n if (obj1.getObject() == null) {\r\n if (other.getObject() != null) return false;\r\n } else if (obj1.getObject().getClass().isArray()) {\r\n if (!other.getObject().getClass().isArray()) return false;\r\n return Arrays.equals((byte[]) obj1.getObject(), (byte[]) other.getObject());\r\n } else {\r\n if (!obj1.getObject().equals(other.getObject())) return false;\r\n }\r\n return true;\r\n }", "@Override\r\n \tpublic boolean equals(final Object obj) {\r\n \t\t// Insert code to compare the receiver and obj here.\r\n \t\t// This implementation forwards the message to super. You may replace or supplement this.\r\n \t\t// NOTE: obj might be an instance of any class\r\n \t\treturn super.equals(obj);\r\n \t}", "@Override\n boolean equals(Object obj);", "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof User)) {\n return false;\n }\n User that = (User) other;\n if (this.getIduser() != that.getIduser()) {\n return false;\n }\n return true;\n }", "@Override\r\n\t\t\t\tpublic int compare(Comparendo o1, Comparendo o2) \r\n\t\t\t\t{\n\t\t\t\t\treturn o1.fechaHora.compareTo(o2.fechaHora);\r\n\t\t\t\t}", "@Override\r\n public boolean equals(Object obj) {\r\n return super.equals(obj);\r\n }", "@Override\n @ZenCodeType.Method\n @ZenCodeType.Operator(ZenCodeType.OperatorType.COMPARE)\n default int compareTo(@NotNull IData other) {\n \n return notSupportedOperator(OperatorType.COMPARE);\n }", "@Override \n boolean equals(Object obj);", "@Override\n public abstract boolean equals(Object obj);", "private boolean haveTwoObjsSameFields(Class classObjects, Object obj1, Object obj2, ArrayList<String> fieldsToExcludeFromCompare) {\n log.info(\"TEST: comparing two objects of class \"+classObjects.getName());\n if (obj1.getClass() != obj2.getClass()) {\n log.error(\"TEST: The two objects are instances of different classes, thus different\");\n return false;\n }\n\n try {\n PropertyDescriptor[] pds= Introspector.getBeanInfo(classObjects).getPropertyDescriptors();\n for(PropertyDescriptor pd: pds) {\n log.info(pd.getDisplayName());\n String methodName=pd.getReadMethod().getName();\n String fieldName = methodName.substring(3, methodName.length());\n\n if(fieldsToExcludeFromCompare.contains(fieldName)==true) {\n continue;\n }\n\n boolean areEqual=false;\n try {\n Object objReturned1 = pd.getReadMethod().invoke(obj1);\n Object objReturned2 =pd.getReadMethod().invoke(obj2);\n if(objReturned1!=null && objReturned2!=null) {\n areEqual=objReturned1.equals(objReturned2);\n if(objReturned1 instanceof List<?> && ((List) objReturned1).size()>0 && ((List) objReturned1).size()>0 && ((List) objReturned1).get(0) instanceof String) {\n String str1=String.valueOf(objReturned1);\n String str2=String.valueOf(objReturned2);\n areEqual=str1.equals(str2);\n\n }\n }\n else if(objReturned1==null && objReturned2==null) {\n log.info(\"TEST: Field with name \"+fieldName+\" null in both objects.\");\n areEqual=true;\n }\n else {\n //log.info(\"One of two objects is null\");\n //log.info(\"{}\",objReturned1);\n //log.info(\"{}\",objReturned2);\n }\n if(areEqual==false) {\n log.info(\"TEST: field with name \"+fieldName+\" has different values in objects. \");\n return false;\n }\n else{\n log.info(\"TEST: field with name \"+fieldName+\" has same value in both objects. \");\n }\n } catch (IllegalAccessException e) {\n\n e.printStackTrace();\n return false;\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n return false;\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n return false;\n }\n }\n } catch (IntrospectionException e) {\n e.printStackTrace();\n }\n return true;\n }", "public boolean equals(XObject obj2) {\n/* */ try {\n/* 262 */ if (4 == obj2.getType())\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 268 */ return obj2.equals(this);\n/* */ }\n/* 270 */ if (1 == obj2.getType())\n/* */ {\n/* 272 */ return (bool() == obj2.bool());\n/* */ }\n/* 274 */ if (2 == obj2.getType())\n/* */ {\n/* 276 */ return (num() == obj2.num());\n/* */ }\n/* 278 */ if (4 == obj2.getType())\n/* */ {\n/* 280 */ return xstr().equals(obj2.xstr());\n/* */ }\n/* 282 */ if (3 == obj2.getType())\n/* */ {\n/* 284 */ return xstr().equals(obj2.xstr());\n/* */ }\n/* 286 */ if (5 == obj2.getType())\n/* */ {\n/* */ \n/* */ \n/* 290 */ return xstr().equals(obj2.xstr());\n/* */ }\n/* */ \n/* */ \n/* 294 */ return super.equals(obj2);\n/* */ \n/* */ }\n/* 297 */ catch (TransformerException te) {\n/* */ \n/* 299 */ throw new WrappedRuntimeException(te);\n/* */ } \n/* */ }", "@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsAccessResultDiff) {\n BsAccessResultDiff other = (BsAccessResultDiff)obj;\n if (!xSV(_id, other._id)) { return false; }\n if (!xSV(_sessionId, other._sessionId)) { return false; }\n if (!xSV(_ruleId, other._ruleId)) { return false; }\n if (!xSV(_url, other._url)) { return false; }\n if (!xSV(_parentUrl, other._parentUrl)) { return false; }\n if (!xSV(_status, other._status)) { return false; }\n if (!xSV(_httpStatusCode, other._httpStatusCode)) { return false; }\n if (!xSV(_method, other._method)) { return false; }\n if (!xSV(_mimeType, other._mimeType)) { return false; }\n if (!xSV(_contentLength, other._contentLength)) { return false; }\n if (!xSV(_executionTime, other._executionTime)) { return false; }\n if (!xSV(_createTime, other._createTime)) { return false; }\n return true;\n } else {\n return false;\n }\n }", "boolean _is_equivalent(org.omg.CORBA.Object other);", "@Override\r\n\t\t\t\tpublic int compare(Property o1, Property o2) {\n\t\t\t\t\treturn Integer.compare(o1.getRealty().getRealtyID(),o2.getRealty().getRealtyID());\r\n\t\t\t\t}", "public boolean equals(Document other){\n boolean something = true;\r\n\r\n if(other == null){ //make sure that the object we are comparing to isn't null\r\n something = false;\r\n }\r\n if(this.getClass() != other.getClass()){ //makes sure the object are of the same class\r\n something = false;\r\n }\r\n if(!this.name.equalsIgnoreCase(other.name) || other.name == null){ //compares if the documents have the same name ignoring uppercase\r\n something = false;\r\n }\r\n if(!this.owner.equalsIgnoreCase(other.owner) || other.owner == null){ //comapre if both documents have the same owner ignoring uppercase\r\n something = false;\r\n }\r\n if(!this.id.equals(other.id) || other.id == null){ //compare if both documents have the same id\r\n something = false;\r\n }\r\n return something; //if something return true, then both documents are the same otherwise they are different\r\n }", "@Override\n public int compare(Student o1, Student o2) {\n return o1.name.compareTo(o2.name);\n }", "@Override\n\tpublic int compare(Personagem one, Personagem two) {\n\t\treturn one.getDateOfBirth().compareTo(two.getDateOfBirth());\n\t}", "@Override\n\t\t\tpublic int compare(Person o1, Person o2) {\n\t\t\t\treturn o1.getAge().compareTo(o2.getAge());\n\t\t\t}", "@Override\r\n public int compareTo(final Object obj) {\r\n if (!(obj instanceof TargetBeanForLists)) {\r\n throw new ClassCastException(\"obj1 is not a TargetBean! \");\r\n }\r\n String curCommonName = ((TargetBeanForLists) obj).getCommonName();\r\n String objCommonName = this.getCommonName();\r\n // Instance of Leeds commonName\r\n if (curCommonName.indexOf(\"UL\") >= 0 && objCommonName.indexOf(\"UL\") >= 0) {\r\n curCommonName =\r\n curCommonName.substring(curCommonName.indexOf(\"UL\") + 2, curCommonName.indexOf(\"UL\") + 6);\r\n objCommonName =\r\n objCommonName.substring(objCommonName.indexOf(\"UL\") + 2, objCommonName.indexOf(\"UL\") + 6);\r\n Integer curInt = null;\r\n Integer objInt = null;\r\n try {\r\n curInt = Integer.valueOf(curCommonName);\r\n objInt = Integer.valueOf(objCommonName);\r\n } catch (final NumberFormatException e) {\r\n // Than assume they are equal\r\n curInt = 0;\r\n objInt = 0;\r\n }\r\n return objInt.compareTo(curInt);\r\n }\r\n return curCommonName.compareTo(objCommonName);\r\n }", "@Test\n\tpublic void testEqualsObject() {\n\t\tJob testJob = new Job(\"Trash Pickup\", initialPark, cal, cal2,\n\t\t\t\t\"This job will just be picking up trash.\", new ArrayList<User>(), 5, 2, 0);\n\t\tassertEquals(testJob, initialJob);\n\t}", "public boolean compareObjects(Object object1, Object object2, AbstractSession session) {\n Object firstCollection = getRealCollectionAttributeValueFromObject(object1, session);\n Object secondCollection = getRealCollectionAttributeValueFromObject(object2, session);\n ContainerPolicy containerPolicy = getContainerPolicy();\n\n if (containerPolicy.sizeFor(firstCollection) != containerPolicy.sizeFor(secondCollection)) {\n return false;\n }\n\n if (containerPolicy.sizeFor(firstCollection) == 0) {\n return true;\n }\n Object iterFirst = containerPolicy.iteratorFor(firstCollection);\n Object iterSecond = containerPolicy.iteratorFor(secondCollection);\n\n //loop through the elements in both collections and compare elements at the\n //same index. This ensures that a change to order registers as a change.\n while (containerPolicy.hasNext(iterFirst)) {\n //fetch the next object from the first iterator.\n Object firstAggregateObject = containerPolicy.next(iterFirst, session);\n Object secondAggregateObject = containerPolicy.next(iterSecond, session);\n\n //fetch the next object from the second iterator.\n //matched object found, break to outer FOR loop\t\t\t\n if (!getReferenceDescriptor().getObjectBuilder().compareObjects(firstAggregateObject, secondAggregateObject, session)) {\n return false;\n }\n }\n return true;\n }", "public int compareTo(Object otherSuitObject) {\r\n\t\tSuit otherSuit = (Suit) otherSuitObject;\r\n\t\treturn VALUES.indexOf(this) - VALUES.indexOf(otherSuit);\r\n\t}" ]
[ "0.6832603", "0.67918205", "0.6549844", "0.64563704", "0.6293984", "0.6187124", "0.61553526", "0.6102851", "0.6082293", "0.60692924", "0.60567534", "0.6022327", "0.60067284", "0.59794414", "0.5974711", "0.5973188", "0.5972724", "0.5953448", "0.5943662", "0.5932455", "0.5912085", "0.58908534", "0.5890133", "0.5879401", "0.5875683", "0.5864521", "0.58479166", "0.5847704", "0.5841859", "0.5835724", "0.5827445", "0.58270997", "0.5821074", "0.5818807", "0.58145976", "0.5814343", "0.5814343", "0.5814181", "0.5808166", "0.5808166", "0.58078724", "0.58050334", "0.5796134", "0.57852983", "0.57832974", "0.57813424", "0.57749474", "0.5769927", "0.5768746", "0.57661724", "0.5764875", "0.57556", "0.5746417", "0.57423854", "0.57401806", "0.573902", "0.5736236", "0.573328", "0.5725254", "0.5723625", "0.57162964", "0.5714911", "0.57146204", "0.5713899", "0.5713367", "0.57121444", "0.57092375", "0.57076454", "0.57056564", "0.57029027", "0.57029027", "0.5691353", "0.56909746", "0.56864935", "0.56858385", "0.56852543", "0.5679564", "0.56794673", "0.56755304", "0.56746507", "0.5670249", "0.5663072", "0.56611633", "0.56526166", "0.56451416", "0.5644012", "0.5636045", "0.5625174", "0.5624757", "0.56121254", "0.5611398", "0.5611181", "0.56070685", "0.56063694", "0.56033814", "0.5603189", "0.56031376", "0.5601017", "0.55964416", "0.55951023", "0.5594808" ]
0.0
-1
Add months to this month.
public Month add(final Months months) { final long newMonth = Math.toIntExact(Math.addExact(this.month, months.longValue())); if (newMonth > 12) // while (newMonth > 12) { // TODO Listener // newMonth -= 12; // incrementYear(); throw new ArithmeticException(Month.OVERFLOW); } return Month.of(Math.toIntExact(newMonth)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nonnull\n public final MutableClock plusMonths(final int months) {\n getOrCreateNow().addMonths(months);\n return this;\n }", "public Date addMonths(int m) {\r\n if (m < 0) {\r\n\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\t\"Month should not be the negative value!\");\r\n\t\t}\r\n\r\n\r\n\t\tint newMonth = (month + (m % 12)) > 12 ? ((month + (m % 12)) % 12) : month\r\n\t\t\t\t+ (m % 12);\r\n\t\tint newYear = (month + (m % 12)) > 12 ? year + (m / 12) + 1 : year\r\n\t\t\t\t+ (m / 12);\r\n int newDay = 0;\r\n // IF the new month has less total days in it than the starting month\r\n // and the date being added to is the last day of the month, adjust\r\n // and make newDay correct with its corresponding month.\r\n \r\n // IF not leap year and not Feb. make newDay correct.\r\n if (day > DAYS[newMonth] && (newMonth != 2)) {\r\n newDay = (DAYS[newMonth]);\r\n //System.out.println(\"1\");\r\n } \r\n \r\n // IF not leap year but not Feb. make newDay 28. (This is usually the case for Feb.)\r\n else if ((day > DAYS[newMonth]) && (isLeapYear(newYear) == false) && (newMonth == 2)){\r\n newDay = (DAYS[newMonth] - 1);\r\n }\r\n \r\n // IF leap year and is Feb. make newDay 29.\r\n else if ((day > DAYS[newMonth]) && isLeapMonth(newMonth, newYear) == true){\r\n newDay = DAYS[newMonth];\r\n }\r\n\r\n // if day is not gretaer than the last day of the new month, make no change.\r\n else {\r\n newDay = day;\r\n } \r\n\t\treturn (new Date(newMonth, newDay, newYear));\r\n\t}", "public void addMonth(int amount) {\r\n int oldValue = getMonth();\r\n int oldYearValue = getYear();\r\n calendarTable.getCalendarModel().addMonth(amount);\r\n monthChanged(oldValue, oldYearValue);\r\n }", "public HISDate addMonths(int numberOfMonths) {\r\n GregorianCalendar gc = new GregorianCalendar(this.getYear(), this.getMonth() - 1, this.getDay());\r\n gc.add(Calendar.MONTH, numberOfMonths);\r\n return new HISDate(gc.getTime());\r\n }", "public void updateMonth(int value)\n {\n this.currentCalendar.add(Calendar.MONTH, value);\n }", "public static final Function<Date,Date> addMonths(final int amount) {\r\n return new Add(Calendar.MONTH, amount);\r\n }", "public static Date addMonths(final Date date, final int months) {\n return Dates.add(date, months, Calendar.MONTH);\n }", "public static String addMonthsToDate(String date, int numberOfMonths) {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.UK);\r\n\t\t\tDateTime dt = new DateTime((Date) sdf.parse(date));\r\n\t\t\tDateTime dt2 = dt.plusMonths(numberOfMonths);\r\n\t\t\treturn dt2.toString(\"yyyy-MM-dd\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn date;\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmView.nextMonth();\n\t\t\t\tc.add(Calendar.MONTH, 1);\n\t\t\t\tmonthlyview_month.setText(DateFormat.format(\"d MMMM yyyy\", c));\n\n\t\t\t}", "@Override\n public void onClick(View v) {\n currentCalendar.add(Calendar.MONTH, 1);\n //drawMonth(workingDays);\n //drawMonth(workingDays, holidays);\n Log.i(\"***********\", \"DrawMonth called on nextmonth\");\n drawMonth(workingDays, holidays, requestedHolidays, generalCalendar);\n }", "public int getNextMonth()\n\t{\n\t\tm_calendar.set(Calendar.MONTH, getMonthInteger());\n\t\t\n\t\tsetDay(getYear(),getMonthInteger(),1);\n\t\t\n\t\treturn getMonthInteger();\n\t\n\t}", "public static Date addMonths(final Date date, final int amount) {\n final Calendar calendar = Calendar.getInstance();\n calendar.setTime(date);\n calendar.add(Calendar.MONTH, amount);\n return calendar.getTime();\n }", "public void setMonths(int months) {\n this.months = months;\n }", "public int getMonths() {\n return this.months;\n }", "public String asMonth() {\n \treturn new SimpleDateFormat(\"MM\").format(expiredAfter);\n }", "public static void main(String[] args) {\n System.out.println(DateUtils.addMonths(new Date(), 1).getMonth());\n System.out.println(Calendar.getInstance().getDisplayName((Calendar.MONTH)+1, Calendar.LONG, Locale.getDefault()));\n System.out.println(LocalDate.now().plusMonths(1).getMonth());\n\t}", "public Builder byMonth(Collection<Integer> months) {\n\t\t\tbyMonth.addAll(months);\n\t\t\treturn this;\n\t\t}", "public DateTimeFormatterBuilder appendMonthOfYearText() { \r\n return appendText(DateTimeFieldType.monthOfYear());\r\n }", "public void setMonth(int newMonth) {\n setMonth(newMonth, true);\n }", "private void monthFormat() {\n\t\ttry {\n\t\t\tString currentMonth = monthFormat.format(new Date()); //Get current month\n\t\t\tstartDate = monthFormat.parse(currentMonth); //Parse to first of the month\n\t\t\tString[] splitCurrent = currentMonth.split(\"-\");\n\t\t\tint month = Integer.parseInt(splitCurrent[0]) + 1; //Increase the month\n\t\t\tif (month == 13) { //If moving to next year\n\t\t\t\tint year = Integer.parseInt(splitCurrent[1]) + 1;\n\t\t\t\tendDate = monthFormat.parse(\"01-\" + year);\n\t\t\t} else {\n\t\t\t\tendDate = monthFormat.parse(month + \"-\" + splitCurrent[1]);\n\t\t\t}\n\t\t\t//Create SQL times\n\t\t\tstartDateSQL = new java.sql.Date(startDate.getTime());\n\t\t\tendDateSQL = new java.sql.Date(endDate.getTime());\n\t\t\tmonthString = new SimpleDateFormat(\"MMMM\").format(startDate);\n\t\t} catch (ParseException e) {\n\t\t\t_.log(Level.SEVERE, GameMode.Sonic, \"Failed to parse dates. Monthly leaderboard disabled.\");\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmView.previousMonth();\n\t\t\t\tc.add(Calendar.MONTH, -1);\n\t\t\t\tmonthlyview_month.setText(DateFormat.format(\"d MMMM yyyy\", c));\n\t\t\t\t\t}", "public void addMonthLabel(Model i)\n {\n String months = getMonth(i.getMonth());\n labelMonth = new JLabel(months);\n calendarPanel.add(labelMonth);\n labelMonth.setBounds(160- labelMonth.getPreferredSize().width/2, 25, 160, 25);\n }", "public Month addMonth(long userID, String cmonth, int cyear) {\n\n long id;\n long periodID = newPeriodID();\n long expectedID = newExpectedID();\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(COLUMN_MONTH_USER_ID, userID);\n values.put(COLUMN_MONTH_PERIOD_ID, periodID);\n values.put(COLUMN_MONTH_EXPECTED_ID, expectedID);\n values.put(COLUMN_MONTH_NAME, cmonth);\n values.put(COLUMN_MONTH_YEAR, cyear);\n values.put(COLUMN_MONTH_BALDIFF, 0);\n\n // Inserting Row\n id = db.insert(TABLE_MONTH, null, values);\n db.close();\n Month month = new Month(id, userID, periodID, expectedID, cmonth, cyear, 0);\n Log.i(\"addMonth\", month.toString());\n return month;\n }", "public void setMonths(String months) {\n this.months = parseMonths(months);\n }", "public Calendar endOfMonth() {\r\n\t\t\r\n\t\t// get the date at the beginning of next month\r\n\t\tCalendar c2 = Calendar.getInstance(baseCalendar.getTimeZone());\r\n\t\tc2.clear();\r\n\t\tc2.set(baseCalendar.get(Calendar.YEAR), \r\n\t\t\t\tbaseCalendar.get(Calendar.MONTH) + 1, 1);\r\n\t\t\r\n\t\treturn c2;\r\n\t}", "public Month () {\n monthNumber = 1;\n }", "public void calculateMonthBills() {\r\n\t\tdouble sum = 0;\r\n\r\n\t\tfor (int i = 0; i <= (numberOfBills - counter); i++) {\r\n\r\n\t\t\tsum += invoiceInfo[i].getAmount();\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n\\nTotal monthly bills: \" + sum);\r\n\t}", "public static List<Order> viewsalesbymonth() {\n\t\tList<Order> monthly_sales = new ArrayList<Order>();\n\n\t\ttry {\n\t\t\tconnect = ConnectionManager.getConnection();\n\t\t\tps = connect.prepareStatement(\n\t\t\t\t\t\"SELECT MONTHNAME(order_date) AS month_name, COUNT(MONTHNAME(order_date)) AS total FROM orders WHERE YEAR(order_date) = YEAR(CURRENT_DATE) GROUP BY MONTHNAME(order_date) ORDER BY MONTH(order_date)\");\n\t\t\tResultSet rs = ps.executeQuery();\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tOrder order_month_current = new Order();\n\t\t\t\torder_month_current.setOrderMonth(rs.getString(\"month_name\"));\n\t\t\t\torder_month_current.setTotalByMonth(rs.getInt(\"total\"));\n\n\t\t\t\tmonthly_sales.add(order_month_current);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn monthly_sales;\n\t}", "@Override\n\tpublic int insertMonth(Month11DTO mon) {\n\t\treturn getSqlSession().insert(\"monInsert\", mon);\n\t}", "public int[] getMonths() {\n return months;\n }", "public DateTimeFormatterBuilder appendMonthOfYear(int minDigits) {\r\n return appendDecimal(DateTimeFieldType.monthOfYear(), minDigits, 2);\r\n }", "public DueDateBuilder setMonth(int month) {\n this.month = month;\n return this;\n }", "public void addMonthActionListener(ActionListener l)\n {\n nextButton.addActionListener(l);\n }", "public static int getCurrentMonth(int month) {\n month++;\n return month;\n }", "public void addYear(int year) {\n if (month < 0) {\n subtractYear(year);\n return;\n }\n\n this.year += year;\n }", "public void changeMonth(int newMonth) {\n this.month = newMonth;\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tcalendar.moveNextMonth();\n\t\t\t\tdisplayCalendar();\n\t\t\t}", "public boolean isSupportMonth() {\r\n return true;\r\n }", "public DateTimeFormatterBuilder appendMonthOfYearShortText() {\r\n return appendShortText(DateTimeFieldType.monthOfYear());\r\n }", "public CinemaDate setMonth(String m) {\n return new CinemaDate(m, this.day, this.time);\n }", "public static void setEndOfMonth(Calendar calendar) {\r\n\t\tcalendar.set(Calendar.MONTH, calendar.get(Calendar.MONTH) + 1);\r\n\t\tcalendar.set(Calendar.DAY_OF_MONTH, 1);\r\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\r\n\t\tcalendar.set(Calendar.MINUTE, 0);\r\n\t\tcalendar.set(Calendar.SECOND, 0);\r\n\t\tcalendar.set(Calendar.MILLISECOND, 0);\r\n\t}", "@Override\n public void onClick(View v) {\n currentCalendar.add(Calendar.MONTH, -1);\n Log.i(\"***********\", \"DrawMonth called on previousmonth\");\n drawMonth(workingDays, holidays, requestedHolidays, generalCalendar);\n\n }", "public abstract void monthlyProcess();", "@Test\r\n public void testAddDays1() {\n Calendar cal = Calendar.getInstance();\r\n cal.add(Calendar.DAY_OF_MONTH, 10);\r\n System.out.println(\"The day after increment is: \" + cal.getTime());\r\n }", "public int getMonth() {\n return this.month;\n }", "public int getMonth() {\n return this.month;\n }", "public Month getMonth(){\n\t return this.month;\n }", "public static int getCurrentMonth()\n\t{\n\t\treturn Calendar.getInstance().get(Calendar.MONTH) + 1;\n\t}", "public int getMonth() {\n return month;\n }", "public final void add(Matrix3f m1) {\n\tm00 += m1.m00; m01 += m1.m01; m02 += m1.m02;\n\tm10 += m1.m10; m11 += m1.m11; m12 += m1.m12;\n\tm20 += m1.m20; m21 += m1.m21; m22 += m1.m22;\n }", "public TCustomerBillMonth() {\n this(DSL.name(\"t_customer_bill_month\"), null);\n }", "public void nextDay() {\r\n int daysMax = daysInMonth();\r\n \r\n if (day == daysMax && month == 12) { // If end of the year, set date to Jan 1\r\n setDate(1, 1);\r\n } else if (day == daysMax) { // If last day of month, set to first day of next month\r\n setDate(month + 1, 1);\r\n } else { // Otherwise, simply increment this day\r\n day++;\r\n }\r\n }", "void add(Month month, WeekDay day, int hour, int take, int ret) {\n addData(month, day, hour, take, ret);\n\n //add winter or summer \n if (month == Month.Nov || month == Month.Dic || month == Month.Jan || month == Month.Feb || month == Month.Mar) {\n addData(Month.Winter, day, hour, take, ret);\n } else {\n addData(Month.Summer, day, hour, take, ret);\n }\n //add to allmonth\n addData(Month.All, day, hour, take, ret);\n }", "public int getMonth()\n {\n return month;\n }", "private void setDataCurrentMonth() {\r\n\t\tguiControl.sendToServer(new ClientMessage(ClientMessageType.INCOME_REPORT, reportDate));\r\n\t\tMap<Integer, VisitorReport> parkReportMap = (Map<Integer, VisitorReport>) guiControl.getServerMsg()\r\n\t\t\t\t.getMessage();\r\n\t\tXYChart.Series<String, Integer> price = new XYChart.Series<>();\r\n\t\tint total_price = 0;\r\n\t\tint i = 1;\r\n\t\tfor (VisitorReport vr : parkReportMap.values()) {\r\n\t\t\tprice.getData().add(new XYChart.Data<>(String.valueOf(i), new Integer(vr.getPrice())));\r\n\t\t\ti++;\r\n\t\t\ttotal_price = total_price + vr.getPrice();\r\n\t\t}\r\n\t\tlineChar.getData().add(price);\r\n\t\tString totalP = String.valueOf(total_price);\r\n\t\ttotal.setText(totalP + \" \" + \"NIS\");\r\n\r\n\t}", "public void setMonths(int[] months) {\n if (months == null)\n months = new int[] {};\n this.months = months;\n }", "public int getMonth(){\n\t\treturn month;\n\t}", "public LoanMonthlyPayment calculateMonthlyPayment() {\n double monthlyInterest = loanRequest.getApr() / MONTHLY_INTEREST_DIVISOR;\n double tmp = Math.pow(1d + monthlyInterest, -1);\n tmp = Math.pow(tmp, loanRequest.getTermInMonths());\n tmp = Math.pow(1d - tmp, -1);\n return new LoanMonthlyPayment(\n monthlyInterest, loanRequest.getAmountBorrowed() * monthlyInterest * tmp\n );\n }", "public void setMonth(int month)\n {\n this.month = month;\n }", "public void calculateMonthlyInterest(){\n double currentMonth;\n currentMonth = (double)(this.savingsBalance*annualInterestRate/12);\n this.savingsBalance += currentMonth;\n }", "public TCustomerBillMonth(Name alias) {\n this(alias, T_CUSTOMER_BILL_MONTH);\n }", "public String checkDateMonth(Date aDate){\n if (aDate.getMonth() < 10) {\r\n String newDate = \"0\" + Integer.toString(aDate.getMonth()+1);\r\n \r\n return newDate;\r\n }\r\n return Integer.toString(aDate.getMonth());\r\n \r\n }", "public int getMonth() {\n\t\treturn month;\n\t}", "public java.math.BigInteger getStartMonth() {\r\n return startMonth;\r\n }", "public void buildMonth()\r\n {\r\n int i=0,k=0;\r\n date=LocalDate.of(year,month,1);\r\n String st;\r\n for(int j=0;date.getMonthValue()==month;j++)\r\n {\r\n\r\n if(date.getDayOfWeek().name()==\"SUNDAY\"){k=0;i++;}\r\n else if(date.getDayOfWeek().name()==\"MONDAY\"){k=1;}\r\n else if(date.getDayOfWeek().name()==\"TUESDAY\"){k=2;}\r\n else if(date.getDayOfWeek().name()==\"WEDNESDAY\"){k=3;}\r\n else if(date.getDayOfWeek().name()==\"THURSDAY\"){k=4;}\r\n else if(date.getDayOfWeek().name()==\"FRIDAY\"){k=5;}\r\n else if(date.getDayOfWeek().name()==\"SATURDAY\"){k=6;}\r\n st=String.valueOf(date.getDayOfMonth());\r\n cmdDate=new JButton(st);\r\n cmdDate.setBounds(xpos+k*110,ypos+i*50,100,50);\r\n this.cmdDate.addActionListener(new DayListner());\r\n panel.add(cmdDate);\r\n date = date.plusDays(1);\r\n }\r\n\r\n }", "public final native double setMonth(int month) /*-{\n this.setMonth(month);\n return this.getTime();\n }-*/;", "public Integer getMonth() {\r\n return month;\r\n }", "public void initMonthLayout(){\n monthCheckQueue = new LinkedList<>();\n nextMonth = new LinkedList<>();\n monthCount = 0;\n monthCheckQueue.add(MONTH_FLAG+3);\n monthCheckQueue.add(MONTH_FLAG);\n monthCheckQueue.add(MONTH_FLAG);\n nextMonth.add(cMonth);\n nextMonth.add(cMonth-1);\n nextMonth.add(cMonth+1);\n }", "private void setMonthSelection() {\n int displayMonth = getIntent().getIntExtra(\"month\", -1);\n if (displayMonth == -1) {\n Calendar cal = Calendar.getInstance();\n selectMonth.setSelection(cal.get(Calendar.MONTH) + 1);\n } else {\n selectMonth.setSelection(displayMonth);\n }\n }", "public void setMonth(java.lang.String r1) throws java.lang.IllegalArgumentException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: gov.nist.javax.sip.header.SIPDate.setMonth(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.setMonth(java.lang.String):void\");\n }", "protected void addMonthPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_month_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_month_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__MONTH,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "public Integer getMonth() {\n return month;\n }", "public Integer getMonth() {\n return month;\n }", "private void addadvanceOneMonthButtonFunction() {\n\t\tadvanceOneMonthButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tBank.getInstance().passOneMonth();\n\t\t\t\tsuccess.setText(\"success! One month has passed..\");\n\t\t\t}\t\t\n\t\t});\n\t\t\n\t}", "public int getMonth() {\r\n // ersetzt deprecated Methode Date.getMonth()\r\n return this.month;\r\n }", "public String getMonth() {\r\n return month;\r\n }", "public Calendar startOfMonth() {\r\n\t\t\r\n\t\tCalendar c2 = Calendar.getInstance(baseCalendar.getTimeZone());\r\n\t\tc2.clear();\r\n\t\tc2.set(baseCalendar.get(Calendar.YEAR), \r\n\t\t\t\tbaseCalendar.get(Calendar.MONTH), 1);\r\n\t\treturn c2;\r\n\t}", "public ArrayList<String> getMonths() \r\n\t{\r\n\t\tString[] monthsArray = {\"January\", \"Febuary\", \"March\", \"April\", \"May\", \"June\",\r\n\t\t\t\t\t\t \"July\", \"August\", \"September\", \"October\", \"November\", \"Decmber\"};\r\n\t\tArrayList <String>monthList = new ArrayList<String>(Arrays.asList(monthsArray));\r\n\t\treturn monthList;\r\n\t}", "private void addToModelByMonth(String modelName, DefaultChartModel[] array, Month month, long time, Double value) {\n if (value == null) {\n return;\n }\n DefaultChartModel m = array[month.ordinal()];\n if (m == null) {\n String name = modelName == null ? month.toString() : modelName+\" (\"+month+\")\";\n m = new DefaultChartModel(name);\n array[month.ordinal()] = m;\n }\n m.addPoint(time, value);\n }", "public int getMonthInt() {\n return month;\r\n }", "public String getMonth() {\n return month;\n }", "public Builder byMonth(Integer... months) {\n\t\t\treturn byMonth(Arrays.asList(months));\n\t\t}", "public int getMonth() {\n\t\treturn month;\n\t}", "public int getMonth() {\r\n\t\treturn (this.month);\r\n\t}", "@Override\n\tpublic int updateMonth(Month11DTO mon) {\n\t\treturn getSqlSession().update(\"monUpdate\", mon);\n\t}", "public static final Function<Date,Date> setMonth(final int value) {\r\n return new Set(Calendar.MONTH, value);\r\n }", "public void setStartMonth(java.math.BigInteger startMonth) {\r\n this.startMonth = startMonth;\r\n }", "public TCustomerBillMonth(String alias) {\n this(DSL.name(alias), T_CUSTOMER_BILL_MONTH);\n }", "public void dataPadrao() {\n Calendar c = Calendar.getInstance();\n SimpleDateFormat s = new SimpleDateFormat(\"dd/MM/yyyy\");\n String dataAtual = s.format(c.getTime());\n c.add(c.MONTH, 1);\n String dataAtualMaisUm = s.format(c.getTime());\n dataInicial.setText(dataAtual);\n dataFinal.setText(dataAtualMaisUm);\n }", "public static int getTodaysMonth() {\t\r\n\t\t\r\n\t\tTime time = new Time();\r\n\t\ttime.setToNow();\r\n\t\treturn time.month + 1;\t\r\n\t\t\r\n\t}", "public JMonthChooser() {\n initComponents();\n this.initMonths();\n this.setDate(DateUtils.Ahora());\n this.setMonth(DateUtils.monthOfYear(this.getDate()));\n }", "public int getMonthInteger() \n\t{\n\t\t// 1 will be added here to be able to use this func alone to construct e.g adate\n\t\t// to get the name of the month from getMonth(), 1 must be deducted.\n\t\treturn 1+m_calendar.get(Calendar.MONTH);\n\n\t}", "public CopticMonth getMonth() {\n\n return CopticMonth.valueOf(this.cmonth);\n\n }", "protected void sequence_MONTHS(ISerializationContext context, MonthValue semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "@Override\r\n public boolean setMonth(int month) {\r\n try {\r\n GregorianCalendar tempCalendar =(GregorianCalendar) calendar.clone();\r\n tempCalendar.setLenient(false); \r\n tempCalendar.set(Calendar.MONTH, month);\r\n tempCalendar.getTime();\r\n }\r\n catch (Exception e) {\r\n return false;\r\n }\r\n calendar.set(Calendar.MONTH, month); \r\n return true;\r\n }", "public void setMonth(byte value) {\n this.month = value;\n }", "public String numToMonth(int m)\n {\n return monthsArray[m-1];\n }", "public double calculateMonthlyTotal(LinkedList<Expense> expenses){\n double monthlyTotal = 0.0;\n\n for(Expense expense : expenses){\n if(dateService.withinMonth(expense.getDate()))\n monthlyTotal = monthlyTotal + expense.getPrice();\n }\n\n return round(monthlyTotal, 2);\n }", "private void updateMonthMenu() {\r\n String[] months = getDateFormatSymbols().getMonths();\r\n monthMenu.removeAll();\r\n for (int i = 0; i < months.length; i++) {\r\n JMenuItem x = new JMenuItem(months[i]);\r\n x.addActionListener(new DateActionListener(Calendar.MONTH, i));\r\n monthMenu.add(x);\r\n }\r\n if (monthControl != null) {\r\n updateControlsFromTable();\r\n }\r\n }", "public Vector plus(Vector m) {\n\t\treturn new Vector((deltaX + m.getDeltaX()), (deltaY + m.getDeltaY()));\n\t}" ]
[ "0.71894586", "0.6822053", "0.6767633", "0.6668127", "0.6318199", "0.629797", "0.6097269", "0.6040763", "0.5966602", "0.5849947", "0.5698534", "0.56630164", "0.5654517", "0.55811554", "0.5572129", "0.5563953", "0.5488209", "0.54363346", "0.5435099", "0.5422232", "0.53872967", "0.53757554", "0.53707355", "0.53405946", "0.53042614", "0.5294975", "0.52873373", "0.5276601", "0.5265131", "0.5221845", "0.52084255", "0.5202636", "0.52011025", "0.5156133", "0.51526827", "0.5131895", "0.5112548", "0.5094905", "0.50940293", "0.50812715", "0.5081036", "0.50760216", "0.50686336", "0.5064652", "0.50635827", "0.50635827", "0.50608504", "0.5056364", "0.5054386", "0.50523335", "0.5035628", "0.50295126", "0.50221765", "0.50205725", "0.5011488", "0.49962324", "0.49871966", "0.4982926", "0.49776626", "0.4958367", "0.49575597", "0.49531525", "0.49507543", "0.4949423", "0.49383432", "0.49300483", "0.4927437", "0.4926391", "0.4923764", "0.49235356", "0.4923232", "0.49060032", "0.49060032", "0.49017745", "0.4897591", "0.48892173", "0.48793143", "0.48789033", "0.4864364", "0.48563692", "0.48561844", "0.48534963", "0.48522004", "0.48455897", "0.48434654", "0.48397306", "0.4833119", "0.48303106", "0.48244333", "0.4793774", "0.47865823", "0.47817355", "0.47765142", "0.4772161", "0.47715884", "0.47704443", "0.47687635", "0.47665802", "0.47609627", "0.47554082" ]
0.735921
0
Subtract months from this month.
public Month subtract(final Months months) { final long newMonth = Math.toIntExact(Math.subtractExact(this.month, months.longValue())); if (newMonth <= 0) // while (newMonth <= 0) { // TODO Listener // newMonth += 12; // decrementYear(); throw new ArithmeticException(Month.UNDERFLOW); } return Month.of(Math.toIntExact(newMonth)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void subtractMonth(int month) {\n if (month < 0) month = Math.abs(month);\n\n while (month != 0) {\n month--;\n this.subtractSingleMonth();\n }\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmView.previousMonth();\n\t\t\t\tc.add(Calendar.MONTH, -1);\n\t\t\t\tmonthlyview_month.setText(DateFormat.format(\"d MMMM yyyy\", c));\n\t\t\t\t\t}", "public int getMonths() {\n return this.months;\n }", "@Override\n public void onClick(View v) {\n currentCalendar.add(Calendar.MONTH, -1);\n Log.i(\"***********\", \"DrawMonth called on previousmonth\");\n drawMonth(workingDays, holidays, requestedHolidays, generalCalendar);\n\n }", "public int getMonth() {\r\n // ersetzt deprecated Methode Date.getMonth()\r\n return this.month;\r\n }", "public void subtract() {\n\t\t\n\t}", "public void subtractMonthActionListener(ActionListener l)\n {\n prevButton.addActionListener(l);\n }", "public static Date setToMonthAgo(Date date) {\n\t\t\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.add(Calendar.MONTH, -1);\n\t\treturn cal.getTime();\t\t\t\n\t}", "public Date addMonths(int m) {\r\n if (m < 0) {\r\n\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\t\"Month should not be the negative value!\");\r\n\t\t}\r\n\r\n\r\n\t\tint newMonth = (month + (m % 12)) > 12 ? ((month + (m % 12)) % 12) : month\r\n\t\t\t\t+ (m % 12);\r\n\t\tint newYear = (month + (m % 12)) > 12 ? year + (m / 12) + 1 : year\r\n\t\t\t\t+ (m / 12);\r\n int newDay = 0;\r\n // IF the new month has less total days in it than the starting month\r\n // and the date being added to is the last day of the month, adjust\r\n // and make newDay correct with its corresponding month.\r\n \r\n // IF not leap year and not Feb. make newDay correct.\r\n if (day > DAYS[newMonth] && (newMonth != 2)) {\r\n newDay = (DAYS[newMonth]);\r\n //System.out.println(\"1\");\r\n } \r\n \r\n // IF not leap year but not Feb. make newDay 28. (This is usually the case for Feb.)\r\n else if ((day > DAYS[newMonth]) && (isLeapYear(newYear) == false) && (newMonth == 2)){\r\n newDay = (DAYS[newMonth] - 1);\r\n }\r\n \r\n // IF leap year and is Feb. make newDay 29.\r\n else if ((day > DAYS[newMonth]) && isLeapMonth(newMonth, newYear) == true){\r\n newDay = DAYS[newMonth];\r\n }\r\n\r\n // if day is not gretaer than the last day of the new month, make no change.\r\n else {\r\n newDay = day;\r\n } \r\n\t\treturn (new Date(newMonth, newDay, newYear));\r\n\t}", "public void setMonths(int months) {\n this.months = months;\n }", "@Override\n public int getMonth() {\n return this.deadline.getMonth();\n }", "public Vector minus(Vector m) {\n\t\treturn new Vector((deltaX - m.getDeltaX()), (deltaY - m.getDeltaY()));\n\t}", "public int getPrevMonth()\n\t{\n\t\tm_calendar.set(Calendar.MONTH, getMonthInteger()-2);\n\t\t\n\t\treturn (getMonthInteger()-1);\n\n\t}", "public String asMonth() {\n \treturn new SimpleDateFormat(\"MM\").format(expiredAfter);\n }", "public int getMonthsPast(){\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tint c_month = calendar.get(Calendar.MONTH);\n\t\tint c_day = calendar.get(Calendar.DAY_OF_MONTH);\n\t\tString[] date = start_date.split(\"-\");\n\t\tint month = Integer.parseInt(date[1]);\n\t\tint day = Integer.parseInt(date[2]);\n\t\t\n\t\tint current_count = c_day;\n\t\tint client_count = day;\n\t\t\n\t\tswitch (c_month - 1){\n\t\tcase 11:\n\t\t\tcurrent_count += 31;\n\t\tcase 10: \n\t\t\tcurrent_count += 30;\n\t\tcase 9:\n\t\t\tcurrent_count += 31;\n\t\tcase 8:\n\t\t\tcurrent_count += 30;\n\t\tcase 7:\n\t\t\tcurrent_count += 31;\n\t\tcase 6:\n\t\t\tcurrent_count += 31;\n\t\tcase 5: \n\t\t\tcurrent_count += 30;\n\t\tcase 4: \n\t\t\tcurrent_count += 31;\n\t\tcase 3:\n\t\t\tcurrent_count += 30;\n\t\tcase 2: \n\t\t\tcurrent_count += 31;\n\t\tcase 1: \n\t\t\tcurrent_count += 28;\n\t\tcase 0: \n\t\t\tcurrent_count += 31;\n\t\t\tbreak;\n\t\t\t\n\t}\n\t\n\t\tswitch (month - 2){\n\t\tcase 11:\n\t\t\tclient_count += 31;\n\t\tcase 10: \n\t\t\tclient_count += 30;\n\t\tcase 9:\n\t\t\tclient_count += 31;\n\t\tcase 8:\n\t\t\tclient_count += 30;\n\t\tcase 7:\n\t\t\tclient_count += 31;\n\t\tcase 6:\n\t\t\tclient_count += 31;\n\t\tcase 5: \n\t\t\tclient_count += 30;\n\t\tcase 4: \n\t\t\tclient_count += 31;\n\t\tcase 3:\n\t\t\tclient_count += 30;\n\t\tcase 2: \n\t\t\tclient_count += 31;\n\t\tcase 1: \n\t\t\tclient_count += 28;\n\t\tcase 0: \n\t\t\tclient_count += 31;\n\t\t\tbreak;\n\t}\n\t\t\n\treturn current_count-client_count;\n\t}", "public final void sub(Matrix3f m1) {\n\tm00 -= m1.m00; m01 -= m1.m01; m02 -= m1.m02;\n\tm10 -= m1.m10; m11 -= m1.m11; m12 -= m1.m12;\n\tm20 -= m1.m20; m21 -= m1.m21; m22 -= m1.m22;\n }", "public int[] getMonths() {\n return months;\n }", "public Matrix subtract(Matrix m2)\n\t{\n\t\tMatrix result = new Matrix(new double[m2.matrix.length][m2.matrix.length]); \n\t\tfor (int i = 0; i < m2.matrix.length; i++)\n\t\t{\n\t\t\tfor (int j = 0; j < m2.matrix.length; j++)\n\t\t\t{\n\t\t\t\tresult.matrix[i][j] = matrix[i][j] - m2.matrix[i][j];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public CopticMonth getMonth() {\n\n return CopticMonth.valueOf(this.cmonth);\n\n }", "public int getMonth() {\n return this.month;\n }", "public int getMonth() {\n return this.month;\n }", "public Matrix minus(Matrix bmat){\r\n \tif((this.nrow!=bmat.nrow)||(this.ncol!=bmat.ncol)){\r\n \t\tthrow new IllegalArgumentException(\"Array dimensions do not agree\");\r\n \t}\r\n \tint nr=this.nrow;\r\n \tint nc=this.ncol;\r\n \tMatrix cmat = new Matrix(nr,nc);\r\n \tdouble[][] carray = cmat.getArrayReference();\r\n \tfor(int i=0; i<nr; i++){\r\n \t\tfor(int j=0; j<nc; j++){\r\n \t\tcarray[i][j]=this.matrix[i][j] - bmat.matrix[i][j];\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}", "public void removeCurrentMonthLabel()\n {\n calendarPanel.remove(labelMonth);\n calendarPanel.validate();\n calendarPanel.repaint();\n }", "public int getMonth() {\r\n\t\treturn (this.month);\r\n\t}", "public Matrix minus(Matrix B) {\n Matrix A = this;\n if (B.M != A.M || B.N != A.N) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(M, N);\n for (int i = 0; i < M; i++)\n for (int j = 0; j < N; j++)\n C.data[i][j] = A.data[i][j] - B.data[i][j];\n return C;\n }", "Matrix sub(Matrix m){\n if(m.cols != this.cols || m.rows != this.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n Matrix matrix_to_return = new Matrix(m.rows, m.cols);\n for(int i=0; i<m.rows * m.cols; i++){\n matrix_to_return.data[i] = this.data[i] - m.data[i];\n }\n return matrix_to_return;\n }", "public Matrix minus(Matrix B) throws JPARSECException {\n checkMatrixDimensions(B);\n Matrix X = new Matrix(m,n);\n double[][] C = X.getArray();\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n C[i][j] = data[i][j] - B.data[i][j];\n }\n }\n return X;\n }", "public Month add(final Months months)\n {\n final long newMonth = Math.toIntExact(Math.addExact(this.month, months.longValue()));\n if (newMonth > 12) // while (newMonth > 12)\n {\n // TODO Listener\n // newMonth -= 12;\n // incrementYear();\n throw new ArithmeticException(Month.OVERFLOW);\n }\n return Month.of(Math.toIntExact(newMonth));\n }", "public void decreaseDay(){\n leapyear(year); //Call leapyear on year to check for leap year\r\n day--; //Decrement day\r\n if(day == 0){ //If day reaches lower than the month's day\r\n month--; //Decrement month\r\n\r\n\r\n if(month == 0){ //If month reaches zero\r\n month = 12; //Set month to 12 \r\n year--; //Decrement year\r\n }\r\n day = days[month-1]; //Set day to the previous month's value\r\n\r\n } \r\n\r\n }", "public Month getMonth(){\n\t return this.month;\n }", "public int getMonth() {\n return month;\n }", "public Matrix minus(Matrix B) {\n Matrix A = this;\n if (B.rowCount != A.rowCount || B.columnCount != A.columnCount) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(rowCount, columnCount);\n for (int i = 0; i < rowCount; i++)\n for (int j = 0; j < columnCount; j++)\n C.data[i][j] = A.data[i][j] - B.data[i][j];\n return C;\n }", "public Builder clearEmploymentDurationInMonths() {\n \n employmentDurationInMonths_ = 0;\n onChanged();\n return this;\n }", "public int getMonth()\n {\n return month;\n }", "Long getCompletedBugAveDurationByProjectIdDateBackByMonth(Integer projectId, Integer months);", "@Test\n\tpublic void testDiffMonth() {\n diffMonth.addOneDay();\n diffMonthTwo.addOneDay();\n diffMonthThree.addOneDay();\n assertEquals(2, diffMonth.getMonth());\n assertEquals(3, diffMonthTwo.getMonth());\n assertEquals(5, diffMonthThree.getMonth());\n }", "public int getMonth(){\n\t\treturn month;\n\t}", "public int getMonth() {\n\t\treturn month;\n\t}", "@Override\n\tpublic int deleteMonth(Month11DTO mon) {\n\t\treturn getSqlSession().delete(\"monDelete\", mon);\n\t}", "public void decrement() {\n\t\tif (m_bYear) {\n\t\t\tm_value--;\n\t\t\tif (m_value < 0)\n\t\t\t\tm_value = 9999;\n\t\t} else {\n\t\t\tm_value--;\n\t\t\tif (m_value < 0)\n\t\t\t\tm_value = 11;\n\t\t}\n\t\trepaint();\n\t}", "public Matrix minus(double[][] bmat){\r\n \t int nr=bmat.length;\r\n \tint nc=bmat[0].length;\r\n \tif((this.nrow!=nr)||(this.ncol!=nc)){\r\n \t\tthrow new IllegalArgumentException(\"Array dimensions do not agree\");\r\n \t}\r\n\r\n \tMatrix cmat = new Matrix(nr,nc);\r\n \tdouble[][] carray = cmat.getArrayReference();\r\n \tfor(int i=0; i<nr; i++){\r\n \t\tfor(int j=0; j<nc; j++){\r\n \t\tcarray[i][j]=this.matrix[i][j] - bmat[i][j];\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}", "@Override\n public int compareTo(final Month obj)\n {\n Objects.requireNonNull(obj, \"obj\"); //$NON-NLS-1$\n return Integer.compare(this.month, obj.month);\n }", "protected MatrixToken _subtract(MatrixToken rightArgument)\n\t\t\tthrows IllegalActionException {\n\t\tLongMatrixToken convertedArgument = (LongMatrixToken) rightArgument;\n\t\tlong[] result = LongArrayMath.subtract(_value,\n\t\t\t\tconvertedArgument._getInternalLongArray());\n\t\treturn new LongMatrixToken(result, _rowCount, _columnCount, DO_NOT_COPY);\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmView.nextMonth();\n\t\t\t\tc.add(Calendar.MONTH, 1);\n\t\t\t\tmonthlyview_month.setText(DateFormat.format(\"d MMMM yyyy\", c));\n\n\t\t\t}", "public Calendar endOfMonth() {\r\n\t\t\r\n\t\t// get the date at the beginning of next month\r\n\t\tCalendar c2 = Calendar.getInstance(baseCalendar.getTimeZone());\r\n\t\tc2.clear();\r\n\t\tc2.set(baseCalendar.get(Calendar.YEAR), \r\n\t\t\t\tbaseCalendar.get(Calendar.MONTH) + 1, 1);\r\n\t\t\r\n\t\treturn c2;\r\n\t}", "public void setMonths(String months) {\n this.months = parseMonths(months);\n }", "public Integer getMonth() {\r\n return month;\r\n }", "public Matrix minusEquals(Matrix B) throws JPARSECException {\n checkMatrixDimensions(B);\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n data[i][j] = data[i][j] - B.data[i][j];\n }\n }\n return this;\n }", "Matrix sub(Matrix M){\n if(getSize() != M.getSize()) {\n throw new RuntimeException(\"Matrix Error: Matrices must be the same size\");\n }\n //add the negative\n Matrix Y = new Matrix(getSize());\n M = (M.scalarMult(-1));\n Y = (this.add(M));\n return Y;\n }", "public final native int getMonth() /*-{\n return this.getMonth();\n }-*/;", "public int getMonth() {\n\t\treturn month;\n\t}", "public Integer getMonth() {\n return month;\n }", "public Integer getMonth() {\n return month;\n }", "public String numToMonth(int m)\n {\n return monthsArray[m-1];\n }", "public final native int getUTCMonth() /*-{\n return this.getUTCMonth();\n }-*/;", "public int getMonth() {\r\n return FormatUtils.uint8ToInt(mMonth);\r\n }", "public int getEndMonth()\n\t{\n\t\treturn this.mEndMonth;\n\t}", "int getEmploymentDurationInMonths();", "List<MonthlyExpenses> lastMonthExpenses();", "public ArrayList<String> getMonths() \r\n\t{\r\n\t\tString[] monthsArray = {\"January\", \"Febuary\", \"March\", \"April\", \"May\", \"June\",\r\n\t\t\t\t\t\t \"July\", \"August\", \"September\", \"October\", \"November\", \"Decmber\"};\r\n\t\tArrayList <String>monthList = new ArrayList<String>(Arrays.asList(monthsArray));\r\n\t\treturn monthList;\r\n\t}", "public int getMonth() {\n\t\treturn date.getMonthValue();\n\t}", "public String getMonth() {\r\n return month;\r\n }", "public int darTamanoMonthly()\n\t{\n\t\treturn queueMonthly.darNumeroElementos();\n\t}", "public Matrix subtract(Matrix b, BigInteger modulo) {\n Matrix a = this;\n if (a.getColumns() != b.getColumns() ||\n a.getRows() != b.getRows()) {\n throw new MalformedMatrixException(\"Matrix with dimensions \" + nrOfRows + \"x\" + nrOfCols +\n \" cannot be subtracted from matrix with dimensions \" + b.nrOfRows + \"x\" + b.nrOfCols);\n }\n\n BigInteger[][] res = new BigInteger[a.nrOfRows][a.nrOfCols];\n\n for (int row = 0; row < a.getRows(); row++) {\n for (int column = 0; column < a.getColumns(); column++) {\n BigInteger aVal = a.get(row, column);\n BigInteger bVal = b.get(row, column);\n res[row][column] = aVal.subtract(bVal).mod(modulo);\n }\n }\n\n return new Matrix(res);\n }", "public RealMatrix subtract(SparseRealMatrix m) throws IllegalArgumentException {\n\n // safety check\n checkAdditionCompatible(m);\n\n final RealMatrix out = new SparseRealMatrix(this);\n for (OpenIntToDoubleHashMap.Iterator iterator = m.entries.iterator(); iterator.hasNext();) {\n iterator.advance();\n final int row = iterator.key() / columnDimension;\n final int col = iterator.key() - row * columnDimension;\n out.setEntry(row, col, getEntry(row, col) - iterator.value());\n }\n\n return out;\n\n }", "public static int getCurrentMonth()\n\t{\n\t\treturn Calendar.getInstance().get(Calendar.MONTH) + 1;\n\t}", "public void calculateMonthBills() {\r\n\t\tdouble sum = 0;\r\n\r\n\t\tfor (int i = 0; i <= (numberOfBills - counter); i++) {\r\n\r\n\t\t\tsum += invoiceInfo[i].getAmount();\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n\\nTotal monthly bills: \" + sum);\r\n\t}", "public String getMonth() {\n return month;\n }", "public java.lang.Integer getLastOverdueDistanceMonths() {\n return lastOverdueDistanceMonths;\n }", "public int getMonthDate()\n\t{\n\t\tif (m_nType == AT_MONTH_DATE)\n\t\t\treturn ((Integer)m_oData).intValue();\n\t\telse\n\t\t\treturn -1;\n\t}", "public static Matrix minus(Matrix amat, Matrix bmat){\r\n \tif((amat.nrow!=bmat.nrow)||(amat.ncol!=bmat.ncol)){\r\n \t\tthrow new IllegalArgumentException(\"Array dimensions do not agree\");\r\n \t}\r\n \tint nr=amat.nrow;\r\n \tint nc=amat.ncol;\r\n \tMatrix cmat = new Matrix(nr,nc);\r\n \tdouble[][] carray = cmat.getArrayReference();\r\n \tfor(int i=0; i<nr; i++){\r\n \t\tfor(int j=0; j<nc; j++){\r\n \t\tcarray[i][j]=amat.matrix[i][j] - bmat.matrix[i][j];\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}", "public int getMonthInt() {\n return month;\r\n }", "public java.math.BigInteger getExpirationMonth() {\r\n return expirationMonth;\r\n }", "public static void main(String[] args) {\n System.out.println(DateUtils.addMonths(new Date(), 1).getMonth());\n System.out.println(Calendar.getInstance().getDisplayName((Calendar.MONTH)+1, Calendar.LONG, Locale.getDefault()));\n System.out.println(LocalDate.now().plusMonths(1).getMonth());\n\t}", "public final void sub(Matrix3f m1, Matrix3f m2) {\n\tset(\n\t m1.m00 - m2.m00,\n\t m1.m01 - m2.m01,\n\t m1.m02 - m2.m02,\n\t m1.m10 - m2.m10,\n\t m1.m11 - m2.m11,\n\t m1.m12 - m2.m12,\n\t m1.m20 - m2.m20,\n\t m1.m21 - m2.m21,\n\t m1.m22 - m2.m22\n\t );\n }", "@Test\n public void lagOneMonth() {\n Calendar c = Calendar.getInstance();\n long t = c.getTimeInMillis();\n System.out.println(c);\n System.out.println(c.getTime());\n c.add(Calendar.MONTH, 1);\n System.out.println(c);\n System.out.println(c.getTime());\n assertEquals(t, c.getTimeInMillis() - TimeUnit.DAYS.toMillis(30));\n }", "public final native double setMonth(int month) /*-{\n this.setMonth(month);\n return this.getTime();\n }-*/;", "public static OperationMBean getSubtractOperationMBean()\n {\n return new Operation(\"subtract\");\n }", "public String getApplyMonths() {\n return applyMonths;\n }", "public static Matrix subtract(Matrix first, Matrix second) {\n \n Matrix result = new Matrix(first.getRows(), first.getClumns());\n \n for (int row = 0; row < first.getRows(); row++) {\n for (int col = 0; col < first.getClumns(); col++) {\n result.matrix[row][col] = first.matrix[row][col] - second.matrix[row][col];\n }\n }\n \n return result;\n }", "@Override\n public void onMonthChanged(Date date) {\n }", "protected MatrixToken _subtractElement(Token rightArgument)\n\t\t\tthrows IllegalActionException {\n\t\tlong scalar;\n\t\tif (rightArgument instanceof LongMatrixToken) {\n\t\t\tif (((LongMatrixToken) rightArgument).getRowCount() != 1\n\t\t\t\t\t|| ((LongMatrixToken) rightArgument).getColumnCount() != 1) {\n\t\t\t\t// Throw an exception.\n\t\t\t\treturn super._moduloElement(rightArgument);\n\t\t\t}\n\t\t\tscalar = ((LongMatrixToken) rightArgument).getElementAt(0, 0);\n\t\t} else {\n\t\t\tscalar = ((LongToken) rightArgument).longValue();\n\t\t}\n\t\tlong[] result = LongArrayMath.add(_value, -scalar);\n\t\treturn new LongMatrixToken(result, _rowCount, _columnCount, DO_NOT_COPY);\n\t}", "public void onClickSubtract(View view) {\n countJB--;\n updateCountTV();\n }", "public String getMonth()\n {\n return Month.get();\n }", "public static List<Order> viewsalesbymonth() {\n\t\tList<Order> monthly_sales = new ArrayList<Order>();\n\n\t\ttry {\n\t\t\tconnect = ConnectionManager.getConnection();\n\t\t\tps = connect.prepareStatement(\n\t\t\t\t\t\"SELECT MONTHNAME(order_date) AS month_name, COUNT(MONTHNAME(order_date)) AS total FROM orders WHERE YEAR(order_date) = YEAR(CURRENT_DATE) GROUP BY MONTHNAME(order_date) ORDER BY MONTH(order_date)\");\n\t\t\tResultSet rs = ps.executeQuery();\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tOrder order_month_current = new Order();\n\t\t\t\torder_month_current.setOrderMonth(rs.getString(\"month_name\"));\n\t\t\t\torder_month_current.setTotalByMonth(rs.getInt(\"total\"));\n\n\t\t\t\tmonthly_sales.add(order_month_current);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn monthly_sales;\n\t}", "public double monthDiff(final LocalDate start, final LocalDate end, final PeriodCountBasis basis) {\r\n return yearDiff(start, end, basis) * CalculatorConstants.MONTHS_IN_YEAR;\r\n }", "public org.apache.spark.mllib.linalg.distributed.BlockMatrix subtract (org.apache.spark.mllib.linalg.distributed.BlockMatrix other) { throw new RuntimeException(); }", "public LoanMonthlyPayment calculateMonthlyPayment() {\n double monthlyInterest = loanRequest.getApr() / MONTHLY_INTEREST_DIVISOR;\n double tmp = Math.pow(1d + monthlyInterest, -1);\n tmp = Math.pow(tmp, loanRequest.getTermInMonths());\n tmp = Math.pow(1d - tmp, -1);\n return new LoanMonthlyPayment(\n monthlyInterest, loanRequest.getAmountBorrowed() * monthlyInterest * tmp\n );\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tcalendar.movePrevMonth();\n\t\t\t\tdisplayCalendar();\n\t\t\t}", "public BigDecimal getLastmonthFee() {\r\n return lastmonthFee;\r\n }", "public void subtract(Vector rhs) {\r\n for (int i = 0; i < components.length; i++) {\r\n components[i] -= rhs.components[i];\r\n }\r\n }", "public T minus( T B ) {\n convertType.specify(this, B);\n T A = convertType.convert(this);\n B = convertType.convert(B);\n T ret = A.createLike();\n\n A.ops.minus(A.mat, B.mat, ret.mat);\n return ret;\n }", "public Month () {\n monthNumber = 1;\n }", "@Override\n\tpublic double subtract(double in1, double in2) {\n\t\treturn 0;\n\t}", "public TCustomerBillMonth(Name alias) {\n this(alias, T_CUSTOMER_BILL_MONTH);\n }", "public double getMonthlyAmount()\n\t{\n\t\treturn amountGoal%timeFrame;\n\t}", "public void changeMonth(int newMonth) {\n this.month = newMonth;\n }", "public byte getMonth() {\n return month;\n }", "public void testMinus() {\n \tMeasurement a = new Measurement(2,6);\n \tMeasurement b = new Measurement(1,5);\n \tMeasurement c = a.minus(b);\n \t\n assertTrue(a.getFeet() == 2);\n assertTrue(a.getInches() == 6);\n assertTrue(b.getFeet() == 1);\n assertTrue(b.getInches() == 5);\n \n assertTrue(c.getFeet() == 1);\n assertTrue(c.getInches() == 1);\n }", "public abstract void monthlyProcess();" ]
[ "0.74381804", "0.62987494", "0.6040849", "0.57938844", "0.5719027", "0.5705899", "0.5657681", "0.5627722", "0.56213397", "0.55956775", "0.55282605", "0.55102646", "0.5486813", "0.54779977", "0.54633796", "0.5455518", "0.544634", "0.54417753", "0.543125", "0.5411653", "0.5411653", "0.539808", "0.53980136", "0.5385712", "0.53755546", "0.5369862", "0.53657144", "0.53567106", "0.53334576", "0.5330736", "0.52923286", "0.52917594", "0.52776945", "0.524962", "0.5227336", "0.52272165", "0.52253866", "0.52198386", "0.52078074", "0.52072287", "0.5204851", "0.52002823", "0.51910174", "0.5188101", "0.51808167", "0.51775986", "0.51761943", "0.51723135", "0.51630193", "0.51525354", "0.5143599", "0.5132118", "0.5132118", "0.512722", "0.51062423", "0.510293", "0.509976", "0.50893945", "0.50819945", "0.50645596", "0.505917", "0.5057694", "0.5041034", "0.50389206", "0.5038025", "0.5033359", "0.5001615", "0.49994585", "0.49884555", "0.4987636", "0.49794257", "0.49629596", "0.49626726", "0.49532777", "0.4944594", "0.49411082", "0.4932344", "0.4929063", "0.49187705", "0.49176797", "0.49125418", "0.48935404", "0.48901093", "0.4885192", "0.48792884", "0.48691788", "0.48572755", "0.48407325", "0.4840045", "0.4837695", "0.48362792", "0.48349202", "0.4833486", "0.48307186", "0.48294964", "0.48288786", "0.48276892", "0.48243165", "0.48240617", "0.48233473" ]
0.7567612
0
TODO Autogenerated method stub
public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new FileReader(new File("A-large.in"))); PrintWriter out=new PrintWriter("output.out"); //BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int T = Integer.parseInt(br.readLine()); int Tin=1; while (T-- != 0) { StringTokenizer st=new StringTokenizer(br.readLine()); S=new StringBuilder(st.nextToken()); StringBuilder temp=new StringBuilder(); for(int i=0;i<S.length();i++){ temp.append("+"); } int K=Integer.parseInt(st.nextToken()); int cnt=0; for(int i=0;i<=S.length()-K;i++){ if(S.charAt(i)=='-'){ replaceK(i,K); cnt++; } } String temp2=S.toString(); out.print("Case #"+Tin+": "); if(temp2.equals(temp.toString())){ //System.out.println(cnt); out.print(cnt); }else{ //System.out.println("Impossible"); out.print("IMPOSSIBLE"); } out.print("\n"); Tin++; } out.close(); }
{ "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
How much steam is used per use
int steamPerDurability();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected double Hops() {\r\n\t\tint hops = 0;\r\n\t\tIterator<Flow> f = this.flows.iterator();\r\n\t\twhile (f.hasNext()) {\r\n\t\t\thops += f.next().getLinks().size();\r\n\t\t}\r\n\t\treturn hops;\r\n\t}", "@Override\n\tpublic int numUses() {\n\t\treturn this.use;\n\t}", "public int getUses() {\n return statUse.getDenominator();\n }", "public static int getSupplyUsed() {\n return Atlantis.getBwapi().getSelf().getSupplyUsed() / 2;\n }", "public float getWeightUsed()\r\n {\r\n // implement our own magic formula here ...\r\n return 2.0f;\r\n }", "public int passengers(){\n return currentCapacity(); \n }", "protected long getLiveSetSize() {\n\t\t// Sum of bytes removed from the containers.\n\t\tlong removed = 0;\n\n\t\tfor (int i = 0; i < sets.length; i++)\n\t\t\tremoved += sets[i].getContainer().getBytesRemoved();\n\n\t\t/*\n\t\t * The total number of butes still alive is the throughput minus the number of\n\t\t * bytes either removed from the container or never added in the first place.\n\t\t */\n\t\tlong size = getThroughput() - removed - producerThreadPool.getBytesNeverAdded();\n\n\t\treturn (size > 0) ? size : 0;\n\t}", "int getUsedPoints();", "int getUsedPoints();", "int getUsedPoints();", "final int getEstimatedSurplusTaskCount() {\n // The halving approximates weighting idle vs non-idle threads\n return (sp - base) - (pool.getIdleThreadCount() >>> 1);\n }", "int getTotalLeased();", "protected int getTimesOptimized()\r\n {\r\n return timesOptimized;\r\n }", "final int getAndClearStealCount() {\n int sc = stealCount;\n stealCount = 0;\n return sc;\n }", "private double loadFactor()\n {\n double bucketsLength = buckets.length;\n return currentSize / bucketsLength;\n }", "public int memUsage(){\n\t\tint usage = 36;\n\t\tusage += 12 * point.length;\n\t\tusage += 4 * glComannd.length;\n\t\tusage += 12 * glVertex.length;\n\t\tusage += 24 * state.length;\n\t\treturn usage;\n\t}", "int getSuperEffectiveChargeAttacksUsed();", "int getTotalFree();", "@Override\n\t\tpublic long usage() {\n\t\t\t\n\t\t\treturn super.usage();\n\t\t}", "private static void calculateTotalHitsRequired()\n {\n totalHitsRequired = 0;\n \n // add all the ship lengths together to get\n // the total number of hits required\n for (int length : SHIP_LENGTHS)\n {\n totalHitsRequired += length;\n }\n }", "public double trueCount() {\n\t\t\t\n\t\t\treturn (double)total_count/((double)size/52);\n\t\t}", "@Override\n\tint use() {\n\t\treturn (int)(primaryStat*1.2);\n\t}", "public static int size_sampleCnt() {\n return (32 / 8);\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public long getBlockCount ( ) {\r\n\t\treturn 436;\r\n\t}", "private static int getSize(double loadFactor){\n return (primeSize((int) (3739/loadFactor))); // 3739 is the number of entries from the lexicon list\n }", "public static int size_cost() {\n return (16 / 8);\n }", "float getMainUtteranceDynamicGain();", "public synchronized float getLoadFactor() {\n return (float)entries / (float)slots;\n }", "public Long getUsed() {\r\n return used;\r\n }", "public int totalWorth() {\n\t\tint val = 0;\n\t\tfor (Card c : cards) {\n\t\t\tval += c.value();\n\t\t}\n\t\treturn val;\n\t}", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "int getBlocksAmount();", "public abstract BigInteger getUseed();", "@Override\r\n\tpublic final void calculateSpawnAmount() {\r\n\t\tthis.spawnsRequired = 0;\r\n\t\tfor (final Genome genome : this.members) {\r\n\t\t\tthis.spawnsRequired += genome.getAmountToSpawn();\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic int getUses() {\n\t\treturn heldObj.getUses();\n\t}", "public void setSteak(double countNo) {\n steak = countNo;\r\n }", "public int getStat() {\n return statUse.getNumerator();\n }", "public int getOccupancy() {\r\n return teamRed.getSize() + teamBlue.getSize();\r\n }", "@Override\r\n\tpublic int costOfShooting() {\r\n\t\treturn 50;\r\n\t}", "public int getSoftHits(){\n\t\treturn softhit;\n\t}", "long getFeaturesUsed();", "public float getSpawningChance()\n {\n return 0.1F;\n }", "boolean isBeingUsed() {\n return usageCount > 0;\n }", "protected int numGenes() {\n\t\treturn genes.size();\n\t}", "public int getRemainingUses() {\n return remainingUses;\n }", "private int getTotalShareValue(Player player){\n return player.getShares().get(0) * game.apple.getSharePrice() + player.getShares().get(1) * game.bp.getSharePrice() +\n player.getShares().get(2) * game.cisco.getSharePrice() + player.getShares().get(3) * game.dell.getSharePrice() +\n player.getShares().get(4) * game.ericsson.getSharePrice();\n }", "private int getNumberOfBoxesOfAllShips() {\r\n int count = 30;\r\n return count;\r\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 int numberOfTires() {\n int tires = 4;\n return tires;\n }", "public int numberSeatsUsed(FlightEntity flight, int type);", "@Override\n public double total() {\n return 2500;\n }", "public int hashesPerSecond() {\n int hashCount = 0;\n String simpleString = \"00000000\";\n long endTime = System.currentTimeMillis() + 1000;\n while (System.currentTimeMillis() < endTime) {\n MessageDigest md = null;\n try {\n md = MessageDigest.getInstance(\"SHA-256\");\n } catch (NoSuchAlgorithmException e) {\n System.out.println(\"message : \" + e);\n }\n byte[] messageDigest = md.digest(simpleString.getBytes());\n String hashedSimpleString = DatatypeConverter.printHexBinary(messageDigest);\n hashCount++;\n }\n return hashCount;\n }", "void calculateSpawnAmount();", "int getTotalBlockNum();", "public float getUsedLimit() {\n return usedLimit;\n }", "public int getCollected() {\n return macguffinsCollected;\n }", "public static int size_receivets() {\n return (32 / 8);\n }", "public Long used() {\n return this.used;\n }", "private static int getSimSlotCount(Context context) {\n int simCount = SimInfoManager.getAllSimCount(context);\n Logger.d(TAG, \"getSimSlotCount() simCount is \" + simCount);\n return simCount;\n }", "private int getPoolSize() {\n\t\tint numberOfTasks = SpectralDescriptionType.values().length;\n\t\tint procs = Runtime.getRuntime().availableProcessors();\n\t\treturn numberOfTasks < procs ? numberOfTasks : procs > 1 ? procs - 1\n\t\t\t\t: 1;\n\t}", "@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}", "private void incrementUsageCount() {\n usageCount++;\n }", "public int sleepersCount(int height)\r\n {\n int fullSleepers = (int) ((height)/20);\r\n //Calculating exceeding sleeper.\r\n int extraSleeper = ((height)/20);\r\n //Deciding whether an extra full sleeper is needed or not.\r\n if (fullSleepers != 0)\r\n {\r\n if (extraSleeper % fullSleepers > 0.5)\r\n {\r\n fullSleepers++;\r\n }\r\n }\r\n return fullSleepers;\r\n \r\n }", "public long getBlockCount() {\n \t\tint coords[] = getCoords();\n \t\treturn \n \t\t(coords[3]-coords[0]+1)*\n \t\t(coords[4]-coords[1]+1)*\n \t\t(coords[5]-coords[2]+1);\n \t}", "public float loadsPerGame() {\n if (totalGames() == 0) return 0;\n float res = (float) loads / (float) (totalGames());\n return Math.round(res * 10) / 10f;\n }", "int getCount(Side player) {\n return player == BLACK ? _countBlack : _countWhite;\n }", "int getDataScansCount();", "int getStatsCount();", "int getStatsCount();", "int getStatsCount();", "private int heavyAttack() {\n return attack(6, 2);\n }", "public int size() {\n return used;\n }", "public int loadBalance() {\r\n\t\tserverCount++;\r\n\t\tserverCount = (serverCount) % (servers.size());\r\n\t\treturn serverCount;\r\n\t}", "public int getWorkCredGain();", "public int calculateSize( int numSamples )\n {\n return numSamples * 2;\n }", "public void timePasses() {\r\n\t\tfor(Meter a: appMeters){\r\n\t\t\t//incremnts electric use each timepPasses as the fridge is always on\r\n\t\t\tif (a.getType().equals(\"Electric\")){\r\n\t\t\t\ta.incrementConsumed();\r\n\t\t}\r\n\t}\r\n\t}", "private double getLoadFactor() {\r\n\t\t\treturn numberOfElements / (double) currentCapacity;\r\n\t\t}", "private int countGrasses()//issues...see comment below in countTrees()\n {\n int grasses = 0;\n Field field = getField();\n Iterator<Location> it;\n List<Object> plantList = new List<>();\n while(it.hasNext()) {\n plantList.add(field.getObjectAt(currant));\n if(plant instanceof Grass) {\n grasses++;\n }\n }\n return grasses;\n }", "public static int consumedPower(){\n int consumedPower = 0;\n for (ElectricalHomeDevice device : allTrunedOnDevices){\n consumedPower += device.getDevicePower();\n }\n return consumedPower;\n }", "public static double doThroughPut() {\n double totalProgramRunTime = endProgramTime - startProgramTime;\n return (count / totalProgramRunTime) * 100000.0;\n\n }", "public int getAvailableCount();", "int getSnInfoCount();", "int getSnInfoCount();", "int getSnInfoCount();", "int getBlockNumsCount();", "int getBlockNumsCount();", "public static int totalSupply() {\n return totalSupplyGet();\n }", "@Override\n public long ramBytesUsed() {\n return BASE_RAM_BYTES_USED;\n }", "long memoryUsed();", "public int countUsedPowers (Power p) {\n return countPowers(p, 2);\n }", "public int getWorth() { return 1; }", "public int getMpUsed() {\n if (getLastStep() != null) {\n return getLastStep().getMpUsed();\n }\n return 0;\n }", "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 }", "public int getQuality()\n {\n int sleeplatencyScore = getSleepLatencyScore();\n int sleepDurationScore = getSleepDurationScore();\n int sleepEfficiencyScore= getSleepEfficiencyScore();\n int sleepDeepsleepRatioScore = getDeepSleepRatioScore();\n int nightTimeWakeScore = getNightTimeAwakeningScore();\n int sum = sleeplatencyScore + sleepDurationScore+ sleepEfficiencyScore+ sleepDeepsleepRatioScore+ nightTimeWakeScore;\n sum = sum *4;\n return sum;\n }", "VariableAmount getSpikesPerChunk();" ]
[ "0.6507727", "0.64979964", "0.6464753", "0.6396167", "0.630648", "0.6286188", "0.6278039", "0.627685", "0.627685", "0.627685", "0.621002", "0.620436", "0.6190114", "0.61860156", "0.6153555", "0.60994565", "0.6098309", "0.6053126", "0.6042069", "0.601738", "0.6016247", "0.5986469", "0.58936816", "0.5885129", "0.5885129", "0.5885129", "0.58808714", "0.587538", "0.5873192", "0.586178", "0.58515483", "0.5851437", "0.584504", "0.5822535", "0.5822535", "0.5822535", "0.58190453", "0.580801", "0.5807081", "0.57918984", "0.5782041", "0.57802325", "0.57707024", "0.5750034", "0.574777", "0.57402015", "0.57377416", "0.57353306", "0.5734598", "0.5727775", "0.57264286", "0.5726145", "0.57228875", "0.5722522", "0.5710829", "0.57104415", "0.5708941", "0.5703643", "0.5700041", "0.569935", "0.5695401", "0.56935656", "0.56816936", "0.56717104", "0.5657045", "0.5654045", "0.56520116", "0.5648551", "0.56407535", "0.5640607", "0.56401265", "0.5638751", "0.56367034", "0.56367034", "0.56367034", "0.56351733", "0.56271875", "0.5615978", "0.5611087", "0.5609878", "0.5607524", "0.56058276", "0.56032753", "0.5596231", "0.5580183", "0.557706", "0.55766255", "0.55766255", "0.55766255", "0.5576011", "0.5576011", "0.5573314", "0.55715406", "0.5568253", "0.55677307", "0.55656683", "0.5553513", "0.55526185", "0.55451673", "0.55437106" ]
0.7186182
0
Called to ensure the item can be charged with steam devices
boolean canCharge(ItemStack me);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canAttackWithItem() {\n/* 253 */ return false;\n/* */ }", "public boolean canAttackWithItem() {\n/* 215 */ return false;\n/* */ }", "boolean canCarry(Item specifiedItem);", "public boolean isAllowed(Player owner, Item item) {\r\n if (item.getValue() > 50000) {\r\n owner.getActionSender().sendMessage(\"This item is too valuable to trust to this familiar.\");\r\n return false;\r\n }\r\n if (!item.getDefinition().isTradeable()) {\r\n owner.getActionSender().sendMessage(\"You can't trade this item, not even to your familiar.\");\r\n return false;\r\n }\r\n if (!owner.getFamiliarManager().getFamiliar().getDefinition().getName().toLowerCase().contains(\"abyssal\")) {\r\n if (item.getId() == 1436 || item.getId() == 7936 || !item.getDefinition().getConfiguration(ItemConfiguration.BANKABLE, true)) {\r\n owner.getActionSender().sendMessage(\"You can't store \" + item.getName().toLowerCase() + \" in this familiar.\");\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "@Override\n protected boolean preUseCheck(Event event, ItemStack item) {\n return event instanceof EntityShootBowEvent && new Random().nextDouble()<level/20 && ((EntityShootBowEvent)event).getEntity().hasPermission(\"rayken.unsafe\");\n }", "boolean canBuy( final Item item )\n {\n return !ship.contains( item ) && item.getPrice() <= credits;\n }", "public boolean canCarry(Item item) {\n\t\tif (rocketWeight + item.getWeight() <= maxWeight) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public void checkItem() {\n Entity t = BombermanGame.checkCollisionItem(this.rectangle);\n if (t instanceof SpeedItem) {\n speed ++;\n ((SpeedItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof FlameItem) {\n flame = true;\n ((FlameItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof BombItem) {\n max_bomb ++;\n ((BombItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof Portal) {\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n }", "public abstract boolean canAddItem(Player player, Item item, int slot);", "public boolean buy( final Item item )\n {\n if( canBuy( item ) )\n {\n Gdx.app.log( Tyrian.LOG, \"Buying item: \" + item );\n ship.install( item );\n credits -= item.getPrice();\n Gdx.app.log( Tyrian.LOG, \"Credits available: \" + credits );\n return true;\n }\n else\n {\n Gdx.app.log( Tyrian.LOG, \"No credits to buy item: \" + item );\n return false;\n }\n }", "@Test\n\tpublic void testUseValidItem() {\n\t\tLightGrenade lightGrenade = new LightGrenade();\n\t\tSquare square = new Square();\n\t\t\n\t\tPlayer player = new Player(square, 0);\n\t\tplayer.addItem(lightGrenade);\n\t\t\n\t\tplayer.useItem(lightGrenade);\n\t\tassertFalse(player.hasItem(lightGrenade));\n\t}", "public boolean canReceiveItem(Player character) {\n boolean canPick = true;\n Item item = character.items.get(character.getItemOwned2().getName());\n double totalWeight = items.getTotalWeight() + item.getWeight();\n if(totalWeight > maxWeight) {\n canPick = false;\n }\n return canPick; \n }", "private void buyItem(ShopItem item) {\n int gold = world.getCharacter().getGold().get();\n if (world.isSurvivalMode() && item.getName().equals(\"Potion\")){\n this.potionNum = 0;\n System.out.println(\"This shop has 0 Potion left.\");\n }\n if (world.isBerserkerMode() && \n (item.getName().equals(\"Helmet\")\n || item.getName().equals(\"Shield\")\n || item.getName().equals(\"Armour\"))){\n this.defenseNum = 0;\n System.out.println(\"This shop has 0 defensive item left.\");\n }\n if (item.getPrice() > gold) {\n System.out.println(\"You don't have enough money.\");\n }\n loadItem(item.getName());\n world.getCharacter().setGold(gold - item.getPrice());\n System.out.println(\"You have bought Item : \" + item.getName() + \".\");\n }", "@Override\n public boolean use(CanTakeItem o){\n return false; \n }", "public abstract boolean attack(KillableItem i);", "@Override\n protected boolean preUseCheck(Event event, ItemStack item) {\n return event instanceof EntityShootBowEvent;\n }", "public void carry(Item item)\n {\n\n // Check if item to be added doesn't go over carry limit.\n if (!((getPerson(PLAYER).getWeight() + item.getWeight()) > getPerson(PLAYER).getCarryLimit())){\n getPerson(PLAYER).getInventory().getItems().add(item); \n\n removeRoomItem(item);\n System.out.println();\n System.out.println(item.getName() + \" has been added to your bag.\");\n System.out.println(\"You are carrying \" + getPerson(PLAYER).getWeight()+ \"kg.\");\n }\n else {\n System.out.println(\"Your bag is too heavy to add more items.\");\n }\n\n }", "private void doItemVerification() {\n\t\tif (actor != null && !actor.attributes.getInventory().contains(Items.FISHING_ROD)) {\r\n\t\t\tactor.say(\"fishing.norod\", getAssigningPlayer());\r\n\t\t\treset();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tactor.setHeldItem(actor.attributes.getInventory()\r\n\t\t\t\t.getStackInSlot(actor.attributes.getInventory().getFirstSlotContainingItem(Items.FISHING_ROD))\r\n\t\t\t\t.getItem());\r\n\t}", "private boolean checkCost(int owner, ItemType item) {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "private final void maintain(){\n\t\tif(host.getStrength()>MAINTENANCE_COST){\n\t\t\thost.expend(MAINTENANCE_COST);\n\t\t}\n\t\telse{\n\t\t\tkill();\n\t\t}\n\t}", "protected boolean isCanCheckDurability(Action action, Material heldItemType) {\n boolean canRun = false;\n if ((heldItemType.toString().contains(\"_HOE\")\n || heldItemType.toString().contains(\"_SPADE\"))\n && action == Action.RIGHT_CLICK_BLOCK) {\n canRun = true;\n } else if ((heldItemType.toString().contains(\"_AXE\")\n //Pickaxe\n || heldItemType.toString().contains(\"_PICKAXE\")\n\n //Hoe\n || heldItemType.toString().contains(\"_HOE\")\n\n //Spade\n || heldItemType.toString().contains(\"_SPADE\")\n\n //Sword\n || heldItemType.toString().contains(\"_SWORD\")) && (action == Action.LEFT_CLICK_BLOCK)) {\n canRun = true;\n }\n return canRun;\n }", "@Test\n\tvoid cannotPurchase() {\n\t\ttestCrew.setMoney(0);\n\t\titemList.get(0).purchase(testCrew);\n\t\tassertEquals(testCrew.getMoney(), 0);\n\t\tassertTrue(testCrew.getMedicalItems().isEmpty());\n\t}", "public boolean bust() {\n if (dealerHand.isBust()) {\n dealerHand = new Deck();\n return true;\n } else {\n return false;\n }\n }", "private void buy() {\n if (asset >= S_I.getPirce()) {\n Item item = S_I.buy();\n asset -= item.getPrice();\n S_I.setAsset(asset);\n } else {\n System.out.println(\"cannot afford\");\n }\n }", "public void buy(Item item) {\n // remove money from wallet\n try { \n wallet.removeMoney(item.getPrice());\n // remove item from room\n currentRoom.removeItem(item);\n // add item to inventory\n addToInventory(item);\n } catch (IllegalArgumentException e) {\n System.err.println(\"You don't have enough money to purchase \" + item.getDescription());\n }\n\n\n }", "public void getAttackedByDarknessMagicBook(IEquipableItem item){item.strongAttackTo(this.getOwner());}", "@Override\r\n\tprotected boolean canDropLoot() {\r\n\t\treturn false;\r\n\t}", "public Boolean canAddItem(ItemStack item, Player player){\n\t\tint freeSpace = 0;\n\t\tfor(ItemStack i : player.getInventory() ){\n\t\t\tif(i == null){\n\t\t\t\tfreeSpace += item.getType().getMaxStackSize();\n\t\t\t} else if (i.getType() == item.getType() ){\n\t\t\t\tfreeSpace += (i.getType().getMaxStackSize() - i.getAmount());\n\t\t\t}\n\t\t}\n\t\tdebugOut(\"Item has: \"+item.getAmount()+\" and freeSpace is: \"+freeSpace);\n\t\tif(item.getAmount() > freeSpace){\n\t\t\tdebugOut(\"There is not enough freeSpace in the inventory\");\n\t\t\treturn false;\n\t\t}else{\n\t\t\tdebugOut(\"There is enough freeSpace in the inventory\");\n\t\t\treturn true;\n\t\t}\n\t}", "public void makeAvailable() {\n\t\tavailable = true;\n\t}", "protected static boolean canAccomodateItemDrop(Block block) {\n return block.isPassable() || Util.isNotFullBlock(block.getType());\n }", "public void buyDevCard() throws ClientException{\n\n\t\t\tresources.setOre(resources.getOre() -1 );\n\t\t\tresources.setWheat(resources.getWheat() -1 );\n\t\t\tresources.setSheep(resources.getSheep() -1 );\n\n\t}", "public abstract boolean captchalogue(SylladexItem item);", "@Override\n\tpublic boolean canPassengerSteer() {\n\t\treturn false;\n\t}", "public boolean takeItem(Items item)\n { \n boolean itemTaken = false;\n if(!haveItem(item) && currentRoom.haveItem(item)){ //if item in room not inventory\n if(!item.canBeHeld()){ // if item can't be held\n System.out.println (\"This item can not be picked up\");\n }else if(itemsHeld >= itemLimit) { //item can be held but not enough space\n System.out.println(\"Inventory is full. Drop something first\");\n }else{ //item can be held and there is space in inventory\n Inventory.put(item.getName(), item);\n //currentRoom.removeItem(item); //responsibility for this is in cmd_take\n itemsHeld ++; //inventory tracker +1\n itemTaken = true;\n }\n }\n return itemTaken;\n }", "private void tryEquipItem() {\n if (fakePlayer.get().getHeldItem(EnumHand.MAIN_HAND).isEmpty()) {\n ItemStack unbreakingPickaxe = new ItemStack(Items.DIAMOND_PICKAXE, 1);\n unbreakingPickaxe.addEnchantment(Enchantments.EFFICIENCY, 3);\n unbreakingPickaxe.setTagCompound(new NBTTagCompound());\n unbreakingPickaxe.getTagCompound().setBoolean(\"Unbreakable\", true);\n fakePlayer.get().setItemStackToSlot(EntityEquipmentSlot.MAINHAND, unbreakingPickaxe);\n }\n }", "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}", "protected final void hit() throws InsufficientCardsException {\n hand.add(deck.deal());\n update();\n }", "public void takeAvailable() {\n\t\tavailable = false;\n\t}", "@Override\r\n\tpublic boolean canTakeItems() {\n\t\treturn false;\r\n\t}", "public void useItem(L2PlayableInstance playable, L2ItemInstance item)\r\n\t{\r\n\t\tif (!(playable instanceof L2PcInstance))\r\n\t\t\treturn;\r\n\r\n\t\tL2PcInstance activeChar = (L2PcInstance) playable;\r\n\t\tL2Object target = activeChar.getTarget();\r\n\t\tif (!(target instanceof L2MonsterInstance))\r\n\t\t{\r\n\t\t\t// Send a System Message to the caster\r\n\t\t\tSystemMessage sm = new SystemMessage(SystemMessageId.INCORRECT_TARGET);\r\n\t\t\tactiveChar.sendPacket(sm);\r\n\r\n\t\t\t// Send a Server->Client packet ActionFailed to the L2PcInstance \r\n\t\t\tactiveChar.sendPacket(ActionFailed.STATIC_PACKET);\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// u can use soul crystal only when target hp goes below <50%\r\n\t\tif (((L2MonsterInstance) target).getStatus().getCurrentHp() > ((L2MonsterInstance) target).getMaxHp() / 2.0)\r\n\t\t{\r\n\t\t\tactiveChar.sendPacket(ActionFailed.STATIC_PACKET);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tint crystalId = item.getItemId();\r\n\r\n\t\t// Soul Crystal Casting section\r\n\t\tL2Skill skill = SkillTable.getInstance().getInfo(2096, 1);\r\n\t\tactiveChar.useMagic(skill, false, true);\r\n\t\t// End Soul Crystal Casting section\r\n\r\n\t\t// Continue execution later\r\n\t\tCrystalFinalizer cf = new CrystalFinalizer(activeChar, target, crystalId);\r\n\t\tThreadPoolManager.getInstance().scheduleEffect(cf, skill.getHitTime());\r\n\r\n\t}", "public abstract void isUsedBy(Player player);", "@Override\n\tpublic int buy(Weapon item) {\n\t\treturn 0;\n\t}", "public boolean checkCapacity(Item item) {\n\t\treturn this.currentCapacity() + item.getCapacity() <= this.maxCapacity;\n\t}", "public boolean hasBust() {\n\t\treturn this.hand.countValue().first() > 21;\n\t}", "@Override\r\n\tpublic void uniqueOnStartInteraction() {\n\t\tif (Main.clientPlayer.getNumWood() < cost) {\r\n\t\t\tMain.clientPlayer.stopInteraction();\r\n\t\t}\r\n\r\n\t}", "public void fireScourge() {\n\t\t// Has player waited cooldown before trying to fire again?\t\tCHANGED to 10000\n\t\tif (System.currentTimeMillis() - this.lastFired > Config.WEAPON_COOLDOWN_TIME * 10000) {\n\t\t\tSystem.out.println(player.getDisplayName() + \" is attempting to launch napalm\");\n\t\t\t// Can this airship drop scourge?\n\t\t\tif (this.properties.FIRES_SCOURGE) {\n\t\t\t\tBlock[] cannons = getCannons();\n\t\t\t\tint numfiredcannons = 0;\n\t\t\t\tfor (int i = 0; i < cannons.length; i++) {\n\t\t\t\t\tif (cannons[i] != null && cannons[i].getRelative(0, -1, 0).getType().equals(Material.AIR) && cannonHasTnt(cannons[i], Config.NUM_TNT_TO_DROP_NAPALM)) {\n\t\t\t\t\t\tboolean missingMaterial = false;\n\t\t\t\t\t\tfor (int id : Config.MATERIALS_NEEDED_FOR_SCOURGE) {\n\t\t\t\t\t\t\tif (!cannonHasItem(cannons[i], id, 1))\n\t\t\t\t\t\t\t\tmissingMaterial = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!missingMaterial && numfiredcannons < this.properties.MAX_NUMBER_OF_CANNONS) {\n\t\t\t\t\t\t\tnumfiredcannons++;\n\t\t\t\t\t\t\tlastFired = System.currentTimeMillis();\n\t\t\t\t\t\t\twithdrawTnt(cannons[i], Config.NUM_TNT_TO_DROP_SCOURGE);\n\t\t\t\t\t\t\tfor (int id : Config.MATERIALS_NEEDED_FOR_SCOURGE) {\n\t\t\t\t\t\t\t\twithdrawItem(cannons[i], id, 1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Fire some scourge TODO: maybe add sound effects for scourge dropping? :P\n\t\t\t\t\t\t\tnew Scourge(cannons[i]);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// More cannons on ship than allowed. Not all fired - can break out of loop now.\n\t\t\t\t\t\t\t//player.sendMessage(ChatColor.AQUA + \"Some purifiers did not fire. Max cannon limit is \" + ChatColor.GOLD + this.properties.MAX_NUMBER_OF_CANNONS);\n\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.AQUA + \"Some purifiers did not fire. item check = \" + ChatColor.GOLD + missingMaterial);\n\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.AQUA + \"numFiredCannons = \" + ChatColor.GOLD + numfiredcannons);\n\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} else\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + this.properties.SHIP_TYPE + \" CANNOT DROP NAPALM\");\n\t\t} else\n\t\t\tplayer.sendMessage(ChatColor.GOLD + \"COOLING DOWN FOR \" + ChatColor.AQUA + (int)(Math.round(6 - (System.currentTimeMillis() - this.lastFired) / 1000)) + ChatColor.GOLD + \" MORE SECONDS\");\n\t}", "@Override\n protected boolean preUseCheck(Event event, ItemStack item) {\n return event instanceof EntityDamageByEntityEvent;\n }", "public boolean isItemChargeable(Context ctx, boolean itemIsCharbeableWhileSuspended) throws HomeException\r\n {\n return EnumStateSupportHelper.get(ctx).isNotOneOfStates(getSub().getState().getIndex(), RechargeConstants.RECHARGE_SUBSCRIBER_STATES_SUSPENDED) \r\n || (itemIsCharbeableWhileSuspended && getCRMSpid(ctx).isApplyRecurringChargeForSuspendedSubscribers());\r\n }", "public void isBought(Player p){\n\t\towner = p;\n\t\tisOwned=true;\n\t}", "private void checkChargeTime() {\n\t\tif (elapsedTimeSeconds > chargeTimeP1) {\n\t\t\tplayerCharge.put(dolphinNodeOne, false);\n\t\t}\n\t}", "@Override\n public boolean CanArmor() {\n return false;\n }", "@Test\n public void CardRequirementError() {\n MSG_ACTION_ACTIVATE_LEADERCARD message = new MSG_ACTION_ACTIVATE_LEADERCARD(0);\n DevelopmentCard card1 = new DevelopmentCard(1, Color.GREEN, 0, null, null);\n p.getDevelopmentSlot().addCard(card1, 1);\n c.emptyQueue();\n assertFalse(am.activateLeaderCard(p, message));\n assertEquals(MessageType.MSG_ERROR, c.messages.get(0).getMessageType());\n assertEquals(1, c.messages.size());\n }", "boolean canCharge(ItemStack stack);", "public void use(Consume item)\r\n {\r\n int gain = item.getRating();\r\n health += gain;\r\n \r\n if (health > maxHealth)\r\n health = maxHealth;\r\n \r\n say(\"I gained \" + gain + \" health by using \" + item.getName() + \" and now have \" + health + \"/\" + maxHealth);\r\n \r\n items.remove(item);\r\n }", "public synchronized void spawnMe()\n\t{\n\t\t_itemInstance = ItemTable.getInstance().createItem(\"Combat\", _itemId, 1, null, null);\n\t\t_itemInstance.dropMe(null, _location.getX(), _location.getY(), _location.getZ());\n\t}", "public Boolean checkAvailability(Item item, Integer current) {\n \tif (item.getQuatity() + current > item.getAvailableQuatity()) {\r\n \t\tSystem.out.println(\"System is unable to add \"\r\n \t\t\t\t+ current + \" \" + item.getItemName() +\r\n \t\t\t\t\". System can only add \"\r\n \t\t\t\t+ item.getAvailableQuatity() + \" \" + item.getItemName() );\r\n \t\treturn false;\r\n \t}\r\n \telse return true;\r\n }", "@Test(expected = DontSellYourselfShortException.class)\n public void dontSellYourselfShort() {\n knownUsers.login(seller.userName(), seller.password());\n knownUsers.annointSeller(seller.userName());\n\n Auction testAuction = new Auction(seller, item, startingPrice, startTime, endTime);\n testAuction.onStart();\n\n Bid firstBid = new Bid(seller, startingPrice, startTime.plusMinutes(2));\n\n testAuction.submitBid(firstBid);\n }", "public abstract boolean canRemoveItem(Player player, Item item, int slot);", "public void testBidAcceptionNotification() {\n User owner = new User();\n Thing thing1 = new Thing(owner);\n\n User borrower = new User();\n\n Bid bid = null;\n try {\n bid = new Bid(thing1, borrower, 800);\n }catch(Exception e){\n fail();\n }\n try {\n thing1.placeBid(bid);\n } catch (ThingUnavailableException e) {\n fail();\n }\n\n //owner.acceptBid(thing1, bid);\n //assertTrue(borrower.notifiedOfAcceptedBid(bid));\n\n assertTrue(false);\n }", "@Override\n public void buyDevCard() throws ModelException {\n if (!GameModelFacade.instance().canBuyDevCard()) {\n throw new ModelException(\"Preconditions for action not met.\");\n }\n\n IPlayer curPlayer = GameModelFacade.instance().getLocalPlayer();\n try {\n String clientModel = m_theProxy.buyDevCard(curPlayer.getIndex());\n new ModelInitializer().initializeClientModel(clientModel, m_theProxy.getPlayerId());\n } catch (NetworkException e) {\n throw new ModelException(e);\n }\n }", "@Override\n public boolean isValid() {\n return (27 - Inventory.getAll().length <= Inventory.find(\"Soft clay\").length)\n || (Inventory.find(\"Soft clay\").length < 1 || Inventory\n .find(\"Astral rune\").length < 1)\n && !Banking.isBankScreenOpen()\n && GlassBlower.antiban.canInteractObject();\n }", "@Override\n public boolean canInteractWith(EntityPlayer player)\n {\n return teKeeper.isUsableByPlayer(player);\n }", "public void doLogicBuy() {\n\t\tif (!player.isHuman) {\n\t\t\tif (player.money > estimatedFee * 1.5) //\n\t\t\t{\n\t\t\t\tint free = (int) (player.money - estimatedFee * 1.5);\n\t\t\t\tCell c = board.getCells().get(player.position);\n\t\t\t\tif (c instanceof TradeableCell) {\n\t\t\t\t\tTradeableCell tc = (TradeableCell) c;\n\t\t\t\t\tif (tc.getOwner() == null && tc.getPrice() < free) {\n\t\t\t\t\t\ttc.buy(player);\n\t\t\t\t\t\tboard.addMessage(\"Just bought\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public boolean canDrop(){\n return this.collectedItems < STORAGE_AMOUNT && System.currentTimeMillis() - lastDrop >= delayInMillis;\n }", "void banDevice(Integer deviceId);", "public boolean buyCard(Supply s) {\r\n\t\tboolean wasBought;\r\n\t\tif(s.getQuantity() < 1 || contraband.contains(s.getTopCard())) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tCard c = s.getTopCard();\r\n\t\tbuying = true;\r\n\t\tbought.add(c);\r\n\t\tif(buys > 0 && treasure - c.getCost() >= 0 && c.canBeGained()\r\n\t\t\t\t&& (!c.costsPotion() || potion > 0)) {\r\n\t\t\ttreasure -= c.getCost();\r\n\t\t\tif(c.costsPotion()) potion--;\r\n\t\t\tbuys--;\r\n\t\t\ts.takeCard();\r\n\t\t\tdeck.gain(c);\r\n\t\t\tfor(int i = 0; i < s.getEmbargo(); i++) {\r\n\t\t\t\tbuying = false;\r\n\t\t\t\tdeck.gain(access.board.getCurse().takeCard());\r\n\t\t\t\tbuying = true;\r\n\t\t\t}\r\n\t\t\taccess.gamePhase = 2;\r\n\t\t\twasBought = true;\r\n\t\t\taccess.log(getPlayerName() + \" bought \" + c.getName());\r\n\t\t}\r\n\t\telse {\r\n\t\t\twasBought = false;\r\n\t\t\tbought.remove(bought.size() - 1);\r\n\t\t}\r\n\t\tif(buys < 1) {\r\n\t\t\taccess.gamePhase = 3;\r\n\t\t}\r\n\t\tbuying = false;\r\n\t\tnotifyObservers();\r\n\t\treturn wasBought;\r\n\t}", "public void playerUseItem(Player player, Item item) {\n\t\tif (item instanceof FloatingDevice) {\n\t\t\tplayer.setHasFloatingDevice(!player.getHasFloatingDevice());\n\t\t} else if (item instanceof Teleporter) {\n\t\t\tplayer.getTile().setGameObject(null);\n\t\t\tplayer.setLocation(0);\n\t\t\tTile t;\n\t\t\tif (!(player.getLocation().getTileAtPosition(new Position(5, 5)).getGameObject() instanceof Player)) {\n\t\t\t\tplayer.setTile(player.getLocation().getTileAtPosition(new Position(5, 5)));\n\t\t\t\tplayer.getTile().setGameObject(player);\n\t\t\t} else if (!(player.getLocation().getTileAtPosition(new Position(4, 5))\n\t\t\t\t\t.getGameObject() instanceof Player)) {\n\t\t\t\tplayer.setTile(player.getLocation().getTileAtPosition(new Position(4, 5)));\n\t\t\t\tplayer.getTile().setGameObject(player);\n\t\t\t} else if (!(player.getLocation().getTileAtPosition(new Position(4, 4))\n\t\t\t\t\t.getGameObject() instanceof Player)) {\n\t\t\t\tplayer.setTile(player.getLocation().getTileAtPosition(new Position(4, 4)));\n\t\t\t\tplayer.getTile().setGameObject(player);\n\t\t\t} else if (!(player.getLocation().getTileAtPosition(new Position(5, 4))\n\t\t\t\t\t.getGameObject() instanceof Player)) {\n\t\t\t\tplayer.setTile(player.getLocation().getTileAtPosition(new Position(5, 4)));\n\t\t\t\tplayer.getTile().setGameObject(player);\n\t\t\t}\n\t\t\tplayer.getInventory().remove(item);\n\n\t\t} else if (item instanceof FishingRod) {\n\t\t\tif (player.getLocation().getTileInDirection(player.getTile().getPos(),\n\t\t\t\t\tplayer.getFacing()) instanceof WaterTile) {\n\t\t\t\tif (player.inventoryIsFull()) {\n\t\t\t\t\tserverController.broadcastPlayerMessage(\"You can't fish now, you have no room for the spoils\",\n\t\t\t\t\t\t\tplayer);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tint randy = (int) (Math.random() * 5);\n\t\t\t\tif (randy == 0) {\n\t\t\t\t\tserverController.broadcastPlayerMessage(\n\t\t\t\t\t\t\t\"You caught a fish against all odds, sadly your rod was lost in the process\", player);\n\t\t\t\t\tplayer.getInventory().remove(item);\n\t\t\t\t\tplayer.pickUpItem(new Fish(\"Fish\"));\n\t\t\t\t} else {\n\t\t\t\t\tserverController.broadcastPlayerMessage(\n\t\t\t\t\t\t\t\"A nibble felt, however sometimes we just aren't that lucky\", player);\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tserverController.broadcastPlayerMessage(\n\t\t\t\t\t\t\"Harambe is disgusted with you incompetence, you can't fish on land fool!\", player);\n\t\t\t}\n\t\t}\n\t}", "public void sendToWard(){\r\n\t\t//here is some code that we do not have access to\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}", "@Override\r\n\tpublic boolean canAttackEntity(Entity entity) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean canAttackEntity(Entity entity) {\n\t\treturn false;\r\n\t}", "public void buy() throws CannotAffordException {\r\n\t\tGame game = Game.getInstance();\r\n\t\tgame.decreaseBudget(price);\r\n\t\tgame.getInventory().add(id);\r\n\t}", "private boolean isSiwtchAccountAllowed(Context context) {\n int cdmaCardNum = 0;\n int gsmCardNum = 0;\n List<PhoneAccountHandle> accountHandles =\n PhoneAccountUtils.getSubscriptionPhoneAccounts(context);\n for (PhoneAccountHandle handle : accountHandles) {\n int subId = Integer.parseInt(handle.getId());\n if (SubscriptionManager.isValidSubscriptionId(subId)) {\n int slotId = SubscriptionManager.getSlotId(subId);\n if (SvlteUiccUtils.getInstance().getSimType(slotId) == SvlteUiccUtils.SIM_TYPE_CDMA\n && TelephonyManagerEx.getDefault().isInHomeNetwork(subId)) {\n cdmaCardNum ++;\n } else if (SvlteUiccUtils.getInstance().getSimType(slotId) ==\n SvlteUiccUtils.SIM_TYPE_GSM) {\n gsmCardNum ++;\n }\n }\n }\n int mainCapabilitySlotId = getMainCapabilitySlotId();\n boolean isGsmCardHasMainCapability = SvlteUiccUtils.getInstance().getSimType(\n mainCapabilitySlotId) == SvlteUiccUtils.SIM_TYPE_GSM;\n if (cdmaCardNum > 0 && gsmCardNum > 0) {\n if (isGsmCardHasMainCapability && isAirplaneModeOn(context)) {\n showAlertToast(context, R.string.can_not_switch_account_temporarily);\n return false;\n }\n\n ITelephonyEx iTelEx = ITelephonyEx.Stub.asInterface(\n ServiceManager.getService(Context.TELEPHONY_SERVICE_EX));\n try {\n if (iTelEx != null && iTelEx.isCapabilitySwitching()) {\n showAlertToast(context, R.string.can_not_switch_account_temporarily);\n return false;\n }\n } catch (RemoteException e) {\n e.printStackTrace();\n Log.d(TAG, \"fail to judge isCapabilitySwitching, RemoteException\");\n }\n\n if (TelecomManager.from(context).isInCall()) {\n showAlertToast(context, R.string.can_not_switch_account_during_call);\n return false;\n }\n\n return true;\n } else {\n return true;\n }\n }", "private boolean canGivePlayer(ItemStack item,EntityPlayer entityplayer){\n ItemStack itemstack3 = entityplayer.inventory.getItemStack();\n if(itemstack3 == null){\n \treturn true;\n }\n else if(NoppesUtilPlayer.compareItems(itemstack3, item, false, false)){\n int k1 = item.stackSize;\n if(k1 > 0 && k1 + itemstack3.stackSize <= itemstack3.getMaxStackSize())\n {\n return true;\n }\n }\n return false;\n }", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n BluetoothDevice device = mScannedDeviceList.get(arg2);\n Log.d(TAG, \"[onItemClick] device : \" + device.getName());\n Message msg = mHandler.obtainMessage();\n if (isNeedConnect(device)) {\n Log.d(TAG, \"isNeedConnect(device) is true \");\n msg.what = CONNECT_DEVICE_FLAG;\n msg.obj = device;\n mHandler.sendMessage(msg);\n mHandler.removeMessages(SCANNING_DEVICE_OVER_DELAY_FLAG);\n } else {\n Log.d(TAG, \"showDeleteDeviceDialog() \");\n showDeleteDeviceDialog();\n }\n }", "@Override\n public void hitBlock(Block block) {\n if (doorTypes.contains(block.getType())) {\n if (doorMap.containsValue(block)) {\n \tHPS.PM.warn(p, \"That door is already locked.\");\n \treturn;\n }\n \n lockDoor(block);\n \n Block otherDoorBlock = getDoubleDoor(block);\n if (otherDoorBlock != null) {\n \tlockDoor(otherDoorBlock);\n }\n } else {\n HPS.PM.warn(p, \"You may only use this spell on doors.\");\n }\n }", "private boolean canBuy(BuildingType x) {\r\n return gameDetails.buildingsStats.get(x).price <= myself.energy;\r\n }", "@EventHandler\n public void onHopperCraft(CraftItemEvent event) {\n ItemStack item = event.getCurrentItem();\n Material material = item.getType();\n if(material.equals(XMaterial.HOPPER.parseMaterial())) {\n if(event.getWhoClicked() instanceof Player) {\n Player player = (Player) event.getWhoClicked();\n if(!player.hasPermission(plugin.getPermission())) {\n event.setCancelled(true);\n player.sendMessage(HopperBlockerPlugin.colourize(\"&cYou cannot craft this.\"));\n player.closeInventory();\n }\n }\n }\n }", "private boolean blowBlockUp(final Location at, String eventTypeRep) {\n if (at == null) {\n return false;\n }\n Block block = at.getBlock();\n if (block == null) {\n return false;\n }\n if (block.getType() == Material.AIR) {\n return false;\n }\n\n if (!MaterialManager.getInstance().contains(block.getType().name())) {\n return false;\n }\n\n if (eventTypeRep.equals(\"CraftTNTPrimed\") && !MaterialManager.getInstance().getTntEnabled(block.getType().name())) {\n return false;\n }\n if (eventTypeRep.equals(\"CraftSnowball\") && !MaterialManager.getInstance().getCannonsEnabled(block.getType().name())) {\n return false;\n }\n if (eventTypeRep.equals(\"CraftCreeper\") && !MaterialManager.getInstance().getCreepersEnabled(block.getType().name())) {\n return false;\n }\n if (eventTypeRep.equals(\"CraftWither\") && !MaterialManager.getInstance().getWithersEnabled(block.getType().name())) {\n return false;\n }\n if (eventTypeRep.equals(\"CraftMinecartTNT\") && !MaterialManager.getInstance().getTntMinecartsEnabled(block.getType().name())) {\n return false;\n }\n if ((eventTypeRep.equals(\"CraftFireball\") || eventTypeRep.equals(\"CraftGhast\")) && !MaterialManager.getInstance().getGhastsEnabled(block.getType().name())) {\n return false;\n }\n\n if (MaterialManager.getInstance().getDurabilityEnabled(block.getType().name()) && MaterialManager.getInstance().getDurability(block.getType().name()) > 1) {\n TimerState state = checkDurabilityActive(block.getLocation());\n if (ConfigManager.getInstance().getEffectsEnabled()) {\n final double random = Math.random();\n if (random <= ConfigManager.getInstance().getEffectsChance()) {\n block.getWorld().playEffect(at, Effect.MOBSPAWNER_FLAMES, 0);\n }\n }\n if (state == TimerState.RUN || state == TimerState.INACTIVE) {\n int currentDurability = getMaterialDurability(block);\n currentDurability++;\n if (checkIfMax(currentDurability, block.getType().name())) {\n // counter has reached max durability, remove and drop an item\n dropBlockAndResetTime(at);\n } else {\n // counter has not reached max durability damage yet\n if (!MaterialManager.getInstance().getDurabilityResetTimerEnabled(block.getType().name())) {\n addBlock(block, currentDurability);\n } else {\n startNewTimer(block, currentDurability, state);\n }\n }\n } else {\n if (!MaterialManager.getInstance().getDurabilityResetTimerEnabled(block.getType().name())) {\n addBlock(block, 1);\n } else {\n startNewTimer(block, 1, state);\n }\n if (checkIfMax(1, block.getType().name())) {\n dropBlockAndResetTime(at);\n }\n }\n } else {\n destroyBlockAndDropItem(at);\n }\n return true;\n }", "public EntangledChaliceItem(Block block) {\n super(block);\n }", "public void sendUseItem(Creature creature, String modelname, byte rarity, int colorRed, int colorGreen, int colorBlue, int secondaryColorRed, int secondaryColorGreen, int secondaryColorBlue) {\n/* 5774 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 5778 */ if (vz.getWatcher().getWurmId() == creature.getWurmId()) {\n/* */ \n/* 5780 */ vz.sendUseItem(null, modelname, rarity, colorRed, colorGreen, colorBlue, secondaryColorRed, secondaryColorGreen, secondaryColorBlue);\n/* */ \n/* */ \n/* */ }\n/* 5784 */ else if (creature.isVisibleTo(vz.getWatcher())) {\n/* 5785 */ vz.sendUseItem(creature, modelname, rarity, colorRed, colorGreen, colorBlue, secondaryColorRed, secondaryColorGreen, secondaryColorBlue);\n/* */ }\n/* */ \n/* 5788 */ } catch (Exception e) {\n/* */ \n/* 5790 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }", "public boolean activate() { //if true continue to execute\n\n if (Inventory.getCount(PowerFletch.LOG) >= 1) {\n System.out.println(\"cutting activated\");\n\n return true;\n }\n\n return false;\n }", "@Test\n\tpublic void testReadyNoDevices() {\n\t\tModel contact = addContactSensor(true, false);\n\t\tstageDisarmed(addressesOf(contact));\n\t\tremoveModel(contact);\n\t\t\n\t\talarm.bind(context);\n\t\tassertInactive();\n\t}", "public void sendWearItem(long creatureId, int itemId, byte bodyPart, int colorRed, int colorGreen, int colorBlue, int secondaryColorRed, int secondaryColorGreen, int secondaryColorBlue, byte material, byte rarity) {\n/* 5706 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 5710 */ if (vz.getWatcher().getWurmId() == creatureId)\n/* */ {\n/* 5712 */ vz.sendWearItem(-1L, itemId, bodyPart, colorRed, colorGreen, colorBlue, secondaryColorRed, secondaryColorGreen, secondaryColorBlue, material, rarity);\n/* */ }\n/* */ else\n/* */ {\n/* 5716 */ vz.sendWearItem(creatureId, itemId, bodyPart, colorRed, colorGreen, colorBlue, secondaryColorRed, secondaryColorGreen, secondaryColorBlue, material, rarity);\n/* */ }\n/* */ \n/* 5719 */ } catch (Exception e) {\n/* */ \n/* 5721 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }", "public void buyItem() {\n List<Gnome> cart = user.getCart();\n String message = \"\";\n List<Gnome> bought = shopFacade.buyGnomes(cart);\n if (!bought.isEmpty()) {\n message = bought.size() + \" items bought\";\n } else {\n message = \"Could not buy any items\";\n }\n userFacade.assignBought(user, bought);\n user.getCart().removeAll(bought);\n cart.removeAll(bought);\n userFacade.setCartToUser(user.getUsername(), cart);\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Gnomes\", message);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n }", "public boolean itemIsAllowed(int itemId) {\n\t\tswitch (itemId) {\n\t\tcase 15272: // Rocktail\n\t\tcase 7060: // Tuna potato\n\t\tcase 6685:\n\t\tcase 6687:\n\t\tcase 6689:\n\t\tcase 6691: // Saradomin brew\n\t\tcase 3024:\n\t\tcase 3026:\n\t\tcase 3028:\n\t\tcase 3030: // Super restore\n\t\tcase 391: // Manta Ray\n\t\tcase 385: // Shark\n\t\tcase 229: // Vial\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean canAddToItem(@Nonnull ItemStack stack, @Nonnull IDarkSteelItem item) {\n return (item.isForSlot(EntityEquipmentSlot.FEET) || item.isForSlot(EntityEquipmentSlot.LEGS) || item.isForSlot(EntityEquipmentSlot.CHEST)\n || item.isForSlot(EntityEquipmentSlot.HEAD)) && EnergyUpgradeManager.itemHasAnyPowerUpgrade(stack) && getUpgradeVariantLevel(stack) == variant - 1;\n }", "@Override\n public boolean canCharge() {\n return super.canCharge() && !(game.getOptions().booleanOption(\"no_clan_physical\") && isClan());\n }", "public boolean canProvideEquipment(EquipmentType equipmentType) {\n for (AbstractGoods goods : equipmentType.getGoodsRequired()) {\n int available = getGoodsCount(goods.getType());\n \n int breedingNumber = goods.getType().getBreedingNumber();\n if (breedingNumber != GoodsType.INFINITY) {\n available -= breedingNumber;\n }\n \n if (available < goods.getAmount()) return false;\n }\n return true;\n }", "public static final void canGrow(Creature host, Organ g){\n\t\tif(host.getStrength()>g.CREATION_COST){\n\t\t\thost.expend(g.CREATION_COST);\n\t\t\tgrown = true;\n\t\t}\n\t}", "public void testBidDeclineNotification(){\n User owner = new User();\n Thing thing1 = new Thing(owner);\n\n User borrower = new User();\n\n Bid bid = null;\n try {\n bid = new Bid(thing1, borrower, 800);\n }catch(Exception e){\n fail();\n }\n try {\n thing1.placeBid(bid);\n } catch (ThingUnavailableException e) {\n fail();\n }\n\n // owner.declineBid(thing1, bid);\n //assertTrue(borrower.notifiedOfDeclinedBid(bid));\n\n assertTrue(false);\n }", "@Test\n public void ResourceRequirement() {\n MSG_ACTION_ACTIVATE_LEADERCARD message = new MSG_ACTION_ACTIVATE_LEADERCARD(0);\n p.getStrongbox().addResource(Resource.SHIELD, 4);\n p.getWarehouseDepot().add(Resource.COIN);\n p.getWarehouseDepot().add(Resource.SHIELD);\n c.emptyQueue();\n\n assertTrue(am.activateLeaderCard(p, message));\n\n assertTrue(l1.isEnabled());\n\n assertEquals(1, c.messages.stream().filter(x -> x.getMessageType() == MessageType.MSG_UPD_Player).count());\n assertEquals(1, c.messages.stream().filter(x -> x.getMessageType() == MessageType.MSG_NOTIFICATION).count());\n assertEquals(2, c.messages.size());\n }", "public boolean canBuy(@NotNull AmmoAmountUncapped cost){\n return cost.canBeBought(this);\n }", "@Override\n\tpublic boolean isUseableByPlayer(EntityPlayer player) {\n\t\treturn true;\n\t}", "boolean CanBuyDevCard();", "public boolean canGrabWeapon(CardWeapon cw){\n List<Color> priceTmp;\n if(cw.getPrice().size()>1) {\n priceTmp = new ArrayList<>(cw.getPrice().subList(1, cw.getPrice().size()));\n return controlPayment(priceTmp);\n }\n else\n return true;\n }", "public boolean isBusted() {\n\t\tif (hand.checkHandValue() > 21) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Test\n public void buyCardWithNoResources() throws Exception {\n when(devCardFacade.canBuyDevCard(noDevCardsPlayer)).thenReturn(false);\n dcc.buyCard();\n verify(devCardFacade, never()).buyDevCard(noDevCardsPlayer);\n }", "public void dropBlockAsItemWithChance(World p_149690_1_, int p_149690_2_, int p_149690_3_, int p_149690_4_, int p_149690_5_, float p_149690_6_, int p_149690_7_) {}", "@Override\n public void doPickupItem(final GameObject object) {\n if (!object.isItem()) {\n _log.warn(\"trying to pickup wrong target.\" + getTarget());\n return;\n }\n\n sendActionFailed();\n stopMove();\n\n final ItemInstance item = (ItemInstance) object;\n\n synchronized (item) {\n if (!item.isVisible()) {\n return;\n }\n\n // Check if me not owner of item and, if in party, not in owner party and nonowner pickup delay still active\n if (!ItemFunctions.checkIfCanPickup(this, item)) {\n final SystemMessage sm;\n if (item.getItemId() == ItemTemplate.ITEM_ID_ADENA) {\n sm = new SystemMessage(SystemMsg.YOU_HAVE_FAILED_TO_PICK_UP_S1_ADENA);\n sm.addNumber(item.getCount());\n } else {\n sm = new SystemMessage(SystemMsg.YOU_HAVE_FAILED_TO_PICK_UP_S1);\n sm.addItemName(item.getItemId());\n }\n sendPacket(sm);\n return;\n }\n\n // Herbs\n if (item.isHerb()) {\n final SkillEntry[] skills = item.getTemplate().getAttachedSkills();\n if (skills.length > 0) {\n for (final SkillEntry skill : skills) {\n altUseSkill(skill, this);\n if (getServitor() != null && getServitor().isSummon() && !getServitor().isDead()) {\n getServitor().altUseSkill(skill, getServitor());\n }\n }\n }\n\n broadcastPacket(new GetItem(item, getObjectId()));\n item.deleteMe();\n return;\n }\n\n final FlagItemAttachment attachment = item.getAttachment() instanceof FlagItemAttachment ? (FlagItemAttachment) item.getAttachment() : null;\n\n if (!isInParty() || attachment != null) {\n if (pickupItem(item, Log.Pickup)) {\n broadcastPacket(new GetItem(item, getObjectId()));\n broadcastPickUpMsg(item);\n item.pickupMe();\n }\n } else {\n getParty().distributeItem(this, item, null);\n }\n }\n }" ]
[ "0.6333274", "0.6224967", "0.59586716", "0.5919528", "0.5913312", "0.5892764", "0.57919925", "0.57574", "0.5680991", "0.5657028", "0.5587415", "0.5535892", "0.5526991", "0.54690576", "0.54636705", "0.54602265", "0.54559815", "0.5451399", "0.5405903", "0.53830314", "0.53827375", "0.53775126", "0.5373966", "0.535778", "0.53512657", "0.534127", "0.53360605", "0.53250426", "0.5314372", "0.5272764", "0.5261141", "0.5254226", "0.52499664", "0.5249391", "0.52185744", "0.5215064", "0.5211433", "0.5210953", "0.52054495", "0.51933634", "0.51870936", "0.517984", "0.5176788", "0.51728046", "0.5148323", "0.5144861", "0.5140418", "0.5132965", "0.5129338", "0.5124436", "0.51043004", "0.5094747", "0.5091419", "0.5082293", "0.50815636", "0.5079683", "0.50755054", "0.50740033", "0.5073516", "0.5072086", "0.507056", "0.50630903", "0.5054874", "0.50518", "0.5048841", "0.50476265", "0.50441843", "0.5037315", "0.5016793", "0.5014601", "0.5014601", "0.501375", "0.5009524", "0.50092775", "0.50089675", "0.50043523", "0.5002182", "0.50018644", "0.5001753", "0.49978295", "0.49977905", "0.49890828", "0.4987208", "0.49869087", "0.49807826", "0.4979465", "0.4976288", "0.49752373", "0.49693266", "0.49686357", "0.49623424", "0.4961845", "0.49617925", "0.49616885", "0.49615517", "0.49593845", "0.495262", "0.49526054", "0.49500123", "0.49486637" ]
0.559673
10
Adds an amount of steam to the item.
boolean addSteam(ItemStack me, int amount, EntityPlayer player);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addAmount(int amountOfShares) {\n\t\tthis.amountOfShares += amountOfShares;\n\t}", "void addToAmount(double amount) {\n this.currentAmount += amount;\n }", "public void addAmountBought(int amountBought) {\n this.amountBought += amountBought;\n }", "public void addTreasure(int amt) {\r\n\t\tif(minusOneCoin && amt > 0) {\r\n\t\t\tamt -= 1;\r\n\t\t\tminusOneCoin = false;\r\n\t\t}\r\n\t\ttreasure += amt;\r\n\t\tnotifyObservers();\r\n\t}", "public void add(int amount) {\n this.amount += amount;\n if (this.amount == 0) {\n this.timestamp -= LIFESPAN;\n } else {\n this.timestamp = System.currentTimeMillis();\n }\n }", "public void increaseQuantity(int amount) {\n this.currentQuantity += amount;\n }", "public void addHealth(int amt) {\n currentHealth = currentHealth + amt;\n }", "public void addItem(final Item item) {\n\t\tnumberOfItems++;\n\t}", "public void collect(int amount){\n this.collectedItems += amount;\n }", "public void addItemQty(int itemQty) {\n this.itemQty += itemQty;\n }", "public void addItem(Item item) {\r\n for (Item i : inventoryItems) {\r\n if (i.getId() == item.getId()) {\r\n i.setCount(i.getCount() + item.getCount());\r\n return;\r\n }\r\n }\r\n inventoryItems.add(item);\r\n }", "public void addQuantity(int quantity) {\n\t\tif (quantity < 0) {\n\t\t\tthrow new IllegalArgumentException(\"null barcode\");\n\t\t}\n\t\ttotalNumOfItems += quantity;\n\t}", "public void addGold(int goldToAdd)\n\t{\n\t\tgold += goldToAdd;\n\t}", "public void addItem(SoldItem item) {\n\n items.add(item);\n log.debug(\"Added \" + item.getName() + \" quantity of \" + item.getQuantity());\n\n }", "public void addToScore(int ammount){\n\t\tscore+=ammount;\n\t}", "public void carry(Item item)\n {\n\n // Check if item to be added doesn't go over carry limit.\n if (!((getPerson(PLAYER).getWeight() + item.getWeight()) > getPerson(PLAYER).getCarryLimit())){\n getPerson(PLAYER).getInventory().getItems().add(item); \n\n removeRoomItem(item);\n System.out.println();\n System.out.println(item.getName() + \" has been added to your bag.\");\n System.out.println(\"You are carrying \" + getPerson(PLAYER).getWeight()+ \"kg.\");\n }\n else {\n System.out.println(\"Your bag is too heavy to add more items.\");\n }\n\n }", "public void addJackpot(int amount){\n this.amount += amount;\n }", "public void addToInventory() {\r\n\t\tdo {\r\n\t\t\tint quantity = 0;\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tWasher washer = store.searchWashers(brand + model);\r\n\t\t\tif (washer == null) {\r\n\t\t\t\tSystem.out.println(\"No such washer exists.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tquantity = getInteger(\"Enter quantity to add: \");\r\n\t\t\tboolean result = store.addWasherToInventory(brand, model, quantity);\r\n\t\t\tif(result) {\r\n\t\t\t\tSystem.out.println(\"Added \" + quantity + \" of \" + washer);\r\n\t\t\t}else {\r\n\t\t\t\tSystem.out.println(\"Washer could not be added to inventory.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} while (yesOrNo(\"Add more washers to the inventory?\"));\r\n\t}", "public void addToCoins(int more) {\r\n\t\tint coins = more;\r\n\t\tif (goods.containsKey(Resource.COIN)) {\r\n\t\t\tcoins = goods.get(Resource.COIN);\r\n\t\t\tcoins += more;\r\n\t\t}\r\n\t\tgoods.put(Resource.COIN, coins);\r\n\t}", "public void increaseStarsBy(final int amount) {\n stars += amount;\n }", "public void add(T item) {\n\t\tcounts.put(item, counts.getOrDefault(item, 0) + 1);\n\t}", "public void addItem(Item item){\r\n items.add(item);\r\n total = items.getTotal();\r\n }", "public void increase(int quantity) {\r\n\r\n\t\tif (getAmount() == Integer.MAX_VALUE)\r\n\r\n\t\t\treturn;\r\n\r\n\t\tsetAmount(getAmount() + quantity);\r\n\r\n\t}", "public void increaseFruitQuantity(double amount) {\r\n\t\tif (amount > 0) {\r\n\t\t\tthis.fruitQuantity += amount;\r\n\t\t}\r\n\t}", "public void addToSale(ItemDTO item, int quantity){\n this.saleInfo.addItem(item, quantity);\n }", "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "public void AddCredits(int credits)\n {\n this.credits += credits;\n }", "@Override\n\tpublic void addShares(int quantity){\n\t\tBigDecimal valueToAdd = getCurrentPrice().multiply(new BigDecimal(quantity));\n\t\t\n\t\tif(getCurrentPrice() == null){\n\t\t\tthrow new IllegalStateException(\n\t\t\t\t\t\"Stock details must be set before \"\n\t\t\t\t\t+ \"adding/subtracting shares\");\n\t\t}\n\t\t\n\t\tsynchronized(this){\n\t\t\tquantityOfShares += quantity;\n\t\t\tprinciple = principle.add(valueToAdd);\n\t\t}\n\t\t\n\t\tsetTotalValueAndNet();\n\t}", "public void increaseVictoriesBy(final int amount) {\n victories += amount;\n }", "public double addToSpent(double addAmount){\r\n\t\tspent +=addAmount;\r\n\t\treturn spent;\r\n\t}", "public void incrementAmountBought() {\n amountBought++;\n }", "public void carry(Item item) {\n\t\trocketWeight += item.getWeight();\n\t}", "public void addDamage(int amount) {\n\t\tdamage = amount;\n\t}", "public void addItems(int numberOfItems, double pricePerItem) {\n\n\t\ttotalAmountItems = numberOfItems + totalAmountItems;\n\n\t\ttotalCostCart = (numberOfItems * pricePerItem) + totalCostCart;\n\n\t\tavgPricePerItem = totalCostCart / totalAmountItems;\n\n\t}", "public int addItem(Item i);", "public void stock(int number) {\r\n quantity += number;\r\n }", "public void addIngredient(Ingredient ingredient) {\n stock.put(ingredient, inventoryMax);\n }", "public void addFuel(int quantity) throws Exception;", "public void add(int Item) {\n\t\t\tif (nowLength < MAXSIZE) {\n\t\t\t\tray[nowLength] = Item;\n\t\t\t\tnowLength++;\n\t\t\t}\n\t}", "private void addShares(){\n int sharesLeft = 10;\n for (int i = 0; i < 5; i++) {\n int shareAmount = (int)Math.round(Math.random()*sharesLeft);\n sharesLeft -= shareAmount;\n shares.add(i,shareAmount);\n if(i==4 && sharesLeft>0){\n int index = (int)Math.round(Math.random()*4);\n shares.set(index, shares.get(index)+sharesLeft);\n }\n }\n }", "public void addAmt(int i, float amt) {\n typeAmts[i] += amt;\n }", "void increaseStarsBy(final int amount);", "public void addGold(int g){\n this.gold += g;\n }", "void addItem (Item toAdd){\n\t\t\tthis.items.add(toAdd);}", "public void add(Double addedAmount) {\n }", "public void addTokens(int amount) {\n \tnumTokens += amount;\n }", "public Integer addGold(Integer amount) {\n\t\tgold += amount;\n\t\treturn getGold();\n\t}", "public void add(String shoeType, int amount){\r\n\t\t\tShoeStorageInfo shoe=new ShoeStorageInfo(shoeType,amount,0);\r\n\t\t\tstoreMap.putIfAbsent(shoeType, shoe);\r\n\t\t\tShoeStorageInfo shoe1 = storeMap.get(shoeType);\r\n\t\t\tshoe1.addShoe(amount);\r\n\t\t}", "public void addItem(Item newItem) {\n for (Item i : inventory) {\n if (newItem.getClass().equals(i.getClass())) {\n i.setQuantity(i.getQuantity() + newItem.getQuantity());\n return;\n }\n }\n inventory.add(newItem);\n }", "public final void give(final Player player) {\n\t\tplayer.getInventory().addItem(this.getItem());\n\t}", "public void purchase(double shares, double pricePerShare)\n {\n this.totalShares += shares;\n super.addCost(shares * pricePerShare);\n }", "public void addMoney(final int newMoney) {\n\t\taddBehaviour(\n new OneShotBehaviour() {\n public void action() {\n budget += newMoney;\n System.out.println(newMoney + \" is added to wallet\");\n }\n }\n ); \n refreshGUI();\n }", "@Override\r\n\tpublic void AddItem(int n) {\n\t\tSystem.out.println(\"ADDED:\" + n);\r\n\r\n\t}", "public void increaseStock(int ID, int amt) {\r\n\t\tinventory.put(ID, (inventory.get(ID)+amt));\r\n\t}", "public void addIngredientQuantity(Ingredient ingredient, Integer addedValue){\n\t\tbeverageInventoryMap.put(ingredient, getInventoryForAIngredient(ingredient) + addedValue);\n\t}", "public void addToInventory(IWeapon weapon){\n if (weaponsInventory.size() < 12) {\n this.weaponsInventory.add(weapon);\n lenInventory += 1;\n }\n }", "Items(double cost){\n\tthis.cost=cost;\n\titemId++;\n\tcurrentID=itemId;\n}", "void add(Item item);", "private void addPlayerSheild() {\n this.playerShield += 1;\n }", "void add(int value) {\n size++;\n\n int[] newItems = new int[size];\n\n System.arraycopy(items, 0, newItems, 0, items.length);\n\n newItems[newItems.length - 1] = value;\n\n items = newItems;\n }", "public void addItem(Item i) {\n this.items.add(i);\n }", "public void addPotion() {\n setPotion(getPotion() + 1);\n }", "public void increment() {\n items++;\n }", "public void addFood(int quantity) {\n if (quantity > 0) {\n this.food += quantity;\n System.out.printf(\"\\u001B[34mINFO:\\u001B[0m %d of food added.\\n\", quantity);\n } else {\n System.out.println(\"\\u001B[34mINFO:\\u001B[0m There are no food to add.\");\n }\n }", "public void increaseMeatQuantity(double amount) {\r\n\t\tif (amount > 0) {\r\n\t\t\tthis.meatQuantity += amount;\r\n\t\t}\r\n\t}", "public void add(int value) {\n m_value += value;\n }", "public void addItem(Item toAdd) {\n\t\tthis.items.add(toAdd);\n\t}", "public void increaseUnits(int amount) {\n\t\tcreateUnit(amount);\n\t\tunits += amount;\n\t}", "public void addAmmo (double amount) {\n\t\t\n\t\tcurrentAmmo = Math.min(maxAmmo, currentAmmo + amount);\n\t}", "public void addToUse(int card) {\r\n\t\tthis.toUse.add(card);\r\n\t}", "public void addWeight(){\n\t\tweight++;\n\t}", "public void addItemToInventory(Item ... items){\n this.inventory.addItems(items);\n }", "public int addItem(String name, int value) {\n\t\tfor (int i = 0; i < inventoryslot.length; i++) {\n\t\t\tif (inventoryslot[i].getItemname()==name) {\n\t\t\t\ttempstate=inventoryslot[i].changevalue(value);\n\t\t\t\tif(tempstate>0)return tempstate;/**Item over stacksize */\n\t\t\t\telse if(tempstate<0)return tempstate;/** Item empty*/\n\t\t\t\treturn tempstate;/** item added inventory */\n\t\t\t}\t\t\t\t\n\t\t}\n\t\treturn -1;/** item does not exists in inventory */\n\t}", "public void addItem(Item itemToAdd){\n\t\tif(!isFull()){\n\t\t\tint index = findFreeSlot();\n\t\t\tinventoryItems[index] = itemToAdd;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Inventory full.\");\n\t\t}\n\t\t\n\t}", "public void addItem( Item anItem) {\n currentItems.add(anItem);\n }", "private static void addItem( String name, Integer number ) {\n\t\tItem item = container.addItem( itemId );\n\t\tsetValues( name, number, item );\n\t}", "public void addMoney(int amount) {\n\t\tmoney += amount;\n\t}", "public void addFuel(double amount) {\n if (fuelAmount + amount > type.fuelCapacity) {\n fuelAmount = type.fuelCapacity;\n } else {\n fuelAmount += amount;\n }\n }", "@Override\n public void addItem(ItemType item) {\n if (curArrayIndex > items.length - 1) {\n System.out.println(item.getDetails() + \" - This bin is full. Item cannot be added!\");\n }\n else if (item.getWeight() + curWeight <= maxWeight) {\n curWeight += item.getWeight();\n items[curArrayIndex++] = item;\n }\n else {\n System.out.println(item.getDetails() + \" - Overweighted. This item cannot be added!\");\n }\n if (item.isFragile()) {\n setLabel(\"Fragile - Handle with Care\");\n }\n\n }", "public void addItem(Item item) {\r\n\t\tif (items.containsKey(item)) {\r\n\t\t\titem.increaseCount();\r\n\t\t\titems.put(item, item.getCount());\r\n\t\t} else {\r\n\t\t\titems.put(item, item.getCount());\r\n\t\t}\r\n\t}", "public int increase(int amount)\n {\n this.setCount(this.getCount() + amount);\n return this.getCount();\n }", "public void addItem(int indexItemset, Item item) {\n itemsets.get(indexItemset).addItem(item);\n numberOfItems++;\n }", "public void add(int add) {\r\n value += add;\r\n }", "public void add(Weapon weapon){\n\t\tsetCount(getCount() + weapon.getCount());\n\t\tweapon.expire();\n\t}", "public void incrMine() {\r\n\t\tthis.mineCount++;\r\n\t}", "public void addStoreStock(String name, int amount);", "public Inventory<T> add(final T item) {\n if (item == null) {\n return this;\n }\n final HashMap<T, Integer> freshMap = new HashMap<>(items);\n freshMap.put(item, items.get(item) + 1);\n return new Inventory<T>(enums, Collections.unmodifiableMap(freshMap));\n }", "public void addItem(LineItem item)\r\n {\r\n\t ChangeEvent event = new ChangeEvent(this);\r\n\t if(items.contains(item))\r\n\t {\r\n\t\t \r\n\t\t counter = 0;\r\n\t\t items.add(item);\r\n\t\t //tem.addQuantity();\r\n\t\t //tem.getQuantity();\r\n\t\t for(int i = 0; i < items.size(); i++)\r\n\t\t {\r\n\t\t\t if(items.get(i).equals(item))\r\n\t\t\t {\r\n\t\t\t counter++;\r\n\t\t\t }\r\n\t\t }\r\n\t\t for (ChangeListener listener : listeners)\r\n\t\t listener.stateChanged(event);\r\n\t\t System.out.print(\"\\r Quantity of \" + item.toString() + \": \"+ counter);\r\n\t\t \r\n\t }\r\n\t else\r\n\t {\r\n\t\t counter = 1;\r\n\t// item.addQuantity();\r\n\t// item.getQuantity();\r\n\t\t items.add(item);\r\n\t// System.out.println(item.getQuantity());\r\n\t\t for (ChangeListener listener : listeners)\r\n\t\t listener.stateChanged(event);\r\n\t \t\r\n\t \tSystem.out.print(\"\\n Quantity of \" + item.toString() + \": \"+ counter);\r\n\t \r\n\t\t \r\n\t }\r\n\t\t\r\n \r\n }", "public void addItem(Item item)\n\t{\n\t\tif(inventory.size()<=9)\n\t\t\tinventory.add(item);\n\t\telse\n\t\t\tSystem.out.println(\"Inventory is full.\");\n\t}", "public void incrementAmount() { amount++; }", "public void addBasketItem(BasketItem newItem) {\n \n // If the sku already exists in the basket then update the quantity\n for(BasketItem item : basketItems) {\n if(item.getVariant().getSku().equals(newItem.getVariant().getSku())) {\n item.setQuantity(newItem.getQuantity() + item.getQuantity());\n return;\n }\n }\n \n // If the sku wasn't found above then add it to the basket\n basketItems.add(newItem);\n }", "@Override\r\n public boolean add(Item item){\r\n if(item.stackable&&contains(item)){\r\n stream().filter(i -> i.name.endsWith(item.name)).forEach(i -> {\r\n i.quantity += item.quantity;\r\n });\r\n }else if(capacity<=size()) return false;\r\n else super.add(item);\r\n return true;\r\n }", "public void addBuy() {\r\n\t\tbuys++;\r\n\t\tnotifyObservers();\r\n\t}", "public void addItem(Product p, int qty){\n //store info as an InventoryItem and add to items array\n this.items.add(new InventoryItem(p, qty));\n }", "protected void restockItem(int x){\r\n this.level += x;\r\n }", "public void addFuel(double fuelToAdd){\n\n fuelRemaining = fuelRemaining + fuelToAdd;\n }", "public int addItem(Itemset i);", "public void addToX(double amount) {\n x += amount;\n }", "@NonNull\n public BasketItemBuilder incrementQuantity() {\n this.quantity++;\n return this;\n }", "public void addItem(String name, String quantity)\n\t{\n\t\tingredients.add(new Ingredient(quantity, name));\n\t}" ]
[ "0.70369107", "0.65486753", "0.6499264", "0.64748836", "0.6444274", "0.64259815", "0.6425086", "0.6385286", "0.6340271", "0.6280064", "0.6206044", "0.61828923", "0.61765546", "0.61765474", "0.61557144", "0.61128837", "0.6098561", "0.6093705", "0.6091661", "0.6087714", "0.6085408", "0.6070956", "0.6046232", "0.60447973", "0.6037725", "0.6033391", "0.60281307", "0.60156715", "0.6012455", "0.5984548", "0.5974122", "0.596168", "0.5951415", "0.5945", "0.5916549", "0.59135526", "0.59120995", "0.5903167", "0.58981866", "0.5888904", "0.5879245", "0.58761406", "0.5871628", "0.58581495", "0.58556443", "0.5834987", "0.5813761", "0.58123404", "0.58071434", "0.5806234", "0.580051", "0.57920176", "0.5779854", "0.5777898", "0.5769032", "0.5766856", "0.57574385", "0.5748473", "0.5742582", "0.57346994", "0.5727127", "0.57231593", "0.5723092", "0.5718963", "0.5702942", "0.5702219", "0.5702162", "0.5701458", "0.56988657", "0.5695516", "0.56924003", "0.56901395", "0.56898487", "0.5683816", "0.56804836", "0.5679219", "0.5676194", "0.5666577", "0.56646717", "0.5663851", "0.56611794", "0.56584316", "0.5656444", "0.56404006", "0.563897", "0.56348383", "0.5627857", "0.5621373", "0.56207174", "0.5608497", "0.5607911", "0.55987805", "0.5593908", "0.55926096", "0.559073", "0.55875164", "0.55849004", "0.5579736", "0.55778253", "0.55766743" ]
0.7354683
0
update path with recent GPS coordinates...
private void readGPS() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public void updatePath(EventPacket<?> in) {\n if (!pathsEnabled) {\n return;\n }\n path.add(new PathPoint(location.x, location.y, in.getLastTimestamp(), numEvents - previousNumEvents));\n previousNumEvents = numEvents;\n if (path.size() > getPathLength()) {\n path.remove(path.get(0));\n }\n updateVelocity();\n }", "public void updateLocation();", "@Override\n public void updateLocation(Location location) {\n if (location != null ) {\n Timber.e(\"updated location %1$s %2$s\", location.getLatitude(), location.getLongitude());\n\n CameraPosition cameraPosition = new CameraPosition.Builder().target(\n new LatLng(location.getLatitude(), location.getLongitude())).zoom(20).build();\n\n googleMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));\n\n LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude());\n\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(latLng);\n points.add(latLng);\n Polyline route = googleMap.addPolyline(new PolylineOptions()\n .width(30)\n .color(R.color.colorMapLine)\n .geodesic(false)\n .zIndex(1000));\n route.setPoints(points);\n\n writeToFile(\"Lati: \" + location.getLatitude() + \" , Longi: \" + location.getLongitude(), context);\n\n Timber.e(\"Main Activity updated location %1$s %2$s\", location.getLatitude(), location.getLongitude());\n Toast.makeText(MainActivity.this, \"Lati: \" + location.getLatitude() + \" , Longi: \" + location.getLongitude(), Toast.LENGTH_LONG).show();\n }\n }", "public void updateYLoc();", "private void updateLocation(Location l){\n\n //Check if we are due an update (the difference between now and the last update must be more than the frequency of updates)\n long time = System.currentTimeMillis();\n l.setTime(time); //Use the time from the device TODO Do we need this step?\n long timeSinceUpdate = time - lastUpdate;\n\n\n //If an update is required\n if(timeSinceUpdate >= frequency) {\n\n //Update last update time\n lastUpdate = time;\n\n NetworkInfo netInfo = connectivityManager.getActiveNetworkInfo();\n //If connected to the internet then we can either initialize or upload our location\n if (netInfo != null && netInfo.isConnected()) {\n //If initialized upload the location\n if (initialized) {\n //Upload location the current location and tie up any loose ends\n uploadLocation(l);\n tieUpLooseEnds();\n }\n //If not initialized then initialize and add location to loose ends\n else {\n //Initialize\n init();\n //Add to loose ends\n looseEnds.add(l);\n }\n }\n //If not connected then add the location to our list of loose ends\n else {\n looseEnds.add(l);\n }\n }\n //If no update is due\n else{\n //No update - update time ago on the notification\n String updateTime = AbstractTrackerActivity.niceTime(timeSinceUpdate);\n notificationBuilder.setContentText(String.format(getString(R.string.notification_time_ago), updateTime));\n notificationManager.notify(AbstractTrackerActivity.NOTIFICATION_ID, notificationBuilder.build());\n }\n }", "public void updateLocation()\r\n {\r\n\t\timg.setUserCoordinator(latitude, longitude);\r\n\t\timg.invalidate();\r\n\t}", "org.openxmlformats.schemas.drawingml.x2006.main.CTPath2D addNewPath();", "public void SetPosition2Time(Path path,Packman pc, Fruit frt,double time)\n\t{\n\t\tdouble proportionTime=(time-path.GetTime0())/(path.GetDeltatime()) ;\n//\t\tif(time==path.GetDeltatime()) \n//\t\t{\n//\t\t\ttime=path.GetDeltatime();\n//\t\t}\n\t\tdouble dx=frt.GetPoint3Dlocation().x()-pc.GetPoint3Dlocation().x();//Math.abs(frt.GetPoint3Dlocation().x()-pc.GetPoint3Dlocation().x());\n\t\tdouble dy=frt.GetPoint3Dlocation().y()-pc.GetPoint3Dlocation().y();//Math.abs(frt.GetPoint3Dlocation().y()-pc.GetPoint3Dlocation().y());\n\t\tdouble x=pc.GetPoint3Dlocation().x()+(proportionTime* dx);\n\t\tdouble y=pc.GetPoint3Dlocation().y()+(proportionTime* dy);\n\t\t\n\t\t Point newPackman= new Point(MyMap.getPositionOnScreen(y, x));\n//\t\t if((Math.abs(dx)<1) && (Math.abs(dy)<1))\n//\t\t {\n//\t\t\t newPackman.x = frt.GetPointlocation().x; newPackman.y = frt.GetPointlocation().y;\n//\t\t }else\n\t\t// if(newPackman.x<1498)\n\t\t\t//{\n\t\t\t \tpc.SetPointLocation(new Point(newPackman.x,newPackman.y));\n\t\t //}\n\t\t // else\n\t\t // {\n\t\t\t//\tint xx=0;\n\t\t\t//\txx++;\n\t\t\t//}\n\t\t}", "public void updatePath() {\n\t\tString oldPath = this.path;\n\t\tif (materializePath()) {\n\t\t\tPageAlias.create(this, oldPath);\n\t\t\tupdateChildPaths();\n\t\t}\n\t}", "void update(Location location);", "public abstract void updateLocations();", "void updateStepCoordiantes(){\n if(xIncreasing) {\n lat = lat + STEP_LENGTH * yCompMotion * degToMRatio;\n displayLat = displayLat + STEP_LENGTH*yCompMotion*degToMRatio;\n }\n else{\n lat = lat - STEP_LENGTH * yCompMotion * degToMRatio;\n displayLat = displayLat - STEP_LENGTH*yCompMotion*degToMRatio;\n }\n if(yIncreasing) {\n lon = lon + STEP_LENGTH * xCompMotion * degToMRatio;\n dispalyLon= dispalyLon + STEP_LENGTH*xCompMotion*degToMRatio;\n }\n else{\n lon = lon - STEP_LENGTH * xCompMotion * degToMRatio;\n dispalyLon= dispalyLon - STEP_LENGTH*xCompMotion*degToMRatio;\n }\n }", "@Override\n public void onLocationChanged(Location location) {\n //update current lacation when the GPS changed\n c = new LatLng(location.getLatitude(), location.getLongitude());\n updateCameraBearing(map, location.getBearing());\n nearestPointIndex = findNearestPoint(c,points2);\n if(nearestPointIndex>0){\n ArrayList p3 = new ArrayList();\n for (int j = nearestPointIndex; j < points2.size(); j++) {\n LatLng point = (LatLng) points2.get(j);\n p3.add(point);\n }\n points2 = p3;\n DrawDots(listResult,points2);\n }\n }", "public final native void setPath(JsArray<LatLng> value) /*-{\n\t\tthis.setPath(value);\n\t}-*/;", "public void update(){\r\n\t\tList<Point> list = new ArrayList<Point>();\r\n\t\t\r\n\t\tlist.addAll(Arrays.asList(points));\r\n\t\t\r\n\t\tsetPoints(list);\r\n\t}", "void updatePathListings() {\n\t\tpathSelector.updatePathListings();\n\t}", "public void setPath(Position[] path) {\n\t\tif(path != null)\n\t\t\tthis.path = path;\n\t}", "public void updateXLoc();", "private synchronized void updatePathFollower() {\n TrajectoryStatus leftUpdate = pathFollower\n .getLeftVelocity(leftDrive.getPosition(), leftDrive.getSpeed(), -navX.getYaw());\n TrajectoryStatus rightUpdate = pathFollower\n .getRightVelocity(rightDrive.getPosition(), rightDrive.getSpeed(), -navX.getYaw());\n leftStatus = leftUpdate;\n rightStatus = rightUpdate;\n if (isEncodersConnected()) {\n setVelocitySetpoint(\n new DriveSignal(leftUpdate.getOutput(), rightUpdate.getOutput(), brakePath),\n leftUpdate.getArbFeed(), rightUpdate.getArbFeed());\n } else {\n leftDrive.set(ControlMode.PercentOutput,\n ((1.0 / MkMath.RPMToInchesPerSec(DRIVE.RIGHT_RPM_MAX)) * leftUpdate.getOutput()), false,\n leftUpdate.getArbFeed());\n rightDrive.set(ControlMode.PercentOutput,\n ((1.0 / MkMath.RPMToInchesPerSec(DRIVE.LEFT_RPM_MAX)) * rightUpdate.getOutput()), false,\n rightUpdate.getArbFeed());\n }\n }", "public void replacePath(Queue<GamePoint> newPath) {\n\t\tmyPath = newPath;\n\t}", "private void updatePolyLine(LatLng latLng) {\n List<LatLng> points = polyLine.getPoints();\n points.add(latLng);\n polyLine.setPoints(points);\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 }", "private void updatePolyLine(LatLng latLng) {\n\t\tList<LatLng> points = polyLine.getPoints();\n\t\tpoints.add(latLng);\n\t\tpolyLine.setPoints(points);\n\t}", "public void closepath() \n {\n\tLine line = new Line(_currentx, _currenty, _startx, _starty);\n\t_currentPath.add(line);\n\t_currentx = _startx;\n\t_currenty = _starty;\n\t_closedPath = true;\n }", "private void setPath(){\r\n // get the reversed path\r\n ArrayList<Grid> reversedPath = new ArrayList<>();\r\n int index = _endIndex;\r\n reversedPath.add(_map.get_grid(index));\r\n while(index != _startIndex){\r\n index = _map.get_grid(index).get_parent();\r\n reversedPath.add(_map.get_grid(index));\r\n }\r\n\r\n // get the final path in the correct order\r\n int length = reversedPath.size();\r\n for(int i=length-1;i>=0;i--){\r\n _path.add(reversedPath.get(i));\r\n }\r\n }", "private void triggerPathUpdate() {\n\t\tPathwayPathSelectionEvent pathEvent = new PathwayPathSelectionEvent();\n\n\t\tif (selectedPath != null) {\n\t\t\tif (pathSegments.size() > 0)\n\t\t\t\tpathSegments.set(pathSegments.size() - 1, new PathSegment(selectedPath));\n\t\t\telse\n\t\t\t\tpathSegments.add(new PathSegment(selectedPath));\n\t\t}\n\t\tpathEvent.setPath(pathSegments);\n\t\tpathEvent.setSender(this);\n\t\tpathEvent.setEventSpace(pathwayPathEventSpace);\n\t\teventPublisher.triggerEvent(pathEvent);\n\t}", "private void update_location() throws Exception {\r\n\t\tif (children.size() == 1) {\r\n\t\t\tCLocation bloc = children.get(0).get_location();\r\n\t\t\tthis.location = bloc.get_source().get_location(bloc.get_bias(), bloc.get_length());\r\n\t\t} else if (children.size() > 1) {\r\n\t\t\tCLocation eloc = children.get(children.size() - 1).get_location();\r\n\t\t\tint beg = this.location.get_bias(), end = eloc.get_bias() + eloc.get_length();\r\n\t\t\tthis.location.set_location(beg, end - beg);\r\n\t\t}\r\n\t}", "public void updateLoc()\n {\n driverLoc = new ParseGeoPoint(driverLocCord.latitude, driverLocCord.longitude);\n ParseUser.getCurrentUser().put(\"Location\", driverLoc);\n ParseUser.getCurrentUser().saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if(e==null){\n Toast.makeText(getApplicationContext(), \"Location Updated\", Toast.LENGTH_SHORT).show();\n }\n else{\n\n Toast.makeText(getApplicationContext(), \"Error in Location Update\", Toast.LENGTH_SHORT).show();\n e.printStackTrace();\n }\n }\n });\n\n\n populate();\n\n }", "private void updateLocationToServer() {\n\n if (Utility.isConnectingToInternet(getActivity())) {\n\n if (mGpsTracker.canGetLocation()) {\n\n if (Utility.ischeckvalidLocation(mGpsTracker)) {\n\n Animation fade1 = AnimationUtils.loadAnimation(getActivity(), R.anim.flip);\n btnRefreshLocation.startAnimation(fade1);\n Map<String, String> params = new HashMap<String, String>();\n if (!AppConstants.isGestLogin(getActivity())) {\n params.put(\"iduser\", SharedPref.getInstance().getStringVlue(getActivity(), userId));\n } else {\n params.put(\"iduser\", \"0\");\n }\n\n params.put(\"latitude\", \"\" + mGpsTracker.getLatitude());\n params.put(\"longitude\", \"\" + mGpsTracker.getLongitude());\n RequestHandler.getInstance().stringRequestVolley(getActivity(), AppConstants.getBaseUrl(SharedPref.getInstance().getBooleanValue(getActivity(), isStaging)) + updatelocation, params, this, 5);\n fade1.cancel();\n } else {\n mGpsTracker.showInvalidLocationAlert();\n }\n } else {\n showSettingsAlert(5);\n }\n } else {\n Utility.showInternetError(getActivity());\n }\n\n }", "public void setHistoryEntry(long time)\r\n\t{\r\n\t\tif (updatedLat && updatedLng)\r\n\t\t{\r\n\t\t\tAddressLocation al = new AddressLocation();\r\n\t\t\tal.latitude = latitude.doubleValue();\r\n\t\t\tal.longitude = longitude.doubleValue();\r\n\t\t\tal.time = time;\r\n\t\t\tdataStorage.setAddressLocation(al);\r\n\t\t}\r\n\t\t\t\r\n\t}", "public void updateTravelledAndVisited() {\n Storage storage = Main.getStorage();\n routeStatsCalculator.updateLeastTravelledRoute(storage.getHistory());\n routeStatsCalculator.updateMostTravelledRoute(storage.getHistory());\n airportStatsCalculator.updateMostVisitedSrcAirports(storage.getHistorySrcAirports());\n airportStatsCalculator.updateLeastVisitedSrcAirports(storage.getHistorySrcAirports());\n airportStatsCalculator.updateMostVisitedDestAirports(storage.getHistoryDestAirports());\n airportStatsCalculator.updateLeastVisitedDestAirports(storage.getHistoryDestAirports());\n }", "public void addPathPointToHistory(double[] pathPoint){\r\n //Check for null condition\r\n if(pathPoint == null)\r\n return;\r\n \r\n //Makes sure that there are no duplicate points\r\n if(pathPointHistory.size() != 0){\r\n double xLast = pathPointHistory.get(pathPointHistory.size() - 1)[0];\r\n double yLast = pathPointHistory.get(pathPointHistory.size() - 1)[1];\r\n if(xLast == pathPoint[0] && yLast == pathPoint[1])\r\n return;\r\n }\r\n \r\n //Adds to the path array\r\n if(pathPointHistory.size() == PATH_SIZE){\r\n ArrayList<double[]> temp = new ArrayList();\r\n for(int i = 1; i < pathPointHistory.size(); i++){\r\n temp.add(pathPointHistory.get(i));\r\n }\r\n temp.add(pathPoint);\r\n pathPointHistory = temp;\r\n }else{\r\n pathPointHistory.add(pathPoint);\r\n }\r\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 updatePathAndFile(String path, String file){\r\n\t\tthis.path = path;\r\n\t\tthis.file = file;\r\n\t}", "public void update() {\n\t\tfinal StarSystem oldLocation = getPlayer().getLocation();\n\t\tfinal StarSystem newLocation = getChart().getSelected();\n\t\tgetPlayer().setLocation(newLocation);\n\t\tgetPlayer().setFuel(-oldLocation.distanceToStarSystem(newLocation));\n\t\tgetChart().setSelected(null);\n\t\tgetChart().repaint();\n\t\tplanetLbl.setText(\"Current Location: \" + player.getLocation().getName()\n\t\t\t\t+ \"....Tech Level: \" + player.getLocation().getTechLevel());\n\n\t}", "private void updateGeo(Double latitude, Double longitude) {\n latitudeValue = latitude;\n longitudeValue = longitude;\n }", "public void onLocationChanged(Location argLocation) {\n\t GeoPoint myGeoPoint = new GeoPoint(\r\n\t (int)(argLocation.getLatitude()*1000000),\r\n\t (int)(argLocation.getLongitude()*1000000));\r\n\t /*\r\n\t * it will show a message on \r\n\t * location change\r\n\t Toast.makeText(getBaseContext(),\r\n\t \"New location latitude [\" +argLocation.getLatitude() +\r\n\t \"] longitude [\" + argLocation.getLongitude()+\"]\",\r\n\t Toast.LENGTH_SHORT).show();\r\n\t */\r\n\r\n\t mapController.animateTo(myGeoPoint);\r\n\r\n\t }", "public void makePath() {\n\t\tQueue<GamePoint> newPath = new LinkedList<GamePoint>();\n\t\ttarget.setOnMouseEntered(e -> target.getGrid().setGridLinesVisible(true));\n\t\ttarget.setOnMouseExited(e -> target.getGrid().setGridLinesVisible(false));\n\t\ttarget.setOnMouseDragged(e -> targetSetOnMouseDragged(target, e, newPath));\n\t\ttarget.setOnMouseReleased(e -> replacePath(newPath));\n\t}", "private void updateGPS() {\n fusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(Location.this);\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n fusedLocationProviderClient.getLastLocation().addOnSuccessListener(this, new OnSuccessListener<android.location.Location>() {\n @Override\n public void onSuccess(android.location.Location location) {\n updateUI(location);\n }\n });\n } else {\n //permission not granted, we will ask for it\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 99);\n }\n }\n }", "private synchronized void update() {\n nPoints++;\n int n = points.size();\n if (n < 1) {\n return;\n }\n PathPoint p = points.get(points.size() - 1); // take last point\n if (p.getNEvents() == 0) {\n return;\n }\n if (n > length) {\n removeOldestPoint(); // discard data beyond range length\n }\n n = n > length ? length : n; // n grows to max length\n float t = p.t - firstTimestamp; // t is time since cluster formed, limits absolute t for numerics\n st += t;\n sx += p.x;\n sy += p.y;\n stt += t * t;\n sxt += p.x * t;\n syt += p.y * t;\n// if(n<length) return; // don't estimate velocityPPT until we have all necessary points, results very noisy and send cluster off to infinity very often, would give NaN\n float den = (n * stt - st * st);\n if (den != 0) {\n valid = true;\n xVelocity = (n * sxt - st * sx) / den;\n yVelocity = (n * syt - st * sy) / den;\n } else {\n valid = false;\n }\n }", "public MapObject addPath(Coord... path) {\n if(internalNative != null) {\n long key = internalNative.beginPath();\n for(Coord c : path) {\n internalNative.addToPath(key, c.getLatitude(), c.getLongitude());\n }\n key = internalNative.finishPath(key);\n MapObject o = new MapObject();\n o.mapKey = key;\n markers.add(o);\n return o;\n } else {\n if(internalLightweightCmp != null) {\n LinesLayer ll = new LinesLayer();\n ll.addLineSegment(path);\n\n internalLightweightCmp.addLayer(ll);\n MapObject o = new MapObject();\n o.lines = ll;\n markers.add(o);\n return o;\n } else {\n // TODO: Browser component \n return null;\n }\n }\n }", "public void drawPath(float[] points) {\n pathPoints = points;\n this.invalidate();\n }", "public void updateWayPointList() {\r\n\t\tif (!currentTrackID.equals(\"\")) {\r\n\r\n\t\t\tlong trackID = Long.parseLong(currentTrackID);\r\n\r\n\t\t\tDatabaseService.Util.getInstance().getWaypointByTrack(trackID,\r\n\t\t\t\t\tnew Date(UserSettings.lastWayPointUpdateTime),\r\n\t\t\t\t\tnew AsyncCallback<ServiceResult<ArrayList<CWaypoint>>>() {\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\r\n\t\t\t\t\t\t\tcaught.printStackTrace();\r\n\t\t\t\t\t\t\tupdateDone();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onSuccess(\r\n\t\t\t\t\t\t\t\tServiceResult<ArrayList<CWaypoint>> result) {\r\n\r\n\t\t\t\t\t\t\tif (result.isOK()) {\r\n\t\t\t\t\t\t\t\tArrayList<CWaypoint> listWayPoint = result\r\n\t\t\t\t\t\t\t\t\t\t.getResult();\r\n\r\n\t\t\t\t\t\t\t\tfor (int i = 0; i < listWayPoint.size(); i++) {\r\n\t\t\t\t\t\t\t\t\tratioCount = (ratioCount + 1) % ratio;\r\n\t\t\t\t\t\t\t\t\tif (ratioCount == 0) {\r\n\t\t\t\t\t\t\t\t\t\taddRecord(listWayPoint.get(i), 0);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tupdateDone();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t} else {\r\n\t\t\tupdateDone();\r\n\t\t}\r\n\t}", "public void finalizePath(){\n\t\tif(getCompletePath()||temp.isEmpty())\n\t\t\treturn;//path has already been finalized or there is no path defined\n\t\telse{\n\t\t\tint LastPos=temp.peekLast().getPos();\n\t\t\tint d = currentPath.getDirection(LastPos);\n\t\t\tPathType type = Map.createPathTileOfType(d,caseEdge);\n\t\t\tPath p = PathFactory.makePath(type,currentPos);\n\t\t\t\n\t\t\tif(p.getEntry()!= LastPos)\n\t\t\t\tp.rotate();\n\t\t\tp.setEnd();\n\t\t\tsetExitPoint(p);\n\t\t\tp.storePathTile();\n\t\t\t\n\t\t\tsetCompletePath(true);\n\t\t\tsetRemainingToScenery();\n\t\t}\n\t\t\n\t\t\n\t}", "public void updatePosition() {\n\n this.x = this.temp_x;\n this.y = this.temp_y;\n this.ax = 0;\n this.ay = 0;\n\t\tthis.axplusone = 0;\n this.ayplusone = 0;\n \n }", "@Override\n\t\tpublic void onLocationChanged(Location args0) {\n\t\t\t mCurrentLocation = args0;\n\t mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n\t updateUI();\n\n\t\t}", "public void undo(){\n if(!isFreeDraw) { //in waypoint mode delete the last point\n int size = mMapInterface.getPathFrame().size();\n if (size >= 1) {\n isPathReady=false;\n mMapInterface.getPathFrame().remove(size - 1);\n pointsCounter--;\n googleMap.clear();\n drawLine();\n }\n }\n else{ //in continu mode delete all path\n deletePath();\n drawFree();\n }\n }", "public void refresh() {\n if (mMarkerView != null) {\n mMarkerView.setLatLng(GeoJSONUtils.toLatLng(mCoordinate));\n }\n }", "private void updateLocationUI() {\n if (mCurrentLocation != null) {\n Log.e(\"UPDATE GEO\", \"LAT \" + mCurrentLocation.getLatitude() + \" LON \" +\n mCurrentLocation.getLongitude() + \" LAST UPDATE \" + mLastUpdateTime);\n }\n }", "public void onLocationChanged(Location location) {\n \t\t\t\tcurrentLocation = String.valueOf(location.getLatitude()) + \"+\" + String.valueOf(location.getLongitude());\n \t\t\t}", "public void\nsetPath(SoPath path)\n{\n // ref the input path\n if (path != null)\n path.ref();\n\n // nuke the old path\n if (pathOfInterest != null) {\n pathOfInterest.unref();\n pathOfInterest = null;\n }\n // and copy the new path\n if (path != null) {\n pathOfInterest = path.copy();\n pathOfInterest.ref();\n }\n\n // unref the input path\n if (path != null)\n path.unref();\n\n}", "public void actionUpdateGpsPosition(Location mLastLocation) {\n if(mLastLocation != null) {\n waypoint.updatePosition(mLastLocation.getLatitude(), mLastLocation.getLongitude());\n }\n }", "@Override\n\t\tpublic void onLocationChanged(Location location) {\n\t\t\tif (location != null)\n\t\t\t{\n\t\t\t\tdouble mLat = location.getLatitude();\n\t\t\t\tdouble mLng = location.getLongitude();\n\t\t\t\tLog.i(\"Geo Test: \", Double.toString(mLng) + Double.toString(mLat));\n\t\t\t\tParseGeoPoint point = new ParseGeoPoint(mLat, mLng);\n\t\t\t\tuser.put(\"lastKnownLocation\", point);\n\t\t\t\tuser.saveInBackground();\n\t\t\t\t\n\t lm.removeUpdates(this);\n\t\t\t}\n\t\t}", "public void drawPath(LinkedList<GPS> gpsList)\n\t{\n\n\t\tPolylineOptions lineOptions = new PolylineOptions();\n\t\tfor(int i = 0; i < gpsList.size(); i++)\n\t\t{\n\t\t\tGPS currentLocation = gpsList.get(i);\n\t\t\tLatLng thisLocation = new LatLng(currentLocation.latitude, currentLocation.longitude);\n\t\t\tlineOptions.add(thisLocation);\t\n\t\t}\n \t\n \tmap.addPolyline(lineOptions);\n \t}", "protected void update(){\n\t\t_offx = _x.valueToPosition(0);\n\t\t_offy = _y.valueToPosition(0);\n\t}", "@Override\n public void onLocationChanged(Location location) {\n if(!firstLocCheck){\n drive = new Drive(location.getLatitude(),location.getLongitude(),Car.carList.get(carIndex),startTime);\n firstLocCheck = true;\n } else {\n Drive.curLat = location.getLatitude();\n Drive.curLong = location.getLongitude();\n }\n System.out.println(\"Location has changed\");\n System.out.println(location.getLatitude() + \" | \" + location.getLongitude());\n\n //updateLoc(location);\n //locProvider = location.getProvider();\n }", "public void update(){\n\t\tdouble timeStep = (double) 1 / METERS_PER_X_TICKS;\n\t\t\n\t\tdouble newXVel = xVel + xAccel * timeStep;\n\t\tdouble newYVel = yVel + yAccel * timeStep;\n\t\t\n//\t\tdouble deltaX = timeStep * (xVel + newXVel) / 2;\n//\t\tdouble deltaY = timeStep * (yVel + newYVel) / 2;\n\t\t\n\t\tdouble deltaX = timeStep * xVel;\n\t\tdouble deltaY = timeStep * yVel;\n\t\t\n\t\txCoord += deltaX;\n\t\tyCoord += deltaY;\n\t\t\n\t\txVel = newXVel;\n\t\tyVel = newYVel;\n\t\t\n\t\t//record new location\n\t\tif(recordPath)\n\t\t\tmyEnviron.getEntityHistories().get(ID).add(new double[]{xCoord, yCoord, xVel, yVel});\n\t\t\n\t\tcontactBlock = null; // reset to the appropriate block during block collision process, if needed\n\t\tcontactBlockSideNum = -1;\n\t\tcontactBlockVertexNum = -1;\n\t\tlifetime++;\n\t}", "private void setPathLine(Position prevPos, Position newPos) {\n\t\t//Grid coordinates\n\t\tint xStart = prevPos.getX();\n\t\tint yStart = prevPos.getY();\n\t\tint xEnd = newPos.getX();\n\t\tint yEnd = newPos.getY();\n\t\t\n\t\t//Set width/height in pixels of screen dimension\n\t\tfloat xF = (xEnd*PIXEL_WIDTH);\n\t\tfloat yF = (yEnd*PIXEL_HEIGHT);\n\t\t\n\t\t//Check that this grid IS free (ie 0) to draw a path\n\t\tif (checkPathCo(newPos) == 0) {\n\t\t\tsPath.lineTo(xF, yF);\n\t\t\tsetPathCo(newPos,1);\n\t\t\twhile (xStart != xEnd)\n\t\t\t{ //set everything in between as 1 ie undroppable\n\t\t\t\tPosition tmpPos = new Position(xStart, yEnd);\n\t\t\t\tsetPathCo(tmpPos,1);\n\t\t\t\tif (xStart < xEnd)\n\t\t\t\t\txStart++;\n\t\t\t\telse\n\t\t\t\t\txStart--;\n\t\t\t}\n\t\t\t\n\t\t\twhile(yStart < yEnd)\n\t\t\t{ //same as x above\n\t\t\t\tPosition tmpPos = new Position(xEnd,yStart);\n\t\t\t\tsetPathCo(tmpPos,1);\n\t\t\t\tyStart++;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void onLocationChanged(Location location) {\n Log.d(\"Location\",location.toString());\n currentPosition.setAltitude(location.getAltitude());\n currentPosition.setCoordinate(new SKCoordinate(location.getLongitude(),location.getLatitude()));\n currentPosition.setSpeed(location.getSpeed());\n mapView.setPositionAsCurrent(currentPosition.getCoordinate(),1,true);\n }", "public void followPath(List<Node> path) {\r\n\t\tfloat xlocation = creature.getXlocation();\r\n\t\tfloat ylocation = creature.getYlocation();\r\n\t\t//Path check timer\r\n\t\t/*-------------------------------------------------------------*/\r\n\t\tpathCheck += System.currentTimeMillis() - lastPathCheck;\r\n\t\tlastPathCheck = System.currentTimeMillis();\r\n\t\tif(pathCheck >= pathCheckCooldown) {\r\n\t\t/*-------------------------------------------------------------*/\r\n\t\t\tcreature.xMove = 0;\r\n\t\t\tcreature.yMove = 0;\r\n\t\t\tcreature.path = path;\r\n\t\t\tif (creature.path != null) {\r\n\t\t\t\tif (creature.path.size() > 0) {\r\n\t\t\t\t\tVector2i vec = creature.path.get(creature.path.size() - 1).tile;\r\n\t\t\t\t\tif (xlocation / Tile.TILEWIDTH < vec.getX() + .5) creature.xMove = creature.speed;\t\t//Right\r\n\t\t\t\t\telse if (xlocation / Tile.TILEWIDTH > vec.getX() + .5) creature.xMove = -creature.speed;\t//Left\t\t/\r\n\t\t\t\t\tif (ylocation / Tile.TILEHEIGHT < vec.getY() + .5) creature.yMove = creature.speed;\t\t//Down\r\n\t\t\t\t\telse if (ylocation / Tile.TILEHEIGHT > vec.getY() + .5) creature.yMove = -creature.speed;\t//Up\t\t/\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tPoint p = moveToCenter(2, creature);\r\n\t\t\t\t\tif(p.getX() == 0 && p.getY() == 0) {\r\n\t\t\t\t\t\tcreature.travelling = false;\r\n\t\t\t\t\t} else {\t\t\t\t\r\n\t\t\t\t\tcreature.xMove = creature.speed * p.getX();\r\n\t\t\t\t\tcreature.yMove = creature.speed * p.getY();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void updateLocation() {\n myLocationOnScreenRef.set(myComponent.getLocationOnScreen());\n }", "public void updateCoords() {\n line.setLine(parent.getFullBounds().getCenter2D(), child.getFullBounds().getCenter2D());\n Rectangle2D r = line.getBounds2D();\n // adding 1 to the width and height prevents the bounds from\n // being marked as empty and is much faster than createStrokedShape()\n setBounds(r.getX(), r.getY(), r.getWidth() + 1, r.getHeight() + 1);\n invalidatePaint();\n }", "@Override\r\n public void onLocationChanged(Location location) {\n LatLng latLng_Now = new LatLng(location.getLatitude(), location.getLongitude());\r\n CameraPosition cameraPosition = new CameraPosition.Builder()\r\n .target(latLng_Now) // Sets the center of the map to LatLng (refer to previous snippet)\r\n .zoom(17) // Sets the zoom\r\n .bearing(90) // Sets the orientation of the camera to east\r\n .tilt(30) // Sets the tilt of the camera to 30 degrees\r\n .build(); // Creates a CameraPosition from the builder\r\n mMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));\r\n if(latLng_Prev == null){\r\n latLng_Prev = latLng_Now;\r\n }\r\n //draw line between two locations:\r\n Polyline line = mMap.addPolyline(new PolylineOptions()\r\n .add(latLng_Prev, latLng_Now)\r\n .width(5)\r\n .color(Color.RED));\r\n latLng_Prev=latLng_Now;\r\n }", "public void add_location() {\n if (currentLocationCheckbox.isChecked()) {\n try {\n CurrentLocation locationListener = new CurrentLocation();\n LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);\n Location location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (location != null) {\n int latitude = (int) (location.getLatitude() * 1E6);\n int longitude = (int) (location.getLongitude() * 1E6);\n currentLocation = new GeoPoint(latitude, longitude);\n }\n } catch (SecurityException e) {\n e.printStackTrace();\n }\n } else {\n currentLocation = null;\n }\n\n }", "public void updateStationPositions() {\r\n \t\tObject key;\r\n \t\tObject[] cells = graph.getDescendants(graph.getRoots());\r\n \t\tfor (Object cell : cells) {\r\n \t\t\tif (cell instanceof JmtCell) {\r\n \t\t\t\tJmtCell jcell = (JmtCell) cell;\r\n \t\t\t\tkey = ((CellComponent) jcell.getUserObject()).getKey();\r\n \t\t\t\t// Sets cell coordinate into data structure\r\n \t\t\t\tmodel.setStationPosition(key, new JMTPoint(getCellCoordinates(jcell), !jcell.isLeftInputCell()));\r\n \t\t\t}\r\n \t\t}\r\n \t}", "private void routeDrawing(Location location) {\n\n // validity check in case the first point does not have a previous point\n if (previousLocation == null) {\n // copy the current location to the previous point\n previousLocation = location;\n }\n double lat = location.getLatitude();\n double lon = location.getLongitude();\n\n latitude = lat;\n longitude = lon;\n latList.add(latitude);\n lonList.add(longitude);\n\n // previous coordinates\n //System.out.println(\"previous Location: \" + previousLocation.getLatitude() + \" \" + previousLocation.getLongitude());\n // current coordinates\n //System.out.println(\"Current Location: \" + location.getLatitude() + \" \" + location.getLongitude());\n\n // Polyline Options differ from\n PolylineOptions lineOptions = new PolylineOptions();\n // set the option of each part of polyline\n // 0.03 is the location update interval also the drawing interval\n vdraw = (GetDistance(previousLocation.getLatitude(), previousLocation.getLongitude(), location.getLatitude(), location.getLongitude()))/0.3;\n System.out.println(\"vdraw: \"+vdraw);\n if (vdraw<0.01){\n\n lineOptions.add(new LatLng(previousLocation.getLatitude(), previousLocation.getLongitude()))\n .add(new LatLng(location.getLatitude(), location.getLongitude()))\n // This needs to be beautified\n .color(getResources().getColor(R.color.slow))\n .width(30);\n System.out.print(\"I am running slow\");\n }\n if (vdraw>=0.008 && vdraw<=0.03){\n lineOptions.add(new LatLng(previousLocation.getLatitude(), previousLocation.getLongitude()))\n .add(new LatLng(location.getLatitude(), location.getLongitude()))\n // This needs to be beautified\n .color(getResources().getColor(R.color.commen))\n .width(30);\n System.out.print(\"I am running normally\");\n }\n if (vdraw>0.03){\n lineOptions.add(new LatLng(previousLocation.getLatitude(), previousLocation.getLongitude()))\n .add(new LatLng(location.getLatitude(), location.getLongitude()))\n // This needs to be beautified\n .color(getResources().getColor(R.color.fast))\n .width(30);\n System.out.print(\"I am running fast\");\n }\n\n // add the polyline to the map\n Polyline partOfRunningRoute = mMap.addPolyline(lineOptions);\n // set the zindex so that the poly line stays on top of my tile overlays\n partOfRunningRoute.setZIndex(1000);\n // add the poly line to the array so they can all be removed if necessary\n runningRoute.add(partOfRunningRoute);\n // add the latlng from this point to the array\n points.add(location);\n // store current location as previous location in the end\n previousLocation = location;\n }", "public abstract void updatePath(Matrix matrix, Matrix backupTransformationMatrix, boolean highlight);", "@Override\n public String updateLat() {\n return mylat;\n }", "@SuppressLint(\"MissingPermission\")\n private void requestLocationUpdate() {\n }", "@Override\n public String updateLog() {\n return mylon;\n }", "@Override\n public void onLocationChanged(Location location) {\n currentLatitude = location.getLatitude();\n currentLongitude = location.getLongitude();\n\n }", "public void appendPath(GeneralPath path, BuildHistory hist)\r\n {\r\n float offx = isRelative ? hist.history[0].x : 0f;\r\n float offy = hist.history[0].y;\r\n\r\n path.lineTo(x + offx, offy);\r\n hist.setPoint(x + offx, offy);\r\n }", "@Override\npublic void onLocationChanged(Location location) {\nString lat = String.valueOf(location.getLatitude());\nString lon = String.valueOf(location.getLongitude());\nLog.e(\"GPS\", \"location changed: lat=\"+lat+\", lon=\"+lon);\n//tv.setText(\"lat=\"+lat+\", lon=\"+lon);\nLatLng coordinates = new LatLng(location.getLatitude(), location.getLongitude()); \nmMap.animateCamera(CameraUpdateFactory.newLatLngZoom(coordinates, 12));\n\n\n//Update Value of Lat Long\n}", "private void update(final Grid grid, final int rowIndex, final int clumnIndex, final GeneralPath path) {\n Side prevSide = null; // was: NONE\n int r = rowIndex;\n int c = clumnIndex;\n final Cell start = grid.getCellAt(r, c);\n float[] pt = start.getXY(PathGenerator.firstSide(start, prevSide));\n float x = c + pt[0]; // may throw NPE\n float y = r + pt[1]; // likewise\n path.moveTo(x, y); // prepare for a new sub-path\n\n pt = start.getXY(secondSide(start, prevSide));\n float xPrev = c + pt[0];\n float yPrev = r + pt[1];\n\n prevSide = nextSide(start, prevSide);\n switch (prevSide) {\n case BOTTOM:\n r--;\n break;\n case LEFT:\n c--;\n break;\n case RIGHT:\n c++;\n break;\n case TOP:\n r++; // fall through\n break;\n default:\n break;\n }\n start.clear();\n\n Cell currentCell = grid.getCellAt(r, c);\n while (!start.equals(currentCell)) { // we want object reference equality\n pt = currentCell.getXY(secondSide(currentCell, prevSide));\n x = c + pt[0];\n y = r + pt[1];\n if (Math.abs(x - xPrev) > PathGenerator.EPSILON && Math.abs(y - yPrev) > PathGenerator.EPSILON) {\n path.lineTo(x, y);\n }\n xPrev = x;\n yPrev = y;\n prevSide = nextSide(currentCell, prevSide);\n switch (prevSide) {\n case BOTTOM:\n r--;\n break;\n case LEFT:\n c--;\n break;\n case RIGHT:\n c++;\n break;\n case TOP:\n r++;\n break;\n default:\n // System.out.println(\n // \"update: Potential loop! Current cell = \" + currentCell + \", previous side = \" + prevSide);\n break;\n }\n currentCell.clear();\n currentCell = grid.getCellAt(r, c);\n }\n\n path.closePath();\n }", "public Path saveOrUpdatePath(Path path);", "@Override \n public void onLocationChanged(Location location) { \n mostRecentLocation = location; \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}", "@Override\n public void onLocationChanged(Location location) {\n currentLat = location.getLatitude();\n currentLong = location.getLongitude();\n\n if (location != null) {\n CLocation myLocation = new CLocation(location, true);\n this.updateSpeed(myLocation);\n }\n\n// String originUpdate = getAddressFromLatLng(currentLat, currentLong);\n// //Use Geocoder class to calculate minutes walking from current location.\n// String url = \"https://maps.googleapis.com/maps/api/distancematrix/json?origins=\" + originUpdate + \"&destinations=\" + destinationPassed + \"&mode=walking&language=fr-FR&avoid=tolls&key=AIzaSyBCv-Rz8niwSqwicymjqs_iKinNNsVBAdQ\";\n// Log.d(\"url string\", url);\n// geoTask.execute(url);\n }", "public void setPathOrigin(int x, int y);", "public void onPositionChanged() {\n\n latPeriodic = location.getLatitude();\n lonperiodic = location.getLongitude();\n\n }", "public void onLocationChanged(Location newlocation) {\n\t\t\t\t\n\t\t\t\tif (newlocation != null) \n\t\t\t\t{\n\t\t\t\t\tlocationManager.removeUpdates(this);\n\t\t\t\t\tpoint=getGeoPoint(newlocation);\n\t\t\t\t\t//String altitiude = \"Altitiude: \" + newlocation.getAltitude();\n\t\t\t\t\t//String accuracy = \"Accuracy: \" + newlocation.getAccuracy();\n\t\t\t\t\t//String time = \"Time: \" + newlocation.getTime();\n\t\t\t\t\tmapController.animateTo(point);\n\t\t\t\t\t\n\t\t\t\t\tlatitudes= String.valueOf(newlocation.getLatitude() * 1E6);\n\t\t\t\t\tlongitudes= String.valueOf (newlocation.getLongitude() * 1E6);\n\t\t\t\t\tnameValuePairs.add(new BasicNameValuePair(\"latd\",latitudes));\n\t\t\t\t\tnameValuePairs.add(new BasicNameValuePair(\"lotd\",longitudes));\n\t\t\t\t\tnameValuePairs.add(new BasicNameValuePair(\"id\",LoginId));\n\t\t\t\t\tArrayList<NameValuePair> result=db.getServerData(nameValuePairs,\"updatecoordinates.php\");\n\t\t\t\t\tnameValuePairs.clear();\n\t\t\t\t\tfor(int i=0;i<result.size();i++)\n\t\t\t\t\t{\n\t\t\t\t\t\ts=result.get(i).getName();\n\t\t\t\t\t\tif(s.equals(\"Error\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tToast tt=Toast.makeText(MapViewActivity.this, \"Co-Ords Updated\", 3000);\n\t\t\t\t\t\t\ttt.setGravity(Gravity.CENTER, 0, 15);\n\t\t\t\t\t\t\ttt.show();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tToast tt=Toast.makeText(MapViewActivity.this, \"Co-Ords Updated Error\", 3000);\n\t\t\t\t\t\t\ttt.setGravity(Gravity.CENTER, 0, 15);\n\t\t\t\t\t\t\ttt.show();break;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tresult.clear();\n\t\t\t\t\t\n\t\t\t\t\tmapView.invalidate();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public void updateGPSCoordinates(Location location) {\n longitude = location.getLongitude();\n latitude = location.getLatitude();\n LatLng userLatLng = new LatLng(latitude,longitude);\n iterator = AdParts.listIterator();\n while (iterator.hasNext()) {\n current = iterator.next();\n current.setDistance(userLatLng.distanceTo(current.getLatLng()));\n }\n Collections.sort(AdParts, new Comparator<Ad>() {\n @Override\n public int compare(Ad o1, Ad o2) {\n return Double.compare(o1.getDistance(), o2.getDistance());\n }\n });\n Log.d(\"asdf\", String.valueOf(longitude));\n mapboxMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(\n latitude, longitude), 10));\n updateTempList();\n }", "private void addPath(double prevXPos, double prevYPos, double xPos, double yPos) {\n\n\t\tif (penShowing) {\n\t\t\tDouble[] newPath = { prevXPos, prevYPos, xPos, yPos };\n\t\t\tpathList.add(newPath);\n\t\t\tpenColorList.add(screen.getPenColor());\n\t\t\torientationList.add(orientation);\n\n\t\t}\n\t}", "@Override\n public void updateVertexLocationsInTimeFrame(TimeFrame timeframe, Map<Integer, Double[]> pmapVertexLocation ){\n \n // find minX,maxX and minY, maxY of the co-ordinates supplied from UI \n double minX = Double.POSITIVE_INFINITY;\n double maxX = Double.NEGATIVE_INFINITY;\n double minY = Double.POSITIVE_INFINITY;\n double maxY = Double.NEGATIVE_INFINITY;\n // System.out.println(\"MeerkatLogic.DynamicGraph.updateVertexLocationsInTimeFrame() : updating timeframe = \" + timeframe);\n Iterator<Map.Entry<Integer, Double[]>> entries = pmapVertexLocation.entrySet().iterator();\n \n while (entries.hasNext()) {\n \n Map.Entry<Integer, Double[]> entry = entries.next();\n \n double xCoordinate = entry.getValue()[0];\n double yCoordinate = entry.getValue()[1];\n if(xCoordinate < minX){\n minX = xCoordinate;\n }\n if(xCoordinate > maxX){\n maxX = xCoordinate;\n }\n if(yCoordinate < minY){\n minY = yCoordinate;\n }\n if(yCoordinate > maxY){\n maxY = yCoordinate;\n }\n //System.out.println(\"Key = \" + entry.getKey() + \", Value = \" + entry.getValue());\n }\n // do normalization and translation of coordinates here\n double width = maxX - minX;\n double height = maxY - minY;\n \n entries = pmapVertexLocation.entrySet().iterator();\n \n while (entries.hasNext()) {\n Map.Entry<Integer, Double[]> entry = entries.next();\n double xCoordinate = entry.getValue()[0];\n double yCoordinate = entry.getValue()[1];\n if(width!=0.0)\n xCoordinate = (xCoordinate - minX)/width;\n else\n xCoordinate = 0.5; //temporary fix if the graph has a single vertex\n \n if(height!=0.0)\n yCoordinate = (yCoordinate - minY)/height;\n else\n yCoordinate = 0.5; //temporary fix if the graph has a single vertex\n \n int id = entry.getKey();\n \n getVertex(id).updateXYPosition(xCoordinate, yCoordinate, timeframe);\n // getVertex(id).getSystemAttributer().addAttributeValue(MeerkatSystem.X, xCoordinate+\"\", new Date(), timeframe);\n // getVertex(id).getSystemAttributer().addAttributeValue(MeerkatSystem.Y, yCoordinate+\"\", new Date(), timeframe);\n }\n }", "public void setCellToPath(int pos){//how to check for the end???\n\t\t\n\t\tif(pos<0||pos>width*height-1||getCompletePath())\n\t\t\treturn;// the position entered is not valid or the path has already been completed\n\t\t\n\t\telse if(temp.isEmpty()){//no path tile have been defined\n\t\t\tif(currentPos<0){//start hasn't been placed\t\t\n\t\t\t\tcurrentPos=pos;\n\t\t\t\tcurrentPath=new Path(currentPos);\n\t\t\t\tsetEntryPoint(currentPath);\n\t\t\t\tsetGrid(currentPath.getRow(),currentPath.getCol(),currentPath);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint d = currentPath.getDirection(pos);\n\t\t\t\tif (d<0||d>=4)\n\t\t\t\t\treturn; //the two tiles are not connected\n\t\t\t\tPathType type =Map.createPathTileOfType(d, caseEdge);\n\t\t\t\tPath p =PathFactory.makePath(type, currentPos);\n\t\t\t\t\n\t\t\t\t//fix direction of tile\n\t\t\t\tif(p.getEntry()==pos)\n\t\t\t\t\tp.rotate();\n\t\t\t\t//validate spot (for entry/exit)\n\t\t\t\t\n\t\t\t\t//set as Path entry point \n\t\t\t\tp.setStart();\n\t\t\t\tsetEntryPoint(p);\n\t\t\t\t\n\t\t\t\t//add to grid and list\n\t\t\t\tp.storePathTile();\n\n\t\t\t\t//update current\n\t\t\t\tcurrentPos=pos;\n\t\t\t\tcurrentPath=new Path(currentPos);\t\t\n\t\t\t\tsetGrid(currentPath.getRow(),currentPath.getCol(),currentPath);\n\t\t\t}\t\t\n\t\t}\n\t\telse{\n\t\t\t\n\t\t\tif (getGrid(pos/width, pos%width)!=null)\n\t\t\t\tif(getGrid(pos/width, pos%width).isPath())\n\t\t\t\t\treturn;//causes intersection\n\t\t\t\n\t\t\tint dExit = currentPath.getDirection(pos);\n\t\t\tint lastPos= temp.peekLast().getPos();\n\t\t\tint dEntry= currentPath.getDirection(lastPos);\n\n\t\t\t\n\t\t\tif (dExit<0||dExit>3||dEntry<0||dEntry>3)\n\t\t\t\treturn; //the two tiles are not connected\n\t\t\t\n\t\t\t\n\t\t\tPathType type =Map.createPathTileOfType(dExit,dEntry);\n\t\t\tPath p =PathFactory.makePath(type, currentPos);\n\t\t\t\n\t\t\t//fix direction of tile\n\t\t\tif(p.getEntry()==pos)\n\t\t\t\tp.rotate();\n\t\t\t\n\t\t\tif(!inValidSpot(p))\n\t\t\t\treturn; //\n\t\t\t\n\t\t\t//add to grid and list\n\t\t\tp.storePathTile();\n\t\t\t\n\t\t\t//update current\n\t\t\tcurrentPos=pos;\n\t\t\tcurrentPath=new Path(currentPos);\t\n\t\t\tsetGrid(currentPath.getRow(),currentPath.getCol(),currentPath);\n\t\t}\n\t}", "private void Create_Path() {\n lines = new Line[getPoints().size()];\n for (int i = 1; i < getLines().length; i++) {\n lines[i] = new Line(getPoints().get(way[i]).getX(), getPoints().get(way[i]).getY(), getPoints().get(way[i - 1]).getX(), getPoints().get(way[i - 1]).getY());\n }\n lines[0] = new Line(getPoints().get(way[getLines().length - 1]).getX(), getPoints().get(way[getLines().length - 1]).getY(), getPoints().get(way[0]).getX(), getPoints().get(way[0]).getY());\n\n }", "void updateGlobalPoints(int id) {\n\t\t// update global points while dragging the line or it's separate points\n\t\tpoint[neighborPointsFromLine(id)[1]].position.set(line[id].start); // right\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// neighbor\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// [1]\n\t\tpoint[neighborPointsFromLine(id)[0]].position.set(line[id].end); // left\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// neighbor\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// [0]\n\t}", "public void updatePosition() {\n \t\r\n \tx += dx;\r\n \ty += dy;\r\n \t\r\n\t}", "public void updatePosition(double timestep){\n\t\tx = x + vx * timestep;\n\t y = y + vy * timestep;\n\t}", "public void updatePath (DataSource pool,String path) throws SQLException {\r\n this.setPath(path);\r\n Connection conn=null;\r\n\t\ttry{\r\n conn=pool.getConnection();\r\n String query = \r\n \"update gene_list_analyses \"+\r\n \"set path = ? \"+\r\n \"where analysis_id = ?\";\r\n\r\n log.debug(\"in updateStatus. analysis = \"+this.getDescription());\r\n PreparedStatement pstmt = conn.prepareStatement(query, \r\n ResultSet.TYPE_SCROLL_INSENSITIVE,\r\n ResultSet.CONCUR_UPDATABLE);\r\n pstmt.setString(1, this.getPath());\r\n pstmt.setInt(2, this.getAnalysis_id());\t\r\n pstmt.executeUpdate();\r\n conn.close();\r\n conn=null;\r\n }catch(SQLException e){\r\n throw e;\r\n }finally{\r\n if (conn != null) {\r\n try { conn.close(); } catch (SQLException e) { ; }\r\n conn = null;\r\n }\r\n }\r\n\t}", "public void convertToLocation() {\r\n\t\tdouble longitude = Double.MIN_VALUE;\r\n\t\tdouble latitude = Double.MIN_VALUE;\r\n\r\n\t\tdistance += 0.75;\r\n\t\tsteps = meter.getSteps();\r\n\r\n\t\tDataLogger.getInstance().setCurrDistance(distance);\r\n\r\n\t\tlatitude = 0.75 * Math.cos(orientation) * 0.000009\r\n\t\t\t\t+ DataLogger.getInstance().getPrevLatitude();\r\n\t\tlongitude = 0.75 * Math.sin(orientation) * 0.0000136\r\n\t\t\t\t+ DataLogger.getInstance().getPrevLongitude();\r\n\r\n\t\tDataLogger.getInstance().addLocation(latitude, longitude,\r\n\t\t\t\tjava.lang.System.currentTimeMillis());\r\n\r\n\t\tLog.d(TAG, \"Called convertToLocation\");\r\n\t}", "private void UpdateLocation(final Location location)\r\n {\r\n invokeLater(new Runnable() \r\n {\r\n public void run()\r\n {\r\n double longitude = location.getQualifiedCoordinates().getLongitude();\r\n double latitude = location.getQualifiedCoordinates().getLatitude();\r\n float altitude = location.getQualifiedCoordinates().getAltitude();\r\n float speed = location.getSpeed(); \r\n String altSpeed = String.valueOf(altitude) + \" - \" + String.valueOf(speed);\r\n _lblLongitude.setText(String.valueOf(longitude));\r\n _lblLatitude.setText(String.valueOf(latitude));\r\n _lblAltSpeed.setText(altSpeed);\r\n }\r\n }); \r\n }", "public void onLocationChanged(Location location) {\n lastKnownLocation = location;\n geofenceHelper(getContext());\n }", "private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }", "@Override\n public void onLocationChanged(Location location) {\n mLastLocation = location;\n\n\n }", "protected void updateLocationUI() {\n if (mCurrentLocation != null) {\n //TrackDataCSVHelper myCSV2 = new TrackDataCSVHelper();\n //mDistanceFromWaypointText.setText(String.valueOf(myCSV2.getLon(track, this))); //<-- used this to test getting proper lat/lon\n //mDistanceFromWaypointText.setText(String.format(\"%s: %f\", \"Dist from WP\", mDistanceFromWaypoint));\n //mZoneStatusText.setText(\"IN THE ZONE? \" + mIsInZone);\n //mNumberUpdates.setText(String.valueOf(mNum));\n }\n }", "public void updateMyselfLocation(double Latitude, double Longitude){\r\n\t\tSQLiteDatabase db = this.getWritableDatabase();\r\n \tContentValues values = new ContentValues();\r\n \tSystem.out.println(\"Writing \" + Latitude + \" \" + Longitude);\r\n \tvalues.put(COLUMN_LATITUDE, Latitude);\r\n \tvalues.put(COLUMN_LONGITUDE, Longitude);\r\n \tdb.update(MYSELF_TABLE_NAME, values, null, null);\r\n \tdb.close();\r\n\t}", "public void onLocationChanged(Location loc) {\n\tif (loc != null && !loc.equals(m_oldLoc)) {\n\t m_oldLoc = loc;\n\t if (m_mode == LOCK) {\n\t\tm_location = new GeoPoint((int)(loc.getLatitude() * 1E6),\n\t\t\t\t\t (int)(loc.getLongitude() * 1E6));\n\t\tm_controller.animateTo(m_location);\n\t }\n\t}\n }", "@Override public void onLocationChanged(Location location) {\n if (mCurrentLocation == null) {\n map.getController().animateTo(new GeoPoint(location));\n }\n\n mCurrentLocation = location;\n\n long currentTime = System.currentTimeMillis();\n\n if (networkLocationIgnorer.shouldIgnore(location.getProvider(), currentTime))\n return;\n\n double dT = currentTime - mLastTime;\n if (dT < 200.0){\n return;\n };\n\n mLastTime = currentTime;\n\n if (!currentLocationOverlay.isEnabled()){\n currentLocationOverlay.setEnabled(true);\n }\n\n currentLocationOverlay.setLocation(new GeoPoint(location));\n currentLocationOverlay.setBearing(location.getBearing());\n currentLocationOverlay.setAccuracy((int) location.getAccuracy());\n\n // Navigation mode\n if (mNavigationMode) {\n if(!mNavigationRunning) {\n // Location for the first time -> get road\n mNavigationRunning = true;\n\n ArrayList<GeoPoint> wayPoints = new ArrayList<GeoPoint>();\n // Start location\n wayPoints.add(new GeoPoint(location));\n // Destination location\n wayPoints.add(getLocationFromAddress(destinationAddress));\n\n new RoadTask().execute(wayPoints);\n }\n else if (mNextNode != null) {\n GeoPoint currentGeoPoint = new GeoPoint(mCurrentLocation);\n int distance = currentGeoPoint.distanceTo(mNextNode.mLocation);\n boolean readInstructions = false;\n\n // TODO: Test which distance is good for marking node as reached\n // TODO: Preveri kako zaznati ali je šel čez node\n // TODO: Povej navodila tik preden zavije\n if ( distance < 4 ) {\n map.getController().animateTo(new GeoPoint(location));\n\n // Node reached, increase node index\n mNodeIndex++;\n\n if (mNodeIndex >= mRoad.mNodes.size()) {\n // Last node reached - turn navigation off\n mNavigationMode = false;\n mNavigationRunning = false;\n mNextNode = null;\n mCurrentNode = null;\n mNodeIndex = 0;\n\n Button button = (Button)findViewById(R.id.current_instruction_button);\n button.setVisibility(View.GONE);\n\n Button buttonFavPaths = (Button)findViewById(R.id.favourite_paths_button);\n buttonFavPaths.setVisibility(View.VISIBLE);\n }\n else {\n // Get next node\n mCurrentNode = mNextNode;\n mNextNode = mRoad.mNodes.get(mNodeIndex);\n\n readInstructions = true;\n }\n }\n else if (distance < 6) {\n readInstructions = true;\n }\n\n // Set new instruction\n setInstruction(readInstructions);\n }\n }\n\n map.invalidate();\n }", "private void addPath(List<Position> positions, Node path) {\n while (path.parent != null) {\n positions.add(new Position(path.getPos().x, path.getPos().y));\n path = path.parent;\n }\n }", "private void setLastLocation() {\n\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n // Permission has already been granted\n mFusedLocationClient.getLastLocation()\n .addOnSuccessListener(this, new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n // Got last known location. In some rare situations this can be null.\n if (location != null) {\n lastLatitude = Double.toString(location.getLatitude());\n lastLongitude = Double.toString(location.getLongitude());\n //lastLocation = Double.toString(location.getLatitude()) + \",\" + Double.toString(location.getLongitude()) ;\n //String b = lastLocation;\n // Get into right format\n // Logic to handle location object\n }\n }\n });\n }\n }" ]
[ "0.7005769", "0.6565719", "0.6137557", "0.6065617", "0.5990278", "0.5988635", "0.59082437", "0.58925164", "0.58812374", "0.58513415", "0.58271015", "0.5825018", "0.58108145", "0.5805084", "0.57963645", "0.57927704", "0.57707226", "0.5767116", "0.5758909", "0.5752266", "0.57398367", "0.5729972", "0.5710745", "0.570958", "0.5708322", "0.57033926", "0.5694553", "0.5674858", "0.567088", "0.5669747", "0.5655266", "0.56455255", "0.5633173", "0.56283367", "0.56282306", "0.56116635", "0.5585948", "0.55756694", "0.5548319", "0.55300415", "0.5526213", "0.5518954", "0.55167633", "0.55163157", "0.5515056", "0.55097234", "0.5506795", "0.5487525", "0.54860604", "0.5481824", "0.5475484", "0.54711425", "0.5470213", "0.5456", "0.5451891", "0.5447963", "0.5443009", "0.5437034", "0.5428331", "0.54246134", "0.54194784", "0.54179156", "0.54084855", "0.539917", "0.5397749", "0.5395056", "0.53859854", "0.5371707", "0.53685224", "0.53601235", "0.53591806", "0.5353692", "0.53480333", "0.5345892", "0.53425795", "0.53360164", "0.53238434", "0.532256", "0.53167117", "0.53160566", "0.5308756", "0.52980334", "0.52943665", "0.52854556", "0.52784854", "0.5269429", "0.5262903", "0.5261561", "0.52594", "0.52590674", "0.52533185", "0.5252616", "0.52515864", "0.5245072", "0.52431774", "0.5241856", "0.52385867", "0.52372956", "0.5227842", "0.5219332", "0.5217142" ]
0.0
-1
creates list of expressions and operators
List<Object> parse(String inputLine) { List<Object> lo = new ArrayList<>(); int lineLength = inputLine.length(); for (int i = 0; i < lineLength; i++) { char c = inputLine.charAt(i); //creator of constant: if (isPartOfNumber(c)) { String constantValue = ""; for (; i < lineLength; i++) { c = inputLine.charAt(i); if (!isPartOfNumber(c)) { break; } constantValue += c; } //assign constant lo.add(new Constant(Double.parseDouble(constantValue))); if (i == lineLength) { break; } } switch (c) { case '(': lo.add(Brackets.OPENING); break; case ')': lo.add(Brackets.CLOSING); break; case '²': lo.add(Operators.SQUARE); break; case '√': lo.add(Operators.SQUARE_ROOT); break; case '÷': lo.add(Operators.DIVIDE); break; case '×': lo.add(Operators.MULTIPLY); break; case '%': lo.add(Operators.PERCENTAGE); break; case '+': lo.add(Operators.ADD); break; case '−': lo.add(Operators.SUBTRACT); break; default: throw new IllegalArgumentException("Unknown symbol used as input string"); } } return lo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List getExpressions();", "ExpressionList getExpressionList();", "OperandList createOperandList();", "public static List<Operator> getList(){\n\t\tList<Operator> supportedOperators = new ArrayList<Operator>();\n\t\t\n\t\t// add each operator to list\n\t\tsupportedOperators.add(new AdditionOperator());\n\t\tsupportedOperators.add(new SubtractionOperator());\n\t\tsupportedOperators.add(new MultiplicationOperator());\n\t\tsupportedOperators.add(new DivisionOperator());\n\t\tsupportedOperators.add(new ExponentiationOperator());\n\t\tsupportedOperators.add(new NegationOperator());\n\t\tsupportedOperators.add(new AbsoluteValueOperator());\n\t\tsupportedOperators.add(new SineOperator());\n\t\tsupportedOperators.add(new CoseOperator());\n\t\treturn supportedOperators;\n\t}", "public Element compileExpressionList() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tboolean contFlag = false;\n\n\t\tElement expListParent = document.createElement(\"expressionList\");\n\t\ttoken = jTokenizer.returnTokenVal();\n\t\tif (token.equals(\")\")) {\n\t\t\t// expListParent.setTextContent(\"\\n\");\n\t\t\treturn expListParent;\n\t\t}\n\t\tdo {\n\t\t\texpListParent.appendChild(compileExpression());\n\n\t\t\tjTokenizer.advance();\n\t\t\ttoken = jTokenizer.returnTokenVal();\n\n\t\t\tif (token.equals(\",\")) {\n\t\t\t\t// tokenType= jTokenizer.tokenType();\n\t\t\t\t// ele= createXMLnode(tokenType);\n\t\t\t\t// expListParent.appendChild(ele);\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tcontFlag = true;\n\t\t\t} else {\n\t\t\t\tcontFlag = false;\n\t\t\t}\n\t\t} while (contFlag);\n\t\treturn expListParent;\n\t}", "Expression createExpression();", "OpList createOpList();", "public List<Expression> getSubExpressions();", "void compileExpressionList() {\n tagBracketPrinter(EXPRESSION_LIST_TAG, OPEN_TAG_BRACKET);\n try {\n compileExpressionListHelper();\n } catch (IOException e) {\n e.printStackTrace();\n }\n tagBracketPrinter(EXPRESSION_LIST_TAG, CLOSE_TAG_BRACKET);\n\n }", "public void buildSymbols() \n {\n scalars = new ArrayList <ScalarSymbol>();\n arrays = new ArrayList <ArraySymbol>();\n Stack <String> symbols = new Stack <String>();\n StringTokenizer st = new StringTokenizer(expr, delims, true); \n String token = \"\";\n \n while (st.hasMoreTokens())\n {\n token = st.nextToken();\n if ((token.charAt(0) >= 'a' && token.charAt(0) <= 'z') || (token.charAt(0) >= 'A' && token.charAt(0) <= 'Z' || token.equals(\"[\")))\n symbols.push(token); \n }\n while(!symbols.isEmpty())\n {\n token = symbols.pop();\n if (token.equals(\"[\"))\n {\n token = symbols.pop();\n ArraySymbol aSymbol = new ArraySymbol(token);\n if(arrays.indexOf(aSymbol) == -1)\n arrays.add(aSymbol);\n }\n else \n {\n ScalarSymbol sSymbol = new ScalarSymbol(token);\n if (scalars.indexOf(sSymbol) == -1)\n scalars.add(sSymbol);\n }\n }\n System.out.println(arrays);\n System.out.println(scalars);\n }", "private List<Expression> expList(List<napParser.ExprContext> exprs){\n List<Expression> arguments = new LinkedList<>();\n for(napParser.ExprContext expr : exprs)\n arguments.add((Expression)visit(expr));\n return arguments;\n }", "Exp join(List<Exp> list) {\n Exp exp = list.get(0);\n\n for (int i = 1; i < list.size(); i++) {\n\n Exp cur = list.get(i);\n\n if (cur.type() == FILTER || exp.type() == FILTER) {\n // and\n if (exp.type() == AND) {\n exp.add(cur);\n } else {\n exp = Exp.create(AND, exp, cur);\n }\n } else {\n // variables that may be bound from environment (e.g. values)\n// exp.setNodeList(exp.getNodes());\n// cur.setNodeList(cur.getNodes());\n exp = Exp.create(JOIN, exp, cur);\n exp.bindNodes();\n }\n }\n\n return exp;\n }", "public List<String> getOperators() {\n return operators;\n }", "public void setOperators(List<Operator> operators){\n _operators = operators;\n }", "public Collection<IOperator> getAllOperators()\r\n\t{\r\n\t\treturn expressionRegistry.getAllOperators();\r\n\t}", "@Test\n\tpublic void testExpressionList() throws ParseException {\n\t\tList<Expression> list = langParser(\"\").expressionList();\n\t\tassertEquals(list.size(), 0);\n\t\tlist = langParser(\"a\").expressionList();\n\t\tassertEquals(list.size(), 1);\n\t\tlist = langParser(\"a, b\").expressionList();\n\t\tassertEquals(list.size(), 2);\n\t}", "@Override\n\tprotected void addRequestedOperators() {\n\t}", "Expr createExpr();", "private TreeMap<Integer, PackratParser<Expression>> makeExpressionParsers (CtClass clazz) {\n TreeMap<Integer, PackratParser<Expression>> map = new TreeMap<>();\n\n for (Map.Entry<Integer, List<IROperator>> entry : operators.getOperators(clazz).entrySet()) {\n Integer priority = entry.getKey();\n map.put(priority, choice(getOperationParsersFromCache(priority, entry.getValue())));\n }\n\n TreeMap<Integer, PackratParser<Expression>> parsers = new TreeMap<>();\n\n PackratParser<Expression> next = getDefaultParserFromCache(clazz);\n\n for (Integer priority : map.descendingKeySet()) {\n PackratParser<Expression> cur = choice(map.get(priority), next);\n parsers.put(priority, cur);\n next = cur;\n }\n\n return parsers;\n }", "public String evaluate(ArrayList<String> expression)\n {\n Stack<String> Values = new Stack<String>(), Operations = new Stack<String>();\n\n for (int i = 0; i < expression.size(); i++)\n\t\t{\n\t\t\tif (expression.get(i).equals(\"(\"))\n Operations.push(expression.get(i));\n else if (expression.get(i).equals(\")\"))\n {\n while (Operations.peek().equals(\"(\"))\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n Operations.pop();\n }\n else if (expression.get(i).equals(\"+\") || expression.get(i).equals(\"-\") || expression.get(i).equals(\"*\") || expression.get(i).equals(\"/\"))\n {\n while (!Operations.empty() && precedence(expression.get(i), Operations.peek()))\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n Operations.push(expression.get(i));\n }\n\t\t\telse\n\t\t\t{\n\t\t\t\tValues.push(expression.get(i));\n\t\t\t}\n }\n while (!Operations.empty())\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n return Values.pop();\n }", "public Element compileExpression() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tboolean op;\n\t\tboolean oper = false;\n\t\tString command = \"\";\n\t\tElement expressionParent = document.createElement(\"expression\");\n\n\t\t// if the term-op-term-op cycle breaks, that means its the end of the expression\n\t\tdo {\n\n\t\t\t// At least one term\n\t\t\texpressionParent.appendChild(compileTerm());\n\t\t\t\n\t\t\t//If an operand has been encountered, then can write the command as it is postfix\n\t\t\tif (oper) {\n\t\t\t\twriter.writeCommand(command);\n\t\t\t}\n\t\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\t\tclone.advance();\n\t\t\ttoken = clone.presentToken;\n\n\t\t\t// zero or more ops\n\t\t\tif (token.matches(\"\\\\+|-|\\\\*|/|\\\\&|\\\\||<|=|>|~\")) {\n\t\t\t\toper = true;\n\n\t\t\t\tswitch (token) {\n\t\t\t\tcase \"+\":\n\t\t\t\t\tcommand = \"add\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"-\":\n\t\t\t\t\tcommand = \"sub\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"*\":\n\t\t\t\t\tcommand = \"call Math.multiply 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"/\":\n\t\t\t\t\tcommand = \"call Math.divide 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"<\":\n\t\t\t\t\tcommand = \"lt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \">\":\n\t\t\t\t\tcommand = \"gt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"=\":\n\t\t\t\t\tcommand = \"eq\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"&\":\n\t\t\t\t\tcommand = \"and\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"|\":\n\t\t\t\t\tcommand = \"or\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\texpressionParent.appendChild(ele);\n\t\t\t\tjTokenizer.advance();\n\t\t\t\top = true;\n\t\t\t} else {\n\t\t\t\top = false;\n\t\t\t}\n\t\t} while (op);\n\n\t\treturn expressionParent;\n\t}", "ExprListRule createExprListRule();", "private void processOperator() {\r\n\t\tif (expression[currentIndex] == '*') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.AND_STRING);\r\n\t\t} else if (expression[currentIndex] == '+') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.OR_STRING);\r\n\t\t} else if (expression[currentIndex] == '!') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.NOT_STRING);\r\n\t\t} else {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.XOR_STRING);\r\n\t\t\t// xor operator has 2 characters more than any other operator.\r\n\t\t\tcurrentIndex += 2;\r\n\t\t}\r\n\r\n\t\tcurrentIndex++;\r\n\t}", "public void parseExpression() {\n String regex = \"[ ]\";\n //\"?<=[-+*/()ep])|(?=[-+*/()ei]\";\n String[] splitString = infix.split(regex);\n infixList.addAll(Arrays.asList(splitString));\n }", "ExpOperand createExpOperand();", "public static List<String> getRelationalOperators()\r\n\t{\r\n\t\tList<String> relationalOperatorsList = new ArrayList<String>();\r\n\t\tfor (RelationalOperator operator : RelationalOperator.values())\r\n\t\t{\r\n\t\t\tString opStr = operator.getStringRepresentation();\r\n\t\t\tif ((!opStr.equals(AQConstants.Contains))\r\n\t\t\t\t\t&& (!opStr.equals(AQConstants.STRATS_WITH))\r\n\t\t\t\t\t&& (!opStr.equals(AQConstants.ENDS_WITH))\r\n\t\t\t\t\t&& (!opStr.equals(AQConstants.IN_OPERATOR))\r\n\t\t\t\t\t&& (!opStr.equals(AQConstants.Between))\r\n\t\t\t\t\t&& (!opStr.equals(AQConstants.Not_In))\r\n\t\t\t\t\t&& (!opStr.equalsIgnoreCase(AQConstants.IS_NULL))\r\n\t\t\t\t\t&& (!opStr.equalsIgnoreCase(AQConstants.IS_NOT_NULL))\r\n\t\t\t\t\t&& (!opStr.equalsIgnoreCase(AQConstants.NOT_BETWEEN)))\r\n\r\n\t\t\t{\r\n\t\t\t\trelationalOperatorsList.add(opStr);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn relationalOperatorsList;\r\n\t}", "public ExpressionPart parseExpressions (String[] exp, QBParser parser) {\n\t\texp = fixArray(exp);\n\t//\tSystem.out.println(\"EXPS: \" + Arrays.toString(exp));\n\t\tif(exp[0].startsWith(\"if\")){\n\t\t\tif( (exp[0].length() > 2 && !Character.isLetterOrDigit( exp[0].charAt(2) )) || exp[0].length() == 2){\n\t\t\t\tString name = ExpressionPuller.pullIfThenElse(exp, parser.getCurrentCompilingNamespace());\n\t\t\t\texp = new String[]{name};\n\t\t\t}\n\t\t}\n\t\t\n//\t\tif(exp[0].equals(\"if\")){\n//\t\t\tint thenIdx = MArrays.indexOf(exp, \"then\");\n//\t\t\tString ifPart = MArrays.concat(exp, 1, thenIdx-1);\n//\t\t\t\n//\t\t\tint elseIdx = MArrays.indexOf(exp, \"else\");\n//\t\t\tString thenPart = MArrays.concat(exp, thenIdx+1, elseIdx-thenIdx-1);\n//\t\t\t\n//\t\t\tString elsePart = MArrays.concat(exp, elseIdx+1);\n//\t\t\t\n//\t\t\tExpressionPart ifExpPart = parseExpressions(ifPart);\n//\t\t\tExpressionPart thenExpPart = parseExpressions(thenPart);\n//\t\t\tExpressionPart elseExpPart = parseExpressions(elsePart);\n//\t\t\t\n//\t\t\tExpressionPart totalIf = ExpressionPart.makePrimaryExpressionPart(null, \"if\", new ExpressionPart[]{ifExpPart});\n//\t\t\tExpressionPart totalThen = ExpressionPart.makePrimaryExpressionPart(totalIf, \"then\", new ExpressionPart[]{thenExpPart});\n//\t\t\tExpressionPart total = ExpressionPart.makePrimaryExpressionPart(totalThen, \"else\", new ExpressionPart[]{elseExpPart});\n//\t\t\n//\t\t\treturn total;\n//\t\t}\n\t\t\n\n\t\t// Go though all of the operators in order from their respective order of operations.\n\t\tfor( String[] ops : operators() ){\n\t\t\t\n\t\t\tint idx = -1;\n\t\t\t// Some operators have the same precedence, so we need to deal with that\n\t\t\tfor( String op : ops ) {\n\t\t\t\tidx = Math.max(idx, MArrays.lastIndexOf(exp, op));\n\t\t\t}\n\t\t\t\n\t\t\t// if we found one of these opeartors, then we\n\t\t\t// need to deal with it.\n\t\t\tif( idx != -1 ){\n\t\t\t\t// get the function (thats easy, it is what we just found)\n\t\t\t\tString function = exp[idx];\n\t\t\t\t\n\t\t\t\t// get all stuff before and after this point\n\t\t\t\t// the first is the caller and the second is the\n\t\t\t\t// argument believe me it works because\n\t\t\t\t// 3 * 4 / 6 + 1 * 2 - 3 ^ 2 * 2 = (3 * 4 / 6 + 1 * 2) - (3 ^ 2 * 2)\n\t\t\t\tString[] before = Arrays.copyOfRange(exp, 0, idx);\n\t\t\t\tString[] after = Arrays.copyOfRange(exp, idx + 1, exp.length);\n\t\t\t\t\n\t\t\t\t// now, using recursion we make the expression parts out of them\n\t\t\t\tExpressionPart part1 = parseExpressions( before, parser );\n\t\t\t\tExpressionPart part2 = parseExpressions( after, parser );\n\t\t\t\t\n\t\t\t\tif(function.equals(\"->\")){\n\t\t\t\t\tExpressionPart tmp = part1;\n\t\t\t\t\tpart1 = part2;\n\t\t\t\t\tpart2 = tmp;\n\t\t\t\t}\n\t\t\t\t// now put the whole thing together, and you now have a mess\n\t\t\t\treturn ExpressionPart.makePrimaryExpressionPart(part1, function, new ExpressionPart[]{part2} );\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t// If there are no more \"Binary Functions\"\n\t\t// what is left must be grouped or it must be a function\n\t\tif( exp.length == 1 ){\n\t\t\tString str = exp[0];\n\t\t\tif( completelySurrounded(str) ){\n\t\t\t\tString middle = str.substring(1, str.length() - 1);\n\t\t\t\treturn parseExpressions(middle);\n\t\t\t}\n\t\t\t// This must then be a function\n\t\t\telse if(str.endsWith(\")\")){\n\t\t\t\t\n\t\t\t\t// this function will get the last index of a dot ('.') that is outside parenthesis\n\t\t\t\t// the dot is used to determine if the function is being called by an object\n\t\t\t\tint dotIdx = lastDotIndex(str);\n\t\t\t\t\n\t\t\t\t// now we find the index that the arguments start on\n\t\t\t\tint idx = str.indexOf('(',dotIdx);\n\t\t\t\t\n\t\t\t\t// check to make sure there is one.\n\t\t\t\tif( idx < 0 ){\n\t\t\t\t\tthrow new RuntimeException(\"Expected '('\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// from here it is pretty straight forward to get the function,\n\t\t\t\t// caller and parameters.\n\t\t\t\tString function = str.substring(0, idx);\n\t\t\t\tString args = str.substring(idx + 1, str.length() - 1);\n\t\t\t\tString caller = null;\n\t\t\t\t\n\t\t\t\t// if there is not dot, then there is no caller and the function is global\n\t\t\t\tif( dotIdx >= 0 ){\n\t\t\t\t\tcaller = function.substring( 0, dotIdx );\n\t\t\t\t\tfunction = function.substring( dotIdx + 1 );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// now use recursion to build the parts and make a new part.\n\t\t\t\tExpressionPart part1 = caller !=null ? parseExpressions(caller) : null;\n\t\t\t\tExpressionPart[] parts = parseParams(args);\n\t\t\t\t\n\t\t\t\treturn ExpressionPart.makePrimaryExpressionPart(part1, function, parts);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\t// This is the base case, the very bottom of the ladder, this is where all\n\t\t\t\t// that is left is some entity that has no function.\n\t\t\t\treturn ExpressionPart.makeExpressionPart(exp[0]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tthrow new RuntimeException(\"Syntax Error\");\n\t}", "public Code visitOperatorNode(ExpNode.OperatorNode node) {\n beginGen(\"Operator\");\n Code code;\n ExpNode args = node.getArg();\n switch (node.getOp()) {\n case ADD_OP:\n code = args.genCode(this);\n code.generateOp(Operation.ADD);\n break;\n case SUB_OP:\n code = args.genCode(this);\n code.generateOp(Operation.NEGATE);\n code.generateOp(Operation.ADD);\n break;\n case MUL_OP:\n code = args.genCode(this);\n code.generateOp(Operation.MPY);\n break;\n case DIV_OP:\n code = args.genCode(this);\n code.generateOp(Operation.DIV);\n break;\n case EQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.EQUAL);\n break;\n case LESS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.LESS);\n break;\n case NEQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.EQUAL);\n code.genBoolNot();\n break;\n case LEQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.LESSEQ);\n break;\n case GREATER_OP:\n /* Generate argument values in reverse order and use LESS */\n code = genArgsInReverse((ExpNode.ArgumentsNode)args);\n code.generateOp(Operation.LESS);\n break;\n case GEQUALS_OP:\n /* Generate argument values in reverse order and use LESSEQ */\n code = genArgsInReverse((ExpNode.ArgumentsNode)args);\n code.generateOp(Operation.LESSEQ);\n break;\n case NEG_OP:\n code = args.genCode(this);\n code.generateOp(Operation.NEGATE);\n break;\n default:\n errors.fatal(\"PL0 Internal error: Unknown operator\",\n node.getLocation());\n code = null;\n }\n endGen(\"Operator\");\n return code;\n }", "private List<IndexExpression> filterToIndexExpressions(Expression expression) throws IOException\n {\n List<IndexExpression> indexExpressions = new ArrayList<IndexExpression>();\n Expression.BinaryExpression be = (Expression.BinaryExpression)expression;\n ByteBuffer name = ByteBuffer.wrap(be.getLhs().toString().getBytes());\n ByteBuffer value = ByteBuffer.wrap(be.getRhs().toString().getBytes());\n switch (expression.getOpType())\n {\n case OP_EQ:\n indexExpressions.add(new IndexExpression(name, IndexOperator.EQ, value));\n break;\n case OP_GE:\n indexExpressions.add(new IndexExpression(name, IndexOperator.GTE, value));\n break;\n case OP_GT:\n indexExpressions.add(new IndexExpression(name, IndexOperator.GT, value));\n break;\n case OP_LE:\n indexExpressions.add(new IndexExpression(name, IndexOperator.LTE, value));\n break;\n case OP_LT:\n indexExpressions.add(new IndexExpression(name, IndexOperator.LT, value));\n break;\n case OP_AND:\n indexExpressions.addAll(filterToIndexExpressions(be.getLhs()));\n indexExpressions.addAll(filterToIndexExpressions(be.getRhs()));\n break;\n default:\n throw new IOException(\"Unsupported expression type: \" + expression.getOpType().name());\n }\n return indexExpressions;\n }", "public interface Unary extends Expr \n{\n /** Unary expression operator. */\n public static enum Operator {\n BIT_NOT (\"~\", true),\n NEG (\"-\", true),\n POST_INC (\"++\", false),\n POST_DEC (\"--\", false),\n PRE_INC (\"++\", true),\n PRE_DEC (\"--\", true),\n POS (\"+\", true),\n NOT (\"!\", true),\n CARET (\"^\", true),\n BAR (\"|\", true),\n AMPERSAND(\"&\", true),\n STAR (\"*\", true),\n SLASH (\"/\", true),\n PERCENT (\"%\", true);\n\n protected boolean prefix;\n protected String name;\n\n private Operator(String name, boolean prefix) {\n this.name = name;\n this.prefix = prefix;\n }\n\n /** Returns true of the operator is a prefix operator, false if\n * postfix. */\n public boolean isPrefix() { return prefix; }\n\n @Override public String toString() { return name; }\n }\n\n public static final Operator BIT_NOT = Operator.BIT_NOT;\n public static final Operator NEG = Operator.NEG;\n public static final Operator POST_INC = Operator.POST_INC;\n public static final Operator POST_DEC = Operator.POST_DEC;\n public static final Operator PRE_INC = Operator.PRE_INC;\n public static final Operator PRE_DEC = Operator.PRE_DEC;\n public static final Operator POS = Operator.POS;\n public static final Operator NOT = Operator.NOT;\n public static final Operator CARET = Operator.CARET;\n public static final Operator BAR = Operator.BAR;\n public static final Operator AMPERSAND = Operator.AMPERSAND;\n public static final Operator STAR = Operator.STAR;\n public static final Operator SLASH = Operator.SLASH;\n public static final Operator PERCENT = Operator.PERCENT;\n\n /** The sub-expression on that to apply the operator. */\n Expr expr();\n /** Set the sub-expression on that to apply the operator. */\n Unary expr(Expr e);\n\n /** The operator to apply on the sub-expression. */\n Operator operator();\n /** Set the operator to apply on the sub-expression. */\n Unary operator(Operator o);\n}", "@Override\n\tpublic String visitExpr(MicroParser.ExprContext ctx) {\n\t\tString prefix = visit(ctx.expr_prefix());\n\t\tString expr = prefix + visit(ctx.term());\n\t\t\n\t\t//System.out.println(\"in visit expr: \"+expr);\n\t\t//System.out.println(\"in visit expr: prefix is: \"+prefix);\n\t\tif((prefix.contentEquals(\"\"))) return expr;\n\t\tString op1, op2, result;\n\t\tString type = currentType;\n\t\tString[] ids = expr.split(\"\\\\-|\\\\+\");\n\t List<String> operands = new ArrayList<String>();\n\t List<Character> addops = new ArrayList<Character>();\n\t \n\t for(int i=0;i<expr.length();i++) {\n\t \tif(expr.charAt(i)=='+' || expr.charAt(i)=='-')\n\t \t\taddops.add(expr.charAt(i));\n\t }\n\t //create a list of addops\n\t \n\t //create a list of operands \n\t for(String i:ids) \n\t \t operands.add(i);\n\t \n\t op1 = operands.get(0);\n\t op2 = operands.get(1);\n\t temp = new Temporary(type);\n\t result = temp.fullName;\n\t tempList.addT(temp);\n\t //System.out.println(\"in visit expr, ops are: \"+op1+\" \"+ op2);\n\t //System.out.println(\"in visit expr, result is: \"+ result);\n\t if(addops.get(0)=='+') {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \t\n\t else {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \n\t \t\n\t if(operands.size()==0) return result;\n\t \n\t for(int i=0; i<operands.size();i++) {\n\t \top1 = result;\n\t \top2 = operands.get(i);\n\t \ttemp = new Temporary(type);\n\t \tresult = temp.fullName;\n\t \ttempList.addT(temp);\n\t \tif(addops.get(0)=='+') {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t \t}\n\t\t \t\n\t\t else {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t\t }\n\t\t \t\n\t }\n\t return result; \n\t\t\n\t}", "Expression addExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = multExpression();\r\n\t\twhile(isKind(OP_PLUS, OP_MINUS)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = multExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "private List<Condition> generate(Expression exp)\n {\n return generate(exp, fun, callers);\n }", "Operands createOperands();", "@Override\n public String toString() {\n return \"Expression\";\n }", "FunctionAsAttribute listeExpressions(FunctionAsAttribute ff) throws EvaluatorException {\r\n FunctionAsAttribute ret = ff;\r\n if (ArithmeticExpressionEvaluator.isStartOfArithmeticExpression(actualSymbol()) /*&& lookafterSymbol().type() != SymboleTypes.DOUBLEPOINT*/) {\r\n CombinedReturnObject recNum = eAE.expression();\r\n //----addNew\r\n\r\n ret.listOfCombined.addAll(recNum.asArrayList());\r\n //----addNew\r\n //----Ancient\r\n //ret.listOfCombined.add(recNum);\r\n //----Ancient\r\n\r\n if (actualSymbol().type() == SymboleTypes.COMMA || actualSymbol().type() == SymboleTypes.CLOSEDPARENTHESIS) {\r\n ret = listeExpression2(ret);\r\n } else {\r\n throw new UnexpectedSymbolExceptionExpectedAnotherArgumentOrAClosedParenthesis(actualSymbol());\r\n }\r\n } /*else if (((actualSymbol().type() == SymboleTypes.VARIABLE) && (lookafterSymbol().type() == SymboleTypes.DOUBLEPOINT))) {\r\n Symbol varsymb = actualSymbol();\r\n nextSymbol();\r\n nextSymbol();\r\n if (actualSymbol().type() == SymboleTypes.VARIABLE) {\r\n Symbol varsymb2 = actualSymbol();\r\n nextSymbol();\r\n ff.listOfCombined = eAE.myEvaluator().getVariableFamilyValues(varsymb.stringValue(), varsymb2.stringValue());\r\n } else {\r\n System.out.println(\"Expected a variable and found - \" + actualSymbol().toString());\r\n throw new UnexpectedSymbolException(actualSymbol());\r\n }\r\n }*/ else if (actualSymbol().type() == SymboleTypes.CLOSEDPARENTHESIS) {\r\n ret = ff;\r\n } else {\r\n\r\n //System.out.println(\"FNCError ! - \" + actualSymbol());\r\n throw new BadParenthesizedExpectedClosedException(actualSymbol());\r\n }\r\n return ret;\r\n }", "private static String evaluate(ArrayList<String> operators, ArrayList<String> operands) {\n\n /* Check for valid input. There should be one more operand than operator. */\n if (operands.size() != operators.size()+1)\n return \"Invalid Input\";\n\n String current;\n int value;\n int numMultiply = 0;\n int numAdd = 0;\n int currentOperator = 0;\n\n /* Get the number of multiplications in the operators list. */\n for (int i = 0; i < operators.size(); i++) {\n\n if (operators.get(i).equals(\"*\"))\n numMultiply++;\n }\n\n /* Get the number of addition and subtraction in the operators list. */\n for (int i = 0; i < operators.size(); i++) {\n\n if (operators.get(i).equals(\"-\") || operators.get(i).equals(\"+\"))\n numAdd++;\n }\n\n /* Evaluate multiplications first, from left to right. */\n while (numMultiply > 0){\n\n current = operators.get(currentOperator);\n if (current.equals(\"*\")) {\n\n /* When multiplication is found in the operators, get the associative operands from the operands list.\n Associative operands are found in the operands list at indexes current operator and current operator + 1.\n */\n value = Integer.parseInt(operands.get(currentOperator)) * Integer.parseInt(operands.get(currentOperator+1));\n\n /* Remove the operands and the operator since they have been evaluated and add the evaluated answer back in the operands. */\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n\n numMultiply--;\n }\n else\n currentOperator++;\n }\n\n currentOperator = 0;\n\n /* Next evaluate the addition and subtraction, from left to right. */\n while (numAdd > 0){\n current = operators.get(currentOperator);\n if (current.equals(\"+\")) {\n\n value = Integer.parseInt(operands.get(currentOperator)) + Integer.parseInt(operands.get(currentOperator+1));\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n numAdd--;\n }\n\n else if (current.equals(\"-\")) {\n\n value = Integer.parseInt(operands.get(currentOperator)) - Integer.parseInt(operands.get(currentOperator+1));\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n numAdd--;\n }\n else\n currentOperator++;\n }\n\n /* When all the operations have been evaluated, the final answer will be in the first element of the operands list. */\n return operands.get(0);\n }", "public interface Operator {\n public Object operate(List<LispStatement> operands);\n\n}", "public Node expression()\r\n\t{\r\n\t\tNode lhs = term();\r\n\t\tif(lhs!=null)\r\n\t\t{\r\n\t\t\tint index = lexer.getPosition();\r\n\t\t\tLexer.Token token = lexer.getToken();\r\n\t\t\twhile(token == Lexer.Token.PLUS\r\n\t\t\t\t||token == Lexer.Token.MINUS)\r\n\t\t\t{\r\n\t\t\t\tNode rhs = term(); \r\n\t\t\t\tif(rhs!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(token == Lexer.Token.PLUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Add(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(token == Lexer.Token.MINUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Sub(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tindex = lexer.getPosition();\r\n\t\t\t\t\ttoken = lexer.getToken();\r\n\t\t\t\t}\r\n\t\t\t\telse break;\r\n\t\t\t}\r\n\t\t\tlexer.setPosition(index);\r\n\t\t}\r\n\t\treturn lhs;\r\n\t}", "public static List<String> splitByLogicOperators(String str){\n Matcher matcher = logicOperatorPattern.matcher(str);\n List<String> result = new ArrayList<>();\n int start = 0;\n while (matcher.find()) {\n result.add(str.substring(start, matcher.start()).trim());\n result.add(str.substring(matcher.start(), matcher.end()).trim());\n start = matcher.end();\n }\n result.add(str.substring(start, str.length()).trim());\n return result;\n }", "private static List<String> tokenize(String expression) {\r\n\t\tString[] arrayTokens = expression.split(\r\n\t\t\t\t\"((?<=\\\\+)|(?=\\\\+))|((?<=\\\\-)|(?=\\\\-))|((?<=\\\\*)|(?=\\\\*))|((?<=\\\\/)|(?=\\\\/))|((?<=\\\\()|(?=\\\\())|((?<=\\\\))|(?=\\\\)))\");\r\n\r\n\t\t// not all minus sign is an operator. It can be the signal of a negative number.\r\n\t\t// The following loop will \"merge\" the minus sign with the next number when it\r\n\t\t// is only a signal\r\n\t\tList<String> listTokens = new ArrayList<String>(Arrays.asList(arrayTokens));\r\n\t\tfor (int i = 0; i < listTokens.size() - 1; i++) {\r\n\t\t\tif (listTokens.get(i).equals(\"-\")) {\r\n\t\t\t\tif (i == 0 || listTokens.get(i - 1).equals(\"(\")) {\r\n\t\t\t\t\tlistTokens.set(i + 1, \"-\" + listTokens.get(i + 1));\r\n\t\t\t\t\tlistTokens.remove(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn listTokens;\r\n\t}", "OpFList createOpFList();", "public List<OperatorImpl> getChildOperators() {\n\t\treturn Collections.emptyList();\n\t}", "private void initOperators(Set<String> s) {\n\t\ts.add(\"=\");\n\t\ts.add(\"+\");\n\t\ts.add(\"-\");\n\t\ts.add(\"*\");\n\t\ts.add(\"/\");\n\t\ts.add(\"(\");\n\t\ts.add(\")\");\n\t\ts.add(\";\");\n }", "Expression getExp();", "@Override\r\n public Collection getOperators() throws Exception\r\n {\n return null;\r\n }", "public Object getExpression();", "Expression(String expressionString) throws IllegalArgumentException {\r\n tokenList = new ArrayList<String>();\r\n StringBuilder token = new StringBuilder();\r\n\r\n // ADD YOUR CODE BELOW HERE\r\n // ..\r\n for (int i = 0; i < expressionString.length(); i++) {\r\n Character first = expressionString.charAt(i);\r\n if (first == ' ') {\r\n continue;\r\n }\r\n if (first == '(' || first == ')' || first == '[' || first == ']') {\r\n tokenList.add(expressionString.substring(i, i + 1));\r\n }\r\n if (first == '+' || first == '-' || first == '*' || first == '/') {\r\n if (expressionString.charAt(i + 1) == '+' || expressionString.charAt(i + 1) == '-') {\r\n tokenList.add(expressionString.substring(i, i + 2));\r\n i++;\r\n continue;\r\n }\r\n tokenList.add(expressionString.substring(i, i + 1));\r\n }\r\n if (Character.isDigit(first)) {\r\n int k = i + 1;\r\n while (Character.isDigit(expressionString.charAt(k))) {\r\n k++;\r\n }\r\n tokenList.add(expressionString.substring(i, k));\r\n i = k - 1;\r\n\r\n }\r\n }\r\n }", "public List<String> addOperators(String num, int target) {\n if (null == num || num.equals(\"\")) {\n return Collections.EMPTY_LIST;\n }\n List<String> result = new ArrayList<>();\n StringBuilder stringBuilder = new StringBuilder();\n numberWithOperators(result, stringBuilder, num.toCharArray(), 0, target, 0, 0);\n return result;\n }", "@Override\n\tpublic void parse() throws Exception {\n\t\tLogger.log(\"Parsing expression: \" + getWords().toString(), 4);\n\t\tint wordsSize= getWords().size();\n\t\tString word;\n\t\tint lastSplitIndex = 0;\n\t\tFExpressionSide fExpSide;\n\t\tfExpSideList = new LinkedList<FExpressionSide>();\n\t\tfor(int i=0; i < wordsSize; i++){\n\t\t\tword = getWords().get(i);\n\t\t\t\n\t\t\tif(Operators.INFIX_OPS.contains(word)){\n\t\t\t\tfExpSide = new FExpressionSide(this);\n\t\t\t\tfExpSide.setWords(getWords().subList(lastSplitIndex, i));\n\t\t\t\tfExpSide.setOperator(word);\n\t\t\t\t\n\t\t\t\tlastSplitIndex = i +1;\n\t\t\t\tfExpSideList.add(fExpSide);\n\t\t\t}\n\t\t}\n\t\tfExpSide = new FExpressionSide(this);\n\t\tfExpSide.setWords(getWords().subList(lastSplitIndex, wordsSize));\n\t\tfExpSideList.add(fExpSide);\n\t\t\n\t\tfor(FExpressionSide f : fExpSideList){\n\t\t\tf.parse();\n\t\t}\n\t\t\n\t\t\n\t}", "public List<SortExpression<ProductProjection>> getExpressions() {\n return expressions;\n }", "public String operate() {\r\n\r\n\t\t// Logger log = Logger.getLogger(IterationFactory.class);\r\n\t\tDecimalFormat form = new DecimalFormat(\"0.0000\");\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tOperationFactory operateF;\r\n\t\tList<Integer> valueList;\r\n\r\n\t\tIterator<String> inputItr = this.getInputList().iterator();\r\n\r\n\t\tIterator<Character> opItr = this.getOperator().iterator();\r\n\r\n\t\ttry {\r\n\t\t\t/* Domain check */\r\n\t\t\tif (this.getInputList().size() <= 1 && this.getInputList().size() >= 10) {\r\n\t\t\t\tthrow new ValuePairOutOfLimit(this.getInputList().size());\r\n\t\t\t}\r\n\r\n\t\t\twhile (inputItr.hasNext()) {\r\n\r\n\t\t\t\t/* To get individual operands from operand sets */\r\n\t\t\t\tvalueList = u.toValueList(inputItr.next());\r\n\t\t\t\tIterator<Integer> valItr = valueList.iterator();\r\n\r\n\t\t\t\t/* Check for validity of operands and string format */\r\n\t\t\t\tif (valueList.size() < Constant.TWO)\r\n\t\t\t\t\tthrow new OperandException();\r\n\t\t\t\tif (valueList.size() > Constant.TWO)\r\n\t\t\t\t\tthrow new StringFormatException();\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * If there is empty operator string default operator sets to\r\n\t\t\t\t * plus\r\n\t\t\t\t */\r\n\t\t\t\tif (operator.size() == 0)\r\n\t\t\t\t\toperateF = new OperationFactory(valItr.next(), valItr.next(), Constant.PLUS);\r\n\t\t\t\telse\r\n\t\t\t\t\toperateF = new OperationFactory(valItr.next(), valItr.next(), opItr.next());\r\n\r\n\t\t\t\t/* Output */\r\n\t\t\t\tsb.append(operateF.getmOp().getmOperand1() + operateF.getmOp().getmWord()\r\n\t\t\t\t\t\t+ operateF.getmOp().getmOperand2() + \" = \" + form.format(operateF.operate()) + \"\\n\");\r\n\r\n\t\t\t\t/*To reset operator iterator.*/\r\n\t\t\t\tif (!opItr.hasNext())\r\n\t\t\t\t\topItr = this.getOperator().iterator();\r\n\t\t\t}\r\n\t\t} catch (IntegerOutOfLimit e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (InvalidOperator e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (OperandException e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (StringFormatException e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (ValuePairOutOfLimit e) {\r\n\t\t\tsb.append(e);\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "@Override\n\tpublic OpIterator[] getChildren() {\n\t\tOpIterator[] childOperators = new OpIterator[1];\n\t\tchildOperators[0] = childOperator;\n\t\treturn childOperators;\n\t}", "public void addOperator(Operator op) {\r\n\t\telements.add(op);\r\n\t}", "private static Expression constructBinaryFilterTreeWithAnd(List<Expression> expressions) {\n if (expressions.size() == 2) {\n return new LogicAndExpression(expressions.get(0), expressions.get(1));\n } else {\n return new LogicAndExpression(\n expressions.get(0),\n constructBinaryFilterTreeWithAnd(expressions.subList(1, expressions.size())));\n }\n }", "public List<Subscription> getExpressions() {\n return expressions;\n }", "public static List<Element> Exp2Rpn(String expression) {\r\n\t\tList<String> tokenList = tokenize(expression);\r\n\t\tList<Element> rpn = new LinkedList<Element>();\r\n\t\tStack<Element> stack = new Stack<Element>();\r\n\r\n\t\tfor (String token : tokenList) {\r\n\t\t\tElement currentElement = string2Element(token);\r\n\r\n\t\t\tif (currentElement.isOperator()) {\r\n\t\t\t\twhile (!stack.empty() && precedence(stack.peek(), currentElement) == 1) {\r\n\t\t\t\t\trpn.add(stack.pop());\r\n\t\t\t\t}\r\n\t\t\t\tstack.push(currentElement);\r\n\t\t\t} else if (currentElement.isNumber()) {\r\n\t\t\t\trpn.add(currentElement);\r\n\t\t\t} else if (currentElement.isLeftParenthesis()) {\r\n\t\t\t\tstack.push(currentElement);\r\n\t\t\t} else if (currentElement.isRightParenthesis()) {\r\n\t\t\t\twhile (!stack.peek().isLeftParenthesis()) {\r\n\t\t\t\t\trpn.add(stack.pop());\r\n\t\t\t\t}\r\n\t\t\t\tstack.pop(); // pops '('\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\twhile (!stack.empty()) {\r\n\t\t\trpn.add(stack.pop());\r\n\t\t}\r\n\r\n\t\treturn rpn;\r\n\t}", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\t\r\n\t\tString BETTEST = \"/+8*62-9*43\";\r\n\r\n\r\n\t\tBinaryExpressionTree<String>listBET = new BinaryExpressionTree<String>();\r\n\r\n\t\tfor (int i = 0; i < BETTEST.length(); i++) {\r\n\t\t\t\r\n\t\t\tlistBET.add(\"\" + BETTEST.charAt(i));\t\t\t\r\n\t\t}\r\n\r\n\r\n\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\tlistBET.PreorderTraversal();\r\n\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\tlistBET.PostorderTraversal();\r\n\r\n\r\n\t\t String BETTEST2 =\"/+84*32\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET2 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST2.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET2.add(\"\" + BETTEST2.charAt(i));\t\r\n\t\t\r\n\t\r\n\t}\r\n\t\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET2.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\tlistBET2.PostorderTraversal();\r\n\t\t\t\r\n String BETTEST3 =\"*-92/31\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET3 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST3.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET3.add(\"\" + BETTEST3.charAt(i));\t\r\n\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t}\r\n\t\t System.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET3.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\t\r\n\t\t\tlistBET3.PostorderTraversal();\r\n \r\n\t\t\tString BETTEST4 =\"-/*8043\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET4 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST4.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET4.add(\"\" + BETTEST4.charAt(i));\t\r\n\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t}\r\n\t\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET4.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\tlistBET4.PostorderTraversal();\r\n}", "LogicExpression getExpr();", "public static Expression getExpression(Object value) {\n\t\tif (isBool(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createExprBool((Boolean) value);\n\t\t} else if (isFloat(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createExprFloat((BigDecimal) value);\n\t\t} else if (isInt(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createExprInt((BigInteger) value);\n\t\t} else if (isString(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createExprString((String) value);\n\t\t} else if (isList(value)) {\n\t\t\tExprList list = IrFactory.eINSTANCE.createExprList();\n\t\t\tint length = Array.getLength(value);\n\t\t\tfor (int i = 0; i < length; i++) {\n\t\t\t\tlist.getValue().add(getExpression(Array.get(value, i)));\n\t\t\t}\n\t\t\treturn list;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "private static List<Token> toReversePolishNotation(List<Token> tokens) {\n Stack<Token> operators = new Stack<>();\n List<Token> result = new LinkedList<>();\n\n Map<PredicateTokens, Consumer<Token>> tokensActions = new HashMap<>();\n tokensActions.put(PredicateTokens.VALUE, result::add);\n tokensActions.put(PredicateTokens.NEGATION, operators::push);\n tokensActions.put(PredicateTokens.OPEN_BRACKET, operators::push);\n tokensActions.put(PredicateTokens.CLOSE_BRACKET, t -> {\n while (PredicateTokens.OPEN_BRACKET != toPredicateToken(operators.peek())) {\n result.add(operators.pop());\n }\n\n operators.pop();\n });\n tokensActions.put(PredicateTokens.OR, t -> {\n try {\n while (PredicateTokens.NEGATION == toPredicateToken(operators.peek())\n || PredicateTokens.AND == toPredicateToken(operators.peek())) {\n result.add(operators.pop());\n }\n } catch (EmptyStackException ignored) {\n }\n\n operators.add(t);\n });\n tokensActions.put(PredicateTokens.AND, t -> {\n try {\n while (PredicateTokens.NEGATION == toPredicateToken(operators.peek())) {\n result.add(operators.pop());\n }\n } catch (EmptyStackException ignored) {\n }\n\n operators.add(t);\n });\n\n for (Token t : tokens) {\n tokensActions.get(toPredicateToken(t)).accept(t);\n }\n\n while (!operators.isEmpty()) {\n result.add(operators.pop());\n }\n\n return result;\n }", "OperandListGroup createOperandListGroup();", "private List<String> splitEquation(String equation) {\n List<String> result = new ArrayList<>();\n StringBuilder sb = new StringBuilder();\n int i = 0;\n while (i < equation.length()) {\n char c = equation.charAt(i);\n if (c == '+' || c == '-') {\n if (sb.length() > 0) {\n result.add(sb.toString());\n sb = new StringBuilder();\n }\n sb.append(c);\n } else {\n sb.append(c);\n }\n ++ i;\n }\n result.add(sb.toString());\n return result;\n }", "private Object parseExpr() throws IOException, FSException{\n\n ETreeNode curNode=null;\n boolean end=false;\n Object val;\n boolean negate=false; //flag for unary minus\n boolean not=false;//flag for unary not.\n boolean prevOp=true;//flag - true if previous value was an operator\n\n while (!end){\n\n switch (tok.ttype) {\n\n\n //the various possible 'values'\n case LexAnn.TT_INTEGER:\n case LexAnn.TT_DOUBLE:\n case LexAnn.TT_STRING:\n case LexAnn.TT_WORD:\n case LexAnn.TT_FUNC:\n case LexAnn.TT_NULL:\n case LexAnn.TT_ARRAY:{\n\n if (!prevOp){\n parseError(\"Expected Operator\");\n } else {\n\n val=null;\n ETreeNode node=new ETreeNode();\n node.type=ETreeNode.E_VAL;\n\n switch (tok.ttype){\n //numbers - just get them\n case LexAnn.TT_INTEGER:{\n val=tok.value;\n break;\n }\n case LexAnn.TT_DOUBLE:{\n val=tok.value;\n break;\n }\n //functions - evaluate them\n case LexAnn.TT_FUNC:{\n String name=(String)tok.value;\n getNextToken();\n val=parseCallFunc(name);\n break;\n }\n //arrays - evaluate them\n case LexAnn.TT_ARRAY:{\n String name=(String)tok.value;\n getNextToken(); //should be a '['\n getNextToken(); //should be the index\n Object index=parseExpr();\n try {\n val=host.getVarEntry(name,index);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n break;\n }\n //variables - resolve them\n case LexAnn.TT_WORD:{\n if (hasVar((String)tok.value)) {\n val=getVar((String)tok.value);\n } else {\n try {\n val=host.getVarEntry((String)tok.value,null);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n }\n break;\n }\n //strings - just get again\n case LexAnn.TT_STRING:{\n val=tok.value;\n break;\n }\n //null\n case LexAnn.TT_NULL:{\n val=new FSObject(null);\n break;\n }\n }\n\n //unary not\n if (not){\n if (val instanceof Integer){\n if (((Integer)val).intValue()==0){\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n not=false;\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Boolean) {\n if (((FSObject)val).getObject().equals(Boolean.FALSE)) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Integer) {\n if (((Integer)((FSObject)val).getObject()).intValue()==0) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else {\n String msg=val.getClass().getName();\n if (val instanceof FSObject) msg=\"FSObject with \"+((FSObject)val).getNullClass().getName();\n parseError(\"Type mismatch for ! \"+msg);\n }\n }\n\n //unary minus\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n node.value=val;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n\n prevOp=false;\n }\n break;\n }\n /*operators - have to be more carefull with these.\n We build an expression tree - inserting the nodes at the right\n points to get a reasonable approximation to correct operator\n precidence*/\n case LexAnn.TT_LEQ:\n case LexAnn.TT_LNEQ:\n case LexAnn.TT_MULT:\n case LexAnn.TT_DIV:\n case LexAnn.TT_MOD:\n case LexAnn.TT_PLUS:\n case LexAnn.TT_MINUS:\n case LexAnn.TT_LGR:\n case LexAnn.TT_LGRE:\n case LexAnn.TT_LLSE:\n case LexAnn.TT_LLS:\n case LexAnn.TT_NOT:\n case LexAnn.TT_LAND:\n case LexAnn.TT_LOR: {\n if (prevOp){\n if (tok.ttype==LexAnn.TT_MINUS){\n negate=true;\n } else if (tok.ttype==LexAnn.TT_NOT){\n not=true;\n } else {\n parseError(\"Expected Expression\");\n }\n } else {\n\n ETreeNode node=new ETreeNode();\n\n node.type=ETreeNode.E_OP;\n node.value=new Integer(tok.ttype);\n\n if (curNode.parent!=null){\n\n int curPrio=getPrio(tok.ttype);\n int parPrio=\n getPrio(((Integer)curNode.parent.value).intValue());\n\n if (curPrio<=parPrio){\n //this nodes parent is the current nodes grandparent\n node.parent=curNode.parent.parent;\n //our nodes left leg is now linked into the current nodes\n //parent\n node.left=curNode.parent;\n //hook into grandparent\n if (curNode.parent.parent!=null){\n curNode.parent.parent.right=node;\n }\n\n //the current nodes parent is now us (because of above)\n curNode.parent=node;\n //set the current node.\n curNode=node;\n } else {\n //current node's parent's right is now us.\n curNode.parent.right=node;\n //our nodes left is the current node.\n node.left=curNode;\n //our nodes parent is the current node's parent.\n node.parent=curNode.parent;\n //curent nodes parent is now us.\n curNode.parent=node;\n //set the current node.\n curNode=node;\n }\n } else {\n //our node's left is the current node\n node.left=curNode;\n //current node's parent is us now\n //we don't have to set our parent, as it is null.\n curNode.parent=node;\n //set current node\n curNode=node;\n }\n prevOp=true;\n }\n break;\n }\n case '(':\n //start of an bracketed expression, recursively call ourself\n //to get a value\n {\n getNextToken();\n val=parseExpr();\n\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n ETreeNode node=new ETreeNode();\n node.value=val;\n node.type=ETreeNode.E_VAL;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n prevOp=false;\n break;\n }\n\n default: {\n end=true;\n }\n\n }\n if (!end){\n tok.nextToken();\n }\n }\n\n //find the top of the tree we just built.\n if (curNode==null) parseError(\"Missing Expression\");\n while(curNode.parent!=null){\n curNode=curNode.parent;\n }\n\n\n return evalETree(curNode);\n\n }", "@Override\n public Expression[] accumulateExpressions() {\n if (arguments == 0 || countLiteral) {\n return new Expression[] {/* count = */ plus(count, literal(1L))};\n }\n\n // other case need to determine the value of the element\n List<Expression> operandExpressions = new ArrayList<>();\n for (int i = 0; i < arguments; i++) {\n operandExpressions.add(operand(i));\n }\n Expression operandExpression =\n operandExpressions.stream()\n .map(ExpressionBuilder::isNull)\n .reduce(ExpressionBuilder::or)\n .get();\n return new Expression[] {\n /* count = */ ifThenElse(operandExpression, count, plus(count, literal(1L)))\n };\n }", "@Override\n public String toString() {\n return \"(\" + getExpression1() + \" - \" + getExpression2() + \")\";\n }", "JavaExpression createJavaExpression();", "public List<Expr> getExprs() {\n return getExprList();\n }", "ExpressionInOcl createExpressionInOcl();", "String getExpression();", "String getExpression();", "private List<ParseTree> separateAND(ParseTree t){\n List<ParseTree> nodes = new ArrayList<ParseTree>();\n List<ParseTree> aux = getNodes(t, RulesParser.RULE_conjuncion);\n List<ParseTree> factores = getNodes(t, RulesParser.RULE_factor); // factors enclosed in parentheses, such as ((1+2)+3)\n int count = 0;\n for (int i = 0; i < factores.size(); i++) {\n if (((RulesParser.FactorContext) factores.get(i)).PA() != null){\n count++;\n }\n }\n int params = Trees.findAllRuleNodes(t, RulesParser.RULE_parametros).size();\n params = aux.size() == params ? 0 : params;\n for (int i = 0; i < aux.size() - params - count; i++) {\n if (aux.get(i).getChild(i) instanceof RulesParser.ConjuncionContext){\n nodes.add(((RulesParser.ConjuncionContext) aux.get(i)).igualdad());\n } else{\n nodes.add(aux.get(i));\n }\n }\n Collections.reverse(nodes);\n return nodes;\n }", "@Test\r\n\t\tpublic void testCompileAllOperators() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(\"a = 6\\nb = 6\\nc = a + (b * 4)\\nd = c / 3\");;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.xpath(\"(//input[@name='commit'])[3]\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\"opt_plus\") && elementText.contains(\"opt_div\") && elementText.contains(\"opt_mult\") &! elementText.contains(\"opt_minus\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}", "public interface ExpressionVisitor{\n\n void handel(BracketExpression bracketExpression);\n\n void handel(NaturalNumber naturalNumber);\n\n\n void handel(Sum sum);\n void handel(Difference difference);\n void handel(Product product);\n void handel(Quotient quotient);\n\n void handel(VariableExpression variableExpression);\n}", "public Equation() {\n alpha_arr = new ArrayList<LinkedList<VariableUnit>>();\n for (int i = 0; i < 26; i++) {\n LinkedList<VariableUnit> list = new LinkedList<VariableUnit>();\n alpha_arr.add(list);\n }\n \n op_order = new LinkedList<VariableUnit>();\n }", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "public ExprList expr_list(ExprList el) {\n if (el == null) {\n el = new ExprList();\n }\n el.add(expr());\n expr_list_tail(el);\n return el;\n }", "public void build(List<Node> booleanExpressionToAdd) throws TreeParsingException { \r\n this.tokenType = JdbcGrammarParser.WHEREEXPRESSION;\r\n this.tokenName = JdbcGrammarParser.tokenNames[this.tokenType];\r\n this.logger.debug(\"BUILDING \" + this.tokenName + \"from booleanExpressions\");\r\n \r\n if(booleanExpressionToAdd.size() == 1 && \r\n booleanExpressionToAdd.get(0).getTokenType() == JdbcGrammarParser.BOOLEANEXPRESSIONITEM){\r\n this.expression = booleanExpressionToAdd.get(0);\r\n \r\n //Resolve new pointed Columns\r\n WhereExpressionJoinResolver.columnResolver(\r\n (BooleanExpressionItem)this.expression, this.selectStatement);\r\n }\r\n else {\r\n this.expression = new Conjunction(booleanExpressionToAdd, selectStatement);\r\n }\r\n }", "public ArrayList<Predicate> expandInConjunctiveFormula(){\n\t\tArrayList<Predicate> formula = new ArrayList<Predicate>();\n\t\t\n\t\t// (x, (0,2)) (y,1) \n\t\t//holds positions of the vars\n\t\tHashtable<String,ArrayList<String>> pos = new Hashtable<String,ArrayList<String>>();\n\t\t//(const3, \"10\")\n\t\t//holds vars that have constants assigned\n\t\tHashtable<String,String> constants = new Hashtable<String,String>();\n\t\t\n\t\tRelationPredicate p = this.clone();\n\t\t//rename each term to a unique name\n\t\tfor(int i=0; i<p.terms.size(); i++){\n\t\t\tTerm t = p.terms.get(i);\n\t\t\tt.changeVarName(i);\n\n\t\t}\n\t\tformula.add(p);\n\n\t\tArrayList<String> attrsOld = getVarsAndConst();\n\t\tArrayList<String> attrsNew = p.getVarsAndConst();\n\n\t\t\n\t\tfor(int i=0; i<attrsOld.size(); i++){\n\t\t\tTerm t = terms.get(i);\n\t\t\tif(t instanceof ConstTerm){\n\t\t\t\t//get the constant value\n\t\t\t\tconstants.put(attrsNew.get(i),t.getVal());\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<String> posVals = pos.get(attrsOld.get(i));\n\t\t\tif(posVals==null){\n\t\t\t\tposVals=new ArrayList<String>();\n\t\t\t\tpos.put(attrsOld.get(i),posVals);\n\t\t\t}\n\t\t\tposVals.add(String.valueOf(i));\n\n\t\t}\n\t\t\n\t\t//System.out.println(\"Position of attrs=\" + pos + \" Constants= \" + constants);\n\t\n\t\t//deal with var equality x0=x2\n\t\tIterator<String> it = pos.keySet().iterator();\n\t\twhile(it.hasNext()){\n\t\t\tString key = (String)it.next();\n\t\t\tArrayList<String> vals = pos.get(key);\n\t\t\tif(vals.size()>1){\n\t\t\t\t//add x0=x2 & x2=x9, etc\n\t\t\t\tfor(int i=1; i<vals.size(); i++){\n\t\t\t\t\tBuiltInPredicate p1 = new BuiltInPredicate(MediatorConstants.EQUALS);\n\t\t\t\t\t//p1.addTerm(new VarTerm(key+vals.get(i)));\n\t\t\t\t\t//p1.addTerm(new VarTerm(key+vals.get(i+1)));\n\t\t\t\t\tVarTerm v1 = new VarTerm(key);\n\t\t\t\t\tv1.changeVarName(Integer.valueOf(vals.get(i-1)).intValue());\n\t\t\t\t\tp1.addTerm(v1);\n\t\t\t\t\tVarTerm v2 = new VarTerm(key);\n\t\t\t\t\tv2.changeVarName(Integer.valueOf(vals.get(i)).intValue());\n\t\t\t\t\tp1.addTerm(v2);\n\t\t\t\t\tformula.add(p1);\n\t\t\t\t\t//i=i+1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//deal with constants\n\t\tit = constants.keySet().iterator();\n\t\twhile(it.hasNext()){\n\t\t\tString key = (String)it.next();\n\t\t\tString val = constants.get(key);\n\t\t\t//it's a constant\n\t\t\t//add const3=\"10\"\n\t\t\tBuiltInPredicate p1 = new BuiltInPredicate(MediatorConstants.EQUALS);\n\t\t\tp1.addTerm(new VarTerm(key));\n\t\t\tp1.addTerm(new ConstTerm(val));\n\t\t\tformula.add(p1);\n\t\t}\n\t\treturn formula;\n\t}", "public static int evaluateExpression(String expression) {\r\n // Create operandStack of ints to store operands\r\n Stack<Integer> operandStack = new Stack<>();\r\n \r\n // Create operatorStack of characters to store operators\r\n Stack<Character> operatorStack = new Stack<>();\r\n \r\n // Insert Blanks\r\n expression = insertBlanks(expression);\r\n \r\n // Extract operands and operators by splitting around blanks\r\n String[] tokens = expression.split(\" \");\r\n \r\n /* Phase 1: Scan tokens\r\n Enhanced for loop, puts every element of tokens in token each time\r\n Like writing token = tokens[i] every time\r\n */\r\n for (String token: tokens) { \r\n if(token.length() == 0) // It's a blank\r\n continue; // Go to the while loop\r\n else if (token.charAt(0) == '+' || token.charAt(0) == '-') {\r\n // process all +, -, *, / in the top of the operator stack\r\n while (!operatorStack.isEmpty() && // While stack isn't empty\r\n (operatorStack.peek() == '+' || // and has an operator on top\r\n operatorStack.peek() == '-' || // Like if you had (2 * 3) + 5 \r\n operatorStack.peek() == '*' || // Or if you had (2 - 3) + 5, do that last no matter what b/c +- is lowest priority\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n // After processing the all the previous operations, push the +- operator onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '*' || token.charAt(0) == '/') {\r\n // Proess all *, / in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '*' ||\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the * or / onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '^') {\r\n // Proess all ^ in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the ^ onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if(token.trim().charAt(0) == '(') {\r\n operatorStack.push('(');\r\n } \r\n else if(token.trim().charAt(0) == ')') {\r\n while(operatorStack.peek() != '(') {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n operatorStack.pop(); // pop\r\n }\r\n else {\r\n operandStack.push(new Integer(token));\r\n }\r\n }\r\n // Phase two: process everything left over\r\n while (!operatorStack.isEmpty()) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n return operandStack.pop(); \r\n }", "public void splitExpression(String expression, String op) {\n operator = new arithmetic_op(op);\n expression = expression.trim();\n int index = expression.indexOf(op);\n left = new arithmetic_ex((expression.substring(0, index)).trim());\n right = new arithmetic_ex((expression.substring(index + 1)).trim());\n }", "private Operator compile(List<Operator> ops, int offset, int length) {\n \n int lLength = findExpression(ops, offset, length);\n \n if (lLength == length){\n \n // Case 1: EXPR\n if (length == 1){\n \n // Return single operator\n return ops.get(offset);\n \n } else if ((ops.get(offset) instanceof PrecedenceOperator) &&\n (ops.get(offset + length - 1) instanceof PrecedenceOperator)){\n \n // Remove brackets\n return compile(ops, offset+1, length-2);\n \n } else {\n throw new RuntimeException(\"Invalid expression\");\n }\n \n } else {\n \n // Case 2: EXPR <OP> EXPR\n if (!(ops.get(offset + lLength) instanceof BinaryOperator)){\n \n // Invalid\n throw new RuntimeException(\"Expecting EXPR <OP> EXPR\");\n } else {\n \n // Binary operator\n BinaryOperator bop = (BinaryOperator)ops.get(offset + lLength);\n bop.left = compile(ops, offset, lLength);\n bop.right = compile(ops, offset + lLength + 1, length - lLength - 1);\n return bop;\n }\n }\n }", "void assignOperators(Object rgID, List<Object> operIDs);", "Expr expr();", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "public ArrayList breakByOperator(ArrayList list, final String logical_op) {\r\n\t\t// The last operator must be 'and'\r\n\t\tObject ob = last();\r\n\t\tif (ob instanceof Operator) {\r\n\t\t\tOperator op = (Operator) ob;\r\n\t\t\tif (op.is(logical_op)) {\r\n\t\t\t\t// Last operator is 'and' so split and recurse.\r\n\t\t\t\tExpression[] exps = split();\r\n\t\t\t\tlist = exps[0].breakByOperator(list, logical_op);\r\n\t\t\t\tlist = exps[1].breakByOperator(list, logical_op);\r\n\t\t\t\treturn list;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// If no last expression that matches then add this expression to the\r\n\t\t// list.\r\n\t\tlist.add(this);\r\n\t\treturn list;\r\n\t}", "protected Evaluable parseExpression() throws ParsingException {\n Evaluable sub = parseSubExpression();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \">=<==!=\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable sub2 = parseSubExpression();\n\n sub = new OperatorCallExpr(new Evaluable[] { sub, sub2 }, op);\n }\n\n return sub;\n }", "public abstract Deque<Operand> getOperands();", "static String arithmeticExpressions(int[] arr) {\n String result = \"\";\n String[] operation = {\"+\", \"-\", \"*\"};\n boolean done = false;\n Map<Integer, String> outputToExpression = new HashMap<>();\n outputToExpression.put(arr[0], String.valueOf(arr[0]));\n for(int i = 1; i < arr.length; i++) {\n Map<Integer, String> tempOutputToExpression = new HashMap<>();\n int currentInteger = arr[i];\n final Set<Map.Entry<Integer, String>> entry2 = outputToExpression.entrySet();\n for(int entry : outputToExpression.keySet()) {\n for(int k = 0; k < operation.length; k++) {\n int tempOutput = entry;\n if(operation[k].equals(\"+\")) {\n tempOutput = tempOutput + currentInteger;\n tempOutputToExpression.put(tempOutput, outputToExpression.get(entry) + \"+\" + currentInteger);\n }\n if(operation[k].equals(\"-\")) {\n tempOutput = tempOutput - currentInteger;\n tempOutputToExpression.put(tempOutput, outputToExpression.get(entry) + \"-\" + currentInteger);\n }\n if(operation[k].equals(\"*\")) {\n tempOutput = (tempOutput * currentInteger) % 101;\n tempOutputToExpression.put(tempOutput, outputToExpression.get(entry) + \"*\" + currentInteger);\n }\n if(tempOutput % 101 == 0) {\n result = tempOutputToExpression.get(tempOutput);\n for(int j = i + 1; j < arr.length; j++) {\n result += \"*\" + arr[j];\n }\n done = true;\n }\n if(done) break;\n }\n if(done) break;\n }\n if(done) break;\n outputToExpression = tempOutputToExpression;\n }\n\n\n return result;\n }", "public String toString() {\n if (mExpression.size() == 1 && mExpression.get(0).startsWith(\"-\")) {\n return mExpression.get(0);\n }\n\n StringBuilder output = new StringBuilder();\n boolean first = true;\n int size = mExpression.size();\n\n for (int i = 0; i < size; i++) {\n String element = mExpression.get(i);\n\n if (first) {\n first = false;\n } else {\n output.append(\"\");\n }\n\n\n if (isOperand(element) && element.startsWith(\"-\")) {\n output.append(\"(\")\n .append(element)\n .append(\")\");\n } else {\n output.append(element);\n }\n }\n\n return output.toString();\n }", "public static String evaluate( String expr )\n {\n\n\tString[] arr = expr.split(\"//s+\");\n\tString ret = \"\";\n\tALStack<String> stack = new ALStack<String>();\n\tfor( String s: arr)\n\t stack.push(s);\n\n\tif( stack.peek().equals(\"(\")){\n\t stack.pop();\n\t int operator = findOp(stack.pop());\n\t ret = unload(operator, stack);\n\t return ret;\n\t}\n\treturn \"\";\n }", "public void setExpressions(List<Subscription> expressions) {\n this.expressions = expressions;\n }", "public interface Expression {\n\t\n\t/**\n\t * Evaluates an arithmetic expression.\n\t * \n\t * @return the value to which this expression evaluates\n\t */\n\tdouble eval();\n\t\n\t/**\n\t * Creates a String representation of an arithmetic expression.\n\t * \n\t * @return this expression in standard form, suitable for inclusion\n\t * in a program or text document (e.g., \"(2 - 4 * (7 + 2))\"). Note\n\t * that the string can have \"unnecessary\" parentheses as this (toy)\n\t * system does not know about operator precedence. \n\t */\n\tString toString();\n\n}", "public Map<String, AttributeDescriptor.Operator> getOperators()\n {\n \n Map<String, AttributeDescriptor.Operator> optrMap = \n new LinkedHashMap<String, AttributeDescriptor.Operator>();\n \n List<DemoPageDef.OperatorDef> operatorList = _searchFieldDef.getOperators();\n\n for(DemoPageDef.OperatorDef operator : operatorList)\n {\n AttributeDescriptor.Operator optr = \n ((DemoAttributeDescriptor) _attrDesc).getOperator(operator);\n optrMap.put(optr.getLabel(), optr);\n }\n return optrMap;\n }", "public Expression(Expression exp1, Operator op, Expression exp2) {\r\n\t\t// Remember, this is in postfix notation.\r\n\t\telements.addAll(exp1.elements);\r\n\t\telements.addAll(exp2.elements);\r\n\t\telements.add(op);\r\n\t}", "public static Expression parse(String exp) {\n\t\texp = exp.replace(\" \", \"\");\r\n\t\tchar[] cs = exp.toCharArray();\r\n\t\tint i = 0;\r\n\t\twhile (i < cs.length && !Operator.validOp(cs[i])) {\r\n\t\t\t++i;\r\n\t\t}\r\n\t\tif (i == cs.length)\r\n\t\t\treturn new Expression(Token.parse(exp));\r\n\t\telse {\r\n\t\t\t//to preserve order of operations here, flip order accordingly\r\n\t\t\t//if the operator is * or /\r\n\t\t\treturn new Expression(\r\n\t\t\t\t\tExpression.parse(exp.substring(0,i)),\r\n\t\t\t\t\t(Operator)Token.parse(cs[i]),\r\n\t\t\t\t\tExpression.parse(exp.substring(i+1, exp.length()))\r\n\t\t\t);\r\n\t\t}\r\n\t}", "public Vector<String> getExpressions(boolean history) {\n Vector<String> expressions = new Vector<>();\n try {\n Statement stat = conn.createStatement();\n ResultSet rs;\n if(history)\n rs = stat.executeQuery(\"SELECT * FROM history ORDER BY id DESC;\");\n else\n rs = stat.executeQuery(\"SELECT * FROM expressions ORDER BY id DESC;\");\n while (rs.next()) {\n expressions.add(rs.getString(\"expression\"));\n }\n return expressions;\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n System.exit(0);\n return null;\n }\n }", "public static List<Symbol> exprsToSymbols(List<Expression> exprs) {\n List<Symbol> ret = new ArrayList<Symbol>(exprs.size());\n for (int i = 0; i < exprs.size(); i++) {\n ret.add(getSymbolOf(exprs.get(i)));\n }\n return ret;\n }" ]
[ "0.7150134", "0.66826546", "0.6675697", "0.64703476", "0.64312917", "0.6273203", "0.625895", "0.62532103", "0.62343293", "0.62145245", "0.620964", "0.60736144", "0.6012143", "0.5984526", "0.5947543", "0.5942933", "0.59368056", "0.58901376", "0.588248", "0.58796984", "0.586729", "0.586728", "0.5858114", "0.5831324", "0.582382", "0.58041036", "0.57988983", "0.5794523", "0.5772581", "0.57701004", "0.57670385", "0.57642984", "0.5748044", "0.5737337", "0.57355225", "0.57285386", "0.5713171", "0.5694978", "0.56812763", "0.5673843", "0.5673285", "0.5670139", "0.56701076", "0.56667167", "0.5657624", "0.5656583", "0.5651448", "0.5611861", "0.5610254", "0.5608532", "0.560227", "0.55953765", "0.5594627", "0.55852836", "0.55764127", "0.55722934", "0.55706954", "0.55607164", "0.55522186", "0.5550383", "0.5545612", "0.5542078", "0.5532387", "0.55102295", "0.5506877", "0.5501851", "0.5499971", "0.54997885", "0.548726", "0.5477706", "0.5477706", "0.5464948", "0.5460327", "0.5451688", "0.54483837", "0.5443905", "0.54438686", "0.5440192", "0.543482", "0.54246676", "0.54242617", "0.54177225", "0.5416327", "0.5415697", "0.5403935", "0.5403935", "0.5403935", "0.5403935", "0.5396302", "0.53943384", "0.53934693", "0.53871155", "0.53849745", "0.537877", "0.53657264", "0.5363466", "0.53501356", "0.5327213", "0.53238547", "0.53134376", "0.53107387" ]
0.0
-1
every properly used object should be deleted from the list
private void calculateInBrackets(List<Object> lo, int i) { lo.remove(i); //all object in the lift were shifted int openingBracketsCounter = 1; List<Object> newLo = new ArrayList<>(); for (; i < lo.size();) { Object oi = lo.get(i); if (oi == Brackets.OPENING) { openingBracketsCounter++; } if (oi == Brackets.CLOSING) { openingBracketsCounter--; } if (openingBracketsCounter == 0) { break; } newLo.add(oi); lo.remove(i); } if (newLo.size() == 0 ) { throw new IllegalArgumentException("Malformed expression: nothing in brackets"); } else if (openingBracketsCounter != 0) { throw new IllegalArgumentException("Malformed expression: there are not closed brackets"); } else { //assign value to the place of closing bracket lo.set(i, new Constant(calculateParsedInput(newLo))); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeByObject()\r\n\t{\n\t}", "private void delete() {\n\n\t}", "public void testRemoveObj() {\r\n list.add(\"A\");\r\n list.add(\"B\");\r\n assertTrue(list.remove(\"A\"));\r\n assertEquals( \"B\", list.get(0));\r\n assertEquals( 1, list.size());\r\n list.add(\"C\");\r\n assertTrue(list.remove(\"C\"));\r\n assertEquals(\"B\", list.get(0));\r\n }", "@Override\n\t\tpublic void delete() {\n\n\t\t}", "public void clean() {\n Long now = System.currentTimeMillis();\n for (Iterator<Long> iterator = this.deleted.iterator(); iterator.hasNext();) {\n Long l = iterator.next();\n if (l < now) {\n iterator.remove();\n }\n }\n }", "@Test\r\n\tpublic void testRemoveObject() {\r\n\t\tAssert.assertFalse(list.remove(null));\r\n\t\tAssert.assertTrue(list.remove(new Munitions(2, 3, \"iron\")));\r\n\t\tAssert.assertEquals(14, list.size());\r\n\t}", "@Override\n public boolean delete(Revue objet) {\n return false;\n }", "public void deleteObject() {\n\n\t}", "protected void deallocate() {\r\n\t\t// create a list of objects ordered by the time of last access\r\n\t\tList<ObjectStatus> timeOrderedObjects = getListOfObjectClassTimeSorted();\r\n\t\twhile (!sizeNormal() && timeOrderedObjects.size() > 0) {\r\n\t\t\t// take the least recently used object and remove it from the list\r\n\t\t\tString currentObjectID = timeOrderedObjects.remove(0).getID();\r\n\t\t\t// kill that object in the ever seen so\r\n\t\t\t// it would be treated as a dead object from now on\r\n\t\t\tkillObject(currentObjectID);\r\n\t\t\tdeallocate(currentObjectID);\r\n\r\n\t\t}\r\n\r\n\t}", "@Override\r\n\tpublic void deleteItem() {\n\t\taPList.remove();\r\n\t}", "public void remove()\r\n { Exceptions.unmodifiable(\"list\"); }", "@Override\n public void delete(ArrayList<League> leagues) {\n\n }", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}", "public void clearList() {\n\t\tdeletedList.clear();\n\t}", "@Override\r\n\tpublic boolean delete(Moteur obj) {\n\t\treturn false;\r\n\t}", "@Override\n public void delete()\n {\n }", "private void removeList()\r\n {\n if (tableCheckBinding != null)\r\n {\r\n tableCheckBinding.dispose();\r\n tableCheckBinding = null;\r\n }\r\n\r\n // m_TableViewer.setInput(null);\r\n WritableList newList = new WritableList(SWTObservables.getRealm(Display.getDefault()));\r\n for (int i = 0; i < 10; ++i)\r\n {\r\n newList.add(this.generateNewDataModelItem());\r\n }\r\n m_TableViewer.setInput(newList);\r\n }", "public void deleteWholeList()\n {\n head = null;\n }", "private void deleteObjects(Context context, StringList strLstFLToDel) throws Exception\r\n\t{\r\n\r\n\t try {\r\n\r\n\t\t// Iterate the stringList containing the FeatureLists Objects to delete\r\n\t\tString [] strFLToDel = new String[strLstFLToDel.size()];\r\n\r\n\t for (int m = 0; m < strLstFLToDel.size(); m++) {\r\n\t \tstrFLToDel[m] = (String) strLstFLToDel.get(m);\r\n\t }\r\n\r\n\t // Call DomainObject's deleteObjects method to delete all the Objects in the String array in a single transaction\r\n DomainObject.deleteObjects(context, strFLToDel);\r\n\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new FrameworkException(\"Object Delete Failed :\"+e.getMessage());\r\n\t\t}\r\n\t}", "@Override\n public void remove() {\n }", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Override\n\tpublic void delete() {\n\n\t}", "@Override\n\tpublic void deleteItem(Object toDelete) {}", "@Override\n public void remove() {\n }", "public void remove () {}", "@Override\n\tpublic void delete() {\n\t\t\n\t}", "@Override\n\tpublic void delete() {\n\t\t\n\t}", "public void remove() {\r\n //\r\n }", "@Override\r\n\tpublic void delete(Object object) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void delete() {\n\r\n\t}", "@Override\n\tpublic boolean delete(Langues obj) {\n\t\treturn false;\n\t}", "Object remove();", "private void clearLists() {\n\t\tobjects = new ArrayList<Entity>();\n\t\tenemies.clear();\n\t\titemList.clear();\n\t}", "void remover(Object o);", "public void removed() {\n }", "@Override\n\tpublic void remove() { }", "void delete()\n\t{\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call delete() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call delete() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == front) \n\t\t{\n\t\t\tdeleteFront(); //deletes the front if the cursor is at the front\n\n\t\t}\n\t\telse if(cursor == back)\n\t\t{\n\t\t\tdeleteBack(); //deletes the back if the cursor is at the back\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcursor.prev.next=cursor.next; \n\t\t\tcursor.next.prev=cursor.prev;\n\t\t\tcursor = null; \n\t\t\tindex = -1;\n\t\t\tlength--;\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "public void remove() {\n\n }", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "void kill()\n\t{\n\t\tfor(GameObject G : ObjectList)\n\t\t{\n\t\t\tG.kill();\n\t\t}\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\r\n\t}", "@Override\n public void delete() {\n }", "private void releaseObjects() {\n if (fPermStorage != null) {\n Iterator<IJavaObject> iterator = fPermStorage.iterator();\n while (iterator.hasNext()) {\n IJavaObject object = iterator.next();\n try {\n object.enableCollection();\n } catch (CoreException e) {\n if ((e.getStatus().getException() instanceof VMDisconnectedException)) {\n break;\n }\n JDIDebugPlugin.log(e);\n }\n }\n fPermStorage = null;\n }\n }", "public void deleteAll(){\r\n\t\thead = null;\r\n\t}", "@Override\n\tpublic void deleteAll() {\n\n\t}", "@Override\n\tpublic void deleteAll() {\n\n\t}", "@Override\n\tpublic void deleteAll() {\n\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\t// YOU DO NOT NEED TO WRITE THIS\r\n\t\t}", "public void remove() {\r\n return;\r\n }", "public void remove(){\n }", "@Override\n public void clear() {\n checkNotDeleted();\n super.clear();\n }", "@Override\r\n\t\t\tpublic void eliminar() {\n\r\n\t\t\t}", "@Override\n\tpublic boolean delete(Etape obj) {\n\t\treturn false;\n\t}", "@Override\n public void deleteItem(P_CK t) {\n \n }", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove() {\n\t }", "private void delete() {\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tif (list.get(i).toString().equals(lu.toString())) {\r\n\t\t\t\tlist.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.makeXml(list);\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\tinitTableView();\r\n\t}", "@Override\n public void delete() {\n\n\n }", "public final void delete() {\n\t\tOllie.delete(this);\n\t\tOllie.removeEntity(this);\n\t\tnotifyChange();\n\t\tid = null;\n\t}", "@Override\r\n public void delete(Copiable obj) {\r\n if (locate(obj) != -1) {\r\n try {\r\n deleteAt(locate(obj));\r\n } catch (IndexRangeException ex) {\r\n //Shouldn't happen\r\n }\r\n }\r\n }", "public void evt_DeleteCurrentObject()\r\n {\r\n rh2EventPos.hoOiList.oilNumOfSelected -= 1;\t\t\t\t\t// Un de moins dans l'OiList\r\n if (rh2EventPrev != null)\r\n {\r\n rh2EventPrev.hoNextSelected = rh2EventPos.hoNextSelected;\r\n rh2EventPos = rh2EventPrev; // Car le courant est vire!\r\n }\r\n else\r\n {\r\n// rhPtr.rhOiList[rh2EventPosOiList].oilListSelected=rh2EventPos.hoNextSelected;\r\n rh2EventPrevOiList.oilListSelected = rh2EventPos.hoNextSelected;\r\n rh2EventPos = null;\r\n }\r\n }", "@Test\n void testDeleteAllEntries() {\n ToDoList todoList = new ToDoList();\n ToDo todo1 = new ToDo(\"Todo1\");\n todo1.setInhalt(\"Dies ist ein Test\");\n todoList.add(todo1);\n todo1.setStatus(Status.BEENDET);\n todoList.add(new ToDo((\"Todo2\")));\n ToDo todo3 = new ToDo(\"Todo3\");\n todo3.setInhalt(\"3+3=6\");\n todo3.setStatus(Status.IN_ARBEIT);\n todoList.add(todo3);\n\n //Entferne alle Elemente mittels Iterator\n Iterator it = todoList.iterator();\n while (it.hasNext()){\n it.next();\n it.remove();\n }\n\n assertEquals(0, todoList.size());\n }", "private void removeAllObjects()\n {\n removeObjects (getObjects(Actor.class));\n }", "public void deleteListObject(List<Student> list1)\r\n\t{\r\n\t\tlist1.remove(s2);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"after removing\");\r\n\t\tfor(Student s:list1)\r\n\t\t{\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void delete(Unidade obj) {\n\n\t}", "@Override\n public void removeFromDb() {\n }", "@Override\n public <T extends JPABase> T delete() {\n for (Candidate candidate : candidates) {\n candidate.delete();\n }\n this.candidates.clear();\n\n for (User user : users) {\n user.delete();\n\n }\n this.users.clear();\n\n\n\n return super.delete();\n }", "private void removeDestroyedObjects ()\n {\n Collection<Asteroid> newAsteroids = new ArrayList<>(this.game.getAsteroids().size() * 2); // Avoid reallocation and assume every asteroid spawns successors.\n this.game.getAsteroids().forEach(asteroid -> {\n if (asteroid.isDestroyed()) {\n this.increaseScore();\n newAsteroids.addAll(asteroid.getSuccessors());\n }\n });\n this.game.getAsteroids().addAll(newAsteroids);\n // Remove all asteroids that are destroyed.\n this.game.getAsteroids().removeIf(GameObject::isDestroyed);\n // Remove any bullets that are destroyed.\n this.game.getBullets().removeIf(GameObject::isDestroyed);\n }", "@Override\r\n\t\tpublic void remove() {\n\r\n\t\t}", "public void delAll(List list);", "@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"no goin\");\n\t\t\n\t}", "public void cleanupDead() {\n\t\tIterator<Entity> it = entities.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tEntity e = it.next();\n\t\t\t\n\t\t\tif (!e.isDead()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t//Remove from entities list\n\t\t\tit.remove();\n\t\t\t\n\t\t\t//Remove from other lists.\n\t\t\tremove(e);\n\t\t\t\n\t\t\t//Log action.\n\t\t\tlogger.log(LogLevel.DEBUG, \"Removed entity\");\n\t\t}\n\t}", "public void delete(Object object)\n{\n\t// remove the object\n\tobjects.remove(object);\n}" ]
[ "0.6811441", "0.67230266", "0.6670165", "0.66698945", "0.66644543", "0.6655028", "0.6634909", "0.66340894", "0.6606766", "0.659915", "0.65623844", "0.6560015", "0.6554998", "0.6554998", "0.65532017", "0.65526676", "0.65364885", "0.649283", "0.64897287", "0.6472613", "0.6464101", "0.6434243", "0.64207923", "0.64207923", "0.64207923", "0.64207923", "0.6412406", "0.6412406", "0.64000434", "0.6388409", "0.63883656", "0.63880193", "0.63823885", "0.63823885", "0.637411", "0.63729674", "0.63712144", "0.63637054", "0.63543797", "0.6351393", "0.6345084", "0.6336916", "0.63358593", "0.6335661", "0.6328503", "0.6328503", "0.6328503", "0.6328503", "0.6328503", "0.6328503", "0.6328503", "0.6328503", "0.632461", "0.6324184", "0.6324184", "0.6324184", "0.6324184", "0.6324184", "0.6322572", "0.6311852", "0.63089836", "0.6300626", "0.6294821", "0.62928146", "0.62928146", "0.62928146", "0.6284003", "0.6284003", "0.6284003", "0.6284003", "0.6284003", "0.6284003", "0.6284003", "0.6284003", "0.62790966", "0.6274868", "0.62719697", "0.6262843", "0.6249654", "0.6244861", "0.6244461", "0.62441444", "0.62441444", "0.62441444", "0.62430936", "0.62411517", "0.6225837", "0.62215114", "0.622032", "0.6219439", "0.6219178", "0.62126637", "0.6212305", "0.62064373", "0.6204989", "0.62036175", "0.6190929", "0.61888963", "0.61834836", "0.6177605", "0.61753035" ]
0.0
-1
check is usable notifier for this environment and get notifier instance
public static LibnotifyMessageNotifier getInstance() { JavaGnome javaGnome = JavaGnome.getInstance(); if (javaGnome.isDisabled()) { logger.info("Skip java-gnome notify system"); return null; } else if (Utility.getOstype() == Utility.OSType.OTHER) { ClassLoader extraClassLoader = ClientConfiguration.getInstance().getExtraClassLoader(); if (!javaGnome.isFound()) { return null; } try { logger.info("detected java-gnome. version:{}", javaGnome.getVersion()); Class<?> gtkClass = Class.forName("org.gnome.gtk.Gtk", true, extraClassLoader); Boolean isGtkInitialized = (Boolean) gtkClass.getMethod("isInitialized").invoke(null); if (!isGtkInitialized) { // if(!Gtk.isInitialized){ // Gtk.init(new String[]{}); gtkClass.getMethod("init", String[].class).invoke(null, (Object) new String[]{}); } Class<?> notifyClass = Class.forName("org.gnome.notify.Notify", true, extraClassLoader); Boolean isNotifyInitialized = (Boolean) notifyClass.getMethod("isInitialized").invoke(null); if (!isNotifyInitialized) { // if(!Notify.isInitialized){ // Notify.init(ClientConfiguration.APPLICATION_NAME); notifyClass.getMethod("init", String.class).invoke(null, ClientConfiguration.APPLICATION_NAME); } // Object serverCapabilities = Notify.getServerCapabilities(); Object serverCapabilities = notifyClass.getMethod("getServerCapabilities").invoke(null); logger.info("connected notification server. caps:{}", serverCapabilities); return new LibnotifyMessageNotifier(); } catch (ClassNotFoundException e) { logger.trace("java-gnome is partial found...", e); } catch (InvocationTargetException e) { logger.warn("#checkUsable", e.getCause()); } catch (ReflectiveOperationException e) { logger.warn("#checkUsable", e); } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Notifier getNotifier() {\r\n return getLocalFacade().getGlobalFacade().getNotifier();\r\n }", "public static Notifier getNotifier() {\n if(theNotifier == null) {\n theNotifier = new Notifier();\n }\n return theNotifier;\n }", "private static NotificationManagerProxy getNotificationManager() {\n return new NotificationManagerProxyImpl(ContextUtils.getApplicationContext());\n }", "public static RcsNotification getInstance() {\n return INSTANCE;\n }", "private String getNotifierListener(int notifierType) {\n\t\tString listener = null;\n\t\ttry {\n\t\t\tswitch (notifierType) {\n\t\t\tcase NotifierConstants.PUSH_MESSAGE_NOTIFIER:\n\t\t\t\tlistener = appConfigInformation.getString(SmartConstants.APPEZ_CONF_PROP_PUSH_NOTIFIER_LISTENER);\n\t\t\t\tbreak;\n\n\t\t\tcase NotifierConstants.NETWORK_STATE_NOTIFIER:\n\t\t\t\tlistener = appConfigInformation.getString(SmartConstants.APPEZ_CONF_PROP_NWSTATE_NOTIFIER_LISTENER);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} catch (JSONException je) {\n\t\t\t// TODO handle this exception\n\t\t}\n\t\treturn listener;\n\t}", "public interface NotificationCatcher {\n public static final String COPYRIGHT_2009_2010 = Constants.COPYRIGHT_2009_2010;\n \n static final String SCM_REVISION = \"$Revision: 1.2 $\"; //$NON-NLS-1$\n\n /**\n * When the Manager is started, the Manager will invoke this method. The\n * Manager needs a way to start the NotificationCatcher when the Manager\n * starts. After that point, the NotificationCatcher can place Notifications\n * on the Manager's queue. This method will allow the NotificationCatcher to\n * do any initialization to receive events from devices (such as listening\n * on a network socket) after it has been instantiated by the\n * NotificationCatcherFactory.\n * \n * @see NotificationCatcherFactory\n * @see Manager\n */\n public void startup() throws AMPException;\n \n /**\n * When the Manager is shutdown, the Manager will invoke this method. For\n * any resources that were obtained via the NotificationCatcher's\n * constructor or {@link #startup()}, this method will allow those\n * resources (such as network sockets) to be released when the Manager is\n * shutdown.\n * \n * @see Manager\n */\n public void shutdown();\n \n /**\n * Get the URL that this NotificationCatcher listens on so Devices know\n * where to post Notifications. This URL is used when a subscription request (\n * {@link Commands#subscribeToDevice(DeviceContext, String, StringCollection, URL)})\n * is sent to a device so that the device knows where to send the\n * notifications (events).\n * \n * @return the URL that this NotificationCatcher listens on so Devices know\n * where to post Notifications. This value will be used when sending\n * subscription requests to Devices. This may be an https or http\n * url. Typically, the path part of the URL will not be relevant,\n * the relevant parts are the protocol, hostname, and port.\n */\n public URL getURL();\n}", "public static NotificationPublisher getInstance() {\n return instance;\n }", "private NotificationManager getNotificationManager() {\n if (mNotificationManager == null) {\n mNotificationManager = (NotificationManager) mContext.getSystemService(\n Context.NOTIFICATION_SERVICE);\n }\n return mNotificationManager;\n }", "public EventNotifier<OIFitsCollectionManagerEvent, OIFitsCollectionManagerEventType, Object> getReadyEventNotifier() {\n return this.oiFitsCollectionManagerEventNotifierMap.get(OIFitsCollectionManagerEventType.READY);\n }", "public NotificationManager getManager() {\n if (mManager == null) {\n mManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n }\n return mManager;\n }", "public NotificationManager getNotificationManager(){\n\n if (mNotificationManager==null){\n mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n }\n return mNotificationManager;\n }", "public NotificationUtils getNotificationUtils() {\n return NotificationUtils.getInstance();\n }", "public synchronized void startNotificationListener() {\n\t\tif ((notificationThread != null) && notificationThread.isAlive()) {\n\t\t\tthrow new IllegalStateException(\"The notification listener is already running.\");\n\t\t}\n\t\t\n\t\tif (smtpConfig != null) {\n\t\t\tnotificationThread = new Thread( new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tlistenForNotificationEvents();\n\t\t\t\t}\n\t\t\t}, \"OTM_NotificationListener\" );\n\t\t\t\n\t\t\tshutdownRequested = false;\n\t\t\tnotificationThread.start();\n\t\t\trepositoryListener = new RepositoryNotificationListener( this, manager );\n\t\t\tmanager.addListener( repositoryListener );\n\t\t\t\n\t\t} else {\n\t\t\tlog.warn(\"SMTP configuration not initialized - notification listener not started.\");\n\t\t}\n\t}", "@Override\r\n public boolean initialize() {\r\n try {\r\n uid = Double.parseDouble(getActiveAddressBean().getPredicateValueWithException(PushDelivery.NOTIFICATION_ID_KEY));\r\n structure = registerAndGetStructure();\r\n NotificationRegistry.getInstance().addNotification(uid, this);\r\n } catch (Exception e) {\r\n logger.error(e.getMessage(), e);\r\n NotificationRegistry.getInstance().removeNotification(uid);\r\n return false;\r\n }\r\n return true;\r\n }", "protected void checkNotifications() {\n List<PushNotification> polled;\n boolean onlyOne;\n\n // Leave this mutually exclusive section as fast as possible...\n lock.lock();\n try {\n if (stopped) {\n LOGGER.debug(\"Push notification service stopped. Aborting polling of queue...\");\n return;\n }\n\n PushNotification first = submittedNotifcations.poll();\n if (null == first) {\n // Queue has no notification with an expired delay\n LOGGER.debug(\"Queue has no notification with an expired delay and holds {} buffered notifications\", I(submittedNotifcations.size()));\n return;\n }\n\n // Check for more\n PushNotification notification = submittedNotifcations.poll();\n if (notification != null) {\n polled = new LinkedList<>();\n polled.add(first);\n LOGGER.debug(\"Polled notification \\\"{}\\\" for user {} in context {} from queue\", first.getTopic(), I(first.getUserId()), I(first.getContextId()));\n do {\n polled.add(notification);\n LOGGER.debug(\"Polled notification \\\"{}\\\" for user {} in context {} from queue\", notification.getTopic(), I(notification.getUserId()), I(notification.getContextId()));\n notification = submittedNotifcations.poll();\n } while (null != notification);\n onlyOne = false;\n } else {\n polled = Collections.singletonList(first);\n LOGGER.debug(\"Polled notification \\\"{}\\\" for user {} in context {} from queue\", first.getTopic(), I(first.getUserId()), I(first.getContextId()));\n onlyOne = true;\n }\n\n if (submittedNotifcations.isEmpty()) {\n cancelTimerTask();\n LOGGER.debug(\"Dropped polling timer task since queue is currently empty\");\n }\n } finally {\n lock.unlock();\n }\n\n if (onlyOne) {\n // There was only a single one available\n PushNotification first = polled.get(0);\n NotificationsHandler task = new NotificationsHandler(first);\n if (tryExecuteTask(task, first.getUserId(), first.getContextId())) {\n LOGGER.debug(\"Submitted delivery of polled notification with topic \\\"{}\\\" to user {} in context {}\", first.getTopic(), I(first.getUserId()), I(first.getContextId()));\n } else {\n // Processor rejected task execution. Perform with current thread.\n task.run();\n }\n } else {\n // Handle them all\n Map<ContextAndTopicKey, Map<Integer, List<PushNotification>>> polledNotificationsPerContextAndTopic = new LinkedHashMap<>();\n for (PushNotification notification : polled) {\n put(notification, polledNotificationsPerContextAndTopic);\n }\n for (Map.Entry<ContextAndTopicKey, Map<Integer, List<PushNotification>>> entry : polledNotificationsPerContextAndTopic.entrySet()) {\n ContextAndTopicKey key = entry.getKey();\n Map<Integer, List<PushNotification>> notificationsPerUser = entry.getValue();\n NotificationsHandler task = new NotificationsHandler(key.contextId, key.topic, notificationsPerUser);\n if (tryExecuteTask(task, -1, key.contextId)) {\n if (LOGGER.isDebugEnabled()) {\n int[] userIds = Coll2i(notificationsPerUser.keySet());\n Object sUserIds = userIds.length <= 10 ? toStringObjectFor(userIds) : null;\n userIds = null;\n if (sUserIds == null) {\n LOGGER.debug(\"Submitted delivery of polled notifications with topic \\\"{}\\\" to users in context {}\", key.topic, I(key.contextId));\n } else {\n LOGGER.debug(\"Submitted delivery of polled notifications with topic \\\"{}\\\" to users {} in context {}\", key.topic, sUserIds, I(key.contextId));\n }\n }\n } else {\n // Processor rejected task execution. Perform with current thread.\n task.run();\n }\n }\n }\n }", "void init(Properties realTimeNotifierProperties, Properties persistentNotifierProperties);", "public static EmailManager getInstance(){\n if (instance == null) {\n instance = new EmailManager();\n }\n return instance;\n }", "boolean isNotificationsEnabled();", "public static OperatingSystemEventSender getInstance() {\r\n return OperatingSystemEventSender.INSTANCE;\r\n }", "protected NotificationInfo getNotificationInfo() {\n List<NotificationInfo> list = notificationService.storeDigestJCR();\n assertTrue(list.size() > 0);\n return list.get(0);\n }", "public void checkNotificationBroadcastSupport() {\n int i = 0;\n this.mShouldBroadcastNotifications = false;\n WallpaperManager wallpaperManager = (WallpaperManager) this.mContext.getSystemService(WallpaperManager.class);\n if (wallpaperManager != null) {\n WallpaperInfo wallpaperInfo = wallpaperManager.getWallpaperInfo();\n if (wallpaperInfo != null) {\n ComponentName component = wallpaperInfo.getComponent();\n String packageName = component.getPackageName();\n if (NOTIFYABLE_PACKAGES.contains(packageName)) {\n this.mWallpaperPackage = packageName;\n String className = component.getClassName();\n String[] strArr = NOTIFYABLE_WALLPAPERS;\n int length = strArr.length;\n while (true) {\n if (i >= length) {\n break;\n } else if (className.startsWith(strArr[i])) {\n this.mShouldBroadcastNotifications = true;\n break;\n } else {\n i++;\n }\n }\n }\n }\n }\n }", "public MonitorResult checkNotifications() {\r\n MonitorResult result = new MonitorResult();\r\n result.setComponent(\"NOTIFICATIONS\");\r\n\r\n logger.info(\"Testing NOTIFICATIONS...\");\r\n\r\n double duration = 0;\r\n boolean success = false;\r\n Date start = new Date();\r\n long startTime = start.getTime();\r\n\r\n try {\r\n\r\n long currentDateMs = (new Date()).getTime();\r\n Date comparisonDate = new Date(currentDateMs - getMonitorConfiguration().getNotificationSendInterval());\r\n\r\n Long unsentNotificationCount = getNotificationDAO().getUnsentNotifications(comparisonDate);\r\n\r\n if (unsentNotificationCount > 0) {\r\n throw new AditInternalException(\"Number of notifications not sent in time: \" + unsentNotificationCount);\r\n } else {\r\n logger.info(\"No waiting notifications older than \" + comparisonDate + \" were found.\");\r\n \tsuccess = true;\r\n }\r\n\r\n Date end = new Date();\r\n long endTime = end.getTime();\r\n duration = (endTime - startTime) / 1000.0;\r\n result.setDuration(duration);\r\n result.setSuccess(success);\r\n\r\n } catch (Exception e) {\r\n logger.error(\"Error while testing NOTIFICATIONS: \", e);\r\n result.setSuccess(false);\r\n List<String> exceptions = new ArrayList<String>();\r\n exceptions.add(e.getMessage());\r\n result.setExceptions(exceptions);\r\n }\r\n\r\n return result;\r\n }", "@Nonnull\n @Contract(pure = true)\n public static CrashReporter getInstance() {\n return INSTANCE;\n }", "public static ReqIsntCertainSender get(Object senderObject) { return new ReqIsntCertainSender(senderObject); }", "public PanelNotifications getNotif(){\n return notif;\n }", "public static NotifySuspendedCommandControllerPowerState getInstance() {\n\t\treturn NotifySuspendedCommandControllerPowerState.SINGLETON_INSTANCE;\n\n\t}", "INotificationTraveller getSender();", "private void getMidiReceiver() {\n\n final MidiDevice.Info[] midiDeviceInfo = MidiSystem.getMidiDeviceInfo();\n MidiDevice midiDevice;\n this.midiReceiver = null;\n\n //Loop each midi device info\n for (final MidiDevice.Info i : midiDeviceInfo) {\n //Find piano app\n if (i.toString().equals((\"PianoApp\"))) {\n //Try to get the receiver\n try {\n midiDevice = MidiSystem.getMidiDevice(i);\n midiDevice.open();\n this.midiReceiver = midiDevice.getReceiver();\n } catch (final MidiUnavailableException ignored) {\n }\n }\n }\n if (this.midiReceiver == null) {\n System.err.println(\"Could not get Midi Receiver\");\n }\n }", "@Override\n\tpublic Notification findNotificationSendToMeByANotifier(User me, User notifier) {\n\t\tList<Notification> notifications = notificationRepository.findNotificationReceivedFromNotifier(me.getId(),\n\t\t\t\tnotifier.getId());\n\t\tif (!notifications.isEmpty())\n\t\t\treturn notifications.get(0);\n\t\treturn null;\n\t}", "public static NotificationModule getNotificationModule() throws IllegalStateException {\n if (NOTIFICATION_MODULE == null) {\n throw new IllegalStateException(\"Game module instance not ready\");\n }\n return NOTIFICATION_MODULE;\n }", "@NotNull\n public static UsageTracker getInstance() {\n return ServiceManager.getService(UsageTracker.class);\n }", "@NonNull\n @Override\n public Result doWork() {\n prefs = new PEPrefs(getApplicationContext());\n try {\n NotificationManagerCompat notificationManagerCompat = NotificationManagerCompat.from(getApplicationContext());\n boolean areNotificationsEnabled = notificationManagerCompat.areNotificationsEnabled();\n\n long longVal = areNotificationsEnabled ? 0 : 1;\n if (!(longVal == prefs.isNotificationDisabled())) {\n if (areNotificationsEnabled && prefs.isSubscriberDeleted()) {\n PushEngage.callAddSubscriberAPI();\n } else {\n UpdateSubscriberStatusRequest updateSubscriberStatusRequest = new UpdateSubscriberStatusRequest(prefs.getSiteId(), prefs.getHash(), longVal, prefs.getDeleteOnNotificationDisable());\n updateSubscriberStatus(updateSubscriberStatusRequest);\n }\n }\n } catch (Throwable e) {\n// e.printStackTrace();\n // Technically WorkManager will return Result.failure()\n // but it's best to be explicit about it.\n // Thus if there were errors, we're return FAILURE\n// Log.d(TAG, \"Error fetching data\", e);\n return Result.failure();\n }\n return Result.success();\n\n }", "public Expirator getAvailableExpirator() {\n \t\tExpirator available = null;\n \t\tfor(Expirator e : expirators) {\n \t\t\tif(!e.isBusy()) {\n \t\t\t\tavailable = e;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\treturn available;\n \t}", "public static Setup getInstance () {\n return SetupHolder.INSTANCE;\n }", "public com.ss.android.ugc.aweme.notification.bean.d call() throws Exception {\n if (PatchProxy.isSupport(new Object[0], this, f58105a, false, 63253, new Class[0], com.ss.android.ugc.aweme.notification.bean.d.class)) {\n return (com.ss.android.ugc.aweme.notification.bean.d) PatchProxy.accessDispatch(new Object[0], this, f58105a, false, 63253, new Class[0], com.ss.android.ugc.aweme.notification.bean.d.class);\n }\n try {\n return NoticeApiManager.a();\n } catch (ExecutionException e2) {\n a.this.f58097e = null;\n throw com.ss.android.ugc.aweme.app.api.m.a(e2);\n }\n }", "public interface Notifier {\r\n\r\n public abstract void initialize();\r\n public abstract void sendNotification(Event event) throws NotifierException;\r\n public abstract SparrowNotifierConfig getConfig();\r\n public abstract void close();\r\n\r\n}", "public static MessageBusImpl getInstance() \r\n\t{\r\n\t\treturn MessageBusImplHolder.instance;\r\n\t}", "public IgniteThread checkpointerThread() {\n return checkpointerThread;\n }", "public static com.tangosol.coherence.Component get_Instance()\n {\n return new com.tangosol.coherence.component.manageable.modelAdapter.ReporterMBean();\n }", "public static AbstractYYUpgradeNotification getYYUpgradeNotification(Context context){\n\t\tif(mYYUpgradeNotification == null){\n\t\t\tmYYUpgradeNotification = new YYUpgradeNotification(context);\n\t\t}\n\t\treturn mYYUpgradeNotification;\n\t}", "private boolean checkConnection() {\n return InternetConnectivityReceiver.isConnected();\n }", "private void selfCheck()\n {\n createSession();\n\n // Verify that we can create a mail body\n ImmutableNotification notification = Notification.builder(Instant.now(), \"message\")\n .siteId(1)\n .projectName(\"project\")\n .projectId(2)\n .workflowName(\"workflow\")\n .revision(\"revision\")\n .attemptId(3)\n .sessionId(4)\n .taskName(\"task\")\n .timeZone(ZoneOffset.UTC)\n .sessionUuid(UUID.randomUUID())\n .sessionTime(OffsetDateTime.now())\n .workflowDefinitionId(5L)\n .build();\n try {\n body(notification);\n }\n catch (Exception e) {\n throw ThrowablesUtil.propagate(e);\n }\n }", "public void hasInternetListenerRegister(LifecycleOwner owner, Context ctx){\n NetworkConnection networkConnection = new NetworkConnection(ctx.getApplicationContext());\n networkConnection.observe(owner, status->{\n isConnected = status;\n });\n }", "public java.lang.String getWatcher(){\r\n return localWatcher;\r\n }", "private void launchNotificationsThread() {\n Thread t = new Thread(\"JMXNotificationThread for \" + BodyWrapper.this.objectName) {\n @Override\n public void run() {\n // first we wait for the creation of the body\n while (!BodyWrapper.this.body.isActive() && BodyWrapper.this.body.isAlive()) {\n try {\n Thread.sleep(updateFrequence);\n } catch (InterruptedException e) {\n logger.error(\"The JMX notifications sender thread was interrupted\", e);\n }\n }\n \n // and once the body is activated, we can forward the\n // notifications\n while (BodyWrapper.this.body.isActive()) {\n try {\n Thread.sleep(updateFrequence);\n sendNotifications();\n } catch (InterruptedException e) {\n logger.error(\"The JMX notifications sender thread was interrupted\", e);\n }\n }\n }\n };\n t.setDaemon(true);\n t.start();\n }", "public Boolean notificationPresent() {\n\t\tBoolean isPresent = false;\n\t\twait.resetImplicitTimeout(2);\n\t\ttry {\n\t\t\tif (elements(\"li_notificationCount\").size() == 1) {\n\t\t\t\tisPresent = true;\n\t\t\t}\n\t\t} catch (NoSuchElementException e) {\n\t\t\tisPresent = false;\n\t\t}\n\t\twait.resetImplicitTimeout(wait.timeout);\n\t\treturn isPresent;\n\t}", "public interface INotificationFactory {\n\n /**\n * Implements a query to get user's device list, that is, mobile device unique ID value.\n *\n * @param idUser the ID of user\n * @param type the ID of notification type\n * @return the set of String,devices list\n */\n @Deprecated\n Set<NotificationMessageContainer> getUserDevice(long idUser, int type, EnumOperationSystem os);\n\n /**\n * Implements a query to get a user's follower mobile device ID to \"push notification\"\n *\n * @param idUser the ID of user\n * @param idChannel the ID of channel, if channel is private we get only the channel memberships device list\n * @param isPrivately define should device list generated for private push notification\n * @param type the type of notification activity\n * @return the set of String of devices\n */\n Set<NotificationMessageContainer> getUserMultiDevice(long idUser, long idChannel, boolean isPrivately, int type, EnumOperationSystem os);\n\n /**\n * Implements a query to get a user's follower mobile device ID to \"push LIVE notification\"\n *\n * @param idUserFrom the ID of user\n * @param idChannel the ID of channel, if channel is private we get only the channel memberships device list\n * @param key key for redis store\n * @param isPrivately define should device list generated for private push notification\n */\n Long setLiveNotificationUsers(long idUserFrom, long idChannel, long key, boolean isPrivately);\n}", "private InstalledOfficeManagerHolder() {\n throw new AssertionError(\"Utility class must not be instantiated\");\n }", "@Override\r\n\tpublic Notification createEmailNotification() {\n\t\treturn null;\r\n\t}", "public static ToolRegistery getInstance(){\n\t\treturn InstanceKeeper.instance;\n\t}", "public Notification getActiveNotification(){\r\n\t\ttry{\r\n\t\t\treturn this.getChildCount() > 0 ? ((NotificationView) this.getCurrentView()).getNotification() : null;\r\n\t\t}catch(Exception ex){\r\n\t\t\tLog.e(_context, \"NotificationViewFlipper.getActiveNotification() ERROR: \" + ex.toString());\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\n\tpublic boolean isConnectionNotificationReceived(User me, User notifier) {\n\t\tList<Notification> notifications = notificationRepository.findNotificationReceivedFromNotifier(me.getId(),\n\t\t\t\tnotifier.getId());\n\t\tif (!notifications.isEmpty())\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public static void enableRegNotifications() {\n\t\t\n\t}", "public static InspectionManager getInstance() {\n if (instance == null) {\n instance = new InspectionManager();\n }\n\n return instance;\n }", "public void test_WrapNotifyingCase() throws Exception {\n\t\tinit(null); \n\t\trepo = factory.createRepository(notifier) ;\n\t\trepo.initialize() ;\n\t\t\n\t\tassertTrue(repo instanceof NamedQueryRepositoryWrapper) ;\n\t\tfunctionalTest();\n\t}", "public void test_setNotifying() throws Exception {\n\t\tinit(null) ;\n\t\trepo = factory.getRepository(factory.getConfig()) ;\n\t\t((RepositoryWrapper) repo).setDelegate(notifier) ;\n\t\trepo.initialize() ;\n\t\tfunctionalTest() ;\n\t}", "private Notifier(){}", "private static void checkConfiguration() {\n try {\n ClientManager.rebuildSocket();\n ClientManager.closeSocket();\n } catch (IOException e) {\n new NetworkNotAvailableErrorStarter(NetworkNotAvailableError.class, null);\n }\n }", "public BufferedImage getTrayiconNotification() {\n return loadTrayIcon(\"/images/\" + OS + TRAYICON_NOTIFICATION);\n }", "private void initNotification() {\n Notification.Builder notificationBuilder =\n new Notification.Builder(this).setSmallIcon(R.drawable.notification_anim)\n .setContentTitle(\"Streaming\")\n .setContentText(\"Display mode stream\")\n .setTicker(\"Stream in progress\");\n notificationBuilder.setAutoCancel(true);\n if (notificationManager != null)\n notificationManager.notify(12345, notificationBuilder.build());\n }", "public static UDPSender getInstance(URI serverURI) {\n\t\tUDPSender sender = (UDPSender) senders.get(nvl(serverURI, \"Server URI\"));\n\t\tif(sender==null) {\n\t\t\tsynchronized(senders) {\n\t\t\t\tsender = (UDPSender) senders.get(serverURI);\n\t\t\t\tif(sender==null) {\n\t\t\t\t\tsender = new UDPSender(serverURI);\n\t\t\t\t\tsenders.put(serverURI, sender);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn sender;\n\t}", "private void checkIfAlive() {\n synchronized (this) {\n if (!mIsAlive) {\n Log.e(LOG_TAG, \"use of a released dataHandler\", new Exception(\"use of a released dataHandler\"));\n //throw new AssertionError(\"Should not used a MXDataHandler\");\n }\n }\n }", "public static WURFLHolder getWURFLHolder()throws Exception{ \n if(getSessionData().getWurflHolder() == null){\n getSessionData().setWurflHolder((WURFLHolder) getServletContext()\n .getAttribute(\"net.sourceforge.wurfl.core.WURFLHolder\"));\n } \n return getSessionData().getWurflHolder();\n }", "public boolean upnpAvailable();", "private EventNotifier<OIFitsCollectionManagerEvent, OIFitsCollectionManagerEventType, Object> getOiFitsCollectionChangedEventNotifier() {\n return this.oiFitsCollectionManagerEventNotifierMap.get(OIFitsCollectionManagerEventType.COLLECTION_CHANGED);\n }", "public static final ResultObserver getInstance() {\n return sInstance;\n }", "public static RMIUtils getInstance() {\n return InstanceHolder.INSTANCE;\n }", "private boolean initServiceManager() {\n Log.i(TAG, \"Registering INetPerfTuner service ready callback.\");\n synchronized (mLock) {\n mINetPerfTuner = null;\n if (mIServiceManager != null) {\n // Already have an IServiceManager and serviceNotification registered,\n // don't register another.\n return true;\n }\n try {\n mIServiceManager = IServiceManager.getService();\n if (mIServiceManager == null) {\n Log.e(TAG, \"Failed to get HIDL Service Manager\");\n return false;\n }\n if (!linkToServiceManagerDeath()) {\n return false;\n }\n /* TODO(b/33639391) : Use the new INetPerfTuner.registerForNotifications() once it\n exists */\n if (!mIServiceManager.registerForNotifications(\n INetPerfTuner.kInterfaceName, \"\", mServiceNotificationCallback)) {\n Log.e(TAG, \"Failed to register for notifications to \"\n + INetPerfTuner.kInterfaceName);\n mIServiceManager = null; // Will need to register a new ServiceNotification\n return false;\n }\n } catch (RemoteException e) {\n Log.e(TAG, \"Exception while trying to register a listener for INetPerfTuner service: \"\n + e);\n netPerfTunerServiceDiedHandler();\n }\n return true;\n }\n }", "boolean isMonitoring();", "boolean isMonitoring();", "public Notifier(final EmailNotifierService notifierService, final SlackNotifierService slackNotifierService) {\n this.notifierService = notifierService;\n this.slackNotifierService = slackNotifierService;\n }", "public NotificationReceiverService() {\n }", "default boolean isAvailable() {\n switch (getState()) {\n case STOPPED:\n return true;\n case STARTING:\n return false;\n case STARTED:\n return false;\n case STOPPING:\n return false;\n default:\n throw new IllegalStateException(\"The speaker state is in an unknown state\");\n }\n }", "public checkUserExpiration() {\n memberBroker = new membersBroker();\naccountBroker= new accountsBroker();\n }", "private static StatusListener getListener() {\n StatusListener statusListener = new StatusListener () {\n @Override\n public void onException(Exception e) {\n }\n\n public void onStatus(Status status) {\n reply(status);\n }\n\n @Override\n public void onDeletionNotice(StatusDeletionNotice statusDeletionNotice) {\n }\n\n @Override\n public void onTrackLimitationNotice(int i) {\n }\n\n @Override\n public void onScrubGeo(long l, long l1) {\n }\n\n @Override\n public void onStallWarning(StallWarning stallWarning) {\n }\n\n };\n return statusListener;\n }", "private void checkPendingCMMNotif()\n throws AlertException {\n\n NodeChange curNotif = null;\n while (true) {\n synchronized(cmmNotifications) {\n try {\n curNotif = (NodeChange) cmmNotifications.removeFirst();\n } catch (NoSuchElementException no) {\n return;\n }\n } \n processCMMNotif(curNotif);\n }\n }", "public static PMAReportNotificationHelper getInstance() throws IOException, URISyntaxException {\n if (instance == null) {\n instance = new PMAReportNotificationHelper();\n }\n return instance;\n }", "PartyType getNotifyParty();", "public ESocketThreadNew() {\n ac = new FileSystemXmlApplicationContext(\"classpath*:applicationContext.xml\");\n if (ESocketThreadNew.service == null) {\n ESocketThreadNew.service = ac.getBean(VnsAuthorGETServiceNew.class);\n }\n if (ESocketThreadNew.resultService == null) {\n ESocketThreadNew.resultService = ac.getBean(VnsResultService.class);\n }\n if (ESocketThreadNew.vnsPulseService == null) {\n ESocketThreadNew.vnsPulseService = ac.getBean(VnsPulseService.class);\n }\n if (ESocketThreadNew.locationService == null) {\n ESocketThreadNew.locationService = ac.getBean(VnsLocationService.class);\n }\n }", "private void notifyExpire(final Helper helper) {\n final Island island = EmberIsles.getInstance().getWorldManager().getIslandAtLoc(helper.getWorldType(), helper.getIslandKey().getGridX(), helper.getIslandKey().getGridZ());\n // Safety check against programming bugs, data corruption etc since island can't be null here for valid helper data\n if (island == null) {\n return;\n }\n final Player recipient = Bukkit.getPlayer(helper.getPlayerId());\n final Player sender = Bukkit.getPlayer(island.getOwner());\n if (recipient == null || sender == null) {\n return;\n }\n if (sender.isOnline()) {\n sender.sendMessage(String.format(EmberIsles.getInstance().getMessage(\"helper-expire-sender\"), recipient.getName()));\n }\n if (recipient.isOnline()) {\n recipient.sendMessage(String.format(EmberIsles.getInstance().getMessage(\"helper-expire-recipient\"), sender.getName()));\n }\n }", "public static URL getEmailServer()\n {\n return emailServer;\n }", "public EventNotifier<OIFitsCollectionManagerEvent, OIFitsCollectionManagerEventType, Object> getActivePlotChangedEventNotifier() {\n return this.oiFitsCollectionManagerEventNotifierMap.get(OIFitsCollectionManagerEventType.ACTIVE_PLOT_CHANGED);\n }", "public boolean isLingering();", "public static synchronized BroadcastReceiverHandler getInstance() {\n return SingletonHolder.instance;\n }", "public void invokeNotification(){\r\n\t\tApplication application = eurekaClient.getApplication(\"NOTIFICATION-SERVICE\");\r\n\t InstanceInfo instanceInfo = application.getInstances().get(0);\r\n\t String url = \"http://\"+instanceInfo.getIPAddr()+ \":\"+instanceInfo.getPort()+\"/notification-service/notify\";\r\n\t System.out.println(\"URL\" + url); \r\n\t Notification notificationMockObject = new Notification();\r\n\t String notificationId = restTemplate.postForObject(url, notificationMockObject, String.class);\r\n\t System.out.println(\"RESPONSE \" + notificationId);\r\n\t}", "public static synchronized SubscriptionHelper getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new SubscriptionHelper();\n\t\t}\n\t\treturn instance;\n\t}", "public Notification getEmail(String str) {\n return null;\n }", "private void checkAndRequestDNDAccess() {\n NotificationManager n = (NotificationManager) getApplicationContext().getSystemService(Context.NOTIFICATION_SERVICE);\n if(!n.isNotificationPolicyAccessGranted()) {\n startDNDPermissionActivity();\n }\n }", "Rigger getRiggerInstance() throws Exception {\r\n Class<?> riggerClazz = Class.forName(Rigger.class.getName());\r\n Method getInstance = riggerClazz.getDeclaredMethod(\"getInstance\");\r\n getInstance.setAccessible(true);\r\n return (Rigger) getInstance.invoke(null);\r\n }", "public boolean hasNotifications()\n {\n return !this.notifications.isEmpty();\n }", "private static boolean isReadyForUse(IReasoner reasoner) {\r\n boolean result = false;\r\n if (null != reasoner) {\r\n ReasonerDescriptor desc = reasoner.getDescriptor();\r\n if (null != desc) {\r\n result = desc.isReadyForUse();\r\n }\r\n }\r\n return result;\r\n }", "private boolean isServiceAvailable() {\n if (mComponentName == null) {\n mComponentName = resolveAttentionService(mContext);\n }\n return mComponentName != null;\n }", "public static void localNotificationsInitializePlugin() {\n ThreadUtil.performOnMainThread(new Runnable() {\n @Override\n public void run() {\n if (_instance != null && _instance.localNotificationsInteractionLayer == null) {\n _instance.localNotificationsInteractionLayer = new LocalNotificationsInteractionLayer(_instance);\n AndroidNativeLocalNotifications_onLocalNotificationsInitialized();\n if (_instance.getIntent().hasExtra(\"NOTIFICATION_ID\")) {\n AndroidNativeLocalNotifications_onLocalNotificationsPress(_instance.getIntent().getIntExtra(\"NOTIFICATION_ID\", 0));\n }\n }\n }\n });\n }", "Messenger getMessenger();", "public static EmailNotificationStrategy getStrategy() {\n switch ( activeServiceProviderSetting) {\n case \"gmail\":\n return new GmailNotificationStrategy();\n case \"hotmail\":\n return new HotmailNotificationStrategy();\n default:\n return new GmailNotificationStrategy();\n }\n }", "@Override\n public boolean run() {\n if (getObserver.get().getExists() == Existence.MAYBE) {\n return false;\n }\n\n // Get the results and check for Success/Fail.\n Endpoints result = getObserver.get();\n if (result.result == Endpoints.Result.Success) {\n\n // We have a list of Endpoints! Now lets remove one.\n removeDevice(getObserver.get());\n } else {\n Logger.e(\"Unable to get registered devices\");\n }\n return true;\n }", "boolean isUseRegistryKeepAlive();", "public static Ratchet getRatchet() {\n\t\treturn INSTANCE;\n\t}", "public Checker getChecker() {\n return checker;\n }", "T getPushNotification();" ]
[ "0.73656213", "0.6971227", "0.5982505", "0.5809037", "0.5805786", "0.5740172", "0.56916", "0.5633865", "0.5452457", "0.53875357", "0.535109", "0.5231179", "0.5210335", "0.51520073", "0.511765", "0.5080913", "0.5075564", "0.50670516", "0.5064449", "0.5043112", "0.4982069", "0.49732837", "0.4952109", "0.4940269", "0.49256867", "0.49189517", "0.48979267", "0.48874366", "0.48751962", "0.4843559", "0.482359", "0.48078936", "0.48003682", "0.47926962", "0.47834203", "0.47717953", "0.47578508", "0.4749087", "0.47443065", "0.4742423", "0.4741349", "0.47407606", "0.4727233", "0.47226557", "0.47202", "0.47170928", "0.4706301", "0.4690634", "0.46899813", "0.46847746", "0.46827057", "0.46680057", "0.46637848", "0.465877", "0.46501255", "0.4637164", "0.46360433", "0.46275583", "0.46216047", "0.46014658", "0.4594165", "0.45929405", "0.45911014", "0.45907515", "0.45905003", "0.4568801", "0.45670018", "0.4555002", "0.45535284", "0.45535284", "0.45534113", "0.4552808", "0.4548004", "0.45345977", "0.4532761", "0.45252892", "0.45234418", "0.45186028", "0.451769", "0.45114765", "0.45093971", "0.45065027", "0.45055604", "0.44954288", "0.44923165", "0.44845942", "0.4475945", "0.44750893", "0.44697455", "0.4465109", "0.4462686", "0.44614935", "0.4460305", "0.44520876", "0.4447793", "0.44472018", "0.44464785", "0.4446055", "0.4445107", "0.4442243" ]
0.60776836
2
new Notification(summary, text, imageFile == null ? null : imageFile.getCanonicalPath()) .show();
@Override public void sendNotify(String summary, String text, File imageFile) throws IOException { try { Constructor<?> constructor = notificationClass.getConstructor(String.class, String.class, String.class); String imageFilePath = imageFile == null ? null : imageFile.getCanonicalPath(); Object notification = constructor.newInstance(summary, text, imageFilePath); notificationClass.getMethod("show").invoke(notification); } catch (InstantiationException | IllegalAccessException | NoSuchMethodException e) { logger.error("#sendNotify", e); } catch (InvocationTargetException e) { logger.error("#sendNotify", e.getCause()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showNotification() {\n\n }", "private void showNotification() {\n }", "private void showArrivalNotification(int image, String location) {\n NotificationFragment notification = new NotificationFragment(getActivity());\n notification.setNotifierImage(image);\n notification.setNotifierText(\"You are at \" + location +\n \"\\n\\n Look for the marker and switch to AR view in the menu to scan barcodes!\");\n notification.show(getActivity().getFragmentManager(), \"pop up\");\n }", "@Override\n public NotificationCompat.Builder extend(NotificationCompat.Builder builder) {\n Bitmap roundBitmap = Util.getCircleBitmap(loadedImage);\n return builder.setContentTitle(contact.getName())\n //.setColor(new BigInteger(\"FF333333\", 16).intValue())\n .setLargeIcon(roundBitmap);\n /*.setSound(Uri.parse(\"content://media/internal/audio/media/32\"))\n .setColor(new BigInteger(\"FF00FF00\", 16).intValue())\n .setStyle(new NotificationCompat.BigTextStyle().bigText(\"[Modified Body(bigText)]\"))\n .setContentText(\"[Modified Body(ContentText)]\");*/\n }", "private void showUploadFinishedNotification(@Nullable Uri downloadUrl, @Nullable Uri fileUri) {\n Intent intent = new Intent(this, FirebaseActivity.class)\n .putExtra(EXTRA_DOWNLOAD_URL, downloadUrl)\n .putExtra(EXTRA_FILE_URI, fileUri)\n .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\n // Make PendingIntent for notification\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* requestCode */, intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n\n // Set message and icon based on success or failure\n boolean success = downloadUrl != null;\n String message = success ? \"Upload finished\" : \"Upload failed\";\n int icon = success ? R.drawable.ic_menu_gallery : R.drawable.ic_menu_gallery;\n\n NotificationCompat.Builder builder = (NotificationCompat.Builder) new NotificationCompat.Builder(this)\n .setSmallIcon(icon)\n .setContentTitle(getString(R.string.app_name))\n .setContentText(message)\n .setAutoCancel(true)\n .setContentIntent(pendingIntent);\n\n NotificationManager manager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n manager.notify(NOTIF_ID_DOWNLOAD, builder.build());\n }", "private void showBigPictureNotification() {\n Notification notification = new NotificationCompat.Builder(getActivity())\n .setContentTitle(getString(R.string.nf_big_pic_title))\n //This will show on devices that don't support the big picture and if further notifications\n //come in after the big picture notification.\n .setContentText(getString(R.string.nf_big_pic_message))\n .setTicker(getString(R.string.nf_big_pic_message))\n .setSmallIcon(R.drawable.ic_notify)\n .setLargeIcon(BitmapFactory.decodeResource(getActivity().getResources(), R.drawable.ic_launcher))\n .setContentIntent(pendingIntentForNotification())\n //This will show on devices that do support big pictures.\n .setStyle(new NotificationCompat.BigPictureStyle()\n .bigPicture(BitmapFactory.decodeResource(getActivity().getResources(), R.drawable.chaplin))\n .setBigContentTitle(getString(R.string.nf_big_pic_content_title)))\n .build();\n\n //Same deal as the simple notification.\n notification.flags |= Notification.FLAG_AUTO_CANCEL;\n NotificationManager notificationManager = (NotificationManager)\n getActivity().getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(TAG_BIG_PICTURE_NOTIFICATION, notification);\n }", "private void showNotification() throws NullPointerException\n\t{\n\t\tint status;\n//\t\tstatus = mqttClient != null ? R.string.connected_to_server\n//\t\t\t\t: R.string.cannot_connect_to_server;\n//\t\tPendingIntent contentIntent = PendingIntent.getActivity( this, 0,\n//\t\t\t\tnew Intent( this, MainActivity.class ), 0 );\n//\t\tnotification = new Notification.Builder( this )\n//\t\t\t\t.setContentTitle( this.getString( R.string.service_label ) )\n//\t\t\t\t.setContentText( getResources().getString( status ) )\n//\t\t\t\t.setSmallIcon( Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP\n//\t\t\t\t\t\t? R.mipmap.pristine_zen_icon_silhouette : R.mipmap.pristine_zen_icon )\n//\t\t\t\t.setContentIntent( contentIntent )\n//\t\t\t\t.setAutoCancel( false )\n//\t\t\t\t.setOngoing( true )\n//\t\t\t\t.build();\n\t\tmNotificationManager =\n\t\t\t\t(NotificationManager) getApplicationContext().getSystemService( NOTIFICATION_SERVICE );\n\t\t//notification.flags |= Notification.FLAG_ONGOING_EVENT;\n\t\t//notification.flags |= Notification.FLAG_AUTO_CANCEL;\n\n\t\tmNotificationManager.notify( 123321, notification );\n\t}", "private void drawNotification(Graphics g, String fileName, int x, int y) throws IOException{\n\t\t ImageIcon bg;\n\t\t bg = new ImageIcon(ImageIO.read(new File(relativePath + fileName)));\n\t\t bg.paintIcon(this, g, x, y);\n\t }", "public void updateNotification(){\n Bitmap androidImage=BitmapFactory.decodeResource(getResources(),R.drawable.mascot_1);\n NotificationCompat.Builder notifyBuilder=getNotificationBuilder();\n notifyBuilder.setStyle(new NotificationCompat.BigPictureStyle().bigPicture(androidImage).setBigContentTitle(\"Notificacion actualizada!\"));\n mNotifyManager.notify(NOTIFICATION_ID,notifyBuilder.build());\n setNotificationButtonState(false, false, true);\n\n }", "public void showNotificationMessage(final String title, final String message, final String timeStamp, Intent intent, String imageUrl) {\n if (TextUtils.isEmpty(message))\n return;\n \n \n // notification icon\n final int icon = R.mipmap.ic_launcher_round;\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\n final PendingIntent resultPendingIntent =\n PendingIntent.getActivity(\n mContext,\n 0,\n intent,\n PendingIntent.FLAG_CANCEL_CURRENT\n );\n \n final NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(\n mContext);\n final Uri alarmSound= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n showSmallNotification(mBuilder, icon, title, message, timeStamp, resultPendingIntent, alarmSound);\n playNotificationSound();\n }", "private void showNotificationMessageWithBigImage (Context context, String title, String message, String timeStamp, Intent intent, String imageUrl) {\n notificationUtils = new com.actiknow.plothr.gcm.NotificationUtils(context);\n intent.setFlags (Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n notificationUtils.showNotificationMessage (title, message, timeStamp, intent, imageUrl);\n }", "public void showNotification(String title,String message)\n {\n\n Bitmap icon = BitmapFactory.decodeResource(this.getResources(),\n R.drawable.girl);\n// NotificationCompat.Builder builder = new NotificationCompat.Builder(this,\"Notify\")\n// .setContentTitle(title).setSmallIcon(R.drawable.common_google_signin_btn_icon_dark)\n\n// // .addAction(R.drawable.user,\"Pay\",payInent)\n// //.addAction(R.drawable.user,\"Pay Later\",payLaterInent)\n// .setDefaults(Notification.DEFAULT_ALL)\n// .setPriority(NotificationManager.IMPORTANCE_HIGH)\n// .setAutoCancel(true).setContentText(message).setLargeIcon(icon)\n// .setStyle(new NotificationCompat.BigPictureStyle()\n// .bigPicture(icon).bigLargeIcon(null));\n\n// NotificationCompat.Builder builder;\n// builder = new NotificationCompat.Builder(this, \"Notify\");\n// builder.setContentTitle(title) // required\n// .setSmallIcon(R.drawable.user) // required\n// .setContentText(message) // required\n// .setStyle(new NotificationCompat.BigPictureStyle()\n// .bigPicture(icon).setSummaryText(\"\"))\n// .setAutoCancel(true)\n// .setVibrate(new long[]{100, 200, 300, 400, 500, 400, 300, 200, 400})\n// .setSound(Settings.System.DEFAULT_NOTIFICATION_URI)\n// .setPriority(NotificationCompat.PRIORITY_HIGH)\n// ;\n\n Notification notification = null;\n if( message.charAt(0) == 'C' )\n {\n// Intent intent = new Intent(this, PayLater.class);\n Intent intent = new Intent(this, PayLaterTest.class);\n PendingIntent payInent = PendingIntent.getActivity(MyMessagingService.this, 0, intent, 0);\n notification = new NotificationCompat.Builder(this, \"Notify\")\n .setSmallIcon(android.R.drawable.ic_dialog_info)\n .setContentTitle(title)\n .setContentText(message)\n .setDefaults(Notification.DEFAULT_ALL)\n .setPriority(NotificationCompat.PRIORITY_DEFAULT)\n .setVibrate(new long[0])// heads-up\n .addAction(R.drawable.user,\"Pay\",payInent)\n .setAutoCancel(true)\n .build();\n }\n else if( message.charAt(0) == 'G' )\n {\n //start activity go in\n Intent intent = new Intent(this, PayActivity.class);\n PendingIntent payInent = PendingIntent.getActivity(MyMessagingService.this, 0, intent, 0);\n notification = new NotificationCompat.Builder(this, \"Notify\")\n .setSmallIcon(android.R.drawable.ic_dialog_info)\n .setContentTitle(title)\n .setContentText(message)\n .setDefaults(Notification.DEFAULT_ALL)\n .setPriority(NotificationCompat.PRIORITY_DEFAULT)\n .setVibrate(new long[0])// heads-up\n .addAction(R.drawable.user,\"Verify\",payInent)\n .setAutoCancel(true)\n .build();\n }\n else if( message.charAt(0) == 'I' )\n {\n //start activity invalid slot\n// Intent intent = new Intent(this, PayActivity.class);\n\n// PendingIntent payInent = PendingIntent.getActivity(MyMessagingService.this, 0, intent, 0);\n notification = new NotificationCompat.Builder(this, \"Notify\")\n .setSmallIcon(android.R.drawable.ic_dialog_info)\n .setContentTitle(title)\n .setContentText(message)\n .setDefaults(Notification.DEFAULT_ALL)\n .setPriority(NotificationCompat.PRIORITY_DEFAULT)\n .setAutoCancel(true)\n .setVibrate(new long[0])// heads-up\n // .addAction(R.drawable.user,\"Verify\",payInent)\n .build();\n }\n\n m = (NotificationManager) getSystemService(getApplicationContext().NOTIFICATION_SERVICE);;\n m.notify(999,notification);\n // m.cancel(999);\n }", "private void ShowNotification()\n {\n Notification n = new Notification.Builder(this)\n .setContentTitle(\"Message from Himanshu\")\n .setContentText(\"Thank you Sir. Enjoyed Your Class!\")\n .setSmallIcon(R.drawable.cloud)\n //.setContentIntent(pIntent)\n .setAutoCancel(true)\n //.addAction(R.drawable.icon, \"Call\", pIntent)\n //.addAction(R.drawable.icon, \"More\", pIntent)\n //.addAction(R.drawable.icon, \"And more\", pIntent)\n .getNotification();\n\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n\n try {\n notificationManager.notify(0, n);\n }catch (Exception ex) {\n Log.d(\"MyApp\", \"Exception Occured!\");\n }\n }", "public void addNotify()\n {\n super.addNotify();\n\t\n ib = createImage(width,height);\n ig = ib.getGraphics(); \n }", "public interface Notifier {\n void notifyImageLoaded();\n}", "private void showNotificationMessageWithBigImage(Context context, String title, String message, String timeStamp, Intent intent, String imageUrl) {\n notificationUtils = new NotificationUtils(context);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n notificationUtils.showNotificationMessage(title, message, timeStamp, intent, imageUrl);\n }", "private void showNotificationMessageWithBigImage(Context context, String title, String message, String timeStamp, Intent intent, String imageUrl) {\n notificationUtils = new NotificationUtils(context);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n notificationUtils.showNotificationMessage(title, message, timeStamp, intent, imageUrl);\n }", "private void showNotificationMessageWithBigImage(Context context, String title, String message, String timeStamp, Intent intent, String imageUrl) {\n notificationUtils = new NotificationUtils(context);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n notificationUtils.showNotificationMessage(title, message, timeStamp, intent, imageUrl);\n }", "private void showNotificationMessageWithBigImage(Context context, String title, String message, String timeStamp, Intent intent, String imageUrl) {\n notificationUtils = new NotificationUtils(context,channelId);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n notificationUtils.showNotificationMessage(title, message, timeStamp, intent, imageUrl);\n }", "private void showNotificationMessageWithBigImage(Context context, String title, String message, long timeStamp, Intent intent, String imageUrl) {\n notificationUtils = new NotificationUtils(context);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n notificationUtils.showNotificationMessage(title, message, timeStamp, intent, imageUrl);\n }", "public View getGraphic()\n{\n // Get image for file\n //Image img = _type==FileType.PACKAGE_DIR? Package : ViewUtils.getFileIconImage(_file);\n Image img = ViewUtils.getFileIconImage(_file);\n View grf = new ImageView(img); grf.setPrefSize(18,18);\n \n // If error/warning add Error/Warning badge as composite icon\n /*BuildIssue.Kind status = _proj!=null? _proj.getRootProject().getBuildIssues().getBuildStatus(_file) : null;\n if(status!=null) {\n Image badge = status==BuildIssue.Kind.Error? ErrorBadge : WarningBadge;\n ImageView bview = new ImageView(badge); bview.setLean(Pos.BOTTOM_LEFT);\n StackView spane = new StackView(); spane.setChildren(grf, bview); grf = spane;\n }*/\n \n // Return node\n return grf;\n}", "private void showNotification() {\r\n\t\t// In this sample, we'll use the same text for the ticker and the\r\n\t\t// expanded notification\r\n\t\tCharSequence text = getText(R.string.local_service_started);\r\n\r\n\t\t// Set the icon, scrolling text and timestamp\r\n\t\tNotification notification = new Notification(R.drawable.compass25,\r\n\t\t\t\ttext, System.currentTimeMillis());\r\n\t\tnotification.sound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\r\n\t\t// The PendingIntent to launch our activity if the user selects this\r\n\t\t// notification\r\n\t\tIntent intent = new Intent(this, TaskOverViewActivity.class);\r\n\t\t//intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\r\n\t\tPendingIntent contentIntent = PendingIntent.getActivity(this, 0,\r\n\t\t\t\tintent, PendingIntent.FLAG_UPDATE_CURRENT);\r\n\r\n\t\t// Set the info for the views that show in the notification panel.\r\n\t\tnotification.setLatestEventInfo(this, getText(R.string.service_name),\r\n\t\t\t\ttext, contentIntent);\r\n\r\n\t\t// Send the notification.\r\n\t\t// We use a layout id because it is a unique number. We use it later to\r\n\t\t// cancel.\r\n\t\tmNM.notify(R.string.local_service_started, notification);\r\n\t}", "private void showNotification() {\n CharSequence text = \"Running\";\n\n // The PendingIntent to launch our activity if the user selects this notification\n PendingIntent contentIntent = PendingIntent.getActivity(this, 0,\n new Intent(this, MainActivity.class), 0);\n\n // Set the info for the views that show in the notification panel.\n Notification notification = new Notification.Builder(this)\n //.setSmallIcon(R.drawable.stat_sample) // the status icon\n .setTicker(text) // the status text\n //.setWhen(System.currentTimeMillis()) // the time stamp\n .setContentTitle(\"PodcastFTPService\") // the label of the entry\n .setContentText(text) // the contents of the entry\n .setContentIntent(contentIntent) // The intent to send when the entry is clicked\n .build();\n\n // Send the notification.\n mNM.notify(0, notification);\n }", "private void showSimpleNotification() {\n Notification notification = new NotificationCompat.Builder(getActivity())\n //Title of the notification\n .setContentTitle(getString(R.string.nf_simple_title))\n //Content of the notification once opened\n .setContentText(getString(R.string.nf_simple_message))\n //This bit will show up in the notification area in devices that support that\n .setTicker(getString(R.string.nf_simple_ticker))\n //Icon that shows up in the notification area\n .setSmallIcon(R.drawable.ic_notify)\n //Icon that shows up in the drawer\n .setLargeIcon(BitmapFactory.decodeResource(getActivity().getResources(), R.drawable.ic_launcher))\n //Set the intent\n .setContentIntent(pendingIntentForNotification())\n //Build the notification with all the stuff you've just set.\n .build();\n\n //Add the auto-cancel flag to make it dismiss when clicked on\n //This is a bitmask value so you have to pipe-equals it.\n notification.flags |= Notification.FLAG_AUTO_CANCEL;\n\n //Grab the NotificationManager and post the notification\n NotificationManager notificationManager = (NotificationManager)\n getActivity().getSystemService(Context.NOTIFICATION_SERVICE);\n\n //Set a tag so that the same notification doesn't get reposted over and over again and\n //you can grab it again later if you need to.\n notificationManager.notify(TAG_SIMPLE_NOTIFICATION, notification);\n }", "public static void showPhotogenifiedNotification(Context context) {\n if (context == null) {\n return;\n }\n NotificationCompat.Builder mBuilder =\n new NotificationCompat.Builder(context)\n .setSmallIcon(R.drawable.ic_camera)\n .setContentTitle(context.getString(R.string.notification_photogenified_title))\n .setContentText(context.getString(R.string.notification_photogenified_text));\n Intent resultIntent = new Intent(context, HuntActivity.class);\n\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(context);\n stackBuilder.addParentStack(HuntActivity.class);\n stackBuilder.addNextIntent(resultIntent);\n PendingIntent resultPendingIntent = stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);\n mBuilder.setContentIntent(resultPendingIntent).setAutoCancel(true);\n NotificationManagerCompat mNotificationManager = NotificationManagerCompat.from(context);\n mNotificationManager.notify(NOTIFICATION_PHOTOGENIFY_ID, mBuilder.build());\n }", "public void buildNotification(String radioName, String trackInformation, int artImage) {\n mNotificationManager.startNotification(radioName, trackInformation, artImage);\n }", "private void showNotification() {\n // In this sample, we'll use the same text for the ticker and the expanded notification\n CharSequence text = getText(R.string.local_service_started);\n\n // Set the icon, scrolling text and timestamp\n Notification notification = new Notification(R.drawable.icon, text,\n System.currentTimeMillis());\n\n // The PendingIntent to launch our activity if the user selects this notification\n PendingIntent contentIntent = PendingIntent.getActivity(this, 0,\n new Intent(this, ServiceActivity.class), 0);\n\n // Set the info for the views that show in the notification panel.\n notification.setLatestEventInfo(this, getText(R.string.local_service_label),\n text, contentIntent);\n\n // Send the notification.\n mNM.notify(NOTIFICATION, notification);\n }", "public BufferedImage getTrayiconNotification() {\n return loadTrayIcon(\"/images/\" + OS + TRAYICON_NOTIFICATION);\n }", "private void showImageDetail() {\n }", "@Override\n public void run() {\n try {\n Drawable drawable = Drawable.createFromStream(new URL(image_path).openStream(), \"\");\n\n Message message = Message.obtain();\n message.obj = drawable;\n handler.sendMessage(message);\n } catch (MalformedURLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "private void showNotification() {\r\n\t\t// In this sample, we'll use the same text for the ticker and the\r\n\t\t// expanded notification\r\n\t\tCharSequence text = getText(R.string.local_service_started);\r\n\r\n\t\t// Set the icon, scrolling text and timestamp\r\n\t\tNotification notification = new Notification(R.drawable.service_icon,\r\n\t\t\t\ttext, System.currentTimeMillis());\r\n\r\n\t\t// The PendingIntent to launch our activity if the user selects this\r\n\t\t// notification\r\n\t\tPendingIntent contentIntent = PendingIntent.getActivity(this, 0,\r\n\t\t\t\tnew Intent(this, stopServiceJ.class), 0);\r\n\r\n\t\t// Set the info for the views that show in the notification panel.\r\n\t\tnotification.setLatestEventInfo(this, getText(R.string.service_name),\r\n\t\t\t\ttext, contentIntent);\r\n\r\n\t\t// Send the notification.\r\n\t\t// We use a layout id because it is a unique number. We use it later to\r\n\t\t// cancel.\r\n\t\tmNM.notify(R.string.local_service_started, notification);\r\n\t}", "private void showNotification() {\n\t\t\t\tPendingIntent contentIntent = PendingIntent.getActivity(this, 0, \n\t\t\t\t\t\tnew Intent(this, MainActivity.class), 0);\n\t\t\t\t\n\t\t// Use NotificationCompat.Builder to build the notification, display using mNM\n\t\tNotificationCompat.Builder mNotifyBuilder= new NotificationCompat.Builder(this)\n\t\t\t.setContentTitle(getText(R.string.notificationTitle))\n\t\t\t.setContentText(getText(R.string.notificationText))\n\t\t\t.setSmallIcon(R.drawable.ic_launcher)\n\t\t\t.setContentIntent(contentIntent);\n\t\t\n\t\tmNM.notify(notifyID, mNotifyBuilder.build());\n\t}", "public INotification createNotification()\n throws OculusException;", "private void showNotification(LBSBundle lbs,int status){\n\t\tScenario scenario = (Scenario) EntityPool.instance(\r\n\t\t\t\t).forId(lbs.getParentId(), lbs.getParentTag());\r\n\t\t\r\n\t\t\r\n\t\t// Set the icon, scrolling text and timestamp\r\n\t\tNotification notification = new Notification(R.drawable.compass25,\r\n\t\t\t\tscenario.getName(), System.currentTimeMillis());\r\n\t\tnotification.flags |= Notification.FLAG_AUTO_CANCEL;\r\n\t\tnotification.sound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\r\n\t\t// The PendingIntent to launch our activity if the user selects this\r\n\t\t// notification\r\n\t\tIntent intent = new Intent(this, TaskOverViewActivity.class);\r\n\t\tintent.setAction(TaskOverViewActivity.TASK_OVERVIEWBY_SCENARIO);\r\n\t\tintent.putExtra(TaskOverViewActivity.IN_SCENAIRO_ID, scenario.getId());\r\n\t\t//intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\r\n\t\tPendingIntent contentIntent = PendingIntent.getActivity(this, 0,\r\n\t\t\t\tintent, PendingIntent.FLAG_UPDATE_CURRENT);\r\n\r\n\t\tCharSequence text = getText(status);\r\n\t\t// Set the info for the views that show in the notification panel.\r\n\t\tnotification.setLatestEventInfo(this, scenario.getName(),\r\n\t\t\t\ttext, contentIntent);\r\n\r\n\t\t// Send the notification.\r\n\t\t// We use a layout id because it is a unique number. We use it later to\r\n\t\t// cancel.\r\n\t\tmNM.notify(\tstatus, notification);\r\n\t}", "@Deprecated\n public void popupStartingImage(){\n Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.welcomepage);\n startingImage = new ImageView(this);\n startingImage.setImageBitmap(bitmap);\n\n windowManager = getWindowManager();\n WindowManager.LayoutParams params = new WindowManager.LayoutParams();\n params.type = WindowManager.LayoutParams.TYPE_APPLICATION_PANEL;\n params.gravity = Gravity.NO_GRAVITY;\n params.width = WindowManager.LayoutParams.MATCH_PARENT;\n params.height = WindowManager.LayoutParams.MATCH_PARENT;\n\n windowManager.addView(startingImage, params);\n }", "public static void showNewNotification(Context context, Intent intent, String title, String msg, Bitmap bitmap) {\n\n Uri notificationSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n\n Intent notificationIntent;\n\n if (intent != null) {\n notificationIntent = intent;\n }\n else {\n notificationIntent = new Intent(context.getApplicationContext(), WalletHomeActivity.class);\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n }\n\n PendingIntent pendingIntent = PendingIntent.getActivity((context), 0, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT| PendingIntent.FLAG_ONE_SHOT);\n\n\n NotificationManagerCompat notificationManager = NotificationManagerCompat.from(context);\n\n\n Notification.Builder builder = new Notification.Builder(context);\n if (bitmap != null)\n builder.setStyle(new Notification.BigPictureStyle().bigPicture(bitmap));\n\n\n // Create Notification\n Notification notification = builder\n .setContentTitle(title)\n .setContentText(msg)\n .setTicker(context.getString(R.string.app_name))\n .setSmallIcon(R.drawable.logo_vector)\n .setSound(notificationSound)\n .setLights(Color.RED, 3000, 3000)\n .setVibrate(new long[] { 1000, 1000 })\n .setWhen(System.currentTimeMillis())\n .setDefaults(Notification.DEFAULT_SOUND)\n .setAutoCancel(true)\n .setContentIntent(pendingIntent)\n .build();\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)\n {\n String channelId = \"121\";\n NotificationChannel channel = new NotificationChannel(\n channelId,\n \"Channel eMaisha Pay\",\n NotificationManager.IMPORTANCE_HIGH);\n notificationManager.createNotificationChannel(channel);\n builder.setChannelId(channelId);\n }\n\n notificationManager.notify(NOTIFICATION_REQUEST_CODE, notification);\n\n }", "protected void toastshow() {\n \n\t\tToast toast=new Toast(getApplicationContext());\n\t\tImageView imageView=new ImageView(getApplicationContext());\n\t\timageView.setImageResource(R.drawable.icon);\n\t\ttoast.setView(imageView);\n\t\ttoast.show();\t\n\t}", "private void sendNotification(String ttl, String messageBody) {\n Intent intent = new Intent(this, ActivitySplash.class);\n\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* Request code */, intent,\n PendingIntent.FLAG_ONE_SHOT);\n\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this);\n if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n notificationBuilder.setSmallIcon(R.mipmap.splash_screen_logo);\n notificationBuilder.setColor(getResources().getColor(R.color.white));\n } else {\n notificationBuilder.setSmallIcon(R.mipmap.logo);\n }\n notificationBuilder.setContentTitle(ttl)\n .setContentText(messageBody)\n // .setStyle(new NotificationCompat.BigPictureStyle().bigPicture(image))/*Notification with Image*/\n .setAutoCancel(true)\n .setStyle(new NotificationCompat.BigTextStyle().bigText(messageBody))\n .setLargeIcon(BitmapFactory.decodeResource(getResources(), R.mipmap.logo))\n .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent);\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n notificationManager.notify(0 /* ID of notification */, notificationBuilder.build());\n }", "public void startDownloadNotification(Context context) {\r\n mNotifyManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\r\n mBuilder = new NotificationCompat.Builder(context);\r\n mBuilder.setContentTitle(\"Files Downloading From PC\").setContentText(\"Download progress\").setSmallIcon(android.R.drawable.stat_sys_download_done);\r\n }", "private void showNotification(final CharSequence text) {\n if (DEBUG) {\n Log.v(TAG, \"showNotification:\" + text);\n }\n // Set the info for the views that show in the notification panel.\n final Notification notification = new Notification.Builder(this)\n .setSmallIcon(R.mipmap.ic_launcher) // the status icon\n .setTicker(text) // the status text\n .setWhen(System.currentTimeMillis()) // the time stamp\n .setContentTitle(getText(R.string.app_name)) // the label of the entry\n .setContentText(text) // the contents of the entry\n .setContentIntent(createPendingIntent()) // The intent to send when the entry is clicked\n .build();\n\n startForeground(NOTIFICATION, notification);\n // Send the notification.\n mNotificationManager.notify(NOTIFICATION, notification);\n }", "@SuppressWarnings(\"deprecation\")\n\tprivate Notification makeNotification(){\n \tNotification notice = new Notification(R.drawable.ic_action_about, \n \t\t\tgetString(R.string.notice_ticker), System.currentTimeMillis());\n \tnotice.setLatestEventInfo(this, getString(R.string.notice_title), getString(R.string.notice_content), \n \t\t\tPendingIntent.getActivity(this, 0, new Intent(this, MainActivity.class).\n \t\t\t\t\tsetFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP), 0));\n\n \tnotice.flags |= Notification.FLAG_NO_CLEAR;\n \t\n \treturn notice;\n\n }", "public void isImagePresent() {\r\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void onClick(ClickEvent event) {\n\t\tImage image=(Image)event.getSource();\n\t\tif (image.getAltText().equals(\"nonotice\")) {\n\t\t\timage.setUrl(\"images/notice.jpg\");\n\t\t\timage.setAltText(\"notice\");\n\t\t} else {\n\t\t\timage.setUrl(\"images/nonotice.jpg\");\n\t\t\timage.setAltText(\"nonotice\");\n\t\t}\n\t\treadFeed();\n\t}", "private void initNotification() {\n Notification.Builder notificationBuilder =\n new Notification.Builder(this).setSmallIcon(R.drawable.notification_anim)\n .setContentTitle(\"Streaming\")\n .setContentText(\"Display mode stream\")\n .setTicker(\"Stream in progress\");\n notificationBuilder.setAutoCancel(true);\n if (notificationManager != null)\n notificationManager.notify(12345, notificationBuilder.build());\n }", "private void updateNotification() {\n Bitmap image = null;\n if(currentPlayingItem!=null && currentPlayingItem.hasImage()) {\n image = ((MusicPlayerApplication)getApplication()).imagesCache.getImageSync(currentPlayingItem);\n }\n\n\t\t/* Update remote control client */\n if(currentPlayingItem==null) {\n remoteControlClient.setPlaybackState(RemoteControlClient.PLAYSTATE_STOPPED);\n } else {\n if(isPlaying()) {\n remoteControlClient.setPlaybackState(RemoteControlClient.PLAYSTATE_PLAYING);\n } else {\n remoteControlClient.setPlaybackState(RemoteControlClient.PLAYSTATE_PAUSED);\n }\n RemoteControlClient.MetadataEditor metadataEditor = remoteControlClient.editMetadata(true);\n metadataEditor.putString(MediaMetadataRetriever.METADATA_KEY_TITLE, currentPlayingItem.getTitle());\n metadataEditor.putString(MediaMetadataRetriever.METADATA_KEY_ALBUM, currentPlayingItem.getArtist());\n metadataEditor.putString(MediaMetadataRetriever.METADATA_KEY_ARTIST, currentPlayingItem.getArtist());\n metadataEditor.putLong(MediaMetadataRetriever.METADATA_KEY_DURATION, getDuration());\n if(currentPlayingItem.hasImage()) {\n metadataEditor.putBitmap(METADATA_KEY_ARTWORK, image);\n } else {\n metadataEditor.putBitmap(METADATA_KEY_ARTWORK, icon.copy(icon.getConfig(), false));\n }\n metadataEditor.apply();\n }\n\n sendPlayingStateBroadcast();\n\t\t\n\t\t/* Update notification */\n\t\tNotification.Builder notificationBuilder = new Notification.Builder(this);\n\t\tnotificationBuilder.setSmallIcon(R.drawable.audio_white);\n notificationBuilder.setContentIntent(pendingIntent);\n notificationBuilder.setOngoing(true);\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n\t\t\tnotificationBuilder.setChannelId(NOTIFICATION_CHANNEL);\n\t\t}\n\n if(Build.VERSION.SDK_INT >= 21) {\n int playPauseIcon = isPlaying() ? R.drawable.button_pause : R.drawable.button_play;\n if (currentPlayingItem == null) {\n notificationBuilder.setContentTitle(getString(R.string.noSong));\n notificationBuilder.setContentText(getString(R.string.app_name));\n notificationBuilder.setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher));\n } else {\n notificationBuilder.setContentTitle(currentPlayingItem.getTitle());\n notificationBuilder.setContentText(currentPlayingItem.getArtist());\n if (image == null) {\n notificationBuilder.setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher));\n } else {\n notificationBuilder.setLargeIcon(image);\n }\n }\n notificationBuilder.addAction(R.drawable.button_quit, getString(R.string.quit), quitPendingIntent);\n notificationBuilder.addAction(R.drawable.button_previous, getString(R.string.previous), previousPendingIntent);\n notificationBuilder.addAction(playPauseIcon, getString(R.string.pause), playpausePendingIntent);\n notificationBuilder.addAction(R.drawable.button_next, getString(R.string.next), nextPendingIntent);\n notificationBuilder.setColor(getResources().getColor(R.color.primaryDark));\n notificationBuilder.setStyle(new Notification.MediaStyle().setShowActionsInCompactView(2));\n notification = notificationBuilder.build();\n } else {\n int playPauseIcon = isPlaying() ? R.drawable.pause : R.drawable.play;\n notificationBuilder.setContentTitle(getResources().getString(R.string.app_name));\n\n RemoteViews notificationLayout = new RemoteViews(getPackageName(), R.layout.layout_notification);\n\n if (currentPlayingItem == null) {\n notificationLayout.setTextViewText(R.id.textViewArtist, getString(R.string.app_name));\n notificationLayout.setTextViewText(R.id.textViewTitle, getString(R.string.noSong));\n notificationLayout.setImageViewBitmap(R.id.imageViewNotification, BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher));\n } else {\n String title = currentPlayingItem.getArtist();\n if (!title.equals(\"\")) title += \" - \";\n title += currentPlayingItem.getTitle();\n notificationBuilder.setContentText(title);\n notificationLayout.setTextViewText(R.id.textViewArtist, currentPlayingItem.getArtist());\n notificationLayout.setTextViewText(R.id.textViewTitle, currentPlayingItem.getTitle());\n if (image != null) {\n notificationLayout.setImageViewBitmap(R.id.imageViewNotification, image);\n } else {\n notificationLayout.setImageViewBitmap(R.id.imageViewNotification, BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher));\n }\n }\n notificationLayout.setOnClickPendingIntent(R.id.buttonNotificationQuit, quitPendingIntent);\n notificationLayout.setOnClickPendingIntent(R.id.buttonNotificationPrevious, previousPendingIntent);\n notificationLayout.setImageViewResource(R.id.buttonNotificationPlayPause, playPauseIcon);\n notificationLayout.setOnClickPendingIntent(R.id.buttonNotificationPlayPause, playpausePendingIntent);\n notificationLayout.setOnClickPendingIntent(R.id.buttonNotificationNext, nextPendingIntent);\n notification = notificationBuilder.build();\n notification.bigContentView = notificationLayout;\n }\n\t\t\n\t\tnotificationManager.notify(NOTIFICATION_ID, notification);\n\t}", "private void createNotificationChannel() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\r\n CharSequence name = \"Picture upload\";\r\n String description =\"PRIKACENA SLIKA\";\r\n int importance = NotificationManager.IMPORTANCE_DEFAULT;\r\n NotificationChannel channel = new NotificationChannel(\"slika1\", name, importance);\r\n channel.setDescription(description);\r\n // Register the channel with the system; you can't change the importance\r\n // or other notification behaviors after this\r\n NotificationManager notificationManager = getSystemService(NotificationManager.class);\r\n notificationManager.createNotificationChannel(channel);\r\n }\r\n }", "private void handleActionFoo() {\n NewMessageNotification.notify(this, getImage());\n\n SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(this);\n long duration = pref.getLong( \"bennettscash.pics.duration\", 0 );\n\n Notifier.setupTimer(this, duration);\n// Intent intent = new Intent(this, TimerService.class);\n// intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n// startActivity(intent);\n }", "private Notification getActivityNotification(String title, String text){\n Intent main = getApplicationContext().getPackageManager().getLaunchIntentForPackage(getApplicationContext().getPackageName());\n main.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 1000, main, PendingIntent.FLAG_UPDATE_CURRENT);\n\n int icon = R.drawable.star_big_on;\n int normalIcon = getResources().getIdentifier(\"icon\", \"drawable\", getPackageName());\n int notificationIcon = getResources().getIdentifier(\"notificationicon\", \"drawable\", getPackageName());\n if(notificationIcon != 0) {\n Log.d(TAG, \"Found Custom Notification Icon!\");\n icon = notificationIcon;\n }\n else if(normalIcon != 0) {\n Log.d(TAG, \"Found normal Notification Icon!\");\n icon = normalIcon;\n }\n\n Notification.Builder builder = new Notification.Builder(this);\n builder.setContentTitle(title);\n builder.setContentText(text);\n builder.setSmallIcon(icon);\n builder.setContentIntent(pendingIntent);\n Notification notification;\n if (android.os.Build.VERSION.SDK_INT >= 16) {\n notification = buildForegroundNotification(builder);\n } else {\n notification = buildForegroundNotificationCompat(builder);\n }\n notification.flags |= Notification.FLAG_ONGOING_EVENT | Notification.FLAG_FOREGROUND_SERVICE | Notification.FLAG_NO_CLEAR;\n return notification;\n }", "public void createNotification(View view) {\n Intent intent = new Intent(this, Status1.class);\r\n PendingIntent pIntent = PendingIntent.getActivity(this, 0, intent, 0);\r\n\r\n // Build notification\r\n // Actions are just fake\r\n Notification noti = new Notification.Builder(this)\r\n .setContentTitle(\"RKC App \")\r\n .setContentText(\"Click To Enter \").setSmallIcon(R.drawable.arc)\r\n .setContentIntent(pIntent)\r\n .addAction(R.drawable.ironman, \"Back\", pIntent)\r\n .addAction(R.drawable.gun, \"More\", pIntent)\r\n .build();\r\n NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\r\n // hide the notification after its selected\r\n noti.flags |= Notification.FLAG_AUTO_CANCEL;\r\n\r\n notificationManager.notify(0, noti);\r\n\r\n }", "public static void display(String[] msg, Image image) throws AWTException, java.net.MalformedURLException { \n \tString device = msg[0];\n String app = msg[1];\n String title = msg[2];\n String text = msg[3];\n \t\n SystemTray tray = SystemTray.getSystemTray();\n\n TrayIcon trayIcon = new TrayIcon(image, device);\n \n trayIcon.setImageAutoSize(true);\n tray.add(trayIcon);\n if(title == null || text.contains(title)) {\n trayIcon.displayMessage(app, text, TrayIcon.MessageType.NONE);\n } else {\n trayIcon.displayMessage(app, title + \"\\n\" + text, TrayIcon.MessageType.NONE);\n }\n tray.remove(trayIcon);\n }", "private void createNotification(int icon, String name, String auto_manual, String secondText, int color) {\n\n Intent notificationIntent = new Intent(this, SyncopyActivity.class);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(this,\n 0, notificationIntent, 0);\n Notification notification = new NotificationCompat.Builder(this, CHANNEL_ID)\n .setContentTitle(name)\n .setContentText(secondText)\n .setSubText(String.format(\"(%s)\", auto_manual))\n .setSmallIcon(icon)\n .setColor(getResources().getColor(color))\n .setContentIntent(pendingIntent)\n .setVibrate(null)\n .setSound(null)\n .setPriority(NotificationManager.IMPORTANCE_LOW)\n .build();\n\n synchronized (notification){\n notification.notify();\n }\n\n startForeground(1, notification);\n\n\n }", "private void showNotification() {\n\n Intent intent = new Intent(this, DashboardActivity.class);\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\n stackBuilder.addParentStack(DashboardActivity.class);\n stackBuilder.addNextIntent(intent);\n\n final NotificationCompat.Builder builder = new NotificationCompat.Builder(this);\n\n builder.setSmallIcon(R.drawable.ic_gps);\n builder.setContentText(getText(R.string.local_service_started));\n builder.setContentTitle(getText(R.string.local_service_label));\n builder.setOngoing(true);\n builder.setContentIntent(stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT));\n\n final Notification notification = builder.build();\n\n // Send the notification.\n mNotificationManager.notify(NOTIFICATION, notification);\n }", "public void buildNotificationSingle(){\n if(arraylisted.size() ==1){\n Product contact = arraylisted.get(0);\n\n String userDept = arraylisted.get(0).getDept();\n String userName = arraylisted.get(0).getName();\n String userLevel = arraylisted.get(0).getLevel();\n String userID = arraylisted.get(0).getuserID();\n String str = notifyliste.get(0).getEmail();\n if(str.length() >=200){\n int k = str.length() / 2;\n str = str.substring(0,k) + \" ...\";\n }\n String prep = userName + System.getProperty(\"line.separator\") + userLevel + \" Level - \" + userDept;\n byte[] userPics = arraylisted.get(0).getBLOB();\n\n //build the actviity intents\n Intent notificationIntent = new Intent(getApplicationContext(),viewNamsn.class);\n\n notificationIntent.putExtra(\"userName\", userName);\n notificationIntent.putExtra(\"userLevel\", userLevel);\n notificationIntent.putExtra(\"userDept\", userDept);\n notificationIntent.putExtra(\"userID\", userID);\n notificationIntent.putExtra(\"userPics\", userPics);\n\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY | Intent.FLAG_ACTIVITY_NEW_TASK);\n PendingIntent pend = PendingIntent.getActivity(getApplicationContext(),0,notificationIntent,PendingIntent.FLAG_UPDATE_CURRENT);\n\n //mBuilder = buildNotification(userPics,prep);\n //design the new custom view\n RemoteViews notificationView = new RemoteViews(\n getApplicationContext().getPackageName(),\n R.layout.activity_custom_notification\n );\n Bitmap bitmap = BitmapFactory.decodeByteArray(userPics,0,userPics.length);\n // notificationView.setImageViewResource(R.id.imagenotileft,R.mipmap.ic_launcher);\n notificationView.setImageViewBitmap(R.id.imagenotileft,bitmap);\n // Locate and set the Text into customnotificationtext.xml TextViews\n notificationView.setTextViewText(R.id.title, (getString(R.string.app_name)));\n notificationView.setTextViewText(R.id.text, prep);\n // notificationView.setTextViewText(R.id.qoute, str);\n\n //go and build the notification\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(getApplicationContext());\n mBuilder.setContentIntent(pend);\n mBuilder.setContentTitle(getString(R.string.app_name));\n mBuilder.setContentText(userName + \" Recently Joined ATBU 37 NAMSSN ELITE E-YEAR BOOK !!!\");\n mBuilder.setTicker(userName + \" Recently Joined ATBU 37 NAMSSN ELITE E-YEAR BOOK !!!\");\n mBuilder.setAutoCancel(true);\n mBuilder.setContent(notificationView);\n mBuilder.setSmallIcon(R.mipmap.ic_app);\n mBuilder.setPriority(2);\n Uri alarmsound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n mBuilder.setSound(alarmsound);\n mBuilder.setLights(Color.RED, 3000, 3000);\n mBuilder.setVibrate(new long[]{1000, 1000, 1000, 1000, 1000 });\n //display the notification\n\n NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n notificationManager.notify(0123,mBuilder.build());\n }\n // arraylisted.clear();\n }", "public void showBigNotification(String title, String msg, String url, Intent intent) {\n PendingIntent resulPendingIntent = PendingIntent.getActivity(ctx, ID_BIG_NOTIFICATION, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n NotificationCompat.BigPictureStyle bigPictureStyle = new NotificationCompat.BigPictureStyle();\n bigPictureStyle.setBigContentTitle(title);\n bigPictureStyle.setSummaryText(Html.fromHtml(msg).toString());\n bigPictureStyle.bigPicture(getBitmapFromURL(url));\n NotificationCompat.Builder builder = new NotificationCompat.Builder(ctx);\n Notification notification;\n notification = builder.setSmallIcon(R.drawable.logo).setTicker(title).setWhen(0).setAutoCancel(true)\n .setContentIntent(resulPendingIntent).setStyle(bigPictureStyle).setLargeIcon(BitmapFactory.decodeResource(ctx.getResources(), R.drawable.logo)).setContentText(msg).build();\n\n notification.flags |= Notification.FLAG_AUTO_CANCEL;\n NotificationManager notificationManager = (NotificationManager) ctx.getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(ID_BIG_NOTIFICATION, notification);\n }", "@Override\n\tpublic String getImageURL() {\n\t\treturn \"\";\n\t}", "public void notificationspageButtonPressed(javafx.event.ActionEvent event) throws IOException {\r\n Parent notificationsParent = FXMLLoader.load(getClass().getResource(\"Notification.fxml\"));\r\n Scene notificationsScene = new Scene(notificationsParent);\r\n Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();\r\n window.setScene(notificationsScene);\r\n window.show();\r\n }", "private void displayNoImage() {\n\t\tGRect imageRect = new GRect(LEFT_MARGIN, nameY + IMAGE_MARGIN,\n\t\t\t\tIMAGE_WIDTH, IMAGE_HEIGHT);\n\t\tadd(imageRect);\n\t\tGLabel noImage = new GLabel(\"No Image\");\n\t\tnoImage.setFont(PROFILE_IMAGE_FONT);\n\t\tdouble labelWidth = LEFT_MARGIN + IMAGE_WIDTH / 2 - noImage.getWidth()\n\t\t\t\t/ 2;\n\t\tdouble labelHeight = nameY + IMAGE_MARGIN + IMAGE_HEIGHT / 2;\n\t\tadd(noImage, labelWidth, labelHeight);\n\t}", "public static void createNotification(Context context, Reminder reminder) {\n Intent viewIntent = new Intent(context, MainScreen.class);\n viewIntent.putExtra(\"NOTIFICATION_ID\", reminder.getId());\n viewIntent.putExtra(\"NOTIFICATION_DISMISS\", true);\n PendingIntent pending = PendingIntent.getActivity(context, reminder.getId(), viewIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n /* // Create intent for notification snooze click behaviour\n Intent snoozeIntent = new Intent(context, SnoozeActionReceiver.class);\n snoozeIntent.putExtra(\"NOTIFICATION_ID\", reminder.getId());\n PendingIntent pendingSnooze = PendingIntent.getBroadcast(context, reminder.getId(), snoozeIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n*/\n int imageResId = context.getResources().getIdentifier(reminder.getIcon(), \"drawable\", context.getPackageName());\n\n\n /*NotificationCompat.Builder builder = new NotificationCompat.Builder(context, CHANNEL_ID)\n .setSmallIcon(R.drawable.notification_icon)\n .setContentTitle(textTitle)\n .setContentText(textContent)\n .setPriority(NotificationCompat.PRIORITY_DEFAULT);\n\n */\n NotificationCompat.Builder builder = new NotificationCompat.Builder(context)\n .setSmallIcon(imageResId)\n .setColor(Color.parseColor(reminder.getColour()))\n .setStyle(new NotificationCompat.BigTextStyle().bigText(reminder.getContent()))\n .setContentTitle(reminder.getTitle())\n .setContentText(reminder.getContent())\n .setTicker(reminder.getTitle())\n .setContentIntent(pending);\n\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);\n\n /*if (sharedPreferences.getBoolean(\"checkBoxNagging\", false)) {\n Intent swipeIntent = new Intent(context, DismissReceiver.class);\n swipeIntent.putExtra(\"NOTIFICATION_ID\", reminder.getId());\n PendingIntent pendingDismiss = PendingIntent.getBroadcast(context, reminder.getId(), swipeIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n builder.setDeleteIntent(pendingDismiss);\n\n Calendar calendar = Calendar.getInstance();\n calendar.add(Calendar.MINUTE, sharedPreferences.getInt(\"nagMinutes\", context.getResources().getInteger(R.integer.default_nag_minutes)));\n calendar.add(Calendar.SECOND, sharedPreferences.getInt(\"nagSeconds\", context.getResources().getInteger(R.integer.default_nag_seconds)));\n Intent alarmIntent = new Intent(context, NagReceiver.class);\n AlarmUtil.setAlarm(context, alarmIntent, reminder.getId(), calendar);\n }*/\n\n String soundUri = sharedPreferences.getString(\"NotificationSound\", \"content://settings/system/notification_sound\");\n if (soundUri.length() != 0) {\n builder.setSound(Uri.parse(soundUri));\n }\n if (sharedPreferences.getBoolean(\"checkBoxLED\", true)) {\n builder.setLights(Color.BLUE, 700, 1500);\n }\n if (sharedPreferences.getBoolean(\"checkBoxOngoing\", false)) {\n builder.setOngoing(true);\n }\n if (sharedPreferences.getBoolean(\"checkBoxVibrate\", true)) {\n long[] pattern = {0, 300, 0};\n builder.setVibrate(pattern);\n }\n /*if (sharedPreferences.getBoolean(\"checkBoxMarkAsDone\", false)) {\n Intent intent = new Intent(context, DismissReceiver.class);\n intent.putExtra(\"NOTIFICATION_ID\", reminder.getId());\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context, reminder.getId(), intent, PendingIntent.FLAG_UPDATE_CURRENT);\n builder.addAction(R.drawable.ic_done_white_24dp, context.getString(R.string.mark_as_done), pendingIntent);\n }\n if (sharedPreferences.getBoolean(\"checkBoxSnooze\", false)) {\n builder.addAction(R.drawable.ic_snooze_white_24dp, context.getString(R.string.snooze), pendingSnooze);\n }*/\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n builder.setPriority(Notification.PRIORITY_HIGH);\n }\n\n NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(reminder.getId(), builder.build());\n }", "public void showNotification(String msg) {\n Notification.show(msg);\n }", "public PublishNoImgJoke() {\n\t\tsuper();\n\t}", "private void showNotification(RemoteMessage remoteMessage) {\n\n String postType = remoteMessage.getData().get(\"postType\");\n Intent intent = new Intent(this, MyFeedActivity.class);\n\n String postId = remoteMessage.getData().get(\"postId\");\n String userId = remoteMessage.getData().get(\"userId\");\n String senderId = remoteMessage.getData().get(\"senderId\");\n\n if (postType != null) {\n\n switch (postType) {\n case \"snack\":\n intent = new Intent(this, SnackPostActivity.class);\n intent.putExtra(\"userId\", userId);\n intent.putExtra(\"postId\", postId);\n break;\n case \"follow\":\n intent = new Intent(this, PublicProfileActivity.class);\n intent.putExtra(\"userId\", senderId);\n break;\n case \"commentPanel\":\n case \"likePanel\":\n intent = new Intent(this, PanelPostActivity.class);\n intent.putExtra(\"userId\", userId);\n intent.putExtra(\"postId\", postId);\n break;\n case \"commentSwap\":\n case \"likeSwap\":\n intent = new Intent(this, SwapPostActivity.class);\n intent.putExtra(\"userId\", userId);\n intent.putExtra(\"postId\", postId);\n break;\n default:\n break;\n }\n }\n\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(this,0, intent,\n PendingIntent.FLAG_ONE_SHOT);\n\n Notification notification;\n NotificationCompat.Builder builder;\n NotificationManager notificationManager = getSystemService(NotificationManager.class);\n\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O)\n {\n NotificationChannel notificationChannel = new NotificationChannel(Channel_Id,Channel_Name,NotificationManager.IMPORTANCE_HIGH);\n\n // Set up the notification channel\n notificationChannel.setDescription(Channel_Description);\n notificationManager.createNotificationChannel(notificationChannel);\n builder = new NotificationCompat.Builder(this,Channel_Id);\n\n }\n else {\n builder = new NotificationCompat.Builder(this);\n }\n\n // Get image bitmap for the notification.\n // Adapted from: https://stackoverflow.com/questions/24840282/load-image-from-url-in-notification-android\n Bitmap bitmap = null;\n try {\n InputStream in = new\n URL(remoteMessage.getData().get(\"image\"))\n .openStream();\n bitmap = BitmapFactory.decodeStream(in);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n notification = builder.setContentTitle(remoteMessage.getNotification().getTitle())\n .setContentText(remoteMessage.getNotification().getBody())\n .setSmallIcon(R.drawable.mouse_icon)\n .setLargeIcon(bitmap)\n .setAutoCancel(true)\n .setContentIntent(pendingIntent)\n .build();\n\n notificationManager.notify(0,notification);\n\n }", "protected void toastshow1() {\n \n\t\tToast toast=Toast.makeText(this, \"image and text\", Toast.LENGTH_LONG);\n\t\t\n\t\tLinearLayout linearLayout=new LinearLayout(this);\n\t\tlinearLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tImageView imageView=new ImageView(this);\n\t\timageView.setImageResource(R.drawable.icon);\n\t\tButton button=new Button(this);\n\t\tbutton.setText(\"progress over\");\n\t\tView toastView=toast.getView();\n\t\tlinearLayout.addView(imageView);\n\t\tlinearLayout.addView(button);\n\t\tlinearLayout.addView(toastView);\n\t\t\n\t\ttoast.setView(linearLayout);\n\t\ttoast.show();\n\t\t\n\t}", "@FXML public void showInfo(ActionEvent e){\n\t\tAlert alert = new Alert(AlertType.INFORMATION);\n\t\talert.setTitle(\"Picture Information\");\n\t\talert.setHeaderText(\"Current Photo Information\");\n\t\talert.setContentText(listOfPhotos.get(photoNumber).printAttributes());\n\n\t\talert.showAndWait();\n\t}", "@Override\n\tpublic String getImageName() {\n\t\treturn \"\";\n\t}", "private void ErreurImage() \n {\n JOptionPane.showMessageDialog(rootPane, \"Cette image n'est plus disponible\");\n }", "public String getImage() {\n\t\treturn null;\n\t}", "private void showNotification() {\n // In this sample, we'll use the same text for the ticker and the expanded notification\n CharSequence text = \"Siguiendo el trayecto\";\n\n // The PendingIntent to launch our activity if the user selects this notification\n PendingIntent contentIntent = PendingIntent.getActivity(this, 0,\n new Intent(this, InformacionServicio.class), 0);\n\n // Set the info for the views that show in the notification panel.\n Notification notification = new Notification.Builder(this)\n .setSmallIcon(R.drawable.estrella_full) // the status icon\n .setTicker(text) // the status text\n .setWhen(System.currentTimeMillis()) // the time stamp\n .setContentTitle(\"Conductor Serv\") // the label of the entry\n .setContentText(text) // the contents of the entry\n .setContentIntent(contentIntent) // The intent to send when the entry is clicked\n .build();\n\n // Send the notification.\n //mNM.notify(55, notification);\n //startForeground(56,notification);\n\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)\n startMyOwnForeground();\n else\n startForeground(1, notification);\n\n }", "public interface Notification {\n /**\n * Method to generate and draw notification message\n * @param task it's task for notification message\n */\n void notifyMessage(Task task);\n}", "@Override\r\n\tpublic Notification createEmailNotification() {\n\t\treturn null;\r\n\t}", "private void showEndOfTripNotification() {\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(\"End of trip\")\n .setContentText(\"Notification text has been sent to \" + myFriendObject.getName());\n int mNotificationId = 001;\n NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n manager.notify(mNotificationId, mBuilder.build());\n }", "@SuppressWarnings(\"deprecation\")\n\tprivate void showNotification() {\n\t\t// What happens when the notification item is clicked\n\t\tIntent contentIntent = new Intent(this, MainActivity.class);\n\n\t\tPendingIntent pending = PendingIntent.getActivity(\n\t\t\t\tgetApplicationContext(), 0, contentIntent,\n\t\t\t\tandroid.content.Intent.FLAG_ACTIVITY_NEW_TASK);\n\n\t\tNotification nfc = new Notification(R.drawable.ic_launcher, null,\n\t\t\t\tSystem.currentTimeMillis());\n\t\tnfc.flags |= Notification.FLAG_ONGOING_EVENT;\n\n\t\tString contentText = getString(R.string.service_label);\n\n\t\tnfc.setLatestEventInfo(getApplicationContext(), contentText,\n\t\t\t\tcontentText, pending);\n\n\t\tmNM.notify(NOTIFICATION, nfc);\n\t\tSession.setNotificationVisible(true);\n\t}", "private DialogBox(String text, Image img) {\n try {\n FXMLLoader fxmlLoader = new FXMLLoader(MainWindow.class.getResource(\"/view/DialogBox.fxml\"));\n assert fxmlLoader != null : \"fxmlLoader for DialogBox is null\";\n fxmlLoader.setController(this);\n fxmlLoader.setRoot(this);\n fxmlLoader.load();\n } catch (IOException e) {\n e.printStackTrace();\n }\n dialog.setText(text);\n displayPicture.setImage(img);\n }", "private void mostrarNotificacion(String title, String body)\r\n {\r\n Intent intent = new Intent(this, MainActivity.class);\r\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_ONE_SHOT);\r\n\r\n Uri soundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\r\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)\r\n .setSmallIcon(R.mipmap.ic_launcher)\r\n .setContentTitle(title)\r\n .setContentText(body)\r\n .setAutoCancel(true)\r\n .setSound(soundUri)\r\n .setContentIntent(pendingIntent);\r\n\r\n NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\r\n notificationManager.notify(0/*ID de l notificación*/, notificationBuilder.build());\r\n }", "public void showSmallNotification(String title, String msg, Intent intent) {\n PendingIntent pendingIntent = PendingIntent.getActivity(ctx, ID_SMALL_NOTIFICATION, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n NotificationCompat.Builder builder = new NotificationCompat.Builder(ctx);\n Notification notification = builder.setSmallIcon(R.drawable.logo).setWhen(0).setAutoCancel(true).setContentTitle(title)\n .setContentIntent(pendingIntent).setLargeIcon(BitmapFactory.decodeResource(ctx.getResources(), R.drawable.logo))\n .setContentText(msg).build();\n notification.flags |= Notification.FLAG_AUTO_CANCEL;\n\n NotificationManager notificationManager = (NotificationManager) ctx.getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(ID_SMALL_NOTIFICATION, notification);\n }", "private void showNotification(Intent intent) {\r\n\t\t// This is the 'title' of the notification\r\n\r\n\t\tString title = intent.getStringExtra(\"TITLE\");\r\n\r\n\t\t// This is the icon to use on the notification\r\n\t\tint icon = R.drawable.ic_popup_reminder;\r\n\t\t// This is the scrolling text of the notification\r\n\t\tString date = intent.getStringExtra(\"DATE\");\r\n\t\tString time = intent.getStringExtra(\"TIME\");\r\n\t\tLog.d(\"NILU\", \"SHOW NOTIFICATION::: \" + title + \" \" + date + \" \"\r\n\t\t\t\t+ time);\r\n\r\n\t\tCharSequence text = \"Due on \" + date + \" at \" + time;\r\n\t\t// What time to show on the notification\r\n\t\tlong when = System.currentTimeMillis();\r\n\r\n\t\tNotificationCompat.Builder mBuilder = new NotificationCompat.Builder(\r\n\t\t\t\tthis).setTicker(title + \" Due Soon\")\r\n\r\n\t\t.setContentTitle(title).setSmallIcon(icon).setWhen(when)\r\n\t\t\t\t.setContentText(text);\r\n\t\t// Creates an explicit intent for an Activity in your app\r\n\t\tIntent resultIntent = new Intent(this, NotificationDisplay.class);\r\n\r\n\t\t// The stack builder object will contain an artificial back stack for\r\n\t\t// the\r\n\t\t// started Activity.\r\n\t\t// This ensures that navigating backward from the Activity leads out of\r\n\t\t// your application to the Home screen.\r\n\t\tTaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\r\n\t\t// Adds the back stack for the Intent (but not the Intent itself)\r\n\t\tstackBuilder.addParentStack(NotificationDisplay.class);\r\n\t\t// Adds the Intent that starts the Activity to the top of the stack\r\n\r\n\t\tstackBuilder.addNextIntent(resultIntent);\r\n\t\tPendingIntent resultPendingIntent = stackBuilder.getPendingIntent(0,\r\n\t\t\t\tPendingIntent.FLAG_UPDATE_CURRENT);\r\n\t\tmBuilder.setContentIntent(resultPendingIntent);\r\n\t\tNotification notification = mBuilder.build();\r\n\t\tnotification.flags |= Notification.FLAG_AUTO_CANCEL;\r\n\r\n\t\tmNM.notify(NOTIFICATION, notification);\r\n\r\n\t\t// Stop the service when we are finished\r\n\t\tstopSelf();\r\n\t}", "protected void onPreExecute() {\n mNotificationHelper.createNotification(context.getResources().getString(R.string.upload));\r\n }", "private void createNotification(String title, String body) {\n Context context = getBaseContext();\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n Intent notificationIntent = new Intent(context, OffersActivity.class);\n PendingIntent contentIntent = PendingIntent.getActivity(context,\n 0, notificationIntent,\n PendingIntent.FLAG_CANCEL_CURRENT);\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context)\n .setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(getString(R.string.app_name))\n .setContentText(body)\n .setTicker(body)\n .setSound(defaultSoundUri)\n .setContentIntent(contentIntent)\n .setAutoCancel(true);\n NotificationManager mNotificationManager = (NotificationManager) context\n .getSystemService(Context.NOTIFICATION_SERVICE);\n mNotificationManager.notify(MESSAGE_NOTIFICATION_ID, mBuilder.build());\n }", "public void showNoNotifications(){\n noNotificationsTitle.setVisibility(View.VISIBLE);\n noNotificationsText.setVisibility(View.VISIBLE);\n noNotificationsImage.setVisibility(View.VISIBLE);\n }", "private void sendPushNotification(JSONObject json){\n //Display in log for debugging\n Log.e(TAG, \"Notification JSON: \"+json.toString() );\n try{\n //Fetching the data\n JSONObject data=json.getJSONObject(\"data\");\n\n //Parsing the data recieved\n String title=data.getString(\"title\");\n String message=data.getString(\"message\");\n String ImageUrl=data.getString(\"image\");\n\n //Notification Manager object\n MyNotificationManager mNotificationManager= new MyNotificationManager(getApplicationContext());\n\n //creating an intent for the notification\n Intent intent = new Intent(getApplicationContext(), MainActivity.class);\n\n //Action when no image is present\n if(ImageUrl.equals(\"null\")){\n //Small notification\n mNotificationManager.showSmallNotification(title,message,intent);\n\n }else {\n //Big notification with image\n mNotificationManager.showBigNotification(title,message,ImageUrl,intent);\n }\n }catch (JSONException e){\n Log.e(TAG, \"JSON EXCEPTION: \"+e.getMessage() );\n }catch (Exception e){\n Log.e(TAG, \"Exception: \"+e.getMessage() );\n }\n }", "public static Notification createNotification(XmlAppConfigurationProvider appConfigurationProvider,\n Context context, String title, String content, Bundle intentExtras) {\n int smallNotificationIconResourceId = appConfigurationProvider.getSmallNotificationIconResourceId();\n if (smallNotificationIconResourceId == 0) {\n Log.d(TAG, \"Small notification icon resource was not found. Will use the app icon when \" +\n \"displaying notifications.\");\n smallNotificationIconResourceId = appConfigurationProvider.getApplicationIconResourceId();\n }\n\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context);\n notificationBuilder.setTicker(title);\n notificationBuilder.setAutoCancel(true);\n\n // Create broadcast intent that will fire when the notification has been opened. To action on these messages,\n // register a broadcast receiver that listens to intent <your_package_name>.intent.APPBOY_NOTIFICATION_OPENED\n // and <your_package_name>.intent.APPBOY_PUSH_RECEIVED.\n String pushOpenedAction = context.getPackageName() + \".intent.APPBOY_NOTIFICATION_OPENED\";\n Intent pushOpenedIntent = new Intent(pushOpenedAction);\n if (intentExtras != null) {\n pushOpenedIntent.putExtras(intentExtras);\n }\n PendingIntent pushOpenedPendingIntent = PendingIntent.getBroadcast(context, 0, pushOpenedIntent, PendingIntent.FLAG_ONE_SHOT);\n notificationBuilder.setContentIntent(pushOpenedPendingIntent);\n\n\n // Sets the icon used in the notification bar itself.\n notificationBuilder.setSmallIcon(smallNotificationIconResourceId);\n notificationBuilder.setContentTitle(title);\n notificationBuilder.setContentText(content);\n\n // Setting notification sounds are supported after Honeycomb.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB && intentExtras != null) {\n // Retrieve sound uri if included in intentExtras bundle.\n if (intentExtras.containsKey(Constants.APPBOY_PUSH_NOTIFICATION_SOUND_KEY)) {\n String soundURI = intentExtras.getString(Constants.APPBOY_PUSH_NOTIFICATION_SOUND_KEY);\n if(soundURI != null) {\n if (soundURI.equals(Constants.APPBOY_PUSH_NOTIFICATION_SOUND_DEFAULT_VALUE)) {\n notificationBuilder.setDefaults(Notification.DEFAULT_SOUND);\n } else {\n notificationBuilder.setSound(Uri.parse(soundURI));\n }\n\n }\n }\n }\n\n // From Honeycomb to ICS, we can use a custom view for our notifications which will allow them to be taller than\n // the standard one line of text.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB && Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) {\n Resources resources = context.getResources();\n String packageName = context.getPackageName();\n\n int layoutResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_ID, \"layout\", packageName);\n int titleResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_TITLE_ID, \"id\", packageName);\n int contentResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_CONTENT_ID, \"id\", packageName);\n int iconResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_ICON_ID, \"id\", packageName);\n int timeViewResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_TIME_ID, \"id\", packageName);\n int twentyFourHourFormatResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_TWENTY_FOUR_HOUR_FORMAT_ID, \"string\", packageName);\n int twelveHourFormatResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_TWELVE_HOUR_FORTMAT_ID, \"string\", packageName);\n\n String twentyFourHourTimeFormat = getOptionalStringResource(resources,\n twentyFourHourFormatResourceId, Constants.DEFAULT_TWENTY_FOUR_HOUR_TIME_FORMAT);\n String twelveHourTimeFormat = getOptionalStringResource(resources,\n twelveHourFormatResourceId, Constants.DEFAULT_TWELVE_HOUR_TIME_FORMAT);\n\n if (layoutResourceId == 0 || titleResourceId == 0 || contentResourceId == 0 || iconResourceId == 0\n || timeViewResourceId == 0) {\n Log.w(TAG, String.format(\"Couldn't find all resource IDs for custom notification view, extended view will \" +\n \"not be used for push notifications. Received %d for layout, %d for title, %d for content, %d for icon, \" +\n \"and %d for time.\",\n layoutResourceId, titleResourceId, contentResourceId, iconResourceId, timeViewResourceId));\n } else {\n Log.d(TAG, \"Using RemoteViews for rendering of push notification.\");\n RemoteViews remoteViews = new RemoteViews(packageName, layoutResourceId);\n remoteViews.setTextViewText(titleResourceId, title);\n remoteViews.setTextViewText(contentResourceId, content);\n remoteViews.setImageViewResource(iconResourceId, smallNotificationIconResourceId);\n\n // Custom views cannot be used as part of a RemoteViews so we're using a TextView widget instead. This\n // view will always display the time without date information (even after the day has changed).\n SimpleDateFormat timeFormat = new SimpleDateFormat(\n android.text.format.DateFormat.is24HourFormat(context) ? twentyFourHourTimeFormat : twelveHourTimeFormat);\n String notificationTime = timeFormat.format(new Date());\n remoteViews.setTextViewText(timeViewResourceId, notificationTime);\n notificationBuilder.setContent(remoteViews);\n return notificationBuilder.build();\n }\n }\n\n // If we're using Jelly Bean, we can use the Big View Style, which lets the notification layout size grow to\n // accommodate longer text and images.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n\n // Summary text which appears with content in expanded view.\n String summaryText = \"\";\n\n // If there is an image url found in the extras payload and the image can be downloaded, then\n // use the android BigPictureStyle as the notification. Else, use the BigTextStyle instead.\n if (intentExtras != null) {\n\n // Retrieve summary text if included in intentExtras bundle.\n if (intentExtras.containsKey(Constants.APPBOY_PUSH_SUMMARY_TEXT_KEY)) {\n summaryText = intentExtras.getString(Constants.APPBOY_PUSH_SUMMARY_TEXT_KEY);\n }\n\n // Set a custom notification priority if defined in the bundle.\n notificationBuilder.setPriority(getNotificationPriority(intentExtras));\n\n Bundle extrasBundle = getExtrasBundle(intentExtras);\n if (extrasBundle!=null && extrasBundle.containsKey(Constants.APPBOY_PUSH_BIG_IMAGE_URL_KEY)) {\n String imageUrl = extrasBundle.getString(Constants.APPBOY_PUSH_BIG_IMAGE_URL_KEY);\n Bitmap imageBitmap = downloadImageBitmap(imageUrl);\n if (imageBitmap != null) {\n Log.d(TAG, \"Rendering push notification with BigPictureStyle\");\n\n return getBigPictureNotification(notificationBuilder, imageBitmap, content, summaryText);\n } else {\n Log.d(TAG, \"Bitmap download failed for push notification\");\n }\n }\n }\n Log.d(TAG, \"Rendering push notification with BigTextStyle\");\n return getBigTextNotification(notificationBuilder, content, summaryText);\n }\n return notificationBuilder.build();\n }", "private void setFinalNotification() {\n //finished downloading all files\n // update notification\n String note = getResources().getString(R.string.update_complete);\n mBuilder.setContentTitle(note)\n .setContentText(\"\")\n .setSmallIcon(R.drawable.ic_launcher_mp)\n .setTicker(note)\n .setProgress(0, 0, false);\n nm.notify(0, mBuilder.build());\n }", "public void showNotification(String title,\n String message) {\n\n Intent intent\n = new Intent(this, HomeActivity.class);\n\n String channel_id = \"CCULife\";\n\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n PendingIntent pendingIntent\n = PendingIntent.getActivity(\n this, 0, intent,\n PendingIntent.FLAG_ONE_SHOT);\n\n // Create a Builder object using NotificationCompat\n // class. This will allow control over all the flags\n NotificationCompat.Builder builder\n = new NotificationCompat\n .Builder(getApplicationContext(),\n channel_id)\n .setSmallIcon(R.drawable.sicon)\n .setAutoCancel(true)\n .setVibrate(new long[]{1000, 1000, 1000,\n 1000, 1000})\n .setOnlyAlertOnce(true)\n .setContentIntent(pendingIntent);\n\n // A customized design for the notification can be\n // set only for Android versions 4.1 and above. Thus\n // condition for the same is checked here.\n if (Build.VERSION.SDK_INT\n >= Build.VERSION_CODES.JELLY_BEAN) {\n builder = builder.setContent(\n getCustomDesign(title, message));\n } // If Android Version is lower than Jelly Beans,\n // customized layout cannot be used and thus the\n // layout is set as follows\n else {\n builder = builder.setContentTitle(title)\n .setContentText(message)\n .setSmallIcon(getNotificationIcon());\n }\n // Create an object of NotificationManager class to\n // notify the\n // user of events that happen in the background.\n NotificationManager notificationManager\n = (NotificationManager) getSystemService(\n Context.NOTIFICATION_SERVICE);\n // Check if the Android Version is greater than Oreo\n if (Build.VERSION.SDK_INT\n >= Build.VERSION_CODES.O) {\n NotificationChannel notificationChannel\n = new NotificationChannel(\n channel_id, \"CCULife\",\n NotificationManager.IMPORTANCE_HIGH);\n notificationManager.createNotificationChannel(\n notificationChannel);\n }\n\n notificationManager.notify(0, builder.build());\n }", "private void showNotification() {\n // In this sample, we'll use the same text for the ticker and the expanded notification\n // Set the icon, scrolling text and timestamp\n Notification notification = new Notification(R.drawable.icon, \"Longitude is active\", System.currentTimeMillis());\n\n // The PendingIntent to launch our activity if the user selects this notification\n PendingIntent contentIntent = PendingIntent.getActivity(this, 0,\n new Intent(this, LongitudeActivity.class), 0);\n\n // Set the info for the views that show in the notification panel.\n notification.setLatestEventInfo(this, \"Longitude\", \"Tracking your location\", contentIntent);\n\n // Send the notification.\n notificationManager.notify(NOTIFICATION, notification);\n }", "private void showBigPictureNotification() {\n Bitmap bmp = BitmapFactory.decodeResource(this.getResources(),R.drawable.food);\n NotificationCompat.BigPictureStyle style = new NotificationCompat.BigPictureStyle();\n style.setBigContentTitle(\"Big pictures regular notification\");\n style.bigPicture(bmp);\n\n\n\n //Build the content of the notification\n NotificationCompat.Builder builder = new NotificationCompat.Builder(ActivityA.this);\n builder.setContentTitle(\"Big Picture Regular Notification\");\n builder.setContentText(contentText);\n builder.setSmallIcon(R.drawable.ic_launcher_background);\n builder.setTicker(\"Hey, This is a ticker!!!!!!\");\n builder.setAutoCancel(true);\n builder.setStyle(style);\n\n\n //Provide explicit intents for notification\n Intent i = new Intent(ActivityA.this,ActivityB.class);\n //Add a back stack using task using stack builder and set the intent to pending intent\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\n stackBuilder.addParentStack(ActivityB.class);\n stackBuilder.addNextIntent(i);\n PendingIntent pi_main =stackBuilder.getPendingIntent(0,PendingIntent.FLAG_UPDATE_CURRENT);\n\n //Provide explicit intents Add a back stack using task using stack builder and set the intent to pending intent for settings\n Intent j = new Intent(ActivityA.this,Settings.class);\n TaskStackBuilder stackBuilder_settings = TaskStackBuilder.create(this);\n stackBuilder_settings.addParentStack(Settings.class);\n stackBuilder_settings.addNextIntent(j);\n PendingIntent pi_settings =stackBuilder_settings.getPendingIntent(0,PendingIntent.FLAG_UPDATE_CURRENT);\n\n\n //Provide explicit intents Add a back stack using task using stack builder and set the intent to pending intent for help\n Intent k = new Intent(ActivityA.this,Help.class);\n TaskStackBuilder stackBuilder_help = TaskStackBuilder.create(this);\n stackBuilder_help.addParentStack(Help.class);\n stackBuilder_help.addNextIntent(k);\n PendingIntent pi_help =stackBuilder_help.getPendingIntent(0,PendingIntent.FLAG_UPDATE_CURRENT);\n\n builder.setContentIntent(pi_main);\n builder.addAction(R.drawable.settings,\"Settings\",pi_settings);\n builder.addAction(R.drawable.help,\"Help\",pi_help);\n\n //Notifications through notification manager\n Notification notification = builder.build();\n NotificationManager manager = (NotificationManager) this.getSystemService(NOTIFICATION_SERVICE);\n manager.notify(9127,notification);\n }", "public void setImage(String image){\n this.image = image;\n }", "private void createNotification(Bitmap bitmap, Integer wifiLocationsNearby, String closestWifiLocationAddressText) {\n if (notificationManager == null) {\n notificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n }\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n if (notificationManager != null) {\n NotificationChannel notificationChannel = notificationManager.getNotificationChannel(NOTIFICATION_CHANNEL_ID);\n if (notificationChannel == null) {\n notificationChannel = new NotificationChannel(NOTIFICATION_CHANNEL_ID,\n \"channel_name\", NotificationManager.IMPORTANCE_HIGH);\n notificationChannel.setDescription(\"channel_description\");\n notificationManager.createNotificationChannel(notificationChannel);\n }\n }\n }\n Intent intent = new Intent(this, MainActivity.class)\n .setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n builder = new NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID)\n .setContentTitle(String.format(getString(R.string.static_image_api_notification_content_title),\n wifiLocationsNearby, tilequerySearchRadiusFeet))\n .setSmallIcon(R.drawable.mapbox_logo_icon)\n .setContentText(String.format(getString(R.string.static_image_api_notification_description),\n closestWifiLocationAddressText))\n .setContentIntent(getActivity(this, 0, intent, 0))\n .setLargeIcon(bitmap)\n .setStyle(new NotificationCompat.BigPictureStyle()\n .bigPicture(bitmap)\n .bigLargeIcon(null));\n Notification notification = builder.build();\n notificationManager.notify(NOTIFICATION_ID, notification);\n firstNotificationBuilt = true;\n }", "private void displayReceiptPhoto() {\n\t\tif (mForm == null)\n\t\t\treturn;\n\t\tif (mReceipt == null)\n\t\t\treturn;\n\t\timageWidget().displayPhoto(getRBuddyActivity().photoStore(),\n\t\t\t\tmReceipt.getId(),\n\t\t\t\tmReceipt.getPhotoId());\n\t}", "private static void generateNotification(Context context, Bundle bundle) {\n\t\tint icon = R.drawable.icon;\n\t\tlong when = System.currentTimeMillis();\n\t\tString message = bundle.getString(\"message\");\n\t\tNotificationManager notificationManager = (NotificationManager) context\n\t\t\t\t.getSystemService(Context.NOTIFICATION_SERVICE);\n\t\tNotification notification = new Notification(icon, message, when);\n\t\tString title = context.getString(R.string.app_name);\n\t\tIntent notificationIntent = new Intent(context, NetasDemoActivity.class);\n\n\t\tnotificationIntent.putExtras(bundle);\n\n\t\t// set intent so it does not start a new activity\n\t\tnotificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP\n\t\t\t\t| Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\tPendingIntent intent = PendingIntent.getActivity(context, 0,\n\t\t\t\tnotificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\t\tnotification.defaults |= Notification.DEFAULT_SOUND\n\t\t\t\t| notification.DEFAULT_LIGHTS | notification.DEFAULT_VIBRATE;\n\t\t// long[] vibrate = {0,100,200,300};\n\t\t// notification.vibrate = vibrate;\n\t\tnotification.setLatestEventInfo(context, title, message, intent);\n\t\tnotification.flags |= Notification.FLAG_AUTO_CANCEL\n\t\t\t\t| Notification.FLAG_SHOW_LIGHTS;\n\t\tnotification.ledOnMS = 1000; // light on in milliseconds\n\t\tnotification.ledOffMS = 4000; // light off in milliseconds\n\t\tnotificationManager.notify(0, notification);\n\t}", "public void showNotification(String notificationText) {\n View parentLayout = findViewById(android.R.id.content);\n Snackbar mySnackbar = Snackbar.make(parentLayout, notificationText, Snackbar.LENGTH_LONG);\n mySnackbar.show();\n }", "@NonNull\n\tNotificationBuilder newNotification();", "private void showNotification() {\n\n NotificationCompat.Builder mBuilder =\n new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.food_icon2)\n .setContentTitle(\"Let's eat\")\n .setContentText(\"Good morning, It's time to take your Breakfast :)\");\n\n int mNotificationId = 001;\n\n\n Intent contentIntent = new Intent(this, RecommendationActivity.class);\n contentIntent.putExtra(\"dePagi\", \"pagigan\");\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\n stackBuilder.addParentStack(RecommendationActivity.class);\n stackBuilder.addNextIntent(contentIntent);\n\n PendingIntent resultPendingIntent =\n stackBuilder.getPendingIntent(\n 0,\n PendingIntent.FLAG_UPDATE_CURRENT\n );\n mBuilder.setContentIntent(resultPendingIntent);\n\n mBuilder.setVibrate(new long[] { 1000, 1000, 1000, 1000, 1000 });\n mBuilder.setLights(Color.YELLOW, 3000, 3000);\n\n mBuilder.setAutoCancel(true);\n\n mNM =(NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n\n mNM.notify(mNotificationId, mBuilder.build());\n\n stopSelf();\n\n }", "int displayNotification(Message message);", "private RemoteViews getCustomDesign(String title, String message) {\n Log.d(\"Icon1\", \"icon:\");\n RemoteViews remoteViews = new RemoteViews(getApplicationContext().getPackageName(), R.layout.notification);\n remoteViews.setTextViewText(R.id.title, title);\n remoteViews.setTextViewText(R.id.message, message);\n remoteViews.setImageViewResource(R.id.icon, getNotificationIcon());\n return remoteViews;\n }", "public void showMetadata() {\n String title;\n String description;\n if (fileHandler.metaTitle.equals(\"\")) {\n title = \"No title\";\n } else {\n title = fileHandler.metaTitle;\n }\n if (fileHandler.metaData.equals(\"\")) {\n description = \"No description available. Try loading an RLE-file!\";\n } else {\n description = fileHandler.metaData;\n }\n PopUpAlerts.metaData(title, description);\n }", "private static void showNotificationStatic(Intent intent, String apkId, Context context) {\n\t\tLog.i(\"MoSeS.USERSTUDY\", \"displayed user study notification in taskbar\");\n\t\tshowNotificationStatic(intent, \n\t\t\t\t\t\t\t context.getString(R.string.userStudy_newStudyAvailable), \n\t\t\t\t\t\t\t context.getString(R.string.app_name), \n\t\t\t\t\t\t\t false, \n\t\t\t\t\t\t\t notificationManagerIdForApkId(apkId), \n\t\t\t\t\t\t\t context);\n\t}", "private void sendNotification(RemoteMessage remoteMessage) {\n// Intent intent = new Intent(this, MainActivity.class);\n// intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n// PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* Request code */, intent,\n// PendingIntent.FLAG_ONE_SHOT);\n//\n// Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n// NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)\n// .setSmallIcon(R.drawable.ic_stat_ic_notification)\n// .setContentTitle(\"FCM Message\")\n// .setContentText(messageBody)\n// .setAutoCancel(true)\n// .setSound(defaultSoundUri)\n// .setContentIntent(pendingIntent);\n//\n// NotificationManager notificationManager =\n// (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n//\n// notificationManager.notify(0 /* ID of notification */, notificationBuilder.build());\n //String title = remoteMessage.getNotification().getTitle();\n //String message = remoteMessage.getNotification().getBody();\n String title = remoteMessage.getData().get(\"title\");\n String message = remoteMessage.getData().get(\"text\");\n\n String imageURL = remoteMessage.getData().get(\"imageUrl\");\n long timestamp = remoteMessage.getSentTime();\n String articleID = remoteMessage.getData().get(\"articleID\");\n\n Intent intent = new Intent(this, SplashActivity.class);\n intent.putExtra(\"articleID\", articleID);\n //intent.setAction(\"rs.masinealati.PROCESS_NOTIFICATION\");\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n// PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* Request code */, intent,\n// PendingIntent.FLAG_ONE_SHOT);\n\n\n showNotificationMessage(getApplicationContext(), title, message, timestamp, intent);\n\n// if (TextUtils.isEmpty(imageURL)) {\n// showNotificationMessage(getApplicationContext(), title, message, timestamp, intent);\n// }else{\n// // Show notification with image\n// Log.e(TAG, \"Notification with image...\");\n// showNotificationMessageWithBigImage(getApplicationContext(), title, message, timestamp, intent, imageURL);\n// }\n\n }", "String getNoticeFileUrl();", "public String getDescription() {\r\n\t return \"Just accept image file\";\r\n\t }", "static String getMascotImageFilename() {\n Path filePath = Paths.get(badgeResourcePath, \"kumoricon_2017-mascot_chibi.png\");\n return filePath.toAbsolutePath().toString();\n }", "private void showNotificationCourse(Bundle data) {\n\n/* try {\n int unreadNotificationCount = Integer.valueOf(data.getString(\"total_unread_notification\"));\n NotificationCountEventBus.Event event = new NotificationCountEventBus.Event(unreadNotificationCount);\n NotificationCountEventBus.getInstance().post(event);\n } catch (Exception ignored) {\n\n }*/\n\n // check the type_push from data and navigate to activity\n Intent intent = navigateNotification(data);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(this, notificationId, intent,\n PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_ONE_SHOT);\n\n\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(getNotificationIcon())\n .setContentTitle(data.getString(\"title\"))\n .setContentText(data.getString(\"body\"))\n .setAutoCancel(true)\n .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent);\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n notificationManager.notify(notificationId++, notificationBuilder.build());\n }" ]
[ "0.6464934", "0.64529026", "0.6344815", "0.62093973", "0.6155992", "0.61284214", "0.61004573", "0.60863876", "0.60802627", "0.6071444", "0.6066194", "0.60656226", "0.60633504", "0.60577375", "0.6047012", "0.5998084", "0.5998084", "0.5998084", "0.5983265", "0.5971917", "0.5927294", "0.59156424", "0.591549", "0.58840257", "0.58070284", "0.57445896", "0.57400596", "0.57290256", "0.5707802", "0.5681715", "0.5679668", "0.5666243", "0.56606144", "0.5633432", "0.5630094", "0.5627961", "0.56278616", "0.5626983", "0.562312", "0.56191695", "0.5618739", "0.56141233", "0.561314", "0.56050587", "0.5593694", "0.559304", "0.5577042", "0.5566687", "0.5564494", "0.556439", "0.55603164", "0.55487996", "0.5539225", "0.5534676", "0.553356", "0.5532335", "0.5527593", "0.5522749", "0.55143917", "0.55081403", "0.5505686", "0.5504676", "0.5492467", "0.5490015", "0.5472936", "0.5469162", "0.5467363", "0.5465214", "0.54633707", "0.54445344", "0.5441466", "0.54343617", "0.54299605", "0.5426543", "0.54245275", "0.54212385", "0.5416613", "0.5414293", "0.54113346", "0.5410939", "0.5407302", "0.5404407", "0.5402676", "0.54011786", "0.5392373", "0.5390724", "0.53899956", "0.53879064", "0.538488", "0.5384827", "0.5381348", "0.5377468", "0.5372718", "0.5365023", "0.536502", "0.53469217", "0.53456956", "0.5345222", "0.5339905", "0.5337375" ]
0.6961476
0
/ JADX INFO: Multiple debug info for r5v0 'this' com.facebook.ads.redexgen.X.aa: [D('clazz' java.lang.Class), D('e' java.lang.ClassNotFoundException)]
private HM A05() { if (this.A06 == null) { try { this.A06 = (HM) Class.forName(A06(141, 60, 75)).getConstructor(new Class[0]).newInstance(new Object[0]); } catch (ClassNotFoundException unused) { Log.w(A06(85, 17, 126), A06(15, 70, 102)); } catch (Exception e) { throw new RuntimeException(A06(102, 34, 48), e); } if (this.A06 == null) { this.A06 = this.A08; } } return this.A06; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void m13385d() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = java.lang.System.currentTimeMillis();\t Catch:{ Exception -> 0x0024 }\n r2 = java.util.concurrent.TimeUnit.DAYS;\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r2 = r2.toMillis(r3);\t Catch:{ Exception -> 0x0024 }\n r4 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = r0 - r2;\t Catch:{ Exception -> 0x0024 }\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x0024 }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x0024 }\n r2 = \"timestamp < ?\";\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r3 = new java.lang.String[r3];\t Catch:{ Exception -> 0x0024 }\n r6 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = java.lang.String.valueOf(r4);\t Catch:{ Exception -> 0x0024 }\n r3[r6] = r4;\t Catch:{ Exception -> 0x0024 }\n r0.delete(r1, r2, r3);\t Catch:{ Exception -> 0x0024 }\n L_0x0024:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.d():void\");\n }", "public void mo3613a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f18081b;\n monitor-enter(r0);\n r1 = r4.f18080a;\t Catch:{ all -> 0x001f }\n if (r1 == 0) goto L_0x0009;\t Catch:{ all -> 0x001f }\n L_0x0007:\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n return;\t Catch:{ all -> 0x001f }\n L_0x0009:\n r1 = 1;\t Catch:{ all -> 0x001f }\n r4.f18080a = r1;\t Catch:{ all -> 0x001f }\n r2 = r4.f18081b;\t Catch:{ all -> 0x001f }\n r3 = r2.f12200d;\t Catch:{ all -> 0x001f }\n r3 = r3 + r1;\t Catch:{ all -> 0x001f }\n r2.f12200d = r3;\t Catch:{ all -> 0x001f }\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n r0 = r4.f18083d;\n okhttp3.internal.C2933c.m14194a(r0);\n r0 = r4.f18082c;\t Catch:{ IOException -> 0x001e }\n r0.m14100c();\t Catch:{ IOException -> 0x001e }\n L_0x001e:\n return;\n L_0x001f:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a.a():void\");\n }", "public static void m5813a(java.lang.String r2, java.lang.String r3, java.lang.String r4, boolean r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = new com.crashlytics.android.answers.PurchaseEvent;\n r0.<init>();\n r1 = java.util.Locale.getDefault();\n r1 = java.util.Currency.getInstance(r1);\n r0.putCurrency(r1);\n r0.putItemId(r2);\n r0.putItemType(r3);\n r2 = java.lang.Long.parseLong(r4);\t Catch:{ Exception -> 0x0021 }\n r2 = java.math.BigDecimal.valueOf(r2);\t Catch:{ Exception -> 0x0021 }\n r0.putItemPrice(r2);\t Catch:{ Exception -> 0x0021 }\n L_0x0021:\n r0.putSuccess(r5);\n r2 = com.crashlytics.android.answers.Answers.getInstance();\n r2.logPurchase(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.a(java.lang.String, java.lang.String, java.lang.String, boolean):void\");\n }", "public static void m5820b(java.lang.String r3, java.lang.String r4, java.lang.String r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = new com.crashlytics.android.answers.StartCheckoutEvent;\n r0.<init>();\n r1 = java.util.Locale.getDefault();\n r1 = java.util.Currency.getInstance(r1);\n r0.putCurrency(r1);\n r1 = 1;\n r0.putItemCount(r1);\n r1 = java.lang.Long.parseLong(r3);\t Catch:{ Exception -> 0x001f }\n r3 = java.math.BigDecimal.valueOf(r1);\t Catch:{ Exception -> 0x001f }\n r0.putTotalPrice(r3);\t Catch:{ Exception -> 0x001f }\n L_0x001f:\n r3 = \"type\";\n r0.putCustomAttribute(r3, r4);\n r3 = \"cta\";\n r0.putCustomAttribute(r3, r5);\n r3 = com.crashlytics.android.answers.Answers.getInstance();\n r3.logStartCheckout(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.b(java.lang.String, java.lang.String, java.lang.String):void\");\n }", "public long mo915b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = -1;\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n if (r2 == 0) goto L_0x000d;\t Catch:{ NumberFormatException -> 0x000e }\n L_0x0006:\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ NumberFormatException -> 0x000e }\n r0 = r2;\n L_0x000d:\n return r0;\n L_0x000e:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.b.b():long\");\n }", "public boolean mo3969a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f19005h;\n if (r0 != 0) goto L_0x0011;\n L_0x0004:\n r0 = r4.f19004g;\n if (r0 == 0) goto L_0x000f;\n L_0x0008:\n r0 = r4.f19004g;\n r1 = com.facebook.ads.C1700b.f5123e;\n r0.mo1313a(r4, r1);\n L_0x000f:\n r0 = 0;\n return r0;\n L_0x0011:\n r0 = new android.content.Intent;\n r1 = r4.f19002e;\n r2 = com.facebook.ads.AudienceNetworkActivity.class;\n r0.<init>(r1, r2);\n r1 = \"predefinedOrientationKey\";\n r2 = r4.m25306b();\n r0.putExtra(r1, r2);\n r1 = \"uniqueId\";\n r2 = r4.f18999b;\n r0.putExtra(r1, r2);\n r1 = \"placementId\";\n r2 = r4.f19000c;\n r0.putExtra(r1, r2);\n r1 = \"requestTime\";\n r2 = r4.f19001d;\n r0.putExtra(r1, r2);\n r1 = \"viewType\";\n r2 = r4.f19009l;\n r0.putExtra(r1, r2);\n r1 = \"useCache\";\n r2 = r4.f19010m;\n r0.putExtra(r1, r2);\n r1 = r4.f19008k;\n if (r1 == 0) goto L_0x0052;\n L_0x004a:\n r1 = \"ad_data_bundle\";\n r2 = r4.f19008k;\n r0.putExtra(r1, r2);\n goto L_0x005b;\n L_0x0052:\n r1 = r4.f19006i;\n if (r1 == 0) goto L_0x005b;\n L_0x0056:\n r1 = r4.f19006i;\n r1.m18953a(r0);\n L_0x005b:\n r1 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;\n r0.addFlags(r1);\n r1 = r4.f19002e;\t Catch:{ ActivityNotFoundException -> 0x0066 }\n r1.startActivity(r0);\t Catch:{ ActivityNotFoundException -> 0x0066 }\n goto L_0x0072;\n L_0x0066:\n r1 = r4.f19002e;\n r2 = com.facebook.ads.InterstitialAdActivity.class;\n r0.setClass(r1, r2);\n r1 = r4.f19002e;\n r1.startActivity(r0);\n L_0x0072:\n r0 = 1;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.k.a():boolean\");\n }", "static void m13383b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x000a }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x000a }\n r2 = 0;\t Catch:{ Exception -> 0x000a }\n r0.delete(r1, r2, r2);\t Catch:{ Exception -> 0x000a }\n L_0x000a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.b():void\");\n }", "public void mo2485a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = r2.f11863a;\n monitor-enter(r0);\n r1 = r2.f11873l;\t Catch:{ all -> 0x002a }\n if (r1 != 0) goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x0007:\n r1 = r2.f11872k;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x000c;\t Catch:{ all -> 0x002a }\n L_0x000b:\n goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x000c:\n r1 = r2.f11875n;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x0015;\n L_0x0010:\n r1 = r2.f11875n;\t Catch:{ RemoteException -> 0x0015 }\n r1.cancel();\t Catch:{ RemoteException -> 0x0015 }\n L_0x0015:\n r1 = r2.f11870i;\t Catch:{ all -> 0x002a }\n m14216b(r1);\t Catch:{ all -> 0x002a }\n r1 = 1;\t Catch:{ all -> 0x002a }\n r2.f11873l = r1;\t Catch:{ all -> 0x002a }\n r1 = com.google.android.gms.common.api.Status.zzfnm;\t Catch:{ all -> 0x002a }\n r1 = r2.mo3568a(r1);\t Catch:{ all -> 0x002a }\n r2.m14217c(r1);\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x0028:\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x002a:\n r1 = move-exception;\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a():void\");\n }", "public static int m22557b(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = com.google.android.gms.internal.measurement.dr.m11788a(r1);\t Catch:{ zzyn -> 0x0005 }\n goto L_0x000c;\n L_0x0005:\n r0 = com.google.android.gms.internal.measurement.zzvo.f10281a;\n r1 = r1.getBytes(r0);\n r0 = r1.length;\n L_0x000c:\n r1 = m22576g(r0);\n r1 = r1 + r0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzut.b(java.lang.String):int\");\n }", "private void m14210a(java.io.IOException r4, java.io.IOException r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = f12370a;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = f12370a;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = 1;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = new java.lang.Object[r1];\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r2 = 0;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1[r2] = r5;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r0.invoke(r4, r1);\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.connection.RouteException.a(java.io.IOException, java.io.IOException):void\");\n }", "public static com.facebook.ads.internal.p081a.C1714d m6464a(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r1);\n if (r0 == 0) goto L_0x0009;\n L_0x0006:\n r1 = NONE;\n return r1;\n L_0x0009:\n r0 = java.util.Locale.US;\t Catch:{ IllegalArgumentException -> 0x0014 }\n r1 = r1.toUpperCase(r0);\t Catch:{ IllegalArgumentException -> 0x0014 }\n r1 = com.facebook.ads.internal.p081a.C1714d.valueOf(r1);\t Catch:{ IllegalArgumentException -> 0x0014 }\n return r1;\n L_0x0014:\n r1 = NONE;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.a.d.a(java.lang.String):com.facebook.ads.internal.a.d\");\n }", "private boolean m2248a(java.lang.String r3, com.onesignal.La.C0596a r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = 0;\n r1 = 1;\n java.lang.Float.parseFloat(r3);\t Catch:{ Throwable -> 0x0007 }\n r3 = 1;\n goto L_0x0008;\n L_0x0007:\n r3 = 0;\n L_0x0008:\n if (r3 != 0) goto L_0x0017;\n L_0x000a:\n r3 = com.onesignal.sa.C0650i.ERROR;\n r1 = \"Missing Google Project number!\\nPlease enter a Google Project number / Sender ID on under App Settings > Android > Configuration on the OneSignal dashboard.\";\n com.onesignal.sa.m1656a(r3, r1);\n r3 = 0;\n r1 = -6;\n r4.mo1392a(r3, r1);\n return r0;\n L_0x0017:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.Pa.a(java.lang.String, com.onesignal.La$a):boolean\");\n }", "public static void m5812a(java.lang.String r0, java.lang.String r1, java.lang.String r2) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r2 = new com.crashlytics.android.answers.AddToCartEvent;\n r2.<init>();\n r2.putItemType(r0);\n r0 = java.lang.Long.parseLong(r1);\t Catch:{ Exception -> 0x0013 }\n r0 = java.math.BigDecimal.valueOf(r0);\t Catch:{ Exception -> 0x0013 }\n r2.putItemPrice(r0);\t Catch:{ Exception -> 0x0013 }\n L_0x0013:\n r0 = java.util.Locale.getDefault();\n r0 = java.util.Currency.getInstance(r0);\n r2.putCurrency(r0);\n r0 = com.crashlytics.android.answers.Answers.getInstance();\n r0.logAddToCart(r2);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.a(java.lang.String, java.lang.String, java.lang.String):void\");\n }", "private static void zza(java.lang.ClassLoader r3) throws com.google.android.gms.dynamite.DynamiteModule.zzc {\n /*\n r0 = 0\n java.lang.String r1 = \"com.google.android.gms.dynamiteloader.DynamiteLoaderV2\"\n java.lang.Class r3 = r3.loadClass(r1) // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n r1 = 0\n java.lang.Class[] r2 = new java.lang.Class[r1] // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n java.lang.reflect.Constructor r3 = r3.getConstructor(r2) // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n java.lang.Object[] r1 = new java.lang.Object[r1] // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n java.lang.Object r3 = r3.newInstance(r1) // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n android.os.IBinder r3 = (android.os.IBinder) r3 // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n if (r3 != 0) goto L_0x001a\n r3 = r0\n goto L_0x002e\n L_0x001a:\n java.lang.String r1 = \"com.google.android.gms.dynamite.IDynamiteLoaderV2\"\n android.os.IInterface r1 = r3.queryLocalInterface(r1) // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n boolean r2 = r1 instanceof com.google.android.gms.dynamite.zzl // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n if (r2 == 0) goto L_0x0028\n r3 = r1\n com.google.android.gms.dynamite.zzl r3 = (com.google.android.gms.dynamite.zzl) r3 // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n goto L_0x002e\n L_0x0028:\n com.google.android.gms.dynamite.zzm r1 = new com.google.android.gms.dynamite.zzm // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n r1.<init>(r3) // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n r3 = r1\n L_0x002e:\n zzaSH = r3 // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n return\n L_0x0031:\n r3 = move-exception\n com.google.android.gms.dynamite.DynamiteModule$zzc r1 = new com.google.android.gms.dynamite.DynamiteModule$zzc\n java.lang.String r2 = \"Failed to instantiate dynamite loader\"\n r1.<init>(r2, r3, r0)\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zza(java.lang.ClassLoader):void\");\n }", "private static void m13381a(long r3, float r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\n r0.beginTransaction();\t Catch:{ Exception -> 0x001f }\n r1 = \"INSERT INTO battery_watcher (timestamp, level) VALUES (?, ?)\";\t Catch:{ Exception -> 0x001f }\n r1 = r0.compileStatement(r1);\t Catch:{ Exception -> 0x001f }\n r2 = 1;\t Catch:{ Exception -> 0x001f }\n r1.bindLong(r2, r3);\t Catch:{ Exception -> 0x001f }\n r3 = 2;\t Catch:{ Exception -> 0x001f }\n r4 = (double) r5;\t Catch:{ Exception -> 0x001f }\n r1.bindDouble(r3, r4);\t Catch:{ Exception -> 0x001f }\n r1.execute();\t Catch:{ Exception -> 0x001f }\n r0.setTransactionSuccessful();\t Catch:{ Exception -> 0x001f }\n goto L_0x0026;\n L_0x001d:\n r3 = move-exception;\n goto L_0x002a;\n L_0x001f:\n r3 = f10646a;\t Catch:{ all -> 0x001d }\n r4 = \"Issue adding location to battery history\";\t Catch:{ all -> 0x001d }\n com.foursquare.internal.util.FsLog.m6807d(r3, r4);\t Catch:{ all -> 0x001d }\n L_0x0026:\n r0.endTransaction();\n return;\n L_0x002a:\n r0.endTransaction();\n throw r3;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.a(long, float):void\");\n }", "private final java.util.Map<java.lang.String, java.lang.String> m11967c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r7 = this;\n r0 = new java.util.HashMap;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r0.<init>();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r7.f10169c;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r2 = r7.f10170d;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r3 = f10168i;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r4 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r5 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r6 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r1.query(r2, r3, r4, r5, r6);\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n if (r1 == 0) goto L_0x0031;\n L_0x0014:\n r2 = r1.moveToNext();\t Catch:{ all -> 0x002c }\n if (r2 == 0) goto L_0x0028;\t Catch:{ all -> 0x002c }\n L_0x001a:\n r2 = 0;\t Catch:{ all -> 0x002c }\n r2 = r1.getString(r2);\t Catch:{ all -> 0x002c }\n r3 = 1;\t Catch:{ all -> 0x002c }\n r3 = r1.getString(r3);\t Catch:{ all -> 0x002c }\n r0.put(r2, r3);\t Catch:{ all -> 0x002c }\n goto L_0x0014;\n L_0x0028:\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n goto L_0x0031;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x002c:\n r0 = move-exception;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n throw r0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x0031:\n return r0;\n L_0x0032:\n r0 = \"ConfigurationContentLoader\";\n r1 = \"PhenotypeFlag unable to load ContentProvider, using default values\";\n android.util.Log.e(r0, r1);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzsi.c():java.util.Map<java.lang.String, java.lang.String>\");\n }", "private void m1654a(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/293907205.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r7.m322b();\n r7 = r7.m321a();\n r1 = 0;\n L_0x0009:\n r2 = \"http.request\";\n r8.mo160a(r2, r7);\n r1 = r1 + 1;\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x002f }\n if (r2 != 0) goto L_0x0020;\t Catch:{ IOException -> 0x002f }\n L_0x0018:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x002f }\n r2.mo2023a(r0, r8, r3);\t Catch:{ IOException -> 0x002f }\n goto L_0x002b;\t Catch:{ IOException -> 0x002f }\n L_0x0020:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x002f }\n r3 = p000a.p001a.p002a.p003a.p032l.C0150c.m428a(r3);\t Catch:{ IOException -> 0x002f }\n r2.mo1931b(r3);\t Catch:{ IOException -> 0x002f }\n L_0x002b:\n r6.m1660a(r0, r8);\t Catch:{ IOException -> 0x002f }\n return;\n L_0x002f:\n r2 = move-exception;\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0035 }\n r3.close();\t Catch:{ IOException -> 0x0035 }\n L_0x0035:\n r3 = r6.f1520h;\n r3 = r3.retryRequest(r2, r1, r8);\n if (r3 == 0) goto L_0x00a0;\n L_0x003d:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x0009;\n L_0x0045:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"I/O exception (\";\n r4.append(r5);\n r5 = r2.getClass();\n r5 = r5.getName();\n r4.append(r5);\n r5 = \") caught when connecting to \";\n r4.append(r5);\n r4.append(r0);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x0088;\n L_0x007f:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x0088:\n r2 = r6.f1513a;\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"Retrying connect to \";\n r3.append(r4);\n r3.append(r0);\n r3 = r3.toString();\n r2.m269d(r3);\n goto L_0x0009;\n L_0x00a0:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.a(a.a.a.a.i.b.x, a.a.a.a.n.e):void\");\n }", "public final com.google.android.gms.internal.ads.zzafx mo4170d() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19705f;\n monitor-enter(r0);\n r1 = r2.f19706g;\t Catch:{ IllegalStateException -> 0x000d, IllegalStateException -> 0x000d }\n r1 = r1.m26175a();\t Catch:{ IllegalStateException -> 0x000d, IllegalStateException -> 0x000d }\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n return r1;\t Catch:{ all -> 0x000b }\n L_0x000b:\n r1 = move-exception;\t Catch:{ all -> 0x000b }\n goto L_0x0010;\t Catch:{ all -> 0x000b }\n L_0x000d:\n r1 = 0;\t Catch:{ all -> 0x000b }\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n return r1;\t Catch:{ all -> 0x000b }\n L_0x0010:\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzafn.d():com.google.android.gms.internal.ads.zzafx\");\n }", "public final synchronized com.google.android.m4b.maps.bu.C4910a m21843a(java.lang.String r10) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r9 = this;\n monitor-enter(r9);\n r0 = r9.f17909e;\t Catch:{ all -> 0x0056 }\n r1 = 0;\n if (r0 != 0) goto L_0x0008;\n L_0x0006:\n monitor-exit(r9);\n return r1;\n L_0x0008:\n r0 = r9.f17907c;\t Catch:{ all -> 0x0056 }\n r2 = com.google.android.m4b.maps.az.C4733b.m21060a(r10);\t Catch:{ all -> 0x0056 }\n r0 = r0.m21933a(r2, r1);\t Catch:{ all -> 0x0056 }\n if (r0 == 0) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0014:\n r2 = r0.length;\t Catch:{ all -> 0x0056 }\n r3 = 9;\t Catch:{ all -> 0x0056 }\n if (r2 <= r3) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0019:\n r2 = 0;\t Catch:{ all -> 0x0056 }\n r2 = r0[r2];\t Catch:{ all -> 0x0056 }\n r4 = 1;\t Catch:{ all -> 0x0056 }\n if (r2 == r4) goto L_0x0020;\t Catch:{ all -> 0x0056 }\n L_0x001f:\n goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0020:\n r5 = com.google.android.m4b.maps.bs.C4891e.m21914c(r0, r4);\t Catch:{ all -> 0x0056 }\n r2 = new com.google.android.m4b.maps.ar.a;\t Catch:{ all -> 0x0056 }\n r7 = com.google.android.m4b.maps.de.C5350x.f20104b;\t Catch:{ all -> 0x0056 }\n r2.<init>(r7);\t Catch:{ all -> 0x0056 }\n r7 = new java.io.ByteArrayInputStream;\t Catch:{ IOException -> 0x0052 }\n r8 = r0.length;\t Catch:{ IOException -> 0x0052 }\n r8 = r8 - r3;\t Catch:{ IOException -> 0x0052 }\n r7.<init>(r0, r3, r8);\t Catch:{ IOException -> 0x0052 }\n r2.m20818a(r7);\t Catch:{ IOException -> 0x0052 }\n r0 = 2;\n r0 = r2.m20843h(r0);\t Catch:{ all -> 0x0056 }\n r10 = r10.equals(r0);\t Catch:{ all -> 0x0056 }\n if (r10 != 0) goto L_0x0042;\n L_0x0040:\n monitor-exit(r9);\n return r1;\n L_0x0042:\n r10 = new com.google.android.m4b.maps.bu.a;\t Catch:{ all -> 0x0056 }\n r10.<init>();\t Catch:{ all -> 0x0056 }\n r10.m22018a(r4);\t Catch:{ all -> 0x0056 }\n r10.m22020a(r2);\t Catch:{ all -> 0x0056 }\n r10.m22016a(r5);\t Catch:{ all -> 0x0056 }\n monitor-exit(r9);\n return r10;\n L_0x0052:\n monitor-exit(r9);\n return r1;\n L_0x0054:\n monitor-exit(r9);\n return r1;\n L_0x0056:\n r10 = move-exception;\n monitor-exit(r9);\n throw r10;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.bs.b.a(java.lang.String):com.google.android.m4b.maps.bu.a\");\n }", "private void m14047a(@javax.annotation.Nullable okhttp3.internal.p155a.C2918d.C2915a r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = this;\n if (r1 == 0) goto L_0x0005;\n L_0x0002:\n r1.m14100c();\t Catch:{ IOException -> 0x0005 }\n L_0x0005:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a(okhttp3.internal.a.d$a):void\");\n }", "private static void m3301e(Context context) throws C1108a {\n try {\n byte[] d = f3068kj.mo6439d(C1159r.getKey());\n byte[] c = f3068kj.mo6438c(d, C1159r.m3507A());\n File cacheDir = context.getCacheDir();\n if (cacheDir == null) {\n cacheDir = context.getDir(\"dex\", 0);\n if (cacheDir == null) {\n throw new C1108a();\n }\n }\n File createTempFile = File.createTempFile(\"ads\", \".jar\", cacheDir);\n FileOutputStream fileOutputStream = new FileOutputStream(createTempFile);\n fileOutputStream.write(c, 0, c.length);\n fileOutputStream.close();\n DexClassLoader dexClassLoader = new DexClassLoader(createTempFile.getAbsolutePath(), cacheDir.getAbsolutePath(), null, context.getClassLoader());\n Class loadClass = dexClassLoader.loadClass(m3299b(d, C1159r.m3508B()));\n Class loadClass2 = dexClassLoader.loadClass(m3299b(d, C1159r.m3514H()));\n Class loadClass3 = dexClassLoader.loadClass(m3299b(d, C1159r.m3512F()));\n Class loadClass4 = dexClassLoader.loadClass(m3299b(d, C1159r.m3518L()));\n Class loadClass5 = dexClassLoader.loadClass(m3299b(d, C1159r.m3510D()));\n Class loadClass6 = dexClassLoader.loadClass(m3299b(d, C1159r.m3516J()));\n f3061kc = loadClass.getMethod(m3299b(d, C1159r.m3509C()), new Class[0]);\n f3062kd = loadClass2.getMethod(m3299b(d, C1159r.m3515I()), new Class[0]);\n f3063ke = loadClass3.getMethod(m3299b(d, C1159r.m3513G()), new Class[]{Context.class});\n f3064kf = loadClass4.getMethod(m3299b(d, C1159r.m3519M()), new Class[]{MotionEvent.class, DisplayMetrics.class});\n f3065kg = loadClass5.getMethod(m3299b(d, C1159r.m3511E()), new Class[]{Context.class});\n f3066kh = loadClass6.getMethod(m3299b(d, C1159r.m3517K()), new Class[]{Context.class});\n String name = createTempFile.getName();\n createTempFile.delete();\n new File(cacheDir, name.replace(\".jar\", \".dex\")).delete();\n } catch (FileNotFoundException e) {\n throw new C1108a(e);\n } catch (IOException e2) {\n throw new C1108a(e2);\n } catch (ClassNotFoundException e3) {\n throw new C1108a(e3);\n } catch (C1157a e4) {\n throw new C1108a(e4);\n } catch (NoSuchMethodException e5) {\n throw new C1108a(e5);\n } catch (NullPointerException e6) {\n throw new C1108a(e6);\n }\n }", "private p000a.p001a.p002a.p003a.C0916s m1655b(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/293907205.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r7.m321a();\n r7 = r7.m322b();\n r1 = 0;\n r2 = r1;\n L_0x000a:\n r3 = r6.f1533u;\n r3 = r3 + 1;\n r6.f1533u = r3;\n r0.m2803e();\n r3 = r0.mo2010a();\n if (r3 != 0) goto L_0x0032;\n L_0x0019:\n r7 = r6.f1513a;\n r8 = \"Cannot retry non-repeatable request\";\n r7.m260a(r8);\n if (r2 == 0) goto L_0x002a;\n L_0x0022:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity. The cause lists the reason the original request failed.\";\n r7.<init>(r8, r2);\n throw r7;\n L_0x002a:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity.\";\n r7.<init>(r8);\n throw r7;\n L_0x0032:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x003a:\n r2 = r7.mo15e();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x004f;\t Catch:{ IOException -> 0x0086 }\n L_0x0040:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Reopening the direct connection.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x0086 }\n r2.mo2023a(r7, r8, r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x004f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Proxied connection. Need to start over.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0085;\t Catch:{ IOException -> 0x0086 }\n L_0x0057:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m262a();\t Catch:{ IOException -> 0x0086 }\n if (r2 == 0) goto L_0x007c;\t Catch:{ IOException -> 0x0086 }\n L_0x005f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x0086 }\n r3.<init>();\t Catch:{ IOException -> 0x0086 }\n r4 = \"Attempt \";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = r6.f1533u;\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = \" to execute request\";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r3 = r3.toString();\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n L_0x007c:\n r2 = r6.f1518f;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m464a(r0, r3, r8);\t Catch:{ IOException -> 0x0086 }\n r1 = r2;\n L_0x0085:\n return r1;\n L_0x0086:\n r2 = move-exception;\n r3 = r6.f1513a;\n r4 = \"Closing the connection.\";\n r3.m260a(r4);\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0093 }\n r3.close();\t Catch:{ IOException -> 0x0093 }\n L_0x0093:\n r3 = r6.f1520h;\n r4 = r0.m2802d();\n r3 = r3.retryRequest(r2, r4, r8);\n if (r3 == 0) goto L_0x010a;\n L_0x009f:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x00d9;\n L_0x00a7:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"I/O exception (\";\n r4.append(r5);\n r5 = r2.getClass();\n r5 = r5.getName();\n r4.append(r5);\n r5 = \") caught when processing request to \";\n r4.append(r5);\n r4.append(r7);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n L_0x00d9:\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x00ea;\n L_0x00e1:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x00ea:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x000a;\n L_0x00f2:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"Retrying request to \";\n r4.append(r5);\n r4.append(r7);\n r4 = r4.toString();\n r3.m269d(r4);\n goto L_0x000a;\n L_0x010a:\n r8 = r2 instanceof p000a.p001a.p002a.p003a.C0176z;\n if (r8 == 0) goto L_0x0134;\n L_0x010e:\n r8 = new a.a.a.a.z;\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r7 = r7.mo10a();\n r7 = r7.m474e();\n r0.append(r7);\n r7 = \" failed to respond\";\n r0.append(r7);\n r7 = r0.toString();\n r8.<init>(r7);\n r7 = r2.getStackTrace();\n r8.setStackTrace(r7);\n throw r8;\n L_0x0134:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.b(a.a.a.a.i.b.x, a.a.a.a.n.e):a.a.a.a.s\");\n }", "public static void logApplicationDebug(String string,\n Class<? extends Object> class1) {\n\n }", "public boolean getClassDebugInfo();", "private static void logd(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.logd(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.logd(java.lang.String):void\");\n }", "public static boolean m19464a(java.lang.String r3, int[] r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r3);\n r1 = 0;\n if (r0 == 0) goto L_0x0008;\n L_0x0007:\n return r1;\n L_0x0008:\n r0 = r4.length;\n r2 = 2;\n if (r0 == r2) goto L_0x000d;\n L_0x000c:\n return r1;\n L_0x000d:\n r0 = \"x\";\n r3 = r3.split(r0);\n r0 = r3.length;\n if (r0 == r2) goto L_0x0017;\n L_0x0016:\n return r1;\n L_0x0017:\n r0 = r3[r1];\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = java.lang.Integer.parseInt(r0);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r1] = r0;\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = 1;\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = r3[r0];\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = java.lang.Integer.parseInt(r3);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r0] = r3;\t Catch:{ NumberFormatException -> 0x0029 }\n return r0;\n L_0x0029:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.arp.a(java.lang.String, int[]):boolean\");\n }", "public String _class_globals() throws Exception{\n_nativeme = new anywheresoftware.b4j.object.JavaObject();\n //BA.debugLineNum = 7;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public final void mo37835a() {\n boolean z;\n try {\n z = C14733a.m42590b(this.f39970a);\n } catch (GooglePlayServicesNotAvailableException | GooglePlayServicesRepairableException | IOException | IllegalStateException e) {\n acd.m45778b(\"Fail to get isAdIdFakeForDebugLogging\", e);\n z = false;\n }\n afg.m45754a(z);\n StringBuilder sb = new StringBuilder(43);\n sb.append(\"Update ad debug logging enablement as \");\n sb.append(z);\n acd.m45783e(sb.toString());\n }", "public static final void debug(@org.jetbrains.annotations.NotNull org.jetbrains.anko.AnkoLogger r4, @org.jetbrains.annotations.Nullable java.lang.Object r5, @org.jetbrains.annotations.Nullable java.lang.Throwable r6) {\n /*\n r3 = \"$receiver\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r4, r3);\n r0 = 3;\n r2 = r4.getLoggerTag();\n r3 = android.util.Log.isLoggable(r2, r0);\n if (r3 == 0) goto L_0x0025;\n L_0x0011:\n if (r6 == 0) goto L_0x002a;\n L_0x0013:\n if (r5 == 0) goto L_0x0026;\n L_0x0015:\n r3 = r5.toString();\n if (r3 == 0) goto L_0x0026;\n L_0x001b:\n r6 = (java.lang.Throwable) r6;\n r3 = (java.lang.String) r3;\n r1 = r2;\n r1 = (java.lang.String) r1;\n android.util.Log.d(r1, r3, r6);\n L_0x0025:\n return;\n L_0x0026:\n r3 = \"null\";\n goto L_0x001b;\n L_0x002a:\n if (r5 == 0) goto L_0x003b;\n L_0x002c:\n r3 = r5.toString();\n if (r3 == 0) goto L_0x003b;\n L_0x0032:\n r3 = (java.lang.String) r3;\n r1 = r2;\n r1 = (java.lang.String) r1;\n android.util.Log.d(r1, r3);\n goto L_0x0025;\n L_0x003b:\n r3 = \"null\";\n goto L_0x0032;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jetbrains.anko.Logging.debug(org.jetbrains.anko.AnkoLogger, java.lang.Object, java.lang.Throwable):void\");\n }", "public static void m9742a(Context context) {\n if (zzaoe.m9985a(context) && !zzaoe.m9989b()) {\n zzapi zzapi = (zzapi) new cy(context).mo2219c();\n zzaok.m10005d(\"Updating ad debug logging enablement.\");\n zzaov.m10017a(zzapi, \"AdDebugLogUpdater.updateEnablement\");\n }\n }", "public final R mo2484a(long r4, java.util.concurrent.TimeUnit r6) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = 0;\n r2 = (r4 > r0 ? 1 : (r4 == r0 ? 0 : -1));\n if (r2 <= 0) goto L_0x000b;\n L_0x0006:\n r0 = \"await must not be called on the UI thread when time is greater than zero.\";\n com.google.android.gms.common.internal.ad.m9057c(r0);\n L_0x000b:\n r0 = r3.f11872k;\n r1 = 1;\n r0 = r0 ^ r1;\n r2 = \"Result has already been consumed.\";\n com.google.android.gms.common.internal.ad.m9051a(r0, r2);\n r0 = r3.f11876o;\n if (r0 != 0) goto L_0x0019;\n L_0x0018:\n goto L_0x001a;\n L_0x0019:\n r1 = 0;\n L_0x001a:\n r0 = \"Cannot await if then() has been called.\";\n com.google.android.gms.common.internal.ad.m9051a(r1, r0);\n r0 = r3.f11866e;\t Catch:{ InterruptedException -> 0x002d }\n r4 = r0.await(r4, r6);\t Catch:{ InterruptedException -> 0x002d }\n if (r4 != 0) goto L_0x0032;\t Catch:{ InterruptedException -> 0x002d }\n L_0x0027:\n r4 = com.google.android.gms.common.api.Status.zzfnl;\t Catch:{ InterruptedException -> 0x002d }\n r3.m14226b(r4);\t Catch:{ InterruptedException -> 0x002d }\n goto L_0x0032;\n L_0x002d:\n r4 = com.google.android.gms.common.api.Status.zzfnj;\n r3.m14226b(r4);\n L_0x0032:\n r4 = r3.m14229d();\n r5 = \"Result is not ready.\";\n com.google.android.gms.common.internal.ad.m9051a(r4, r5);\n r4 = r3.mo3575g();\n return r4;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a(long, java.util.concurrent.TimeUnit):R\");\n }", "public String _class_globals() throws Exception{\n_abm = new com.ab.abmaterial.ABMaterial();\r\n //BA.debugLineNum = 4;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}", "public final boolean mo3330c(android.content.Intent r3) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = \"com.google.firebase.messaging.NOTIFICATION_OPEN\";\n r1 = r3.getAction();\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x002c;\n L_0x000c:\n r0 = \"pending_intent\";\n r0 = r3.getParcelableExtra(r0);\n r0 = (android.app.PendingIntent) r0;\n if (r0 == 0) goto L_0x0021;\n L_0x0016:\n r0.send();\t Catch:{ CanceledException -> 0x001a }\n goto L_0x0021;\n L_0x001a:\n r0 = \"FirebaseMessaging\";\n r1 = \"Notification pending intent canceled\";\n android.util.Log.e(r0, r1);\n L_0x0021:\n r0 = com.google.firebase.messaging.C2609b.m12812e(r3);\n if (r0 == 0) goto L_0x002a;\n L_0x0027:\n com.google.firebase.messaging.C2609b.m12809b(r3);\n L_0x002a:\n r3 = 1;\n return r3;\n L_0x002c:\n r3 = 0;\n return r3;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.firebase.messaging.FirebaseMessagingService.c(android.content.Intent):boolean\");\n }", "void dumpIR_debug(CodeGenEnv cenv){\n try {\n\n System.out.println(\"--- dump \" + class_.name.str + \"--- IR ----\");\n System.out.println(\"struct_typeRef: \");Thread.sleep(10);\n cenv.DumpIR( struct_typeRef );\n\n\n\n System.out.println(\"\\n---constructor: \");Thread.sleep(10);\n cenv.DumpIR(constructorFun);\n\n System.out.println(\"constructor initializer: \");Thread.sleep(10);\n cenv.DumpIR(constructor_initval_fun);\n\n System.out.println(\"\\n----class method: \");\n for (var i:classMethod.members){\n System.out.println(\"method: \" + i.funSymbol.str);Thread.sleep(10);\n cenv.DumpIR(i.funRef);\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public static com.google.android.gms.dynamite.DynamiteModule zza(android.content.Context r9, com.google.android.gms.dynamite.DynamiteModule.zzd r10, java.lang.String r11) throws com.google.android.gms.dynamite.DynamiteModule.zzc {\n /*\n java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r0 = zzaSJ\n java.lang.Object r0 = r0.get()\n com.google.android.gms.dynamite.DynamiteModule$zza r0 = (com.google.android.gms.dynamite.DynamiteModule.zza) r0\n com.google.android.gms.dynamite.DynamiteModule$zza r1 = new com.google.android.gms.dynamite.DynamiteModule$zza\n r2 = 0\n r1.<init>(r2)\n java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r3 = zzaSJ\n r3.set(r1)\n com.google.android.gms.dynamite.zzh r3 = zzaSK // Catch:{ all -> 0x00e3 }\n com.google.android.gms.dynamite.zzi r3 = r10.zza(r9, r11, r3) // Catch:{ all -> 0x00e3 }\n int r4 = r3.zzaSW // Catch:{ all -> 0x00e3 }\n if (r4 == 0) goto L_0x00b9\n int r4 = r3.zzaSW // Catch:{ all -> 0x00e3 }\n r5 = -1\n if (r4 != r5) goto L_0x0026\n int r4 = r3.zzaSU // Catch:{ all -> 0x00e3 }\n if (r4 == 0) goto L_0x00b9\n L_0x0026:\n int r4 = r3.zzaSW // Catch:{ all -> 0x00e3 }\n r6 = 1\n if (r4 != r6) goto L_0x002f\n int r4 = r3.zzaSV // Catch:{ all -> 0x00e3 }\n if (r4 == 0) goto L_0x00b9\n L_0x002f:\n int r4 = r3.zzaSW // Catch:{ all -> 0x00e3 }\n if (r4 != r5) goto L_0x0046\n com.google.android.gms.dynamite.DynamiteModule r9 = zzG(r9, r11) // Catch:{ all -> 0x00e3 }\n android.database.Cursor r10 = r1.zzaSR\n if (r10 == 0) goto L_0x0040\n L_0x003b:\n android.database.Cursor r10 = r1.zzaSR\n r10.close()\n L_0x0040:\n java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r10 = zzaSJ\n r10.set(r0)\n return r9\n L_0x0046:\n int r4 = r3.zzaSW // Catch:{ all -> 0x00e3 }\n if (r4 != r6) goto L_0x009e\n int r4 = r3.zzaSV // Catch:{ zzc -> 0x005f }\n com.google.android.gms.dynamite.DynamiteModule r4 = zza((android.content.Context) r9, (java.lang.String) r11, (int) r4) // Catch:{ zzc -> 0x005f }\n android.database.Cursor r9 = r1.zzaSR\n if (r9 == 0) goto L_0x0059\n android.database.Cursor r9 = r1.zzaSR\n r9.close()\n L_0x0059:\n java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r9 = zzaSJ\n r9.set(r0)\n return r4\n L_0x005f:\n r4 = move-exception\n java.lang.String r6 = \"Failed to load remote module: \"\n java.lang.String r7 = r4.getMessage() // Catch:{ all -> 0x00e3 }\n java.lang.String r7 = java.lang.String.valueOf(r7) // Catch:{ all -> 0x00e3 }\n int r8 = r7.length() // Catch:{ all -> 0x00e3 }\n if (r8 == 0) goto L_0x0074\n r6.concat(r7) // Catch:{ all -> 0x00e3 }\n goto L_0x0079\n L_0x0074:\n java.lang.String r7 = new java.lang.String // Catch:{ all -> 0x00e3 }\n r7.<init>(r6) // Catch:{ all -> 0x00e3 }\n L_0x0079:\n int r6 = r3.zzaSU // Catch:{ all -> 0x00e3 }\n if (r6 == 0) goto L_0x0096\n com.google.android.gms.dynamite.DynamiteModule$zzb r6 = new com.google.android.gms.dynamite.DynamiteModule$zzb // Catch:{ all -> 0x00e3 }\n int r3 = r3.zzaSU // Catch:{ all -> 0x00e3 }\n r7 = 0\n r6.<init>(r3, r7) // Catch:{ all -> 0x00e3 }\n com.google.android.gms.dynamite.zzi r10 = r10.zza(r9, r11, r6) // Catch:{ all -> 0x00e3 }\n int r10 = r10.zzaSW // Catch:{ all -> 0x00e3 }\n if (r10 != r5) goto L_0x0096\n com.google.android.gms.dynamite.DynamiteModule r9 = zzG(r9, r11) // Catch:{ all -> 0x00e3 }\n android.database.Cursor r10 = r1.zzaSR\n if (r10 == 0) goto L_0x0040\n goto L_0x003b\n L_0x0096:\n com.google.android.gms.dynamite.DynamiteModule$zzc r9 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ all -> 0x00e3 }\n java.lang.String r10 = \"Remote load failed. No local fallback found.\"\n r9.<init>(r10, r4, r2) // Catch:{ all -> 0x00e3 }\n throw r9 // Catch:{ all -> 0x00e3 }\n L_0x009e:\n com.google.android.gms.dynamite.DynamiteModule$zzc r9 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ all -> 0x00e3 }\n int r10 = r3.zzaSW // Catch:{ all -> 0x00e3 }\n r11 = 47\n java.lang.StringBuilder r3 = new java.lang.StringBuilder // Catch:{ all -> 0x00e3 }\n r3.<init>(r11) // Catch:{ all -> 0x00e3 }\n java.lang.String r11 = \"VersionPolicy returned invalid code:\"\n r3.append(r11) // Catch:{ all -> 0x00e3 }\n r3.append(r10) // Catch:{ all -> 0x00e3 }\n java.lang.String r10 = r3.toString() // Catch:{ all -> 0x00e3 }\n r9.<init>((java.lang.String) r10, (com.google.android.gms.dynamite.zza) r2) // Catch:{ all -> 0x00e3 }\n throw r9 // Catch:{ all -> 0x00e3 }\n L_0x00b9:\n com.google.android.gms.dynamite.DynamiteModule$zzc r9 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ all -> 0x00e3 }\n int r10 = r3.zzaSU // Catch:{ all -> 0x00e3 }\n int r11 = r3.zzaSV // Catch:{ all -> 0x00e3 }\n r3 = 91\n java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch:{ all -> 0x00e3 }\n r4.<init>(r3) // Catch:{ all -> 0x00e3 }\n java.lang.String r3 = \"No acceptable module found. Local version is \"\n r4.append(r3) // Catch:{ all -> 0x00e3 }\n r4.append(r10) // Catch:{ all -> 0x00e3 }\n java.lang.String r10 = \" and remote version is \"\n r4.append(r10) // Catch:{ all -> 0x00e3 }\n r4.append(r11) // Catch:{ all -> 0x00e3 }\n java.lang.String r10 = \".\"\n r4.append(r10) // Catch:{ all -> 0x00e3 }\n java.lang.String r10 = r4.toString() // Catch:{ all -> 0x00e3 }\n r9.<init>((java.lang.String) r10, (com.google.android.gms.dynamite.zza) r2) // Catch:{ all -> 0x00e3 }\n throw r9 // Catch:{ all -> 0x00e3 }\n L_0x00e3:\n r9 = move-exception\n android.database.Cursor r10 = r1.zzaSR\n if (r10 == 0) goto L_0x00ed\n android.database.Cursor r10 = r1.zzaSR\n r10.close()\n L_0x00ed:\n java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r10 = zzaSJ\n r10.set(r0)\n throw r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zza(android.content.Context, com.google.android.gms.dynamite.DynamiteModule$zzd, java.lang.String):com.google.android.gms.dynamite.DynamiteModule\");\n }", "private static com.google.android.gms.dynamite.zzj zzaT(android.content.Context r4) {\n /*\n java.lang.Class<com.google.android.gms.dynamite.DynamiteModule> r0 = com.google.android.gms.dynamite.DynamiteModule.class\n monitor-enter(r0)\n com.google.android.gms.dynamite.zzj r1 = zzaSG // Catch:{ all -> 0x0069 }\n if (r1 == 0) goto L_0x000b\n com.google.android.gms.dynamite.zzj r4 = zzaSG // Catch:{ all -> 0x0069 }\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n return r4\n L_0x000b:\n com.google.android.gms.common.zze r1 = com.google.android.gms.common.zze.zzoW() // Catch:{ all -> 0x0069 }\n int r1 = r1.isGooglePlayServicesAvailable(r4) // Catch:{ all -> 0x0069 }\n r2 = 0\n if (r1 == 0) goto L_0x0018\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n return r2\n L_0x0018:\n java.lang.String r1 = \"com.google.android.gms\"\n r3 = 3\n android.content.Context r4 = r4.createPackageContext(r1, r3) // Catch:{ Exception -> 0x004d }\n java.lang.ClassLoader r4 = r4.getClassLoader() // Catch:{ Exception -> 0x004d }\n java.lang.String r1 = \"com.google.android.gms.chimera.container.DynamiteLoaderImpl\"\n java.lang.Class r4 = r4.loadClass(r1) // Catch:{ Exception -> 0x004d }\n java.lang.Object r4 = r4.newInstance() // Catch:{ Exception -> 0x004d }\n android.os.IBinder r4 = (android.os.IBinder) r4 // Catch:{ Exception -> 0x004d }\n if (r4 != 0) goto L_0x0033\n r4 = r2\n goto L_0x0047\n L_0x0033:\n java.lang.String r1 = \"com.google.android.gms.dynamite.IDynamiteLoader\"\n android.os.IInterface r1 = r4.queryLocalInterface(r1) // Catch:{ Exception -> 0x004d }\n boolean r3 = r1 instanceof com.google.android.gms.dynamite.zzj // Catch:{ Exception -> 0x004d }\n if (r3 == 0) goto L_0x0041\n r4 = r1\n com.google.android.gms.dynamite.zzj r4 = (com.google.android.gms.dynamite.zzj) r4 // Catch:{ Exception -> 0x004d }\n goto L_0x0047\n L_0x0041:\n com.google.android.gms.dynamite.zzk r1 = new com.google.android.gms.dynamite.zzk // Catch:{ Exception -> 0x004d }\n r1.<init>(r4) // Catch:{ Exception -> 0x004d }\n r4 = r1\n L_0x0047:\n if (r4 == 0) goto L_0x0067\n zzaSG = r4 // Catch:{ Exception -> 0x004d }\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n return r4\n L_0x004d:\n r4 = move-exception\n java.lang.String r1 = \"Failed to load IDynamiteLoader from GmsCore: \"\n java.lang.String r4 = r4.getMessage() // Catch:{ all -> 0x0069 }\n java.lang.String r4 = java.lang.String.valueOf(r4) // Catch:{ all -> 0x0069 }\n int r3 = r4.length() // Catch:{ all -> 0x0069 }\n if (r3 == 0) goto L_0x0062\n r1.concat(r4) // Catch:{ all -> 0x0069 }\n goto L_0x0067\n L_0x0062:\n java.lang.String r4 = new java.lang.String // Catch:{ all -> 0x0069 }\n r4.<init>(r1) // Catch:{ all -> 0x0069 }\n L_0x0067:\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n return r2\n L_0x0069:\n r4 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zzaT(android.content.Context):com.google.android.gms.dynamite.zzj\");\n }", "public p000a.p001a.p002a.p003a.C0916s mo59a(p000a.p001a.p002a.p003a.C0159n r12, p000a.p001a.p002a.p003a.C0915q r13, p000a.p001a.p002a.p003a.p034n.C0157e r14) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/293907205.run(Unknown Source)\n*/\n /*\n r11 = this;\n r0 = \"http.auth.target-scope\";\n r1 = r11.f1530r;\n r14.mo160a(r0, r1);\n r0 = \"http.auth.proxy-scope\";\n r1 = r11.f1531s;\n r14.mo160a(r0, r1);\n r0 = r11.m1653a(r13);\n r1 = r11.f1528p;\n r0.setParams(r1);\n r1 = r11.m1663b(r12, r0, r14);\n r2 = r0.getParams();\n r3 = \"http.virtual-host\";\n r2 = r2.mo1602a(r3);\n r2 = (p000a.p001a.p002a.p003a.C0159n) r2;\n r11.f1536x = r2;\n r2 = r11.f1536x;\n if (r2 == 0) goto L_0x0057;\n L_0x002d:\n r2 = r11.f1536x;\n r2 = r2.m471b();\n r3 = -1;\n if (r2 != r3) goto L_0x0057;\n L_0x0036:\n if (r12 == 0) goto L_0x003a;\n L_0x0038:\n r2 = r12;\n goto L_0x003e;\n L_0x003a:\n r2 = r1.mo10a();\n L_0x003e:\n r2 = r2.m471b();\n if (r2 == r3) goto L_0x0057;\n L_0x0044:\n r3 = new a.a.a.a.n;\n r4 = r11.f1536x;\n r4 = r4.m470a();\n r5 = r11.f1536x;\n r5 = r5.m472c();\n r3.<init>(r4, r2, r5);\n r11.f1536x = r3;\n L_0x0057:\n r2 = new a.a.a.a.i.b.x;\n r2.<init>(r0, r1);\n r0 = 0;\n r1 = 0;\n r3 = r12;\n r12 = 0;\n L_0x0060:\n if (r1 != 0) goto L_0x025b;\n L_0x0062:\n r0 = r2.m321a();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r4 = r2.m322b();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r5 = \"http.user-token\";\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r5 = r14.mo159a(r5);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r11.f1529q;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r6 != 0) goto L_0x00cb;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0074:\n r6 = r11.f1514b;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r6.mo69a(r4, r5);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r7 = r13 instanceof p000a.p001a.p002a.p003a.p005b.p007c.C0016a;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r7 == 0) goto L_0x0084;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x007e:\n r7 = r13;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r7 = (p000a.p001a.p002a.p003a.p005b.p007c.C0016a) r7;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r7.setConnectionRequest(r6);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0084:\n r7 = r11.f1528p;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r7 = p000a.p001a.p002a.p003a.p005b.p008d.C0021b.m81c(r7);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r9 = java.util.concurrent.TimeUnit.MILLISECONDS;\t Catch:{ InterruptedException -> 0x00be }\n r6 = r6.mo66a(r7, r9);\t Catch:{ InterruptedException -> 0x00be }\n r11.f1529q = r6;\t Catch:{ InterruptedException -> 0x00be }\n r6 = r11.f1528p;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = p000a.p001a.p002a.p003a.p032l.C0150c.m437f(r6);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r6 == 0) goto L_0x00cb;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x009a:\n r6 = r11.f1529q;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r6.mo1932c();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r6 == 0) goto L_0x00cb;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x00a2:\n r6 = r11.f1513a;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r7 = \"Stale connection check\";\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6.m260a(r7);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r11.f1529q;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r6.mo1599d();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r6 == 0) goto L_0x00cb;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x00b1:\n r6 = r11.f1513a;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r7 = \"Stale connection detected\";\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6.m260a(r7);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r11.f1529q;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6.close();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n goto L_0x00cb;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x00be:\n r12 = java.lang.Thread.currentThread();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r12.interrupt();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r12 = new java.io.InterruptedIOException;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r12.<init>();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n throw r12;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x00cb:\n r6 = r13 instanceof p000a.p001a.p002a.p003a.p005b.p007c.C0016a;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r6 == 0) goto L_0x00d7;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x00cf:\n r6 = r13;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = (p000a.p001a.p002a.p003a.p005b.p007c.C0016a) r6;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r7 = r11.f1529q;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6.setReleaseTrigger(r7);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x00d7:\n r11.m1654a(r2, r14);\t Catch:{ z -> 0x023c }\n r6 = r0.getURI();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r6.getUserInfo();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r6 == 0) goto L_0x00f3;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x00e4:\n r7 = r11.f1530r;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r8 = new a.a.a.a.i.a.b;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r8.<init>();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r9 = new a.a.a.a.a.r;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r9.<init>(r6);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r7.m14a(r8, r9);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x00f3:\n r6 = r11.f1536x;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r6 == 0) goto L_0x00fa;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x00f7:\n r3 = r11.f1536x;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n goto L_0x0108;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x00fa:\n r6 = r0.getURI();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r7 = r6.isAbsolute();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r7 == 0) goto L_0x0108;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0104:\n r3 = p000a.p001a.p002a.p003a.p005b.p010f.C0029d.m111b(r6);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0108:\n if (r3 != 0) goto L_0x010e;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x010a:\n r3 = r4.mo10a();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x010e:\n r0.m2800b();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r11.m1661a(r0, r4);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = \"http.target_host\";\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r14.mo160a(r6, r3);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = \"http.route\";\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r14.mo160a(r6, r4);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r4 = \"http.connection\";\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r11.f1529q;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r14.mo160a(r4, r6);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r4 = r11.f1518f;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r11.f1519g;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r4.m465a(r0, r6, r14);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r0 = r11.m1655b(r2, r14);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r0 != 0) goto L_0x0134;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0132:\n goto L_0x0060;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0134:\n r12 = r11.f1528p;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r0.setParams(r12);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r12 = r11.f1518f;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r4 = r11.f1519g;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r12.m466a(r0, r4, r14);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r12 = r11.f1516d;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r12 = r12.mo61a(r0, r14);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r12 == 0) goto L_0x0197;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0148:\n r4 = r11.f1517e;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r4.mo53a(r0, r14);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r4 = r11.f1513a;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r4 = r4.m262a();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r4 == 0) goto L_0x0190;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0156:\n r8 = 0;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r4 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1));\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r4 <= 0) goto L_0x0178;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x015c:\n r4 = new java.lang.StringBuilder;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r4.<init>();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r8 = \"for \";\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r4.append(r8);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r4.append(r6);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r8 = \" \";\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r4.append(r8);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r8 = java.util.concurrent.TimeUnit.MILLISECONDS;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r4.append(r8);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r4 = r4.toString();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n goto L_0x017a;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0178:\n r4 = \"indefinitely\";\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x017a:\n r8 = r11.f1513a;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r9 = new java.lang.StringBuilder;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r9.<init>();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r10 = \"Connection can be kept alive \";\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r9.append(r10);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r9.append(r4);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r4 = r9.toString();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r8.m260a(r4);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0190:\n r4 = r11.f1529q;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r8 = java.util.concurrent.TimeUnit.MILLISECONDS;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r4.mo2011a(r6, r8);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0197:\n r4 = r11.m1657a(r2, r0, r14);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r4 != 0) goto L_0x01a0;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x019d:\n r1 = 1;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n goto L_0x0222;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x01a0:\n if (r12 == 0) goto L_0x01af;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x01a2:\n r6 = r0.mo1630b();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n p000a.p001a.p002a.p003a.p035o.C0165f.m520a(r6);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r11.f1529q;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6.mo2012i();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n goto L_0x0210;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x01af:\n r6 = r11.f1529q;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6.close();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r11.f1531s;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r6.m17b();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r7 = p000a.p001a.p002a.p003a.p004a.C0001b.CHALLENGED;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r6.compareTo(r7);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r6 <= 0) goto L_0x01e2;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x01c2:\n r6 = r11.f1531s;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r6.m18c();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r6 == 0) goto L_0x01e2;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x01ca:\n r6 = r11.f1531s;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r6.m18c();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r6.mo1921c();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r6 == 0) goto L_0x01e2;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x01d6:\n r6 = r11.f1513a;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r7 = \"Resetting proxy auth state\";\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6.m260a(r7);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r11.f1531s;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6.m11a();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x01e2:\n r6 = r11.f1530r;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r6.m17b();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r7 = p000a.p001a.p002a.p003a.p004a.C0001b.CHALLENGED;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r6.compareTo(r7);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r6 <= 0) goto L_0x0210;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x01f0:\n r6 = r11.f1530r;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r6.m18c();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r6 == 0) goto L_0x0210;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x01f8:\n r6 = r11.f1530r;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r6.m18c();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r6.mo1921c();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r6 == 0) goto L_0x0210;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0204:\n r6 = r11.f1513a;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r7 = \"Resetting target auth state\";\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6.m260a(r7);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6 = r11.f1530r;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r6.m11a();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0210:\n r6 = r4.m322b();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r2 = r2.m322b();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r2 = r6.equals(r2);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r2 != 0) goto L_0x0221;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x021e:\n r11.m1659a();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0221:\n r2 = r4;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0222:\n r4 = r11.f1529q;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r4 == 0) goto L_0x0060;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0226:\n if (r5 != 0) goto L_0x0233;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0228:\n r4 = r11.f1527o;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r5 = r4.mo60a(r14);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r4 = \"http.user-token\";\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r14.mo160a(r4, r5);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0233:\n if (r5 == 0) goto L_0x0060;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0235:\n r4 = r11.f1529q;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r4.mo2026a(r5);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n goto L_0x0060;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x023c:\n r13 = move-exception;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r14 = r11.f1513a;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r14 = r14.m262a();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r14 == 0) goto L_0x024e;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0245:\n r14 = r11.f1513a;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r0 = r13.getMessage();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r14.m260a(r0);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x024e:\n r0 = r13.m1669a();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n goto L_0x025b;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0253:\n r12 = move-exception;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n goto L_0x0288;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0255:\n r12 = move-exception;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n goto L_0x028c;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0257:\n r12 = move-exception;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n goto L_0x0290;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0259:\n r12 = move-exception;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n goto L_0x0294;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x025b:\n if (r0 == 0) goto L_0x027d;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x025d:\n r13 = r0.mo1630b();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r13 == 0) goto L_0x027d;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0263:\n r13 = r0.mo1630b();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r13 = r13.isStreaming();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n if (r13 != 0) goto L_0x026e;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x026d:\n goto L_0x027d;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x026e:\n r13 = r0.mo1630b();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r14 = new a.a.a.a.e.a;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r1 = r11.f1529q;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r14.<init>(r13, r1, r12);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r0.mo1629a(r14);\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n goto L_0x0287;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x027d:\n if (r12 == 0) goto L_0x0284;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x027f:\n r12 = r11.f1529q;\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n r12.mo2012i();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0284:\n r11.m1659a();\t Catch:{ e -> 0x0259, m -> 0x0257, IOException -> 0x0255, RuntimeException -> 0x0253 }\n L_0x0287:\n return r0;\n L_0x0288:\n r11.m1656b();\n throw r12;\n L_0x028c:\n r11.m1656b();\n throw r12;\n L_0x0290:\n r11.m1656b();\n throw r12;\n L_0x0294:\n r13 = new java.io.InterruptedIOException;\n r14 = \"Connection has been shut down\";\n r13.<init>(r14);\n r13.initCause(r12);\n throw r13;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.a(a.a.a.a.n, a.a.a.a.q, a.a.a.a.n.e):a.a.a.a.s\");\n }", "private void zzbJ(int r6) {\n /*\n r5 = this;\n r0 = 8;\n if (r6 != r0) goto L_0x0035;\n L_0x0004:\n r1 = com.google.android.gms.internal.zzld.class;\n monitor-enter(r1);\n r0 = mTwiceBaseCache;\t Catch:{ all -> 0x0067 }\n if (r0 == 0) goto L_0x0030;\n L_0x000b:\n r2 = mTwiceBaseCache;\t Catch:{ all -> 0x0067 }\n r5.mArray = r2;\t Catch:{ all -> 0x0067 }\n r0 = 0;\n r0 = r2[r0];\t Catch:{ all -> 0x0067 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0067 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0067 }\n mTwiceBaseCache = r0;\t Catch:{ all -> 0x0067 }\n r0 = 1;\n r0 = r2[r0];\t Catch:{ all -> 0x0067 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0067 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0067 }\n r5.mHashes = r0;\t Catch:{ all -> 0x0067 }\n r0 = 0;\n r3 = 1;\n r4 = 0;\n r2[r3] = r4;\t Catch:{ all -> 0x0067 }\n r2[r0] = r4;\t Catch:{ all -> 0x0067 }\n r0 = mTwiceBaseCacheSize;\t Catch:{ all -> 0x0067 }\n r0 = r0 + -1;\n mTwiceBaseCacheSize = r0;\t Catch:{ all -> 0x0067 }\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n L_0x002f:\n return;\n L_0x0030:\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n r0 = com.google.android.gms.internal.zzkq.a;\t Catch:{ ClassCastException -> 0x006a }\n if (r0 == 0) goto L_0x006d;\n L_0x0035:\n r0 = 4;\n if (r6 != r0) goto L_0x006d;\n L_0x0038:\n r1 = com.google.android.gms.internal.zzld.class;\n monitor-enter(r1);\n r0 = mBaseCache;\t Catch:{ all -> 0x0064 }\n if (r0 == 0) goto L_0x006c;\n L_0x003f:\n r2 = mBaseCache;\t Catch:{ all -> 0x0064 }\n r5.mArray = r2;\t Catch:{ all -> 0x0064 }\n r0 = 0;\n r0 = r2[r0];\t Catch:{ all -> 0x0064 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0064 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0064 }\n mBaseCache = r0;\t Catch:{ all -> 0x0064 }\n r0 = 1;\n r0 = r2[r0];\t Catch:{ all -> 0x0064 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0064 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0064 }\n r5.mHashes = r0;\t Catch:{ all -> 0x0064 }\n r0 = 0;\n r3 = 1;\n r4 = 0;\n r2[r3] = r4;\t Catch:{ all -> 0x0064 }\n r2[r0] = r4;\t Catch:{ all -> 0x0064 }\n r0 = mBaseCacheSize;\t Catch:{ all -> 0x0064 }\n r0 = r0 + -1;\n mBaseCacheSize = r0;\t Catch:{ all -> 0x0064 }\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n goto L_0x002f;\n L_0x0064:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n throw r0;\n L_0x0067:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n throw r0;\n L_0x006a:\n r0 = move-exception;\n throw r0;\n L_0x006c:\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n L_0x006d:\n r0 = new int[r6];\n r5.mHashes = r0;\n r0 = r6 << 1;\n r0 = new java.lang.Object[r0];\n r5.mArray = r0;\n goto L_0x002f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzlh.zzbJ(int):void\");\n }", "public final void a(java.util.List<com.bytedance.ad.symphony.model.config.AdConfig> r13, android.util.SparseArray<com.bytedance.ad.symphony.provider.a.C0060a> r14, java.lang.Class<? extends com.bytedance.ad.symphony.a.a> r15) {\n /*\n r12 = this;\n boolean r0 = r12.l\n r1 = 0\n if (r0 == 0) goto L_0x000a\n r12.l = r1\n r12.c()\n L_0x000a:\n if (r13 == 0) goto L_0x0143\n boolean r0 = r13.isEmpty()\n if (r0 == 0) goto L_0x0014\n goto L_0x0143\n L_0x0014:\n boolean r0 = r12.m\n if (r0 != 0) goto L_0x0019\n return\n L_0x0019:\n java.lang.Object r0 = r12.j\n monitor-enter(r0)\n java.util.ArrayList r2 = new java.util.ArrayList // Catch:{ all -> 0x0140 }\n r2.<init>(r13) // Catch:{ all -> 0x0140 }\n java.util.Iterator r2 = r2.iterator() // Catch:{ all -> 0x0140 }\n L_0x0025:\n boolean r3 = r2.hasNext() // Catch:{ all -> 0x0140 }\n if (r3 == 0) goto L_0x00c7\n java.lang.Object r3 = r2.next() // Catch:{ all -> 0x0140 }\n com.bytedance.ad.symphony.model.config.AdConfig r3 = (com.bytedance.ad.symphony.model.config.AdConfig) r3 // Catch:{ all -> 0x0140 }\n if (r3 == 0) goto L_0x0025\n java.util.Map<java.lang.Integer, com.bytedance.ad.symphony.provider.b<AD>> r4 = r12.f7552c // Catch:{ all -> 0x0140 }\n int r5 = r3.f7654a // Catch:{ all -> 0x0140 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0140 }\n boolean r4 = r4.containsKey(r5) // Catch:{ all -> 0x0140 }\n if (r4 != 0) goto L_0x00b4\n android.content.Context r4 = r12.f7555f // Catch:{ all -> 0x0140 }\n r5 = 0\n java.lang.String r6 = \"\"\n if (r3 == 0) goto L_0x005b\n if (r14 == 0) goto L_0x005b\n int r7 = r3.f7654a // Catch:{ Exception -> 0x0088 }\n int r7 = com.bytedance.ad.symphony.provider.a.getRealProviderId(r7) // Catch:{ Exception -> 0x0088 }\n java.lang.Object r7 = r14.get(r7) // Catch:{ Exception -> 0x0088 }\n com.bytedance.ad.symphony.provider.a$a r7 = (com.bytedance.ad.symphony.provider.a.C0060a) r7 // Catch:{ Exception -> 0x0088 }\n if (r7 == 0) goto L_0x005b\n java.lang.String r7 = r7.f7679c // Catch:{ Exception -> 0x0088 }\n r6 = r7\n L_0x005b:\n boolean r7 = com.bytedance.common.utility.StringUtils.isEmpty(r6) // Catch:{ Exception -> 0x0088 }\n if (r7 == 0) goto L_0x0062\n goto L_0x0025\n L_0x0062:\n java.lang.Class r7 = java.lang.Class.forName(r6) // Catch:{ Exception -> 0x0088 }\n r8 = 3\n java.lang.Class[] r9 = new java.lang.Class[r8] // Catch:{ Exception -> 0x0088 }\n java.lang.Class<android.content.Context> r10 = android.content.Context.class\n r9[r1] = r10 // Catch:{ Exception -> 0x0088 }\n java.lang.Class<com.bytedance.ad.symphony.model.config.AdConfig> r10 = com.bytedance.ad.symphony.model.config.AdConfig.class\n r11 = 1\n r9[r11] = r10 // Catch:{ Exception -> 0x0088 }\n r10 = 2\n r9[r10] = r15 // Catch:{ Exception -> 0x0088 }\n java.lang.reflect.Constructor r7 = r7.getConstructor(r9) // Catch:{ Exception -> 0x0088 }\n java.lang.Object[] r8 = new java.lang.Object[r8] // Catch:{ Exception -> 0x0088 }\n r8[r1] = r4 // Catch:{ Exception -> 0x0088 }\n r8[r11] = r3 // Catch:{ Exception -> 0x0088 }\n r8[r10] = r12 // Catch:{ Exception -> 0x0088 }\n java.lang.Object r4 = r7.newInstance(r8) // Catch:{ Exception -> 0x0088 }\n com.bytedance.ad.symphony.provider.a r4 = (com.bytedance.ad.symphony.provider.a) r4 // Catch:{ Exception -> 0x0088 }\n goto L_0x0096\n L_0x0088:\n r12.a() // Catch:{ all -> 0x0140 }\n java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch:{ all -> 0x0140 }\n java.lang.String r7 = \"createProvider, className-->\"\n r4.<init>(r7) // Catch:{ all -> 0x0140 }\n r4.append(r6) // Catch:{ all -> 0x0140 }\n r4 = r5\n L_0x0096:\n if (r4 == 0) goto L_0x0025\n r12.a() // Catch:{ all -> 0x0140 }\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ all -> 0x0140 }\n java.lang.String r6 = \"createProvider, providerId-->\"\n r5.<init>(r6) // Catch:{ all -> 0x0140 }\n int r6 = r3.f7654a // Catch:{ all -> 0x0140 }\n r5.append(r6) // Catch:{ all -> 0x0140 }\n java.util.Map<java.lang.Integer, com.bytedance.ad.symphony.provider.b<AD>> r5 = r12.f7552c // Catch:{ all -> 0x0140 }\n int r3 = r3.f7654a // Catch:{ all -> 0x0140 }\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3) // Catch:{ all -> 0x0140 }\n r5.put(r3, r4) // Catch:{ all -> 0x0140 }\n goto L_0x0025\n L_0x00b4:\n java.util.Map<java.lang.Integer, com.bytedance.ad.symphony.provider.b<AD>> r4 = r12.f7552c // Catch:{ all -> 0x0140 }\n int r5 = r3.f7654a // Catch:{ all -> 0x0140 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0140 }\n java.lang.Object r4 = r4.get(r5) // Catch:{ all -> 0x0140 }\n com.bytedance.ad.symphony.provider.b r4 = (com.bytedance.ad.symphony.provider.b) r4 // Catch:{ all -> 0x0140 }\n r4.setAdConfig(r3) // Catch:{ all -> 0x0140 }\n goto L_0x0025\n L_0x00c7:\n r12.a() // Catch:{ all -> 0x0140 }\n java.lang.StringBuilder r14 = new java.lang.StringBuilder // Catch:{ all -> 0x0140 }\n java.lang.String r15 = \"initConfig, providers created, size-->\"\n r14.<init>(r15) // Catch:{ all -> 0x0140 }\n java.util.Map<java.lang.Integer, com.bytedance.ad.symphony.provider.b<AD>> r15 = r12.f7552c // Catch:{ all -> 0x0140 }\n if (r15 != 0) goto L_0x00d6\n goto L_0x00dc\n L_0x00d6:\n java.util.Map<java.lang.Integer, com.bytedance.ad.symphony.provider.b<AD>> r15 = r12.f7552c // Catch:{ all -> 0x0140 }\n int r1 = r15.size() // Catch:{ all -> 0x0140 }\n L_0x00dc:\n r14.append(r1) // Catch:{ all -> 0x0140 }\n monitor-exit(r0) // Catch:{ all -> 0x0140 }\n com.bytedance.ad.symphony.c.a r14 = r12.h\n if (r14 == 0) goto L_0x013f\n java.util.ArrayList r14 = new java.util.ArrayList\n r14.<init>()\n java.util.Map<java.lang.Integer, com.bytedance.ad.symphony.provider.b<AD>> r15 = r12.f7552c\n java.util.Set r15 = r15.keySet()\n java.util.Iterator r15 = r15.iterator()\n L_0x00f3:\n boolean r0 = r15.hasNext()\n if (r0 == 0) goto L_0x0103\n java.lang.Object r0 = r15.next()\n java.lang.Integer r0 = (java.lang.Integer) r0\n r14.add(r0)\n goto L_0x00f3\n L_0x0103:\n java.lang.Boolean r14 = r12.k\n boolean r14 = r14.booleanValue()\n if (r14 == 0) goto L_0x012f\n java.lang.Boolean r14 = r12.k\n monitor-enter(r14)\n java.lang.Boolean r15 = r12.k // Catch:{ all -> 0x012c }\n boolean r15 = r15.booleanValue() // Catch:{ all -> 0x012c }\n if (r15 == 0) goto L_0x012a\n java.util.Map<java.lang.Integer, com.bytedance.ad.symphony.provider.b<AD>> r15 = r12.f7552c // Catch:{ all -> 0x012c }\n if (r15 == 0) goto L_0x012a\n java.lang.Boolean r13 = java.lang.Boolean.FALSE // Catch:{ all -> 0x012c }\n r12.k = r13 // Catch:{ all -> 0x012c }\n android.os.Handler r13 = r12.f7551b // Catch:{ all -> 0x012c }\n com.bytedance.ad.symphony.a.a.a$3 r15 = new com.bytedance.ad.symphony.a.a.a$3 // Catch:{ all -> 0x012c }\n r15.<init>() // Catch:{ all -> 0x012c }\n r13.post(r15) // Catch:{ all -> 0x012c }\n monitor-exit(r14) // Catch:{ all -> 0x012c }\n return\n L_0x012a:\n monitor-exit(r14) // Catch:{ all -> 0x012c }\n goto L_0x012f\n L_0x012c:\n r13 = move-exception\n monitor-exit(r14) // Catch:{ all -> 0x012c }\n throw r13\n L_0x012f:\n boolean r13 = com.bytedance.ad.symphony.g.d.a(r13)\n if (r13 != 0) goto L_0x013f\n android.os.Handler r13 = r12.f7551b\n com.bytedance.ad.symphony.a.a.a$4 r14 = new com.bytedance.ad.symphony.a.a.a$4\n r14.<init>()\n r13.post(r14)\n L_0x013f:\n return\n L_0x0140:\n r13 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0140 }\n throw r13\n L_0x0143:\n r12.a()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.ad.symphony.a.a.a.a(java.util.List, android.util.SparseArray, java.lang.Class):void\");\n }", "@Test(timeout = 4000)\n public void test055() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(3046);\n String[] stringArray0 = new String[7];\n stringArray0[0] = \"SourceDebugExtension\";\n stringArray0[1] = \")1Dc@`M-,v4\";\n stringArray0[2] = \"R$_Ff!sF,uE4P'wGFDy\";\n stringArray0[3] = \"R$_Ff!sF,uE4P'wGFDy\";\n stringArray0[4] = \"s4#6U\";\n stringArray0[5] = \"81<U@W{b30+,bjYk\";\n stringArray0[6] = \"R$_Ff!sF,uE4P'wGFDy\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 1, \")1Dc@`M-,v4\", \"81<U@W{b30+,bjYk\", \"81<U@W{b30+,bjYk\", stringArray0, false, false);\n MethodWriter methodWriter1 = classWriter0.firstMethod;\n methodWriter1.visitInsn(1);\n methodWriter1.visitFrame(11, (-764), stringArray0, 2048, stringArray0);\n methodWriter0.getSize();\n methodWriter0.visitFrame(3, 2048, stringArray0, (-1551), stringArray0);\n Attribute attribute0 = new Attribute(\"iL9-M\");\n // Undeclared exception!\n try { \n attribute0.write(classWriter0, (byte[]) null, 3378, 3407, (-28));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.Attribute\", e);\n }\n }", "boolean m25333a(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = this;\n java.lang.Class.forName(r1);\t Catch:{ ClassNotFoundException -> 0x0005 }\n r1 = 1;\n return r1;\n L_0x0005:\n r1 = 0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mapbox.android.core.location.c.a(java.lang.String):boolean\");\n }", "private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support.v4.content.C0396d.m1465a(r0);\t Catch:{ Exception -> 0x000f }\n r1 = r2.f19111m;\t Catch:{ Exception -> 0x000f }\n r0.m1468a(r1);\t Catch:{ Exception -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.w.g():void\");\n }", "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 }", "public lj ax() {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "void m14051a(okhttp3.aa r2, okhttp3.aa r3) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r1 = this;\n r0 = new okhttp3.c$c;\n r0.<init>(r3);\n r2 = r2.m14017h();\n r2 = (okhttp3.C2900c.C4340b) r2;\n r2 = r2.f18085a;\n r2 = r2.m14105a();\t Catch:{ IOException -> 0x001a }\n if (r2 == 0) goto L_0x001e;\n L_0x0013:\n r0.m14043a(r2);\t Catch:{ IOException -> 0x001b }\n r2.m14099b();\t Catch:{ IOException -> 0x001b }\n goto L_0x001e;\n L_0x001a:\n r2 = 0;\n L_0x001b:\n r1.m14047a(r2);\n L_0x001e:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a(okhttp3.aa, okhttp3.aa):void\");\n }", "public lj au() {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "public static org.json.JSONObject m5902a(org.json.JSONObject r1, java.lang.String r2, org.json.JSONObject r3) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = r1.has(r2);\t Catch:{ JSONException -> 0x0013 }\n if (r0 == 0) goto L_0x0011;\t Catch:{ JSONException -> 0x0013 }\n L_0x0006:\n r0 = r1.isNull(r2);\t Catch:{ JSONException -> 0x0013 }\n if (r0 != 0) goto L_0x0011;\t Catch:{ JSONException -> 0x0013 }\n L_0x000c:\n r1 = r1.getJSONObject(r2);\t Catch:{ JSONException -> 0x0013 }\n goto L_0x0012;\n L_0x0011:\n r1 = 0;\n L_0x0012:\n return r1;\n L_0x0013:\n return r3;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.i.a(org.json.JSONObject, java.lang.String, org.json.JSONObject):org.json.JSONObject\");\n }", "AnonymousClass1(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.telecom.ConnectionServiceAdapterServant.1.<init>(android.telecom.ConnectionServiceAdapterServant):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.1.<init>(android.telecom.ConnectionServiceAdapterServant):void\");\n }", "public void debug() {\n\n }", "protected DiagClassVisitor() {\n super(ASM5);\n }", "public lj az() {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "public static void debugInfo() { throw Extensions.todo(); }", "@Override\r\n\t\t\tpublic void debug(String arg) {\n\t\t\t\t\r\n\t\t\t}", "public void debug(String x) {\n if (isDebugOn()) {\n String out = getClassName() + \"(\" + (new Date()) + \"): \" + x;\n getLogger().info(out);\n }\n }", "AnonymousClass1(android.widget.ColorListView r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.widget.ColorListView.1.<init>(android.widget.ColorListView):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.ColorListView.1.<init>(android.widget.ColorListView):void\");\n }", "public static final boolean isDebugInfo() { return true; }", "@SuppressWarnings(\"unchecked\")\n\tpublic List getDebugInfo();", "public final void a(com.tencent.mm.plugin.game.c.ai r12, java.lang.String r13, int r14, int r15) {\n /*\n r11 = this;\n if (r12 == 0) goto L_0x000a;\n L_0x0002:\n r0 = r12.nmz;\n r0 = com.tencent.mm.sdk.platformtools.bi.cC(r0);\n if (r0 == 0) goto L_0x0010;\n L_0x000a:\n r0 = 8;\n r11.setVisibility(r0);\n L_0x000f:\n return;\n L_0x0010:\n r11.mAppId = r13;\n r11.niV = r15;\n r0 = r12.nmz;\n r7 = r0.iterator();\n L_0x001a:\n r0 = r7.hasNext();\n if (r0 == 0) goto L_0x000f;\n L_0x0020:\n r0 = r7.next();\n r4 = r0;\n r4 = (com.tencent.mm.plugin.game.c.k) r4;\n if (r4 == 0) goto L_0x001a;\n L_0x0029:\n r5 = new com.tencent.mm.plugin.game.d.e$a$a;\n r5.<init>();\n r0 = r4.nlz;\n switch(r0) {\n case 1: goto L_0x004a;\n case 2: goto L_0x00e3;\n default: goto L_0x0033;\n };\n L_0x0033:\n r0 = 2;\n if (r14 != r0) goto L_0x001a;\n L_0x0036:\n r0 = r11.mContext;\n r1 = 10;\n r2 = 1002; // 0x3ea float:1.404E-42 double:4.95E-321;\n r3 = r4.nlw;\n r4 = r4.nlr;\n r6 = com.tencent.mm.plugin.game.model.ap.CD(r4);\n r4 = r13;\n r5 = r15;\n com.tencent.mm.plugin.game.model.ap.a(r0, r1, r2, r3, r4, r5, r6);\n goto L_0x001a;\n L_0x004a:\n r0 = r4.nlx;\n if (r0 == 0) goto L_0x001a;\n L_0x004e:\n r11.e(r11);\n r0 = r11.DF;\n r1 = com.tencent.mm.R.i.djD;\n r2 = 1;\n r6 = r0.inflate(r1, r11, r2);\n r0 = com.tencent.mm.R.h.cxP;\n r0 = r6.findViewById(r0);\n r0 = (android.widget.TextView) r0;\n r1 = com.tencent.mm.R.h.cxR;\n r1 = r6.findViewById(r1);\n r1 = (android.widget.TextView) r1;\n r2 = com.tencent.mm.R.h.cxO;\n r2 = r6.findViewById(r2);\n r2 = (com.tencent.mm.plugin.game.widget.EllipsizingTextView) r2;\n r3 = 2;\n r2.setMaxLines(r3);\n r3 = com.tencent.mm.R.h.cxQ;\n r3 = r6.findViewById(r3);\n r3 = (android.widget.ImageView) r3;\n r8 = r11.mContext;\n r9 = r4.nlv;\n r10 = r0.getTextSize();\n r8 = com.tencent.mm.pluginsdk.ui.d.i.b(r8, r9, r10);\n r0.setText(r8);\n r0 = r11.mContext;\n r8 = r4.nlx;\n r8 = r8.fpg;\n r9 = r1.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r8, r9);\n r1.setText(r0);\n r0 = r11.mContext;\n r1 = r4.nlx;\n r1 = r1.nkL;\n r8 = r2.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r1, r8);\n r2.setText(r0);\n r0 = r4.nlx;\n r0 = r0.nkM;\n r0 = com.tencent.mm.sdk.platformtools.bi.oN(r0);\n if (r0 != 0) goto L_0x00dd;\n L_0x00b9:\n r0 = com.tencent.mm.plugin.game.d.e.aSC();\n r1 = r4.nlx;\n r1 = r1.nkM;\n r2 = r5.aSD();\n r0.a(r3, r1, r2);\n L_0x00c8:\n r0 = new com.tencent.mm.plugin.game.ui.f$a;\n r1 = r4.nlw;\n r2 = r4.nlx;\n r2 = r2.nkN;\n r3 = r4.nlr;\n r0.<init>(r1, r2, r3);\n r6.setTag(r0);\n r6.setOnClickListener(r11);\n goto L_0x0033;\n L_0x00dd:\n r0 = 8;\n r3.setVisibility(r0);\n goto L_0x00c8;\n L_0x00e3:\n r0 = r4.nly;\n if (r0 == 0) goto L_0x001a;\n L_0x00e7:\n r11.e(r11);\n r0 = r11.DF;\n r1 = com.tencent.mm.R.i.djE;\n r2 = 1;\n r3 = r0.inflate(r1, r11, r2);\n r0 = com.tencent.mm.R.h.cOG;\n r0 = r3.findViewById(r0);\n r0 = (android.widget.TextView) r0;\n r1 = com.tencent.mm.R.h.cOI;\n r1 = r3.findViewById(r1);\n r1 = (android.widget.TextView) r1;\n r2 = com.tencent.mm.R.h.cOH;\n r2 = r3.findViewById(r2);\n r2 = (android.widget.ImageView) r2;\n r6 = r11.mContext;\n r8 = r4.nlv;\n r9 = r0.getTextSize();\n r6 = com.tencent.mm.pluginsdk.ui.d.i.b(r6, r8, r9);\n r0.setText(r6);\n r0 = r11.mContext;\n r6 = r4.nly;\n r6 = r6.fpg;\n r8 = r1.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r6, r8);\n r1.setText(r0);\n r0 = r4.nly;\n r0 = r0.nkM;\n r0 = com.tencent.mm.sdk.platformtools.bi.oN(r0);\n if (r0 != 0) goto L_0x016f;\n L_0x0135:\n r0 = r4.nly;\n r0 = r0.npS;\n r1 = 1;\n if (r0 != r1) goto L_0x0167;\n L_0x013c:\n r0 = 1;\n r5.nDa = r0;\n r0 = com.tencent.mm.R.g.bCF;\n r5.nDd = r0;\n L_0x0143:\n r0 = com.tencent.mm.plugin.game.d.e.aSC();\n r1 = r4.nly;\n r1 = r1.nkM;\n r5 = r5.aSD();\n r0.a(r2, r1, r5);\n L_0x0152:\n r0 = new com.tencent.mm.plugin.game.ui.f$a;\n r1 = r4.nlw;\n r2 = r4.nly;\n r2 = r2.nkN;\n r5 = r4.nlr;\n r0.<init>(r1, r2, r5);\n r3.setTag(r0);\n r3.setOnClickListener(r11);\n goto L_0x0033;\n L_0x0167:\n r0 = 1;\n r5.hFJ = r0;\n r0 = com.tencent.mm.R.g.bCE;\n r5.nDd = r0;\n goto L_0x0143;\n L_0x016f:\n r0 = 8;\n r2.setVisibility(r0);\n goto L_0x0152;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.game.ui.f.a(com.tencent.mm.plugin.game.c.ai, java.lang.String, int, int):void\");\n }", "public static org.json.JSONArray m5901a(org.json.JSONObject r1, java.lang.String r2, org.json.JSONArray r3) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = r1.has(r2);\t Catch:{ JSONException -> 0x0013 }\n if (r0 == 0) goto L_0x0011;\t Catch:{ JSONException -> 0x0013 }\n L_0x0006:\n r0 = r1.isNull(r2);\t Catch:{ JSONException -> 0x0013 }\n if (r0 != 0) goto L_0x0011;\t Catch:{ JSONException -> 0x0013 }\n L_0x000c:\n r1 = r1.getJSONArray(r2);\t Catch:{ JSONException -> 0x0013 }\n goto L_0x0012;\n L_0x0011:\n r1 = 0;\n L_0x0012:\n return r1;\n L_0x0013:\n return r3;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.i.a(org.json.JSONObject, java.lang.String, org.json.JSONArray):org.json.JSONArray\");\n }", "public void tracejar()\r\n\t{\r\n\t\tSystem.out.println(\"****************************************\");\r\n\t}", "public static void main(String[] args) throws ClassNotFoundException {\n Class<Test.TestD> testDClass = Test.TestD.class;\n Class<Test.TestA> testAClass = Test.TestA.class;\n getClassHierarchy(testDClass);\n getClassHierarchyRecurs(testDClass, true);\n\n getClassInformation(testDClass);\n System.out.println();\n getClassInformation(testAClass);\n }", "private android.graphics.Bitmap m6555f() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r5 = this;\n r0 = r5.getWidth();\n r1 = r5.getHeight();\n r2 = m6543a(r0, r1);\t Catch:{ OutOfMemoryError -> 0x000d }\n return r2;\n L_0x000d:\n r2 = \"ShimmerFrameLayout failed to create working bitmap\";\n r3 = new java.lang.StringBuilder;\n r3.<init>(r2);\n r2 = \" (width = \";\n r3.append(r2);\n r3.append(r0);\n r0 = \", height = \";\n r3.append(r0);\n r3.append(r1);\n r0 = \")\\n\\n\";\n r3.append(r0);\n r0 = java.lang.Thread.currentThread();\n r0 = r0.getStackTrace();\n r1 = r0.length;\n r2 = 0;\n L_0x0033:\n if (r2 >= r1) goto L_0x0046;\n L_0x0035:\n r4 = r0[r2];\n r4 = r4.toString();\n r3.append(r4);\n r4 = \"\\n\";\n r3.append(r4);\n r2 = r2 + 1;\n goto L_0x0033;\n L_0x0046:\n r0 = r3.toString();\n r1 = \"ShimmerFrameLayout\";\n android.util.Log.d(r1, r0);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.f():android.graphics.Bitmap\");\n }", "private static void checkDebug() {\n try {\n if (Boolean.getBoolean(\"gfAgentDebug\")) {\n mx4j.log.Log.setDefaultPriority(mx4j.log.Logger.TRACE); // .DEBUG\n }\n } catch (VirtualMachineError err) {\n SystemFailure.initiateFailure(err);\n // If this ever returns, rethrow the error. We're poisoned\n // now, so don't let this thread continue.\n throw err;\n } catch (Throwable t) {\n // Whenever you catch Error or Throwable, you must also\n // catch VirtualMachineError (see above). However, there is\n // _still_ a possibility that you are dealing with a cascading\n // error condition, so you also need to check to see if the JVM\n // is still usable:\n SystemFailure.checkFailure();\n /* ignore */\n }\n }", "private void m110495a() {\n C19535g a = DownloaderManagerHolder.m75524a();\n String x = C25352e.m83241x(this.f89235a.f89233a.f77546j);\n Aweme aweme = this.f89235a.f89233a.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.f89235a.f89233a.f77546j;\n C7573i.m23582a((Object) aweme2, \"mAweme\");\n C19386b a2 = C22943b.m75511a(\"result_ad\", aweme2.getAwemeRawAd(), \"bg_download_button\");\n Aweme aweme3 = this.f89235a.f89233a.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 }", "public synchronized void m6495a(int r6, int r7) throws fr.pcsoft.wdjava.geo.C0918i {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: Exception block dominator not found, method:fr.pcsoft.wdjava.geo.a.b.a(int, int):void. bs: [B:13:0x001d, B:18:0x0027, B:23:0x0031, B:28:0x003a, B:44:0x005d, B:55:0x006c, B:64:0x0079]\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:86)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/70807318.run(Unknown Source)\n*/\n /*\n r5 = this;\n r4 = 2;\n r1 = 0;\n r0 = 1;\n monitor-enter(r5);\n r5.m6487e();\t Catch:{ all -> 0x0053 }\n switch(r6) {\n case 2: goto L_0x0089;\n case 3: goto L_0x000a;\n case 4: goto L_0x0013;\n default: goto L_0x000a;\n };\t Catch:{ all -> 0x0053 }\n L_0x000a:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 3;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n L_0x0011:\n monitor-exit(r5);\n return;\n L_0x0013:\n r3 = new android.location.Criteria;\t Catch:{ all -> 0x0053 }\n r3.<init>();\t Catch:{ all -> 0x0053 }\n r2 = r7 & 2;\n if (r2 != r4) goto L_0x0058;\n L_0x001c:\n r2 = 1;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0056 }\n L_0x0020:\n r2 = r7 & 128;\n r4 = 128; // 0x80 float:1.794E-43 double:6.32E-322;\n if (r2 != r4) goto L_0x0065;\n L_0x0026:\n r2 = 3;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0063 }\n L_0x002a:\n r2 = r7 & 8;\n r4 = 8;\n if (r2 != r4) goto L_0x007f;\n L_0x0030:\n r2 = r0;\n L_0x0031:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0081 }\n r2 = r7 & 4;\n r4 = 4;\n if (r2 != r4) goto L_0x0083;\n L_0x0039:\n r2 = r0;\n L_0x003a:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0085 }\n r2 = r7 & 16;\n r4 = 16;\n if (r2 != r4) goto L_0x0087;\n L_0x0043:\n r3.setAltitudeRequired(r0);\t Catch:{ all -> 0x0053 }\n r0 = 0;\t Catch:{ all -> 0x0053 }\n r0 = r5.m6485a(r0);\t Catch:{ all -> 0x0053 }\n r1 = 1;\t Catch:{ all -> 0x0053 }\n r0 = r0.getBestProvider(r3, r1);\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n L_0x0053:\n r0 = move-exception;\n monitor-exit(r5);\n throw r0;\n L_0x0056:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0058:\n r2 = r7 & 1;\n if (r2 != r0) goto L_0x0020;\n L_0x005c:\n r2 = 2;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0061 }\n goto L_0x0020;\n L_0x0061:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0063:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0065:\n r2 = r7 & 64;\n r4 = 64;\n if (r2 != r4) goto L_0x0072;\n L_0x006b:\n r2 = 2;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0070 }\n goto L_0x002a;\n L_0x0070:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0072:\n r2 = r7 & 32;\n r4 = 32;\n if (r2 != r4) goto L_0x002a;\n L_0x0078:\n r2 = 1;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x007d }\n goto L_0x002a;\n L_0x007d:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x007f:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0031;\t Catch:{ all -> 0x0053 }\n L_0x0081:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0083:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x003a;\t Catch:{ all -> 0x0053 }\n L_0x0085:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0087:\n r0 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0043;\t Catch:{ all -> 0x0053 }\n L_0x0089:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 2;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: fr.pcsoft.wdjava.geo.a.b.a(int, int):void\");\n }", "private static void debug(String s) {\n if (System.getProperty(\"javafind.debug\") != null)\n System.out.println(\"debug in GnuNativeFind: \" + s);\n }", "C1477ma(java.lang.String r16, com.google.android.gms.internal.ads.awd r17) {\n /*\n r15 = this;\n r0 = r17\n java.lang.String r3 = r0.f2954b\n long r4 = r0.f2955c\n long r6 = r0.f2956d\n long r8 = r0.f2957e\n long r10 = r0.f2958f\n java.util.List<com.google.android.gms.internal.ads.bff> r1 = r0.f2960h\n if (r1 == 0) goto L_0x0014\n java.util.List<com.google.android.gms.internal.ads.bff> r1 = r0.f2960h\n r12 = r1\n goto L_0x0049\n L_0x0014:\n java.util.Map<java.lang.String, java.lang.String> r1 = r0.f2959g\n java.util.ArrayList r2 = new java.util.ArrayList\n int r12 = r1.size()\n r2.<init>(r12)\n java.util.Set r1 = r1.entrySet()\n java.util.Iterator r1 = r1.iterator()\n L_0x0027:\n boolean r12 = r1.hasNext()\n if (r12 == 0) goto L_0x0048\n java.lang.Object r12 = r1.next()\n java.util.Map$Entry r12 = (java.util.Map.Entry) r12\n com.google.android.gms.internal.ads.bff r13 = new com.google.android.gms.internal.ads.bff\n java.lang.Object r14 = r12.getKey()\n java.lang.String r14 = (java.lang.String) r14\n java.lang.Object r12 = r12.getValue()\n java.lang.String r12 = (java.lang.String) r12\n r13.<init>(r14, r12)\n r2.add(r13)\n goto L_0x0027\n L_0x0048:\n r12 = r2\n L_0x0049:\n r1 = r15\n r2 = r16\n r1.<init>(r2, r3, r4, r6, r8, r10, r12)\n byte[] r0 = r0.f2953a\n int r0 = r0.length\n long r0 = (long) r0\n r2 = r15\n r2.f5708a = r0\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.C1477ma.<init>(java.lang.String, com.google.android.gms.internal.ads.awd):void\");\n }", "public static void m1518d(String msg) {\n if (isDebug) {\n Log.d(TAG, msg);\n }\n }", "public static final void debug(@org.jetbrains.annotations.NotNull org.jetbrains.anko.AnkoLogger r2, @org.jetbrains.annotations.NotNull kotlin.jvm.functions.Function0<? extends java.lang.Object> r3) {\n /*\n r1 = \"$receiver\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r2, r1);\n r1 = \"message\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r3, r1);\n r0 = r2.getLoggerTag();\n r1 = 3;\n r1 = android.util.Log.isLoggable(r0, r1);\n if (r1 == 0) goto L_0x0026;\n L_0x0017:\n r1 = r3.invoke();\n if (r1 == 0) goto L_0x0027;\n L_0x001d:\n r1 = r1.toString();\n if (r1 == 0) goto L_0x0027;\n L_0x0023:\n android.util.Log.d(r0, r1);\n L_0x0026:\n return;\n L_0x0027:\n r1 = \"null\";\n goto L_0x0023;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jetbrains.anko.Logging.debug(org.jetbrains.anko.AnkoLogger, kotlin.jvm.functions.Function0):void\");\n }", "private ElementDebugger() {\r\n\t\t/* PROTECTED REGION ID(java.constructor._17_0_5_12d203c6_1363681638138_829588_2092) ENABLED START */\r\n\t\t// :)\r\n\t\t/* PROTECTED REGION END */\r\n\t}", "private static void zza(com.google.android.gms.internal.gtm.zzug r2, java.lang.Object r3) {\n /*\n com.google.android.gms.internal.gtm.zzre.checkNotNull(r3)\n int[] r0 = com.google.android.gms.internal.gtm.zzqu.zzaxr\n com.google.android.gms.internal.gtm.zzul r2 = r2.zzrs()\n int r2 = r2.ordinal()\n r2 = r0[r2]\n r0 = 1\n r1 = 0\n switch(r2) {\n case 1: goto L_0x0040;\n case 2: goto L_0x003d;\n case 3: goto L_0x003a;\n case 4: goto L_0x0037;\n case 5: goto L_0x0034;\n case 6: goto L_0x0031;\n case 7: goto L_0x0028;\n case 8: goto L_0x001e;\n case 9: goto L_0x0015;\n default: goto L_0x0014;\n }\n L_0x0014:\n goto L_0x0043\n L_0x0015:\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzsk\n if (r2 != 0) goto L_0x0026\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzrn\n if (r2 == 0) goto L_0x0043\n goto L_0x0026\n L_0x001e:\n boolean r2 = r3 instanceof java.lang.Integer\n if (r2 != 0) goto L_0x0026\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzrf\n if (r2 == 0) goto L_0x0043\n L_0x0026:\n r1 = 1\n goto L_0x0043\n L_0x0028:\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzps\n if (r2 != 0) goto L_0x0026\n boolean r2 = r3 instanceof byte[]\n if (r2 == 0) goto L_0x0043\n goto L_0x0026\n L_0x0031:\n boolean r0 = r3 instanceof java.lang.String\n goto L_0x0042\n L_0x0034:\n boolean r0 = r3 instanceof java.lang.Boolean\n goto L_0x0042\n L_0x0037:\n boolean r0 = r3 instanceof java.lang.Double\n goto L_0x0042\n L_0x003a:\n boolean r0 = r3 instanceof java.lang.Float\n goto L_0x0042\n L_0x003d:\n boolean r0 = r3 instanceof java.lang.Long\n goto L_0x0042\n L_0x0040:\n boolean r0 = r3 instanceof java.lang.Integer\n L_0x0042:\n r1 = r0\n L_0x0043:\n if (r1 == 0) goto L_0x0046\n return\n L_0x0046:\n java.lang.IllegalArgumentException r2 = new java.lang.IllegalArgumentException\n java.lang.String r3 = \"Wrong object type used with protocol message reflection.\"\n r2.<init>(r3)\n goto L_0x004f\n L_0x004e:\n throw r2\n L_0x004f:\n goto L_0x004e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.gtm.zzqt.zza(com.google.android.gms.internal.gtm.zzug, java.lang.Object):void\");\n }", "AnonymousClass2(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.telecom.ConnectionServiceAdapterServant.2.<init>(android.telecom.ConnectionServiceAdapterServant):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.2.<init>(android.telecom.ConnectionServiceAdapterServant):void\");\n }", "private static int zza(byte[] r1, int r2, int r3, com.google.android.gms.internal.clearcut.zzfl r4, java.lang.Class<?> r5, com.google.android.gms.internal.clearcut.zzay r6) throws java.io.IOException {\n /*\n r0 = com.google.android.gms.internal.clearcut.zzdt.zzgq;\n r4 = r4.ordinal();\n r4 = r0[r4];\n switch(r4) {\n case 1: goto L_0x0085;\n case 2: goto L_0x0080;\n case 3: goto L_0x0073;\n case 4: goto L_0x0066;\n case 5: goto L_0x0066;\n case 6: goto L_0x005d;\n case 7: goto L_0x005d;\n case 8: goto L_0x0054;\n case 9: goto L_0x0047;\n case 10: goto L_0x0047;\n case 11: goto L_0x0047;\n case 12: goto L_0x003c;\n case 13: goto L_0x003c;\n case 14: goto L_0x002f;\n case 15: goto L_0x0024;\n case 16: goto L_0x0019;\n case 17: goto L_0x0013;\n default: goto L_0x000b;\n };\n L_0x000b:\n r1 = new java.lang.RuntimeException;\n r2 = \"unsupported field type.\";\n r1.<init>(r2);\n throw r1;\n L_0x0013:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzd(r1, r2, r6);\n goto L_0x0099;\n L_0x0019:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzb(r1, r2, r6);\n r2 = r6.zzfe;\n r2 = com.google.android.gms.internal.clearcut.zzbk.zza(r2);\n goto L_0x0042;\n L_0x0024:\n r1 = com.google.android.gms.internal.clearcut.zzax.zza(r1, r2, r6);\n r2 = r6.zzfd;\n r2 = com.google.android.gms.internal.clearcut.zzbk.zzm(r2);\n goto L_0x004d;\n L_0x002f:\n r4 = com.google.android.gms.internal.clearcut.zzea.zzcm();\n r4 = r4.zze(r5);\n r1 = zza(r4, r1, r2, r3, r6);\n goto L_0x0099;\n L_0x003c:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzb(r1, r2, r6);\n r2 = r6.zzfe;\n L_0x0042:\n r2 = java.lang.Long.valueOf(r2);\n goto L_0x0051;\n L_0x0047:\n r1 = com.google.android.gms.internal.clearcut.zzax.zza(r1, r2, r6);\n r2 = r6.zzfd;\n L_0x004d:\n r2 = java.lang.Integer.valueOf(r2);\n L_0x0051:\n r6.zzff = r2;\n goto L_0x0099;\n L_0x0054:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzf(r1, r2);\n r1 = java.lang.Float.valueOf(r1);\n goto L_0x006e;\n L_0x005d:\n r3 = com.google.android.gms.internal.clearcut.zzax.zzd(r1, r2);\n r1 = java.lang.Long.valueOf(r3);\n goto L_0x007b;\n L_0x0066:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzc(r1, r2);\n r1 = java.lang.Integer.valueOf(r1);\n L_0x006e:\n r6.zzff = r1;\n r1 = r2 + 4;\n goto L_0x0099;\n L_0x0073:\n r3 = com.google.android.gms.internal.clearcut.zzax.zze(r1, r2);\n r1 = java.lang.Double.valueOf(r3);\n L_0x007b:\n r6.zzff = r1;\n r1 = r2 + 8;\n goto L_0x0099;\n L_0x0080:\n r1 = com.google.android.gms.internal.clearcut.zzax.zze(r1, r2, r6);\n goto L_0x0099;\n L_0x0085:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzb(r1, r2, r6);\n r2 = r6.zzfe;\n r4 = 0;\n r0 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r0 == 0) goto L_0x0093;\n L_0x0091:\n r2 = 1;\n goto L_0x0094;\n L_0x0093:\n r2 = 0;\n L_0x0094:\n r2 = java.lang.Boolean.valueOf(r2);\n goto L_0x0051;\n L_0x0099:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.clearcut.zzds.zza(byte[], int, int, com.google.android.gms.internal.clearcut.zzfl, java.lang.Class, com.google.android.gms.internal.clearcut.zzay):int\");\n }", "private void analyzeApplication() throws InterruptedException {\n int passCount = 0;\n Profiler profiler = bugReporter.getProjectStats().getProfiler();\n profiler.start(this.getClass());\n AnalysisContext.currentXFactory().canonicalizeAll();\n try {\n boolean multiplePasses = executionPlan.getNumPasses() > 1;\n if (executionPlan.getNumPasses() == 0) {\n throw new AssertionError(\"no analysis passes\");\n }\n int[] classesPerPass = new int[executionPlan.getNumPasses()];\n classesPerPass[0] = referencedClassSet.size();\n for (int i = 0; i < classesPerPass.length; i++) {\n classesPerPass[i] = i == 0 ? referencedClassSet.size() : appClassList.size();\n }\n progress.predictPassCount(classesPerPass);\n XFactory factory = AnalysisContext.currentXFactory();\n Collection<ClassDescriptor> badClasses = new LinkedList<ClassDescriptor>();\n for (ClassDescriptor desc : referencedClassSet) {\n try {\n XClass info = Global.getAnalysisCache().getClassAnalysis(XClass.class, desc);\n factory.intern(info);\n } catch (CheckedAnalysisException e) {\n AnalysisContext.logError(\"Couldn't get class info for \" + desc, e);\n badClasses.add(desc);\n } catch (RuntimeException e) {\n AnalysisContext.logError(\"Couldn't get class info for \" + desc, e);\n badClasses.add(desc);\n }\n }\n\n referencedClassSet.removeAll(badClasses);\n long startTime = System.currentTimeMillis();\n bugReporter.getProjectStats().setReferencedClasses(referencedClassSet.size());\n for (Iterator<AnalysisPass> passIterator = executionPlan.passIterator(); passIterator.hasNext();) {\n AnalysisPass pass = passIterator.next();\n yourkitController.advanceGeneration(\"Pass \" + passCount);\n // The first pass is generally a non-reporting pass which\n // gathers information about referenced classes.\n boolean isNonReportingFirstPass = multiplePasses && passCount == 0;\n\n // Instantiate the detectors\n Detector2[] detectorList = pass.instantiateDetector2sInPass(bugReporter);\n\n // If there are multiple passes, then on the first pass,\n // we apply detectors to all classes referenced by the\n // application classes.\n // On subsequent passes, we apply detector only to application\n // classes.\n Collection<ClassDescriptor> classCollection = (isNonReportingFirstPass) ? referencedClassSet : appClassList;\n AnalysisContext.currentXFactory().canonicalizeAll();\n if (PROGRESS || LIST_ORDER) {\n System.out.printf(\"%6d : Pass %d: %d classes%n\", (System.currentTimeMillis() - startTime)/1000, passCount, classCollection.size());\n if (DEBUG)\n XFactory.profile();\n }\n if (!isNonReportingFirstPass) {\n OutEdges<ClassDescriptor> outEdges = new OutEdges<ClassDescriptor>() {\n\n public Collection<ClassDescriptor> getOutEdges(ClassDescriptor e) {\n try {\n XClass classNameAndInfo = Global.getAnalysisCache().getClassAnalysis(XClass.class, e);\n if (classNameAndInfo instanceof ClassNameAndSuperclassInfo) {\n return ((ClassNameAndSuperclassInfo) classNameAndInfo).getCalledClassDescriptorList();\n }\n assert false;\n return Collections.emptyList();\n } catch (CheckedAnalysisException e2) {\n AnalysisContext.logError(\"error while analyzing \" + e.getClassName(), e2);\n return Collections.emptyList();\n\n }\n }\n };\n\n classCollection = sortByCallGraph(classCollection, outEdges);\n }\n if (LIST_ORDER) {\n System.out.println(\"Analysis order:\");\n for (ClassDescriptor c : classCollection) {\n System.out.println(\" \" + c);\n }\n }\n AnalysisContext.currentAnalysisContext().updateDatabases(passCount);\n\n progress.startAnalysis(classCollection.size());\n int count = 0;\n Global.getAnalysisCache().purgeAllMethodAnalysis();\n Global.getAnalysisCache().purgeClassAnalysis(FBClassReader.class);\n for (ClassDescriptor classDescriptor : classCollection) {\n long classStartNanoTime = 0;\n if (PROGRESS) {\n classStartNanoTime = System.nanoTime();\n System.out.printf(\"%6d %d/%d %d/%d %s%n\", (System.currentTimeMillis() - startTime)/1000,\n passCount, executionPlan.getNumPasses(), count,\n classCollection.size(), classDescriptor);\n }\n count++;\n\n // Check to see if class is excluded by the class screener.\n // In general, we do not want to screen classes from the\n // first pass, even if they would otherwise be excluded.\n if ((SCREEN_FIRST_PASS_CLASSES || !isNonReportingFirstPass)\n && !classScreener.matches(classDescriptor.toResourceName())) {\n if (DEBUG) {\n System.out.println(\"*** Excluded by class screener\");\n }\n continue;\n }\n boolean isHuge = AnalysisContext.currentAnalysisContext().isTooBig(classDescriptor);\n if (isHuge && AnalysisContext.currentAnalysisContext().isApplicationClass(classDescriptor)) {\n bugReporter.reportBug(new BugInstance(\"SKIPPED_CLASS_TOO_BIG\", Priorities.NORMAL_PRIORITY)\n .addClass(classDescriptor));\n }\n currentClassName = ClassName.toDottedClassName(classDescriptor.getClassName());\n notifyClassObservers(classDescriptor);\n profiler.startContext(currentClassName);\n\n try {\n for (Detector2 detector : detectorList) {\n if (Thread.interrupted()) {\n throw new InterruptedException();\n }\n if (isHuge && !FirstPassDetector.class.isAssignableFrom(detector.getClass())) {\n continue;\n }\n if (DEBUG) {\n System.out.println(\"Applying \" + detector.getDetectorClassName() + \" to \" + classDescriptor);\n // System.out.println(\"foo: \" +\n // NonReportingDetector.class.isAssignableFrom(detector.getClass())\n // + \", bar: \" + detector.getClass().getName());\n }\n try {\n profiler.start(detector.getClass());\n detector.visitClass(classDescriptor);\n } catch (ClassFormatException e) {\n logRecoverableException(classDescriptor, detector, e);\n } catch (MissingClassException e) {\n Global.getAnalysisCache().getErrorLogger().reportMissingClass(e.getClassDescriptor());\n } catch (CheckedAnalysisException e) {\n logRecoverableException(classDescriptor, detector, e);\n } catch (RuntimeException e) {\n logRecoverableException(classDescriptor, detector, e);\n } finally {\n profiler.end(detector.getClass());\n }\n }\n } finally {\n\n progress.finishClass();\n profiler.endContext(currentClassName);\n if (PROGRESS) {\n long usecs = (System.nanoTime() - classStartNanoTime)/1000;\n if (usecs > 15000) {\n int classSize = AnalysisContext.currentAnalysisContext().getClassSize(classDescriptor);\n long speed = usecs /classSize;\n if (speed > 15)\n System.out.printf(\" %6d usecs/byte %6d msec %6d bytes %d pass %s%n\", speed, usecs/1000, classSize, passCount,\n classDescriptor);\n }\n \n }\n }\n }\n\n if (!passIterator.hasNext())\n yourkitController.captureMemorySnapshot();\n // Call finishPass on each detector\n for (Detector2 detector : detectorList) {\n detector.finishPass();\n }\n\n progress.finishPerClassAnalysis();\n\n passCount++;\n }\n\n\n } finally {\n\n bugReporter.finish();\n bugReporter.reportQueuedErrors();\n profiler.end(this.getClass());\n if (PROGRESS)\n System.out.println(\"Analysis completed\");\n }\n\n }", "@SuppressWarnings(\"unused\") // Generated code\n private static byte[] getAdapterClassDump(@NotNull String recyclerViewName,\n @NotNull String viewHolderName,\n @NotNull String adapterName) {\n ClassWriter cw = new ClassWriter(0);\n FieldVisitor fv;\n MethodVisitor mv;\n AnnotationVisitor av0;\n\n String signature = String.format(\"L%1$s<L%2$s;>;\",\n adapterName,\n viewHolderName);\n cw.visit(V1_7, ACC_PUBLIC + ACC_SUPER, \"com/android/layoutlib/bridge/android/support/Adapter\", signature, adapterName, null);\n\n cw.visitInnerClass(\"com/android/layoutlib/bridge/android/support/Adapter$ViewHolder\", \"com/android/layoutlib/bridge/android/support/Adapter\", \"ViewHolder\", ACC_PRIVATE + ACC_STATIC);\n\n cw.visitInnerClass(viewHolderName, recyclerViewName, \"ViewHolder\", ACC_PUBLIC + ACC_STATIC + ACC_ABSTRACT);\n\n cw.visitInnerClass(adapterName, recyclerViewName, \"Adapter\", ACC_PUBLIC + ACC_STATIC + ACC_ABSTRACT);\n\n {\n fv = cw.visitField(ACC_PRIVATE, \"mItemCount\", \"I\", null, null);\n fv.visitEnd();\n }\n {\n fv = cw.visitField(ACC_PRIVATE, \"mId\", \"I\", null, null);\n fv.visitEnd();\n }\n {\n mv = cw.visitMethod(ACC_PUBLIC, \"<init>\", \"()V\", null, null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 0);\n mv.visitMethodInsn(INVOKESPECIAL, adapterName, \"<init>\", \"()V\", false);\n mv.visitVarInsn(ALOAD, 0);\n mv.visitIntInsn(BIPUSH, 10);\n mv.visitFieldInsn(PUTFIELD, \"com/android/layoutlib/bridge/android/support/Adapter\", \"mItemCount\", \"I\");\n mv.visitInsn(RETURN);\n mv.visitMaxs(2, 1);\n mv.visitEnd();\n }\n {\n String desc = String.format(\"(Landroid/view/ViewGroup;I)L%1$s;\", viewHolderName);\n mv = cw.visitMethod(ACC_PUBLIC, \"onCreateViewHolder\", desc, null, null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 0);\n mv.visitFieldInsn(GETFIELD, \"com/android/layoutlib/bridge/android/support/Adapter\", \"mId\", \"I\");\n Label l0 = new Label();\n mv.visitJumpInsn(IFLE, l0);\n mv.visitVarInsn(ALOAD, 1);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"android/view/ViewGroup\", \"getContext\", \"()Landroid/content/Context;\", false);\n mv.visitMethodInsn(INVOKESTATIC, \"android/view/LayoutInflater\", \"from\", \"(Landroid/content/Context;)Landroid/view/LayoutInflater;\", false);\n mv.visitVarInsn(ALOAD, 0);\n mv.visitFieldInsn(GETFIELD, \"com/android/layoutlib/bridge/android/support/Adapter\", \"mId\", \"I\");\n mv.visitVarInsn(ALOAD, 1);\n mv.visitInsn(ICONST_0);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"android/view/LayoutInflater\", \"inflate\", \"(ILandroid/view/ViewGroup;Z)Landroid/view/View;\", false);\n mv.visitVarInsn(ASTORE, 3);\n Label l1 = new Label();\n mv.visitJumpInsn(GOTO, l1);\n mv.visitLabel(l0);\n mv.visitFrame(Opcodes.F_SAME, 0, null, 0, null);\n mv.visitTypeInsn(NEW, \"android/widget/TextView\");\n mv.visitInsn(DUP);\n mv.visitVarInsn(ALOAD, 1);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"android/view/ViewGroup\", \"getContext\", \"()Landroid/content/Context;\", false);\n mv.visitMethodInsn(INVOKESPECIAL, \"android/widget/TextView\", \"<init>\", \"(Landroid/content/Context;)V\", false);\n mv.visitVarInsn(ASTORE, 3);\n mv.visitLabel(l1);\n mv.visitFrame(Opcodes.F_APPEND,1, new Object[] {\"android/view/View\"}, 0, null);\n mv.visitTypeInsn(NEW, \"com/android/layoutlib/bridge/android/support/Adapter$ViewHolder\");\n mv.visitInsn(DUP);\n mv.visitVarInsn(ALOAD, 3);\n mv.visitMethodInsn(INVOKESPECIAL, \"com/android/layoutlib/bridge/android/support/Adapter$ViewHolder\", \"<init>\", \"(Landroid/view/View;)V\", false);\n mv.visitInsn(ARETURN);\n mv.visitMaxs(4, 4);\n mv.visitEnd();\n }\n {\n String desc = String.format(\"(L%1$s;I)V\", viewHolderName);\n mv = cw.visitMethod(ACC_PUBLIC, \"onBindViewHolder\", desc, null, null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 1);\n mv.visitFieldInsn(GETFIELD, viewHolderName, \"itemView\", \"Landroid/view/View;\");\n mv.visitVarInsn(ASTORE, 3);\n mv.visitTypeInsn(NEW, \"java/util/ArrayList\");\n mv.visitInsn(DUP);\n mv.visitMethodInsn(INVOKESPECIAL, \"java/util/ArrayList\", \"<init>\", \"()V\", false);\n mv.visitVarInsn(ASTORE, 4);\n mv.visitVarInsn(ALOAD, 0);\n mv.visitVarInsn(ALOAD, 3);\n mv.visitVarInsn(ALOAD, 4);\n mv.visitTypeInsn(NEW, \"java/util/LinkedList\");\n mv.visitInsn(DUP);\n mv.visitMethodInsn(INVOKESPECIAL, \"java/util/LinkedList\", \"<init>\", \"()V\", false);\n mv.visitMethodInsn(INVOKESPECIAL, \"com/android/layoutlib/bridge/android/support/Adapter\", \"findTextViews\", \"(Landroid/view/View;Ljava/util/ArrayList;Ljava/util/LinkedList;)V\", false);\n mv.visitTypeInsn(NEW, \"java/lang/StringBuilder\");\n mv.visitInsn(DUP);\n mv.visitMethodInsn(INVOKESPECIAL, \"java/lang/StringBuilder\", \"<init>\", \"()V\", false);\n mv.visitLdcInsn(\"Item \");\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/lang/StringBuilder\", \"append\", \"(Ljava/lang/String;)Ljava/lang/StringBuilder;\", false);\n mv.visitVarInsn(ILOAD, 2);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/lang/StringBuilder\", \"append\", \"(I)Ljava/lang/StringBuilder;\", false);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/lang/StringBuilder\", \"toString\", \"()Ljava/lang/String;\", false);\n mv.visitVarInsn(ASTORE, 5);\n mv.visitInsn(ICONST_0);\n mv.visitVarInsn(ISTORE, 6);\n Label l0 = new Label();\n mv.visitLabel(l0);\n mv.visitFrame(Opcodes.F_FULL, 7, new Object[] {\"com/android/layoutlib/bridge/android/support/Adapter\", viewHolderName, Opcodes.INTEGER, \"android/view/View\", \"java/util/ArrayList\", \"java/lang/String\", Opcodes.INTEGER}, 0, new Object[] {});\n mv.visitVarInsn(ILOAD, 6);\n mv.visitVarInsn(ALOAD, 4);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/util/ArrayList\", \"size\", \"()I\", false);\n Label l1 = new Label();\n mv.visitJumpInsn(IF_ICMPGE, l1);\n mv.visitVarInsn(ALOAD, 4);\n mv.visitVarInsn(ILOAD, 6);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/util/ArrayList\", \"get\", \"(I)Ljava/lang/Object;\", false);\n mv.visitTypeInsn(CHECKCAST, \"android/widget/TextView\");\n mv.visitVarInsn(ALOAD, 5);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"android/widget/TextView\", \"setText\", \"(Ljava/lang/CharSequence;)V\", false);\n mv.visitTypeInsn(NEW, \"java/lang/StringBuilder\");\n mv.visitInsn(DUP);\n mv.visitMethodInsn(INVOKESPECIAL, \"java/lang/StringBuilder\", \"<init>\", \"()V\", false);\n mv.visitLdcInsn(\"Sub\");\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/lang/StringBuilder\", \"append\", \"(Ljava/lang/String;)Ljava/lang/StringBuilder;\", false);\n mv.visitVarInsn(ALOAD, 5);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/lang/StringBuilder\", \"append\", \"(Ljava/lang/String;)Ljava/lang/StringBuilder;\", false);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/lang/StringBuilder\", \"toString\", \"()Ljava/lang/String;\", false);\n mv.visitVarInsn(ASTORE, 5);\n mv.visitIincInsn(6, 1);\n mv.visitJumpInsn(GOTO, l0);\n mv.visitLabel(l1);\n mv.visitFrame(Opcodes.F_CHOP,1, null, 0, null);\n mv.visitInsn(RETURN);\n mv.visitMaxs(5, 7);\n mv.visitEnd();\n }\n {\n mv = cw.visitMethod(ACC_PUBLIC, \"getItemCount\", \"()I\", null, null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 0);\n mv.visitFieldInsn(GETFIELD, \"com/android/layoutlib/bridge/android/support/Adapter\", \"mItemCount\", \"I\");\n mv.visitInsn(IRETURN);\n mv.visitMaxs(1, 1);\n mv.visitEnd();\n }\n {\n mv = cw.visitMethod(ACC_PUBLIC, \"setLayoutId\", \"(I)V\", null, null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 0);\n mv.visitVarInsn(ILOAD, 1);\n mv.visitFieldInsn(PUTFIELD, \"com/android/layoutlib/bridge/android/support/Adapter\", \"mId\", \"I\");\n mv.visitInsn(RETURN);\n mv.visitMaxs(2, 2);\n mv.visitEnd();\n }\n {\n mv = cw.visitMethod(ACC_PUBLIC, \"setItemCount\", \"(I)V\", null, null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 0);\n mv.visitVarInsn(ILOAD, 1);\n mv.visitFieldInsn(PUTFIELD, \"com/android/layoutlib/bridge/android/support/Adapter\", \"mItemCount\", \"I\");\n mv.visitInsn(RETURN);\n mv.visitMaxs(2, 2);\n mv.visitEnd();\n }\n {\n mv = cw.visitMethod(ACC_PRIVATE, \"findTextViews\", \"(Landroid/view/View;Ljava/util/ArrayList;Ljava/util/LinkedList;)V\", \"(Landroid/view/View;Ljava/util/ArrayList<Landroid/widget/TextView;>;Ljava/util/LinkedList<Landroid/view/View;>;)V\", null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 1);\n mv.visitTypeInsn(INSTANCEOF, \"android/widget/TextView\");\n Label l0 = new Label();\n mv.visitJumpInsn(IFEQ, l0);\n mv.visitVarInsn(ALOAD, 1);\n mv.visitTypeInsn(CHECKCAST, \"android/widget/TextView\");\n mv.visitMethodInsn(INVOKEVIRTUAL, \"android/widget/TextView\", \"getText\", \"()Ljava/lang/CharSequence;\", false);\n mv.visitMethodInsn(INVOKEINTERFACE, \"java/lang/CharSequence\", \"length\", \"()I\", true);\n Label l1 = new Label();\n mv.visitJumpInsn(IFNE, l1);\n mv.visitVarInsn(ALOAD, 2);\n mv.visitVarInsn(ALOAD, 1);\n mv.visitTypeInsn(CHECKCAST, \"android/widget/TextView\");\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/util/ArrayList\", \"add\", \"(Ljava/lang/Object;)Z\", false);\n mv.visitInsn(POP);\n mv.visitJumpInsn(GOTO, l1);\n mv.visitLabel(l0);\n mv.visitFrame(Opcodes.F_SAME, 0, null, 0, null);\n mv.visitVarInsn(ALOAD, 1);\n mv.visitTypeInsn(INSTANCEOF, \"android/view/ViewGroup\");\n mv.visitJumpInsn(IFEQ, l1);\n mv.visitInsn(ICONST_0);\n mv.visitVarInsn(ISTORE, 4);\n Label l2 = new Label();\n mv.visitLabel(l2);\n mv.visitFrame(Opcodes.F_APPEND,1, new Object[] {Opcodes.INTEGER}, 0, null);\n mv.visitVarInsn(ILOAD, 4);\n mv.visitVarInsn(ALOAD, 1);\n mv.visitTypeInsn(CHECKCAST, \"android/view/ViewGroup\");\n mv.visitMethodInsn(INVOKEVIRTUAL, \"android/view/ViewGroup\", \"getChildCount\", \"()I\", false);\n mv.visitJumpInsn(IF_ICMPGE, l1);\n mv.visitVarInsn(ALOAD, 3);\n mv.visitVarInsn(ALOAD, 1);\n mv.visitTypeInsn(CHECKCAST, \"android/view/ViewGroup\");\n mv.visitVarInsn(ILOAD, 4);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"android/view/ViewGroup\", \"getChildAt\", \"(I)Landroid/view/View;\", false);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/util/LinkedList\", \"add\", \"(Ljava/lang/Object;)Z\", false);\n mv.visitInsn(POP);\n mv.visitIincInsn(4, 1);\n mv.visitJumpInsn(GOTO, l2);\n mv.visitLabel(l1);\n mv.visitFrame(Opcodes.F_CHOP,1, null, 0, null);\n mv.visitVarInsn(ALOAD, 3);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/util/LinkedList\", \"isEmpty\", \"()Z\", false);\n Label l3 = new Label();\n mv.visitJumpInsn(IFNE, l3);\n mv.visitVarInsn(ALOAD, 0);\n mv.visitVarInsn(ALOAD, 3);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/util/LinkedList\", \"remove\", \"()Ljava/lang/Object;\", false);\n mv.visitTypeInsn(CHECKCAST, \"android/view/View\");\n mv.visitVarInsn(ALOAD, 2);\n mv.visitVarInsn(ALOAD, 3);\n mv.visitMethodInsn(INVOKESPECIAL, \"com/android/layoutlib/bridge/android/support/Adapter\", \"findTextViews\", \"(Landroid/view/View;Ljava/util/ArrayList;Ljava/util/LinkedList;)V\", false);\n mv.visitLabel(l3);\n mv.visitFrame(Opcodes.F_SAME, 0, null, 0, null);\n mv.visitInsn(RETURN);\n mv.visitMaxs(4, 5);\n mv.visitEnd();\n }\n cw.visitEnd();\n\n return cw.toByteArray();\n }", "private static int zzd(android.content.Context r8, java.lang.String r9, boolean r10) throws com.google.android.gms.dynamite.DynamiteModule.zzc {\n /*\n r0 = 0\n if (r10 == 0) goto L_0x000d\n java.lang.String r10 = \"api_force_staging\"\n goto L_0x000f\n L_0x0006:\n r8 = move-exception\n goto L_0x00ad\n L_0x0009:\n r8 = move-exception\n r9 = r0\n goto L_0x009e\n L_0x000d:\n java.lang.String r10 = \"api\"\n L_0x000f:\n java.lang.String r1 = \"content://com.google.android.gms.chimera/\"\n java.lang.String r1 = java.lang.String.valueOf(r1) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n java.lang.String r2 = java.lang.String.valueOf(r1) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2.length() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2 + 1\n java.lang.String r3 = java.lang.String.valueOf(r10) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r3 = r3.length() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2 + r3\n java.lang.String r3 = java.lang.String.valueOf(r9) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r3 = r3.length() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2 + r3\n java.lang.StringBuilder r3 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.<init>(r2) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.append(r1) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.append(r10) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n java.lang.String r10 = \"/\"\n r3.append(r10) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.append(r9) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n java.lang.String r9 = r3.toString() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n android.net.Uri r2 = android.net.Uri.parse(r9) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n android.content.ContentResolver r1 = r8.getContentResolver() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3 = 0\n r4 = 0\n r5 = 0\n r6 = 0\n android.database.Cursor r8 = r1.query(r2, r3, r4, r5, r6) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n if (r8 == 0) goto L_0x0096\n boolean r9 = r8.moveToFirst() // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r9 == 0) goto L_0x0096\n r9 = 0\n int r9 = r8.getInt(r9) // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r9 <= 0) goto L_0x0087\n java.lang.Class<com.google.android.gms.dynamite.DynamiteModule> r10 = com.google.android.gms.dynamite.DynamiteModule.class\n monitor-enter(r10) // Catch:{ Exception -> 0x0091, all -> 0x008d }\n r1 = 2\n java.lang.String r1 = r8.getString(r1) // Catch:{ all -> 0x0084 }\n zzaSI = r1 // Catch:{ all -> 0x0084 }\n monitor-exit(r10) // Catch:{ all -> 0x0084 }\n java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r10 = zzaSJ // Catch:{ Exception -> 0x0091, all -> 0x008d }\n java.lang.Object r10 = r10.get() // Catch:{ Exception -> 0x0091, all -> 0x008d }\n com.google.android.gms.dynamite.DynamiteModule$zza r10 = (com.google.android.gms.dynamite.DynamiteModule.zza) r10 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r10 == 0) goto L_0x0087\n android.database.Cursor r1 = r10.zzaSR // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r1 != 0) goto L_0x0087\n r10.zzaSR = r8 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n r8 = r0\n goto L_0x0087\n L_0x0084:\n r9 = move-exception\n monitor-exit(r10) // Catch:{ all -> 0x0084 }\n throw r9 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n L_0x0087:\n if (r8 == 0) goto L_0x008c\n r8.close()\n L_0x008c:\n return r9\n L_0x008d:\n r9 = move-exception\n r0 = r8\n r8 = r9\n goto L_0x00ad\n L_0x0091:\n r9 = move-exception\n r7 = r9\n r9 = r8\n r8 = r7\n goto L_0x009e\n L_0x0096:\n com.google.android.gms.dynamite.DynamiteModule$zzc r9 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ Exception -> 0x0091, all -> 0x008d }\n java.lang.String r10 = \"Failed to connect to dynamite module ContentResolver.\"\n r9.<init>((java.lang.String) r10, (com.google.android.gms.dynamite.zza) r0) // Catch:{ Exception -> 0x0091, all -> 0x008d }\n throw r9 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n L_0x009e:\n boolean r10 = r8 instanceof com.google.android.gms.dynamite.DynamiteModule.zzc // Catch:{ all -> 0x00ab }\n if (r10 == 0) goto L_0x00a3\n throw r8 // Catch:{ all -> 0x00ab }\n L_0x00a3:\n com.google.android.gms.dynamite.DynamiteModule$zzc r10 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ all -> 0x00ab }\n java.lang.String r1 = \"V2 version check failed\"\n r10.<init>(r1, r8, r0) // Catch:{ all -> 0x00ab }\n throw r10 // Catch:{ all -> 0x00ab }\n L_0x00ab:\n r8 = move-exception\n r0 = r9\n L_0x00ad:\n if (r0 == 0) goto L_0x00b2\n r0.close()\n L_0x00b2:\n throw r8\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zzd(android.content.Context, java.lang.String, boolean):int\");\n }", "public void run() {\n /*\n r8 = this;\n r1 = com.umeng.commonsdk.proguard.b.b;\t Catch:{ Throwable -> 0x00c9 }\n monitor-enter(r1);\t Catch:{ Throwable -> 0x00c9 }\n r0 = r8.a;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x0009:\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x000d:\n r0 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n if (r0 != 0) goto L_0x00c4;\n L_0x0013:\n r0 = 1;\n com.umeng.commonsdk.proguard.b.a = r0;\t Catch:{ all -> 0x00c6 }\n r0 = \"walle-crash\";\n r2 = 1;\n r2 = new java.lang.Object[r2];\t Catch:{ all -> 0x00c6 }\n r3 = 0;\n r4 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r4.<init>();\t Catch:{ all -> 0x00c6 }\n r5 = \"report thread is \";\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r5 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r4 = r4.toString();\t Catch:{ all -> 0x00c6 }\n r2[r3] = r4;\t Catch:{ all -> 0x00c6 }\n com.umeng.commonsdk.statistics.common.e.a(r0, r2);\t Catch:{ all -> 0x00c6 }\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n r0 = com.umeng.commonsdk.proguard.c.a(r0);\t Catch:{ all -> 0x00c6 }\n r2 = android.text.TextUtils.isEmpty(r0);\t Catch:{ all -> 0x00c6 }\n if (r2 != 0) goto L_0x00c4;\n L_0x0045:\n r2 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r3.getFilesDir();\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"stateless\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"umpx_internal\";\n r3 = r3.getBytes();\t Catch:{ all -> 0x00c6 }\n r4 = 0;\n r3 = android.util.Base64.encodeToString(r3, r4);\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r2 = r2.toString();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r4 = 10;\n com.umeng.commonsdk.stateless.f.a(r3, r2, r4);\t Catch:{ all -> 0x00c6 }\n r2 = new com.umeng.commonsdk.stateless.UMSLEnvelopeBuild;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r2.buildSLBaseHeader(r3);\t Catch:{ all -> 0x00c6 }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"content\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = \"ts\";\n r6 = java.lang.System.currentTimeMillis();\t Catch:{ JSONException -> 0x00cb }\n r4.put(r0, r6);\t Catch:{ JSONException -> 0x00cb }\n r0 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r0.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"crash\";\n r0.put(r5, r4);\t Catch:{ JSONException -> 0x00cb }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"tp\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = r8.a;\t Catch:{ JSONException -> 0x00cb }\n r5 = \"umpx_internal\";\n r0 = r2.buildSLEnvelope(r0, r3, r4, r5);\t Catch:{ JSONException -> 0x00cb }\n if (r0 == 0) goto L_0x00c4;\n L_0x00bc:\n r2 = \"exception\";\n r0 = r0.has(r2);\t Catch:{ JSONException -> 0x00cb }\n if (r0 != 0) goto L_0x00c4;\n L_0x00c4:\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n L_0x00c5:\n return;\n L_0x00c6:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n throw r0;\t Catch:{ Throwable -> 0x00c9 }\n L_0x00c9:\n r0 = move-exception;\n goto L_0x00c5;\n L_0x00cb:\n r0 = move-exception;\n goto L_0x00c4;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.umeng.commonsdk.proguard.bb.run():void\");\n }", "private static int m69982c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = \"android.os.Build$VERSION\";\t Catch:{ Exception -> 0x0018 }\n r0 = java.lang.Class.forName(r0);\t Catch:{ Exception -> 0x0018 }\n r1 = \"SDK_INT\";\t Catch:{ Exception -> 0x0018 }\n r0 = r0.getField(r1);\t Catch:{ Exception -> 0x0018 }\n r1 = 0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.get(r1);\t Catch:{ Exception -> 0x0018 }\n r0 = (java.lang.Integer) r0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.intValue();\t Catch:{ Exception -> 0x0018 }\n return r0;\n L_0x0018:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rx.internal.util.f.c():int\");\n }", "private final void zzaj() {\n /*\n r6 = this;\n java.lang.Object r0 = r6.zzsC\n monitor-enter(r0)\n com.google.android.gms.ads.identifier.AdvertisingIdClient$zza r1 = r6.zzsD // Catch:{ all -> 0x0026 }\n if (r1 == 0) goto L_0x0013\n com.google.android.gms.ads.identifier.AdvertisingIdClient$zza r1 = r6.zzsD // Catch:{ all -> 0x0026 }\n java.util.concurrent.CountDownLatch r1 = r1.zzsI // Catch:{ all -> 0x0026 }\n r1.countDown() // Catch:{ all -> 0x0026 }\n com.google.android.gms.ads.identifier.AdvertisingIdClient$zza r1 = r6.zzsD // Catch:{ InterruptedException -> 0x0013 }\n r1.join() // Catch:{ InterruptedException -> 0x0013 }\n L_0x0013:\n long r1 = r6.zzsE // Catch:{ all -> 0x0026 }\n r3 = 0\n int r5 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1))\n if (r5 <= 0) goto L_0x0024\n com.google.android.gms.ads.identifier.AdvertisingIdClient$zza r1 = new com.google.android.gms.ads.identifier.AdvertisingIdClient$zza // Catch:{ all -> 0x0026 }\n long r2 = r6.zzsE // Catch:{ all -> 0x0026 }\n r1.<init>(r6, r2) // Catch:{ all -> 0x0026 }\n r6.zzsD = r1 // Catch:{ all -> 0x0026 }\n L_0x0024:\n monitor-exit(r0) // Catch:{ all -> 0x0026 }\n return\n L_0x0026:\n r1 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0026 }\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.ads.identifier.AdvertisingIdClient.zzaj():void\");\n }", "@Override\n\tpublic void debug(Marker marker, String message, Object p0) {\n\n\t}", "private static void a(com.bytedance.crash.nativecrash.c r10) {\n /*\n java.lang.String r0 = \".info\"\n java.io.File r10 = r10.a((java.lang.String) r0)\n boolean r0 = r10.isFile()\n if (r0 == 0) goto L_0x009b\n java.util.Properties r0 = new java.util.Properties\n r0.<init>()\n r1 = 0\n java.io.FileInputStream r2 = new java.io.FileInputStream // Catch:{ Throwable -> 0x0094 }\n r2.<init>(r10) // Catch:{ Throwable -> 0x0094 }\n r0.load(r2) // Catch:{ Throwable -> 0x0093 }\n r2.close() // Catch:{ Throwable -> 0x0093 }\n java.lang.String r2 = \"alogJsonGenerated\"\n java.lang.String r2 = r0.getProperty(r2)\n if (r2 != 0) goto L_0x009b\n java.lang.String r2 = \"aloglogdir\"\n java.lang.String r2 = r0.getProperty(r2)\n if (r2 == 0) goto L_0x009b\n java.lang.String r3 = \"crash_time\"\n java.lang.String r3 = r0.getProperty(r3)\n r4 = 0\n if (r3 == 0) goto L_0x0042\n java.lang.Long r3 = java.lang.Long.valueOf(r3) // Catch:{ NumberFormatException -> 0x0041 }\n long r6 = r3.longValue() // Catch:{ NumberFormatException -> 0x0041 }\n r4 = r6\n goto L_0x0042\n L_0x0041:\n L_0x0042:\n java.lang.String r3 = \"process_name\"\n java.lang.String r3 = r0.getProperty(r3)\n if (r3 != 0) goto L_0x004c\n java.lang.String r3 = \"\"\n L_0x004c:\n com.bytedance.crash.a.e r6 = new com.bytedance.crash.a.e\n r6.<init>(r3)\n java.util.List r2 = r6.a(r2, r4)\n com.bytedance.crash.e.d r2 = com.bytedance.crash.a.a.a((java.util.List<java.lang.String>) r2)\n boolean r3 = com.bytedance.crash.a.a.a((com.bytedance.crash.e.d) r2)\n if (r3 != 0) goto L_0x0060\n return\n L_0x0060:\n android.content.Context r3 = com.bytedance.crash.j.d()\n java.io.File r4 = com.bytedance.crash.i.h.c(r3)\n java.lang.String r5 = com.bytedance.crash.i.h.a()\n java.lang.String r6 = r2.f19427e\n java.lang.String r7 = r2.f19428f\n java.lang.String r8 = r2.g\n java.util.List<java.lang.String> r9 = r2.h\n com.bytedance.crash.i.d.a((java.io.File) r4, (java.lang.String) r5, (java.lang.String) r6, (java.lang.String) r7, (java.lang.String) r8, (java.util.List<java.lang.String>) r9)\n java.io.FileOutputStream r2 = new java.io.FileOutputStream // Catch:{ Throwable -> 0x008d }\n r2.<init>(r10) // Catch:{ Throwable -> 0x008d }\n java.lang.String r10 = \"alogJsonGenerated\"\n java.lang.String r1 = \"true\"\n r0.setProperty(r10, r1) // Catch:{ Throwable -> 0x008c }\n java.lang.String r10 = \"\"\n r0.store(r2, r10) // Catch:{ Throwable -> 0x008c }\n r2.close() // Catch:{ Throwable -> 0x008c }\n return\n L_0x008c:\n r1 = r2\n L_0x008d:\n if (r1 == 0) goto L_0x009b\n r1.close() // Catch:{ Throwable -> 0x009b }\n return\n L_0x0093:\n r1 = r2\n L_0x0094:\n if (r1 == 0) goto L_0x009a\n r1.close() // Catch:{ Throwable -> 0x009a }\n return\n L_0x009a:\n return\n L_0x009b:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.crash.runtime.d.a(com.bytedance.crash.nativecrash.c):void\");\n }", "public static void main(String[] args) throws Exception {\n\n Class<?> rcc = Class.forName(\"com.flyex.testNoUse.ReflectTest\");\n\n Object rccc = rcc.newInstance();\n Object rcccc = rcc.newInstance();\n\n\n }", "static void jinfo() {\n\n }", "public static void initAllHooks(de.robv.android.xposed.callbacks.XC_LoadPackage.LoadPackageParam r13) {\n /*\n loadPrefs();\n loadPrefs();\t Catch:{ ClassNotFoundError -> 0x009c }\n r9 = sPrefs;\t Catch:{ ClassNotFoundError -> 0x009c }\n r10 = \"fingerprint_hooks\";\n r11 = \"\";\n r6 = r9.getString(r10, r11);\t Catch:{ ClassNotFoundError -> 0x009c }\n r9 = \"android.os.Build\";\n r10 = r13.classLoader;\t Catch:{ ClassNotFoundError -> 0x009c }\n r0 = de.robv.android.xposed.XposedHelpers.findClass(r9, r10);\t Catch:{ ClassNotFoundError -> 0x009c }\n r9 = \"android.os.Build.VERSION\";\n r10 = r13.classLoader;\t Catch:{ ClassNotFoundError -> 0x009c }\n r1 = de.robv.android.xposed.XposedHelpers.findClass(r9, r10);\t Catch:{ ClassNotFoundError -> 0x009c }\n r9 = gson;\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r10 = mobi.acpm.inspeckage.hooks.entities.FingerprintList.class;\n r5 = r9.fromJson(r6, r10);\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r5 = (mobi.acpm.inspeckage.hooks.entities.FingerprintList) r5;\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r9 = r5.fingerprintItems;\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r10 = r9.iterator();\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n L_0x0030:\n r9 = r10.hasNext();\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n if (r9 == 0) goto L_0x006d;\n L_0x0036:\n r4 = r10.next();\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r4 = (mobi.acpm.inspeckage.hooks.entities.FingerprintItem) r4;\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r9 = r4.enable;\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n if (r9 == 0) goto L_0x0030;\n L_0x0040:\n r9 = r4.type;\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r11 = \"BUILD\";\n r9 = r9.equals(r11);\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n if (r9 == 0) goto L_0x006e;\n L_0x004a:\n r9 = r4.name;\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r11 = r4.newValue;\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n de.robv.android.xposed.XposedHelpers.setStaticObjectField(r0, r9, r11);\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n goto L_0x0030;\n L_0x0052:\n r3 = move-exception;\n r9 = new java.lang.StringBuilder;\t Catch:{ ClassNotFoundError -> 0x009c }\n r9.<init>();\t Catch:{ ClassNotFoundError -> 0x009c }\n r10 = \"Inspeckage_DeviceData: \";\n r9 = r9.append(r10);\t Catch:{ ClassNotFoundError -> 0x009c }\n r10 = r3.getMessage();\t Catch:{ ClassNotFoundError -> 0x009c }\n r9 = r9.append(r10);\t Catch:{ ClassNotFoundError -> 0x009c }\n r9 = r9.toString();\t Catch:{ ClassNotFoundError -> 0x009c }\n de.robv.android.xposed.XposedBridge.log(r9);\t Catch:{ ClassNotFoundError -> 0x009c }\n L_0x006d:\n return;\n L_0x006e:\n r9 = r4.type;\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r11 = \"VERSION\";\n r9 = r9.equals(r11);\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n if (r9 == 0) goto L_0x00b8;\n L_0x0078:\n r9 = r4.name;\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r11 = r4.newValue;\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n de.robv.android.xposed.XposedHelpers.setStaticObjectField(r1, r9, r11);\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n goto L_0x0030;\n L_0x0080:\n r3 = move-exception;\n r9 = new java.lang.StringBuilder;\t Catch:{ ClassNotFoundError -> 0x009c }\n r9.<init>();\t Catch:{ ClassNotFoundError -> 0x009c }\n r10 = \"Inspeckage_DeviceData: \";\n r9 = r9.append(r10);\t Catch:{ ClassNotFoundError -> 0x009c }\n r10 = r3.getMessage();\t Catch:{ ClassNotFoundError -> 0x009c }\n r9 = r9.append(r10);\t Catch:{ ClassNotFoundError -> 0x009c }\n r9 = r9.toString();\t Catch:{ ClassNotFoundError -> 0x009c }\n de.robv.android.xposed.XposedBridge.log(r9);\t Catch:{ ClassNotFoundError -> 0x009c }\n goto L_0x006d;\n L_0x009c:\n r3 = move-exception;\n r9 = new java.lang.StringBuilder;\n r9.<init>();\n r10 = \"Inspeckage_DeviceData: \";\n r9 = r9.append(r10);\n r10 = r3.getMessage();\n r9 = r9.append(r10);\n r9 = r9.toString();\n de.robv.android.xposed.XposedBridge.log(r9);\n goto L_0x006d;\n L_0x00b8:\n r9 = r4.type;\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r11 = \"TelephonyManager\";\n r9 = r9.equals(r11);\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n if (r9 == 0) goto L_0x01cc;\n L_0x00c2:\n r11 = r4.name;\t Catch:{ Exception -> 0x0145 }\n r9 = -1;\n r12 = r11.hashCode();\t Catch:{ Exception -> 0x0145 }\n switch(r12) {\n case -2075953448: goto L_0x019f;\n case -1747832408: goto L_0x01b5;\n case -956724853: goto L_0x0189;\n case -619626785: goto L_0x01aa;\n case 2250952: goto L_0x0168;\n case 2251386: goto L_0x0173;\n case 474898999: goto L_0x017e;\n case 899443941: goto L_0x0194;\n case 1655618740: goto L_0x01c0;\n default: goto L_0x00cc;\n };\t Catch:{ Exception -> 0x0145 }\n L_0x00cc:\n switch(r9) {\n case 0: goto L_0x00d1;\n case 1: goto L_0x00fb;\n case 2: goto L_0x0104;\n case 3: goto L_0x010d;\n case 4: goto L_0x0116;\n case 5: goto L_0x011f;\n case 6: goto L_0x0128;\n case 7: goto L_0x0131;\n case 8: goto L_0x013a;\n default: goto L_0x00cf;\n };\t Catch:{ Exception -> 0x0145 }\n L_0x00cf:\n goto L_0x0030;\n L_0x00d1:\n r9 = \"android.telephony.TelephonyManager\";\n r11 = \"getDeviceId\";\n r12 = r4.newValue;\t Catch:{ Exception -> 0x0145 }\n HookFingerprintItem(r9, r13, r11, r12);\t Catch:{ Exception -> 0x0145 }\n r9 = \"com.android.internal.telephony.PhoneSubInfo\";\n r11 = \"getDeviceId\";\n r12 = r4.newValue;\t Catch:{ Exception -> 0x0145 }\n HookFingerprintItem(r9, r13, r11, r12);\t Catch:{ Exception -> 0x0145 }\n r9 = \"com.android.internal.telephony.PhoneProxy\";\n r11 = \"getDeviceId\";\n r12 = r4.newValue;\t Catch:{ Exception -> 0x0145 }\n HookFingerprintItem(r9, r13, r11, r12);\t Catch:{ Exception -> 0x0145 }\n r9 = android.os.Build.VERSION.SDK_INT;\t Catch:{ Exception -> 0x0145 }\n r11 = 22;\n if (r9 >= r11) goto L_0x00fb;\n L_0x00f2:\n r9 = \"com.android.internal.telephony.gsm.GSMPhone\";\n r11 = \"getDeviceId\";\n r12 = r4.newValue;\t Catch:{ Exception -> 0x0145 }\n HookFingerprintItem(r9, r13, r11, r12);\t Catch:{ Exception -> 0x0145 }\n L_0x00fb:\n r9 = \"android.telephony.TelephonyManager\";\n r11 = \"getSubscriberId\";\n r12 = r4.newValue;\t Catch:{ Exception -> 0x0145 }\n HookFingerprintItem(r9, r13, r11, r12);\t Catch:{ Exception -> 0x0145 }\n L_0x0104:\n r9 = \"android.telephony.TelephonyManager\";\n r11 = \"getLine1Number\";\n r12 = r4.newValue;\t Catch:{ Exception -> 0x0145 }\n HookFingerprintItem(r9, r13, r11, r12);\t Catch:{ Exception -> 0x0145 }\n L_0x010d:\n r9 = \"android.telephony.TelephonyManager\";\n r11 = \"getSimSerialNumber\";\n r12 = r4.newValue;\t Catch:{ Exception -> 0x0145 }\n HookFingerprintItem(r9, r13, r11, r12);\t Catch:{ Exception -> 0x0145 }\n L_0x0116:\n r9 = \"android.telephony.TelephonyManager\";\n r11 = \"getNetworkOperator\";\n r12 = r4.newValue;\t Catch:{ Exception -> 0x0145 }\n HookFingerprintItem(r9, r13, r11, r12);\t Catch:{ Exception -> 0x0145 }\n L_0x011f:\n r9 = \"android.telephony.TelephonyManager\";\n r11 = \"getNetworkOperatorName\";\n r12 = r4.newValue;\t Catch:{ Exception -> 0x0145 }\n HookFingerprintItem(r9, r13, r11, r12);\t Catch:{ Exception -> 0x0145 }\n L_0x0128:\n r9 = \"android.telephony.TelephonyManager\";\n r11 = \"getSimCountryIso\";\n r12 = r4.newValue;\t Catch:{ Exception -> 0x0145 }\n HookFingerprintItem(r9, r13, r11, r12);\t Catch:{ Exception -> 0x0145 }\n L_0x0131:\n r9 = \"android.telephony.TelephonyManager\";\n r11 = \"getNetworkCountryIso\";\n r12 = r4.newValue;\t Catch:{ Exception -> 0x0145 }\n HookFingerprintItem(r9, r13, r11, r12);\t Catch:{ Exception -> 0x0145 }\n L_0x013a:\n r9 = \"android.telephony.TelephonyManager\";\n r11 = \"getSimSerialNumber\";\n r12 = r4.newValue;\t Catch:{ Exception -> 0x0145 }\n HookFingerprintItem(r9, r13, r11, r12);\t Catch:{ Exception -> 0x0145 }\n goto L_0x0030;\n L_0x0145:\n r3 = move-exception;\n r9 = new java.lang.StringBuilder;\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r9.<init>();\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r11 = \"Inspeckage_DeviceData: \";\n r9 = r9.append(r11);\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r11 = r4.name;\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r9 = r9.append(r11);\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r11 = r3.getMessage();\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r9 = r9.append(r11);\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r9 = r9.toString();\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n de.robv.android.xposed.XposedBridge.log(r9);\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n goto L_0x0030;\n L_0x0168:\n r12 = \"IMEI\";\n r11 = r11.equals(r12);\t Catch:{ Exception -> 0x0145 }\n if (r11 == 0) goto L_0x00cc;\n L_0x0170:\n r9 = 0;\n goto L_0x00cc;\n L_0x0173:\n r12 = \"IMSI\";\n r11 = r11.equals(r12);\t Catch:{ Exception -> 0x0145 }\n if (r11 == 0) goto L_0x00cc;\n L_0x017b:\n r9 = 1;\n goto L_0x00cc;\n L_0x017e:\n r12 = \"PhoneNumber\";\n r11 = r11.equals(r12);\t Catch:{ Exception -> 0x0145 }\n if (r11 == 0) goto L_0x00cc;\n L_0x0186:\n r9 = 2;\n goto L_0x00cc;\n L_0x0189:\n r12 = \"SimSerial\";\n r11 = r11.equals(r12);\t Catch:{ Exception -> 0x0145 }\n if (r11 == 0) goto L_0x00cc;\n L_0x0191:\n r9 = 3;\n goto L_0x00cc;\n L_0x0194:\n r12 = \"CarrierCode\";\n r11 = r11.equals(r12);\t Catch:{ Exception -> 0x0145 }\n if (r11 == 0) goto L_0x00cc;\n L_0x019c:\n r9 = 4;\n goto L_0x00cc;\n L_0x019f:\n r12 = \"Carrier\";\n r11 = r11.equals(r12);\t Catch:{ Exception -> 0x0145 }\n if (r11 == 0) goto L_0x00cc;\n L_0x01a7:\n r9 = 5;\n goto L_0x00cc;\n L_0x01aa:\n r12 = \"SimCountry\";\n r11 = r11.equals(r12);\t Catch:{ Exception -> 0x0145 }\n if (r11 == 0) goto L_0x00cc;\n L_0x01b2:\n r9 = 6;\n goto L_0x00cc;\n L_0x01b5:\n r12 = \"NetworkCountry\";\n r11 = r11.equals(r12);\t Catch:{ Exception -> 0x0145 }\n if (r11 == 0) goto L_0x00cc;\n L_0x01bd:\n r9 = 7;\n goto L_0x00cc;\n L_0x01c0:\n r12 = \"SimSerialNumber\";\n r11 = r11.equals(r12);\t Catch:{ Exception -> 0x0145 }\n if (r11 == 0) goto L_0x00cc;\n L_0x01c8:\n r9 = 8;\n goto L_0x00cc;\n L_0x01cc:\n r9 = r4.type;\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r11 = \"Advertising\";\n r9 = r9.equals(r11);\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n if (r9 == 0) goto L_0x01e4;\n L_0x01d6:\n r9 = \"com.google.android.gms.ads.identifier.AdvertisingIdClient$Info\";\n r11 = \"getId\";\n r12 = r4.newValue;\t Catch:{ ClassNotFoundError -> 0x01e1, JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n HookFingerprintItem(r9, r13, r11, r12);\t Catch:{ ClassNotFoundError -> 0x01e1, JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n goto L_0x0030;\n L_0x01e1:\n r9 = move-exception;\n goto L_0x0030;\n L_0x01e4:\n r9 = r4.type;\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r11 = \"Wi-Fi\";\n r9 = r9.equals(r11);\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n if (r9 == 0) goto L_0x026a;\n L_0x01ee:\n r11 = r4.name;\t Catch:{ ClassNotFoundError -> 0x0208, JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r9 = -1;\n r12 = r11.hashCode();\t Catch:{ ClassNotFoundError -> 0x0208, JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n switch(r12) {\n case 2343: goto L_0x021f;\n case 2554747: goto L_0x0215;\n case 63507133: goto L_0x020b;\n case 803262031: goto L_0x0229;\n default: goto L_0x01f8;\n };\t Catch:{ ClassNotFoundError -> 0x0208, JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n L_0x01f8:\n switch(r9) {\n case 0: goto L_0x01fd;\n case 1: goto L_0x0233;\n case 2: goto L_0x023e;\n case 3: goto L_0x025b;\n default: goto L_0x01fb;\n };\t Catch:{ ClassNotFoundError -> 0x0208, JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n L_0x01fb:\n goto L_0x0030;\n L_0x01fd:\n r9 = \"android.net.wifi.WifiInfo\";\n r11 = \"getBSSID\";\n r12 = r4.newValue;\t Catch:{ ClassNotFoundError -> 0x0208, JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n HookFingerprintItem(r9, r13, r11, r12);\t Catch:{ ClassNotFoundError -> 0x0208, JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n goto L_0x0030;\n L_0x0208:\n r9 = move-exception;\n goto L_0x0030;\n L_0x020b:\n r12 = \"BSSID\";\n r11 = r11.equals(r12);\t Catch:{ ClassNotFoundError -> 0x0208, JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n if (r11 == 0) goto L_0x01f8;\n L_0x0213:\n r9 = 0;\n goto L_0x01f8;\n L_0x0215:\n r12 = \"SSID\";\n r11 = r11.equals(r12);\t Catch:{ ClassNotFoundError -> 0x0208, JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n if (r11 == 0) goto L_0x01f8;\n L_0x021d:\n r9 = 1;\n goto L_0x01f8;\n L_0x021f:\n r12 = \"IP\";\n r11 = r11.equals(r12);\t Catch:{ ClassNotFoundError -> 0x0208, JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n if (r11 == 0) goto L_0x01f8;\n L_0x0227:\n r9 = 2;\n goto L_0x01f8;\n L_0x0229:\n r12 = \"Android\";\n r11 = r11.equals(r12);\t Catch:{ ClassNotFoundError -> 0x0208, JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n if (r11 == 0) goto L_0x01f8;\n L_0x0231:\n r9 = 3;\n goto L_0x01f8;\n L_0x0233:\n r9 = \"android.net.wifi.WifiInfo\";\n r11 = \"getSSID\";\n r12 = r4.newValue;\t Catch:{ ClassNotFoundError -> 0x0208, JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n HookFingerprintItem(r9, r13, r11, r12);\t Catch:{ ClassNotFoundError -> 0x0208, JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n goto L_0x0030;\n L_0x023e:\n r8 = 0;\n r9 = r4.newValue;\t Catch:{ UnknownHostException -> 0x0256 }\n r9 = java.net.InetAddress.getByName(r9);\t Catch:{ UnknownHostException -> 0x0256 }\n r8 = mobi.acpm.inspeckage.util.Util.inetAddressToInt(r9);\t Catch:{ UnknownHostException -> 0x0256 }\n L_0x0249:\n r9 = \"android.net.wifi.WifiInfo\";\n r11 = \"getIpAddress\";\n r12 = java.lang.Integer.valueOf(r8);\t Catch:{ ClassNotFoundError -> 0x0208, JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n HookFingerprintItem(r9, r13, r11, r12);\t Catch:{ ClassNotFoundError -> 0x0208, JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n goto L_0x0030;\n L_0x0256:\n r2 = move-exception;\n r2.printStackTrace();\t Catch:{ ClassNotFoundError -> 0x0208, JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n goto L_0x0249;\n L_0x025b:\n r9 = r4.newValue;\t Catch:{ ClassNotFoundError -> 0x0208, JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r7 = mobi.acpm.inspeckage.util.Util.macAddressToByteArr(r9);\t Catch:{ ClassNotFoundError -> 0x0208, JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r9 = \"java.net.NetworkInterface\";\n r11 = \"getHardwareAddress\";\n HookFingerprintItem(r9, r13, r11, r7);\t Catch:{ ClassNotFoundError -> 0x0208, JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n goto L_0x0030;\n L_0x026a:\n r9 = r4.type;\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n r11 = \"Wi-Fi\";\n r9 = r9.equals(r11);\t Catch:{ JsonSyntaxException -> 0x0052, NoSuchMethodError -> 0x0080 }\n if (r9 == 0) goto L_0x0030;\n L_0x0274:\n goto L_0x0030;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: mobi.acpm.inspeckage.hooks.FingerprintHook.initAllHooks(de.robv.android.xposed.callbacks.XC_LoadPackage$LoadPackageParam):void\");\n }", "public static final void info(@org.jetbrains.annotations.NotNull org.jetbrains.anko.AnkoLogger r4, @org.jetbrains.annotations.Nullable java.lang.Object r5, @org.jetbrains.annotations.Nullable java.lang.Throwable r6) {\n /*\n r3 = \"$receiver\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r4, r3);\n r0 = 4;\n r2 = r4.getLoggerTag();\n r3 = android.util.Log.isLoggable(r2, r0);\n if (r3 == 0) goto L_0x0025;\n L_0x0011:\n if (r6 == 0) goto L_0x002a;\n L_0x0013:\n if (r5 == 0) goto L_0x0026;\n L_0x0015:\n r3 = r5.toString();\n if (r3 == 0) goto L_0x0026;\n L_0x001b:\n r6 = (java.lang.Throwable) r6;\n r3 = (java.lang.String) r3;\n r1 = r2;\n r1 = (java.lang.String) r1;\n android.util.Log.i(r1, r3, r6);\n L_0x0025:\n return;\n L_0x0026:\n r3 = \"null\";\n goto L_0x001b;\n L_0x002a:\n if (r5 == 0) goto L_0x003b;\n L_0x002c:\n r3 = r5.toString();\n if (r3 == 0) goto L_0x003b;\n L_0x0032:\n r3 = (java.lang.String) r3;\n r1 = r2;\n r1 = (java.lang.String) r1;\n android.util.Log.i(r1, r3);\n goto L_0x0025;\n L_0x003b:\n r3 = \"null\";\n goto L_0x0032;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jetbrains.anko.Logging.info(org.jetbrains.anko.AnkoLogger, java.lang.Object, java.lang.Throwable):void\");\n }", "public interface Debug {\n String getClassName();\n}", "public static final void verbose(@org.jetbrains.annotations.NotNull org.jetbrains.anko.AnkoLogger r4, @org.jetbrains.annotations.Nullable java.lang.Object r5, @org.jetbrains.annotations.Nullable java.lang.Throwable r6) {\n /*\n r3 = \"$receiver\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r4, r3);\n r0 = 2;\n r2 = r4.getLoggerTag();\n r3 = android.util.Log.isLoggable(r2, r0);\n if (r3 == 0) goto L_0x0025;\n L_0x0011:\n if (r6 == 0) goto L_0x002a;\n L_0x0013:\n if (r5 == 0) goto L_0x0026;\n L_0x0015:\n r3 = r5.toString();\n if (r3 == 0) goto L_0x0026;\n L_0x001b:\n r6 = (java.lang.Throwable) r6;\n r3 = (java.lang.String) r3;\n r1 = r2;\n r1 = (java.lang.String) r1;\n android.util.Log.v(r1, r3, r6);\n L_0x0025:\n return;\n L_0x0026:\n r3 = \"null\";\n goto L_0x001b;\n L_0x002a:\n if (r5 == 0) goto L_0x003b;\n L_0x002c:\n r3 = r5.toString();\n if (r3 == 0) goto L_0x003b;\n L_0x0032:\n r3 = (java.lang.String) r3;\n r1 = r2;\n r1 = (java.lang.String) r1;\n android.util.Log.v(r1, r3);\n goto L_0x0025;\n L_0x003b:\n r3 = \"null\";\n goto L_0x0032;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jetbrains.anko.Logging.verbose(org.jetbrains.anko.AnkoLogger, java.lang.Object, java.lang.Throwable):void\");\n }", "public final /* synthetic */ Object zzpq() {\n \n /* JADX ERROR: Method code generation error\n jadx.core.utils.exceptions.CodegenException: Error generate insn: 0x0004: INVOKE (wrap: android.content.Context\n 0x0000: IGET (r0v0 android.content.Context) = (r2v0 'this' com.google.android.gms.internal.ads.zzwo A[THIS]) com.google.android.gms.internal.ads.zzwo.val$context android.content.Context), (wrap: java.lang.String\n 0x0002: CONST_STR (r1v0 java.lang.String) = \"native_ad\") com.google.android.gms.internal.ads.zzwj.zzb(android.content.Context, java.lang.String):void type: STATIC in method: com.google.android.gms.internal.ads.zzwo.zzpq():java.lang.Object, dex: classes2.dex\n \tat jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:245)\n \tat jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:213)\n \tat jadx.core.codegen.RegionGen.makeSimpleBlock(RegionGen.java:109)\n \tat jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:55)\n \tat jadx.core.codegen.RegionGen.makeSimpleRegion(RegionGen.java:92)\n \tat jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:58)\n \tat jadx.core.codegen.MethodGen.addRegionInsns(MethodGen.java:210)\n \tat jadx.core.codegen.MethodGen.addInstructions(MethodGen.java:203)\n \tat jadx.core.codegen.ClassGen.addMethod(ClassGen.java:316)\n \tat jadx.core.codegen.ClassGen.addMethods(ClassGen.java:262)\n \tat jadx.core.codegen.ClassGen.addClassBody(ClassGen.java:225)\n \tat jadx.core.codegen.ClassGen.addClassCode(ClassGen.java:110)\n \tat jadx.core.codegen.ClassGen.makeClass(ClassGen.java:76)\n \tat jadx.core.codegen.CodeGen.wrapCodeGen(CodeGen.java:44)\n \tat jadx.core.codegen.CodeGen.generateJavaCode(CodeGen.java:32)\n \tat jadx.core.codegen.CodeGen.generate(CodeGen.java:20)\n \tat jadx.core.ProcessClass.process(ProcessClass.java:36)\n \tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:311)\n \tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n \tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:217)\n Caused by: java.lang.ArrayIndexOutOfBoundsException: arraycopy: length -2 is negative\n \tat java.base/java.util.ArrayList.shiftTailOverGap(Unknown Source)\n \tat java.base/java.util.ArrayList.removeIf(Unknown Source)\n \tat java.base/java.util.ArrayList.removeIf(Unknown Source)\n \tat jadx.core.dex.instructions.args.SSAVar.removeUse(SSAVar.java:86)\n \tat jadx.core.utils.InsnRemover.unbindArgUsage(InsnRemover.java:90)\n \tat jadx.core.dex.nodes.InsnNode.replaceArg(InsnNode.java:130)\n \tat jadx.core.codegen.InsnGen.inlineMethod(InsnGen.java:892)\n \tat jadx.core.codegen.InsnGen.makeInvoke(InsnGen.java:669)\n \tat jadx.core.codegen.InsnGen.makeInsnBody(InsnGen.java:357)\n \tat jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:239)\n \t... 19 more\n */\n /*\n this = this;\n android.content.Context r0 = r2.val$context\n java.lang.String r1 = \"native_ad\"\n com.google.android.gms.internal.ads.zzwj.zza(r0, r1)\n com.google.android.gms.internal.ads.zzzh r0 = new com.google.android.gms.internal.ads.zzzh\n r0.<init>()\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzwo.zzpq():java.lang.Object\");\n }", "public static void main(String[] args){\n DEBUG = true;\n new ParameterClassList();\n System.exit(0);\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tClass<?> class1 = null;\r\n Class<?> class2 = null;\r\n Class<?> class3 = null;\r\n // 一般采用这种形式\r\n try {\r\n\t\t\tclass1 = Class.forName(\"net.xsoftlab.baike.TestReflect\");\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n// class2 = new TestReflect().getClass();\r\n// class3 = TestReflect.class;\r\n System.out.println(\"类名称 \" + class1.getName());\r\n System.out.println(\"类名称 \" + class2.getName());\r\n System.out.println(\"类名称 \" + class3.getName());\r\n\r\n}", "public final void mo14764a() {\n /*\n r9 = this;\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r2 = r9.f10846a\n monitor-enter(r2)\n int r3 = r9.f10847b // Catch:{ all -> 0x004d }\n int r4 = com.google.android.gms.internal.ads.C2349r5.f10765b // Catch:{ all -> 0x004d }\n if (r3 != r4) goto L_0x002c\n long r5 = r9.f10848c // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzaaq<java.lang.Long> r3 = com.google.android.gms.internal.ads.zzabf.zzcwh // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzabb r7 = com.google.android.gms.internal.ads.zzwq.zzqe() // Catch:{ all -> 0x004d }\n java.lang.Object r3 = r7.zzd(r3) // Catch:{ all -> 0x004d }\n java.lang.Long r3 = (java.lang.Long) r3 // Catch:{ all -> 0x004d }\n long r7 = r3.longValue() // Catch:{ all -> 0x004d }\n long r5 = r5 + r7\n int r3 = (r5 > r0 ? 1 : (r5 == r0 ? 0 : -1))\n if (r3 > 0) goto L_0x002c\n int r0 = com.google.android.gms.internal.ads.C2349r5.f10764a // Catch:{ all -> 0x004d }\n r9.f10847b = r0 // Catch:{ all -> 0x004d }\n L_0x002c:\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r3 = r9.f10846a\n monitor-enter(r3)\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n r5 = 2\n if (r2 == r5) goto L_0x003f\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x003f:\n r2 = 3\n r9.f10847b = r2 // Catch:{ all -> 0x004a }\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n if (r2 != r4) goto L_0x0048\n r9.f10848c = r0 // Catch:{ all -> 0x004a }\n L_0x0048:\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x004a:\n r0 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n throw r0\n L_0x004d:\n r0 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.C2386s5.mo14764a():void\");\n }", "public static void main(String[] args) throws FileNotFoundException, IOException {\n\t\tIOUtils.loadMethodIODeps(\"cb\");\n\t\t\n\t\tFile clazz = new File(args[0]);\n\n\t\tfinal ClassReader cr1 = new ClassReader(new FileInputStream(clazz));\n//\t\tPrintWriter pw = new PrintWriter(new FileWriter(\"z.txt\"));\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t/*ClassWriter cw1 = new ClassWriter(ClassWriter.COMPUTE_FRAMES) {\n\t\t\t@Override\n\t\t\tprotected String getCommonSuperClass(String type1, String type2) {\n\t\t\t\ttry {\n\t\t\t\t\treturn super.getCommonSuperClass(type1, type2);\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t//\t\t\t\t\tSystem.err.println(\"err btwn \" + type1 + \" \" +type2);\n\t\t\t\t\treturn \"java/lang/Unknown\";\n\t\t\t\t}\n\t\t\t}\n\t\t};*/\n\t\t\n\t\tClassWriter cw1 = new ClassWriter(ClassWriter.COMPUTE_MAXS);\n\t\t\n\t\tcr1.accept(new ClassVisitor(Opcodes.ASM5, cw1) {\n\t\t\t@Override\n\t\t\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new JSRInlinerAdapter(super.visitMethod(access, name, desc, signature, exceptions), access, name, desc, signature, exceptions);\n\t\t\t}\n\t\t}, ClassReader.EXPAND_FRAMES);\n\t\t\n\t\tfinal ClassReader cr = new ClassReader(cw1.toByteArray());\n\t\tTraceClassVisitor tcv = new TraceClassVisitor(null,new Textifier(),pw);\n\t\t//ClassWriter tcv = new ClassWriter(cr, ClassWriter.COMPUTE_MAXS);\n\t\tClassVisitor cv = new ClassVisitor(Opcodes.ASM5, tcv) {\n\t\t\tString className;\n\n\t\t\t@Override\n\t\t\tpublic void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {\n\t\t\t\tsuper.visit(version, access, name, signature, superName, interfaces);\n\t\t\t\tthis.className = name;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tboolean isSynthetic = ClassInfoUtils.checkAccess(access, Opcodes.ACC_SYNTHETIC);\n\t\t\t\tboolean isNative = ClassInfoUtils.checkAccess(access, Opcodes.ACC_NATIVE);\n\t\t\t\tboolean isInterface = ClassInfoUtils.checkAccess(access, Opcodes.ACC_INTERFACE);\n\t\t\t\tboolean isAbstract = ClassInfoUtils.checkAccess(access, Opcodes.ACC_ABSTRACT);\n\t\t\t\t\n\t\t\t\tMethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n\t\t\t\tif (name.equals(\"toString\") && desc.equals(\"()Ljava/lang/String;\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"equals\") && desc.equals(\"(Ljava/lang/Object;)Z\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"hashCode\") && desc.equals(\"()I\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (isSynthetic || isNative || isInterface || isAbstract) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else {\n\t\t\t\t\tmv = new DependencyAnalyzer(className, \n\t\t\t\t\t\t\taccess, \n\t\t\t\t\t\t\tname, \n\t\t\t\t\t\t\tdesc, \n\t\t\t\t\t\t\tsignature, \n\t\t\t\t\t\t\texceptions, \n\t\t\t\t\t\t\tmv, \n\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\tfalse, \n\t\t\t\t\t\t\ttrue, \n\t\t\t\t\t\t\ttrue);\n\t\t\t\t\t//mv = new CalleeAnalyzer(className, access, name, desc, signature, exceptions, mv, true);\n\t\t\t\t\treturn mv;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcr.accept(cv, ClassReader.EXPAND_FRAMES);\n\t\tpw.flush();\n\t}", "public abstract String getInstrumentationClass();", "public static void main(String[] args){\n\n String clazz = Thread.currentThread().getStackTrace()[1].getClassName();\n String methodName = Thread.currentThread().getStackTrace()[1].getMethodName();\n int lineNumber = Thread.currentThread().getStackTrace()[1].getLineNumber();\n System.out.println(\"class:\"+ clazz+\",method:\"+methodName+\",lineNum:\"+lineNumber);\n\n System.out.println(LogBox.getInstance().getClassName());\n System.out.println(LogBox.getRuntimeClassName());\n System.out.println(LogBox.getRuntimeMethodName());\n System.out.println(LogBox.getRuntimeLineNumber());\n System.out.println();\n System.out.println(LogBox.getTraceInfo());\n }", "private Dex2JarProxy() {\r\n\t}", "public void mo55177a() {\n long unused = C3615m3.this.f1452k = System.currentTimeMillis();\n if (C3615m3.this.f1443b) {\n C3615m3.this.m1171c(new MDExternalError(MDExternalError.ExternalError.SDK_INITIALIZATION_IN_PROGRESS), this.f1467a);\n } else if (!C3615m3.this.f1447f.mo55921b() || C3615m3.this.f1447f.mo55918a()) {\n C3615m3.this.f1449h.updateFilePath(C3595k3.m1060d().mo55511a());\n boolean unused2 = C3615m3.this.f1443b = true;\n C3615m3.this.f1448g.mo55372a(C3615m3.this.f1442a, C3615m3.this.f1443b);\n if (C3723s4.m1629b() || C3723s4.m1628a()) {\n C3490e3.m665e(\"SDK Upgrade - delete UUID and local configuration storage\");\n C3661o5.m1405a();\n Pair<String, Boolean> a = C3729t0.m1642a();\n if (a != null) {\n AnalyticsBridge.getInstance().reportDeleteStorageEvent((String) a.first, ((Boolean) a.second).booleanValue());\n }\n }\n C3723s4.m1630c();\n C3615m3.this.m1172c(this.f1467a);\n C3580j createApiToken = ModelFactory.getInstance().createApiToken(this.f1468b);\n if (createApiToken == null) {\n boolean unused3 = C3615m3.this.f1443b = false;\n C3615m3.this.f1448g.mo55372a(C3615m3.this.f1442a, C3615m3.this.f1443b);\n C3615m3.this.m1158a((C3665p2) new C3593k1(C3586j3.C3587a.API_TOKEN_PARSE_ERROR), this.f1467a);\n C3615m3.this.clearAndDisconnect();\n } else if (!C3615m3.this.f1442a || C3604l2.m1115c().mo55538b() == null || !C3604l2.m1115c().mo55538b().mo55850a().equals(createApiToken.mo55850a())) {\n C3604l2.m1115c().mo55537a(createApiToken);\n if (!C3604l2.m1115c().mo55538b().mo55850a().equals(C3659o3.m1391f().mo55687a(C3815z4.C3816a.API_TOKEN))) {\n C3659o3.m1391f().mo55689a(C3815z4.C3816a.API_TOKEN, C3604l2.m1115c().mo55538b().mo55850a());\n C3659o3.m1391f().mo55689a(C3815z4.C3816a.ACCESS_TOKEN, (String) null);\n }\n C3490e3.m665e(\"SDK init started\");\n AnalyticsBridge.getInstance().reportInitEvent();\n C3767w0.m1812b().mo55893a();\n C3646n3.m1337m().mo55661a(60000, 3, 60000, 0, 512, 3);\n C3615m3.this.m1150a(this.f1467a);\n } else {\n boolean unused4 = C3615m3.this.f1443b = false;\n C3615m3.this.f1448g.mo55372a(C3615m3.this.f1442a, C3615m3.this.f1443b);\n C3615m3.this.m1163b(new MDExternalError(MDExternalError.ExternalError.SDK_IS_ALREADY_INITIALIZED), this.f1467a);\n }\n } else {\n C3615m3.this.m1163b(new MDExternalError(MDExternalError.ExternalError.SDK_IS_KILLED), this.f1467a);\n C3461c3.m562g().clearAndDisconnect();\n }\n }", "@Trace\n//\t@LogMethod\n\tprivate void loadNext() {\n\t\tToast.makeText(MainActivity.this, \"Test\", Toast.LENGTH_SHORT).show();\n\t}", "public static void main(String[] args) {\n\t\tLog.debug(\"Im Debugging\");\n\t\tLog.info(\"info\");\n\t\tLog.error(\"this is an error\");\n\t\tLog.fatal(\"this is fatal\");\n\t\tLog.trace(\"this is trace\");\n\t\t/////////////////////\n\t\tLog.error(\"this is an error\");\n\t\tLog.fatal(\"this is fatal\");\n\t\tLog.trace(\"this is trace\");\n\t\tgaurav\n\t}", "static void method_461() {\r\n // $FF: Couldn't be decompiled\r\n }", "void initLOD(int r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.renderscript.AllocationAdapter.initLOD(int):void, dex: in method: android.renderscript.AllocationAdapter.initLOD(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.renderscript.AllocationAdapter.initLOD(int):void\");\n }", "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }" ]
[ "0.6419777", "0.6411815", "0.6376461", "0.6349772", "0.6348849", "0.62915874", "0.62522054", "0.624652", "0.61858106", "0.6048295", "0.60231805", "0.60085315", "0.58951855", "0.5866549", "0.5852579", "0.5841266", "0.5777855", "0.5734072", "0.5730428", "0.56638086", "0.5657423", "0.56471986", "0.5635216", "0.56105465", "0.5589154", "0.55706596", "0.55409217", "0.55172324", "0.5493237", "0.5454664", "0.54492104", "0.53782684", "0.5375317", "0.5348075", "0.53480625", "0.5347718", "0.5332972", "0.5328368", "0.5297038", "0.528919", "0.5289046", "0.5274397", "0.5257814", "0.52497387", "0.5232116", "0.5207014", "0.5195674", "0.51942825", "0.5174282", "0.51701635", "0.51580334", "0.5157747", "0.5150087", "0.50995123", "0.5093475", "0.50900185", "0.508686", "0.5086343", "0.5085212", "0.5083269", "0.50815934", "0.50717115", "0.50631046", "0.50549823", "0.505309", "0.502381", "0.50156516", "0.5012047", "0.5005113", "0.5000416", "0.49973086", "0.49928257", "0.49828285", "0.49723488", "0.49710494", "0.49697092", "0.49688885", "0.49668157", "0.49666944", "0.49633586", "0.49625134", "0.49588853", "0.49576443", "0.49472824", "0.4943934", "0.49390402", "0.49369454", "0.49297202", "0.49097776", "0.4909076", "0.49086905", "0.49047762", "0.48852506", "0.4885085", "0.488298", "0.4869647", "0.48647067", "0.48619002", "0.4850017", "0.4847653", "0.48467013" ]
0.0
-1
Returns the least cost that can be incurred by your company over the k = hourlyVolume.length hours (i.e hour 0 to hour k1) that you are in charge of the pump. Given that a full service concluded the hour before you were placed in charge of the system (i.e finished one hour before hour 0), given parameters hourlyVolume, fullServiceCapacity, regularServiceCapacity and minorServiceCapacity (See handout for details) This method must be implemented using a recursive programming solution to this problem. It is expected to have a worstcase running time that is exponential in k
public static int optimalLossRecursive(int[] hourlyVolume, int[] fullServiceCapacity, int [] regularServiceCapacity, int[] minorServiceCapacity) { // IMPLEMENT THIS METHOD BY IMPLEMENTING THE PRIVATE METHOD IN THIS // CLASS THAT HAS THE SAME NAME return optimalLossRecursive(hourlyVolume, fullServiceCapacity, regularServiceCapacity, minorServiceCapacity, 0, Service.FULL_SERVICE, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int optimalLossRecursive(int[] hourlyVolume,\r\n int[] fullServiceCapacity, int [] regularServiceCapacity,\r\n int[] minorServiceCapacity, int currentHour, Service lastService, int hoursSinceService) {\r\n\r\n int k = hourlyVolume.length;\r\n if (currentHour == k) { return 0; } // we've exhausted our hours\r\n // NOTE: we can service at hour 0. so we need to make a decision first, before calling later times.\r\n\r\n // loss given no service\r\n int loss = lossFn(hourlyVolume, fullServiceCapacity, regularServiceCapacity, minorServiceCapacity,\r\n currentHour, lastService, hoursSinceService);\r\n int serviceLoss = hourlyVolume[currentHour]; // loss if we start a service\r\n\r\n int nextHr = currentHour +1;\r\n int nextNoService = loss + optimalLossRecursive(hourlyVolume, fullServiceCapacity, regularServiceCapacity,\r\n minorServiceCapacity, nextHr, lastService, hoursSinceService + 1);\r\n int nextMinService = serviceLoss + optimalLossRecursive(hourlyVolume, fullServiceCapacity, regularServiceCapacity,\r\n minorServiceCapacity, nextHr, Service.MINOR_SERVICE, 0);\r\n int nextRegService = serviceLoss + optimalLossRecursive(hourlyVolume, fullServiceCapacity, regularServiceCapacity,\r\n minorServiceCapacity, nextHr, Service.REGULAR_SERVICE, -1);\r\n int nextFullService = serviceLoss + optimalLossRecursive(hourlyVolume, fullServiceCapacity, regularServiceCapacity,\r\n minorServiceCapacity, nextHr, Service.FULL_SERVICE, -3);\r\n\r\n int[] results = {nextNoService, nextMinService, nextRegService, nextFullService};\r\n int m = Integer.MAX_VALUE;\r\n for (int i: results) {\r\n if (i < m) {\r\n m = i;\r\n }\r\n }\r\n return m;\r\n }", "private static int lossFn(int[] hourlyVolume, int[] fullServiceCapacity, int [] regularServiceCapacity,\r\n int[] minorServiceCapacity, int currentHour, Service lastService,\r\n int hoursSinceService) {\n int[] capacity;\r\n if (lastService.equals(Service.FULL_SERVICE)) {\r\n capacity = fullServiceCapacity;\r\n } else if (lastService.equals(Service.REGULAR_SERVICE)) {\r\n capacity = regularServiceCapacity;\r\n } else {\r\n capacity = minorServiceCapacity;\r\n }\r\n\r\n // consider if hoursSinceService is valid index\r\n int l = capacity.length;\r\n // calc loss so far\r\n int loss;\r\n if (hoursSinceService < 0) {\r\n // out of order due to service\r\n loss = hourlyVolume[currentHour];\r\n } else if (hoursSinceService >= l) {\r\n // out of order due to lack of service\r\n loss = hourlyVolume[currentHour];\r\n } else {\r\n loss = hourlyVolume[currentHour] - capacity[hoursSinceService];\r\n }\r\n if (loss < 0) {\r\n // we've made no loss\r\n loss = 0;\r\n }\r\n\r\n return loss;\r\n }", "@Test\r\n\tpublic void testFillChargingNonlinear_HighInitialSoC_ExhaustiveDesiredCapacity() {\n\t\tSimulation.verbosity = 0;\r\n\t\tint startTimeSeconds = 0;\r\n\t\t\r\n\t\t// Charge until soc=0.9\r\n\t\tdouble initialSoC = 0.9;\r\n\t\twhile (car.carBattery.getSoC() < initialSoC) {\r\n\t\t\tcar.addChargedCapacity(1, 32);\r\n\t\t}\r\n\t\t\r\n\t\tdouble desiredCapacity = 0.1;\r\n\t\twhile (desiredCapacity <= car.getMissingCapacity()) {\r\n\t\t\t\r\n\t\t\tcar.setCurrentPlan(new double[96]);\r\n\t\t\tschedulerNonlinear.fillChargingPlan(car, chargingStation, desiredCapacity, \r\n\t\t\t\t\tTimeslotSorter.getSortedTimeslots(null, 0, 96, TimeslotSortingCriteria.INDEX), \r\n\t\t\t\t\tstartTimeSeconds);\r\n\t\t\t\r\n\r\n\t\t\tdouble plannedCapacity = schedulerNonlinear.getPlannedCapacity(chargingStation, car, startTimeSeconds);\r\n\t\t\t//System.out.println(\"desiredCapacity=\" + desiredCapacity + \"Ah, plannedCapacity=\" + plannedCapacity);\r\n\t\t\t\r\n\t\t\tassertEquals(desiredCapacity, plannedCapacity, 1e-2);\r\n\t\t\tdesiredCapacity+=0.1;\r\n\t\t}\r\n\t\t\r\n\t}", "@Test\r\n\tpublic void testFillChargingNonlinear_EmptyCar_ExhaustiveDesiredCapacity() {\n\t\tSimulation.verbosity = 0;\r\n\t\tint startTimeSeconds = 0;\r\n\t\t\r\n\t\tdouble desiredCapacityInterval = 1; \r\n\t\t\r\n\t\tdouble desiredCapacity = desiredCapacityInterval;\r\n\t\twhile (desiredCapacity <= car.getMaxCapacity()) {\r\n\t\t\t\r\n\t\t\t//System.out.println(\"desiredCapacity=\" + desiredCapacity);\r\n\t\t\tcar.setCurrentPlan(new double[96]);\r\n\t\t\tschedulerNonlinear.fillChargingPlan(car, chargingStation, desiredCapacity, \r\n\t\t\t\t\tTimeslotSorter.getSortedTimeslots(null, 0, 96, TimeslotSortingCriteria.INDEX), \r\n\t\t\t\t\tstartTimeSeconds);\r\n\t\t\t\r\n\t\t\tassertEquals(desiredCapacity, schedulerNonlinear.getPlannedCapacity(chargingStation, car, startTimeSeconds), 1e-2);\r\n\t\t\tdesiredCapacity += desiredCapacityInterval;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "@Test\r\n\tpublic void testFillChargingPlan_Nonlinear_HighInitialSoC() {\n\t\tdouble initialSoC = 0.99;\r\n\t\tint startTimeSeconds = 0;\r\n\t\twhile (car.carBattery.getSoC() < initialSoC) {\r\n\t\t\tcar.addChargedCapacity(1, 32);\r\n\t\t}\r\n\t\tdouble desiredCapacity = car.getMissingCapacity();\r\n\t\t\r\n\t\t\r\n\t\t// Nonlinear\r\n\t\tcar.setCurrentPlan(new double[96]);\r\n\t\tschedulerNonlinear.fillChargingPlan(car, chargingStation, desiredCapacity, \r\n\t\t\t\tTimeslotSorter.getSortedTimeslots(null, 0, 95, TimeslotSortingCriteria.INDEX), \r\n\t\t\t\tstartTimeSeconds);\r\n\t\t\r\n\t\t//System.out.println(Arrays.toString(car.getCurrentPlan()));\r\n\t\t//System.out.println(schedulerNonlinear.getPlannedCapacity(chargingStation, car, startTimeSeconds));\r\n\t\t\r\n\t\tassertEquals(car.getMissingCapacity(), schedulerNonlinear.getPlannedCapacity(chargingStation, car, startTimeSeconds), 1e-8);\r\n\t\t\r\n\t}", "@Test\r\n\tpublic void testFillChargingPlan_Linear_HighInitialSoC() {\n\t\tdouble initialSoC = 0.9;\r\n\t\tint startTimeSeconds = 0;\r\n\t\t\r\n\t\twhile (car.carBattery.getSoC() < initialSoC) {\r\n\t\t\tcar.addChargedCapacity(1, 32);\r\n\t\t}\r\n\t\tdouble desiredCapacity = car.getMissingCapacity();\r\n\t\t\r\n\t\t// Linear\r\n\t\tcar.setCurrentPlan(new double[96]);\r\n\t\tschedulerLinear.fillChargingPlan(car, chargingStation, desiredCapacity, \r\n\t\t\t\tTimeslotSorter.getSortedTimeslots(null, 0, 95, TimeslotSortingCriteria.INDEX), \r\n\t\t\t\tstartTimeSeconds);\r\n\t\t\r\n\t\t\r\n\t\t//System.out.println(\"DesiredCapactiy: \" + desiredCapacity);\r\n\t\t//System.out.println(\"Planned capacity: \" + schedulerLinear.getPlannedCapacity(chargingStation, car, startTimeSeconds));\r\n\t\t//System.out.println(Arrays.toString(car.getCurrentPlan()));\r\n\t\t\r\n\r\n\t\tassertTrue(car.getCurrentPlan()[0] > 0);\r\n\t\tassertEquals(car.getMissingCapacity(), schedulerLinear.getPlannedCapacity(chargingStation, car, startTimeSeconds), 1e-6);\r\n\t}", "com.cantor.drop.aggregator.model.CFTrade.Capacity getCapacity();", "static int getMinimumCost(int k, Integer[] c) {\n\tArrays.sort(c, Collections.reverseOrder());\n\tint[] num = new int[k];\n\tint total = 0;\n\tfor (int ind = 0; ind < c.length; ind++) {\n\t int v = ind % k;\n\t total += (num[v]++ + 1) * c[ind];\n\t}\n\n\treturn total;\n }", "public float getCapacity();", "public float getCost(Date hour) {\r\n Iterator<Date> it = schedule.iterator();\r\n int i = 0;\r\n while (it.hasNext()) {\r\n if (it.next().after(hour)) {\r\n return cost.get(i);\r\n }\r\n i++;\r\n }\r\n return defaultCost;\r\n }", "private Long determineCapacity(Volume volume, Volume.PersonalityTypes type, Long capacityToUseInCalculation) {\n long capacity = 0L;\n\n StorageSystem storageSystem = _dbClient.queryObject(StorageSystem.class, volume.getStorageController());\n\n if (type == Volume.PersonalityTypes.SOURCE) {\n capacity = capacityCalculatorFactory.getCapacityCalculator(storageSystem.getSystemType()).calculateAllocatedCapacity(\n capacityToUseInCalculation);\n } else if (type == Volume.PersonalityTypes.TARGET) {\n capacity = capacityCalculatorFactory.getCapacityCalculator(storageSystem.getSystemType()).calculateAllocatedCapacity(\n capacityToUseInCalculation + 5242880L);\n }\n\n return capacity;\n }", "public double calculatedConsuption(){\nint tressToSow=0;\n\nif (getKiloWatts() >=1 && getKiloWatts() <= 1000){\n\ttressToSow = 8;\n}\nelse if (getKiloWatts() >=1001 && getKiloWatts ()<=3000){\n\ttressToSow = 35;\n}\nelse if (getKiloWatts() > 3000){\n\ttressToSow=500;\n}\nreturn tressToSow;\n}", "public int maxProfit(int k, int[] prices) {\n if(prices.length==0) return 0;\n if(k>(prices.length>>>1)){\n int T0=0;\n int T1=-(int)1e8;\n for(int val:prices){\n T0=Math.max(T0,T1 + val);\n T1=Math.max(T1,T0 - val);\n }\n return T0;\n }\n int Ti0[]=new int[k+1];\n int Ti1[]=new int[k+1];\n Arrays.fill(Ti1,(int)-1e8);\n for(int val:prices){\n for(int K=k;K>0;K--){\n Ti0[K]=Math.max(Ti0[K],Ti1[K]+val);\n Ti1[K]=Math.max(Ti1[K],Ti0[K-1] - val);\n }\n }\n return Ti0[k];\n }", "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 }", "private Node lowestCostThrough(List<Node> openSet, Map<Node, Double> costThrough){\n Node lowest = openSet.get(0);\n\n for(Node n: openSet){\n if(costThrough.get(n) < costThrough.get(lowest)){\n lowest = n;\n }\n }\n return lowest;\n }", "public void findMinimumChocolateLeft() {\n double k;\n int ceiled_k;\n int floored_k;\n int sumWith_ceiled_k = 0;\n int sumWith_floored_k = 0;\n int minChocolateWith_floored_k = 0;\n int minChocolateWith_ceiled_k = 0;\n \n //this equation finds the value of k which is the \n k = ((2 * this.noOfChocolate / this.noOfStudents) + 1 - this.noOfStudents) / 2.0;\n \n \n if (k < 1.0) //if k is less than 1 then it is not possible to distribute among all students\n {\n setMinimumChocolateLeft(this.noOfChocolate);\n }\n else \n {\n //get the ceiling value of k \n ceiled_k = (int) Math.ceil(k);\n //get the floor value of k \n floored_k = (int) Math.floor(k);\n\n //Get sum of consicutively distributed chocolate using both floor value and ceiling value of k\n for (int i = 0; i < 3; i++) \n {\n sumWith_ceiled_k = sumWith_ceiled_k + ceiled_k + i;\n sumWith_floored_k = sumWith_floored_k + floored_k + i;\n }\n\n //finding out minimum no. of chocolate left using both floor value and ceiling value of k \n minChocolateWith_ceiled_k = this.noOfChocolate - sumWith_ceiled_k;\n minChocolateWith_floored_k = this.noOfChocolate - sumWith_floored_k;\n\n /*\n if minimum number of chocolate left using floor or ceiling\n is negative then we will consider vise-a-versa.\n \n if given condition is wrong then we will find minimum\n value from minimum chocolate using floor value and\n minimum chocolate using ceil value\n \n */\n if (minChocolateWith_ceiled_k < 0) {\n setMinimumChocolateLeft(minChocolateWith_floored_k);\n } else if (minChocolateWith_floored_k < 0) {\n setMinimumChocolateLeft(minChocolateWith_ceiled_k);\n } else {\n setMinimumChocolateLeft(Math.min(minChocolateWith_ceiled_k, minChocolateWith_floored_k));\n }\n }\n\n //print the final minimum no. of chocolate\n System.out.println(minimumChocolateLeft);\n\n }", "BigDecimal getLowPrice();", "void leastCostPaths() {\t\n\t\tfor( int k = 0; k < N; k++ )\n\t\t\tfor( int i = 0; i < N; i++ )\n\t\t\t\tif( defined[i][k] )\n\t\t\t\t\tfor( int j = 0; j < N; j++ )\n\t\t\t\t\t\tif( defined[k][j]\n\t\t\t\t\t\t\t\t&& (!defined[i][j] || c[i][j] > c[i][k]+c[k][j]) ) {\t\n\t\t\t\t\t\t\tpath[i][j] = path[i][k];\n\t\t\t\t\t\t\tc[i][j] = c[i][k]+c[k][j];\n\t\t\t\t\t\t\tdefined[i][j] = true;\n\t\t\t\t\t\t\tif( i == j && c[i][j] < 0 ) return; // stop on negative cycle\n\t\t\t\t\t\t}\n\t}", "public int findCheapestPrice(int n, int[][] flights, int src, int dst, int K) {\n int[][] g = new int[n][n];\n \n for(int[] f : flights){\n int start = f[0];\n int end = f[1];\n int price = f[2];\n g[start][end] = price;\n }\n \n PriorityQueue<int[]> pq = new PriorityQueue<>((a,b)->a[0]-b[0]);\n pq.offer(new int[]{0,src,K+1});\n while(!pq.isEmpty()){\n int[] curr = pq.poll();\n int currPrice = curr[0];\n int currPoint = curr[1];\n int stepsRemain = curr[2];\n \n // if this point is destination, finish\n if(currPoint == dst) return currPrice;\n \n if(stepsRemain >0){\n // Add all reachable neighbors\n for(int i=0; i<n; i++){\n if(g[currPoint][i] != 0){\n int nextPrice = g[currPoint][i];\n pq.offer(new int[]{currPrice+nextPrice, i, stepsRemain-1});\n }\n } \n } \n }\n return -1;\n }", "int knapsack01(int[] v, int[] w, int capacity) {\n return knapsack01(v, w, capacity, 0, 0);\n }", "OrderCapacity getOrderCapacity();", "public float getCost(int weight, int volume) {\r\n\t\t//System.out.println(\"getCost method in Journey called. should have been a delivery.\");\r\n\t\ttimesUsed++;\r\n\t\tfloat total = 0;\r\n\t\tfor(Path p: usedPaths){\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttotal += p.calcCost(weight, volume);\r\n\t\t\t\t} catch (OverweightException 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} catch (ExceededVolumeException 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}\r\n\t\ttotalCost += total;\r\n\t\treturn total;\r\n\t}", "static BigDecimal PriceHike(String l,String h, String r) {\n\n\t\tLong lowerRangeId=Long.parseLong(l);\n\t\tLong higherRangeId=Long.parseLong(h);\n\t\tBigDecimal hike=new BigDecimal(0);\n\n\t\tSortedMap<Long, dxm116130Product> range = new TreeMap<Long, dxm116130Product>();\n\t\trange=productListOnID.subMap(lowerRangeId,true,higherRangeId,true);\n\n\t\tSet<Long> keys = range.keySet();\n\n\t\t//System.out.println(\"Found PriceHike keyset: \"+keys);\n\t\tfor(Long key: keys){\n\t\t\t\n\t\t\t//System.out.println(\"Found PriceHike key: \"+key);\n\t\t\tdxm116130Product currProduct=productListOnID.get(key);\n\t\t\thike=hike.add(currProduct.hikePrice(r));\n\t\t\tInsert(currProduct.getProductId(),currProduct.getProductPrice(),currProduct.getProductNames());\n\t\t}\n\n\n\t\treturn hike;\n\n\t}", "static double k0(final double x) {\n if (x <= 0) {\n return Double.NaN;\n }\n if (x <= 2) {\n return chebyshev(x * x - 2, KA) - Math.log(0.5 * x) * Bessel.i0(x);\n }\n return Math.exp(-x) * chebyshev(8 / x - 2, KB) / Math.sqrt(x);\n }", "@Test(timeout = 5000)\n public void dynamicTest4() {\n int[] hourlyVolume = generateRandomHourlyVolume(1000, 100, \"seed\".hashCode());\n int[] fullServiceCapacity = {100,90,80,70,60,50,40,30,20,10};\n int[] regularServiceCapacity = {70,50,40,30,20,10};\n int[] minorServiceCapacity = {50,40,20,10};\n int expectedResult = 16874;\n Assert.assertEquals(expectedResult, Dynamic.optimalLossDynamic(hourlyVolume, fullServiceCapacity, regularServiceCapacity, minorServiceCapacity));\n }", "private static int findKthSmallestElementUsingQuickSelect(int[] a, int low, int high, int k) {\n\n //CHECKS\n //In your original method check if array is null or empty\n //k is from 1 to n\n\n //If k is smaller than number of elements in array\n if (k > 0 && k <= a.length) {\n\n int pi = partition(a, low, high);\n\n if (pi == k - 1) {\n return a[pi];\n }\n if (pi > k - 1) {\n return findKthSmallestElementUsingQuickSelect(a, low, pi - 1, k);\n } else {\n return findKthSmallestElementUsingQuickSelect(a, pi + 1, high, k);\n }\n }\n return Integer.MAX_VALUE;\n }", "public int energyRequired(Time time) {\n\n Random r = new Random();\n Time universeTime = universe.getUniverseTime();\n\n /*\n If we are basing our calculation on the current Universe time, the\n appliance will be on thanks to the TimedEvent handler so we do not need\n to check for matching ApplianceTimedEvents, we can just check isOn\n */\n if (time.equals(universeTime)) {\n return energy = isOn ? minUsage + r.nextInt(maxUsage - minUsage) : 0;\n \n }\n else { // THIS IS A FORECAST\n\n //Check usage hours for a TimedEvent where the appliance is used at time\n //usage hours are ordered in acsending order of start times\n for (Iterator<ApplianceTimedEvent> i = usageHours.iterator(); i.hasNext();) {\n ApplianceTimedEvent event = i.next();\n\n //start time comes after time. Therefore for all succeeding TimedEvents\n //the start time would also come after time (ascending order)\n //energy remains at zero and breaks out of iteration\n if (event.getStartTime().compare(time) > 0) \n break;\n \n\n //time occurs within a TimedEvent\n //energy is updated to value and breaks out of iteration\n if (event.containsTime(time)) {\n return energy = minUsage + r.nextInt(maxUsage - minUsage);\n \n }\n\n }\n return energy = 0; /*EXIT AT THIS POINT HAVING NOT FOUND ANY ENERGY USAGE AT THIS TIME FOR THIS APPLIANCE*/\n\n }\n }", "public Computer findMostExpensiveComputerV1( ) { \n\t\tComputer highest= computers.get(0);\n\t\tfor (int index=1; index<computers.size();index++){\n\t\t\tif (highest.getPrice()<computers.get(index).getPrice()) {\n\t\t\t\thighest= computers.get(index);\n\n\t\t\t}\n\t\t}\n\t\treturn highest;\n\t}", "public double calcEnergyToBeBought(double neededEnergy) {\n double energyLossIncluded = neededEnergy/cableEnergyLoss; //Here the amount of energy lost is calculated, see cable.getCost() and http://large.stanford.edu/courses/2010/ph240/harting1/\n return energyOffer.getEnergy() <= energyLossIncluded ? (energyOffer.getEnergy()) : energyLossIncluded;\n }", "ResourceSkuCapacity capacity();", "public Money priceHike(long l, long h, double rate) {\n double net = 0;\n Set<Map.Entry<Long, MDSEntry>> treeMapEntrySet = treeMap.entrySet();\n for (Map.Entry<Long, MDSEntry> entry : treeMapEntrySet) {\n Long key = entry.getKey();\n MDSEntry obj = entry.getValue();\n if (key >= l && key <= h) {\n long price = obj.getPrice().totalCents();\n long updatedPrice = price + (long)(price * rate / 100.0);\n obj.setPrice(new Money(updatedPrice / 100, (int)(updatedPrice % 100)));\n treeMap.put(obj.id, obj);\n net += (updatedPrice - price);\n }\n\n }\n return new Money((long)(net/100.0), (int) (net%100));\n}", "public void findHighestPowerUnitAnySize() {\r\n\t\ttimer.startAlgorithm(\"ChronalCharger.findHighestPowerUnitAnySize()\");\r\n\t\tfor (int i=1; i<=300; i++) {\r\n//\t\t\tcurrentGrid = new ShrinkingPowerGrid(i, 300);\r\n\t\t\tfindHighestPowerUnit(i);\r\n//\t\t\tpreviousGrids.add(currentGrid);\r\n\t\t}\r\n\t\ttimer.stopAlgorithm();\r\n\t}", "@Override\n\tpublic double calcConsumedEnergy() {\n\t\treturn (getBasicEnergyCost() * 4);\n\t}", "private static Company best_price(long input) {\n\t\tif(all_prices.isEmpty()) { //if no company was successfully parsed/empty file\n\t\t\tCompany temp = new Company(\"Empty\",new TreeMap<Long,Double>(),0,Long.MAX_VALUE,Double.MAX_VALUE);\n\t\t\treturn temp;\n\t\t}\n\t\t\n\t\tfor(int i=0; i<all_prices.size(); i++) { //for each operator\n\t\t\tCompany operatr = all_prices.elementAt(i);\n\t\t\tMap<Long,Double> operator_price_map = operatr.getPrices(); //take its ext to price map\n\t\t\t//find which extension is the longest for a certain operator.\n\t\t\t//in so doing we are able cut the input number's digit search\n\t\t\t//to the longest extension (in terms of number of digits) available \n\t\t\tint longest_extension_digits = operatr.getMost_digits_ext(); \n\t\t\tString str_input = String.valueOf(input);\n\t\t\tfor(int j=longest_extension_digits; j>0; j--) { //going from longest possible substring of input num for an operator\n\t\t\t\tString input_digit_substring = str_input.substring(0, j);\n\t\t\t\tlong digit_prefix = Long.valueOf(input_digit_substring);\n\t\t\t\tif (operator_price_map.containsKey(digit_prefix)) { //if the operator has a match with the number, we terminate search because the longest possible extension has been chosen\n\t\t\t\t\toperatr.setLongest_matching_extension(digit_prefix);\n\t\t\t\t\toperatr.setMatching_price(operator_price_map.get(digit_prefix));\n\t\t\t\t\tbreak; //break because we want to prioritize the longest extension that matches\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tCollections.sort(all_prices, new CompanyComparator());\n\t\t\n\t\tCompany result = all_prices.elementAt(0);\n\t\treturn result;\n\t}", "public Order fulfilOrderWithMinimalCostForVolumeAndType(Integer volume, ContentType type)\n\t\t\tthrows SomethingWentWrongException {\n\n\t\tList<Content> contentsLongList = null;\n\t\tif (contentMap.size() == 0)\n\t\t\tthrow new SomethingWentWrongException(\"Empty Location\");\n\n\t\tcontentsLongList = sortContentMapByContentTypeAndPrice(contentMap);\n\t\tInteger enoughVolume = 0;\n\t\tfor (Content content : contentsLongList)\n\t\t\tif (content.getType().equals(type))\n\t\t\t\tenoughVolume += content.getVolume();\n\n\t\tif (enoughVolume < volume)\n\t\t\tthrow new SomethingWentWrongException(\"Insufficient volume of Content\");\n\n\t\tOrder customerOrder = retrieveContentOrder(contentsLongList, volume, type);\n\n\t\treturn customerOrder;\n\t}", "public int getKth(int lo, int hi, int k) {\n HashMap<Integer, Integer> map = new HashMap<>();\n map.put(1, 0);\n int[][] powerValues = new int[hi - lo + 1][2];\n for (int i = lo; i <= hi; i++) {\n powerValues[i - lo][1] = getPowerValue(i, map);\n powerValues[i - lo][0] = i;\n }\n // for (int i = 0; i < powerValues.length; i++) {\n // System.out.print(Arrays.toString(powerValues[i]) + \" \");\n // }\n Arrays.sort(powerValues, new Comparator<int[]>() {\n @Override\n public int compare(int[] o1, int[] o2) {\n return o1[1] - o2[1];\n }\n });\n // System.out.println();\n // for (int i = 0; i < powerValues.length; i++) {\n // System.out.print(Arrays.toString(powerValues[i]) + \" \");\n // }\n return powerValues[k - 1][0];\n }", "public static int consumedPower(){\n int consumedPower = 0;\n for (ElectricalHomeDevice device : allTrunedOnDevices){\n consumedPower += device.getDevicePower();\n }\n return consumedPower;\n }", "public static void chargeHire(int minutes) {\n int time = minutes;\n double cost;\n\n if(time >= 0 && time <30) {\n cost = 0;\n }\n else {\n if(time >30 && time < 60) {\n cost = 0.5;\n }\n else {\n if(time > 60 && time < 120) {\n cost = 1.50;\n }\n else{\n if(time > 120 && time <180) {\n cost = 6.50;\n }\n else {\n\n int numOfHalfHours = (time/30);\n int b = (numOfHalfHours - 5);\n int c = (b*2);\n cost = (6.50 + c);\n }\n }\n }\n }\n System.out.println(\"€\" +cost);\n if(cost <= accountBalance) {\n accountBalance = (accountBalance - cost);\n// System.out.println(\"Bike rent successful! you have been charged\" + cost);\n Receipt.printSlip(cost);\n }\n else {\n System.out.println(\"There were insuficient funds in your account.\" + \"\\n\" +\n \"We will now charge the credit card you have provided us instead.\");\n }\n }", "public double get_overcharge_cost() {\n\t\treturn overchargepermin;\n\t}", "@Test\r\n\tpublic void testGetPlannedCapacity_Nonlinear() {\n\t\tassertEquals(car.sumUsedPhases*900.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 0, 0, 900), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 300, 300, 900), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 0, 0, 600), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*300.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 300, 300, 600), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*1200.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 300, 300, 1500), 1e-8);\r\n\t\t\r\n\t}", "Integer backlogCapacity();", "private double[] calculateEstimatedSpaceHeatPumpDemand(double[] localSetPointArray)\n\t{\n\t\tdouble[] energyProfile = new double[this.ticksPerDay];\n\t\tdouble[] deltaT = ArrayUtils.add(localSetPointArray, ArrayUtils.negate(this.priorDayExternalTempProfile));\n\t\t// int availableHeatRecoveryTicks = ticksPerDay;\n\t\tdouble maxRecoveryPerTick = 0.5d * Consts.DOMESTIC_COP_DEGRADATION_FOR_TEMP_INCREASE; // i.e.\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// can't\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recover\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// more\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// than\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// 50%\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// of\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// heat\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// loss\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// at\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// 90%\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// COP.\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// TODO:\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// Need\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// to\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// code\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// this\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// better\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// later\n\t\t// double internalTemp = this.setPointProfile[0];\n\n\t\tfor (int i = 0; i < this.ticksPerDay; i++)\n\t\t{\n\t\t\t// --availableHeatRecoveryTicks;\n\t\t\t// currentTempProfile[i] = internalTemp;\n\t\t\tdouble tempChange;\n\n\t\t\tif (i > 0)\n\t\t\t{\n\t\t\t\ttempChange = localSetPointArray[i] - localSetPointArray[i - 1];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttempChange = localSetPointArray[i] - this.setPointProfile[0];\n\t\t\t}\n\n\t\t\t// double setPointMaintenanceEnergy = deltaT[i] *\n\t\t\t// ((owner.buildingHeatLossRate /\n\t\t\t// Consts.KWH_TO_JOULE_CONVERSION_FACTOR)) * (Consts.SECONDS_PER_DAY\n\t\t\t// / ticksPerDay);\n\t\t\tdouble setPointMaintenanceEnergy = (this.setPointProfile[i] - this.priorDayExternalTempProfile[i])\n\t\t\t\t\t* ((this.owner.getBuildingHeatLossRate() / Consts.KWH_TO_JOULE_CONVERSION_FACTOR))\n\t\t\t\t\t* (Consts.SECONDS_PER_DAY / this.ticksPerDay);\n\n\t\t\t// tempChangePower can be -ve if the temperature is falling. If\n\t\t\t// tempChangePower magnitude\n\t\t\t// is greater than or equal to setPointMaintenance, the heat pump is\n\t\t\t// off.\n\t\t\tdouble tempChangeEnergy = tempChange * this.owner.getBuildingThermalMass();\n\n\t\t\t// Although the temperature profiles supplied should be such that\n\t\t\t// the heat\n\t\t\t// can always be recovered within a reasonable cap - we could put a\n\t\t\t// double\n\t\t\t// check in here.\n\t\t\t/*\n\t\t\t * if (tempChangeEnergy > maxRecoveryPerTick *\n\t\t\t * ((owner.buildingHeatLossRate /\n\t\t\t * Consts.KWH_TO_JOULE_CONVERSION_FACTOR) * (Consts.SECONDS_PER_DAY\n\t\t\t * / ticksPerDay) * ArrayUtils.max(deltaT))) { //System.err.println(\n\t\t\t * \"WattboxController: Should never get here - asked to get demand for a profile that can't recover temp\"\n\t\t\t * ); return null; }\n\t\t\t */\n\n\t\t\t// Add in the energy to maintain the new temperature, otherwise it\n\t\t\t// can be cheaper\n\t\t\t// To let the temperature fall and re-heat under flat price and\n\t\t\t// external temperature\n\t\t\t// conditions. TODO: Is this a good physical analogue?\n\t\t\t// setPointMaintenanceEnergy += tempChange *\n\t\t\t// ((owner.buildingHeatLossRate /\n\t\t\t// Consts.KWH_TO_JOULE_CONVERSION_FACTOR)) * (Consts.SECONDS_PER_DAY\n\t\t\t// / ticksPerDay);\n\n\t\t\tdouble heatPumpEnergyNeeded = Math.max(0, (setPointMaintenanceEnergy + tempChangeEnergy) / Consts.DOMESTIC_HEAT_PUMP_SPACE_COP);\n\t\t\t// double heatPumpEnergyNeeded = (setPointMaintenanceEnergy /\n\t\t\t// Consts.DOMESTIC_HEAT_PUMP_SPACE_COP) + (tempChangeEnergy *\n\t\t\t// (Consts.DOMESTIC_HEAT_PUMP_SPACE_COP *\n\t\t\t// Consts.DOMESTIC_COP_DEGRADATION_FOR_TEMP_INCREASE));\n\n\t\t\t// zero the energy if heat pump would be off\n\t\t\tif (deltaT[i] < Consts.HEAT_PUMP_THRESHOLD_TEMP_DIFF)\n\t\t\t{\n\t\t\t\t// heat pump control algorithm would switch off pump\n\t\t\t\theatPumpEnergyNeeded = 0;\n\t\t\t}\n\n\t\t\tif (heatPumpEnergyNeeded > (this.owner.ratedPowerHeatPump * Consts.DOMESTIC_HEAT_PUMP_SPACE_COP * 24 / this.ticksPerDay))\n\t\t\t{\n\t\t\t\t// This profiel produces a value that exceeds the total capacity\n\t\t\t\t// of the\n\t\t\t\t// heat pump and is therefore unachievable.\n\t\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t\t{\n\t\t\t\t\tthis.mainContext.logger.trace(\"Nulling the demand profile for energy needed \" + heatPumpEnergyNeeded);\n\t\t\t\t}\n\t\t\t\t// Can't satisfy this demand for this set point profile, return\n\t\t\t\t// null\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tenergyProfile[i] = heatPumpEnergyNeeded;\n\t\t}\n\n\t\treturn energyProfile;\n\n\t}", "public static void peakHour( int hour, float price) {\n\t\t if(hour>=17&& hour<20) {\r\n\t\t\tprice += price * 0.0125; //Calculating Price in PeakHour\r\n\t\t\tSystem.out.println(\"You are Traveling in a PeakHour\");\r\n\t\t\tSystem.out.println(\"The Price at PeakHour is, Rs:\" + price);}\r\n\t\t\r\n\t\t\r\n\r\n}", "public int maxProfit(int k, int[] prices) {\n int n = prices.length;\n // validate input 1\n if (k <= 0 || n == 0) return 0;\n\n // validate input 2 : if k is large enough, the question will be the same as question II.\n if (k >= n / 2) {\n int result = 0;\n for (int i = 1; i < n; ++i) {\n if (prices[i] - prices[i - 1] > 0) {\n result += prices[i] - prices[i - 1];\n }\n }\n return result;\n }\n int[][][] dp = new int[prices.length + 1][k + 1][2];\n for (int i = 0; i < dp.length; i++) {\n dp[i][0][1] = Integer.MIN_VALUE;\n }\n for (int i = 0; i < dp[0].length; i++) {\n dp[0][i][1] = Integer.MIN_VALUE;\n }\n for (int i = 1; i < dp.length; i++) {\n for (int j = 1; j < dp[0].length; j++) {\n dp[i][j][0] = Math.max(dp[i - 1][j][1] + prices[i - 1], dp[i - 1][j][0]);\n dp[i][j][1] = Math.max(dp[i - 1][j - 1][0] - prices[i - 1], dp[i - 1][j][1]);\n }\n }\n return dp[dp.length - 1][k][0];\n }", "@Test\r\n\tpublic void testGetPlannedCapacity_Linear_Interval() {\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerLinear.getPlannedCapacityNonlinear(chargingStation, car, 0, 300, 900), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*150.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerLinear.getPlannedCapacityNonlinear(chargingStation, car, 0, 450, 600), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerLinear.getPlannedCapacityNonlinear(chargingStation, car, 300, 900, 1500), 1e-8);\r\n\t\t\t\t\r\n\t\t\r\n\t}", "@Test(timeout = 500)\n public void dynamicTest3b() {\n int[] hourlyVolume = {80, 80, 70, 80, 50, 42, 39, 69, 40, 10};\n int[] fullServiceCapacity = {110,100,80,70,50,50,50,30,20};\n int[] regularServiceCapacity = {80,80,60,30,20,20,10,10};\n int[] minorServiceCapacity = {80,60};\n int expectedResult = 59;\n Assert.assertEquals(expectedResult, Dynamic.optimalLossDynamic(hourlyVolume, fullServiceCapacity, regularServiceCapacity, minorServiceCapacity));\n }", "public double evalOverCapacity(int[] assig)\r\n {\r\n BOFLP BFLProblem = BOFLP.instance();\r\n\r\n int nClients = BFLProblem.nClients;\r\n int nDepots = BFLProblem.nDepots;\r\n\r\n double overCapacity;\r\n\r\n int[] requiredCapacity;\r\n requiredCapacity = new int[nDepots + 1];\r\n\r\n for (int i = 1; i <= nClients; i++)\r\n {\r\n int depot = assig[i - 1];\r\n requiredCapacity[depot] = requiredCapacity[depot] + BFLProblem.demand[i];\r\n }\r\n overCapacity = 0;\r\n for (int j = 1; j <= nDepots; j++)\r\n {\r\n overCapacity = overCapacity + Math.max(0, requiredCapacity[j] - BFLProblem.capacity[j]);\r\n }\r\n overCapacity = overCapacity / BFLProblem.sumCapacity;\r\n return overCapacity;\r\n }", "java.math.BigDecimal getSingleBetMinimum();", "public int getCost() { return hki.getBound(); }", "private void calculatePrice() {\r\n int price = 0;\r\n int day = show.getDateTime().getDayOfMonth();\r\n int month = show.getDateTime().getMonthValue();\r\n \r\n for (int i = 0; i < seats.size(); i++) {\r\n String option = seats.get(i);\r\n \r\n if (Arrays.stream(sectionNames).parallel().anyMatch(option::contains)) {\r\n String section = option.replaceAll(\"\\\\d\",\"\");\r\n int number = Integer.parseInt(option.replaceAll(\"\\\\D+\",\"\"));\r\n \r\n if (section.equals(\"m\")) {\r\n if (number <= 100) {\r\n price += mainFloorPrice;\r\n } else {\r\n price += mainFloorPremium;\r\n }\r\n } else if (section.equals(\"sb\")) {\r\n if (number <= 25) {\r\n price += southBalconyPrice;\r\n } else {\r\n price += southBalconyPremium;\r\n }\r\n } else if (section.equals(\"wb\")) {\r\n price += westBalconyPrice;\r\n } else if (section.equals(\"eb\")) {\r\n price += eastBalconyPrice;\r\n }\r\n }\r\n }\r\n \r\n if (seats.size() >= 5 && seats.size() <= 10 && !(month == 12 && (day == 26 || day == 27))) {\r\n price -= (2 * seats.size());\r\n }\r\n \r\n if (seats.size() >= 11 && seats.size() <= 20 && !(month == 12 && (day == 26 || day == 27))) {\r\n price -= (5 * seats.size());\r\n }\r\n \r\n if (month == 12 && (day == 26 || day == 27)) {\r\n price = seats.size() * 20;\r\n }\r\n \r\n totalPrice = price;\r\n }", "static double ExponentialDistributionChance(Rocket rocket, double riskAtFullCapacity, double lambda) {\n return riskAtFullCapacity / 100.0 * (1 - Math.exp(-lambda * weightRatio(rocket)));\n }", "private int costToSupport(PlanGraphLiteral unsupportedPrecondition, int currentLevel) {\n\t\t\n\t\tint cost = Integer.MAX_VALUE;\n\t\t\n\t\t/* cost = 0 if part of initial conditions */\n\t\tif (currentLevel == 0 && unsupportedPrecondition.getInitialLevel() == 0)\n\t\t\tcost = 0;\n\t\telse if(isSupported(unsupportedPrecondition, currentLevel))\n\t\t\tcost = 0;\n\t\telse {\n\t\t\t/* cost of supporting this precondition is the cost of the cheapest step that supports it */\n\t\t\tfor (PlanGraphStep step : unsupportedPrecondition.getParentNodes()) {\n\t\t\t\tcost = Math.min(cost, costToSupport(step, currentLevel));\n\t\t\t}\n\t\t}\n\t\n\t\t\treturn cost;\n\t}", "@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}", "private int h(K k) {\r\n return (k.hashCode() + capacity()) % capacity();\r\n }", "public double knapsack(double[] valuePass, double[] weightPass, double capacity) {\n\n if (valuePass.length == 0) { return 0; }\n value = valuePass;\n weight = weightPass;\n double[] subsets = new double[value.length];\n double takenValue = 0;\n double takenWeight = 0;\n double selection = 0;\n\n // look at each subset of the entire set\n for (int i = 0; i < Math.pow(2, value.length); i++) {\n\n /* INVARIANT: the value/weight values are greater than 0 */\n if (KnapsackMain.debug)\n assert assertionValueWeightGreaterThanZero(takenValue, takenWeight);\n\n // variables for the inner loop\n int itemToTake = value.length - 1;\n double temporaryValue = 0;\n double temporaryWeight = 0;\n\n // wh\n while (subsets[itemToTake] != 0 && itemToTake > 0) {\n subsets[itemToTake] = 0;\n itemToTake = itemToTake - 1;\n }\n\n subsets[itemToTake] = 1;\n\n for (int j = 0; j < value.length; j++) {\n\n // if the item is marked in the subset, then add it to the takenValue\n if (subsets[j] == 1 ) {\n temporaryValue = temporaryValue + value[j];\n temporaryWeight = temporaryWeight + weight[j];\n }\n }\n\n if (temporaryValue > takenValue && temporaryWeight <= capacity) {\n takenValue = temporaryValue;\n takenWeight = temporaryWeight;\n }\n }\n return takenValue;\n }", "private static int min_coins(int[] d, int k) {\n\t\t\n\t\treturn -1;\n\t}", "public abstract double costPerMin (CallZone zone);", "private boolean checkGreedyEnergy() {\r\n return myTotal.get(2) < 10 || (myTotal.get(2) < 13 && myTotal.get(2) <= enTotal.get(2));\r\n }", "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 }", "private int getMinPrior(int theIndex) {\n \n /* \n * We're looking for the minimum coins\n * needed to create the value up to now.\n */\n int minimumThroughout = Integer.MAX_VALUE;\n \n /* Store the current coin we are looking at. */\n int coinIndex = 0;\n int bestCoin = -1;\n \n /* \n * Because of the dynamically updated minimums,\n * we simply check any coins which leave us with\n * a positive value remaining to verify.\n */\n while (coinIndex < myCoins.length \n && myCoins[coinIndex] <= theIndex) {\n \n /* We want to see minimum up to this point. */\n int minimumNow = myIndices[theIndex - myCoins[coinIndex]];\n \n /* Update minimum to this point. */\n if (minimumNow < minimumThroughout) {\n minimumThroughout = minimumNow;\n bestCoin = myCoins[coinIndex];\n }\n ++coinIndex;\n }\n \n /* Update Purses by previous optimal solution and adding newest coin. */\n try {\n myPurses[theIndex] = myPurses[theIndex - bestCoin].clone();\n }\n catch (final CloneNotSupportedException e) {\n System.out.println(\"Purse in CoinCounter algorithm could\\n\"\n + \"not be cloned please try again!\");\n }\n myPurses[theIndex].addCoin(bestCoin);\n \n myPurses[theIndex].setBestCoin(bestCoin);\n \n return minimumThroughout;\n }", "public static int kthSmallest(HeapIntPriorityQueue pq, int k){\n //Exception clause\n if(k<1 || k>pq.size()){\n throw new IllegalArgumentException();\n }\n //Auxiliary queue\n Queue <Integer> holder = new LinkedList<Integer>();\n int toReturn = 0;\n //Cycling through to get to the kth position\n for (int i=0; i<k; i++){\n toReturn = pq.remove();\n holder.add(toReturn);\n }\n //Refilling the PriorityQueue from the auxiliary queue\n while (!holder.isEmpty()){\n pq.add(holder.remove());\n }\n return toReturn;\n }", "public double calculateCostInclusive() {\n\t\tdouble accumulatedCost = 0;\n\t\taccumulatedCost += calculateEuclideanDistance(host.grid.getLocation(host), solutionRepresentation.get(0));\n\t\taccumulatedCost += calculateCostExclusive();\n\t\t\n\t\treturn accumulatedCost;\n\t}", "@Test(timeout = 500)\n public void dynamicTest3a() {\n int[] hourlyVolume = {40, 80, 30, 120, 100, 90, 30, 0, 70, 30, 60};\n int[] fullServiceCapacity = {40, 40, 40, 40, 40, 40, 40, 40, 40, 50};\n int[] regularServiceCapacity = {70, 40, 50, 70, 30, 50};\n int[] minorServiceCapacity = {10, 50, 100, 100};\n int expectedResult = 210;\n Assert.assertEquals(expectedResult, Dynamic.optimalLossDynamic(hourlyVolume, fullServiceCapacity, regularServiceCapacity, minorServiceCapacity));\n }", "private void calculatePeakHour() {\n\t\tint sum = 0;\n\t\t// sum up all the tasks that are waiting in queues\n\t\tfor (int i = 0; i < this.numberOfServers; i++) {\n\t\t\tsum += this.scheduler.getServers().get(i).getTasks().length;\n\t\t}\n\n\t\tif (sum > peakHourClients) {\n\t\t\tpeakHourClients = sum;\n\t\t\tpeakHour = currentTime;\n\t\t}\n\t}", "public double calculatedConsuption(){\n\tint tressToSow=0;\n\n\tif (kiloWatts >=1 && kiloWatts <= 1000){\n\t\ttressToSow = 8;\n\t}\n\telse if (kiloWatts >=1001 && kiloWatts <=3000){\n\t\ttressToSow = 35;\n\t}\n\telse if (kiloWatts > 3000){\n\t\ttressToSow=500;\n\t}\n\treturn tressToSow;\n\t}", "int getSuperEffectiveChargeAttacksUsed();", "private Double getHealthFromAvailableWorkers(Map<TouristInformerDTO, Double> availableWorkersHours, int errorPoints) {\n return ((errorPoints * errorPoints) + 0.1) * (Math.abs(availableWorkersHours.values().stream().mapToDouble(a -> a).average().getAsDouble()))+0.1\n * availableWorkersHours.values().stream().map(value -> value = Math.abs(value)).max(Double::compareTo).get();\n }", "public static double[] bestPrices (double[] pricesHC, double[] pricesCentro, double[] pricesBarrio, int quantityMaterials){\n\t\tdouble[] minPrices = new double[quantityMaterials]; \n\t\tfor (int i = 0; i<quantityMaterials; i++){\n\t\t\tif (pricesHC[i]<pricesCentro[i] && pricesHC[i]<pricesBarrio[i])\n\t\t\t\tminPrices[i] = pricesHC[i];\n\t\t\telse if (pricesCentro[i]<pricesHC[i] && pricesCentro[i]<pricesBarrio[i])\n\t\t\t\tminPrices[i] = pricesCentro[i];\n\t\t\telse\n\t\t\t\tminPrices[i] = pricesBarrio[i];\n\t\t}\n\t\treturn minPrices;\n\t}", "public double[] dist2All(int s, int k){\n\n double INFINITY = Double.MAX_VALUE;\n boolean[] SPT = new boolean[intersection];\n\n double[] resultPath = new double[intersection];\n for (int i = 0; i <intersection ; i++) {\n resultPath[i] = INFINITY;\n }\n resultPath[s] = 0;\n MinHeap minHeap = new MinHeap(k);\n for (int i = 0; i <intersection ; i++) {\n minHeap.add(i,resultPath[i]);\n }\n while(!minHeap.isEmpty()){\n\n int extractedVertex = minHeap.extractMin();\n\n if(resultPath[extractedVertex]==INFINITY)\n break;\n\n SPT[extractedVertex] = true;\n\n LinkedList<Edge> list = g.adjacencylist[extractedVertex];\n for (int i = 0; i <list.size() ; i++) {\n Edge edge = list.get(i);\n int destination = edge.destination;\n if(SPT[destination]==false ) {\n double newKey = resultPath[extractedVertex] + edge.weight ;\n double currentKey = resultPath[destination];\n if(currentKey>newKey){\n minHeap.updateKey(newKey, destination,resultPath[destination]);\n resultPath[destination] = newKey;\n }\n }\n }\n }\n for(int i =0; i<resultPath.length;i++){\n if(SPT[i]==false)\n resultPath[i]=-1;\n }\n return resultPath;\n }", "public int minCost(int[][] costs) {\n\nif(costs== null || costs.length == 0)\nreturn 0;\n// int n_houses = costs.length ;\nint lastR = costs[0][0];\nint lastB = costs[0][1];\nint lastG = costs[0][2];\nint currR,currB,currG ;\nfor(int i = 1; i< costs.length ; i++ ){\ncurrR = costs[i][0] + Math.min(lastB,lastG);\ncurrB = costs[i][1] + Math.min(lastR,lastG);\ncurrG = costs[i][2] + Math.min(lastR,lastB);\nlastR = currR;\nlastB = currB;\nlastG = currG;\n}\n// return Math.min(Math.min(lastR,lastB),lastG);\nreturn Math.min(Math.min(lastR,lastB),lastG);\n}", "public int minCostWJumps(int st,int sc,int er,int ec,int cost[][]){\n if(st==er&&sc==ec) return cost[st][sc];\n int c=0;\n for(int jump=1;jump+sc<=ec;jump++){\n c=Math.min(c,minCostWJumps(st,sc+jump,er,ec,cost));\n }\n for(int jump=1;jump+st<=er;jump++){\n c=Math.min(c,minCostWJumps(st+jump,sc,er,ec,cost));\n }\n for(int jump=1;jump+sc<=ec&&jump+st<=er;jump++){\n c=Math.min(c,minCostWJumps(st+jump,sc+jump,er,ec,cost));\n }\n return c+cost[st][sc];\n}", "public static double pCapUsage(double capacity, double toSell) {\n\t\treturn toSell / capacity;\n\t}", "private static long calc1()\n {\n final int min = 1000;\n final int max = 10000;\n\n // initialize\n List<List<Integer>> m = new ArrayList<>();\n for (int k = 0; k < end; k++) {\n List<Integer> list = new ArrayList<Integer>();\n int n = 1;\n while (k >= start) {\n int p = pkn(k, n);\n if (p >= max) {\n break;\n }\n if (p >= min) {\n list.add(p);\n }\n n++;\n }\n m.add(list);\n }\n\n boolean[] arr = new boolean[end];\n arr[start] = true;\n\n List<Integer> solutions = new ArrayList<>();\n List<Integer> list = m.get(start);\n for (Integer first : list) {\n LinkedList<Integer> values = new LinkedList<>();\n values.add(first);\n f(m, arr, values, 1, solutions);\n // we stop at the first solution found\n if (!solutions.isEmpty()) {\n break;\n }\n }\n\n // solutions.stream().forEach(System.out::println);\n int res = solutions.stream().reduce(0, Integer::sum);\n return res;\n }", "@Test\r\n\tpublic void testGetPlannedCapacity_Nonlinear_Interval() {\n\t\tassertEquals(0, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 0, 0, 0), 0);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 0, 300, 900), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*150.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 0, 450, 600), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 300, 900, 1500), 1e-8);\r\n\t\t\r\n\t\tassertEquals(0, schedulerNonlinear.getPlannedCapacity(chargingStation, car, 0, 0, 0), 0);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacity(chargingStation, car, 0, 300, 900), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*150.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacity(chargingStation, car, 0, 450, 600), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacity(chargingStation, car, 300, 900, 1500), 1e-8);\r\n\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 }", "public static int cache_solution(int[][] cache_array,int objects,int capacity){\r\n\r\n //base cases\r\n if(capacity <= 0)\r\n return 0;\r\n if(objects < 0)\r\n return 0;\r\n\r\n if(cache_array[objects][capacity] != -1)\r\n return cache_array[objects][capacity];\r\n else{\r\n if(randvariables[objects] > capacity) // check if the weight is more than capacity\r\n return cache_solution(cache_array,objects-1,capacity);\r\n else{\r\n // recursive calls 1. to take the item(add the value,subtract the weight) 2. Dont take the value(subtract the weight)\r\n int do_take = randvalues[objects] + cache_solution(cache_array,objects-1, capacity-randvariables[objects]);\r\n int dont_take = cache_solution(cache_array,objects - 1, capacity);\r\n\r\n // Returning the highest value\r\n if(do_take > dont_take){\r\n cache_array[objects][capacity] = do_take;\r\n return do_take;\r\n }\r\n else{\r\n cache_array[objects][capacity] = dont_take;\r\n return dont_take;\r\n }\r\n }\r\n }\r\n\r\n }", "public LowestSeatPrefenceVenue(int capacity) {\n\t\tPreconditions.checkArgument(capacity > 0, String.format(\"capacity must be > 0, %s supplied\", capacity));\n\t\tthis.capacity = capacity;\n\t\tlastIssued = 0;\n\t}", "public int solution2(int[] nums, int k) {\n PriorityQueue<Integer> pq = new PriorityQueue<Integer>();\n \n for (int i : nums) {\n pq.offer(i);\n \n if (pq.size() > k) {\n pq.poll();\n }\n }\n \n \n return pq.peek();\n }", "private int extractMinCapacityFromPath(List<Edge> path) {\n\t\tint result = Integer.MAX_VALUE;\n\t\t\n\t\tfor (Edge e : path) {\n\t\t\tif (e.getCapacity() < result) {\n\t\t\t\tresult = e.getCapacity();\n\t\t\t}\n\t\t}\n\t\tflowValue+=result;\n\t\treturn result;\n\t}", "@Override\n public int getHeatCapacityWithWater() {\n if (hasLaserHeatSinks()) {\n return getHeatCapacity();\n }\n return getHeatCapacity() + Math.min(sinksUnderwater(), 6);\n }", "public Money findMinPrice(long n) {\n\t\tif (!hashMap.containsKey(n)) {\n\t\t\treturn new Money();\n\t\t}\n\t\tTreeSet<Long> idSet = hashMap.get(n);\n\t\tMoney min = new Money();\n\t\tboolean flag = false;\n\t\tfor (Long id : idSet) {\n\t\t if(treeMap.containsKey(id)){\n\t\t\tMoney current = treeMap.get(id).price;\n\t\t\tif (min.compareTo(current) == 1 || !flag) {\n\t\t\t\tmin = current;\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t }\n\t\t}\n\t\treturn min;\n\t}", "int weeklyPay(int hoursWorked, int hourlyRate) {\n if (hoursWorked < 0 || hourlyRate < 0) {\n return 0;\n }\n\n if (hoursWorked > 40) {\n //return (hoursWorked * hourlyRate) + ((hoursWorked - 40) * (hourlyRate * 2)); //logic error - incorrect answer\n //return (40 * hourlyRate) + ((hoursWorked - 40) * (hourlyRate * 2)); //works\n return (hoursWorked * hourlyRate) + ((hoursWorked - 40) * hourlyRate); //also works\n }\n else {\n return hoursWorked * hourlyRate;\n }\n }", "private void storeDemandLoadMap(Map<ServiceIdentifier<?>, Map<RegionIdentifier, Double>> loadMap, RegionIdentifier root) {\n Map<ServiceIdentifier<?>, Map<RegionIdentifier, Double>> excessLoad = deepCopyMap(loadMap);\n \n SortedSet<ServiceIdentifier<?>> sortedServiceSet = new TreeSet<>(new SortServiceByPriorityComparator());\n sortedServiceSet.addAll(excessLoad.keySet());\n \n // Store the load to keepLoadMap AND rootKeepLoadMap.get(getRegionID())\n rootKeepLoadMap.put(getRegionID(), new HashMap<>());\n Map<ServiceIdentifier<?>, Map<RegionIdentifier, Double>> localKeepLoadMap = rootKeepLoadMap.get(getRegionID());\n \n for (ServiceIdentifier<?> service : sortedServiceSet) {\n for (Entry<RegionIdentifier, Double> entry : excessLoad.get(service).entrySet()) {\n RegionIdentifier client = entry.getKey();\n \n // Can't use the function getAvailableCapacity() because it depends on the keepLoadMap\n double availableCapacity = getRegionCapacity() - sumKeyKeyValues(localKeepLoadMap);\n \n // Break if region has no available capacity\n if (compareDouble(availableCapacity, 0) <= 0) {\n break;\n }\n \n// double serviceLoad = excessLoad.get(service);\n double serviceLoad = entry.getValue();\n \n // If availableCapacity >= serviceLoad\n // Store all the load \n if (compareDouble(availableCapacity, serviceLoad) >= 0) {\n updateKeyKeyLoadMap(localKeepLoadMap, service, client, serviceLoad, true);\n excessLoad.get(service).put(client, 0.0);\n } \n // If availableCapacity <= serviceLoad\n // Store availableCapacity, reduce the loadMap by availableCapacity\n // Then break since there is no available capacity\n else {\n updateKeyKeyLoadMap(localKeepLoadMap, service, client, availableCapacity, true);\n excessLoad.get(service).put(client, serviceLoad - availableCapacity);\n } \n }\n \n excessLoad.get(service).values().removeIf(v -> compareDouble(v, 0) == 0);\n } \n }", "public Informer reqInformTankCapacity() {\n\t\t\taddProperty(EPC_TANK_CAPACITY);\n\t\t\treturn this;\n\t\t}", "@Override\n public int getHeatCapacity() {\n return getHeatCapacity(true);\n }", "public Knapsack bruteForceCalc (ArrayList <Item> items,int capacity, int num_items) {\n\t\tif (num_items <= 0) {\n\t\t\tKnapsack knapsack = new Knapsack(0);\n\t\t\treturn knapsack;\n\t\t} \n\t\telse if (items.get(num_items -1).getWeight() > capacity) {\n\t\t\treturn bruteForceCalc(items, capacity, num_items - 1);\n\t\t} else {\n\n\t\t\tKnapsack ignore = bruteForceCalc(items,capacity, num_items - 1);\n\t\t\tKnapsack take = bruteForceCalc(items,capacity - items.get(num_items -1).getWeight(), num_items - 1);\n\t\t\t\n\t\t\tint ignoreVal = ignore.getValue();\n\t\t\tint takeVal = items.get(num_items - 1).getValue() + take.getValue();\n\t\t\t \n\t\t\tif( Math.max(ignoreVal, takeVal) == ignoreVal ) \n\t\t\t\treturn ignore;\n\t\t\telse {\n\t\t\t\ttake.addItem(items.get(num_items - 1));\n\t\t\t\treturn take;\n\t\t\t}\n\t\t}\n\t}", "public static void lowestPrice(DeluxePizza todaysPizza[])\n\t{\n\t\tboolean empty = true;\n\t\tfor(DeluxePizza x:todaysPizza)\n\t\t{\n\t\t\tif(x != null)\n\t\t\t\tempty = false;\n\t\t}\n\t\tif(!empty){\n\t\tdouble cheapest = todaysPizza[0].calcCost();\n\t\tint index = 0;\n\t\tfor(int i = 0; i <= todaysPizza.length - 1; ++i)\n\t\t{\n\t\t\tif(todaysPizza[i] == null)\n\t\t\t{\n\t\t\t\tcheapest += 0;\n\t\t\t}\n\t\t\telse if(todaysPizza[i].calcCost() < cheapest)\n\t\t\t{\n\t\t\t\tcheapest = todaysPizza[i].calcCost();\n\t\t\t\tindex = i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The cheapest pizza is pizza # \" + (index + 1) + \" at $\" + cheapest);\n\t\treturn;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"You haven't made any pizzas yet!\");\n\t\t\treturn;\n\t\t}\n\t}", "@Override\n public int computeProfit() {\n return getVehiclePerformance() / getVehiclePrice();\n }", "protected byte[] getTankCapacity() {return null;}", "int calculateCap();", "public void charge() {\r\n capacity = Math.min(capacity += originalCapacity, originalCapacity);\r\n }", "public static int maxSum(int[] a, int k) \n {\n PriorityQueue<Integer> pq = new PriorityQueue<>(); \n for (int x : a) \n pq.add(x); \n \n // Do k negations by removing a minimum element k times \n while (k-- > 0) \n { \n // Retrieve and remove min element \n int temp = pq.poll(); \n \n // Modify the minimum element and add back \n // to priority queue \n temp *= -1; \n pq.add(temp); \n } \n \n // Compute sum of all elements in priority queue. \n int sum = 0; \n for (int x : pq) \n sum += x; \n return sum; \n }", "public double getPrice(RequiredSpecs specs, int waitingTime){\r\n\t\tdouble priceMemory;\r\n\t\tdouble priceCPU;\r\n\t\tif(canRun(specs)){\r\n\t\t\tpriceMemory = specs.getMemory()*this.pricePerMemoryUnit*(1 - getFractionMemoryTaken());\r\n\t\t\tpriceCPU = specs.getCpu()*this.pricePerCpuUnit*(1 - getFractionCpuTaken());\r\n\t\t}else{\r\n\t\t\tpriceMemory = specs.getMemory()*this.pricePerMemoryUnit - this.discountPerWaitingSecond * waitingTime;\r\n\t\t\tpriceCPU = specs.getCpu()*this.pricePerCpuUnit - this.discountPerWaitingSecond * waitingTime;\r\n\t\t}\r\n\t\tdouble finalPrice = (priceMemory + priceCPU)*specs.getTime()*this.pricePerSecond;\r\n\t\tif(finalPrice <= 0){\r\n\t\t\treturn this.minPrice;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn (priceMemory + priceCPU)*specs.getTime()*this.pricePerSecond;\r\n\t\t}\r\n\t}", "@Test(timeout = 5000)\n public void dynamicTest5() {\n int[] hourlyVolume = generateRandomHourlyVolume(3000, 80, \"are you going to maths camp?\".hashCode());\n int[] fullServiceCapacity = {100,90,80,70,60,50,50,20,20,10};\n int[] regularServiceCapacity = {80,40,40,20,20,60};\n int[] minorServiceCapacity = {20, 40, 60, 60};\n int expectedResult = 33005;\n Assert.assertEquals(expectedResult, Dynamic.optimalLossDynamic(hourlyVolume, fullServiceCapacity, regularServiceCapacity, minorServiceCapacity));\n }", "protected abstract float _getGrowthChance();", "void ksUnbounded(int targetWeight, int nItems, int[] iWeights, int[] iValues) {\n\r\n\t\tint[][] ksItemCapacity = new int[nItems + 1][targetWeight + 1];\r\n\t\tint[][] ksTrack = new int[nItems + 1][targetWeight + 1];\r\n\r\n\t\tfor (int w = 0; w <= targetWeight; w++) {\r\n\t\t\tksItemCapacity[0][w] = 0;\r\n\t\t}\r\n\r\n\t\tfor (int item = 1; item < nItems; item++) {\r\n\t\t\tfor (int w = 0; w <= targetWeight; w++) {\r\n\t\t\t\t// last known Maximum value of KS contents s.t. their weight\r\n\t\t\t\t// totals to atmost w-iWeights[item]\r\n\t\t\t\tint eItemValue = (iWeights[item] <= w) ? ksItemCapacity[item - 1][w\r\n\t\t\t\t\t\t- iWeights[item]]\r\n\t\t\t\t\t\t: 0;\r\n\t\t\t\tif ((iWeights[item] <= w)\r\n\t\t\t\t\t\t&& (iValues[item] + eItemValue) > ksItemCapacity[item - 1][w]) {\r\n\t\t\t\t\tksItemCapacity[item][w] = eItemValue + iValues[item];\r\n\t\t\t\t\t// current item included\r\n\t\t\t\t\tksTrack[item][w] = 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tksItemCapacity[item][w] = ksItemCapacity[item - 1][w];\r\n\t\t\t\t\t// current item not included\r\n\t\t\t\t\tksTrack[item][w] = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Print KS contents\r\n\t\tArrayList<Integer> ksContents = new ArrayList<Integer>();\r\n\t\tint tW = targetWeight;\r\n\t\tfor (int item = nItems; item >= 0; item--) {\r\n\t\t\tif (ksTrack[item][tW] == 1) {\r\n\t\t\t\ttW -= iWeights[item];\r\n\t\t\t\tksContents.add(item);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Items choosen are:\");\r\n\t\tint W = 0, V = 0;\r\n\t\tfor (Integer e : ksContents) {\r\n\t\t\tW += iWeights[e];\r\n\t\t\tV += iValues[e];\r\n\t\t\tSystem.out.println(\"Weight: \" + iWeights[e] + \", Value: \"\r\n\t\t\t\t\t+ iValues[e]);\r\n\t\t}\r\n\t\tSystem.out.println(\"Total weight: \" + W + \" Total value: \" + V);\r\n\t}", "public int getCostUnderestimate() {\n int bottomLoad = 0;\n int bottomLevel = 0;\n int loadBalance = ((AlgorithmConfig.getTotalNodeWeight() + getIdleTime()) / AlgorithmConfig.getNumOfProcessors());\n for (ScheduledTask scheduledTask : this) {\n bottomLevel = Math.max(bottomLevel, scheduledTask.getStartTime() + scheduledTask.getNode().getBottomLevel());\n bottomLoad = Math.max(bottomLoad, scheduledTask.getNode().getBottomLoad()/AlgorithmConfig.getNumOfProcessors() + scheduledTask.getFinishTime());\n }\n return Math.max(bottomLevel, Math.max(loadBalance, bottomLoad));\n }", "BigDecimal getHighPrice();", "public static int numSubarrayProductLessThanK(int[] nums, int k) {\n if(k <= 1) return 0;\n int prod = 1;\n int left = 0;\n int ans = 0;\n \n for (int right = 0; right < nums.length; right++) {\n prod *= nums[right];\n \n while(prod >= k) {\n prod /= nums[left];\n left++;\n }\n ans += right - left + 1; \n }\n \n return ans;\n }", "int calculateCapacity(int[] vesselArray);" ]
[ "0.75187975", "0.6357799", "0.58183", "0.55365807", "0.5399699", "0.53445446", "0.53112257", "0.52811134", "0.5078763", "0.50497824", "0.4963257", "0.49497506", "0.49346372", "0.49014297", "0.48990482", "0.4897234", "0.4896914", "0.48955163", "0.48350084", "0.48327923", "0.48327184", "0.48247817", "0.48190752", "0.48039177", "0.4802945", "0.48016655", "0.4799733", "0.47906008", "0.4781205", "0.4779031", "0.4763568", "0.47551665", "0.4748264", "0.47409162", "0.4729947", "0.4714398", "0.47072935", "0.47023192", "0.4699614", "0.46969685", "0.46958062", "0.46949738", "0.4693955", "0.46836832", "0.4681808", "0.46550217", "0.46549997", "0.46542412", "0.4650012", "0.46486533", "0.46434465", "0.46428722", "0.46289", "0.46206212", "0.4616492", "0.46131027", "0.46093148", "0.46066484", "0.45989338", "0.45979032", "0.45943698", "0.45828468", "0.45827836", "0.45802048", "0.45801523", "0.45714983", "0.45636025", "0.45609885", "0.45538136", "0.45492446", "0.4543452", "0.45424238", "0.4540549", "0.45352617", "0.45345312", "0.45324427", "0.45312294", "0.4526922", "0.45253953", "0.4521224", "0.45212033", "0.45192316", "0.45189238", "0.4518422", "0.4514116", "0.45121074", "0.45111644", "0.45093706", "0.45078242", "0.45005894", "0.44925323", "0.44915357", "0.44896227", "0.44878426", "0.44826642", "0.44810477", "0.4477695", "0.44774464", "0.44772407", "0.44754493" ]
0.6596861
1
Given parameters hourlyVolume, fullServiceCapacity, regularServiceCapacity and minorServiceCapacity, return the least cost that can be incurred from hour "currentHour" to hour "k1" (inclusive) of the hours you are in charge of the pump (where k = hourlyVolume.length), given that the last maintenance activity before hour "currentHour" is given by parameter "lastService", and that it occurred "hoursSinceService" hours before hour "currentHour". (See handout for details) This method must be implemented using a recursive programming solution to this problem. It is expected to have a worstcase running time that is exponential in k
private static int optimalLossRecursive(int[] hourlyVolume, int[] fullServiceCapacity, int [] regularServiceCapacity, int[] minorServiceCapacity, int currentHour, Service lastService, int hoursSinceService) { int k = hourlyVolume.length; if (currentHour == k) { return 0; } // we've exhausted our hours // NOTE: we can service at hour 0. so we need to make a decision first, before calling later times. // loss given no service int loss = lossFn(hourlyVolume, fullServiceCapacity, regularServiceCapacity, minorServiceCapacity, currentHour, lastService, hoursSinceService); int serviceLoss = hourlyVolume[currentHour]; // loss if we start a service int nextHr = currentHour +1; int nextNoService = loss + optimalLossRecursive(hourlyVolume, fullServiceCapacity, regularServiceCapacity, minorServiceCapacity, nextHr, lastService, hoursSinceService + 1); int nextMinService = serviceLoss + optimalLossRecursive(hourlyVolume, fullServiceCapacity, regularServiceCapacity, minorServiceCapacity, nextHr, Service.MINOR_SERVICE, 0); int nextRegService = serviceLoss + optimalLossRecursive(hourlyVolume, fullServiceCapacity, regularServiceCapacity, minorServiceCapacity, nextHr, Service.REGULAR_SERVICE, -1); int nextFullService = serviceLoss + optimalLossRecursive(hourlyVolume, fullServiceCapacity, regularServiceCapacity, minorServiceCapacity, nextHr, Service.FULL_SERVICE, -3); int[] results = {nextNoService, nextMinService, nextRegService, nextFullService}; int m = Integer.MAX_VALUE; for (int i: results) { if (i < m) { m = i; } } return m; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int lossFn(int[] hourlyVolume, int[] fullServiceCapacity, int [] regularServiceCapacity,\r\n int[] minorServiceCapacity, int currentHour, Service lastService,\r\n int hoursSinceService) {\n int[] capacity;\r\n if (lastService.equals(Service.FULL_SERVICE)) {\r\n capacity = fullServiceCapacity;\r\n } else if (lastService.equals(Service.REGULAR_SERVICE)) {\r\n capacity = regularServiceCapacity;\r\n } else {\r\n capacity = minorServiceCapacity;\r\n }\r\n\r\n // consider if hoursSinceService is valid index\r\n int l = capacity.length;\r\n // calc loss so far\r\n int loss;\r\n if (hoursSinceService < 0) {\r\n // out of order due to service\r\n loss = hourlyVolume[currentHour];\r\n } else if (hoursSinceService >= l) {\r\n // out of order due to lack of service\r\n loss = hourlyVolume[currentHour];\r\n } else {\r\n loss = hourlyVolume[currentHour] - capacity[hoursSinceService];\r\n }\r\n if (loss < 0) {\r\n // we've made no loss\r\n loss = 0;\r\n }\r\n\r\n return loss;\r\n }", "public static int optimalLossRecursive(int[] hourlyVolume,\r\n int[] fullServiceCapacity, int [] regularServiceCapacity, int[] minorServiceCapacity) {\r\n // IMPLEMENT THIS METHOD BY IMPLEMENTING THE PRIVATE METHOD IN THIS\r\n // CLASS THAT HAS THE SAME NAME\r\n return optimalLossRecursive(hourlyVolume, fullServiceCapacity, regularServiceCapacity, minorServiceCapacity,\r\n 0, Service.FULL_SERVICE, 0);\r\n }", "public float getCost(Date hour) {\r\n Iterator<Date> it = schedule.iterator();\r\n int i = 0;\r\n while (it.hasNext()) {\r\n if (it.next().after(hour)) {\r\n return cost.get(i);\r\n }\r\n i++;\r\n }\r\n return defaultCost;\r\n }", "@Test\r\n\tpublic void testFillChargingNonlinear_HighInitialSoC_ExhaustiveDesiredCapacity() {\n\t\tSimulation.verbosity = 0;\r\n\t\tint startTimeSeconds = 0;\r\n\t\t\r\n\t\t// Charge until soc=0.9\r\n\t\tdouble initialSoC = 0.9;\r\n\t\twhile (car.carBattery.getSoC() < initialSoC) {\r\n\t\t\tcar.addChargedCapacity(1, 32);\r\n\t\t}\r\n\t\t\r\n\t\tdouble desiredCapacity = 0.1;\r\n\t\twhile (desiredCapacity <= car.getMissingCapacity()) {\r\n\t\t\t\r\n\t\t\tcar.setCurrentPlan(new double[96]);\r\n\t\t\tschedulerNonlinear.fillChargingPlan(car, chargingStation, desiredCapacity, \r\n\t\t\t\t\tTimeslotSorter.getSortedTimeslots(null, 0, 96, TimeslotSortingCriteria.INDEX), \r\n\t\t\t\t\tstartTimeSeconds);\r\n\t\t\t\r\n\r\n\t\t\tdouble plannedCapacity = schedulerNonlinear.getPlannedCapacity(chargingStation, car, startTimeSeconds);\r\n\t\t\t//System.out.println(\"desiredCapacity=\" + desiredCapacity + \"Ah, plannedCapacity=\" + plannedCapacity);\r\n\t\t\t\r\n\t\t\tassertEquals(desiredCapacity, plannedCapacity, 1e-2);\r\n\t\t\tdesiredCapacity+=0.1;\r\n\t\t}\r\n\t\t\r\n\t}", "private int costToSupport(PlanGraphLiteral unsupportedPrecondition, int currentLevel) {\n\t\t\n\t\tint cost = Integer.MAX_VALUE;\n\t\t\n\t\t/* cost = 0 if part of initial conditions */\n\t\tif (currentLevel == 0 && unsupportedPrecondition.getInitialLevel() == 0)\n\t\t\tcost = 0;\n\t\telse if(isSupported(unsupportedPrecondition, currentLevel))\n\t\t\tcost = 0;\n\t\telse {\n\t\t\t/* cost of supporting this precondition is the cost of the cheapest step that supports it */\n\t\t\tfor (PlanGraphStep step : unsupportedPrecondition.getParentNodes()) {\n\t\t\t\tcost = Math.min(cost, costToSupport(step, currentLevel));\n\t\t\t}\n\t\t}\n\t\n\t\t\treturn cost;\n\t}", "@Test\r\n\tpublic void testFillChargingPlan_Linear_HighInitialSoC() {\n\t\tdouble initialSoC = 0.9;\r\n\t\tint startTimeSeconds = 0;\r\n\t\t\r\n\t\twhile (car.carBattery.getSoC() < initialSoC) {\r\n\t\t\tcar.addChargedCapacity(1, 32);\r\n\t\t}\r\n\t\tdouble desiredCapacity = car.getMissingCapacity();\r\n\t\t\r\n\t\t// Linear\r\n\t\tcar.setCurrentPlan(new double[96]);\r\n\t\tschedulerLinear.fillChargingPlan(car, chargingStation, desiredCapacity, \r\n\t\t\t\tTimeslotSorter.getSortedTimeslots(null, 0, 95, TimeslotSortingCriteria.INDEX), \r\n\t\t\t\tstartTimeSeconds);\r\n\t\t\r\n\t\t\r\n\t\t//System.out.println(\"DesiredCapactiy: \" + desiredCapacity);\r\n\t\t//System.out.println(\"Planned capacity: \" + schedulerLinear.getPlannedCapacity(chargingStation, car, startTimeSeconds));\r\n\t\t//System.out.println(Arrays.toString(car.getCurrentPlan()));\r\n\t\t\r\n\r\n\t\tassertTrue(car.getCurrentPlan()[0] > 0);\r\n\t\tassertEquals(car.getMissingCapacity(), schedulerLinear.getPlannedCapacity(chargingStation, car, startTimeSeconds), 1e-6);\r\n\t}", "@Test\r\n\tpublic void testFillChargingPlan_Nonlinear_HighInitialSoC() {\n\t\tdouble initialSoC = 0.99;\r\n\t\tint startTimeSeconds = 0;\r\n\t\twhile (car.carBattery.getSoC() < initialSoC) {\r\n\t\t\tcar.addChargedCapacity(1, 32);\r\n\t\t}\r\n\t\tdouble desiredCapacity = car.getMissingCapacity();\r\n\t\t\r\n\t\t\r\n\t\t// Nonlinear\r\n\t\tcar.setCurrentPlan(new double[96]);\r\n\t\tschedulerNonlinear.fillChargingPlan(car, chargingStation, desiredCapacity, \r\n\t\t\t\tTimeslotSorter.getSortedTimeslots(null, 0, 95, TimeslotSortingCriteria.INDEX), \r\n\t\t\t\tstartTimeSeconds);\r\n\t\t\r\n\t\t//System.out.println(Arrays.toString(car.getCurrentPlan()));\r\n\t\t//System.out.println(schedulerNonlinear.getPlannedCapacity(chargingStation, car, startTimeSeconds));\r\n\t\t\r\n\t\tassertEquals(car.getMissingCapacity(), schedulerNonlinear.getPlannedCapacity(chargingStation, car, startTimeSeconds), 1e-8);\r\n\t\t\r\n\t}", "private void calculatePeakHour() {\n\t\tint sum = 0;\n\t\t// sum up all the tasks that are waiting in queues\n\t\tfor (int i = 0; i < this.numberOfServers; i++) {\n\t\t\tsum += this.scheduler.getServers().get(i).getTasks().length;\n\t\t}\n\n\t\tif (sum > peakHourClients) {\n\t\t\tpeakHourClients = sum;\n\t\t\tpeakHour = currentTime;\n\t\t}\n\t}", "private double[] calculateEstimatedSpaceHeatPumpDemand(double[] localSetPointArray)\n\t{\n\t\tdouble[] energyProfile = new double[this.ticksPerDay];\n\t\tdouble[] deltaT = ArrayUtils.add(localSetPointArray, ArrayUtils.negate(this.priorDayExternalTempProfile));\n\t\t// int availableHeatRecoveryTicks = ticksPerDay;\n\t\tdouble maxRecoveryPerTick = 0.5d * Consts.DOMESTIC_COP_DEGRADATION_FOR_TEMP_INCREASE; // i.e.\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// can't\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recover\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// more\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// than\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// 50%\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// of\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// heat\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// loss\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// at\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// 90%\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// COP.\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// TODO:\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// Need\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// to\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// code\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// this\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// better\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// later\n\t\t// double internalTemp = this.setPointProfile[0];\n\n\t\tfor (int i = 0; i < this.ticksPerDay; i++)\n\t\t{\n\t\t\t// --availableHeatRecoveryTicks;\n\t\t\t// currentTempProfile[i] = internalTemp;\n\t\t\tdouble tempChange;\n\n\t\t\tif (i > 0)\n\t\t\t{\n\t\t\t\ttempChange = localSetPointArray[i] - localSetPointArray[i - 1];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttempChange = localSetPointArray[i] - this.setPointProfile[0];\n\t\t\t}\n\n\t\t\t// double setPointMaintenanceEnergy = deltaT[i] *\n\t\t\t// ((owner.buildingHeatLossRate /\n\t\t\t// Consts.KWH_TO_JOULE_CONVERSION_FACTOR)) * (Consts.SECONDS_PER_DAY\n\t\t\t// / ticksPerDay);\n\t\t\tdouble setPointMaintenanceEnergy = (this.setPointProfile[i] - this.priorDayExternalTempProfile[i])\n\t\t\t\t\t* ((this.owner.getBuildingHeatLossRate() / Consts.KWH_TO_JOULE_CONVERSION_FACTOR))\n\t\t\t\t\t* (Consts.SECONDS_PER_DAY / this.ticksPerDay);\n\n\t\t\t// tempChangePower can be -ve if the temperature is falling. If\n\t\t\t// tempChangePower magnitude\n\t\t\t// is greater than or equal to setPointMaintenance, the heat pump is\n\t\t\t// off.\n\t\t\tdouble tempChangeEnergy = tempChange * this.owner.getBuildingThermalMass();\n\n\t\t\t// Although the temperature profiles supplied should be such that\n\t\t\t// the heat\n\t\t\t// can always be recovered within a reasonable cap - we could put a\n\t\t\t// double\n\t\t\t// check in here.\n\t\t\t/*\n\t\t\t * if (tempChangeEnergy > maxRecoveryPerTick *\n\t\t\t * ((owner.buildingHeatLossRate /\n\t\t\t * Consts.KWH_TO_JOULE_CONVERSION_FACTOR) * (Consts.SECONDS_PER_DAY\n\t\t\t * / ticksPerDay) * ArrayUtils.max(deltaT))) { //System.err.println(\n\t\t\t * \"WattboxController: Should never get here - asked to get demand for a profile that can't recover temp\"\n\t\t\t * ); return null; }\n\t\t\t */\n\n\t\t\t// Add in the energy to maintain the new temperature, otherwise it\n\t\t\t// can be cheaper\n\t\t\t// To let the temperature fall and re-heat under flat price and\n\t\t\t// external temperature\n\t\t\t// conditions. TODO: Is this a good physical analogue?\n\t\t\t// setPointMaintenanceEnergy += tempChange *\n\t\t\t// ((owner.buildingHeatLossRate /\n\t\t\t// Consts.KWH_TO_JOULE_CONVERSION_FACTOR)) * (Consts.SECONDS_PER_DAY\n\t\t\t// / ticksPerDay);\n\n\t\t\tdouble heatPumpEnergyNeeded = Math.max(0, (setPointMaintenanceEnergy + tempChangeEnergy) / Consts.DOMESTIC_HEAT_PUMP_SPACE_COP);\n\t\t\t// double heatPumpEnergyNeeded = (setPointMaintenanceEnergy /\n\t\t\t// Consts.DOMESTIC_HEAT_PUMP_SPACE_COP) + (tempChangeEnergy *\n\t\t\t// (Consts.DOMESTIC_HEAT_PUMP_SPACE_COP *\n\t\t\t// Consts.DOMESTIC_COP_DEGRADATION_FOR_TEMP_INCREASE));\n\n\t\t\t// zero the energy if heat pump would be off\n\t\t\tif (deltaT[i] < Consts.HEAT_PUMP_THRESHOLD_TEMP_DIFF)\n\t\t\t{\n\t\t\t\t// heat pump control algorithm would switch off pump\n\t\t\t\theatPumpEnergyNeeded = 0;\n\t\t\t}\n\n\t\t\tif (heatPumpEnergyNeeded > (this.owner.ratedPowerHeatPump * Consts.DOMESTIC_HEAT_PUMP_SPACE_COP * 24 / this.ticksPerDay))\n\t\t\t{\n\t\t\t\t// This profiel produces a value that exceeds the total capacity\n\t\t\t\t// of the\n\t\t\t\t// heat pump and is therefore unachievable.\n\t\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t\t{\n\t\t\t\t\tthis.mainContext.logger.trace(\"Nulling the demand profile for energy needed \" + heatPumpEnergyNeeded);\n\t\t\t\t}\n\t\t\t\t// Can't satisfy this demand for this set point profile, return\n\t\t\t\t// null\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tenergyProfile[i] = heatPumpEnergyNeeded;\n\t\t}\n\n\t\treturn energyProfile;\n\n\t}", "@Test\r\n\tpublic void testFillChargingNonlinear_EmptyCar_ExhaustiveDesiredCapacity() {\n\t\tSimulation.verbosity = 0;\r\n\t\tint startTimeSeconds = 0;\r\n\t\t\r\n\t\tdouble desiredCapacityInterval = 1; \r\n\t\t\r\n\t\tdouble desiredCapacity = desiredCapacityInterval;\r\n\t\twhile (desiredCapacity <= car.getMaxCapacity()) {\r\n\t\t\t\r\n\t\t\t//System.out.println(\"desiredCapacity=\" + desiredCapacity);\r\n\t\t\tcar.setCurrentPlan(new double[96]);\r\n\t\t\tschedulerNonlinear.fillChargingPlan(car, chargingStation, desiredCapacity, \r\n\t\t\t\t\tTimeslotSorter.getSortedTimeslots(null, 0, 96, TimeslotSortingCriteria.INDEX), \r\n\t\t\t\t\tstartTimeSeconds);\r\n\t\t\t\r\n\t\t\tassertEquals(desiredCapacity, schedulerNonlinear.getPlannedCapacity(chargingStation, car, startTimeSeconds), 1e-2);\r\n\t\t\tdesiredCapacity += desiredCapacityInterval;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "private BigDecimal calcHalvingPrice(long currentHeight) {\n int rewardHalvingRound = Integer.parseInt(String.valueOf(currentHeight - this.createHeight - 1)) / this.rewardHalvingCycle;\n BigDecimal round = BigDecimal.ZERO;\n int count = rewardHalvingRound / 30;\n BigDecimal base = new BigDecimal(2 << 29);\n if (count == 0 || rewardHalvingRound == 30) {\n round = new BigDecimal(2 << rewardHalvingRound - 1);\n } else if (count == 1 || rewardHalvingRound == 60) {\n round = new BigDecimal(2 << rewardHalvingRound - 31);\n round = base.multiply(round);\n } else if (count == 2 || rewardHalvingRound == 90) {\n round = new BigDecimal(2 << rewardHalvingRound - 61);\n round = base.multiply(base).multiply(round);\n } else {\n require(false, \"The maximum allowable number of halving cycles is 90 times, which has reached \" + rewardHalvingRound + \" times.\");\n return BigDecimal.ZERO;\n }\n return this.initialPrice.divide(round, decimals, BigDecimal.ROUND_DOWN);\n\n }", "int weeklyPay(int hoursWorked, int hourlyRate) {\n if (hoursWorked < 0 || hourlyRate < 0) {\n return 0;\n }\n\n if (hoursWorked > 40) {\n //return (hoursWorked * hourlyRate) + ((hoursWorked - 40) * (hourlyRate * 2)); //logic error - incorrect answer\n //return (40 * hourlyRate) + ((hoursWorked - 40) * (hourlyRate * 2)); //works\n return (hoursWorked * hourlyRate) + ((hoursWorked - 40) * hourlyRate); //also works\n }\n else {\n return hoursWorked * hourlyRate;\n }\n }", "public BigDecimal getCurrentPrice(long currentHeight) {\n BigDecimal price = this.initialPrice;\n\n //Is there a record in the reward cycle queue?\n if (!this.totalDepositList.isEmpty()) {\n int currentCycle = this.calcRewardCycle(currentHeight);\n //Check whether the current reward cycle is in the index\n if (!this.totalDepositIndex.containsKey(currentCycle)) {\n //If not, a reward record for the current reward cycle is generated\n moveLastDepositToCurrentCycle(currentHeight);\n }\n //Get the latest reward cycle record\n RewardCycleInfo cycleInfoTmp = this.totalDepositList.get(this.totalDepositList.size() - 1);\n BigInteger intAmount = cycleInfoTmp.getDepositAmount();\n if (intAmount.compareTo(BigInteger.ZERO) != 0) {\n String amount = toNuls(intAmount).toString();\n BigDecimal bigAmount = new BigDecimal(amount);\n price = cycleInfoTmp.getCurrentPrice().divide(bigAmount, decimals, BigDecimal.ROUND_DOWN);\n }\n } else {\n //If there is no record of the reward cycle, the half-cycle price is calculated.\n if (this.rewardHalvingCycle > 0 && this.nextRewardHalvingHeight <= currentHeight) {\n price = calcHalvingPrice(currentHeight);\n }\n }\n return price;\n }", "private Double getHealthFromAvailableWorkers(Map<TouristInformerDTO, Double> availableWorkersHours, int errorPoints) {\n return ((errorPoints * errorPoints) + 0.1) * (Math.abs(availableWorkersHours.values().stream().mapToDouble(a -> a).average().getAsDouble()))+0.1\n * availableWorkersHours.values().stream().map(value -> value = Math.abs(value)).max(Double::compareTo).get();\n }", "public double getPreferredConsecutiveHours();", "@Override\n public double getCost(int hours) {\n\n if (hours < 2) {\n\n return 30;\n } else if (hours < 4) {\n\n return 70;\n } else if (hours < 24) {\n\n return 100;\n } else {\n\n int days = hours / 24;\n return days * 100;\n }\n }", "public int getCostUnderestimate() {\n int bottomLoad = 0;\n int bottomLevel = 0;\n int loadBalance = ((AlgorithmConfig.getTotalNodeWeight() + getIdleTime()) / AlgorithmConfig.getNumOfProcessors());\n for (ScheduledTask scheduledTask : this) {\n bottomLevel = Math.max(bottomLevel, scheduledTask.getStartTime() + scheduledTask.getNode().getBottomLevel());\n bottomLoad = Math.max(bottomLoad, scheduledTask.getNode().getBottomLoad()/AlgorithmConfig.getNumOfProcessors() + scheduledTask.getFinishTime());\n }\n return Math.max(bottomLevel, Math.max(loadBalance, bottomLoad));\n }", "@Override\n\tpublic Money hourlyCostRate() {\n\t\treturn costRate().hourly();\n\t}", "static int getMinimumCost(int k, Integer[] c) {\n\tArrays.sort(c, Collections.reverseOrder());\n\tint[] num = new int[k];\n\tint total = 0;\n\tfor (int ind = 0; ind < c.length; ind++) {\n\t int v = ind % k;\n\t total += (num[v]++ + 1) * c[ind];\n\t}\n\n\treturn total;\n }", "@Test\r\n\tpublic void testGetPlannedCapacity_Linear_Interval() {\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerLinear.getPlannedCapacityNonlinear(chargingStation, car, 0, 300, 900), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*150.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerLinear.getPlannedCapacityNonlinear(chargingStation, car, 0, 450, 600), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerLinear.getPlannedCapacityNonlinear(chargingStation, car, 300, 900, 1500), 1e-8);\r\n\t\t\t\t\r\n\t\t\r\n\t}", "@Override\n public List<LocalTime> getAvailableTimesForServiceAndDate(final com.wellybean.gersgarage.model.Service service, LocalDate date) {\n\n LocalTime garageOpening = LocalTime.of(9,0);\n LocalTime garageClosing = LocalTime.of(17, 0);\n\n // List of all slots set as available\n List<LocalTime> listAvailableTimes = new ArrayList<>();\n for(LocalTime slot = garageOpening; slot.isBefore(garageClosing); slot = slot.plusHours(1)) {\n listAvailableTimes.add(slot);\n }\n\n Optional<List<Booking>> optionalBookingList = bookingService.getAllBookingsForDate(date);\n\n // This removes slots that are occupied by bookings on the same day\n if(optionalBookingList.isPresent()) {\n List<Booking> bookingsList = optionalBookingList.get();\n for(Booking booking : bookingsList) {\n int bookingDurationInHours = booking.getService().getDurationInMinutes() / 60;\n // Loops through all slots used by the booking and removes them from list of available slots\n for(LocalTime bookingTime = booking.getTime();\n bookingTime.isBefore(booking.getTime().plusHours(bookingDurationInHours));\n bookingTime = bookingTime.plusHours(1)) {\n\n listAvailableTimes.remove(bookingTime);\n }\n }\n }\n\n int serviceDurationInHours = service.getDurationInMinutes() / 60;\n\n // To avoid concurrent modification of list\n List<LocalTime> listAvailableTimesCopy = new ArrayList<>(listAvailableTimes);\n\n // This removes slots that are available but that are not enough to finish the service. Example: 09:00 is\n // available but 10:00 is not. For a service that takes two hours, the 09:00 slot should be removed.\n for(LocalTime slot : listAvailableTimesCopy) {\n boolean isSlotAvailable = true;\n // Loops through the next slots within the duration of the service\n for(LocalTime nextSlot = slot.plusHours(1); nextSlot.isBefore(slot.plusHours(serviceDurationInHours)); nextSlot = nextSlot.plusHours(1)) {\n if(!listAvailableTimes.contains(nextSlot)) {\n isSlotAvailable = false;\n break;\n }\n }\n if(!isSlotAvailable) {\n listAvailableTimes.remove(slot);\n }\n }\n\n return listAvailableTimes;\n }", "void makeService(int loc_temp,int des_temp)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint last_direction = 0;\r\n\t\t\tint[] shortest_path = new int[6400];\r\n\t\t\tint j_current = loc_temp % 80;\r\n\t\t\tint i_current = loc_temp / 80;\r\n\t\t\tBFS.setShortest(des_temp,shortest_path,BFS.adj_const);\r\n\t\t\tint temp = shortest_path[loc_temp];\r\n\t\t\twhile(temp != -1)\r\n\t\t\t{\r\n\t\t\t\tint length_min = BFS.getShortest(temp, des_temp,BFS.adj_const);\r\n\t\t\t\tint direction = -1;\r\n\t\t\t\tint flow_min = Main.MAX_INT;\r\n\t\t\t\tif((i_current-1)>=0 && BFS.adj_const[(i_current-1)*80+j_current][i_current*80+j_current]==1 && Flow.flows[i_current-1][j_current][1]<flow_min)\r\n\t\t\t\t{\r\n\t\t\t\t\tint length_temp = BFS.getShortest((i_current-1)*80+j_current, des_temp, BFS.adj_const);\r\n\t\t\t\t\tif(length_temp <= length_min)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdirection = 0;//up\r\n\t\t\t\t\t\tflow_min = Flow.flows[i_current-1][j_current][1];\r\n\t\t\t\t\t\tlength_min = length_temp;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif((i_current+1)<80 && BFS.adj_const[(i_current+1)*80+j_current][i_current*80+j_current]==1 && Flow.flows[i_current][j_current][1]<flow_min)\r\n\t\t\t\t{\r\n\t\t\t\t\tint length_temp = BFS.getShortest((i_current+1)*80+j_current, des_temp, BFS.adj_const);\r\n\t\t\t\t\tif(length_temp <= length_min)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdirection = 1;//down\r\n\t\t\t\t\t\tflow_min = Flow.flows[i_current][j_current][1];\r\n\t\t\t\t\t\tlength_min = length_temp;\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t\tif((j_current-1)>=0 && BFS.adj_const[i_current*80+j_current-1][i_current*80+j_current]==1 && Flow.flows[i_current][j_current-1][0]<flow_min)\r\n\t\t\t\t{\t\r\n\t\t\t\t\tint length_temp = BFS.getShortest(i_current*80+j_current-1, des_temp, BFS.adj_const);\r\n\t\t\t\t\tif(length_temp <= length_min)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdirection = 2;//left\r\n\t\t\t\t\t\tflow_min = Flow.flows[i_current][j_current-1][0];\r\n\t\t\t\t\t\tlength_min = length_temp;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tif((j_current+1)<80 && BFS.adj_const[i_current*80+j_current+1][i_current*80+j_current]==1 && Flow.flows[i_current][j_current][0]<flow_min)\r\n\t\t\t\t{\r\n\t\t\t\t\tint length_temp = BFS.getShortest(i_current*80+j_current+1, des_temp, BFS.adj_const);\r\n\t\t\t\t\tif(length_temp <= length_min)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdirection = 3;//right\r\n\t\t\t\t\t\tflow_min = Flow.flows[i_current][j_current][0];\r\n\t\t\t\t\t\tlength_min = length_temp;\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t\tLight light = Traffic.findLight(i_current,j_current);\r\n\t\t\t\tif(light != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tboolean first = true;\r\n\t\t\t\t\twhile(!leaveLight(light,last_direction,direction))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmeet_light = true;\r\n\t\t\t\t\t\tif(first)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.println(\"Taxi-\" + id + loc + \": Waiting at a traffic light\");\r\n\t\t\t\t\t\t\tfirst = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmeet_light = false;\r\n\t\t\t\t\tSystem.out.println(\"Taxi-\" + id + loc + \": Going through a traffic light\");\r\n\t\t\t\t}\r\n\t\t\t\tswitch(direction)\r\n\t\t\t\t{\r\n\t\t\t\tcase 0 ://up\r\n\t\t\t\t\tif(BFS.adj_matrix[(i_current-1)*80+j_current][i_current*80+j_current] == 1)//open_road\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tFlow.flows[i_current-1][j_current][1]++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\ti_current -= 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1 ://down\r\n\t\t\t\t\tif(BFS.adj_matrix[(i_current+1)*80+j_current][i_current*80+j_current] == 1)//open_road\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tFlow.flows[i_current][j_current][1]++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\ti_current += 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2 ://left\r\n\t\t\t\t\tif(BFS.adj_matrix[i_current*80+j_current][i_current*80+j_current-1] == 1)//open_road\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tFlow.flows[i_current][j_current-1][0]++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tj_current -= 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3 ://right\r\n\t\t\t\t\tif(BFS.adj_matrix[i_current*80+j_current][i_current*80+j_current+1] == 1)//open_road\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tFlow.flows[i_current][j_current][0]++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tj_current += 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tThread.sleep(100);\r\n\t\t\t\tlast_direction = direction;\r\n\t\t\t\tloc = new Coordinate(i_current,j_current);\r\n\t\t\t\tSystem.out.println(\"Taxi-\" + id + loc);\r\n\t\t\t\ttemp = shortest_path[i_current*80+j_current];\r\n\t\t\t}\t\t\r\n\t\t\tSystem.out.println(\"Passenger\" + passenger.loc + passenger.des + \": Taxi-\" + id + \" arrives at \" + des);\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Sorry to catch Exception!\");;\r\n\t\t}\r\n\t}", "private boolean applyTimeBasedApplicables(Demand demand, RequestInfoWrapper requestInfoWrapper,\n\t\t\t\t\t\t\t\t\t\t\t Map<String, JSONArray> timeBasedExemptionMasterMap, List<TaxPeriod> taxPeriods) {\n\n\t\tTaxPeriod taxPeriod = taxPeriods.stream().filter(t -> demand.getTaxPeriodFrom().compareTo(t.getFromDate()) >= 0\n\t\t\t\t&& demand.getTaxPeriodTo().compareTo(t.getToDate()) <= 0).findAny().orElse(null);\n\t\tif (taxPeriod == null) {\n\t\t\tlog.info(\"Demand Expired!!\");\n\t\t\treturn false;\n\t\t}\n\n\t\tboolean isCurrentDemand = false;\n\t\tif (!(taxPeriod.getFromDate() <= System.currentTimeMillis()\n\t\t\t\t&& taxPeriod.getToDate() >= System.currentTimeMillis()))\n\t\t\tisCurrentDemand = true;\n\t\t\n\t\tif(demand.getBillExpiryTime() < System.currentTimeMillis()) {\n\t\tBigDecimal sewerageChargeApplicable = BigDecimal.ZERO;\n\t\tBigDecimal oldPenalty = BigDecimal.ZERO;\n\t\tBigDecimal oldInterest = BigDecimal.ZERO;\n\t\t\n\n\t\tfor (DemandDetail detail : demand.getDemandDetails()) {\n\t\t\tif (SWCalculationConstant.TAX_APPLICABLE.contains(detail.getTaxHeadMasterCode())) {\n\t\t\t\tsewerageChargeApplicable = sewerageChargeApplicable.add(detail.getTaxAmount());\n\t\t\t}\n\t\t\tif (detail.getTaxHeadMasterCode().equalsIgnoreCase(SWCalculationConstant.SW_TIME_PENALTY)) {\n\t\t\t\toldPenalty = oldPenalty.add(detail.getTaxAmount());\n\t\t\t}\n\t\t\tif (detail.getTaxHeadMasterCode().equalsIgnoreCase(SWCalculationConstant.SW_TIME_INTEREST)) {\n\t\t\t\toldInterest = oldInterest.add(detail.getTaxAmount());\n\t\t\t}\n\t\t}\n\t\t\n\t\tboolean isPenaltyUpdated = false;\n\t\tboolean isInterestUpdated = false;\n\t\t\n\t\tMap<String, BigDecimal> interestPenaltyEstimates = payService.applyPenaltyRebateAndInterest(\n\t\t\t\tsewerageChargeApplicable, taxPeriod.getFinancialYear(), timeBasedExemptionMasterMap, demand.getBillExpiryTime());\n\t\tif (null == interestPenaltyEstimates)\n\t\t\treturn isCurrentDemand;\n\n\t\tBigDecimal penalty = interestPenaltyEstimates.get(SWCalculationConstant.SW_TIME_PENALTY);\n\t\tBigDecimal interest = interestPenaltyEstimates.get(SWCalculationConstant.SW_TIME_INTEREST);\n\t\tif(penalty == null)\n\t\t\tpenalty = BigDecimal.ZERO;\n\t\tif(interest == null)\n\t\t\tinterest = BigDecimal.ZERO;\n\n\t\tDemandDetailAndCollection latestPenaltyDemandDetail, latestInterestDemandDetail;\n\n\t\tif (interest.compareTo(BigDecimal.ZERO) != 0) {\n\t\t\tlatestInterestDemandDetail = utils.getLatestDemandDetailByTaxHead(SWCalculationConstant.SW_TIME_INTEREST,\n\t\t\t\t\tdemand.getDemandDetails());\n\t\t\tif (latestInterestDemandDetail != null) {\n\t\t\t\tupdateTaxAmount(interest, latestInterestDemandDetail);\n\t\t\t\tisInterestUpdated = true;\n\t\t\t}\n\t\t}\n\n\t\tif (penalty.compareTo(BigDecimal.ZERO) != 0) {\n\t\t\tlatestPenaltyDemandDetail = utils.getLatestDemandDetailByTaxHead(SWCalculationConstant.SW_TIME_PENALTY,\n\t\t\t\t\tdemand.getDemandDetails());\n\t\t\tif (latestPenaltyDemandDetail != null) {\n\t\t\t\tupdateTaxAmount(penalty, latestPenaltyDemandDetail);\n\t\t\t\tisPenaltyUpdated = true;\n\t\t\t}\n\t\t}\n\n\t\tif (!isPenaltyUpdated && penalty.compareTo(BigDecimal.ZERO) > 0)\n\t\t\tdemand.getDemandDetails().add(\n\t\t\t\t\tDemandDetail.builder().taxAmount(penalty.setScale(2, 2)).taxHeadMasterCode(SWCalculationConstant.SW_TIME_PENALTY)\n\t\t\t\t\t\t\t.demandId(demand.getId()).tenantId(demand.getTenantId()).build());\n\t\tif (!isInterestUpdated && interest.compareTo(BigDecimal.ZERO) > 0)\n\t\t\tdemand.getDemandDetails().add(\n\t\t\t\t\tDemandDetail.builder().taxAmount(interest.setScale(2, 2)).taxHeadMasterCode(SWCalculationConstant.SW_TIME_INTEREST)\n\t\t\t\t\t\t\t.demandId(demand.getId()).tenantId(demand.getTenantId()).build());\n\t\t}\n\n\t\treturn isCurrentDemand;\n\t}", "public List<Location> cheapestKDaysDestinationByActivity(String activity, int k) {\n\t\tList<Location> locs = locations.values().parallelStream()\n\t\t\t\t.filter(location->location.containsActivity(activity)).collect(Collectors.toList());\n\t\t\n\t\tCollections.sort(locs, new Comparator<Location>() {\n\t\t\tpublic int compare(Location l1, Location l2) {\n\t\t\t\treturn (int) l2.totalCostForKDays(k) -\n\t\t\t\t\t\t(int) l1.totalCostForKDays(k);\n\t\t\t}\n\t\t});\n\t\t\n\t\tlocs.sort((Location l1, Location l2)->(int) l1.totalCostForKDays(k) - (int) l2.totalCostForKDays(k));\n\t\t\n\t\tList<Location> ret = new ArrayList<Location>();\n\t\tret.add(locs.get(0));\n\t\t\n\t\tFloat minCost = locs.get(0).totalCostForKDays(k);\n\t\tfor (int i = 1; i < locs.size(); i++) {\n\t\t\tif (locs.get(i).totalCostForKDays(k) == minCost) {\n\t\t\t\tret.add(locs.get(i));\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ret;\n\t}", "private void storeDemandLoadMap(Map<ServiceIdentifier<?>, Map<RegionIdentifier, Double>> loadMap, RegionIdentifier root) {\n Map<ServiceIdentifier<?>, Map<RegionIdentifier, Double>> excessLoad = deepCopyMap(loadMap);\n \n SortedSet<ServiceIdentifier<?>> sortedServiceSet = new TreeSet<>(new SortServiceByPriorityComparator());\n sortedServiceSet.addAll(excessLoad.keySet());\n \n // Store the load to keepLoadMap AND rootKeepLoadMap.get(getRegionID())\n rootKeepLoadMap.put(getRegionID(), new HashMap<>());\n Map<ServiceIdentifier<?>, Map<RegionIdentifier, Double>> localKeepLoadMap = rootKeepLoadMap.get(getRegionID());\n \n for (ServiceIdentifier<?> service : sortedServiceSet) {\n for (Entry<RegionIdentifier, Double> entry : excessLoad.get(service).entrySet()) {\n RegionIdentifier client = entry.getKey();\n \n // Can't use the function getAvailableCapacity() because it depends on the keepLoadMap\n double availableCapacity = getRegionCapacity() - sumKeyKeyValues(localKeepLoadMap);\n \n // Break if region has no available capacity\n if (compareDouble(availableCapacity, 0) <= 0) {\n break;\n }\n \n// double serviceLoad = excessLoad.get(service);\n double serviceLoad = entry.getValue();\n \n // If availableCapacity >= serviceLoad\n // Store all the load \n if (compareDouble(availableCapacity, serviceLoad) >= 0) {\n updateKeyKeyLoadMap(localKeepLoadMap, service, client, serviceLoad, true);\n excessLoad.get(service).put(client, 0.0);\n } \n // If availableCapacity <= serviceLoad\n // Store availableCapacity, reduce the loadMap by availableCapacity\n // Then break since there is no available capacity\n else {\n updateKeyKeyLoadMap(localKeepLoadMap, service, client, availableCapacity, true);\n excessLoad.get(service).put(client, serviceLoad - availableCapacity);\n } \n }\n \n excessLoad.get(service).values().removeIf(v -> compareDouble(v, 0) == 0);\n } \n }", "public Computer findMostExpensiveComputerV1( ) { \n\t\tComputer highest= computers.get(0);\n\t\tfor (int index=1; index<computers.size();index++){\n\t\t\tif (highest.getPrice()<computers.get(index).getPrice()) {\n\t\t\t\thighest= computers.get(index);\n\n\t\t\t}\n\t\t}\n\t\treturn highest;\n\t}", "public static void peakHour( int hour, float price) {\n\t\t if(hour>=17&& hour<20) {\r\n\t\t\tprice += price * 0.0125; //Calculating Price in PeakHour\r\n\t\t\tSystem.out.println(\"You are Traveling in a PeakHour\");\r\n\t\t\tSystem.out.println(\"The Price at PeakHour is, Rs:\" + price);}\r\n\t\t\r\n\t\t\r\n\r\n}", "public int maxProfit(int k, int[] prices) {\n if(prices.length==0) return 0;\n if(k>(prices.length>>>1)){\n int T0=0;\n int T1=-(int)1e8;\n for(int val:prices){\n T0=Math.max(T0,T1 + val);\n T1=Math.max(T1,T0 - val);\n }\n return T0;\n }\n int Ti0[]=new int[k+1];\n int Ti1[]=new int[k+1];\n Arrays.fill(Ti1,(int)-1e8);\n for(int val:prices){\n for(int K=k;K>0;K--){\n Ti0[K]=Math.max(Ti0[K],Ti1[K]+val);\n Ti1[K]=Math.max(Ti1[K],Ti0[K-1] - val);\n }\n }\n return Ti0[k];\n }", "void leastCostPaths() {\t\n\t\tfor( int k = 0; k < N; k++ )\n\t\t\tfor( int i = 0; i < N; i++ )\n\t\t\t\tif( defined[i][k] )\n\t\t\t\t\tfor( int j = 0; j < N; j++ )\n\t\t\t\t\t\tif( defined[k][j]\n\t\t\t\t\t\t\t\t&& (!defined[i][j] || c[i][j] > c[i][k]+c[k][j]) ) {\t\n\t\t\t\t\t\t\tpath[i][j] = path[i][k];\n\t\t\t\t\t\t\tc[i][j] = c[i][k]+c[k][j];\n\t\t\t\t\t\t\tdefined[i][j] = true;\n\t\t\t\t\t\t\tif( i == j && c[i][j] < 0 ) return; // stop on negative cycle\n\t\t\t\t\t\t}\n\t}", "private Long determineCapacity(Volume volume, Volume.PersonalityTypes type, Long capacityToUseInCalculation) {\n long capacity = 0L;\n\n StorageSystem storageSystem = _dbClient.queryObject(StorageSystem.class, volume.getStorageController());\n\n if (type == Volume.PersonalityTypes.SOURCE) {\n capacity = capacityCalculatorFactory.getCapacityCalculator(storageSystem.getSystemType()).calculateAllocatedCapacity(\n capacityToUseInCalculation);\n } else if (type == Volume.PersonalityTypes.TARGET) {\n capacity = capacityCalculatorFactory.getCapacityCalculator(storageSystem.getSystemType()).calculateAllocatedCapacity(\n capacityToUseInCalculation + 5242880L);\n }\n\n return capacity;\n }", "com.cantor.drop.aggregator.model.CFTrade.Capacity getCapacity();", "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 }", "@Override\n\tpublic void update(int timeStep)\n\t{\n\t\tthis.checkForNewAppliancesAndUpdateConstants();\n\n\t\tdouble[] ownersCostSignal = this.owner.getPredictedCostSignal();\n\t\tthis.dayPredictedCostSignal = Arrays.copyOfRange(ownersCostSignal, timeStep % ownersCostSignal.length, timeStep\n\t\t\t\t% ownersCostSignal.length + this.ticksPerDay);\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"update\");\n\t\t}\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"dayPredictedCostSignal: \" + Arrays.toString(this.dayPredictedCostSignal));\n\t\t}\n\n\t\tthis.dayPredictedCostSignal = ArrayUtils\n\t\t\t\t.offset(ArrayUtils.multiply(this.dayPredictedCostSignal, this.predictedCostToRealCostA), this.realCostOffsetb);\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"afterOffset dayPredictedCostSignal: \" + Arrays.toString(this.dayPredictedCostSignal));\n\t\t}\n\n\t\tif (this.owner.isHasElectricalSpaceHeat())\n\t\t{\n\t\t\tthis.setPointProfile = Arrays.copyOf(this.owner.getSetPointProfile(), this.owner.getSetPointProfile().length);\n\t\t\tthis.optimisedSetPointProfile = Arrays.copyOf(this.setPointProfile, this.setPointProfile.length);\n\t\t\tthis.currentTempProfile = Arrays.copyOf(this.setPointProfile, this.setPointProfile.length);\n\t\t\tthis.heatPumpDemandProfile = this.calculateEstimatedSpaceHeatPumpDemand(this.setPointProfile);\n\t\t\t// (20/01/12) Check if sum of <heatPumpDemandProfile> is consistent\n\t\t\t// at end day\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger\n\t\t\t\t\t\t.trace(\"Sum(Wattbox estimated heatPumpDemandProfile): \" + ArrayUtils.sum(this.heatPumpDemandProfile));\n\t\t\t}\nif (\t\t\tthis.mainContext.logger.isTraceEnabled()) {\n\t\t\tthis.mainContext.logger.trace(\"Sum(Wattbox estimated heatPumpDemandProfile): \"\n\t\t\t\t\t+ ArrayUtils.sum(this.calculateEstimatedSpaceHeatPumpDemand(this.optimisedSetPointProfile)));\n}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.heatPumpDemandProfile = Arrays.copyOf(this.noElecHeatingDemand, this.noElecHeatingDemand.length);\n\t\t}\n\n\t\tif (this.owner.isHasElectricalWaterHeat())\n\t\t{\n\t\t\tthis.hotWaterVolumeDemandProfile = Arrays.copyOfRange(this.owner.getBaselineHotWaterVolumeProfile(), (timeStep % this.owner\n\t\t\t\t\t.getBaselineHotWaterVolumeProfile().length), (timeStep % this.owner.getBaselineHotWaterVolumeProfile().length)\n\t\t\t\t\t+ this.ticksPerDay);\n\t\t\tthis.waterHeatDemandProfile = ArrayUtils.multiply(this.hotWaterVolumeDemandProfile, Consts.WATER_SPECIFIC_HEAT_CAPACITY\n\t\t\t\t\t/ Consts.KWH_TO_JOULE_CONVERSION_FACTOR\n\t\t\t\t\t* (this.owner.waterSetPoint - ArrayUtils.min(Consts.MONTHLY_MAINS_WATER_TEMP) / Consts.DOMESTIC_HEAT_PUMP_WATER_COP));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.waterHeatDemandProfile = Arrays.copyOf(this.noElecHeatingDemand, this.noElecHeatingDemand.length);\n\t\t}\n\n\t\tif (this.coldAppliancesControlled && this.owner.isHasColdAppliances())\n\t\t{\n\t\t\tthis.optimiseColdProfile(timeStep);\n\t\t}\n\n\t\tif (this.wetAppliancesControlled && this.owner.isHasWetAppliances())\n\t\t{\n\t\t\tthis.optimiseWetProfile(timeStep);\n\t\t}\n\n\t\t// Note - optimise space heating first. This is so that we can look for\n\t\t// absolute\n\t\t// heat pump limit and add the cost of using immersion heater (COP 0.9)\n\t\t// to top\n\t\t// up water heating if the heat pump is too great\n\t\tif (this.spaceHeatingControlled && this.owner.isHasElectricalSpaceHeat())\n\t\t{\n\t\t\tif (this.owner.hasStorageHeater)\n\t\t\t{\n\t\t\t\tthis.optimiseStorageChargeProfile();\n\t\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t\t{\n\t\t\t\t\tthis.mainContext.logger.trace(\"Optimised storage heater profile = \" + Arrays.toString(this.heatPumpOnOffProfile));\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\tthis.optimiseSetPointProfile();\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger.trace(\"Optimised set point profile = \" + Arrays.toString(this.heatPumpOnOffProfile));\n\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (this.waterHeatingControlled && this.owner.isHasElectricalWaterHeat())\n\t\t{\n\t\t\tthis.optimiseWaterHeatProfileWithSpreading();\n\t\t}\n\n\t\tif (this.eVehicleControlled && this.owner.isHasElectricVehicle())\n\t\t{\n\t\t\tthis.optimiseEVProfile();\n\t\t}\n\n\t\t// At the end of the step, set the temperature profile for today's\n\t\t// (which will be yesterday's when it is used)\n\t\tthis.priorDayExternalTempProfile = this.owner.getContext().getAirTemperature(timeStep, this.ticksPerDay);\n\t}", "Integer backlogCapacity();", "@Override\n public CompletableFuture<Optional<InProgressCandleData>> fetchCandleDataForInProgressCandle(\n TradePair tradePair, Instant currentCandleStartedAt, long secondsIntoCurrentCandle, int secondsPerCandle) {\n String startDateString = DateTimeFormatter.ISO_LOCAL_DATE_TIME.format(LocalDateTime.ofInstant(\n currentCandleStartedAt, ZoneOffset.UTC));\n long idealGranularity = Math.max(10, secondsIntoCurrentCandle / 200);\n // Get the closest supported granularity to the ideal granularity.\n int actualGranularity = getCandleDataSupplier(secondsPerCandle, tradePair).getSupportedGranularities().stream()\n .min(Comparator.comparingInt(i -> (int) Math.abs(i - idealGranularity)))\n .orElseThrow(() -> new NoSuchElementException(\"Supported granularities was empty!\"));\n // TODO: If actualGranularity = secondsPerCandle there are no sub-candles to fetch and we must get all the\n // data for the current live syncing candle from the raw trades method.\n return HttpClient.newHttpClient().sendAsync(\n HttpRequest.newBuilder()\n .uri(URI.create(String.format(\n \"https://api.pro.coinbase.com/products/%s/candles?granularity=%s&start=%s\",\n tradePair.toString('-'), actualGranularity, startDateString)))\n .GET().build(),\n HttpResponse.BodyHandlers.ofString())\n .thenApply(HttpResponse::body)\n .thenApply(response -> {\n logger.info(\"coinbase response: \" + response);\n JsonNode res;\n try {\n res = OBJECT_MAPPER.readTree(response);\n } catch (JsonProcessingException ex) {\n throw new RuntimeException(ex);\n }\n\n if (res.isEmpty()) {\n return Optional.empty();\n }\n\n JsonNode currCandle;\n Iterator<JsonNode> candleItr = res.iterator();\n int currentTill = -1;\n double openPrice = -1;\n double highSoFar = -1;\n double lowSoFar = Double.MAX_VALUE;\n double volumeSoFar = 0;\n double lastTradePrice = -1;\n boolean foundFirst = false;\n while (candleItr.hasNext()) {\n currCandle = candleItr.next();\n if (currCandle.get(0).asInt() < currentCandleStartedAt.getEpochSecond() ||\n currCandle.get(0).asInt() >= currentCandleStartedAt.getEpochSecond() +\n secondsPerCandle) {\n // skip this sub-candle if it is not in the parent candle's duration (this is just a\n // sanity guard) TODO(mike): Consider making this a \"break;\" once we understand why\n // Coinbase is not respecting start/end times\n continue;\n } else {\n if (!foundFirst) {\n // FIXME: Why are we only using the first sub-candle here?\n currentTill = currCandle.get(0).asInt();\n lastTradePrice = currCandle.get(4).asDouble();\n foundFirst = true;\n }\n }\n\n openPrice = currCandle.get(3).asDouble();\n\n if (currCandle.get(2).asDouble() > highSoFar) {\n highSoFar = currCandle.get(2).asDouble();\n }\n\n if (currCandle.get(1).asDouble() < lowSoFar) {\n lowSoFar = currCandle.get(1).asDouble();\n }\n\n volumeSoFar += currCandle.get(5).asDouble();\n }\n\n int openTime = (int) (currentCandleStartedAt.toEpochMilli() / 1000L);\n\n return Optional.of(new InProgressCandleData(openTime, openPrice, highSoFar, lowSoFar,\n currentTill, lastTradePrice, volumeSoFar));\n });\n }", "@Test\r\n\tpublic void testGetPlannedCapacity_Nonlinear_Interval() {\n\t\tassertEquals(0, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 0, 0, 0), 0);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 0, 300, 900), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*150.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 0, 450, 600), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 300, 900, 1500), 1e-8);\r\n\t\t\r\n\t\tassertEquals(0, schedulerNonlinear.getPlannedCapacity(chargingStation, car, 0, 0, 0), 0);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacity(chargingStation, car, 0, 300, 900), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*150.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacity(chargingStation, car, 0, 450, 600), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacity(chargingStation, car, 300, 900, 1500), 1e-8);\r\n\t\t\r\n\t\t\r\n\t}", "public double calculateCostInclusive() {\n\t\tdouble accumulatedCost = 0;\n\t\taccumulatedCost += calculateEuclideanDistance(host.grid.getLocation(host), solutionRepresentation.get(0));\n\t\taccumulatedCost += calculateCostExclusive();\n\t\t\n\t\treturn accumulatedCost;\n\t}", "private static Company best_price(long input) {\n\t\tif(all_prices.isEmpty()) { //if no company was successfully parsed/empty file\n\t\t\tCompany temp = new Company(\"Empty\",new TreeMap<Long,Double>(),0,Long.MAX_VALUE,Double.MAX_VALUE);\n\t\t\treturn temp;\n\t\t}\n\t\t\n\t\tfor(int i=0; i<all_prices.size(); i++) { //for each operator\n\t\t\tCompany operatr = all_prices.elementAt(i);\n\t\t\tMap<Long,Double> operator_price_map = operatr.getPrices(); //take its ext to price map\n\t\t\t//find which extension is the longest for a certain operator.\n\t\t\t//in so doing we are able cut the input number's digit search\n\t\t\t//to the longest extension (in terms of number of digits) available \n\t\t\tint longest_extension_digits = operatr.getMost_digits_ext(); \n\t\t\tString str_input = String.valueOf(input);\n\t\t\tfor(int j=longest_extension_digits; j>0; j--) { //going from longest possible substring of input num for an operator\n\t\t\t\tString input_digit_substring = str_input.substring(0, j);\n\t\t\t\tlong digit_prefix = Long.valueOf(input_digit_substring);\n\t\t\t\tif (operator_price_map.containsKey(digit_prefix)) { //if the operator has a match with the number, we terminate search because the longest possible extension has been chosen\n\t\t\t\t\toperatr.setLongest_matching_extension(digit_prefix);\n\t\t\t\t\toperatr.setMatching_price(operator_price_map.get(digit_prefix));\n\t\t\t\t\tbreak; //break because we want to prioritize the longest extension that matches\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tCollections.sort(all_prices, new CompanyComparator());\n\t\t\n\t\tCompany result = all_prices.elementAt(0);\n\t\treturn result;\n\t}", "protected BigDecimal calculateExcess(Client c, BigDecimal current) {\r\n\r\n\t\tLsv latest = lsvDao.getLatest(c);\r\n\t\tif (latest == null)\r\n\t\t\treturn BigDecimal.ZERO;\r\n\t\tBigDecimal excess = latest.getLSV().subtract(current);\r\n\r\n\t\tif (excess.signum() > 0)\r\n\t\t\treturn excess;\r\n\t\telse\r\n\t\t\treturn BigDecimal.ZERO;\r\n\t}", "public double getPrice(RequiredSpecs specs, int waitingTime){\r\n\t\tdouble priceMemory;\r\n\t\tdouble priceCPU;\r\n\t\tif(canRun(specs)){\r\n\t\t\tpriceMemory = specs.getMemory()*this.pricePerMemoryUnit*(1 - getFractionMemoryTaken());\r\n\t\t\tpriceCPU = specs.getCpu()*this.pricePerCpuUnit*(1 - getFractionCpuTaken());\r\n\t\t}else{\r\n\t\t\tpriceMemory = specs.getMemory()*this.pricePerMemoryUnit - this.discountPerWaitingSecond * waitingTime;\r\n\t\t\tpriceCPU = specs.getCpu()*this.pricePerCpuUnit - this.discountPerWaitingSecond * waitingTime;\r\n\t\t}\r\n\t\tdouble finalPrice = (priceMemory + priceCPU)*specs.getTime()*this.pricePerSecond;\r\n\t\tif(finalPrice <= 0){\r\n\t\t\treturn this.minPrice;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn (priceMemory + priceCPU)*specs.getTime()*this.pricePerSecond;\r\n\t\t}\r\n\t}", "public int maxProfit(int k, int[] prices) {\n int n = prices.length;\n // validate input 1\n if (k <= 0 || n == 0) return 0;\n\n // validate input 2 : if k is large enough, the question will be the same as question II.\n if (k >= n / 2) {\n int result = 0;\n for (int i = 1; i < n; ++i) {\n if (prices[i] - prices[i - 1] > 0) {\n result += prices[i] - prices[i - 1];\n }\n }\n return result;\n }\n int[][][] dp = new int[prices.length + 1][k + 1][2];\n for (int i = 0; i < dp.length; i++) {\n dp[i][0][1] = Integer.MIN_VALUE;\n }\n for (int i = 0; i < dp[0].length; i++) {\n dp[0][i][1] = Integer.MIN_VALUE;\n }\n for (int i = 1; i < dp.length; i++) {\n for (int j = 1; j < dp[0].length; j++) {\n dp[i][j][0] = Math.max(dp[i - 1][j][1] + prices[i - 1], dp[i - 1][j][0]);\n dp[i][j][1] = Math.max(dp[i - 1][j - 1][0] - prices[i - 1], dp[i - 1][j][1]);\n }\n }\n return dp[dp.length - 1][k][0];\n }", "private Node lowestCostThrough(List<Node> openSet, Map<Node, Double> costThrough){\n Node lowest = openSet.get(0);\n\n for(Node n: openSet){\n if(costThrough.get(n) < costThrough.get(lowest)){\n lowest = n;\n }\n }\n return lowest;\n }", "public int findCheapestPrice(int n, int[][] flights, int src, int dst, int K) {\n int[][] g = new int[n][n];\n \n for(int[] f : flights){\n int start = f[0];\n int end = f[1];\n int price = f[2];\n g[start][end] = price;\n }\n \n PriorityQueue<int[]> pq = new PriorityQueue<>((a,b)->a[0]-b[0]);\n pq.offer(new int[]{0,src,K+1});\n while(!pq.isEmpty()){\n int[] curr = pq.poll();\n int currPrice = curr[0];\n int currPoint = curr[1];\n int stepsRemain = curr[2];\n \n // if this point is destination, finish\n if(currPoint == dst) return currPrice;\n \n if(stepsRemain >0){\n // Add all reachable neighbors\n for(int i=0; i<n; i++){\n if(g[currPoint][i] != 0){\n int nextPrice = g[currPoint][i];\n pq.offer(new int[]{currPrice+nextPrice, i, stepsRemain-1});\n }\n } \n } \n }\n return -1;\n }", "public int minCost(int[][] costs) {\n\nif(costs== null || costs.length == 0)\nreturn 0;\n// int n_houses = costs.length ;\nint lastR = costs[0][0];\nint lastB = costs[0][1];\nint lastG = costs[0][2];\nint currR,currB,currG ;\nfor(int i = 1; i< costs.length ; i++ ){\ncurrR = costs[i][0] + Math.min(lastB,lastG);\ncurrB = costs[i][1] + Math.min(lastR,lastG);\ncurrG = costs[i][2] + Math.min(lastR,lastB);\nlastR = currR;\nlastB = currB;\nlastG = currG;\n}\n// return Math.min(Math.min(lastR,lastB),lastG);\nreturn Math.min(Math.min(lastR,lastB),lastG);\n}", "@Test\r\n\tpublic void testGetPlannedCapacity_Nonlinear() {\n\t\tassertEquals(car.sumUsedPhases*900.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 0, 0, 900), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 300, 300, 900), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 0, 0, 600), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*300.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 300, 300, 600), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*1200.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 300, 300, 1500), 1e-8);\r\n\t\t\r\n\t}", "public int getCost() { return hki.getBound(); }", "public String getNewTicket(String serviceName) {\n\n\t\tif (serviceName == null)\n\t\t\treturn null;\n\n\t\tserviceName = serviceName.toUpperCase();\n\n\t\tService s = services.get(serviceName);\n\n\t\tif (s == null)\n\t\t\t// s is null or the service does not exist\n\t\t\treturn null;\n\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\n\t\tDate d = new Date();\n\n\t\t// add new ticket to the queue\n\t\tTicket t = new Ticket(s.getNextTicketId(), formatter.format(d));\n\n\t\ttickets.get(s).add(t);\n\n\t\t// obtain waiting time\n\t\tint time = s.getWaitTime();\n\t\tint num = tickets.get(s).indexOf(t);\n\t\tint servCount = 0;\n\n\t\tIterator<Counter> servIter = counters.iterator();\n\n\t\twhile (servIter.hasNext()) {\n\t\t\tif (servIter.next().getServices().contains(s))\n\t\t\t\tservCount++;\n\t\t}\n\t\tif (servCount <= 0)\n\t\t\treturn null;\n\n\t\tfloat totTime = time * num / servCount;\n\n\t\tif (totTime < 1) {\n\t\t\treturn t.toString() + System.lineSeparator() + \"Estimated waiting time: less than 1 minute.\";\n\t\t} else if (totTime < 60) {\n\t\t\treturn t.toString() + System.lineSeparator() + \"Estimated waiting time: \" + Math.round(totTime)\n\t\t\t\t\t+ \" minutes.\";\n\t\t} else {\n\t\t\tfloat hours = totTime / 60;\n\t\t\treturn t.toString() + System.lineSeparator() + \"Estimated waiting time: \" + (int) hours + \" hour/s and \"\n\t\t\t\t\t+ Math.round(totTime) % 60 + \" minutes.\";\n\t\t}\n\n\t}", "private static void bruteForceStep(int thePrevStop, int theCurrentStop, int theCurrentCost,\r\n\t\t\tArrayList<ArrayList<Integer>> theCurrentPath, List<List<Integer>> theCostArray) {\r\n\t\t\r\n\t\tArrayList<ArrayList<Integer>> pathInstance = new ArrayList<ArrayList<Integer>>();\r\n\t\tpathInstance.addAll(theCurrentPath);\r\n\t\t\r\n\t\t//Update our cost based on the rental fee to get from the previous stop to the current one.\r\n\t\ttheCurrentCost += theCostArray.get(thePrevStop).get(theCurrentStop);\r\n\t\t\r\n\t\t//Update our rental path with the location that we have stopped at.\r\n\t\tArrayList<Integer> currentStopLocation = new ArrayList<Integer>();\r\n\t\tcurrentStopLocation.add(thePrevStop);\r\n\t\tcurrentStopLocation.add(theCurrentStop);\t\t\r\n\t\tpathInstance.add(currentStopLocation);\r\n\t\t\r\n\t\tif(theCurrentStop == theCostArray.size() - 1) {\r\n\t\t\t//We have reached our destination.\r\n\t\t\t\r\n\t\t\tif(theCurrentCost < bruteForceMinCost) {\r\n\t\t\t\t//Check to see if the current rental cost is lower than the global minimum.\r\n\t\t\t\t//If so, update the global minimum, along with the attached path.\r\n\t\t\t\t\r\n\t\t\t\tbruteForceMinCost = theCurrentCost;\r\n\t\t\t\tbruteForcePath = pathInstance;\r\n\t\t\t}\r\n\t\t\t\r\n\r\n\t\t} else {\r\n\t\t\t//We have not reached our destination.\r\n\t\t\t//Recursively check all possible paths that derive from the current Path.\r\n\t\t\tfor(int nextStop = theCurrentStop + 1; nextStop < theCostArray.size(); nextStop++) {\r\n\t\t\t\tbruteForceStep(theCurrentStop, nextStop, theCurrentCost, pathInstance, theCostArray);\r\n\t\t\t}\r\n\t\t}\t\r\n\t\treturn;\r\n\t}", "@Override\r\n public final double getTotalParkingFee(double hours) throws IllegalHoursException {\r\n \r\n int iHours = (int) hours;\r\n \r\n if (hours < 0){\r\n throw new IllegalHoursException();\r\n }\r\n if ( iHours <= getMinHours()){\r\n totalParkingFee = getMinCharge();\r\n } else {\r\n totalParkingFee = getMinCharge() + ((iHours - getMinHours()) * getPerHour());\r\n }\r\n return totalParkingFee;\r\n }", "public int getKth(int lo, int hi, int k) {\n HashMap<Integer, Integer> map = new HashMap<>();\n map.put(1, 0);\n int[][] powerValues = new int[hi - lo + 1][2];\n for (int i = lo; i <= hi; i++) {\n powerValues[i - lo][1] = getPowerValue(i, map);\n powerValues[i - lo][0] = i;\n }\n // for (int i = 0; i < powerValues.length; i++) {\n // System.out.print(Arrays.toString(powerValues[i]) + \" \");\n // }\n Arrays.sort(powerValues, new Comparator<int[]>() {\n @Override\n public int compare(int[] o1, int[] o2) {\n return o1[1] - o2[1];\n }\n });\n // System.out.println();\n // for (int i = 0; i < powerValues.length; i++) {\n // System.out.print(Arrays.toString(powerValues[i]) + \" \");\n // }\n return powerValues[k - 1][0];\n }", "protected SelfCheckout fastestSelfCheckout() {\n return servers.stream().filter(x -> !x.isHuman())\n .map(x -> (SelfCheckout) x)\n .min(Comparator.comparing(Counter::getTime))\n .get();\n }", "public int energyRequired(Time time) {\n\n Random r = new Random();\n Time universeTime = universe.getUniverseTime();\n\n /*\n If we are basing our calculation on the current Universe time, the\n appliance will be on thanks to the TimedEvent handler so we do not need\n to check for matching ApplianceTimedEvents, we can just check isOn\n */\n if (time.equals(universeTime)) {\n return energy = isOn ? minUsage + r.nextInt(maxUsage - minUsage) : 0;\n \n }\n else { // THIS IS A FORECAST\n\n //Check usage hours for a TimedEvent where the appliance is used at time\n //usage hours are ordered in acsending order of start times\n for (Iterator<ApplianceTimedEvent> i = usageHours.iterator(); i.hasNext();) {\n ApplianceTimedEvent event = i.next();\n\n //start time comes after time. Therefore for all succeeding TimedEvents\n //the start time would also come after time (ascending order)\n //energy remains at zero and breaks out of iteration\n if (event.getStartTime().compare(time) > 0) \n break;\n \n\n //time occurs within a TimedEvent\n //energy is updated to value and breaks out of iteration\n if (event.containsTime(time)) {\n return energy = minUsage + r.nextInt(maxUsage - minUsage);\n \n }\n\n }\n return energy = 0; /*EXIT AT THIS POINT HAVING NOT FOUND ANY ENERGY USAGE AT THIS TIME FOR THIS APPLIANCE*/\n\n }\n }", "@Override\r\n\tpublic double getManufactureTime() {\r\n\t\tdouble highTime = 0;\r\n\t\t\r\n\t\tfor(Product p: parts) {\r\n\t\t\tif(p.getManufactureTime() > highTime)\r\n\t\t\t\thighTime = p.getManufactureTime();\r\n\t\t}\r\n\t\t\r\n\t\treturn highTime;\r\n\t}", "@Override\r\n\tpublic int calculateHCost(ArrayList<Job> jobList, ArrayList<Job> currPath, Town destTown) { // O(n^3)\r\n\t\tint heuristicCost = 0;\r\n\t\tboolean firstSearch = true;\r\n\t\tint minCost = 0;\r\n\t\t// checks each Job in Job List not in the current path \r\n\t\tfor (Job j : jobList) { // O(n)\r\n\t\t\tif (!currPath.contains(j)) { // O(n)\r\n\t\t\t\t// add travel cost only\r\n\t\t\t\theuristicCost += j.getTravelCost(); \r\n\t\t\t\t//+ j.getThisTown().getUnloadingCost(); // O(1) --> Faster heuristic (not sure if admissible)\r\n\t\t\t\tif (firstSearch) { // find minCost to the connecting towns\r\n\t\t\t\t\tminCost = destTown.getTravelCost(j.getThisTown()); // getTravelCost is O(n)\r\n\t\t\t\t\tfirstSearch = false;\r\n\t\t\t\t} else { // find minCost to the connecting towns\r\n\t\t\t\t\tif (destTown.getTravelCost(j.getThisTown()) < minCost) { // O(n)\r\n\t\t\t\t\t\tminCost = destTown.getTravelCost(j.getThisTown()); // O(n)\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn heuristicCost + minCost;\r\n\t}", "protected abstract double getDefaultCost();", "private double calcCost(Cloudlet cloudlet, FogDevice fogDevice) {\n double cost = 0;\n //cost includes the processing cost\n cost += fogDevice.getCharacteristics().getCostPerSecond() * cloudlet.getCloudletLength( ) / fogDevice.getHost().getTotalMips();\n // cost includes the memory cost\n cost += fogDevice.getCharacteristics().getCostPerMem() * cloudlet.getMemRequired();\n // cost includes the bandwidth cost\n cost += fogDevice.getCharacteristics().getCostPerBw() * (cloudlet.getCloudletFileSize() + cloudlet.getCloudletOutputSize());\n return cost;\n }", "public double calcEnergyToBeBought(double neededEnergy) {\n double energyLossIncluded = neededEnergy/cableEnergyLoss; //Here the amount of energy lost is calculated, see cable.getCost() and http://large.stanford.edu/courses/2010/ph240/harting1/\n return energyOffer.getEnergy() <= energyLossIncluded ? (energyOffer.getEnergy()) : energyLossIncluded;\n }", "public static void chargeHire(int minutes) {\n int time = minutes;\n double cost;\n\n if(time >= 0 && time <30) {\n cost = 0;\n }\n else {\n if(time >30 && time < 60) {\n cost = 0.5;\n }\n else {\n if(time > 60 && time < 120) {\n cost = 1.50;\n }\n else{\n if(time > 120 && time <180) {\n cost = 6.50;\n }\n else {\n\n int numOfHalfHours = (time/30);\n int b = (numOfHalfHours - 5);\n int c = (b*2);\n cost = (6.50 + c);\n }\n }\n }\n }\n System.out.println(\"€\" +cost);\n if(cost <= accountBalance) {\n accountBalance = (accountBalance - cost);\n// System.out.println(\"Bike rent successful! you have been charged\" + cost);\n Receipt.printSlip(cost);\n }\n else {\n System.out.println(\"There were insuficient funds in your account.\" + \"\\n\" +\n \"We will now charge the credit card you have provided us instead.\");\n }\n }", "Long getTemperatureForLastHour();", "double calculateOvertime(double hoursWorked){\n\t\tif(hoursWorked<getNormalWorkweek()){\n\t\t\treturn(0.0);\n\t\t}else{\n\t\t\treturn((getHourlyRate()*2)*(hoursWorked-getNormalWorkweek()));\n\t\t}\n\t}", "LocalDateTime calculateNextPossibleStartTime(LocalDateTime startTime);", "public Long calculateTotalAgingForFirstDay(Integer day, LocalDateTime endDateParam, LocalDateTime startDateParam,\n\t\t\tInteger totalSecondRest, List<KPIServiceHourRest> ticketRests) {\n/*\t\t \n * 9:02-8:29-restAging\n *\t\t 8:29:00,9:10:00,\n *\t\t 8:30:00, 9:00\n *\t\t Istirahat jam 8:30-9:00 \n *\t\t long restAging=0L<\n *\t \n *\t if(startDateParam<restStart && startDateParam<restEnd)\n *\t {\n *\t \t\t8:29<8:30 Y, 8:29<9:00 Y\n *\t \t\trestAging=9:00:00-8:30:00\n *\t \t \t 8:29<11:30 Y, 8:29<1:00:00 Y\n *\t \t\trestAging=9:00:00-8:30:00\n *\n *\t \t\t9:10<8:29 N, 9:10<9:00 N\n *\t \t\tbreak;\n *\t \t\t8:29<11:30 Y, 8:29<1:00 Y\n *\t }\n */\n\t\t Long totalAging=new Long(0);\n\t \t Long totalAgingOnRest=0L;\n\t \t for(KPIServiceHourRest ticketRest:ticketRests){\n\t \t\t if(day==ticketRest.getDay()){\n\t \t\t\t LocalDateTime restStart=LocalDateTime.fromDateFields(ticketRest.getFromTimeRest());\n\t\t LocalDateTime restEnd=LocalDateTime.fromDateFields(ticketRest.getToTimeRest());\n\t\t if(CustomDateUtils.compareTime(new DateTime(startDateParam.toDateTime()), new DateTime(restStart.toDateTime()))<=0\n\t\t \t\t && CustomDateUtils.compareTime(new DateTime(startDateParam.toDateTime()), new DateTime(restEnd.toDateTime()))<=0){\n\t\t \t totalAgingOnRest+=secondTotalAgingBetweenDate(restEnd.toDate().getTime(), restStart.toDate().getTime(), 0L);\n\t\t }\n\t \t\t }\n\t \t }\n\t \t totalAging=secondTotalAgingBetweenDate(endDateParam.toDate().getTime(),startDateParam.toDate().getTime(),totalAgingOnRest);\n return totalAging;\n\t}", "private void calculatePrice() {\r\n int price = 0;\r\n int day = show.getDateTime().getDayOfMonth();\r\n int month = show.getDateTime().getMonthValue();\r\n \r\n for (int i = 0; i < seats.size(); i++) {\r\n String option = seats.get(i);\r\n \r\n if (Arrays.stream(sectionNames).parallel().anyMatch(option::contains)) {\r\n String section = option.replaceAll(\"\\\\d\",\"\");\r\n int number = Integer.parseInt(option.replaceAll(\"\\\\D+\",\"\"));\r\n \r\n if (section.equals(\"m\")) {\r\n if (number <= 100) {\r\n price += mainFloorPrice;\r\n } else {\r\n price += mainFloorPremium;\r\n }\r\n } else if (section.equals(\"sb\")) {\r\n if (number <= 25) {\r\n price += southBalconyPrice;\r\n } else {\r\n price += southBalconyPremium;\r\n }\r\n } else if (section.equals(\"wb\")) {\r\n price += westBalconyPrice;\r\n } else if (section.equals(\"eb\")) {\r\n price += eastBalconyPrice;\r\n }\r\n }\r\n }\r\n \r\n if (seats.size() >= 5 && seats.size() <= 10 && !(month == 12 && (day == 26 || day == 27))) {\r\n price -= (2 * seats.size());\r\n }\r\n \r\n if (seats.size() >= 11 && seats.size() <= 20 && !(month == 12 && (day == 26 || day == 27))) {\r\n price -= (5 * seats.size());\r\n }\r\n \r\n if (month == 12 && (day == 26 || day == 27)) {\r\n price = seats.size() * 20;\r\n }\r\n \r\n totalPrice = price;\r\n }", "int processCosts(int houseNo, int color) {\n String key = getKey(houseNo, color);\n Integer cost = costMap.get(key);\n if (cost != null) {\n return cost;\n }\n if (houseNo == numHouses - 1) {\n //base case when this is the last house\n //cost is exactly that of the given house's color, it has no more depencies\n //as its the last house\n cost = costs[houseNo][color];\n costMap.put(key, cost);\n return cost;\n }\n int colorACSoFar = 0;\n int colorBCSoFar = 0;\n if (color == 0) {\n colorACSoFar = processCosts(houseNo + 1, 1);\n colorBCSoFar = processCosts(houseNo + 1, 2);\n } else if (color == 1) {\n colorACSoFar = processCosts(houseNo + 1, 0);\n colorBCSoFar = processCosts(houseNo + 1, 2);\n } else if (color == 2) {\n colorACSoFar = processCosts(houseNo + 1, 0);\n colorBCSoFar = processCosts(houseNo + 1, 1);\n }\n //get the min cost of other two colors for the rest of houses\n int costsSoFar = Math.min(colorACSoFar, colorBCSoFar);\n //add cost for the current color for current house\n costsSoFar += costs[houseNo][color];\n //update cost for house/color in map so next time it doesnt have to be recalculated\n costMap.put(key, costsSoFar);\n return costsSoFar;\n }", "public Computer findMostExpensiveComputerV2( ) { \n\t\tComputer highest= computers.get(0);\n\t\tint index=1; \n\t\twhile (index<computers.size()){\n\t\t\tif (highest.getPrice()<computers.get(index).getPrice()) {\n\t\t\t\thighest= computers.get(index);\n\n\t\t\t}\n\t\t\tindex ++;\n\t\t}\n\t\treturn highest;\n\n\t}", "public float getCost(int weight, int volume) {\r\n\t\t//System.out.println(\"getCost method in Journey called. should have been a delivery.\");\r\n\t\ttimesUsed++;\r\n\t\tfloat total = 0;\r\n\t\tfor(Path p: usedPaths){\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttotal += p.calcCost(weight, volume);\r\n\t\t\t\t} catch (OverweightException 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} catch (ExceededVolumeException 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}\r\n\t\ttotalCost += total;\r\n\t\treturn total;\r\n\t}", "@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}", "@Test(timeout = 5000)\n public void dynamicTest4() {\n int[] hourlyVolume = generateRandomHourlyVolume(1000, 100, \"seed\".hashCode());\n int[] fullServiceCapacity = {100,90,80,70,60,50,40,30,20,10};\n int[] regularServiceCapacity = {70,50,40,30,20,10};\n int[] minorServiceCapacity = {50,40,20,10};\n int expectedResult = 16874;\n Assert.assertEquals(expectedResult, Dynamic.optimalLossDynamic(hourlyVolume, fullServiceCapacity, regularServiceCapacity, minorServiceCapacity));\n }", "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 }", "public HourlyWorker() {\n\t\tthis.num_hours = 1;\n\t\tthis.hourly_rate = 0.01;\n\t}", "BigDecimal getHighPrice();", "public static int findDecimal(int currentDecimal, int previousNum, int lastDecimal) {\n if (previousNum > currentDecimal) {\n return lastDecimal - currentDecimal;\n //if if previous is greater than current then subtract that\n } else {\n return lastDecimal + currentDecimal;\n //if previous value is smaller than current then add current to total\n }\n}", "private int costToSupport(PlanGraphStep step, int currentLevel) {\n\t\t\n\t\tint cost = 0;\n\t\t\n\t\t/* make sure we can achieve step */\n\t\tif(step.getInitialLevel() != -1 && step.getInitialLevel() <= currentLevel) {\n\t\t\t\n\t\t\t/* cost of achieving a step is the max over the cost of achieving the preconditions */\n\t\t\tfor (PlanGraphLiteral precondition : step.getParentNodes()) {\n\t\t\t\tif (!isSupported(precondition, currentLevel - 1))\n\t\t\t\t\tcost = Math.max(cost, costToSupport(precondition, currentLevel - 1) + 1 );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tcost = Integer.MAX_VALUE;\n\t\t\n\t\treturn cost;\n\t}", "public int getSolutionCost(){\r\n if (this.path_solution.size()==0)\r\n return 0;\r\n return this.path_solution.get(this.path_solution.size()-1).getCost();\r\n }", "public Tournee chercheSolution(int tpsLimite, ContraintesTournee contraintes, Map<String, Map<String, Chemin>> plusCourtsChemins){\n\t\t//HashMap avec l'id et le point pour pouvoir recuperer le point a partir de l'id\n\t\tHashMap<String, Intersection> intersections = new HashMap<String, Intersection>();\n\t\tIterator<PointEnlevement> itEnlev = (Iterator<PointEnlevement>)contraintes.getPointsEnlevement().iterator();\n\t\tIterator<PointLivraison> itLiv = (Iterator<PointLivraison>)contraintes.getPointsLivraison().iterator();\n\t\t\n\t\t//Remplissage HashMap des intersections \n\t\tintersections.put(contraintes.getDepot().getId(), contraintes.getDepot());\n\t\tint nbSommets = 1;\n\t\twhile(itEnlev.hasNext()) {\n\t\t\tIntersection intersec = (Intersection) itEnlev.next();\n\t\t\tintersections.put(intersec.getId(), intersec);\n\t\t\tnbSommets++;\n\t\t}\n\t\twhile(itLiv.hasNext()) {\n\t\t\tIntersection intersec = (Intersection) itLiv.next();\n\t\t\tintersections.put(intersec.getId(), intersec);\n\t\t\tnbSommets++;\n\t\t}\n\t\t\n\t\t//Initialisation de la HashMap vuDispo - contenant les attributs boolean vu et dispo\n\t\tHashMap<String, Paire> vuDispo = initVuDispo(contraintes, intersections);\n\t\t\n\t\tTournee tournee = new Tournee(contraintes);\n\t\t//Sequentiel et MinFirst\n//\t\tcalculerSimplementTournee(tournee, contraintes.getDepot().getId(), (nbSommets-1), intersections, vuDispo, plusCourtsChemins);\t\t\n\t\t\n\t\t//MinFirst + 2-Opt\n\t\tcalculerSimplementTournee(tournee, contraintes.getDepot().getId(), (nbSommets-1), intersections, vuDispo, plusCourtsChemins);\t\t\n\t\ttwoOpt(tpsLimite, System.currentTimeMillis(), tournee, plusCourtsChemins, intersections);\n\t\t\n\t\treturn tournee;\n\t}", "public double calculatedConsuption(){\nint tressToSow=0;\n\nif (getKiloWatts() >=1 && getKiloWatts() <= 1000){\n\ttressToSow = 8;\n}\nelse if (getKiloWatts() >=1001 && getKiloWatts ()<=3000){\n\ttressToSow = 35;\n}\nelse if (getKiloWatts() > 3000){\n\ttressToSow=500;\n}\nreturn tressToSow;\n}", "private int calculatingWeeklySavings(String accountUid, String categoryUid, String lastTimeStamp,\n String currentTimeStamp) throws Exception {\n LOGGER.debug(\"Going into Client Service Layer to get list of transactions. CategoryUid: \"+categoryUid);\n List<FeedItemSummary> feedItems =clientService.getWeeksOutGoingTransactions(accountUid, categoryUid,lastTimeStamp,\n currentTimeStamp);\n //equals feed item but minimised to amounts as thats all i want\n\n //get round up amount\n int savingsAddition=0;\n\n for (FeedItemSummary item:feedItems) {\n savingsAddition+=100-(item.getAmount()%100);\n }\n LOGGER.info(\"Calculated amount to be transfered to savings\");\n return savingsAddition;\n }", "BigDecimal getLowPrice();", "public void findHighestPowerUnitAnySize() {\r\n\t\ttimer.startAlgorithm(\"ChronalCharger.findHighestPowerUnitAnySize()\");\r\n\t\tfor (int i=1; i<=300; i++) {\r\n//\t\t\tcurrentGrid = new ShrinkingPowerGrid(i, 300);\r\n\t\t\tfindHighestPowerUnit(i);\r\n//\t\t\tpreviousGrids.add(currentGrid);\r\n\t\t}\r\n\t\ttimer.stopAlgorithm();\r\n\t}", "@Test(timeout = 500)\n public void dynamicTest3b() {\n int[] hourlyVolume = {80, 80, 70, 80, 50, 42, 39, 69, 40, 10};\n int[] fullServiceCapacity = {110,100,80,70,50,50,50,30,20};\n int[] regularServiceCapacity = {80,80,60,30,20,20,10,10};\n int[] minorServiceCapacity = {80,60};\n int expectedResult = 59;\n Assert.assertEquals(expectedResult, Dynamic.optimalLossDynamic(hourlyVolume, fullServiceCapacity, regularServiceCapacity, minorServiceCapacity));\n }", "private int getMinPrior(int theIndex) {\n \n /* \n * We're looking for the minimum coins\n * needed to create the value up to now.\n */\n int minimumThroughout = Integer.MAX_VALUE;\n \n /* Store the current coin we are looking at. */\n int coinIndex = 0;\n int bestCoin = -1;\n \n /* \n * Because of the dynamically updated minimums,\n * we simply check any coins which leave us with\n * a positive value remaining to verify.\n */\n while (coinIndex < myCoins.length \n && myCoins[coinIndex] <= theIndex) {\n \n /* We want to see minimum up to this point. */\n int minimumNow = myIndices[theIndex - myCoins[coinIndex]];\n \n /* Update minimum to this point. */\n if (minimumNow < minimumThroughout) {\n minimumThroughout = minimumNow;\n bestCoin = myCoins[coinIndex];\n }\n ++coinIndex;\n }\n \n /* Update Purses by previous optimal solution and adding newest coin. */\n try {\n myPurses[theIndex] = myPurses[theIndex - bestCoin].clone();\n }\n catch (final CloneNotSupportedException e) {\n System.out.println(\"Purse in CoinCounter algorithm could\\n\"\n + \"not be cloned please try again!\");\n }\n myPurses[theIndex].addCoin(bestCoin);\n \n myPurses[theIndex].setBestCoin(bestCoin);\n \n return minimumThroughout;\n }", "public double calculateCostExclusive() {\n\t\tdouble accumulatedCost = 0;\n\t\tfor(int i = 0; i < solutionLength - 1; i++) {\n\t\t\taccumulatedCost += calculateEuclideanDistance(solutionRepresentation.get(i), solutionRepresentation.get(i + 1));\n\t\t}\n\t\t\n\t\treturn accumulatedCost;\n\t}", "public boolean goodEnough(HashMap<RouteState, ActionValue<RouteAction>> v0, HashMap<RouteState, ActionValue<RouteAction>> v) {\r\n\t\tdouble maxDiff = 0.0;\r\n\t\tfor (RouteState state : v0.keySet()) {\r\n\t\t\tdouble diff = Math.abs(v0.get(state).value - v.get(state).value);\r\n\t\t\tif (diff > maxDiff) {\r\n\t\t\t\tmaxDiff = diff;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn maxDiff < epsilon; //2*epsilon*discount/(1-discount);\r\n\t}", "public int getMaxTotalCost();", "public int minCostWJumps(int st,int sc,int er,int ec,int cost[][]){\n if(st==er&&sc==ec) return cost[st][sc];\n int c=0;\n for(int jump=1;jump+sc<=ec;jump++){\n c=Math.min(c,minCostWJumps(st,sc+jump,er,ec,cost));\n }\n for(int jump=1;jump+st<=er;jump++){\n c=Math.min(c,minCostWJumps(st+jump,sc,er,ec,cost));\n }\n for(int jump=1;jump+sc<=ec&&jump+st<=er;jump++){\n c=Math.min(c,minCostWJumps(st+jump,sc+jump,er,ec,cost));\n }\n return c+cost[st][sc];\n}", "public void processAppBatteryUsage() {\n create();\n\n SensorManager sensorManager = (SensorManager) mContext\n .getSystemService(Context.SENSOR_SERVICE);\n final int which = mStatsType;\n final int speedSteps = mPowerProfile.getNumSpeedSteps();\n final double[] powerCpuNormal = new double[speedSteps];\n final long[] cpuSpeedStepTimes = new long[speedSteps];\n for (int p = 0; p < speedSteps; p++) {\n powerCpuNormal[p] = mPowerProfile.getAveragePower(PowerProfile.POWER_CPU_ACTIVE, p);\n }\n final double averageCostPerByte = getAverageDataCost();\n long uSecTime = mStats.computeBatteryRealtime(SystemClock.elapsedRealtime() * 1000, which);\n long appWakelockTime = 0;\n // BatterySipper osApp = null;\n mStatsPeriod = uSecTime;\n SparseArray<? extends Uid> uidStats = mStats.getUidStats();\n final int NU = uidStats.size();\n for (int iu = 0; iu < NU; iu++) {\n Uid u = uidStats.valueAt(iu);\n double power = 0;\n double highestDrain = 0;\n String packageWithHighestDrain = null;\n //mUsageList.add(new AppUsage(u.getUid(), new double[] {power}));\n Map<String, ? extends BatteryStats.Uid.Proc> processStats = u.getProcessStats();\n long cpuTime = 0;\n long cpuFgTime = 0;\n long wakelockTime = 0;\n long gpsTime = 0;\n if (processStats.size() > 0) {\n // Process CPU time\n for (Map.Entry<String, ? extends BatteryStats.Uid.Proc> ent : processStats\n .entrySet()) {\n Log.print(\"Process name = \" + ent.getKey());\n Uid.Proc ps = ent.getValue();\n final long userTime = ps.getUserTime(which);\n final long systemTime = ps.getSystemTime(which);\n final long foregroundTime = ps.getForegroundTime(which);\n cpuFgTime += foregroundTime * 10; // convert to millis\n final long tmpCpuTime = (userTime + systemTime) * 10; // convert to millis\n int totalTimeAtSpeeds = 0;\n // Get the total first\n for (int step = 0; step < speedSteps; step++) {\n cpuSpeedStepTimes[step] = ps.getTimeAtCpuSpeedStep(step, which);\n totalTimeAtSpeeds += cpuSpeedStepTimes[step];\n }\n if (totalTimeAtSpeeds == 0)\n totalTimeAtSpeeds = 1;\n // Then compute the ratio of time spent at each speed\n double processPower = 0;\n for (int step = 0; step < speedSteps; step++) {\n double ratio = (double) cpuSpeedStepTimes[step] / totalTimeAtSpeeds;\n processPower += ratio * tmpCpuTime * powerCpuNormal[step];\n }\n cpuTime += tmpCpuTime;\n power += processPower;\n if (packageWithHighestDrain == null || packageWithHighestDrain.startsWith(\"*\")) {\n highestDrain = processPower;\n packageWithHighestDrain = ent.getKey();\n } else if (highestDrain < processPower && !ent.getKey().startsWith(\"*\")) {\n highestDrain = processPower;\n packageWithHighestDrain = ent.getKey();\n }\n }\n Log.print(\"Max drain of \" + highestDrain + \" by \" + packageWithHighestDrain);\n }\n if (cpuFgTime > cpuTime) {\n if (cpuFgTime > cpuTime + 10000) {\n Log.print(\"WARNING! Cputime is more than 10 seconds behind Foreground time\");\n }\n cpuTime = cpuFgTime; // Statistics may not have been gathered yet.\n }\n power /= 1000;\n\n // Process wake lock usage\n Map<String, ? extends BatteryStats.Uid.Wakelock> wakelockStats = u.getWakelockStats();\n for (Map.Entry<String, ? extends BatteryStats.Uid.Wakelock> wakelockEntry : wakelockStats\n .entrySet()) {\n Uid.Wakelock wakelock = wakelockEntry.getValue();\n // Only care about partial wake locks since full wake locks\n // are canceled when the user turns the screen off.\n BatteryStats.Timer timer = wakelock.getWakeTime(BatteryStats.WAKE_TYPE_PARTIAL);\n if (timer != null) {\n wakelockTime += timer.getTotalTimeLocked(uSecTime, which);\n }\n }\n wakelockTime /= 1000; // convert to millis\n appWakelockTime += wakelockTime;\n\n // Add cost of holding a wake lock\n power += (wakelockTime * mPowerProfile.getAveragePower(PowerProfile.POWER_CPU_AWAKE)) / 1000;\n\n // Add cost of data traffic\n long tcpBytesReceived = u.getTcpBytesReceived(mStatsType);\n long tcpBytesSent = u.getTcpBytesSent(mStatsType);\n power += (tcpBytesReceived + tcpBytesSent) * averageCostPerByte;\n\n // Add cost of keeping WIFI running.\n long wifiRunningTimeMs = u.getWifiRunningTime(uSecTime, which) / 1000;\n mAppWifiRunning += wifiRunningTimeMs;\n power += (wifiRunningTimeMs * mPowerProfile.getAveragePower(PowerProfile.POWER_WIFI_ON)) / 1000;\n\n // Process Sensor usage\n Map<Integer, ? extends BatteryStats.Uid.Sensor> sensorStats = u.getSensorStats();\n for (Map.Entry<Integer, ? extends BatteryStats.Uid.Sensor> sensorEntry : sensorStats\n .entrySet()) {\n Uid.Sensor sensor = sensorEntry.getValue();\n int sensorType = sensor.getHandle();\n BatteryStats.Timer timer = sensor.getSensorTime();\n long sensorTime = timer.getTotalTimeLocked(uSecTime, which) / 1000;\n double multiplier = 0;\n switch (sensorType) {\n case Uid.Sensor.GPS:\n multiplier = mPowerProfile.getAveragePower(PowerProfile.POWER_GPS_ON);\n gpsTime = sensorTime;\n break;\n default:\n android.hardware.Sensor sensorData = sensorManager.getDefaultSensor(sensorType);\n if (sensorData != null) {\n multiplier = sensorData.getPower();\n Log.print(\"Got sensor \" + sensorData.getName() + \" with power = \"\n + multiplier);\n }\n }\n power += (multiplier * sensorTime) / 1000;\n }\n\n // Log.print(\"UID \" + u.getUid() + \": power=\" + power);\n Log.print(\"PACKAGE \" + packageWithHighestDrain + \": power=\" + power);\n\n // // Add the app to the list if it is consuming power\n // if (power != 0 || u.getUid() == 0) {\n // BatterySipper app = new BatterySipper(getActivity(), mRequestQueue, mHandler,\n // packageWithHighestDrain, DrainType.APP, 0, u,\n // new double[] {power});\n // app.cpuTime = cpuTime;\n // app.gpsTime = gpsTime;\n // app.wifiRunningTime = wifiRunningTimeMs;\n // app.cpuFgTime = cpuFgTime;\n // app.wakeLockTime = wakelockTime;\n // app.tcpBytesReceived = tcpBytesReceived;\n // app.tcpBytesSent = tcpBytesSent;\n // if (u.getUid() == Process.WIFI_UID) {\n // mWifiSippers.add(app);\n // } else if (u.getUid() == Process.BLUETOOTH_GID) {\n // mBluetoothSippers.add(app);\n // } else {\n // mUsageList.add(app);\n // }\n // if (u.getUid() == 0) {\n // osApp = app;\n // }\n // }\n // if (u.getUid() == Process.WIFI_UID) {\n // mWifiPower += power;\n // } else if (u.getUid() == Process.BLUETOOTH_GID) {\n // mBluetoothPower += power;\n // } else {\n // if (power > mMaxPower) mMaxPower = power;\n // mTotalPower += power;\n // }\n // if (DEBUG) Log.i(TAG, \"Added power = \" + power);\n }\n\n // The device has probably been awake for longer than the screen on\n // time and application wake lock time would account for. Assign\n // this remainder to the OS, if possible.\n // if (osApp != null) {\n // long wakeTimeMillis = mStats.computeBatteryUptime(\n // SystemClock.uptimeMillis() * 1000, which) / 1000;\n // wakeTimeMillis -= appWakelockTime - (mStats.getScreenOnTime(\n // SystemClock.elapsedRealtime(), which) / 1000);\n // if (wakeTimeMillis > 0) {\n // double power = (wakeTimeMillis\n // * mPowerProfile.getAveragePower(PowerProfile.POWER_CPU_AWAKE)) / 1000;\n // osApp.wakeLockTime += wakeTimeMillis;\n // osApp.value += power;\n // osApp.values[0] += power;\n // if (osApp.value > mMaxPower) mMaxPower = osApp.value;\n // mTotalPower += power;\n // }\n // }\n }", "@Override\n\tprotected double getAdditionalUsageLosses(final IInternalParameters parameters,\n\t\t\tfinal IEnergyState state) {\n\t\tfinal IConstants constants = parameters.getConstants();\n\t\tif (getStore().getVolume() >= constants.get(HeatingSystemConstants.STORAGE_COMBI_VOLUME_THRESHOLD)) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\tfinal double A = constants.get(HeatingSystemConstants.STORAGE_COMBI_LOSS_TERMS, 0);\n\n\t\t\tfinal double volumeDemanded = state.getTotalDemand(EnergyType.DemandsHOT_WATER_VOLUME);\n\n\t\t\tfinal double fu =\n\t\t\tMath.min(1.0d,\n\t\t\t\t\tvolumeDemanded\n\t\t\t\t\t/\n\t\t\t\t\tconstants.get(HeatingSystemConstants.COMBI_HOT_WATER_USAGE_LIMIT));\n\n\t\t\tfinal double B = getStore().getVolume() - constants.get(HeatingSystemConstants.STORAGE_COMBI_LOSS_TERMS, 1);\n\n\t\t\tfinal double combiLosses = fu * (A - B * constants.get(HeatingSystemConstants.STORAGE_COMBI_LOSS_TERMS, 2));\n\t\t\treturn combiLosses;\n\t\t}\n\t}", "public Computer findMostExpensiveComputerV4( ) { \n\n\t\tComputer highest= computers.get(0);\n\t\tIterator<Computer> it= computers.iterator();\n\t\tComputer current=null; // a temporary copy of has.next() to perform multiple actions on it inside the loop\n\t\twhile(it.hasNext()) {\n\t\t\tcurrent=it.next();\n\t\t\tif (highest.getPrice()<current.getPrice()) \n\t\t\t\thighest=current;\n\n\n\t\t}\n\n\t\treturn highest;\n\n\t}", "int knapsack01(int[] v, int[] w, int capacity) {\n return knapsack01(v, w, capacity, 0, 0);\n }", "public void runAlgorithm(PointList customers, int highwayLength, int velocity) {\n\t\t\n\t\tif (!customers.isEmpty()){\n\t\t\tthis._highwayLength = highwayLength;\n\t\t\tthis._velocity = velocity;\n\t\t\t_maxDist = customers.maxDist();\n\t\t\t\n\t\t\t// for drawing purposes only\n\t\t\tfacilityPoints = new ArrayList<Point>();\n\t\t\tturnpikePoints = new ArrayList<Point>();\n\t\t\tpartitionRadius = new ArrayList<Double>();\n\t\t\t\n\t\t\tset_withTurnpike = new ArrayList<PointList>();\n\t\t\tset_withoutTurnpike = new ArrayList<PointList>();\n\t\t\textremePoints1 = new ArrayList<Point[]>();\n\t\t\textremePoints2 = new ArrayList<Point[]>();\n\t\t\tlist_centersWithoutTurnpike = new ArrayList<PointList>();\n\t\t\tlist_centersWithTurnpike = new ArrayList<PointList>();\n\t\t\t\n\t\t\tgetPartition(customers);\n\t\t\t\n\t\t\tmaxDist1 = new ArrayList<Point>();\n\t\t\tmaxDist2 = new ArrayList<Point>();\n\t\t\tminDist1 = new ArrayList<Point>();\n\t\t\tminDist2 = new ArrayList<Point>();\n\t\t\t\n\t\t\t// compute extreme points\n\t\t\tfor (PointList p : set_withTurnpike){\n\t\t\t\textremePoints1.add(p.getExtremePoints());\n\t\t\t}\n\t\t\tfor (PointList p : set_withoutTurnpike){\n\t\t\t\textremePoints2.add(p.getExtremePoints());\n\t\t\t}\n\t\t\t\n\t\t\t// solve basic problem for all partitions {W,H}\n\t\t\tfor (int i = 0; i < set_withTurnpike.size(); i++){\n\n\t\t\t\t_eps1 = Math.max(0, set_withTurnpike.get(i).delta() + highwayLength/velocity - set_withoutTurnpike.get(i).delta());\n\t\t\t\t_eps2 = Math.max(0, set_withoutTurnpike.get(i).delta() - set_withTurnpike.get(i).delta() - highwayLength/velocity);\n\n\t\t\t\tsolveBP(set_withTurnpike.get(i), set_withoutTurnpike.get(i)); \n\t\t\t\tfacilityPoints.add(_currentFacility);\n\t\t\t\tturnpikePoints.add(_currentTurnpikeStart);\n\t\t\t\tpartitionRadius.add(_currentRadius);\n\t\t\t\t\n\t\t\t\t// for drawing purposes\n\t\t\t\t// fixed length\n\t\t\t\tlist_centersWithoutTurnpike.add(center(set_withTurnpike.get(i), set_withTurnpike.get(i).delta() + _eps2 + _x));\n\t\t\t\tlist_centersWithTurnpike.add(center(set_withoutTurnpike.get(i), set_withoutTurnpike.get(i).delta() + _eps1 + _x));\n\t\t\t\t\n\t\t\t\tif (list_centersWithoutTurnpike.get(i).objectContains\n\t\t\t\t\t\t(list_centersWithoutTurnpike.get(i).objectMinDistPoints(list_centersWithTurnpike.get(i))[0])\n\t\t\t\t\t\t|| list_centersWithTurnpike.get(i).objectContains\n\t\t\t\t\t\t(list_centersWithoutTurnpike.get(i).objectMinDistPoints(list_centersWithTurnpike.get(i))[1])){\n\t\t\t\t\tminDist1.add(list_centersWithoutTurnpike.get(i).objectMinDistPoints(list_centersWithTurnpike.get(i))[0]); \n\t\t\t\t\tminDist2.add(list_centersWithoutTurnpike.get(i).objectMinDistPoints(list_centersWithTurnpike.get(i))[1]);\n\t\t\t\t} else {\n\t\t\t\t\tminDist1.add(list_centersWithoutTurnpike.get(i).objectMinDistPoints(list_centersWithTurnpike.get(i))[1]); \n\t\t\t\t\tminDist2.add(list_centersWithoutTurnpike.get(i).objectMinDistPoints(list_centersWithTurnpike.get(i))[0]);\n\t\t\t\t}\n\t\t\t\tmaxDist1.add(list_centersWithoutTurnpike.get(i).objectMaxDistPoints(list_centersWithTurnpike.get(i))[0]); \n\t\t\t\tmaxDist2.add(list_centersWithoutTurnpike.get(i).objectMaxDistPoints(list_centersWithTurnpike.get(i))[1]);\n\t\t\t}\t\n\t\t\t\n\t\t\tif(customers.getSize() > 1){\n\t\t\t\t// find optimal solution\n\t\t\t\tsolutionIndex = getMinRadiusIndex(); \n\t\t\t\tsolution_facility = facilityPoints.get(solutionIndex);\n\t\t\t\tsolution_turnpikeStart = turnpikePoints.get(solutionIndex);\n//\t\t\t\tsolution_radius = partitionRadius.get(solutionIndex);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "int getWaitTime(int arrival_time, QNode temp) {\r\n\t \t //1. this is the case when the first person arrives before 9 a.m.\r\n\t \t if (arrival_time <32400) {\r\n\t \t\t //for the wait time of the first person\r\n\t\t \t if (size== maxSize) {\r\n\t\t \t\t\t this.front.wait_time = 32400-arrival_time;\r\n\t\t \t\t\t this.front.service_timeEnding = 32700;\r\n\t\t \t\t\t savewait.add(this.front.wait_time);\r\n\t\t \t\t\t return this.front.wait_time;\r\n\t\t \r\n\t\t \t }\r\n\t\t \t //for the rest of them\r\n\t\t \t else {\r\n\t\t \t\t //if there is no waiting\r\n\t\t \t\t if (temp.service_timeEnding< arrival_time) {\r\n\t\t \t\t\t this.front.wait_time= 0;\r\n\t\t \t\t\t this.front.service_timeEnding = arrival_time +300;\r\n\t\t \t\t\t if (this.front.arrival_time+this.front.wait_time+300 !=this.front.service_timeEnding) {\r\n\t\t \t\t\t\t numberCustomers++;\r\n\t\t \t\t\t }\r\n\t\t \t\t\t savewait.add(this.front.wait_time);\r\n\t\t \t\t\t return this.front.wait_time;\r\n\t\t \t\t\t \r\n\t\t \t\t }\r\n\t\t \t\t //if there is waiting and there is person before you\r\n\t\t \t\t else {\r\n\t\t\t\t \tthis.front.wait_time = temp.service_timeEnding - arrival_time;\r\n\t\t\t\t \tthis.front.service_timeEnding = arrival_time +this.front.wait_time +300;\r\n\t\t\t\t \tif (this.front.service_timeEnding< this.front.wait_time) {\r\n\t\t \t\t\t\t numberCustomers++;\r\n\t\t \t\t\t }\r\n\t\t\t\t \t//save wait time\r\n\t\t\t\t \tsavewait.add(this.front.wait_time);\r\n\t\t\t\t \treturn this.front.wait_time;\r\n\t\t \t\t \r\n\t\t \t\t }\r\n\t\t \t\t \r\n\t\t \t }\r\n\t \t }\r\n\t \t \r\n\t \t //this is the case when the first person arrives after 9\r\n\t \t else {\r\n\t \t\t //for the first person arriving\r\n\t\t \t if (size ==maxSize ) {\r\n\t\t \t\t\t this.front.wait_time = 0;\r\n\t\t \t\t\t this.front.service_timeEnding = arrival_time +300;\r\n\t\t \t\t\t savewait.add(this.front.wait_time);\r\n\t\t \t\t\t return this.front.wait_time;\r\n\t\t \t }\r\n\t\t \t //for the rest of them\r\n\t\t \t else {\r\n\t\t \t\t //if there is no waiting\r\n\t\t \t\t if (temp.service_timeEnding< arrival_time) {\r\n\t\t \t\t\t this.front.wait_time= 0;\r\n\t\t \t\t\t this.front.service_timeEnding = arrival_time +300;\r\n\t\t \t\t\t if (this.front.service_timeEnding!= this.front.wait_time) {\r\n\t\t \t\t\t\t numberCustomers++;\r\n\t\t \t\t\t }\r\n\t\t \t\t\t savewait.add(this.front.wait_time);\r\n\t\t \t\t\t return this.front.wait_time;\r\n\t\t \t\t\t \r\n\t\t \t\t }\r\n\t\t \t\t //if there is a waiting\r\n\t\t \t\t else {\r\n\t\t\t\t \tthis.front.wait_time = temp.service_timeEnding - arrival_time;\r\n\t\t\t\t \tthis.front.service_timeEnding = arrival_time +this.front.wait_time +300;\r\n\t\t\t\t \tif (this.front.service_timeEnding!= this.front.wait_time) {\r\n\t\t \t\t\t\t numberCustomers++;\r\n\t\t \t\t\t }\r\n\t\t\t\t \tsavewait.add(this.front.wait_time);\r\n\t\t\t\t \treturn this.front.wait_time;\r\n\t\t \t\t\r\n\t\t \t\t \r\n\t\t \t\t }\r\n\t\t \t \r\n\t \t \r\n\t \t\r\n\t \t }\r\n\t \t }\r\n\t }", "@Override\n public int getHeatCapacityWithWater() {\n if (hasLaserHeatSinks()) {\n return getHeatCapacity();\n }\n return getHeatCapacity() + Math.min(sinksUnderwater(), 6);\n }", "private void checkHeatLevels()\n {\n // Computer is switched on and has power reserves.\n if (this.isPowered() && this.isRedstonePowered())\n {\n if (this.getEnergyStored(ForgeDirection.UNKNOWN) <= this.getMaxEnergyStored(ForgeDirection.UNKNOWN))\n {\n // Running computer consumes energy from internal reserve.\n this.consumeInternalEnergy(this.getEnergyConsumeRate());\n }\n\n // Running computer generates heat with excess energy it wastes.\n if (!this.isHeatAboveZero() && worldObj.getWorldTime() % 5L == 0L)\n {\n if (!this.isOverheating() && !this.isHeatedPastTriggerValue())\n {\n // Raise heat randomly from zero to five if we are not at optimal temperature.\n this.setHeatLevelValue(this.getHeatLevelValue() + worldObj.rand.nextInt(10));\n }\n else if (!this.isOverheating() && this.isHeatedPastTriggerValue() && this.getFluidAmount() > FluidContainerRegistry.BUCKET_VOLUME)\n {\n // Computer has reached operating temperature and has water to keep it cool.\n this.setHeatLevelValue(this.getHeatLevelValue() + worldObj.rand.nextInt(2));\n }\n else if (!this.isOverheating() && this.getFluidAmount() <= FluidContainerRegistry.BUCKET_VOLUME)\n {\n // Computer is running but has no water to keep it cool.\n this.setHeatLevelValue(this.getHeatLevelValue() + worldObj.rand.nextInt(5));\n }\n }\n }\n\n // Water acts as coolant to keep running computer components cooled.\n if (!this.isHeatAboveZero() && !this.isFluidTankEmpty() && this.isPowered() && this.isRedstonePowered() && worldObj.getWorldTime() % 16L == 0L)\n {\n if (this.getHeatLevelValue() <= this.getHeatLevelMaximum() && this.isHeatAboveZero())\n {\n // Some of the water evaporates in the process of cooling off the computer.\n // Note: water is drained in amount of heat computer has so hotter it gets\n // the faster it will consume water up to rate of one bucket\n // every few ticks.\n if (this.getFluidAmount() >= this.getHeatLevelValue())\n {\n // The overall heat levels of the computer drop so long as there is water though.\n this.removeFluidAmountExact(this.getHeatLevelValue() / 4);\n this.decreaseHeatValue();\n }\n }\n }\n else if (this.isHeatAboveZero() && worldObj.getWorldTime() % 8L == 0L)\n {\n // Computer will slowly dissipate heat while powered off but nowhere near as fast with coolant.\n this.decreaseHeatValue();\n }\n }", "private boolean hasGoodwill(MaintenanceRequest maintenanceRequest){\n\t\tMaintenanceRequestTask task = null;\n\t\tboolean isGoodwill = false;\n\t\t\n\t\tif(!MALUtilities.isEmpty(maintenanceRequest.getMrqMrqId())){\n\t\t\tisGoodwill = true;\n\t\t}\n\t\t\t\t\n\t\tfor (Iterator<MaintenanceRequestTask> mrt = maintenanceRequest.getMaintenanceRequestTasks().iterator(); mrt.hasNext() && !isGoodwill;){\n\t\t\ttask = (MaintenanceRequestTask)mrt.next();\n\t\t\tif(!(MALUtilities.isEmpty(task.getGoodwillCost()) || task.getGoodwillCost().compareTo(new BigDecimal(0)) < 1)){\n\t\t\t\tisGoodwill = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\treturn isGoodwill;\n\t}", "private Integer getStandardStart(int startTime) \n {\n \tif (startTime % 1440 > 960) {\n \t\tstartTime += 1440;\n \t}\n \tint startOfDay = startTime - (startTime % 1440);\n \t//we need a standard variable to indicate the day of week;\n \t//standard day starts at 08:00 = 480 minutes and ends at 16:00 = 960 minutes\n \tcapacityEndTime = startOfDay + 960;\n \treturn startOfDay + 480;\n }", "public void workedOnTODO(int hours){\n\t\ttimeAllocated -=hours;\n\t}", "static double k0(final double x) {\n if (x <= 0) {\n return Double.NaN;\n }\n if (x <= 2) {\n return chebyshev(x * x - 2, KA) - Math.log(0.5 * x) * Bessel.i0(x);\n }\n return Math.exp(-x) * chebyshev(8 / x - 2, KB) / Math.sqrt(x);\n }", "@Override\r\n\tpublic int isMinimalCostToReach17Plus()\r\n\t{\r\n\t\treturn 1;\r\n\t}", "private static void p347() {\n int[] nums1 = {5, 5, 5, 3, 1, 1};\n int k1 = 2;\n int[] ret1 = topKFrequent(nums1, k1);\n System.out.println(Arrays.toString(ret1));\n// int[] nums2 = {1, 2};\n// int k2 = 2;\n// int[] ret2 = topKFrequent(nums2, k2);\n// System.out.println(Arrays.toString(ret2));\n int[] nums3 = {5, 5, 5, 5, 2, 2, 2, 4, 4, 1};\n int k3 = 2;\n int[] ret3 = topKFrequentOptimize(nums3, k3);\n System.out.println(Arrays.toString(ret3));\n\n int[] nums4 = {5, 5, 5, 5, 2, 2, 2, 4, 4, 4, 1};\n int k4 = 2;\n int[] ret4 = topKFrequentUsingBucket(nums4, k4);\n System.out.println(Arrays.toString(ret4));\n\n// int[] nums5 = {1};\n// int k5 = 1;\n// int[] ret5 = topKFrequentUsingBucket(nums5, k5);\n// System.out.println(Arrays.toString(ret5));\n }", "@Test\n public void shouldWorkAsExpected_WhenOneCourtIsFullyAllocatedToSpecificFacts() {\n String fact = \"unreasonable-behaviour\";\n Map<String, Map<String, BigDecimal>> specificCourtsAllocationPerFact = singletonMap(fact,\n singletonMap(\"court1\", ONE)\n );\n\n GenericCourtWeightedDistributor genericCourtWeightedDistributor = new GenericCourtWeightedDistributor(\n desiredWorkloadPerCourt, divorceRatioPerFact, specificCourtsAllocationPerFact);\n\n //Run 1M times\n BigDecimal totalNumberOfAttempts = new BigDecimal(1000000);\n HashMap<String, BigDecimal> courtsDistribution = new HashMap<>();\n for (int i = 0; i < totalNumberOfAttempts.intValue(); i++) {\n String selectedCourt = genericCourtWeightedDistributor.selectCourt();\n BigDecimal casesPerCourt = courtsDistribution.getOrDefault(selectedCourt, ZERO);\n courtsDistribution.put(selectedCourt, casesPerCourt.add(ONE));\n }\n\n //Assert court one was not allocated\n BigDecimal acceptableError = acceptedDeviation.multiply(totalNumberOfAttempts);\n assertThat(courtsDistribution.keySet(), hasSize(2));\n assertThat(courtsDistribution.keySet(), not(contains(\"court1\")));\n\n //Assert other courts got selected proportionately\n BigDecimal remainingWorkloadDiscountingSpecificFact = ONE.subtract(divorceRatioPerFact.get(fact));\n BigDecimal courtTwoProportionalGenericAllocation = desiredWorkloadPerCourt.get(\"court2\")\n .divide(remainingWorkloadDiscountingSpecificFact, SCALE, DOWN);\n assertThat(courtsDistribution.get(\"court2\"), closeTo(\n courtTwoProportionalGenericAllocation.multiply(totalNumberOfAttempts), acceptableError\n ));\n\n BigDecimal courtThreeProportionalGenericAllocation = desiredWorkloadPerCourt.get(\"court3\")\n .divide(remainingWorkloadDiscountingSpecificFact, SCALE, DOWN);\n assertThat(courtsDistribution.get(\"court3\"), closeTo(\n courtThreeProportionalGenericAllocation.multiply(totalNumberOfAttempts), acceptableError\n ));\n }" ]
[ "0.7056943", "0.6040612", "0.52941954", "0.5162091", "0.48761165", "0.48585758", "0.48497716", "0.47854567", "0.471874", "0.4717101", "0.45704004", "0.4541698", "0.44651505", "0.4454423", "0.44527468", "0.4418446", "0.4416299", "0.44058764", "0.4388437", "0.43830445", "0.43742317", "0.4372309", "0.43607488", "0.4354399", "0.4341169", "0.43399695", "0.43390074", "0.43356258", "0.43317217", "0.4315604", "0.4313885", "0.43078157", "0.42735294", "0.42507225", "0.4245302", "0.42315742", "0.4228081", "0.42264563", "0.4226395", "0.42237878", "0.42151904", "0.4214015", "0.42004654", "0.41870925", "0.4174127", "0.41735038", "0.4171018", "0.41695315", "0.4166336", "0.41657224", "0.4164812", "0.41641638", "0.41556674", "0.41524252", "0.41524214", "0.41515148", "0.41471803", "0.414604", "0.4145358", "0.41286042", "0.4127638", "0.41184688", "0.41047886", "0.41007057", "0.40982208", "0.4095934", "0.40936133", "0.4080861", "0.40752026", "0.4074233", "0.4074134", "0.4073394", "0.4071606", "0.40695375", "0.40686715", "0.40674353", "0.40630916", "0.40595597", "0.40499383", "0.40479374", "0.40429792", "0.4040821", "0.40405393", "0.40386507", "0.40335235", "0.4031825", "0.40210634", "0.40207386", "0.40171155", "0.40166774", "0.40146706", "0.40127468", "0.4006338", "0.40060785", "0.400535", "0.40019184", "0.4001551", "0.39974576", "0.39963856", "0.39962092" ]
0.80727035
0
pick the right capacity
private static int lossFn(int[] hourlyVolume, int[] fullServiceCapacity, int [] regularServiceCapacity, int[] minorServiceCapacity, int currentHour, Service lastService, int hoursSinceService) { int[] capacity; if (lastService.equals(Service.FULL_SERVICE)) { capacity = fullServiceCapacity; } else if (lastService.equals(Service.REGULAR_SERVICE)) { capacity = regularServiceCapacity; } else { capacity = minorServiceCapacity; } // consider if hoursSinceService is valid index int l = capacity.length; // calc loss so far int loss; if (hoursSinceService < 0) { // out of order due to service loss = hourlyVolume[currentHour]; } else if (hoursSinceService >= l) { // out of order due to lack of service loss = hourlyVolume[currentHour]; } else { loss = hourlyVolume[currentHour] - capacity[hoursSinceService]; } if (loss < 0) { // we've made no loss loss = 0; } return loss; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected int getCapacity();", "public abstract int capacity();", "public int capacity();", "public int capacity();", "public int getCapacity();", "int capacity();", "int capacity();", "public float getCapacity();", "public int getCapacity( )\n {\n // Implemented by student.\n }", "public int getInitialCapacity();", "public void setCapacity(int capacity) \n {\n this.capacity = capacity;\n }", "public void setCapacity(int value) {\n this.capacity = value;\n }", "public int getCapacity()\n {\n return capacity;\n }", "public int getCapacity() {\r\n return capacity;\r\n }", "public int getCapacity() {\r\n return capacity;\r\n }", "public int getCapacity() {\r\n return capacity;\r\n }", "public void upgradeCapacity()\r\n\t{\r\n\t\tcapacity++;\r\n\t}", "public void setCapacity(int capacity) {\r\n this.capacity = capacity;\r\n }", "public static int getCapacity() {\n\t\treturn capacity ;\n\t}", "public int getCapacity() {\n return capacity;\n }", "public int getCapacity() {\n return capacity;\n }", "public int getCapacity() {\n return capacity;\n }", "public int getCapacity() {\n return capacity;\n }", "public int getCapacity() {\r\n return this.capacity;\r\n }", "@Override\n public int Capacity() {\n return current_capacity;\n }", "public Crate(int cap){\r\n capacity = cap;\r\n }", "public void setCapacity(int capacity) {\n this.capacity = capacity;\n }", "public int getCapacity() {\n switch (getID()) {\n case 5509:\n return 3;\n case 5510:\n case 5511:\n return 6;\n case 5512:\n case 5513:\n return 9;\n case 5514:\n case 5515:\n default:\n return 12;\n }\n }", "private int calcMaxSize(int capacity) {\n // Clip the upper bound so that there will always be at least one available slot.\n int upperBound = capacity - 1;\n return Math.min(upperBound, (int) (capacity * loadFactor));\n }", "public void setCapacity(int capacity) {\r\n\r\n this.capacity = capacity;\r\n }", "public Long getCapacity() {\n return capacity;\n }", "public double getCapacity() {\n\t\treturn capacity;\n\t}", "public int getCapacity() {\r\n\r\n return capacity;\r\n }", "Integer backlogCapacity();", "ResourceSkuCapacity capacity();", "public void ensureCapacity(int minCapacity);", "com.cantor.drop.aggregator.model.CFTrade.Capacity getCapacity();", "protected byte[] getTankCapacity() {return null;}", "public Integer getCapacity() {\n return capacity;\n }", "@Test\n public void capacityTest() {\n // TODO: test capacity\n }", "public void setCapacity(Long capacity) {\n this.capacity = capacity;\n }", "OrderCapacity getOrderCapacity();", "public void setCapacity(Integer capacity) {\n this.capacity = capacity;\n }", "public int capacity() { return store.length; }", "public int capacity()\n {\n return capacity;\n }", "protected abstract long getCapacity(T variant);", "public final int getCapacity() {\n\t\treturn capacity;\n\t}", "public void setCapacity(int capacity) {\n\n\t\tthis.capacity = capacity;\n\t}", "@Override\n public int getMaxCapacity() {\n return 156250000;\n }", "@Override\n public int requestAvailableCapacity() {\n int total = facility.getCapacity();\n for (Facility facility : facilities) {\n total += facility.getCapacity();\n }\n return total;\n }", "public void setCapacity(double capacity) {\n\t\tthis.capacity = capacity;\n\t}", "public int getCapacity() {\n\n\t\treturn capacity;\n\t}", "public int capacity() {\n\t\t// Report max number of elements before expansion\n\t\t// O(1)\n\t\treturn data.length;\n\t}", "public void charge() {\r\n capacity = Math.min(capacity += originalCapacity, originalCapacity);\r\n }", "public int capacity() {\n return capacity;\n }", "@Override\n public int getCapacity() {\n return room.getCapacity();\n }", "public int getCapacity() {\n\n\t\treturn this.capacity;\n\t}", "public int capacity()\r\n/* 81: */ {\r\n/* 82:116 */ ensureAccessible();\r\n/* 83:117 */ return this.array.length;\r\n/* 84: */ }", "@java.lang.Override\n public int getAvailableCapacity() {\n return availableCapacity_;\n }", "public synchronized int getAvailableCapacity() {\n \n return (max_capacity-this.capacity);\n }", "public void setCapacity(final int capacity) {\n this.capacity = capacity;\n }", "public int getCapacity() {\n\t\treturn mCapcity;\n\t}", "public Builder setAvailableCapacity(int value) {\n \n availableCapacity_ = value;\n onChanged();\n return this;\n }", "public double getRemainingCapacity() {\r\n return capacity;\r\n }", "public int getCapacity( Resource.Type type );", "public int capacity() {\r\n\t\treturn this.capacity;\r\n\t}", "public int capacity() {\n return this.capacity;\n }", "public int capacity() {\n\t\treturn this.capacity;\n\t}", "@java.lang.Override\n public int getAvailableCapacity() {\n return availableCapacity_;\n }", "public void setCapacity( Resource.Type type, int capacity );", "public int getCapacity() {\n\t\treturn this.maxCapacity;\n\t}", "public void setCapacity(int n) {\n\t\tcapacity = n;\n\t}", "public void setCapacity(String capacity) {\n\t\tthis.capacity = capacity;\n\t}", "public double getOriginalCapacity() {\r\n return originalCapacity;\r\n }", "@java.lang.Override\n public int getMaximumCapacity() {\n return maximumCapacity_;\n }", "private void ensureCapacity() {\r\n\t\t\tdouble loadFactor = getLoadFactor();\r\n\r\n\t\t\tif (loadFactor >= CAPACITY_THRESHOLD)\r\n\t\t\t\trehash();\r\n\t\t}", "void setOrderCapacity(OrderCapacity inOrderCapacity);", "@Override\n\tpublic int remainingCapacity() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int seatCapacity() {\n\t\treturn 4;\n\t}", "public static int getCapacity () {\n\t\tcapacity = nbrOfHouses*Barn.getCapacity();\n\t\treturn capacity;\n\t}", "@java.lang.Override\n public int getMaximumCapacity() {\n return maximumCapacity_;\n }", "public int getRemainingCapacity() { // get the remaining capacity\n\t\treturn maximumCapacity - cargoCapacity;\n\t}", "public int passengers(){\n return currentCapacity(); \n }", "public int freeCapacity() {\n\t\treturn this.capacity - this.flow;\n\t}", "boolean hasCapacity();", "public void setCapacity(int capacity)\n {\n Validate.isTrue(capacity > 0, \"Capacity must be > 0\");\n capacity_ = capacity; \n }", "int increaseCapacity(int expectedCapacity)\r\n/* 425: */ {\r\n/* 426:456 */ int newCapacity = this.elements.length;\r\n/* 427:457 */ int maxCapacity = this.maxCapacity;\r\n/* 428: */ do\r\n/* 429: */ {\r\n/* 430:459 */ newCapacity <<= 1;\r\n/* 431:460 */ } while ((newCapacity < expectedCapacity) && (newCapacity < maxCapacity));\r\n/* 432:462 */ newCapacity = Math.min(newCapacity, maxCapacity);\r\n/* 433:463 */ if (newCapacity != this.elements.length) {\r\n/* 434:464 */ this.elements = ((Recycler.DefaultHandle[])Arrays.copyOf(this.elements, newCapacity));\r\n/* 435: */ }\r\n/* 436:467 */ return newCapacity;\r\n/* 437: */ }", "public final int getCapacity()\n {\n return m_pool.length;\n }", "private void increase_capacity() {\r\n Object[] temp = new Object[capacity = capacity + capacity/2];\r\n for (int i = 0;i < stack.length ;i++) {\r\n temp[i] = stack[i];\r\n }\r\n stack = temp;\r\n }", "public void grow(int cap) {}", "public double getOCapacity() {\n return oCapacity;\n }", "@Test\r\n public void testLongTermStorageGetAvailableCapacity1()\r\n {\r\n testLongTermStorage.addItem(item2, testLongTermStorage.getCapacity() / item2.getVolume());\r\n testLongTermStorage.resetInventory();\r\n assertEquals(\"Available capacity is wrong\", testLongTermStorage.getCapacity(),\r\n testLongTermStorage.getAvailableCapacity());\r\n }", "public Integer getCapacityId() {\n return capacityId;\n }", "private void checkCapacity(int capacity) \n {\n if (capacity > MAX_CAPACITY)\n throw new IllegalStateException(\"Attempt to create a bag whose \" +\n \"capacity exeeds allowed \" +\n \"maximum of \" + MAX_CAPACITY);\n }", "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 }", "public int getFreeSpace() {\n return capacity - storage;\n }", "public int currentCapacity() {\n\t\tList<Item> items = super.getItems();\n\n\t\tItem item;\n\t\tint sumCapacity = 0;\n\t\tfor (int i = 0; i < items.size(); i++) {\n\t\t\titem = items.get(i);\n\t\t\tsumCapacity += item.getCapacity();\n\t\t}\n\t\treturn sumCapacity;\n\t}", "@Override\n public void ensureCapacity(int index) {\n\n }", "public void ensureCapacity(final int minCapacity) {\n if (minCapacity > cache.length) {\n int oldCapacity = cache.length;\n BigDecimal oldCache[] = cache;\n int newCapacity = oldCapacity + CAPACITY_BUMP_SIZE;\n if (newCapacity < minCapacity) {\n newCapacity = minCapacity;\n }\n cache = new BigDecimal[newCapacity];\n System.arraycopy(oldCache, 0, cache, 0, oldCapacity);\n }\n }", "@Override\n public int size() {\n return this.capacity;\n }", "double getMaxTfCapacity();" ]
[ "0.79729015", "0.7947421", "0.7709026", "0.7709026", "0.7664242", "0.76379424", "0.76379424", "0.7453375", "0.72872764", "0.7229004", "0.72071564", "0.7179593", "0.71022165", "0.70149344", "0.70149344", "0.70149344", "0.70144075", "0.70115954", "0.700355", "0.69914514", "0.69914514", "0.69914514", "0.69914514", "0.6970174", "0.6959594", "0.6958576", "0.69579834", "0.6948212", "0.69466764", "0.6935515", "0.6930883", "0.6920975", "0.69198376", "0.6917234", "0.69018495", "0.68875116", "0.6886193", "0.68577904", "0.6855052", "0.68339247", "0.6833358", "0.68198454", "0.6807903", "0.680424", "0.67968744", "0.6789578", "0.67843056", "0.67656434", "0.6739532", "0.6728217", "0.6719502", "0.67188555", "0.67145944", "0.67081577", "0.67073894", "0.66871756", "0.6684512", "0.66801655", "0.6677354", "0.667215", "0.66374034", "0.6626008", "0.66030794", "0.6602728", "0.66010755", "0.658552", "0.65803176", "0.6554919", "0.65546143", "0.6533498", "0.65324044", "0.6488033", "0.6475653", "0.64538294", "0.64487857", "0.64064467", "0.64002204", "0.6375211", "0.63585836", "0.6356052", "0.63360566", "0.63214386", "0.63172287", "0.6315771", "0.63038963", "0.6290116", "0.627332", "0.6269358", "0.62668896", "0.6249637", "0.6238348", "0.6234724", "0.62322164", "0.6202526", "0.6197209", "0.61791354", "0.6178815", "0.61749506", "0.61616784", "0.6150287", "0.61268896" ]
0.0
-1
True if the entity has an unobstructed line of travel to the waypoint.
public static boolean isCourseTraversable(Entity parEntity, double parX, double parY, double parZ) { double theDistance = MathHelper.sqrt(parX * parX + parY * parY + parZ * parZ); double incrementX = (parX - parEntity.posX) / theDistance; double incrementY = (parY - parEntity.posY) / theDistance; double incrementZ = (parZ - parEntity.posZ) / theDistance; AxisAlignedBB entityBoundingBox = parEntity.getEntityBoundingBox(); for (int i = 1; i < theDistance; ++i) { entityBoundingBox.offset(incrementX, incrementY, incrementZ); if (!parEntity.world.getCollisionBoxes(parEntity, entityBoundingBox).isEmpty()) { return false; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean checkIfOnTraineeship() {\n\t\treturn false;\r\n\t}", "boolean hasDynamicLineup();", "public boolean hasOriginFlightLeg() {\n return originFlightLeg_ != null;\n }", "private void checkNoCollision(Line trajectory) {\n int sensorsPairs = 5;\n double distance = getHeight() / ((double) 2 * sensorsPairs);\n\n // get any collision\n CollisionInfo collision = this.gameEnvironment\n .getClosestCollision(trajectory, this.notThis, sensorsPairs, distance);\n\n // move only if there's no collision\n if (collision == null) {\n this.topLeft = getTrajectory().end().asVector();\n }\n }", "@java.lang.Override\n public boolean hasEtaToFirstWaypoint() {\n return etaToFirstWaypoint_ != null;\n }", "boolean hasOriginFlightLeg();", "@Override\r\n public boolean hasForbidXdFinishline(Move move) {\n return isMapCircuit() && hasXdFinishline(move)\r\n && (!isXingFinishlineAllowed(move) || !CrashDetector.hasCrashHappend(move, Integer.MAX_VALUE));\r\n }", "public boolean hasOriginFlightLeg() {\n return originFlightLegBuilder_ != null || originFlightLeg_ != null;\n }", "private boolean hasTrackingPlane() {\n for (Plane plane : session.getAllTrackables(Plane.class)) {\n if (plane.getTrackingState() == TrackingState.TRACKING) {\n return true;\n }\n }\n return false;\n }", "@Override\n\tpublic boolean isMyLine() {\n\t\treturn false;\n\t}", "public boolean hasEtaToFirstWaypoint() {\n return etaToFirstWaypointBuilder_ != null || etaToFirstWaypoint_ != null;\n }", "public boolean inLineOfSight(){\n\t\t\n\t\tboolean keepGoing=true;\n\t\t\n\t\tfor (int i=0; i<this._movingTrainers.size(); i++){\n\t\t\tthis._LOSTrainer=i;\n\t\t\tkeepGoing=true;\n\t\t\t//within their line of sight\n\t\t\tif(this._movingTrainers.get(i)!=null && !this._movingTrainers.get(i).isDefeated()){\n\t\t\t\tfor (int j=0; j<this._movingTrainers.get(i).getLOS(); j++){\n\t\t\t\t\tif(keepGoing){\n\t\t\t\t\t\tint tx=this._movingTrainers.get(i).getXIndex();\n\t\t\t\t\t\tint ty=this._movingTrainers.get(i).getYIndex();\n\t\t\t\t\t\tint jx=0;\n\t\t\t\t\t\tint jy=0;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//facing the right way\n\t\t\t\t\t\tswitch(this._movingTrainers.get(i).getDirection()){\n\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\tjx=0;\n\t\t\t\t\t\t\t\tjy=1*j;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\tjx=0;\n\t\t\t\t\t\t\t\tjy=-1*j;\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\tjx=1*j;\n\t\t\t\t\t\t\t\tjy=0;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\tjx=-1*j;\n\t\t\t\t\t\t\t\tjy=0;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//What's in the way? if nothing and they see the player, return true.\n\t\t\t\t\t\tif((tx+jx)>=0 && (ty+jy)>=0){\n\t\t\t\t\t\t\tchar next= this._room._roomGrid[tx + jx][ty + jy];\n\t\t\t\t\t\t\tif(tx+jx==xObs && ty+jy==yObs){\n\t\t\t\t\t\t\t\tthis._interruptedTrainer=this._LOSTrainer;\n\t\t\t\t\t\t\t\tTrainer interrupted = this._movingTrainers.get(this._interruptedTrainer);\n\t\t\t\t\t\t\t\t//_busy=true;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//These two statements are for moving trainers who can interrupt. \n\t\t\t\t\t\t\t\tif(!interrupted.isStationary() && _gbs.npctick!=0){\n\t\t\t\t\t\t\t\t\treturn false;\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\twhile(!interrupted.isStationary() && !this._approachTimer.isRunning()){\n\t\t\t\t\t\t\t\t\tinterrupted.setAvoidMethod(\"freeze\");\n\t\t\t\t\t\t\t\t\tinterrupted.setStationary(true);\n\t\t\t\t\t\t\t\t\tSysOut.print(\"Frozen\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t////////////////\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(interrupted.getXIndex()>this.xObs){\n\t\t\t\t\t\t\t\t\tinterrupted.clearDestinations();\n\t\t\t\t\t\t\t\t\tif(xObs+1==interrupted.getXIndex() && _tooCloseTrigger){\n\t\t\t\t\t\t\t\t\t\t_tooCloseWait=true;\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tinterrupted.addDest(xObs+1, yObs);\n\t\t\t\t\t\t\t\t\tinterrupted.setFirstDest();\n\t\t\t\t\t\t\t\t\tinterrupted.setPause(false);\n\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if (interrupted.getXIndex()<this.xObs){\n\t\t\t\t\t\t\t\t\tinterrupted.clearDestinations();\n\t\t\t\t\t\t\t\t\tif(xObs-1==interrupted.getXIndex() && _tooCloseTrigger){\n\t\t\t\t\t\t\t\t\t\t_tooCloseWait=true;\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tinterrupted.addDest(xObs-1, yObs);\n\t\t\t\t\t\t\t\t\tinterrupted.setFirstDest();\n\t\t\t\t\t\t\t\t\tinterrupted.setPause(false);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if (interrupted.getYIndex()>this.yObs){\n\t\t\t\t\t\t\t\t\tinterrupted.clearDestinations();\n\t\t\t\t\t\t\t\t\tif(yObs+1==interrupted.getYIndex() && _tooCloseTrigger){\n\t\t\t\t\t\t\t\t\t\t_tooCloseWait=true;\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tinterrupted.addDest(xObs, yObs+1);\n\t\t\t\t\t\t\t\t\tinterrupted.setFirstDest();\n\t\t\t\t\t\t\t\t\tinterrupted.setPause(false);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if (interrupted.getYIndex()<this.yObs){\n\t\t\t\t\t\t\t\t\tinterrupted.clearDestinations();\n\t\t\t\t\t\t\t\t\tif(yObs-1==interrupted.getYIndex() && _tooCloseTrigger){\n\t\t\t\t\t\t\t\t\t\t_tooCloseWait=true;\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tinterrupted.addDest(xObs, yObs-1);\n\t\t\t\t\t\t\t\t\tinterrupted.setFirstDest();\n\t\t\t\t\t\t\t\t\tinterrupted.setPause(false);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t////SysOut.print(\"HE SEES YOU WHEN YOU'RE SLEEPING: \"+ _interruptedTrainer);\n\t\t\t\t\t\t\t\t//End the loop, return true.\n\t\t\t\t\t\t\t\tif(interrupted.getLOS()==0 || !interrupted.isStationary()){\n\t\t\t\t\t\t\t\t\tthis._paintAlert=false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if (interrupted.getLOS()>0){\n\t\t\t\t\t\t\t\t\tthis._paintAlert=true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\n\t\t\t\t\t\t\t\tif(!this._approachTimer.isRunning()){\n\t\t\t\t\t\t\t\t\tthis._seenByNPC=true;\n\t\t\t\t\t\t\t\t\tif(interrupted.getGender() == 'M' && interrupted.getBelt()!=null)\n\t\t\t\t\t\t\t\t\t\tM2.playBG(M2.TRAINER_APPROACH_M);\n\t\t\t\t\t\t\t\t\telse if(interrupted.getGender() == 'F'&& interrupted.getBelt()!=null)\n\t\t\t\t\t\t\t\t\t\tM2.playBG(M2.TRAINER_APPROACH_F);\n\t\t\t\t\t\t\t\t\telse if(interrupted.getGender() == 'R'&& interrupted.getBelt()!=null)\n\t\t\t\t\t\t\t\t\t\tM2.playBG(M2.RIVAL_MUSIC);\n\t\t\t\t\t\t\t\t\tthis._approachTimer.start();\n\t\t\t\t\t\t\t\t\tthis._tooCloseTrigger=true;\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\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if((next==SURF && !_gbs.getSurf() && !this._movingTrainers.get(this._LOSTrainer).canSurf())|| (next==SURF && _gbs.getSurf() && !this._movingTrainers.get(this._LOSTrainer).canSurf()) || (next==SURF && !_gbs.getSurf() && this._movingTrainers.get(this._LOSTrainer).canSurf()) || (next==NO && j!=0) || next==CUT){\n\t\t\t\t\t\t\t\t////SysOut.print(\"Something is in the way: \"+ _interruptedTrainer);\n\t\t\t\t\t\t\t\t//Stop this iteration, move on.\n\t\t\t\t\t\t\t\tkeepGoing = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int k=0; k<this._movingTrainers.size(); k++){\n\t\t\t\t\t\t\t\tif(tx+jx==this._movingTrainers.get(k).getXIndex() && ty+jy==this._movingTrainers.get(k).getYIndex() && j>0){\n\t\t\t\t\t\t\t\t\t////SysOut.print(\"Another trainer is in the way:\" + _interruptedTrainer);\n\t\t\t\t\t\t\t\t\t//Stop this iteration, move on.\n\t\t\t\t\t\t\t\t\tif(this._movingTrainers.get(k).isDefeated() && this._movingTrainers.get(k).getVanishing()){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\tkeepGoing = false;\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}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t////SysOut.print(\"They don't see you.\");\n\t\treturn false;\n\t}", "public boolean isPointIncluded() {\n return geometry.almostZero(distance);\n }", "@java.lang.Override\n public boolean hasWaypointsVersion() {\n return waypointsVersion_ != null;\n }", "public boolean isSetIntersectingRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(INTERSECTINGROADWAYREF$20) != null;\r\n }\r\n }", "public boolean isJourneyInThePast() {\n\t\t\n\t\tlong journeyStartTime = TimeParser.strDateTimeToDate(mDeparture).getTime();\n\t\tlong now = System.currentTimeMillis();\n\t\t//System.out.println(\"DBG isInPast: now:\"+now+\" start:\"+journeyStartTime);\n\t\tif (journeyStartTime >= now) {\n\t\t\treturn false;\n\t\t}\n\t\tif (Constants.useWallClock == false) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean hasHole() {\n return (_holeLines.size() > 0);\n }", "public boolean hasReturnFlightLeg() {\n return returnFlightLeg_ != null;\n }", "public boolean isWayOut () {\n if (this.equals(SquareType.WAYOUT))\n return true;\n else\n return false;\n }", "boolean hasLineage();", "public boolean hasLocation()\n {\n return targetLocation != null;\n }", "public boolean hasLineOfSight ( Entity other ) {\n\t\treturn extract ( handle -> handle.hasLineOfSight ( other ) );\n\t}", "public boolean nearZero() {\n\t\treturn (Math.abs(this.angleDelta) < Constants.Values.Drive.ANGLE_TOLERANCE_STOP && \n\t\t\t\tMath.abs(this.distanceDelta) < Constants.Values.Drive.DISTANCE_TOLERANCE_STOP);\n\t}", "public boolean hasHitShip() {\n\t\t// see if the lines of the ship have intersected with the lines of the\n\t\t// asteroid\n\t\treturn linesIntersect();\n\n\t}", "public boolean hasWaypointsVersion() {\n return waypointsVersionBuilder_ != null || waypointsVersion_ != null;\n }", "public boolean validStopCheck(){\n return points.validPolygon();\n }", "public boolean lineOfSight(AgentModel viewer, float x, float y)\r\n/* 316: */ {\r\n/* 317:361 */ if ((viewer.fov(x, y)) && (line(viewer.getX(), viewer.getY(), x, y))) {\r\n/* 318:363 */ return true;\r\n/* 319: */ }\r\n/* 320:366 */ return false;\r\n/* 321: */ }", "public boolean isWalkway(){\n\t\treturn (cellType == CellType.WALKWAY);\n\t}", "public boolean isWalkable() {\n return type != CellType.WALL && isInBoundaries();\n }", "@Override\n boolean isDisjointed(TransitNode transitNode) {\n if (transitNode instanceof SubwayStation) {\n return this.endLocation != transitNode;\n } else {\n return this.endLocation.getIntersectStop() != ((BusStop) transitNode).getStopNumber();\n }\n }", "public boolean hasLineage() {\n return ((bitField0_ & 0x00040000) == 0x00040000);\n }", "public boolean hasValidPoint() {\n return mPoint.x != 0 || mPoint.y != 0;\n }", "public boolean hasLineage() {\n return ((bitField0_ & 0x00040000) == 0x00040000);\n }", "public boolean isInversable() {\r\n try {\r\n return !(this.getDeterminant() == 0);\r\n } catch (InvalidMoveException e) {\r\n return false;\r\n }\r\n }", "public boolean passedBy(Line2D path) {\n\t\tfor (int i = 0; i < coordinates.size() - 1; i++) {\n\t\t\tvar p1 = coordinates.get(i);\n\t\t\tvar p2 = coordinates.get(i + 1);\n\t\t\tLine2D buildingEdge = new Line2D.Double(p1.getLng(), p1.getLat(), p2.getLng(), p2.getLat()); // x1, y1, x2, y2 \n\t\t\tif (buildingEdge.intersectsLine(path)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "boolean hasIsBoundaryNodeOf();", "public boolean lineOfSight(PathAgentModel viewer, PathAgentModel target)\r\n/* 293: */ {\r\n/* 294: */ float ty;\r\n/* 295: */ float tx;\r\n/* 296: */ float ty;\r\n/* 297:336 */ if (target.hasTarget())\r\n/* 298: */ {\r\n/* 299:338 */ float tx = target.getTargetX();\r\n/* 300:339 */ ty = target.getTargetY();\r\n/* 301: */ }\r\n/* 302: */ else\r\n/* 303: */ {\r\n/* 304:343 */ tx = target.getX();\r\n/* 305:344 */ ty = target.getY();\r\n/* 306: */ }\r\n/* 307:348 */ if (viewer.fov(tx, ty)) {\r\n/* 308:350 */ if (line(viewer.getX(), viewer.getY(), tx, ty)) {\r\n/* 309:352 */ return true;\r\n/* 310: */ }\r\n/* 311: */ }\r\n/* 312:355 */ return false;\r\n/* 313: */ }", "public boolean isIntersected(Line line)\n {\n float a = direction.y;\n float b = -direction.x;\n float d = line.getDirection().y;\n float e = -line.getDirection().x;\n\n return ((a * e - b * d) != 0);\n }", "public boolean followLine(Line2D path)\r\n\t{\r\n\t\tif(phase != DONE)\r\n\t\t{\r\n\t\t\tsetAngle(path);\r\n\t\t\t//debugLine = path;\r\n\t\t\tsetVelX(2*Math.cos(Math.toRadians(mcnAngle)));\r\n\t\t\tsetVelY(-2*Math.sin(Math.toRadians(mcnAngle)));\r\n\t\t\tif(getPoint().distance(path.getP2()) < 10)\r\n\t\t\t{\r\n\t\t\t\tphase = DONE;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "protected boolean isTerrainDependent()\n {\n return this.getAltitudeMode() != WorldWind.ABSOLUTE;\n }", "public boolean hasStep() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasReturnFlightLeg() {\n return returnFlightLegBuilder_ != null || returnFlightLeg_ != null;\n }", "public boolean isBelowRail() {\r\n return this.offset < 0;\r\n }", "private boolean atLeastOneNonWallLocation() {\n\t\tfor (int x = 0; x < this.map.getMapWidth(); x++) {\n\t\t\tfor (int y = 0; y < this.map.getMapHeight(); y++) {\n\n\t\t\t\tif (this.map.getMapCell(new Location(x, y)).isWalkable()) {\n\t\t\t\t\t// If it's not a wall then we can put them there\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 synchronized boolean isPathFinished() {\n if (pathFollower.getFinished()) {\n lastAngle = pathFollower.getEndHeading();\n RobotState.mDriveControlState = DriveControlState.OPEN_LOOP;\n pathFollower = null;\n leftStatus = TrajectoryStatus.NEUTRAL;\n rightStatus = TrajectoryStatus.NEUTRAL;\n return true;\n }\n return false;\n }", "@java.lang.Override\n public boolean hasRoute() {\n return stepInfoCase_ == 7;\n }", "public Boolean isRoad() {\r\n\t \treturn this.road;\r\n\t }", "public boolean isInBoundaries() {\n\t return Referee.playfield.isInBoundaries(this);\n }", "private boolean legalMove() {\n\n\t\t// empty landing spot\n\t\tif (tilePath.size() == 0) {\n\t\t\tdebug(\"illegal, empty landing spot\");\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!mBoard.tileIsEmpty(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, tile not empty\");\n\t\t\treturn false;\n\t\t}\n\n\t\t// start doesn't equal end\n\t\tif (tilePath.get(0).equals(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, start doesn't equal end\");\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "boolean hasDirection();", "public boolean hasPath() {\n return carrier.findPath(getCarrierTarget()) != null;\n }", "public boolean hasStep() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean isSetIntersectRoadwayPI()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(INTERSECTROADWAYPI$22) != null;\r\n }\r\n }", "public boolean isVehiclesListLinkPathPresent() {\r\n\t\treturn isElementPresent(vehicleLinkPath, SHORTWAIT);\r\n\t}", "@java.lang.Override\n public boolean hasRoute() {\n return stepInfoCase_ == 7;\n }", "public boolean isLastLinkOfRouteInvalidLinkForParking() {\r\n\t\tLeg leg = (LegImpl) getPerson().getSelectedPlan().getPlanElements().get(getPlanElementIndex());\r\n\t\tLinkNetworkRouteImpl route = (LinkNetworkRouteImpl) leg.getRoute();\r\n\r\n\t\tboolean isInvalidLink = false;\r\n\t\tint nextCarLegIndex = duringCarLeg_getPlanElementIndexOfNextCarLeg();\r\n\t\tif (nextCarLegIndex != -1) {\r\n\t\t\tisInvalidLink = route.getEndLinkId().toString().equalsIgnoreCase(getInvalidLinkForParking().toString());\r\n\t\t}\r\n\t\treturn isInvalidLink;\r\n\t}", "@Override\r\n\tpublic Boolean HasLeg() {\n\t\treturn false;\r\n\t}", "private boolean isPointOnLine(Location loc, Line line) {\n\n\n //System.out.println(\"SX: \"+line.getStart().getxCoord()+\" SY: \"+line.getStart().getyCoord()+\" EX: \"+line.getEnd().getxCoord()+\" EY: \"+line.getEnd().getyCoord());\n //System.out.println(\"Weight: \" + line.getWeight());\n if (isInBounds(loc, line)) {\n Vector edge = new Vector(line.getStart(), line.getEnd());\n Vector click = new Vector(line.getStart(), loc);\n\n double weight = line.getWeight();\n if (weight <= 5) {\n weight = 12;\n }\n\n double scalarProj = click.scalarProjection(edge); // scalar project of click onto edge\n double yCompClick = Math.sqrt(Math.pow(click.magntiude(), 2) - Math.pow(scalarProj, 2)); // get y component of clicked location\n //System.out.println(\"Click Magnitude: \" + click.magntiude() + \" Scalar Projection: \" + scalarProj + \" yComponent of Click: \" + yCompClick);\n\n return (yCompClick <= weight / 2);\n }\n return false;\n\n\n\n }", "public boolean isCanTravel() {\n return canTravel;\n }", "public boolean goingWrongWay() {\n\t\t// The dot product of the car and the segments normal is positive\n\t\ttemp.set(segments.get(curSeg*2+1)).sub(segments.get(curSeg*2));\n\t\ttemp.rotate90(1);\n\t\ttemp2.setAngleRad(angle);\n\t\treturn temp.dot(temp2) < 0;\n\t}", "public boolean inGoalRegion() {\n return position >= GOAL_POSITION;\n }", "boolean hasAltitude();", "boolean checkLineOfSight(Entity a, Entity b, ServerGameModel model) {\n // Get x and y coordinate of both entities.\n double ax = a.getX();\n double ay = a.getY();\n double bx = b.getX();\n double by = b.getY();\n\n // Find how far in each component the two entities are.\n double dy = Math.abs(by - ay);\n double dx = Math.abs(bx - ax);\n\n int x = (int) Math.floor(a.getX());\n int y = (int) Math.floor(a.getY());\n\n // Number of grid cells to check.\n int n = 0;\n\n // How much to increment x, y after each grid cell check. Should be -1, 0, or 1.\n int xinc, yinc;\n double error;\n\n if (dx == 0) {\n xinc = 0;\n error = Double.POSITIVE_INFINITY;\n } else if (bx > ax) {\n xinc = 1;\n n += (int) Math.floor(bx) - x;\n error = (Math.floor(ax) + 1 - ax) * dy;\n } else {\n xinc = -1;\n n += x - (int) Math.floor(bx);\n error = (ax - Math.floor(ax)) * dy;\n }\n\n if (dy == 0) {\n yinc = 0;\n error -= Double.POSITIVE_INFINITY;\n } else if (by > ay) {\n yinc = 1;\n n += (int) Math.floor(by) - y;\n error -= (Math.floor(ay) + 1 - ay) * dx;\n } else {\n yinc = -1;\n n += y - (int) Math.floor(by);\n error -= (ay - Math.floor(ay)) * dx;\n }\n\n while (true) {\n\n // Check if cell x, y has a wall.\n if (!a.containedIn.contains(model.getCell(x, y)) && !model.getCell(x, y).isSeeThrough())\n return false;\n\n if (--n == 0)\n break;\n\n if (error > 0) {\n y += yinc;\n error -= dx;\n } else if (error < 0) {\n x += xinc;\n error += dy;\n } else {\n // Error = 0 case. Intersects the corner of a grid cell. Need to check\n // all of the 3 other corners.\n // May need to check this case.\n if (!model.getCell(x - 1, y - 1).isPassable() || !model.getCell(x - 1, y).isPassable() ||\n !model.getCell(x, y - 1).isPassable())\n return false;\n x += xinc;\n y += yinc;\n error += (dy - dx);\n n--;\n }\n\n }\n return true;\n }", "public boolean hasStep() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasStep() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "boolean hasDeleteLineage();", "protected boolean isOnPayline() {\n return getY()==getHeight();\n }", "public boolean isSetRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(ROADWAYREF$16) != null;\r\n }\r\n }", "protected boolean isFinished() {\n \tif(Math.abs(Robot.driveTrain.getHeading() - targetDirection) < 2) {\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\n }", "public boolean isMoving() {\n\t\treturn state.getDirection() != Direction.STATIONARY;\n\t}", "public boolean isWalk() {\n return journeyLegType().equals(ItineraryLegType.WALK);\n }", "private static boolean isPointOnLine(LineSegment a, Point2D b) {\r\n\t // Move the image, so that a.first is on (0|0)\r\n\t LineSegment aTmp = new LineSegment(new PointDouble(0, 0), new PointDouble(\r\n\t a.endPoint.getX() - a.startPoint.getX(), a.endPoint.getY() - a.startPoint.getY()));\r\n\t PointDouble bTmp = new PointDouble(b.getX() - a.startPoint.getX(), b.getY() - a.startPoint.getY());\r\n\t double r = crossProduct(aTmp.endPoint, bTmp);\r\n\t return Math.abs(r) < 0.000001;\r\n\t}", "protected boolean isFinished() {\r\n if (lineHasBeenFound) {\r\n lineTrackTime = System.currentTimeMillis();\r\n }\r\n if(System.currentTimeMillis()-lineTrackTime > 4000){\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean hasFlightdetails() {\n return flightdetails_ != null;\n }", "private boolean roadCheck(Road road) {\n\t\t\n\t\treturn false;\n\t}", "public boolean containsPoint(Point pt)\n {\n\n // E[O(log(n))]\n if(_lineBVH != null)\n {\n throw new Error(\"Implement me Please!\");\n }\n else\n {\n // O(n).\n return _point_in_polygon_test(pt);\n }\n }", "public boolean hasTangents() {\n if (tangents != null) {\n return tangents.length > 0;\n }\n return false;\n }", "@Override\n protected boolean isFinished() {\n return (!drive.isRunning(Drivetrain.Follower.DISTANCE) && !drive.isRunning(Drivetrain.Follower.ANGLE));\n\n }", "@ZAttr(id=1132)\n public boolean isReverseProxyUseExternalRouteIfAccountNotExist() {\n return getBooleanAttr(Provisioning.A_zimbraReverseProxyUseExternalRouteIfAccountNotExist, false);\n }", "public boolean isNotAt() {\n return !isAt();\n }", "public boolean hasStep() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasStep() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasLatLng() {\n return this.mLatLng != null;\n }", "public boolean hasPoints() {\n\t\treturn !divided && points.size() != 0;\n\t}", "public boolean isLeashed ( ) {\n\t\treturn extract ( handle -> handle.isLeashed ( ) );\n\t}", "@java.lang.Override\n public boolean hasLastLocation() {\n return lastLocation_ != null;\n }", "boolean hasLocation();", "boolean hasLocation();", "public boolean isPointReached(Point p) {\n return getDistanceAway(p) < MINIMUM_DISTANCE_AWAY;\n }", "@java.lang.Override\n public boolean hasRemainingDistanceMeters() {\n return remainingDistanceMeters_ != null;\n }", "boolean hasRoute();", "@Override\n public boolean isMoving() {\n return _movementTask != null && !_movementTask.isDone();\n }", "public boolean isSolvable() {\n return finalMove != null;\n }", "public boolean isValidPlacementSpot() {\n return isEmpty() && ! getNeighbours().stream().allMatch(Spot::isEmpty);\n }", "public boolean isLineClear() {\r\n return lineActivity.haveAverage() && (lineActivity.getAverage() < 0.5);\r\n }", "boolean hasReturnFlightLeg();", "public boolean hasNeverContacted() {\r\n\t\treturn lastContactTimestamp.get() == 0;\r\n\t}", "private boolean checkFollowingWall(Coordinate carPos,\n\t\t\t\t\t\t\t\t\t\t WorldSpatial.Direction orientation) {\n\t\t// If it's a traversable trap return false\n\t\tif (map.tileAtRelative(carPos, orientation, -1, 0).isTrap() &&\n\t\t\t!map.tileAtRelative(carPos, orientation, -2, 0).blocking()) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Return true if there are any blocking tiles in specific range ahead\n\t\tfor (int i = 1; i <= WALL_THRESHOLD; i++) {\n\t\t\tif (map.tileAtRelative(carPos, orientation, -i, 0).blocking()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isClearPathDiagonally(Location move) {\n\t\tint xdist = currentLoc.distanceToX(move);\n\t\tint ydist = currentLoc.distanceToY(move);\n\t\tint signx = 1, signy = 1;\n\t\tif (xdist < 0) signx = -1;\n\t\tif (ydist < 0) signy = -1;\n\t\tSystem.out.println(currentLoc + \" ==\" + move);\n\t\tLocation start = move.copy();\n\t\tstart.setX(start.getX() - signx);\n\t\tstart.setY(start.getY() - signy);\n\t\tfor (Location next = start; !next.equals(currentLoc); next.setX(next.getX() - signx), next.setY(next.getY() - signy)) {\n\t\t\tSystem.out.println(\"Checking Location \" + next.toString());\n\t\t\tPiece piece = board.getPieceAt(next);\n\t\t\tif (piece != null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "boolean isSetRoadTerrain();", "public boolean isShipFullyDestroyed() {\n return this.goodShipParts.size() <= 0;\n }" ]
[ "0.67814654", "0.6507756", "0.63808733", "0.6305902", "0.61886245", "0.61649394", "0.6103067", "0.60748094", "0.5984311", "0.5931135", "0.5901075", "0.5898072", "0.5892962", "0.5890548", "0.5887289", "0.5885923", "0.5873254", "0.5872348", "0.5854011", "0.5851846", "0.5822068", "0.5806183", "0.57784325", "0.5774913", "0.5754847", "0.57390606", "0.5728802", "0.5722916", "0.5716602", "0.57115", "0.56992745", "0.5691429", "0.56911427", "0.56759304", "0.5657181", "0.563041", "0.5625566", "0.5623337", "0.5619659", "0.56060815", "0.5591305", "0.55861473", "0.55801225", "0.5574763", "0.5574709", "0.5574244", "0.556728", "0.55668545", "0.55642825", "0.55556536", "0.5549477", "0.554143", "0.5540655", "0.55326015", "0.55313957", "0.552825", "0.5519289", "0.5517201", "0.5517193", "0.5507913", "0.5500539", "0.5498387", "0.549556", "0.5494967", "0.5494967", "0.5487215", "0.5486591", "0.54795885", "0.54793197", "0.54789937", "0.54723126", "0.5471225", "0.5471074", "0.5470114", "0.54639554", "0.54602253", "0.5455191", "0.5444854", "0.54437375", "0.5438685", "0.54383326", "0.54383326", "0.5437823", "0.5434487", "0.5426066", "0.542606", "0.5424997", "0.5424997", "0.5424149", "0.5420371", "0.54084754", "0.54073256", "0.5405465", "0.5399276", "0.5395571", "0.53930426", "0.53910774", "0.5389537", "0.5388313", "0.5387726", "0.5384682" ]
0.0
-1
A method used to see if an entity is a suitable target through a number of checks.
public static boolean isSuitableTarget(EntityLivingBase theAttackerEntity, EntityLivingBase parPossibleTargetEntity, boolean parShouldCheckSight) { if (parPossibleTargetEntity == null) { // // DEBUG System.out.println("Target isn't suitable because it is null"); return false; } else if (parPossibleTargetEntity == theAttackerEntity) { // DEBUG System.out.println("Target isn't suitable because it is itself"); return false; } else if (!parPossibleTargetEntity.isEntityAlive()) { // DEBUG System.out.println("Target isn't suitable because it is dead"); return false; } else if (theAttackerEntity.isOnSameTeam(parPossibleTargetEntity)) { // DEBUG System.out.println("Target isn't suitable because it is on same team"); return false; } else if (theAttackerEntity instanceof EntityLiving && parShouldCheckSight) { // DEBUG System.out.println("The attacker can see target = "+((EntityLiving)theAttackerEntity).getEntitySenses().canSee(parPossibleTargetEntity)); return ((EntityLiving)theAttackerEntity).getEntitySenses().canSee(parPossibleTargetEntity); } else { return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getTargetexists();", "public abstract boolean isTarget();", "protected boolean findTarget(){\n\t\t// shoot units\n\t\tfloat tmpDist = -1;\n\t\tUnit tmpUnit = null;\n\t\tfor(Unit u:Game.map.get(tileId).unitMap){ // loop through units on\n\t\t\t\t\t\t\t\t\t\t\t\t\t// maptile\n\t\t\tif(this.id == u.id)\n\t\t\t\tcontinue;\n\t\t\tif(this.ownerId == u.ownerId)\n\t\t\t\tcontinue;\n\t\t\tif(u.dead)\n\t\t\t\tcontinue;\n\t\t\tVector3f tmp = Vector3f.sub(this.modelPos, u.modelPos, null);\n\t\t\tif(tmpDist == -1 || tmp.length() < tmpDist){\n\t\t\t\ttmpUnit = u;\n\t\t\t\ttmpDist = tmp.length();\n\t\t\t}else\n\t\t\t\tcontinue;\n\t\t}\n\t\tif(tmpDist != -1 && tmpDist <= range && tmpUnit != null){\n\t\t\tthis.hostile = tmpUnit;\n\t\t\tthis.target = this.hostile.modelPos;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean isTarget() {\n\t\t// Get a stack trace by constructing an exception here\n\t\tException exc = new Exception();\n\n\t\tfor (PyObject obj : targets.getList()) {\n\t\t\t// Only process proper tuple entries\n\t\t\tif (obj instanceof PyTuple && ((PyTuple) obj).__len__() >= 2) {\n\n\t\t\t\t// Compile the target specification\n\t\t\t\tPyTuple target = (PyTuple) obj;\n\t\t\t\tPattern clazz = getPattern(target.__finditem__(0));\n\t\t\t\tPattern method = getPattern(target.__finditem__(1));\n\n\t\t\t\t// Now scan the stack using this pair of patterns\n\t\t\t\tfor (StackTraceElement ste : exc.getStackTrace()) {\n\t\t\t\t\tif (clazz == null || clazz.matcher(ste.getClassName()).matches()) {\n\t\t\t\t\t\t// Either we don't care about the class it matches, and ...\n\t\t\t\t\t\tif ((method == null || method.matcher(ste.getMethodName()).matches())) {\n\t\t\t\t\t\t\t// Either we don't care about the method name or it matches\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}\n\t\t\t}\n\t\t}\n\n\t\t// Nothing matched\n\t\treturn false;\n\t}", "@Override\n public boolean canTarget(Entity attacker, Entity entity) {\n if (attacker == entity) return true;\n\n // We don't handle non-entities here\n if (attacker == null || entity == null) return true;\n\n // We can't target our friends (bypassing happens at a higher level)\n if (isFriendly(attacker, entity, false)) {\n return false;\n }\n for (EntityTargetingManager manager : targetingProviders) {\n if (!manager.canTarget(attacker, entity)) {\n return false;\n }\n }\n return true;\n }", "boolean isTargetStatistic();", "boolean canSupportEntity(Entity a);", "@Override\n\tpublic boolean shouldExecute() {\n\t\tif (!theEntityTameable.isTamed())\n\t\t\treturn false;\n\t\telse {\n\t\t\tfinal EntityLivingBase var1 = theEntityTameable.getOwner();\n\n\t\t\tif (var1 == null)\n\t\t\t\treturn false;\n\t\t\telse {\n\t\t\t\ttheTarget = var1.getLastAttacker();\n\t\t\t\tfinal int var2 = var1.getLastAttackerTime();\n\t\t\t\treturn var2 != field_142050_e\n\t\t\t\t\t\t&& isSuitableTarget(theTarget, false)\n\t\t\t\t\t\t&& theEntityTameable.func_142018_a(theTarget, var1);\n\t\t\t}\n\t\t}\n\t}", "private boolean isTargetingPlayer(Entity entity) {\n if (!plugin.getConfiguration().relativeAgeEnabled()) return false;\n if (entity instanceof Creature) {\n Creature creature = (Creature) entity;\n if (creature.getTarget() != null && creature.getTarget().getType().equals(EntityType.PLAYER)) {\n lastTargeted.put(entity.getUniqueId(), entity.getTicksLived());\n return true;\n }\n }\n return false;\n }", "private boolean checkTargetMatch(GameElement target){\r\n\t\treturn (target.getAttributeManager().getAttribute(AttributeConstantsEnum.AFFILIATION.getStatusCode()).getValue()\r\n\t\t\t\t== myTargetAffiliationID.getValue());\r\n\t}", "public boolean hasTarget() {\n return target != null;\n }", "@Override\n\tpublic boolean shouldExecute() {\n\t\tif (!theEntity.isTamed())\n\t\t\treturn false;\n\t\telse if (theEntity.isInWater())\n\t\t\treturn false;\n\t\telse if (!theEntity.onGround)\n\t\t\treturn false;\n\t\telse {\n\t\t\tfinal EntityLivingBase var1 = theEntity.getOwner();\n\t\t\treturn var1 == null ? true\n\t\t\t\t\t: theEntity.getDistanceSqToEntity(var1) < 144.0D\n\t\t\t\t\t\t\t&& var1.getAITarget() != null ? false : isSitting;\n\t\t}\n\t}", "public boolean shouldExecute() {\n LivingEntity livingentity = ShulkerEntity.this.getAttackTarget();\n if (livingentity != null && livingentity.isAlive()) {\n return ShulkerEntity.this.world.getDifficulty() != Difficulty.PEACEFUL;\n } else {\n return false;\n }\n }", "public default boolean isAffectingEntity(SpellData dataIn, LivingEntity entityIn){ return false;}", "@Override\n public boolean hasTarget() {\n if (targets.size < Rules.Player.SideKicks.HeatTurret.MAX_TARGETS) {\n return false;\n }\n for (int i = 0; i < targets.size; i++) {\n Enemy currentTarget = targets.get(i);\n if (currentTarget.isDead()) {\n targets.removeIndex(i);\n return true;\n }\n }\n return false;\n }", "Entity determinePriorityTarget();", "boolean isSetTarget();", "public boolean hasTarget() { \n if (isReal) {\n return get(\"tv\") == 1; // cleaned return statement up\n } else {\n return hasTargetSim.getBoolean(false);\n }\n }", "private static final boolean isTargetInSight(Vec3d vec3, EntityLivingBase seeker, Entity target) \r\n\t{\r\n\t\treturn seeker.canEntityBeSeen(target) && isTargetInFrontOf(seeker, target, 60);\r\n\t}", "@Test\n\t\t\tpublic void testTargetOneStep()\n\t\t\t{\n\t\t\t\t//Test one step and check for the right space\n\t\t\t\tboard.calcTargets(0, 7, 1);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(1, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(1, 7)));\n\n\t\t\t\t// Test one step near a door with the incorrect direction\n\t\t\t\tboard.calcTargets(13, 6, 1);\n\t\t\t\ttargets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(3, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(14, 6)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 5)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 7)));\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "boolean hasEntity();", "boolean hasEntity();", "@Override\n public boolean isUsableEffectOne() {\n return getEffectsEnable()[0] && getUsableEffect()[0] && ((TargetSquareRequestEvent) getTargetEffectOne()).getPossibleTargetsX().length != 0;\n }", "@Test\r\n\tpublic void testTargetsOneStep() {\r\n\t\tboard.calcTargets(24, 17, 1);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\tassertEquals(2, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(23, 17)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(24, 18)));\t\r\n\t\t\r\n\t\tboard.calcTargets(10, 24, 1);\r\n\t\ttargets= board.getTargets();\r\n\t\tassertEquals(2, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 24)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(10, 23)));\t\t\t\r\n\t}", "public boolean shouldExecute() {\n return ShulkerEntity.this.getAttackTarget() == null && ShulkerEntity.this.rand.nextInt(40) == 0;\n }", "@Override\n public boolean isValidEntity(Entity entity, IGame game,\n boolean useValidNonInfantryCheck) {\n return (super.isValidEntity(entity, game, useValidNonInfantryCheck) \n && (unitNumber == entity.getUnitNumber()));\n }", "@Test\n\tpublic void testTargetsOneStep() {\n\t\tboard.calcTargets(7, 6, 1);\n\t\tSet<BoardCell> targets= board.getTargets();\n\t\tassertEquals(4, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(7, 7)));\n\t\tassertTrue(targets.contains(board.getCellAt(7, 5)));\t\n\t\tassertTrue(targets.contains(board.getCellAt(6, 6)));\t\n\t\tassertTrue(targets.contains(board.getCellAt(8, 6)));\t\n\n\n\t\tboard.calcTargets(14, 24, 1);\n\t\ttargets= board.getTargets();\n\t\tassertEquals(2, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(15, 24)));\n\t\tassertTrue(targets.contains(board.getCellAt(14, 23)));\t\t\t\n\t}", "public boolean checkTrades(Player owner, Player targetPlayer, ArrayList<Tile> targetTiles, ArrayList<Tile> offeredTiles) {\n for(int i = 0; i < offeredTiles.size(); i++)\n if (!owner.containsTile(offeredTiles.get(i)))\n return false;\n\n for(int k = 0; k < targetTiles.size(); k++)\n if (!targetPlayer.containsTile(targetTiles.get(k)))\n return false;\n return true; // Some other things may be added\n }", "private boolean isTargetTerritoryOneBlockAway() {\n for(Territory territory:getCurrentPlayerTerritories()) {\n if(Math.abs(territory.getID()-selectedTerritoryByPlayer.getID()) == 1) {\n int minID = Math.min(territory.getID(),selectedTerritoryByPlayer.getID());\n int maxID = Math.max(territory.getID(),selectedTerritoryByPlayer.getID());\n if(maxID % gameDescriptor.getColumns() == 0)\n return true;\n if((minID % gameDescriptor.getColumns() != 0 )\n && (minID / gameDescriptor.getColumns() == maxID / gameDescriptor.getColumns())) {\n return true;\n }\n }\n else if(Math.abs(territory.getID()-selectedTerritoryByPlayer.getID()) == gameDescriptor.getColumns())\n return true;\n }\n return false;\n }", "@Test\r\n\tpublic void testTargets33_1() {\r\n\t\tBoardCell cell = board.getCell(3, 3);\r\n\t\tboard.calcTargets(cell, 1);\r\n\t\tSet<BoardCell> targets = board.getTargets();\r\n\t\tassertTrue(targets != null);\r\n\t\tassertEquals(2, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCell(2, 3)));\r\n\t\tassertTrue(targets.contains(board.getCell(3, 2)));\r\n\r\n\t}", "boolean hasTargetPos();", "public boolean shouldExecute()\n\t{\n\t\tif (this.entity.getAge() >= 100)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse if (this.entity.getRNG().nextInt(120) != 0)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tVec3d Vec3d = RandomPositionGenerator.findRandomTarget(this.entity, 10, 7);\n\n\t\t\tif (Vec3d == null)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.xPosition = Vec3d.xCoord;\n\t\t\t\tthis.yPosition = Vec3d.yCoord;\n\t\t\t\tthis.zPosition = Vec3d.zCoord;\n\t\t\t\tthis.leapTarget = Vec3d;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}", "@Test\r\n\tpublic void testTargets00_1() {\r\n\t\tBoardCell cell = board.getCell(0, 0);\r\n\t\tboard.calcTargets(cell, 1);\r\n\t\tSet<BoardCell> targets = board.getTargets();\r\n\t\tassertTrue(targets != null);\r\n\t\tassertEquals(2, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCell(0, 1)));\r\n\t\tassertTrue(targets.contains(board.getCell(1, 0)));\r\n\r\n\t}", "public boolean canAttack(Figure target) {\n return true;\n }", "public boolean shouldExecute()\n {\n if (field_46105_a.getRNG().nextFloat() >= field_48294_e)\n {\n return false;\n }\n\n if (field_48293_f == (net.minecraft.src.EntityPlayer.class))\n {\n closestEntity = field_46105_a.worldObj.getClosestPlayerToEntity(field_46105_a, field_46101_d);\n }\n else\n {\n closestEntity = field_46105_a.worldObj.findNearestEntityWithinAABB(field_48293_f, field_46105_a.boundingBox.expand(field_46101_d, 3D, field_46101_d), field_46105_a);\n }\n\n return closestEntity != null;\n }", "@Override\n public boolean isValidEntity(Entity entity, IGame game, \n boolean useValidNonInfantryCheck) {\n return super.isValidEntity(entity, game, useValidNonInfantryCheck)\n && (entity.getId() == entityId);\n }", "boolean isSatisfiable(ConditionContext context);", "@Override\n public boolean shouldExecute()\n {\n if (!this.mustUpdate)\n {\n if (this.entity.getRNG().nextInt(this.executionChance) != 0)\n {\n return false;\n }\n }\n\n Vec3d vec3d = RandomPositionGenerator.findRandomTarget(this.entity, 10, 7);\n int attempts = 0;\n while (attempts < 10 && entity.getHomePosition().getDistance(vec3d != null ? (int)vec3d.xCoord : (int)entity.posX, vec3d != null ? (int)vec3d.yCoord : (int)entity.posY, vec3d != null ? (int)vec3d.zCoord : (int)entity.posZ) > entity.getMaximumHomeDistance()) {\n vec3d = RandomPositionGenerator.findRandomTarget(this.entity, 12, 8);\n attempts++;\n }\n\n if (vec3d == null || attempts >= 10)\n {\n return false;\n }\n else\n {\n this.xPosition = vec3d.xCoord;\n this.yPosition = vec3d.yCoord;\n this.zPosition = vec3d.zCoord;\n this.mustUpdate = false;\n return true;\n }\n }", "public boolean hasTargets() {\n return !getAdjacentCharacters().isEmpty();\n }", "public boolean hasTarget(){\n\t\treturn this.targetComponent != null;\n\t}", "float shouldEatOffTheGround(IGeneticMob geneticMob, EntityItem itemEntity);", "boolean hasIsPerformOf();", "@Test\n public void test_chooseBadTargetOnSacrifice_WithTargets_AI() {\n addCard(Zone.HAND, playerA, \"Redcap Melee\", 1);\n addCard(Zone.BATTLEFIELD, playerA, \"Mountain\", 3);\n //\n addCard(Zone.BATTLEFIELD, playerB, \"Silvercoat Lion\", 1);\n\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Redcap Melee\", \"Silvercoat Lion\");\n //addTarget(playerA, \"Mountain\"); AI must select targets\n\n //setStrictChooseMode(true); AI must select targets\n setStopAt(1, PhaseStep.END_TURN);\n execute();\n\n assertGraveyardCount(playerA, \"Redcap Melee\", 1);\n assertGraveyardCount(playerA, \"Mountain\", 1);\n assertPermanentCount(playerA, \"Mountain\", 3 - 1);\n assertGraveyardCount(playerB, \"Silvercoat Lion\", 1);\n }", "@Test\r\n\tpublic void testTargets00_2() {\r\n\t\tBoardCell cell = board.getCell(0, 0);\r\n\t\tboard.calcTargets(cell, 2);\r\n\t\tSet<BoardCell> targets = board.getTargets();\r\n\t\tassertTrue(targets != null);\r\n\t\tassertEquals(3, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCell(0, 2)));\r\n\t\tassertTrue(targets.contains(board.getCell(2, 0)));\r\n\t\tassertTrue(targets.contains(board.getCell(1, 1)));\r\n\r\n\t}", "private boolean updateTarget(MovingEntity target) {\n // check if the target died\n if (target.getCurrHP() > 0) {\n return false;\n }\n // else, target is dead and update accordingly\n\n if (battleEnemies.contains(target)) {\n if (battleEnemy != null && battleEnemy.equals(target)) {\n battleEnemy = nextAttacker(battleEnemy, battleEnemies);\n }\n targetEnemy = nextTarget(targetEnemy, targetEnemies, battleEnemies);\n battleEnemies.remove(target);\n\n } else if (battleAllies.contains(target)) {\n if (battleAlly != null && battleAlly.equals(target)) {\n battleAlly = nextAttacker(battleEnemy, battleAllies);\n }\n targetAlly = nextTarget(targetAlly, targetAllies, battleAllies);\n battleAllies.remove(target);\n }\n return true;\n }", "boolean hasTargetPlayerId();", "protected abstract boolean isSatisfiedBy(Design design, AUndertaking t);", "@Test\r\n\tpublic void testTargets22_2() {\r\n\t\tBoardCell cell = board.getCell(2, 2);\r\n\t\tboard.calcTargets(cell, 2);\r\n\t\tSet<BoardCell> targets = board.getTargets();\r\n\t\tassertTrue(targets != null);\r\n\t\tassertEquals(6, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCell(0, 2)));\r\n\t\tassertTrue(targets.contains(board.getCell(2, 0)));\r\n\t\tassertTrue(targets.contains(board.getCell(1, 1)));\r\n\t\tassertTrue(targets.contains(board.getCell(3, 1)));\r\n\t\tassertTrue(targets.contains(board.getCell(1, 3)));\r\n\t\tassertTrue(targets.contains(board.getCell(3, 3)));\r\n\r\n\t}", "public static Predicate<INode> isValidTarget(INode x) {\n return p-> x != p && x.getTransactionState() == ETransactionState.IDLE && p.wants(x.getHead());\n }", "boolean hasFeedItemTarget();", "EValidTargetTypes getTargets();", "public boolean getIsTargetFound() {\n NetworkTableEntry tv = m_table.getEntry(\"tv\");\n double v = tv.getDouble(0);\n if (v == 0.0f){\n return false;\n }else {\n return true;\n }\n }", "boolean shouldAutoAggro(IGeneticMob geneticMob, EntityLiving otherEntity);", "boolean hasTargetPlayerName();", "private boolean canEquip(Item item,String target){\n\n\t\tif (! (item instanceof Equippable))return false;\n\t\tEquippable toEquip = (Equippable)item;\n\t\tswitch(toEquip.getEquipType()){\n\t\tcase HEAD:\n\t\t\tif (target.startsWith(\"EquipPos\"+EquipType.HEAD)) return true;\n\t\t\tbreak;\n\t\tcase CHEST:\n\t\t\tif (target.startsWith(\"EquipPos\"+EquipType.CHEST)) return true;\n\t\t\tbreak;\n\t\tcase WEAPON:\n\t\t\tif (target.startsWith(\"EquipPos\"+EquipType.WEAPON)) return true;\n\t\t\tbreak;\n\t\tcase LEGS:\n\t\t\tif (target.startsWith(\"EquipPos\"+EquipType.LEGS)) return true;\n\t\t\tbreak;\n\t\tcase NECK:\n\t\t\tif (target.startsWith(\"EquipPos\"+EquipType.NECK)) return true;\n\t\t\tbreak;\n\t\tcase BELT:\n\t\t\tif (target.startsWith(\"EquipPos\"+EquipType.BELT)) return true;\n\t\t\tbreak;\n\t\tcase BOOTS:\n\t\t\tif (target.startsWith(\"EquipPos\"+EquipType.BOOTS)) return true;\n\t\t}\n\t\treturn false;\n\t}", "@Test\n public void test_chooseBadTargetOnSacrifice_WithTargets_User() {\n // Redcap Melee deals 4 damage to target creature or planeswalker. If a nonred permanent is dealt damage this way, you sacrifice a land.\n addCard(Zone.HAND, playerA, \"Redcap Melee\", 1);\n addCard(Zone.BATTLEFIELD, playerA, \"Mountain\", 3);\n //\n addCard(Zone.BATTLEFIELD, playerB, \"Silvercoat Lion\", 1);\n\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Redcap Melee\", \"Silvercoat Lion\");\n addTarget(playerA, \"Mountain\");\n\n setStrictChooseMode(true);\n setStopAt(1, PhaseStep.END_TURN);\n execute();\n\n assertGraveyardCount(playerA, \"Redcap Melee\", 1);\n assertGraveyardCount(playerA, \"Mountain\", 1);\n assertPermanentCount(playerA, \"Mountain\", 3 - 1);\n assertGraveyardCount(playerB, \"Silvercoat Lion\", 1);\n }", "public boolean canHit(Figure entity) {\n return true;\n }", "public boolean collisionDetected() {\r\n\t\tfor (GameElement target : getTargets()) {\r\n\t\t\tif (myInitiator.intersects(target) && checkTargetMatch(target)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static Optional<Boolean> isTarget(EventModel eventModel, Identification identification) {\n if (eventModel.getListResourceContainer()\n .providesResource(Collections.singletonList(SelectorResource.RESOURCE_ID))) {\n return Optional.of(eventModel.getListResourceContainer()\n .provideResource(SelectorResource.RESOURCE_ID)\n .stream()\n .map(ResourceModel::getResource)\n .filter(resource -> resource instanceof Identification)\n .map(object -> (Identification) object)\n .anyMatch(identification::equals));\n } else {\n return Optional.empty();\n }\n }", "public synchronized boolean isOnTarget()\n {\n final String funcName = \"isOnTarget\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n boolean onTarget = false;\n\n if (noOscillation)\n {\n //\n // Don't allow oscillation, so if we are within tolerance or we pass target, just quit.\n // If setPointSign is positive, it means the target is \"forward\". So if currError <= tolerance,\n // it means we are either within tolerance or have passed the target.\n // If setPointSign is negative, it means the target is \"backward\". So if -currError <= tolerance,\n // it means we are either within tolerance or have passed the target.\n //\n if (currError * setPointSign <= tolerance)\n {\n onTarget = true;\n }\n }\n else if (Math.abs(currError) > tolerance)\n {\n settlingStartTime = TrcUtil.getCurrentTime();\n }\n else if (TrcUtil.getCurrentTime() >= settlingStartTime + settlingTime)\n {\n onTarget = true;\n }\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%s\", Boolean.toString(onTarget));\n }\n\n return onTarget;\n }", "boolean checkShouldSkipTarget(String target) {\n return Boolean.TRUE.equals(SKIP_TARGETS.retrieve(target));\n }", "public static final boolean isTargetInSight(EntityLivingBase seeker, Entity target) \r\n\t{\r\n\t\treturn isTargetInSight(seeker.getLookVec(), seeker, target);\r\n\t}", "boolean precondition(Skill castSkill, Creature performer, Item target) {\n/* 53 */ if (!target.isMailBox() && !target.isSpringFilled() && !target.isUnenchantedTurret() && \n/* 54 */ !target.isPuppet() && !target.isEnchantedTurret()) {\n/* */ \n/* 56 */ performer.getCommunicator().sendNormalServerMessage(\"The spell will not work on that.\", (byte)3);\n/* 57 */ return false;\n/* */ } \n/* */ \n/* */ \n/* 61 */ SpellEffect negatingEffect = EnchantUtil.hasNegatingEffect(target, getEnchantment());\n/* 62 */ if (negatingEffect != null) {\n/* 63 */ EnchantUtil.sendNegatingEffectMessage(getName(), performer, target, negatingEffect);\n/* 64 */ return false;\n/* */ } \n/* 66 */ return true;\n/* */ }", "public static boolean checkDefeat(){\n\t\tboolean found = false;\n\t\t\n\t\tfor (int i = gui.getCurUnitSelected() ; i < heroList.length && !found; i++){\n\t\t\tif (heroList[i].isAlive()){\n\t\t\t\tgui.setCurSelectedUnit(i);\n\t\t\t\tfound = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < gui.getCurUnitSelected() && !found; i++){\n\t\t\tif (heroList[i].isAlive()){\n\t\t\t\tgui.setCurSelectedUnit(i);\n\t\t\t\tfound = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn found;\n\t}", "float shouldAggroOnHit(IGeneticMob geneticMob, EntityLiving attacker);", "boolean hasGeoTargets();", "@Test\r\n\tpublic void testTargets00_3() {\r\n\t\tBoardCell cell = board.getCell(0, 0);\r\n\t\tboard.calcTargets(cell, 3);\r\n\t\tSet<BoardCell> targets = board.getTargets();\r\n\t\tassertTrue(targets != null);\r\n\t\tassertEquals(6, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCell(0, 3)));\r\n\t\tassertTrue(targets.contains(board.getCell(1, 2)));\r\n\t\tassertTrue(targets.contains(board.getCell(2, 1)));\r\n\t\tassertTrue(targets.contains(board.getCell(3, 0)));\r\n\t\tassertTrue(targets.contains(board.getCell(1, 0)));\r\n\t\tassertTrue(targets.contains(board.getCell(0, 1)));\r\n\t}", "public boolean containsTarget(final L2Character player)\n\t{\n\t\treturn getAggroListRP().containsKey(player);\n\t}", "private boolean checkInception(Item it1, String target){\n\t\tif (it1 == openContainer && target.startsWith(\"ContPos\")){\n\t\t\tdisplayMessage(\"INCEPTION FAILED. NICE TRY\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean isUsableEffectTwo() {\n return getEffectsEnable()[1] && getUsableEffect()[1] && ((TargetSquareRequestEvent) getTargetEffectOne()).getPossibleTargetsX().length != 0 && getOwner().canAffortCost(getSecondEffectCost());\n }", "@Override\r\n\tpublic boolean canAttackEntity(Entity entity) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean canAttackEntity(Entity entity) {\n\t\treturn false;\r\n\t}", "@Test\r\n\tpublic void testTargets11_2() {\r\n\t\tBoardCell cell = board.getCell(1, 1);\r\n\t\tboard.calcTargets(cell, 2);\r\n\t\tSet<BoardCell> targets = board.getTargets();\r\n\t\tassertTrue(targets != null);\r\n\t\tassertEquals(6, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCell(3, 1)));\r\n\t\tassertTrue(targets.contains(board.getCell(1, 3)));\r\n\t\tassertTrue(targets.contains(board.getCell(2, 2)));\r\n\t\tassertTrue(targets.contains(board.getCell(2, 0)));\r\n\t\tassertTrue(targets.contains(board.getCell(0, 2)));\r\n\t\tassertTrue(targets.contains(board.getCell(0, 0)));\r\n\r\n\t}", "void checkCollision(Entity other);", "@Test\r\n\tpublic void testTargetsTwoSteps() {\r\n\t\tboard.calcTargets(10, 1, 2);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\tassertEquals(6, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 0)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 0)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(12, 1)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(10, 3)));\r\n\t\t\r\n\t\tboard.calcTargets(17, 13, 2);\r\n\t\ttargets= board.getTargets();\r\n\t\tassertEquals(5, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(17, 15)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(18, 14)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(16, 14)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(16, 12)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(15, 13)));\r\n\t}", "@Override\n public boolean isValidEntity(Entity entity, IGame game) {\n boolean retVal = false;\n // Null entities don't need to be checked.\n if (null != entity) {\n\n // Any entity in the array is valid.\n // N.B. Stop looking after we've found the match.\n final int entityId = entity.getId();\n for (int index = 0; (index < entityIds.length) && !retVal; index++) {\n if (entityId == entityIds[index]) {\n retVal = true;\n }\n }\n\n } // End entity-isn't-null\n\n return retVal;\n }", "@Override\n public boolean applyThis() {\n Unit source = (Unit) ref.getSourceObj();\n Ref REF = ref.getCopy();\n Condition conditions = new OrConditions(\n DC_ConditionMaster\n .getSelectiveTargetingTemplateConditions(SELECTIVE_TARGETING_TEMPLATES.MY_ITEM),\n DC_ConditionMaster\n .getSelectiveTargetingTemplateConditions(SELECTIVE_TARGETING_TEMPLATES.MY_WEAPON));\n if (!new SelectiveTargeting(conditions).select(REF)) {\n ref.getActive().setCancelled(true);\n return false;\n }\n HeroItem item = (HeroItem) REF.getTargetObj();\n conditions = new Conditions(\n // ++ Max distance?\n new DistanceCondition(ref.getActive().getIntParam(PARAMS.RANGE, false) + \"\"),\n // new NumericCondition(\"{match_c_n_of_actions}\", \"1\"),\n new CanActCondition(KEYS.MATCH),\n new NotCondition(ConditionMaster.getSelfFilterCondition()),\n DC_ConditionMaster\n .getSelectiveTargetingTemplateConditions(SELECTIVE_TARGETING_TEMPLATES.ANY_ALLY));\n // non-immobile, ++facing?\n if (!new SelectiveTargeting(conditions).select(REF)) {\n ref.getActive().setCancelled(true);\n return false;\n }\n\n Unit unit = (Unit) REF.getTargetObj();\n\n boolean result = roll(source, unit, item);\n if (item instanceof QuickItem) {\n QuickItem quickItem = (QuickItem) item;\n source.removeQuickItem(quickItem);\n if (result) {\n unit.addQuickItem(quickItem);\n } else {\n dropped(item, unit);\n }\n\n } else {\n source.unequip(item, null);\n if (result) {\n unit.addItemToInventory(item); // TODO equip in hand if\n }\n// possible? spend AP?\n else {\n dropped(item, unit);\n }\n\n }\n // ref.getObj(KEYS.ITEM);\n return true;\n }", "@Override\n public boolean shouldRiderSit()\n {\n return entityData.get(SHOULD_SIT);\n }", "boolean isApplicable(final T model);", "public static boolean matchTargetAPI(IMethod m){\r\n for(ExpensiveAPI api : Resource.targetAPIs){\r\n if(api.signature.equals(m.getName().toString()) && m.getSignature().contains(api.clsName)){\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "@Test\n\tpublic void testTargetsTwoSteps() {\n\t\tboard.calcTargets(7, 6, 2);\n\t\tSet<BoardCell> targets= board.getTargets();\n\t\tassertEquals(7, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(5, 6)));\n\t\tassertTrue(targets.contains(board.getCellAt(6, 7)));\n\t\tassertTrue(targets.contains(board.getCellAt(6, 5)));\n\t\tassertTrue(targets.contains(board.getCellAt(8, 7)));\n\t\tassertTrue(targets.contains(board.getCellAt(8, 5)));\n\t\tassertTrue(targets.contains(board.getCellAt(9, 6)));\n\t\tassertTrue(targets.contains(board.getCellAt(7, 4)));\n\t\tboard.calcTargets(14, 24, 2);\n\t\ttargets= board.getTargets();\n\t\tassertEquals(3, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(14, 22)));\n\t\tassertTrue(targets.contains(board.getCellAt(15, 23)));\t\n\t\tassertTrue(targets.contains(board.getCellAt(16, 24)));\t\t\t\n\t}", "private boolean checkForAction(){\n IndividualAction thisAction = checkTriggers();\n if(thisAction.getTriggers() == null){\n return false;\n }\n if(!checkSubjects(thisAction.getSubjects())){\n return false;\n }\n doConsumed(thisAction.getConsumed());\n doProduce(thisAction.getProduced());\n results.add(thisAction.getNarration());\n\n return true;\n }", "public boolean shouldExecute() {\n return this.entity.getAttackTarget() != null && this.isBowInMainhand();\n }", "private static boolean _isTooTarget(SPTarget p1Target, ObservationElements elems) {\n final ISPObservation obs = elems.getObservationNode();\n if (obs == null || !Too.isToo(obs)) return false;\n\n final ITarget t = p1Target.getTarget();\n if (t instanceof HmsDegTarget) {\n final HmsDegTarget hmsDeg = (HmsDegTarget) t;\n return hmsDeg.getRa().getValue() == 0.0 &&\n hmsDeg.getDec().getValue() == 0.0; ///\n }\n\n return false;\n }", "@Override\n public boolean shouldExecute()\n {\n if (theEntity.getAITarget() == null && theEntity.isBurning())\n {\n return false;\n }\n else\n {\n if (theEntity.isRearingFirstTick()) // only set the first tick that is rearing\n {\n return true; \n }\n else\n {\n return false;\n }\n } \n }", "public static Optional<Boolean> isTarget(EventModel eventModel, Identifiable identifiable) {\n if (eventModel.getListResourceContainer()\n .providesResource(Collections.singletonList(SelectorResource.RESOURCE_ID))) {\n return Optional.of(eventModel.getListResourceContainer()\n .provideResource(SelectorResource.RESOURCE_ID)\n .stream()\n .map(ResourceModel::getResource)\n .filter(resource -> resource instanceof Identification)\n .map(object -> (Identification) object)\n .anyMatch(identifiable::isOwner));\n } else {\n return Optional.empty();\n }\n }", "public static boolean hasTarget() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"tv\").getDouble(0) == 0 ? false : true;\n }", "boolean isReturnEntityRequested();", "@Override\n\tprotected boolean isSupportedByEntity(final Action action, final String entity) {\n\t\treturn action.getName().equals(\"occupy\");\n\t}", "public boolean valid(InstanceIdentifier instanceId, Collection<Seed> seeds, Target t);", "boolean canBuildDome(Tile t);", "public static boolean isSomethingToAttackDefined() {\n\t\treturn _attackTargetUnit != null && !_attackTargetUnit.getType().isOnGeyser();\n\t}", "@Test\n public void isJumpActionLegalFor()\n {\n // Setup.\n final CheckersGameInjector injector = new CheckersGameInjector();\n final List<Agent> agents = createAgents(injector);\n final Agent agentRed = agents.get(0);\n final Agent agentWhite = agents.get(1);\n final CheckersEnvironment environment = createEnvironment(injector, agents);\n {\n final CheckersMoveAction action = new CheckersMoveAction(environment, agentRed, CheckersPosition.P21,\n CheckersPosition.P17);\n action.doIt();\n }\n {\n final CheckersMoveAction action = new CheckersMoveAction(environment, agentWhite, CheckersPosition.P09,\n CheckersPosition.P14);\n action.doIt();\n }\n {\n final CheckersMoveAction action = new CheckersMoveAction(environment, agentRed, CheckersPosition.P22,\n CheckersPosition.P18);\n action.doIt();\n }\n final CheckersAdjudicator adjudicator = injector.injectAdjudicator();\n\n // Agent white can jump his token over a red token to an empty space.\n assertTrue(adjudicator.isJumpActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P14,\n CheckersPosition.P21));\n\n // Agent white cannot jump his token to an occupied space.\n assertFalse(adjudicator.isJumpActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P14,\n CheckersPosition.P23));\n\n // Agent white cannot jump his token to an adjacent empty space.\n assertFalse(adjudicator.isJumpActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P10,\n CheckersPosition.P15));\n\n // Agent white cannot jump his own token.\n assertFalse(adjudicator.isJumpActionLegalFor(environment, CheckersTeam.WHITE, CheckersPosition.P08,\n CheckersPosition.P15));\n }", "public boolean isTurnOngoing() {\n int numEntitiesWithActions = 0;\n for (Entity entity : entitiesInCombat) {\n if (entity.canAct()) {\n numEntitiesWithActions++;\n }\n }\n return numEntitiesWithActions > 0;\n }", "public boolean appears(T target) {\r\n int index = getIndex(target);\r\n return index != -1;\r\n }", "@Override\r\n\tpublic boolean matches(InventoryCrafting inv, World worldIn) {\r\n\t\tboolean ismatching = super.matches(inv, worldIn);\r\n\t\tfor (int i = 0; ismatching && i < inv.getSizeInventory(); i++) {\r\n\t\t\tItemStack s = inv.getStackInSlot(i);\r\n\t\t\tif (s.getItem() == target)\r\n\t\t\t\tismatching = ItemHelper.getUpgrades(s) + 1 <= target.getMaxUpgrades();\r\n\t\t}\r\n\t\treturn ismatching;\r\n\t}", "boolean hasRewardResource();", "public abstract boolean isSatisfied();", "public boolean canEat(Cell target) {\n return (target.resident instanceof OmniEdible);\n }", "boolean precondition(Skill castSkill, Creature performer, Creature target) {\n/* 76 */ return false;\n/* */ }" ]
[ "0.673406", "0.67177075", "0.64505774", "0.6410267", "0.6366408", "0.63377666", "0.6325426", "0.6216552", "0.61971426", "0.60865605", "0.6009792", "0.5974085", "0.5918834", "0.59186524", "0.59061724", "0.58793306", "0.587738", "0.5846041", "0.58376", "0.5827525", "0.5813127", "0.5813127", "0.5791198", "0.57598704", "0.5717976", "0.5711267", "0.5705154", "0.5686413", "0.5669796", "0.5666444", "0.56591254", "0.5635557", "0.5617841", "0.5615111", "0.5607482", "0.55862236", "0.55782074", "0.55710405", "0.5560889", "0.55570436", "0.5552731", "0.5547235", "0.5544188", "0.553901", "0.5537734", "0.55339044", "0.55329555", "0.55235016", "0.5506707", "0.548358", "0.5478165", "0.54619485", "0.54572666", "0.5456793", "0.5453742", "0.5451746", "0.544563", "0.54450005", "0.54406714", "0.54369366", "0.54338163", "0.5431164", "0.54284734", "0.54219306", "0.54099566", "0.54047245", "0.54001665", "0.5397949", "0.53968287", "0.53854793", "0.5367459", "0.5367459", "0.5362339", "0.5353708", "0.5353006", "0.5344781", "0.5342004", "0.53359556", "0.53352976", "0.5333452", "0.53318393", "0.53289294", "0.53157055", "0.5313478", "0.53106403", "0.5304208", "0.5303684", "0.5292358", "0.5291797", "0.5275161", "0.527179", "0.5264597", "0.5256301", "0.52431023", "0.5241294", "0.5240128", "0.5235139", "0.5235076", "0.5226438", "0.5212176" ]
0.6936153
0
The coordinate system for Minecraft is a bit backwards as explained at
public static float getPitchFromVec(Vec3d parVec) { Vec3d theVec = parVec.normalize(); return (float) Math.toDegrees(Math.asin(theVec.y)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long[] getWorldCoordinate(int screenX, int screenY);", "godot.wire.Wire.Vector2 getOrigin();", "public Vector2F getWorldLocation() {\n\t\treturn new Vector2F(xPos, yPos);\n\t}", "public double[] getWorldCoordinateWGS84(int screenX, int screenY);", "godot.wire.Wire.Vector3 getOrigin();", "protodef.b_math.coord getCoordInfo();", "public Coordinate getLocation();", "public static Point worldToMap(double x, double y) {\n\t\tfinal Client client = Context.client();\n\t\tfinal Multipliers multipliers = Context.multipliers();\n\t\tfinal Player local = Players.getLocal();\n\t\tx -= Game.getBaseX();\n\t\ty -= Game.getBaseY();\n\n\t\tfinal RegionOffset localTile = local.getRegionOffset();\n\t\tfinal int calculatedX = (int) (x * 4 + 2) - (localTile.getX() << 9) / 0x80;\n\t\tfinal int calculatedY = (int) (y * 4 + 2) - (localTile.getY() << 9) / 0x80;\n\n\t\tfinal WidgetChild mm2 = WidgetComposite.getMap();\n\t\tif (mm2 == null) {\n\t\t\treturn new Point(-1, -1);\n\t\t}\n\t\tfinal int actDistSq = calculatedX * calculatedX + calculatedY * calculatedY;\n\t\tfinal int mmDist = Math.max(mm2.getWidth() / 2, mm2.getHeight() / 2) - 6;\n\n\t\tif (mmDist * mmDist >= actDistSq) {\n\t\t\tint angle = 0x3fff & (int) client.getMinimapAngle();\n\t\t\tfinal boolean setting4 = client.getMinimapSetting() * multipliers.GLOBAL_MINIMAPSETTING == 4;\n\n\t\t\tif (!setting4) {\n\t\t\t\tangle = 0x3fff & (client.getMinimapOffset() * multipliers.GLOBAL_MINIMAPOFFSET) + (int) client.getMinimapAngle();\n\t\t\t}\n\n\t\t\tint cs = Calculations.SIN_TABLE[angle];\n\t\t\tint cc = Calculations.COS_TABLE[angle];\n\n\t\t\tif (!setting4) {\n\t\t\t\tfinal int fact = 0x100 + (client.getMinimapScale() * multipliers.GLOBAL_MINIMAPSCALE);\n\t\t\t\tcs = 0x100 * cs / fact;\n\t\t\t\tcc = 0x100 * cc / fact;\n\t\t\t}\n\n\t\t\tfinal int calcCenterX = cc * calculatedX + cs * calculatedY >> 0xf;\n\t\t\tfinal int calcCenterY = cc * calculatedY - cs * calculatedX >> 0xf;\n\t\t\tfinal int screen_x = calcCenterX + mm2.getAbsoluteX() + mm2.getWidth() / 2;\n\t\t\tfinal int screen_y = -calcCenterY + mm2.getAbsoluteY() + mm2.getHeight() / 2;\n\t\t\treturn new Point(screen_x, screen_y);\n\t\t}\n\n\t\treturn new Point(-1, -1);\n\t}", "public int[] getScreenCoordinateWGS84(double worldLat, double worldLon);", "godot.wire.Wire.Vector2 getPosition();", "long getCoordinates();", "long getCoordinates();", "public Point2D getLocation();", "public Vector getLocation();", "public Vector getWorldPosition(){\n\t\treturn this.absPos;\n\t}", "public abstract Vec2 doorPosition();", "public CoordinateSystem() {\r\n\t\torigin = new GuiPoint(0, 0);\r\n\t\tzoomFactor = 1f;\r\n\t}", "godot.wire.Wire.Vector3 getPosition();", "@Override \n public Vector getLocation() {\n return this.getR();\n }", "@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 int[] getScreenCoordinate(long worldLat, long worldLon);", "org.hl7.fhir.Integer getCoordinateSystem();", "public static int getBukkitPosition(int x,int y){\n return ((y-1)*9)+x-1;\n }", "public void adjLocation(double l){this.PlayerLocation;}", "private void displayWorldCoordinates() {\n int n = trackerPanel == null ? 0 : trackerPanel.getFrameNumber();\n OffsetOriginStep step = (OffsetOriginStep) getStep(n);\n if (step == null) {\n xField.setText(null);\n yField.setText(null);\n } else {\n xField.setValue(step.worldX);\n yField.setValue(step.worldY);\n }\n }", "public Point getRobotLocation();", "public Point getLocation() {\r\n return new Point((int)x,(int)y);\r\n }", "public Point getGridCoordinates(){\n try {\n return (new Point(x / MapManager.getMapTileWidth(), y / MapManager.getMapTileHeight()));\n } catch (Exception e){\n System.out.print(\"Error while getting grid coordinates.\");\n throw e;\n }\n }", "public static int getCoords()\n\t{\n\t\treturn moveCoords;\n\t}", "public void update() {\n\t\tgetLocation().offsetX(getDirection().getXOffset());\n\t\tgetLocation().offsetY(getDirection().getYOffset());\n\t\t\n\t\tChunk center = World.getMap().getCenterChunk();\n\t\t\n\t\tint localX = (int) (getLocation().getX() - center.getData().getRealX());\n\t\tint localY = (int) (getLocation().getY() - center.getData().getRealY());\n\t\t\n\t\tif(localX < 0 ||localY< 0\n\t\t\t|| localX > 256 || localY > 256) {\n\t\t\t\tWorld.getMap().load(getLocation());\n\t\t}\n\t}", "public String getLocation() {\n\t\treturn \"-12.9990189,-38.5140298\";\n\t}", "WorldCoordinates getWCSCenter();", "public Location getLocation(){\n\t\tWorld w = Bukkit.getWorld(worldName);\n\t\tif(w==null){\n\t\t\tSystem.out.println(\"Error, null world in Location from SQL\");\n\t\t\treturn null;\n\t\t}\n\t\treturn new Location(w, x+0.5, y, z+0.5);\n\t\t\n\t}", "public String getCoordsForLP() {\n String x = coords[0] < 0 ? \"neg\" + Math.abs(coords[0]) :\n Integer.toString(Math.abs(coords[0]));\n String y = coords[1] < 0 ? \"neg\" + Math.abs(coords[1]) :\n Integer.toString(Math.abs(coords[1]));\n return x + \"_\" + y;\n }", "public ChunkCoordinates getPlayerCoordinates()\n {\n return new ChunkCoordinates(0, 0, 0);\n }", "public Vector2F getScreenLocation() {\n\t\treturn new Vector2F(xPos, yPos);\n\t}", "@Override\n\tpublic Point getLocation() {\n\t\treturn new Point(x,y);\n\t}", "public double[] getCoordinates(){\n\t\tdouble[] coord = new double[2];\n\t\tdouble xcoord = (double)position[0]/9;\n\t\tdouble zcoord = (double)position[1]/9;\n\t\tcoord[0] = xcoord;\n\t\tcoord[1] = zcoord;\t\t\n\t\treturn coord;\n\t}", "public Vector2f getCoordinates() {\r\n return new Vector2f(tileColumn, tileRow);\r\n }", "public static Location localCoords(Location location, double x0, double y0, double z0) {\n Location loc = location.clone();\n double a = Math.toRadians(loc.getYaw());\n double b = Math.toRadians(loc.getPitch());\n double x = (x0 * Math.cos(a)) - (y0 * Math.sin(b) * Math.sin(a)) - (z0 * Math.cos(b) * Math.sin(a));\n double y = (y0 * Math.cos(b)) - (z0 * Math.sin(b));\n double z = (x0 * Math.sin(a)) + (y0 * Math.sin(b) * Math.cos(a)) + (z0 * Math.cos(b) * Math.cos(a));\n return loc.add(x, y, z);\n }", "Square getCurrentPosition();", "private static void setupLocations() {\n\t\tcatanWorld = Bukkit.createWorld(new WorldCreator(\"catan\"));\n\t\tspawnWorld = Bukkit.createWorld(new WorldCreator(\"world\"));\n\t\tgameLobby = new Location(catanWorld, -84, 239, -647);\n\t\tgameSpawn = new Location(catanWorld, -83, 192, -643);\n\t\thubSpawn = new Location(spawnWorld, 8, 20, 8);\n\t\twaitingRoom = new Location(catanWorld, -159, 160, -344);\n\t}", "protected abstract void calcOrigin();", "void updateStepCoordiantes(){\n if(xIncreasing) {\n lat = lat + STEP_LENGTH * yCompMotion * degToMRatio;\n displayLat = displayLat + STEP_LENGTH*yCompMotion*degToMRatio;\n }\n else{\n lat = lat - STEP_LENGTH * yCompMotion * degToMRatio;\n displayLat = displayLat - STEP_LENGTH*yCompMotion*degToMRatio;\n }\n if(yIncreasing) {\n lon = lon + STEP_LENGTH * xCompMotion * degToMRatio;\n dispalyLon= dispalyLon + STEP_LENGTH*xCompMotion*degToMRatio;\n }\n else{\n lon = lon - STEP_LENGTH * xCompMotion * degToMRatio;\n dispalyLon= dispalyLon - STEP_LENGTH*xCompMotion*degToMRatio;\n }\n }", "public Point getLocation();", "public Point getMinimapLocation() {\n Actor c = getAccessor();\n int cX = methods.client.getBaseX() + (c.getLocalLocation().getX() / 32 - 2) / 4;\n int cY = methods.client.getBaseY() + (c.getLocalLocation().getY() / 32 - 2) / 4;\n return methods.calc.worldToMinimap(cX, cY);\n }", "@Override\r\n default Vector3 getOrigin() {\r\n return Vector3.fromXYZ(getOrgX(), getOrgY(), getOrgZ());\r\n }", "IntPoint getLocation();", "public Point[] getLocation()\n {\n return shipLocation.clone();\n }", "public static Location localBlockCoords(Location location, double x0, double y0, double z0) {\n Location loc = location.clone();\n float a = loc.getYaw();\n double sin = 0d, cos = 0d;\n if (a < -135 || a >= 135) {\n sin = 0d;\n cos = -1d;\n } else if (a >= -135 && a < -45) {\n sin = -1d;\n cos = 0d;\n } else if (a >= -45 && a < 45) {\n sin = 0d;\n cos = 1d;\n } else if (a >= 45 && a < 135) {\n sin = 1d;\n cos = 0d;\n }\n double x = (x0 * cos) - (z0 * sin);\n double z = (x0 * sin) + (z0 * cos);\n return loc.add(x, y0, z);\n }", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "public Location axisSpawn(){\r\n\t\treturn axisSpawn;\r\n\t}", "String getLawnPosition();", "public static void main (String[] args)\r\n {\n Coordenada utm = new Coordenada(new Datum(6378388D, 6356911.94612795),\r\n\t\t\t 481742, 4770800, 700, (byte)29, true);\r\n //System.out.println(\"lon=\"+utm.getLon()+\" lat=\"+utm.getLat());\r\n //System.out.println(utm.getGrados(utm.getLon())+\"¦ \"+utm.getMinutos(utm.getLon())+\"' \"+utm.getSegundos(utm.getLon())+\"\\\" \"+utm.getGrados(utm.getLat())+\"¦ \"+utm.getMinutos(utm.getLat())+\"' \"+utm.getSegundos(utm.getLat())+\"\\\"\");\r\n @SuppressWarnings(\"unused\")\r\n Coordenada res;\r\n res = utm.CambioDeDatum(new Datum(6378137D, 6356752.31424518));\r\n\r\n //System.out.println(\"Coordenadas en Datum destino: X=\"+res.X+\" Y=\"+res.Y);\r\n //System.out.println(\"lon=\"+res.getLon()+\" lat=\"+res.getLat());\r\n //System.out.println(res.getGrados(res.getLon())+\"¦ \"+res.getMinutos(res.getLon())+\"' \"+res.getSegundos(res.getLon())+\"\\\" \"+res.getGrados(res.getLat())+\"¦ \"+res.getMinutos(res.getLat())+\"' \"+res.getSegundos(res.getLat())+\"\\\"\");\r\n\t\t\t\t \r\n }", "private void setWorldCoordinatesFromFields() {\n if (trackerPanel == null) return;\n OffsetOriginStep step = (OffsetOriginStep) getStep(trackerPanel.getFrameNumber());\n boolean different = step.worldX != xField.getValue() || step.worldY != yField.getValue();\n if (different) {\n XMLControl trackControl = new XMLControlElement(this);\n XMLControl coordsControl = new XMLControlElement(trackerPanel.getCoords());\n step.setWorldXY(xField.getValue(), yField.getValue());\n step.getPosition().showCoordinates(trackerPanel);\n Undo.postTrackAndCoordsEdit(this, trackControl, coordsControl);\n }\n }", "Location getPlayerLocation();", "godot.wire.Wire.Vector3 getY();", "public Point getLocation() { return loc; }", "public int getLon();", "private Vec2 calculatePos() {\n\t\tNetTransformComponent transform = actor.getEntity().getNetTransform();\n\t\tif (transform != null) {\n\t\t\tVec2 screenPos = scene.getCamera()\n\t\t\t\t\t.getScreenCoordinates(Vec3.add(transform.getPosition(), new Vec3(-2.0f, 3.25f, 0.0f)));\n\t\t\tVec2 result = new Vec2(screenPos.getX(), screenPos.getY());\n\t\t\treturn result;\n\t\t}\n\n\t\treturn new Vec2(0.0f, 0.0f);\n\t}", "@Override\n\tpublic Point getLocation() {\n\t\treturn position;\n\t}", "private void setOrigin() {\n Hep3Vector origin = VecOp.mult(CoordinateTransformations.getMatrix(), _sensor.getGeometry().getPosition());\n // transform to p-side\n Polygon3D psidePlane = this.getPsidePlane();\n Translation3D transformToPside = new Translation3D(VecOp.mult(-1 * psidePlane.getDistance(),\n psidePlane.getNormal()));\n this._org = transformToPside.translated(origin);\n }", "MapLocation getPosition(Unit unit);", "public Coordinate() { row = col = -1; }", "public void draw(WorldLocation coord){\n \n }", "public SbVec3f getPoint() {\n \t return worldPoint; \n }", "public Coords getCoord() {\r\n\t\treturn coord;\r\n\t}", "private Point2D getCenterLatLon(){\n Point2D.Double result = new Point2D.Double();\n Point2D.Double screenCenter = new Point2D.Double();\n screenCenter.x = getWidth()/2; //contentpane width/height\n screenCenter.y = getHeight()/2;\n try{\n transform.inverseTransform(screenCenter,result); //transform to lat/lon using the current transform\n } catch (NoninvertibleTransformException e) {\n throw new RuntimeException(e);\n }\n return result;\n }", "MazePoint getActivePlayerCoordinates();", "@Override\n\tpublic double getZLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn z-side;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Coord[\" + this.x0 + \",\" + this.y0 + \"]\";\n\t}", "godot.wire.Wire.Vector2 getY();", "godot.wire.Wire.Vector2 getX();", "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 }", "public Vector2D getPosition ();", "public static void main(String[] args) {\n\t\tint lol = (int)(-1 % 6);\n\t\tint lol2 = (int)(-2 % 6);\n\t\tSystem.out.printf(\"%d %d\\n\", lol, lol2);\n\t\tVector3 megaCoords = Position.scaleToCoordinates(new Vector3(-200, 0, 5), CHUNK_MAX_SIZE);\n\t\tSystem.out.println(megaCoords);\n\t}", "private DPoint m2833m() {\r\n IPoint iPoint = new IPoint();\r\n this.f1769m.mo353a(this.f1761e.latitude, this.f1761e.longitude, iPoint);\r\n IPoint iPoint2 = new IPoint();\r\n this.f1769m.mo353a(this.f1762f.latitude, this.f1762f.longitude, iPoint2);\r\n IPoint iPoint3 = new IPoint();\r\n this.f1769m.mo353a(this.f1763g.latitude, this.f1763g.longitude, iPoint3);\r\n double d = (double) iPoint.f3639x;\r\n double d2 = (double) iPoint.f3640y;\r\n double d3 = (double) iPoint2.f3639x;\r\n double d4 = (double) iPoint2.f3640y;\r\n double d5 = (double) iPoint3.f3639x;\r\n double d6 = (double) iPoint3.f3640y;\r\n double d7 = (((d6 - d2) * ((((d4 * d4) - (d2 * d2)) + (d3 * d3)) - (d * d))) + ((d4 - d2) * ((((d2 * d2) - (d6 * d6)) + (d * d)) - (d5 * d5)))) / (((2.0d * (d3 - d)) * (d6 - d2)) - ((2.0d * (d5 - d)) * (d4 - d2)));\r\n double d8 = (((d5 - d) * ((((d3 * d3) - (d * d)) + (d4 * d4)) - (d2 * d2))) + ((d3 - d) * ((((d * d) - (d5 * d5)) + (d2 * d2)) - (d6 * d6)))) / (((2.0d * (d4 - d2)) * (d5 - d)) - ((2.0d * (d6 - d2)) * (d3 - d)));\r\n this.f1773q = Math.sqrt(((d - d7) * (d - d7)) + ((d2 - d8) * (d2 - d8)));\r\n this.f1774r = m2830a(d7, d8, d, d2);\r\n d = m2830a(d7, d8, d3, d4);\r\n this.f1775s = m2830a(d7, d8, d5, d6);\r\n if (this.f1774r < this.f1775s) {\r\n if (d <= this.f1774r || d >= this.f1775s) {\r\n this.f1775s -= 6.283185307179586d;\r\n }\r\n } else if (d <= this.f1775s || d >= this.f1774r) {\r\n this.f1775s += 6.283185307179586d;\r\n }\r\n return new DPoint(d7, d8);\r\n }", "godot.wire.Wire.Vector3 getX();", "@NotNull\n public Location<World> getCenterBlock() {\n int centerX = getMinChunk().getX() + 16;\n int centerZ = getMinChunk().getZ() + 16;\n return Tungsten.INSTANCE.getIslandWorld().getLocation(centerX * 16, 86, centerZ * 16);\n }", "public float getPosY(){return py;}", "@Override\n\tpublic void getCoordinates() {\n\t\tSystem.out.println(\"Your Coordinates: 18.1124° N, 79.0193° E \");\n\t}", "private static Vector2f toGuiCoords(float x, float y) {\r\n\t\treturn(new Vector2f((x/DisplayManager.getWidth()) - 0.5f, y/DisplayManager.getHeight()));\r\n\t}", "void position(double x, double y, double z);", "public Location getLocation()\n {\n if (worldData == null || position == null)\n {\n // Must have a world and position to make a location;\n return null;\n }\n\n if (orientation == null)\n {\n return new Location(worldData.getWorld(), position.getX(), position.getY(), position.getZ());\n }\n\n return new Location(worldData.getWorld(), position.getX(), position.getY(), position.getZ(), orientation.getYaw(), orientation.getPitch());\n }", "private Vector3f calcPosition() {\r\n float y = (float) (distance * Math.sin(Math.toRadians(pitch)));\r\n float xzDistance = (float) (distance * Math.cos(Math.toRadians(pitch)));\r\n float x = (float) (xzDistance * Math.sin(Math.toRadians(rotation)));\r\n float z = (float) (xzDistance * Math.cos(Math.toRadians(rotation)));\r\n return new Vector3f(x + center.x, y + center.y, z + center.z);\r\n }", "public double[] getCoordinates() {\n \tdouble []coords = this.position.getCoordinates();\n \tthis.currentX = coords[0];\n \tthis.currentY = coords[1];\n \treturn coords;\n }", "Vector2 getPosition();", "public Position findWeedPosition() {\n int x = 0;\n int y = 0;\n int sum = 0;\n for (int i = 0; i < this.WORLD.getMapSize().getX(); i++) {\n for (int j = 0; j < this.WORLD.getMapSize().getY(); j++) {\n\n //hogweed\n Organism organism = this.WORLD.getOrganism(i, j);\n if(organism!=null){\n Class c = organism.getClass();\n if (c.getSimpleName().equals(\"Parnsip\")) {\n int tmpX = Math.abs(this.position.getX() - i);\n int tmpY = Math.abs(this.position.getY() - j);\n if (!(sum==0)) {\n int tmpSum = tmpX + tmpY;\n if (sum > tmpSum) {\n x = i;\n y = j;\n sum = tmpSum;\n }\n }\n else {\n x = i;\n y = j;\n sum = tmpX + tmpY;\n\n }\n }\n }\n\n }\n }\n return new Position(x,y);\n }", "@Override\r\n public void act() \r\n {\n int posx = this.getX();\r\n int posy = this.getY();\r\n //calculamos las nuevas coordenadas\r\n int nuevox = posx + incx;\r\n int nuevoy = posy + incy;\r\n \r\n //accedemos al mundo para conocer su tamaño\r\n World mundo = this.getWorld();\r\n if(nuevox > mundo.getWidth())//rebota lado derecho\r\n {\r\n incx = -incx;\r\n }\r\n if(nuevoy > mundo.getHeight())//rebota en la parte de abajo\r\n {\r\n incy = -incy;\r\n }\r\n \r\n if(nuevoy < 0)//rebota arriba\r\n {\r\n incy = -incy;\r\n }\r\n if(nuevox < 0)//rebota izquierda\r\n {\r\n incx = -incx;\r\n }\r\n //cambiamos de posicion a la pelota\r\n this.setLocation(nuevox,nuevoy);\r\n }", "public GridCoord getCoord() {\n return coord;\n }", "Vec3 getHomeCoords(IGeneticMob geneticMob);", "boolean isGoodLocation(World world, int x, int y, int z);", "Tile getPosition();", "@Override\r\n\tpublic String getFormatedCoordinates() {\n\t\treturn \"Drone position: (\"+x+\",\"+y+\",\"+z+\")\";\r\n\t}", "void vectorFromWorld(double px, double py, double pz, DVector3 result);", "private Vector3f getPlanetPosition() {\r\n\t\tVector3f position = new Vector3f();\r\n\t\tdouble theta = Math.random() * 2 * Math.PI;\r\n\t\tdouble r = MathUtils.randRange(MIN_ORBITAL_RADIUS, MAX_ORBITAL_RADIUS);\r\n\t\tposition.x = (float) (r * Math.cos(theta));\r\n\t\tposition.z = (float) (r * Math.sin(theta));\r\n\t\t// Introduce y variation\r\n\t\tposition.y = (float) MathUtils.randRange(MIN_PLANET_Y, MAX_PLANET_Y);\r\n\t\treturn position;\r\n\t}", "public void updatePosition() {\n\n this.x = this.temp_x;\n this.y = this.temp_y;\n this.ax = 0;\n this.ay = 0;\n\t\tthis.axplusone = 0;\n this.ayplusone = 0;\n \n }", "void setOffsetWorldPosition(double x, double y, double z);", "Vector getPos();", "public Point getScreenCoordinate(double lat, double lon) {\n if(internalNative == null) {\n if(internalLightweightCmp != null) {\n return internalLightweightCmp.getPointFromCoord(new Coord(lat, lon));\n }\n // TODO: Browser component\n return new Point(0, 0);\n }\n internalNative.calcScreenPosition(lat, lon);\n return new Point(internalNative.getScreenX(), internalNative.getScreenY());\n }", "public Vector2f getLocation() {\r\n\t\treturn location.getLocation();\r\n\t}" ]
[ "0.6618789", "0.6597628", "0.6553726", "0.6535549", "0.64477456", "0.6355785", "0.63092554", "0.62651604", "0.6250159", "0.62485963", "0.62446696", "0.62446696", "0.6220924", "0.620098", "0.6182873", "0.6178674", "0.61736315", "0.6167506", "0.6078608", "0.60736865", "0.60330534", "0.6015814", "0.59842736", "0.596344", "0.5962977", "0.59495527", "0.5940949", "0.5936765", "0.5934863", "0.592864", "0.59227145", "0.5916508", "0.5912285", "0.5905494", "0.5885525", "0.5880897", "0.58773136", "0.5849264", "0.584563", "0.5838723", "0.5828582", "0.5819302", "0.5819263", "0.58070964", "0.5796052", "0.57855564", "0.5781477", "0.57733667", "0.575506", "0.57505184", "0.5743991", "0.57426286", "0.5734751", "0.573293", "0.57327974", "0.57308054", "0.572337", "0.5723117", "0.5714693", "0.5711343", "0.5704183", "0.57032925", "0.57026887", "0.5701743", "0.5700401", "0.56994176", "0.5693607", "0.56900156", "0.56810266", "0.56791645", "0.56728166", "0.566067", "0.56584406", "0.5654972", "0.5646231", "0.5645035", "0.5644494", "0.5635051", "0.56293344", "0.56231076", "0.5622533", "0.56140316", "0.56119514", "0.560898", "0.5605133", "0.5598148", "0.5597794", "0.559534", "0.5582965", "0.556744", "0.55671865", "0.5566738", "0.55634415", "0.5562676", "0.5555353", "0.5554904", "0.55532825", "0.5552096", "0.55501413", "0.5544195", "0.5540484" ]
0.0
-1
TODO Autogenerated method stub
@Override public String ShowListCMD() { return "dir"; }
{ "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 onCreate() { Log.d(TAG, TAG + " onCreate"); }
{ "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 int onStartCommand(Intent intent, int flags, int startId) { Log.d(TAG, TAG + " onStartCommand"); return Service.START_STICKY; }
{ "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 onDestroy() { Log.d(TAG, TAG + " onDestroy"); }
{ "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 onConfigurationChanged(Configuration newConfig) { Log.d(TAG, TAG + " onConfigurationChanged"); }
{ "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 onLowMemory() { Log.d(TAG, TAG + " onLowMemory"); }
{ "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 onTrimMemory(int level) { Log.d(TAG, TAG + " onTrimMemory"); }
{ "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 boolean onUnbind(Intent intent) { Log.d(TAG, TAG + " onUnbind"); return false; }
{ "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 onRebind(Intent intent) { Log.d(TAG, TAG + " onRebind"); }
{ "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 onTaskRemoved(Intent rootIntent) { Log.d(TAG, TAG + " onTaskRemoved"); }
{ "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
The method is called if the inactivity (not sending messages) exceeded the pinging frequency time.
private void onPingingTimerTick() { EneterTrace aTrace = EneterTrace.entering(); try { try { myConnectionManipulatorLock.lock(); try { // Send the ping message. myUnderlyingOutputChannel.sendMessage(myPreserializedPingMessage); // Schedule the next ping. myPingingTimer.change(myPingFrequency); } finally { myConnectionManipulatorLock.unlock(); } } catch (Exception err) { // The sending of the ping message failed - the connection is broken. cleanAfterConnection(true, true); } } finally { EneterTrace.leaving(aTrace); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void ping() {\n\t\tpingCount ++;\n\t\tif(pingCount > 5) {\n\t\t\tlog.debug(\"pingCount is exceed, so close this connection.\");\n\t\t\tclose();\n\t\t\treturn;\n\t\t}\n\t\tsendData(\"<ping />\");\n\t}", "protected void pingReceived(){\r\n\t\tpings++;\r\n\t\troundTrip = System.currentTimeMillis() - pingSent;\r\n\t\tlastPing = System.currentTimeMillis();\r\n\t\tlog.trace(\"\\\"\" + getName() + \"\\\" responded to ping after \" + roundTrip + \"ms\");\r\n\t}", "public boolean isLingering();", "private void startPingTimer() {\n\n Timer timer = new Timer();\n TimerTask task = new TimerTask() {\n @Override\n public void run() {\n\n if (pong) {\n send(\"<ping/>\");\n pong = false;\n } else {\n System.out.println(\"[CLIENT] No pong received. Client will now be disconnected.\");\n clientController.onMissingPong();\n closeConnection();\n timer.cancel();\n }\n\n }\n };\n timer.scheduleAtFixedRate(task, 0, 20000);\n\n }", "public long getPingInterval()\n {\n return _pingInterval;\n }", "private void checkTimeout() {\n/* 169 */ if (this.socket != null) {\n/* */ \n/* 171 */ long i = this.keepaliveTimeoutMs;\n/* */ \n/* 173 */ if (this.listRequests.size() > 0)\n/* */ {\n/* 175 */ i = 5000L;\n/* */ }\n/* */ \n/* 178 */ long j = System.currentTimeMillis();\n/* */ \n/* 180 */ if (j > this.timeLastActivityMs + i)\n/* */ {\n/* 182 */ terminate(new InterruptedException(\"Timeout \" + i));\n/* */ }\n/* */ } \n/* */ }", "@Override\n\tpublic void ping() {\n\t\t//respond to ping with pong\n\t\tlastPing = System.currentTimeMillis();\n\t\tthis.writeNow(\"type:pong;\");\n\t}", "private void startPinging() {\n Bukkit.getScheduler().runTaskTimerAsynchronously(plugin, new Runnable() {\n @Override\n public void run() {\n HashSet<Connection> connectionsSet = new HashSet<>(connections); //Create new hashset of connections\n for (Connection connection : connectionsSet) { //Loop thru connections\n boolean stillInConnections = false;\n synchronized (connections) { //Check if connection still in the array\n if (connections.contains(connection)) {\n stillInConnections = true;\n }\n }\n if (stillInConnections) { //If still in array\n try { //Try to ping\n connection.isValid(5);\n } catch (SQLException e) { //If not valid anymore\n synchronized (connections) { //Remove from array\n connections.remove(connection);\n }\n closeConnection(connection); //Close the connection\n }\n }\n }\n }\n }, 17000, 17000);\n }", "public boolean getPingOnIdle()\n {\n return _isPing;\n }", "protected void issueHeartbeat() {\n updateProperties();\n\n issueConnectorPings();\n }", "public void keepAlive() throws IOException {\n long currentTimeMillis = clock.currentTimeMillis();\n\n if (currentTimeMillis - lastTxMillis > TX_HEARTBEAT_INTERVAL_MILLIS)\n send(heartbeatMessageType);\n\n if (currentTimeMillis - lastRxMillis > RX_HEARTBEAT_TIMEOUT_MILLIS)\n handleHeartbeatTimeout();\n }", "@Override\n protected long scanDelayMillis() {\n return getHeartbeatDelay();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tlong l = lastMessageTime.get();\n\t\t\t\t\n\t\t\t\tif (System.currentTimeMillis() - l > maxDelay + 500) {\n\t\t\t\t Log.info(\"ClientSocket launchPingTimer: last message UTC=\" + Instant.ofEpochMilli(l));\n\t\t\t\t\t// and if this happened before\n\t\t\t\t\tif (isConnectionPossiblyLost.get()) {\n\t\t\t\t\t\tLog.info(\"ClientSocket launchPingTimer: connection lost UTC=\"\n\t\t\t\t\t\t\t\t+ Instant.ofEpochMilli(System.currentTimeMillis()));\n\t\t\t\t\t\tLog.info(\"ClientSocket launchPingTimer: pingTimer closes connection\");\n\t\t\t\t\t\tclose();\n\t\t\t\t\t} else {// but this did not happen before\n\t\t\t\t\t\tisConnectionPossiblyLost.set(true);\n\t\t\t\t\t\tsendPing();\n\t\t\t\t\t\tLog.info(\"ClientSocket launchPingTimer: connection possibly lost UTC=\"\n\t\t\t\t\t\t\t\t+ Instant.ofEpochMilli(System.currentTimeMillis()));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// the last message was <5 seconds ago, everything is OK\n\t\t\t\t\t// LogBitmex.info(\"ClientSocket launchPingTimer:\n\t\t\t\t\t// connection alive UTC=\" + System.currentTimeMillis() );\n\t\t\t\t\tisConnectionPossiblyLost.set(false);\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic void run() {\n\t\tString pingPeriodSeconds = this.getString(R.string.ping_period_seconds);\n\t\tlong time = Long.valueOf(pingPeriodSeconds).longValue() * 1000;\n\n//\t\tString msg = this.getString(R.string.ping_message);\n\t\t\n\t\twhile (true) {\n\n//\t\t\tChat.sendMessage(this, msg, this.to, this.from);\n\t \n\t\t\ttry {\n\t\t\t\tThread.sleep(time);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// Assume interruption means end of app.\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "void check_and_send(){\r\n\t\twhile(not_ack_yet <= WINDOW_SIZE){\r\n\t\t\tif(covered_datagrams >= total_datagrams)\r\n\t\t\t\treturn;\r\n\t\t\t//send one data more\r\n\t\t\tcovered_datagrams++;\r\n\t\t\tbyte[] data_to_send = Helper.get_bytes(data_send,(covered_datagrams-1)*BLOCK_SIZE,BLOCK_SIZE);\r\n\t\t\tDataDatagram send = new DataDatagram((short)the_connection.session_num,\r\n\t\t\t\t\t(short)(covered_datagrams),data_to_send,the_connection);\r\n\t\t\tsend.send_datagram();\r\n\t\t\tput_and_set_timer(send);\r\n\t\t}\r\n\t}", "public void setPingOnIdle(boolean pingOnIdle)\n {\n _isPing = pingOnIdle;\n }", "public void teleopPeriodic() {\r\n Scheduler.getInstance().run();\r\n OI.poll();\r\n }", "public void ping() throws IOException {\r\n\t\t//Pings the server\r\n\t\tthis.send(\"!ping\");\r\n\t\t//Updates the time since the ping\r\n\t\ttimeSincePing = System.currentTimeMillis();\r\n\t\t//System.out.println(\"Ping!\");\r\n\t}", "@Override\n public void teleopPeriodic() {\n }", "@Override\n public void teleopPeriodic() {\n }", "public void ping(boolean lastPing) {\n\n\t\tSystem.out.println(\"Host is sending a ping...\");\n\t\t\n\t\ttry {\n\t\t\tDatagramSocket pingSocket = new DatagramSocket(Constants.Network.HOST_UDP_PORT);\n\n\t\t\tfor(ClientConnection cc : clients.values()) {\n\n\t\t\t\tInetAddress address = cc.addr;\n\t\t\t\tint port = cc.udpPort; \n\n\t\t\t\tSystem.out.println(\"Sending ping to \" + address.toString() + \":\" + port);\n\n\t\t\t\tlong currentTime = System.currentTimeMillis();\n\n\t\t\t\tbyte[] buf = new byte[9];\n\n\t\t\t\t//byte[] buf = Utils.longToBytes(currentTime);\n\n\t\t\t\tboolean successfulReceipt = false;\n\n\t\t\t\twhile(! successfulReceipt ) {\n\n\t\t\t\t\t// If this is the last ping, we set the last byte to be our LAST_PING flag, and \n\t\t\t\t\t// tell the client how much they should buffer before playing.\n\t\t\t\t\tif(lastPing) {\n\t\t\t\t\t\tbuf[8] = Constants.Network.STOP_WAITING_FOR_PINGS;\n\n\t\t\t\t\t\tlong bufferingAmount = calculateInitialBufferTimeForClient(cc, bufferTime);\n\n\t\t\t\t\t\tUtils.inPlaceLongToBytes(bufferingAmount, buf);\n\n\t\t\t\t\t\tSystem.out.println(\"Telling client to set initial buffering time to \" + bufferingAmount);\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tDatagramPacket packet = new DatagramPacket(buf, buf.length, address, port);\n\t\t\t\t\t\tpingSocket.send(packet);\n\n\n\t\t\t\t\t\tpingSocket.setSoTimeout((int) (cc.averageLatencyInMillis() + 1000));\n\t\t\t\t\t\tDatagramPacket receipt = new DatagramPacket(buf, buf.length);\n\t\t\t\t\t\tpingSocket.receive(receipt);\n\t\t\t\t\t\tsuccessfulReceipt = true;\n\t\t\t\t\t} catch (SocketTimeoutException e) {\n\t\t\t\t\t\tSystem.out.println(\"Did not receive a response in \" + (cc.averageLatencyInMillis() + 1000) + \" ms, trying again...\");\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tlong timeDifference = (System.currentTimeMillis() - currentTime) / 2;\n\n\t\t\t\tSystem.out.println(\"Host reported a time difference of \" + timeDifference + \" milliseconds from \" + cc.addr);\n\n\t\t\t\tcc.addLatencyNumber((System.currentTimeMillis() - currentTime) / 2);\n\t\t\t}\n\n\t\t\tpingSocket.close();\n\n\t\t} catch(SocketException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif(lastPing)\n\t\t\tSystem.out.println(\"Host done sending pings.\");\n\n\t}", "private void checkRequests()\n\t{\n\t\t// to be honest I don't see why this can't be 5 seconds, but I'm trying 1 second\n\t\t// now as the existing 0.1 second is crazy given we're checking for events that occur\n\t\t// at 60+ second intervals\n\n\t\tif ( mainloop_loop_count % MAINLOOP_ONE_SECOND_INTERVAL != 0 ){\n\n\t\t\treturn;\n\t\t}\n\n\t\tfinal long now =SystemTime.getCurrentTime();\n\n\t\t//for every connection\n\t\tfinal ArrayList peer_transports = peer_transports_cow;\n\t\tfor (int i =peer_transports.size() -1; i >=0 ; i--)\n\t\t{\n\t\t\tfinal PEPeerTransport pc =(PEPeerTransport)peer_transports.get(i);\n\t\t\tif (pc.getPeerState() ==PEPeer.TRANSFERING)\n\t\t\t{\n\t\t\t\tfinal List expired = pc.getExpiredRequests();\n\t\t\t\tif (expired !=null &&expired.size() >0)\n\t\t\t\t{ // now we know there's a request that's > 60 seconds old\n\t\t\t\t\tfinal boolean isSeed =pc.isSeed();\n\t\t\t\t\t// snub peers that haven't sent any good data for a minute\n\t\t\t\t\tfinal long timeSinceGoodData =pc.getTimeSinceGoodDataReceived();\n\t\t\t\t\tif (timeSinceGoodData <0 ||timeSinceGoodData >60 *1000)\n\t\t\t\t\t\tpc.setSnubbed(true);\n\n\t\t\t\t\t//Only cancel first request if more than 2 mins have passed\n\t\t\t\t\tDiskManagerReadRequest request =(DiskManagerReadRequest) expired.get(0);\n\n\t\t\t\t\tfinal long timeSinceData =pc.getTimeSinceLastDataMessageReceived();\n\t\t\t\t\tfinal boolean noData =(timeSinceData <0) ||timeSinceData >(1000 *(isSeed ?120 :60));\n\t\t\t\t\tfinal long timeSinceOldestRequest = now - request.getTimeCreated(now);\n\n\n\t\t\t\t\t//for every expired request \n\t\t\t\t\tfor (int j = (timeSinceOldestRequest >120 *1000 && noData) ? 0 : 1; j < expired.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//get the request object\n\t\t\t\t\t\trequest =(DiskManagerReadRequest) expired.get(j);\n\t\t\t\t\t\t//Only cancel first request if more than 2 mins have passed\n\t\t\t\t\t\tpc.sendCancel(request);\t\t\t\t//cancel the request object\n\t\t\t\t\t\t//get the piece number\n\t\t\t\t\t\tfinal int pieceNumber = request.getPieceNumber();\n\t\t\t\t\t\tPEPiece\tpe_piece = pePieces[pieceNumber];\n\t\t\t\t\t\t//unmark the request on the block\n\t\t\t\t\t\tif ( pe_piece != null )\n\t\t\t\t\t\t\tpe_piece.clearRequested(request.getOffset() /DiskManager.BLOCK_SIZE);\n\t\t\t\t\t\t// remove piece if empty so peers can choose something else, except in end game\n\t\t\t\t\t\tif (!piecePicker.isInEndGameMode())\n\t\t\t\t\t\t\tcheckEmptyPiece(pieceNumber);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "@Override\n public String ping() {\n return super.ping();\n }", "private void scheduleTasks() {\n\t\ttimer.scheduleAtFixedRate(new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// Prepare JSON Ping Message\n\t\t\t\ttry {\n\t\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\t\tObjectNode objectNode = mapper.createObjectNode();\n\t\t\t\t\tobjectNode.put(\"type\", \"PING\");\n\n\t\t\t\t\twebSocket.sendText(mapper.writerWithDefaultPrettyPrinter().writeValueAsString(objectNode));\n\n\t\t\t\t\tlog.debug(\"Send Ping to Twitch PubSub. (Keep-Connection-Alive)\");\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tlog.error(\"Failed to Ping Twitch PubSub. ({})\", ex.getMessage());\n\t\t\t\t\treconnect();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}, 7000, 282000);\n\t}", "public void ping(){\r\n\t\t uSensor.ping();\r\n\t }", "@Override\n\tprotected Result check() throws Exception {\n\t\tif (failedMessageMeter != null && failedMessageMeter.getFifteenMinuteRate() > 0) {\n\t\t\treturn Result.unhealthy(\">1 messages failed to be sent to Kafka in the past 15minutes\");\n\t\t} else {\n\t\t\treturn Result.healthy();\n\t\t}\n\t}", "public void checkSyncUptime() {\n long cpuTimeUptimeDifference = cpu.getTime() - lastCpuTimeSyncTimestamp;\n if (cpuTimeUptimeDifference >= syncUptimeThresholdCpuTicks) {\n doSyncUptime();\n doTimerTasks();\n }\n }", "@Override\n\t\tpublic void run() {\n\t\t\twhile (!endFlag) {\n\t\t\t\tlong endTime = System.currentTimeMillis();\n\t\t\t\tif (endTime - touchStartTime > 6000) {\n\t\t\t\t\tMessage msg = handler.obtainMessage();\n\t\t\t\t\tmsg.what = 0;\n\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public boolean isPing()\n {\n return _isPing;\n }", "private void\n startPeriodicPdpPoll()\n {\n removeMessages(EVENT_POLL_PDP);\n\n sendMessageDelayed(obtainMessage(EVENT_POLL_PDP), POLL_PDP_MILLIS);\n }", "public synchronized void checkTimeoutMessages() {\n SQSMessage SQSMessage;\n String receiptHandler;\n long currentTimeStampDifference;\n for (Map.Entry pairs : receivedMessages.entrySet()) {\n SQSMessage = (SQSMessage) pairs.getValue();\n currentTimeStampDifference = System.currentTimeMillis() - SQSMessage.getReceivedTimeStamp();\n if (currentTimeStampDifference > SQSMessage.getDefaultVisibilityTimeout()) {\n receiptHandler = (String) pairs.getKey();\n SQSMessageQueue.addFirst(SQSMessage);\n receivedMessages.remove(receiptHandler);\n }\n }\n }", "private void doPing()\r\n {\r\n requestQueue.add( new ChargerHTTPConn( weakContext,\r\n CHARGE_NODE_JSON_DATA, \r\n PING_URL,\r\n SN_HOST,\r\n null, \r\n cookieData,\r\n false,\r\n token,\r\n secret ) );\r\n }", "@Override\n\tpublic void teleopPeriodic() {\n\t}", "private void sendKeepAlive() {\n\t\tlong now = new java.util.Date().getTime() / 1000;\n\t\tif (now - lastKeepAlive > properties.getInt(\"keepAliveInterval\")) {\n\t\t\tfsmTeacher.handleAction(\"tap%\" + properties.get(\"keepAliveX\") + \"#\" + properties.get(\"keepAliveY\"));\n\t\t\tlastKeepAlive = now;\n\t\t\tSystem.out.println(\"Kept alive.\");\n\t\t}\n\t}", "public void teleopPeriodic() {\n \tteleop.teleopPeriodic();\n }", "public void setPingInterval(Period interval)\n {\n _pingInterval = interval.getPeriod();\n \n if (_pingInterval < 0)\n _pingInterval = Long.MAX_VALUE / 2;\n else if (_pingInterval < 1000)\n _pingInterval = 1000;\n }", "public boolean timeToRefresh() {\n if (tozAdCampaignRetrievalCounter == null) {\n return (true);\n }\n else if (tozAdCampaignRetrievalInterval != 0) {\n tozAdCampaignRetrievalCounter += getSleepInterval();\n\n AppyAdService.getInstance().debugOut(TAG,\"Ad Campaign refresh counter=\"+tozAdCampaignRetrievalCounter);\n if (tozAdCampaignRetrievalCounter >= tozAdCampaignRetrievalInterval) {\n tozAdCampaignRetrievalCounter = 0;\n return (true);\n }\n }\n return (false);\n }", "@Override\n public void teleopPeriodic() {\n\tupdateDiagnostics();\n\tScheduler.getInstance().run();\n }", "private void scheduleInactivityEvent()\n {\n if (m_disconnectEvent != null) m_disconnectEvent.cancel();\n m_disconnectEvent = m_server.getEventMachine().executeLater(new Runnable()\n {\n public void run()\n {\n m_socket.write(\"Disconnected due to inactivity.\".getBytes());\n m_socket.closeAfterWrite();\n }\n }, INACTIVITY_TIMEOUT);\n }", "public void sendHeartbeat();", "private void requestThread() {\n while (true) {\n long elapsedMillis = System.currentTimeMillis() - lastHeartbeatTime;\n long remainingMillis = heartbeatMillis - elapsedMillis;\n if (remainingMillis <= 0) {\n sendHeartbeats();\n } else {\n try {\n Thread.sleep(Math.max(remainingMillis, 3));\n } catch (InterruptedException e) {\n }\n }\n }\n }", "public void onTimeTick() {\n tick++;\n try {\n sendBeaconLog(10);\n } catch (InterruptedException e) {\n }\n if (tick % 10 == 0) {\n sendDirectedPresence();\n }\n }", "public void run(){\n long startTime = System.nanoTime();\n long elapsedTime = System.nanoTime() - startTime;\n while(elapsedTime<500000000 && p.acknowledged == false){\n //echo(\"Waiting\");\n elapsedTime = System.nanoTime() - startTime;\n if(p.acknowledged == true){\n return;\n }\n }\n if(elapsedTime>= 500000000)\n {\n p.timed = true;\n //System.out.println(\"thread timed out at packet \"+ p.getSeq());\n for(int i=p.getSeq(); i<p.getSeq()+window; i++){\n if(i<packets.size()){\n packets.get(i).sent = false;\n }\n }\n //p.sent = false;\n }\n\n\n }", "@Override\n\t\t\tpublic void doTimerCheckWork() {\n\n\t\t\t\tif (CommonUtil.isWifiApEnabled(mWifiManager)) {\n\t\t\t\t\tLog.v(TAG, \"Wifi enabled success!\");\n\t\t\t\t\tIntent intentService = new Intent(mContext,\n\t\t\t\t\t\t\tProcessMsgService.class);\n\t\t\t\t\tmContext.startService(intentService);\n\t\t\t\t\tString action = Constants.ACTION_HOTSPOT_AVAILABLE;\n\t\t\t\t\tIntent intent = new Intent(action);\n\t\t\t\t\tmContext.sendBroadcast(intent);\n\t\t\t\t\tthis.exit();\n\t\t\t\t} else {\n\t\t\t\t\tString action = Constants.ACTION_HOTSPOT_UNAVAILABLE;\n\t\t\t\t\tIntent intent = new Intent(action);\n\t\t\t\t\tmContext.sendBroadcast(intent);\n\t\t\t\t\tLog.v(TAG, \"Wifi enabled failed!\");\n\t\t\t\t}\n\t\t\t}", "public void resetPingCount() {\n\t\tpingCount = 0;\n\t}", "default void onHeartBeatTimeout(SessionID sessionID) {\n }", "public void teleopPeriodic() {\r\n }", "public boolean getPingOnReuse()\n {\n return _isPing;\n }", "boolean hasHeartBeatMsg();", "private void informTimeToCross() {\n if (continueAskingTimes) {\n requestTimes();\n }\n }", "public ModelApiResponse ping() throws AuthenticationApiException {\n try {\n return authenticationApi.ping();\n } catch (ApiException e) {\n throw new AuthenticationApiException(\"Error during keep alive ping\", e);\n }\n }", "public void timeout(){\n\t\tDate now = new Date();\n\t\tfor (Broadcast b : this.broadcasts){\n\t\t\tif (b.getTimeout().getTime() < now.getTime()){\n\t\t\t\tthis.remove(b);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void run() {\n super.run();\n while (!isPaused) {\n Message msg = mHandler.obtainMessage();\n msg.arg1 = REFRESH;\n mHandler.sendMessage(msg);\n try {\n Thread.sleep(REFRESHINTERVAL);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }", "@Override\n public void run() {\n try {\n while(true) {\n Thread.sleep(NOTIFY_PERIOD);\n this.handle.tryExtendTTL();\n }\n } catch (InterruptedException ex) {\n // silient ignore\n } catch (Exception ex) {\n LOG.error(\"exception occurred\", ex);\n }\n }", "private void notifyOnPingReceived(byte[] data) {\n synchronized (globalLock) {\n if (isRunning) {\n onPingReceived(data);\n }\n }\n }", "public void teleopPeriodic() {\n if (m_tpFirstRun) {\n System.out.println(\"Default teleopPeriodic() method... Override me!\");\n m_tpFirstRun = false;\n }\n }", "@Override\n public void handleMessage(Message msg) {\n sendEmptyMessageDelayed(0, 3000);\n if (resClient.getSendBufferFreePercent() <= 0.05) {\n Toast.makeText(StreamingActivity.this, \"sendbuffer is full,netspeed is low!\", Toast.LENGTH_SHORT).show();\n }\n }", "private boolean isLongPulling(HttpServletRequest req) {\n return req.getHeader(Constants.PULLING_TIMEOUT_HEADER) != null;\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n Toast.makeText(context, \"Your Task Time Is Over\", Toast.LENGTH_SHORT).show();\n }", "protected void processSleepObject(VObject inObject) {\n\t\tboolean doXmppStatus = true;\n\t\tfinal boolean isXmppObject = inObject.isXMPP();\n\n\t\t//Special case for xmpp object, we will check the resources\n\t\tString theRessource = null;\n\t\tif (isXmppObject) {\n\t\t\tfinal List<String> resources = inObject.getResources(); //IQResourcesQuery.getClientResources(inObject.getXmppAddress());\n\t\t\tif (resources.isEmpty()) {\n\t\t\t\tinObject.setState(VObject.STATUS_VEILLE);\n\t\t\t} else if (resources.contains(\"asleep\")) {\n\t\t\t\ttheRessource = resources.get(0);\n\t\t\t\tdoXmppStatus = false;\n\t\t\t}\n\t\t}\n\n\t\tfinal int inState = inObject.getObject_state();\n\t\tCrawlerCheckStatus.LOGGER.info(\"Processing sleep for \" + inObject.getObject_serial() + \" / \" + inState + \" / \" + theRessource);\n\n\t\t//all STATUS_WILLBE_* are used only for xmpp objects\n\t\tswitch (inState) {\n\t\tcase VObject.STATUS_VEILLE: // special case because cache notification is slow/missing so i override this value in db.\n\t\t\tinObject.overrideState(VObject.STATUS_VEILLE);\n\t\t\tsendXmppStatus(inObject, Message.MODE_VEILLE, JabberMessageFactory.IQ_STATUS_IDLE_MODE);\n\t\t\tbreak;\n\t\tcase VObject.STATUS_ACTIF:\n\t\tcase VObject.STATUS_FORCE_VEILLE:\n\t\tcase VObject.STATUS_WILLBE_ACTIF:\n\t\tcase VObject.STATUS_WILLBE_VEILLE:\n\t\tcase VObject.STATUS_WILLBE_FORCE_VEILLE:\n\t\t\tif (isXmppObject && doXmppStatus) {\n\t\t\t\tsendXmppStatus(inObject, Message.MODE_VEILLE, JabberMessageFactory.IQ_STATUS_IDLE_MODE);\n\t\t\t} else {\n\t\t\t\tinObject.setState(VObject.STATUS_VEILLE);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase VObject.STATUS_WILLBE_FORCE_ACTIF: //normally, object ping do not enter in this condition\n\t\t\tif (isXmppObject && !doXmppStatus) {\n\t\t\t\tsendXmppStatus(inObject, Message.MODE_FORCE_ACTIF, JabberMessageFactory.IQ_STATUS_ASLEEP_MODE);\n\t\t\t} else {\n\t\t\t\tinObject.setState(VObject.STATUS_FORCE_ACTIF);\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}", "public boolean ping();", "public void mo33398h() {\n String str = \"com.tencent.android.tpush.service.channel.heartbeatIntent.pullup\";\n String str2 = \"TpnsChannel\";\n try {\n if (this.f23285A == null) {\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(\"android.intent.action.SCREEN_ON\");\n intentFilter.addAction(\"android.intent.action.SCREEN_OFF\");\n intentFilter.addAction(\"android.intent.action.USER_PRESENT\");\n intentFilter.addAction(str);\n C6973b.m29776f().registerReceiver(this.f23292L, intentFilter);\n this.f23285A = PendingIntent.getBroadcast(C6973b.m29776f(), 0, new Intent(str), 134217728);\n }\n long currentTimeMillis = System.currentTimeMillis();\n if (f23282q > f23278m) {\n f23282q = f23278m;\n }\n if (XGPushConfig.isForeignWeakAlarmMode(C6973b.m29776f())) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"schedulePullUpHeartbeat WaekAlarmMode heartbeatinterval: \");\n sb.append(f23280o);\n sb.append(\" ms\");\n C6864a.m29305f(str2, sb.toString());\n f23282q = f23280o;\n }\n f23282q = C7055h.m30166a(C6973b.m29776f(), \"com.tencent.android.xg.wx.HeartbeatIntervalMs\", f23282q);\n long j = currentTimeMillis + ((long) f23282q);\n mo33391b(true);\n C7045d.m30117a().mo34149a(0, j, this.f23285A);\n } catch (Throwable th) {\n C6864a.m29302d(str2, \"scheduleHeartbeat error\", th);\n }\n }", "default void onMissedHeartBeat(SessionID sessionID) {\n }", "@Override\n public void update() { Ping the connection to see if it is still alive. At\n // some point the ProxyClient class should centralize\n // the connection aliveness monitoring and no longer\n // rely on the custom tabs to ping the connections.\n //\n try {\n getMBeanServerConnection().getDefaultDomain();\n } catch (IOException ex) {\n vmPanel.getProxyClient().markAsDead();\n }\n }", "public void onIdleTimerTick()\n {\n GregorianCalendar now = new GregorianCalendar();\n \n // any player we haven't seen for 3 minutes is now AFK.\n now.add(Calendar.MINUTE, -3);\n \n Server server = this.getServer();\n Player[] players = server.getOnlinePlayers();\n \n for (int i = 0; i < players.length; i++)\n {\n String playerName = players[i].getName();\n \n if (this.afkLastSeen.containsKey(playerName) && this.afkLastSeen.get(playerName).after(now))\n {\n if (this.afkPlayersAuto.containsKey(playerName) && this.afkPlayersAuto.get(playerName))\n {\n // this player is no longer AFK.\n this.afkPlayers.put(playerName, false);\n this.afkPlayersAuto.put(playerName, false);\n \n server.broadcastMessage(ChatColor.YELLOW + playerName + \" is no longer away.\");\n }\n }\n else\n {\n if (!this.afkPlayers.containsKey(playerName) || !this.afkPlayers.get(playerName))\n {\n // mark this player as AFK, broadcast the message.\n this.afkPlayers.put(playerName, true);\n this.afkPlayersAuto.put(playerName, true);\n \n server.broadcastMessage(ChatColor.YELLOW + playerName + \" is now away (idle).\");\n }\n }\n }\n }", "private void peek_server_update(){\n java.util.Timer timer = new java.util.Timer(true);\n TimerTask taskPeek = new TimerTask() {\n public void run() {\n try {\n String user_id = RegistrationManager.getUserId();\n if (user_id == null || user_id.length() == 0) {\n return;\n }\n// WifiManager wifi = (WifiManager) getSystemService(WIFI_SERVICE);\n// if (wifi.getWifiState() == WifiManager.WIFI_STATE_ENABLED) {\n// JsonManager.peek_request(user_id);\n// }\n JsonManager.peek_request(user_id);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n };\n JsonManager.getServerConfig();\n int periodPeek = Config.PEEK_TIMER() * 1000;\n timer.schedule(taskPeek, periodPeek, periodPeek);\n }", "@Scheduled(fixedRate = 60_000)\n public void checkEventTime() {\n isTimeService.findAll().forEach(event -> {\n if (event.getSchedulledTime().isBefore(LocalDateTime.now())) {\n this.producer.sendReachTimeMessage(new IsTime(event.getMessageId()));\n this.isTimeService.deleteById(event.getSchedulledId());\n }\n });\n// log.info(\"Schedulled time check.\");\n }", "public boolean checkTimeout(){\n\t\tif((System.currentTimeMillis()-this.activeTime.getTime())/1000 >= this.expire){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n drive.updateTeleop();\n sensor.updateTeleop();\n }", "public static void ping() {}", "public static void ping() {}", "public static boolean isSpamConnect(int identifier, long timestamp){\n int id = identifier % MAX_CONNECTION_BUFFER;\n /* Check whether we are dealing with a recent connection or a new one */\n if(connections.get(id) != null){\n /* Test time since previous connection */\n if(timestamp - connections.get(id) < MIN_CONNECTION_WAIT){\n /* We have a spammer, punish them */\n connections.put(id, timestamp + PUNISH_TIMEOUT);\n return true;\n }\n }\n connections.put(id, timestamp);\n return false;\n }", "private void confirmAlive(MessagingAddress statCollectorAddress, IDAddressPair self) {\n\t\tif (this.provider.isReliable()\n\t\t\t\t|| ++this.notificationCount % this.pingFreq != 0) return;\n\t\t// multiple increments can be in race condition w/o synchronization, but it's OK here.\n\n\t\t// ping\n\t\tMessage pingMessage = StatMessageFactory.getStatPingMessage(self);\n\t\tMessage ackMessage = null;\n\n\t\ttry {\n\t\t\tackMessage = this.sender.sendAndReceive(statCollectorAddress, pingMessage);\n\n\t\t\tif (ackMessage.getTag() == Tag.STAT_ACK.getNumber()) {\n\t\t\t\t//synchronized (this) {\n\t\t\t\t\tthis.failureCount = 0;\n\t\t\t\t//}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tlogger.log(Level.WARNING, \"STAT_PING failed: \" + statCollectorAddress);\n\t\t}\n\t\tcatch (NullPointerException e) {\n\t\t\tlogger.log(Level.WARNING, \"A null message returned. The target is not a stat collector?\");\n\t\t}\n\n\t\tthis.failInReporting();\n\t}", "int getHeartbeatInterval();", "public void teleopPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "@Override\n public void startTimeLoop() {\n MyLog.log(\"startTimeLoop::\");\n // handler.sendEmptyMessage(5);\n }", "public boolean hasHeartBeatMsg() {\n return msgCase_ == 3;\n }", "public boolean spam() {\n\t\tsynchronized (this) {\n\t\t\tif (!canUse() || !start())\n\t\t\t\treturn false;\n\t\t\tfinal TimedCondition tc = new TimedCondition(1000) {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean isDone() {\n\t\t\t\t\treturn !canUse() || BarNode.this.isDone();\n\t\t\t\t}\n\t\t\t};\n\t\t\tdo {\n\t\t\t\tsend();\n\t\t\t\tTask.sleep(300, 400);\n\t\t\t} while (tc.isRunning());\n\t\t\treturn tc.isDone();\n\t\t}\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tOI.refreshAll();\n\t\tScheduler.getInstance().run();\n\t\tlog();\n\t}", "public void setPing(boolean ping)\n {\n _isPing = ping;\n }", "public boolean hasHeartBeatMsg() {\n return msgCase_ == 3;\n }", "@Override\n public void teleopPeriodic()\n {\n commonPeriodic();\n }", "public boolean keepAliveEnabled();", "boolean hasSendTime();", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "@VisibleForTesting\n boolean isHeartBeatThreadAlive() {\n return scheduler != null && !scheduler.isShutdown();\n }", "public void run() {\n while (true) {\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if (connectionsPool < 10) {\n NotificationService.getInstance().sendEmail(\"operator@telco.com\", \"BaseStation \" + id + \" is really busy\", \"We're running out of free connection on base station!\");\n } else {\n System.out.println(\"connection pool ok\");\n }\n }\n }", "public void onIdle() {\n Methods.showMessage(\"Warning\", \"No User Action for the Last 5 Minutes!\", \"Do You Need More Time?\");\n }", "private static boolean isMonitoringTimeOver(Properties configuration) {\r\n String monitoringStartTime = configuration.getProperty(Constants.PROPERTY_MONITORING_START_TIME);\r\n if (monitoringStartTime == null) {\r\n return false;\r\n }\r\n DateTimeZone.setDefault(DateTimeZone.UTC);\r\n \r\n DateTime startTime = new DateTime(monitoringStartTime);\r\n String monitoringDuration = configuration.getProperty(Constants.PROPERTY_TIME_MONITORING_DURATION);\r\n \r\n int monitoringDurationMinutes = Integer.parseInt(monitoringDuration);\r\n DateTime endTime = startTime.plusMinutes(monitoringDurationMinutes);\r\n \r\n return endTime.isBeforeNow();\r\n }", "protected void notificationOnExpiration() {\n }", "private boolean timeout() {\n long time = SystemClock.currentThreadTimeMillis();\n while (bluetoothSync.getState() != BluetoothSync.STATE_CONNECTED) {\n if (SystemClock.currentThreadTimeMillis() > time + Constants.Bluetooth.CONNECTION_TIMEOUT) {\n return false;\n }\n }\n return true;\n }", "boolean timedOut() {\n\treturn timedOut;\n }", "@Override\n protected boolean check(User user, UUID uuid, String service, String key) {\n if (this.timeOuts.containsKey(uuid) && this.timeOuts.get(uuid) + 1000 * 2 >= System\n .currentTimeMillis()) {\n user.sendMessage(Translation.RANKSYNC_COMMAND_REQUEST_LIMIT.getTranslation());\n return false;\n } else {\n this.timeOuts.put(uuid, System.currentTimeMillis());\n return true;\n }\n }", "private void m29985m() {\n String str = \"com.tencent.android.tpush.service.channel.heartbeatIntent\";\n String str2 = \"TpnsChannel\";\n try {\n if (this.f23299z == null) {\n C6973b.m29776f().registerReceiver(new BroadcastReceiver() {\n public void onReceive(Context context, Intent intent) {\n C7005b.m29964a().m29983k();\n }\n }, new IntentFilter(str));\n this.f23299z = PendingIntent.getBroadcast(C6973b.m29776f(), 0, new Intent(str), 134217728);\n }\n long currentTimeMillis = System.currentTimeMillis();\n if (f23279n > f23278m) {\n f23279n = f23278m;\n }\n if (XGPushConfig.isForeignWeakAlarmMode(C6973b.m29776f())) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"scheduleHeartbeat WaekAlarmMode heartbeatinterval: \");\n sb.append(f23280o);\n sb.append(\" ms\");\n C6864a.m29305f(str2, sb.toString());\n f23279n = f23280o;\n }\n f23279n = C7055h.m30166a(C6973b.m29776f(), \"com.tencent.android.xg.wx.HeartbeatIntervalMs\", f23279n);\n C7045d.m30117a().mo34149a(0, currentTimeMillis + ((long) f23279n), this.f23299z);\n } catch (Throwable th) {\n C6864a.m29302d(str2, \"scheduleHeartbeat error\", th);\n }\n }", "void reportHeartbeat();", "void acked(boolean timedOutMessage);", "@Override\n public void run() {\n while (running) {\n try {\n if ((System.currentTimeMillis() - heartbeat) > 100 * threadWaiting) {\n if (cache.size() > 0) {\n logger.info(\"Long time no data entry, save the buffer(size:{}) to the database \", cache.size());\n flush();\n }\n }\n TimeUnit.MILLISECONDS.sleep(100 * threadWaiting);\n } catch (InterruptedException e) {\n logger.error(\" InterruptedException error :{}\", e);\n }\n }\n }" ]
[ "0.6821332", "0.6557844", "0.6336463", "0.619463", "0.6100872", "0.60908175", "0.6086464", "0.60754263", "0.60593206", "0.60386753", "0.60318506", "0.60265476", "0.60251254", "0.5951071", "0.59132797", "0.5876747", "0.58517295", "0.5844843", "0.58121926", "0.58121926", "0.5784238", "0.57723933", "0.577158", "0.5765214", "0.5753056", "0.57510716", "0.57335985", "0.5727866", "0.56974995", "0.56862825", "0.5661553", "0.5657968", "0.5656284", "0.5649045", "0.5646435", "0.5642907", "0.56395227", "0.56377167", "0.56302935", "0.56121695", "0.55975807", "0.55951875", "0.5592744", "0.5586392", "0.55857265", "0.5582338", "0.5572908", "0.5546762", "0.5546666", "0.55417544", "0.55379486", "0.5534009", "0.5532958", "0.55317914", "0.5529949", "0.5520212", "0.55152625", "0.55141824", "0.55042034", "0.5499514", "0.5476645", "0.5474303", "0.5472639", "0.54715633", "0.546954", "0.5465997", "0.5455792", "0.54476726", "0.54426557", "0.5437536", "0.5437536", "0.5417317", "0.5412695", "0.5409373", "0.5402904", "0.5397897", "0.53871834", "0.53817356", "0.5377583", "0.5376078", "0.53752875", "0.5372196", "0.5369249", "0.5366734", "0.53645986", "0.53645986", "0.53645986", "0.53645986", "0.5361604", "0.5357433", "0.5351059", "0.53495204", "0.5347321", "0.532638", "0.5326244", "0.5322274", "0.5318065", "0.53156346", "0.53123987", "0.5308896" ]
0.7191557
0
The method is called if there is no message from the input channel within response timeout.
private void onResponseTimerTick() { EneterTrace aTrace = EneterTrace.entering(); try { cleanAfterConnection(true, true); } finally { EneterTrace.leaving(aTrace); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handleTimeout();", "public int receiveTimeout(){\n return 0; //TODO codavaj!!\n }", "protected abstract UMOMessage doReceive(long timeout) throws Exception;", "@Override\n public void timeout(CellPath path) {\n fail(task, CacheException.TIMEOUT,\n \"No reply from \" + path);\n }", "private void waitForResponse(InputStream mmInputStream, long timeout) throws IOException {\n int bytesAvailable;\n\n while (true) {\n bytesAvailable = mmInputStream.available();\n if (bytesAvailable > 0) {\n byte[] packetBytes = new byte[bytesAvailable];\n byte[] readBuffer = new byte[1024];\n mmInputStream.read(packetBytes);\n\n for (int i = 0; i < bytesAvailable; i++) {\n byte b = packetBytes[i];\n\n if (b == delimiter) {\n byte[] encodedBytes = new byte[readBufferPosition];\n System.arraycopy(readBuffer, 0, encodedBytes, 0, encodedBytes.length);\n final String data = new String(encodedBytes, \"US-ASCII\");\n\n writeOutput(\"Received:\" + data);\n\n return;\n } else {\n readBuffer[readBufferPosition++] = b;\n }\n }\n }\n }\n }", "@Override\n public int getResponseQueueLength() {\n return 0;\n }", "@Override public void run() {\n waitUntil(\"message\", new Condition() {\n @Override public boolean isMet() {\n return false;\n }\n }, 0);\n }", "boolean awaitMessages(long timeout) throws InterruptedException;", "public int sendTimeout(){\n return 0; //TODO codavaj!!\n }", "public void processTransmissionTimeout() {\n //to be overridden by extending classes\n }", "private void noAnswer() {\n\n\t\ttry {\n\t\t\tthis.timeoutTimer.cancel();\n\t\t} catch (IllegalStateException e) {\n\t\t\tSystem.out.println(\"Unable to cancel timer\");\n\t\t}\n\n\t\tthis.timeoutTimer = new Timer();\n\n\t\t// Plus one failed try\n\t\tthis.tries++;\n\n\t\t// too many tries => tell listeners\n\t\tif (this.tries >= new Integer(EPursuit.properties.getProperty(\"maxTries\"))) {\n\t\t\tthis.state=CallState.TIMEOUT;\n\t\t\tfor (CallListener listener : this.listeners) {\n\t\t\t\tlistener.callNotAnswered(this.destination, this.agi);\n\t\t\t}\n\t\t} else {\n\t\t\tthis.state=CallState.RETRY;\n\t\t\t// schedule retry\n\t\t\tthis.timeoutTimer.schedule(new TimerTask() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (!Call.this.success) {\n\t\t\t\t\t\tCall.this.makeCall();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}, new Long(EPursuit.properties.getProperty(\"retryTime\")));\n\t\t}\n\n\t}", "@Test\n\tpublic void testNoMdcThrowupForPlainMessage() throws Exception {\n\t\tdoAnswer(x -> {\n\t\t\tassertThat(MDC.get(\"state\")).isEqualTo(\"sent\");\n\t\t\tassertThat(MDC.get(\"success\")).isNull();\n\t\t\tassertThat(MDC.get(\"duration\")).isNull();\n\t\t\tassertThat(MDC.get(\"osuApiRateBlockedTime\")).isNull();\n\t\t\treturn null;\n\t\t}).when(botInfo).setLastSentMessage(123L);\n\t\tPrivateMessage event = new PrivateMessage(1, \"nick\", 2, \"yo\");\n\t\tevent.getMeta().setRateLimiterBlockedTime(32);\n\t\twhen(clock.currentTimeMillis()).thenReturn(123L);\n\t\tresponsePostprocessor.onResponse(new Message(\"yeah\"), event);\n\t\tverify(botInfo).setLastSentMessage(123L);\n\t}", "public void acceptTimeout();", "public abstract void onTimeout();", "void acked(boolean timedOutMessage);", "protected void onTimeout() {\n }", "@Override\n public void onTimeout(TimeValue timeout) {\n run();\n }", "protected int waitUntilMessageAvailable00(int handle) \n throws IOException {\n return waitUntilMessageAvailable0(m_iport, handle);\n }", "@Override\n\t\tpublic String getTimeoutMessage() {\n\t\t\treturn null;\n\t\t}", "protected void pktTimeout() {}", "IMessage sendAndWait(IMessage message, IChannel channel) throws TimeoutException;", "@Override\n public Optional<TcpMessage> consumeMessage() throws IOException {\n System.out.println(\"Trying to consume a message...\");\n var json = inputMessageStream.readJson();\n\n socket.shutdownInput();\n if (json.isEmpty()) {\n return Optional.empty();\n }\n return Optional.of(new TcpMessage(JsonPayload.of(json)));\n // return Optional.of(new Message<>(new JsonPayload(json)));\n }", "public void __getReplyNoReport() {\n __getReply(false);\n }", "private void returnResponse(Message message) {\n boolean needToRespond = false;\n synchronized (lock) {\n if (!answered) {\n answered = true;\n needToRespond = true;\n }\n }\n if (needToRespond) {\n // Stop the timer!\n cancelTimer();\n returnResponse(listener, responseQueue, message, id);\n }\n }", "private void __getReply() throws IOException\n {\n __getReply(true); // tagged response\n }", "public void onTimeout();", "private void checkTimeout() {\n/* 169 */ if (this.socket != null) {\n/* */ \n/* 171 */ long i = this.keepaliveTimeoutMs;\n/* */ \n/* 173 */ if (this.listRequests.size() > 0)\n/* */ {\n/* 175 */ i = 5000L;\n/* */ }\n/* */ \n/* 178 */ long j = System.currentTimeMillis();\n/* */ \n/* 180 */ if (j > this.timeLastActivityMs + i)\n/* */ {\n/* 182 */ terminate(new InterruptedException(\"Timeout \" + i));\n/* */ }\n/* */ } \n/* */ }", "private void waitOnReceive() throws IOException {\n while (inStream.available() == 0) {\n try {\n Thread.sleep(1);\n } catch (InterruptedException _) {\n }\n }\n }", "public MasterImpl(Channel channel, long timeout) {\n this.channel = channel;\n responseTimeout = timeout;\n }", "public abstract boolean receive(byte[] buffer, int size, int timeout) throws InterruptedIOException;", "@Test\n public void testSendingDataException_whenTimesOut() throws Throwable {\n final LinkedBlockingQueue<IMetricsUploadService> mockedResultsQueue =\n mock(LinkedBlockingQueue.class);\n when(mockedResultsQueue.poll(anyLong(), any())).thenReturn(null);\n\n AwMetricsLogUploader uploader = new AwMetricsLogUploader(\n /* waitForResults= */ true, /* useDefaultUploadQos= */ false);\n int status = uploader.log(SAMPLE_TEST_METRICS_LOG.toByteArray(), mockedResultsQueue);\n\n Assert.assertEquals(HttpURLConnection.HTTP_CLIENT_TIMEOUT, status);\n }", "@Test\n public void testProcessNoResponse() {\n // NOTE: this json file is a RESPONSE, not a request\n String request = ResourceUtils.getResourceAsString(\"org/onap/policy/simulators/appclcm/appc.lcm.success.json\");\n assertNotNull(request);\n\n server.onTopicEvent(CommInfrastructure.NOOP, MY_TOPIC, request);\n\n verify(sink, never()).send(any());\n }", "@Override\n public long getResponseQueueSize() {\n return 0;\n }", "public synchronized boolean poll_response(){\n return gotResponse;\n }", "private void waitForAvailable() throws IOException, ReadTimeoutException {\n\t\tlong expireTime = System.currentTimeMillis() + READ_TIMEOUT;\n\t\twhile (inputStream.available() < 1) {\n\t\t\tif (System.currentTimeMillis() > expireTime) {\n\t\t\t\tthrow new ReadTimeoutException(\"Read Timed Out.\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(SLEEP_TIME);\n\t\t\t} catch (InterruptedException ie) {\n\t\t\t}\n\t\t}\n\t}", "public HashMap<String, Object> listenForReply(int timeout) throws IOException {\n\t\tHashMap<String, Object> replyPayload = null;\n\t\tbyte[] buffer = new byte[Constants.BUFFER_SIZE];\n DatagramPacket packet = new DatagramPacket(buffer, buffer.length);\n\n\t\tsocket.setSoTimeout(timeout);\n\t\tsocket.receive(packet);\n \treplyPayload = Utils.unmarshallPayload(packet.getData());\n \treturn replyPayload;\n\t}", "public long readTimeout(){\n return 0l; //TODO codavaj!!\n }", "Message poll(String topicName, Duration timeout) throws IOException;", "protected void responseFail(){\n\t\tqueue.clear();\n\t}", "private void timerExpired() {\r\n timer.stop();\r\n mainFrame.setEnabled(true);\r\n inputPanel.addKits(receivedKits);\r\n messageSent = false;\r\n setMessage(finishedReceivingMessage, Color.BLUE);\r\n receivedKits.clear();\r\n }", "@Override\n public int read() throws IOException {\n if (stream.available() > 0) {\n return stream.read();\n } else {\n layer.receiveMoreDataForHint(getHint());\n // either the stream is now filled, or we ran into a timeout\n // or the next stream is available\n return stream.read();\n }\n }", "void handleTimeoutTask();", "RequestSender onTimeout(long timeout, Runnable runnable);", "@Override\n\tpublic void waitTimedOut() {\n\t\t\n\t\tif( busylinetimer == null )\n\t\t\treturn;\n\t\t\n\t\tbusylinetimer.stop();\n\t\tbusylinetimer = null;\n\t\t\n\t\tlog.info(\"linea ocupada por mas de 120 segundos, iniciando proceso para colgar llamada.......\");\n\t\t\n\t\tnew CellPhoneHandUpCall(modem,false);\n\t}", "@Test\n public void readTimesOut() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"a\", \"android\"));\n peer.acceptFrame();// RST_STREAM\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"b\", \"banana\"), false);\n stream.readTimeout().timeout(500, TimeUnit.MILLISECONDS);\n Source source = stream.getSource();\n long startNanos = System.nanoTime();\n try {\n source.read(new Buffer(), 1);\n Assert.fail();\n } catch (InterruptedIOException expected) {\n }\n long elapsedNanos = (System.nanoTime()) - startNanos;\n awaitWatchdogIdle();\n /* 200ms delta */\n Assert.assertEquals(500.0, TimeUnit.NANOSECONDS.toMillis(elapsedNanos), 200.0);\n Assert.assertEquals(0, connection.openStreamCount());\n // verify the peer received what was expected\n Assert.assertEquals(TYPE_HEADERS, peer.takeFrame().type);\n Assert.assertEquals(TYPE_RST_STREAM, peer.takeFrame().type);\n }", "private boolean waitForAcknowledgement(InputStream input) throws IOException {\r\n byte[] ack = new byte[1];\r\n int result = input.read(ack);\r\n return result == 1;\r\n }", "public void waitForNotificationOrFail() {\n new PollingCheck(5000) {\n @Override\n protected boolean check() {\n return mContentChanged;\n }\n }.run();\n mHT.quit();\n }", "private void checkTimeout() {\n val timeout = config.getInt(\"timeout\");\n\n checkArgument(timeout >= 1000, \"timeout is less than 1000!\");\n }", "@Override\n public boolean waitToProceed() {\n return false;\n }", "public abstract void isTimeout(long ms);", "@Test(timeout = 4000)\n public void test37() throws Throwable {\n String string0 = EWrapperMsgGenerator.receiveFA((-510), \"askExch\");\n assertEquals(\"FA: null askExch\", string0);\n }", "boolean hasResponseTimeNsec();", "private void consumeInputWire(final NHttpClientEventHandler handler) {\n if (getContext() == null) {\n return;\n }\n SynapseWireLogHolder logHolder = null;\n if (getContext().getAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY) != null) {\n logHolder = (SynapseWireLogHolder) getContext().getAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY);\n } else {\n logHolder = new SynapseWireLogHolder();\n }\n synchronized (logHolder) {\n logHolder.setPhase(SynapseWireLogHolder.PHASE.TARGET_RESPONSE_READY);\n getContext().setAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY, logHolder);\n if (this.status != ACTIVE) {\n this.session.clearEvent(EventMask.READ);\n return;\n }\n try {\n if (this.response == null) {\n int bytesRead;\n do {\n bytesRead = this.responseParser.fillBuffer(this.session.channel());\n if (bytesRead > 0) {\n this.inTransportMetrics.incrementBytesTransferred(bytesRead);\n }\n this.response = this.responseParser.parse();\n } while (bytesRead > 0 && this.response == null);\n if (this.response != null) {\n if (this.response.getStatusLine().getStatusCode() >= 200) {\n final HttpEntity entity = prepareDecoder(this.response);\n this.response.setEntity(entity);\n this.connMetrics.incrementResponseCount();\n }\n this.hasBufferedInput = this.inbuf.hasData();\n onResponseReceived(this.response);\n handler.responseReceived(this);\n if (this.contentDecoder == null) {\n resetInput();\n }\n }\n if (bytesRead == -1 && !this.inbuf.hasData()) {\n handler.endOfInput(this);\n }\n }\n if (this.contentDecoder != null && (this.session.getEventMask() & SelectionKey.OP_READ) > 0) {\n handler.inputReady(this, this.contentDecoder);\n if (this.contentDecoder.isCompleted()) {\n //This is the place where it finishes the response read from back-ends\n if (getContext().getAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY) != null) {\n logHolder = (SynapseWireLogHolder) getContext().getAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY);\n logHolder.setPhase(SynapseWireLogHolder.PHASE.TARGET_RESPONSE_DONE);\n getContext().setAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY, logHolder);\n }\n // Response entity received\n // Ready to receive a new response\n resetInput();\n }\n }\n } catch (final HttpException ex) {\n resetInput();\n handler.exception(this, ex);\n } catch (final Exception ex) {\n handler.exception(this, ex);\n } finally {\n if (getContext().getAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY) != null) {\n logHolder = (SynapseWireLogHolder) getContext().getAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY);\n logHolder.setPhase(SynapseWireLogHolder.PHASE.TARGET_RESPONSE_DONE);\n getContext().setAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY, logHolder);\n }\n // Finally set buffered input flag\n this.hasBufferedInput = this.inbuf.hasData();\n }\n }\n }", "@SmallTest\n @Test\n public void testReceiveTimeout() {\n testNegotiationSuccess();\n\n // Receive a partial first message.\n mDtmfTransport.onDtmfReceived('A');\n mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS);\n mDtmfTransport.onDtmfReceived('B');\n // Timeout\n mTestExecutorService.advanceTime(MSG_TIMEOUT_MILLIS);\n\n // Receive second message.\n mDtmfTransport.onDtmfReceived('A');\n mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS);\n mDtmfTransport.onDtmfReceived('C');\n mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS);\n mDtmfTransport.onDtmfReceived('D');\n mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS);\n mDtmfTransport.onDtmfReceived('A');\n mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS);\n mDtmfTransport.onDtmfReceived('D');\n mTestExecutorService.advanceTime(DIGIT_INTERVAL_MILLIS);\n\n // First message should not be present, but the second one should be.\n verify(mCallback, times(1)).onMessagesReceived(mMessagesCaptor.capture());\n assertTrue(mMessagesCaptor.getValue().contains(\n new Communicator.Message(Communicator.MESSAGE_DEVICE_BATTERY_STATE,\n Communicator.BATTERY_STATE_LOW)));\n }", "@Override\n public boolean messagePending() {\n return commReceiver.messagePending();\n }", "void pushClientTimeout(PushConnection pushConnection,\n JavaScriptObject response);", "public void expect() throws IOException\n\t{\n\t\tString response = mClient.rx();\n\t\t\n\t\tif(mListener != null)\n\t\t\tmListener.onResponse(this, response);\n\t}", "public Response waitForCoapResponse() throws InterruptedException {\n try {\n boolean timeElapsed = false;\n timeElapsed = !latch.await(timeout, TimeUnit.MILLISECONDS);\n if (timeElapsed || coapTimeout.get()) {\n coapTimeout.set(true);\n coapRequest.cancel();\n }\n } finally {\n coapRequest.removeMessageObserver(this);\n }\n\n if (exception.get() != null) {\n coapRequest.cancel();\n throw exception.get();\n }\n return ref.get();\n }", "@Override\n public void channelRead(final ChannelHandlerContext ctx, final Object msg) {\n try {\n if (msg instanceof FullHttpResponse) {\n try {\n currentRequest.context().dispatchLatency(System.nanoTime() - dispatchTimingStart);\n if (currentDispatchSpan != null) {\n currentDispatchSpan.end();\n }\n FullHttpResponse httpResponse = (FullHttpResponse) msg;\n ResponseStatus responseStatus = HttpProtocol.decodeStatus(httpResponse.status());\n if (!currentRequest.completed()) {\n if (responseStatus == ResponseStatus.SUCCESS) {\n Response response = currentRequest.decode(httpResponse, channelContext);\n currentRequest.succeed(response);\n } else {\n String body = httpResponse.content().toString(StandardCharsets.UTF_8);\n Exception error = currentRequest.bypassExceptionTranslation()\n ? failRequestWithHttpStatusCodeException(httpResponse.status(), body, currentRequest)\n : failRequestWith(httpResponse.status(), body, currentRequest);\n currentRequest.fail(error);\n }\n } else {\n ioContext.environment().orphanReporter().report(currentRequest);\n }\n } catch (Throwable ex) {\n currentRequest.fail(ex);\n } finally {\n currentRequest = null;\n currentDispatchSpan = null;\n endpoint.markRequestCompletion();\n }\n } else {\n ioContext.environment().eventBus().publish(\n new UnsupportedResponseTypeReceivedEvent(ioContext, msg)\n );\n closeChannelWithReason(ioContext, ctx, ChannelClosedProactivelyEvent.Reason.INVALID_RESPONSE_FORMAT_DETECTED);\n }\n } finally {\n ReferenceCountUtil.release(msg);\n }\n }", "@Override\n public boolean hasRemaining() throws IOException\n {\n return randomAccessRead.available() > 0;\n }", "@java.lang.Override\n public boolean hasDecodedAudioTimeoutMs() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public void handleNotInUse() {\n InternalSubchannel.this.callback.onNotInUse(InternalSubchannel.this);\n }", "public boolean hasMessage(){\r\n return this.receivedMessages.size()>0;\r\n }", "@java.lang.Override\n public boolean hasDecodedAudioTimeoutMs() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "boolean hasResponseMessage();", "@Override\n\tpublic void appendWithNoReply(String arg0, Object arg1)\n\t\t\tthrows InterruptedException, MemcachedException {\n\n\t}", "private OTSMsg waitForMessageFromSender(Channel channel) throws IOException, ClassNotFoundException {\n\t\tSerializable message = null;\n\t\ttry {\n\t\t\tmessage = channel.receive();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IOException(\"failed to receive message. The thrown message is: \" + e.getMessage());\n\t\t}\n\t\tif (!(message instanceof OTSMsg)){\n\t\t\tthrow new IllegalArgumentException(\"the given message should be an instance of OTSMessage\");\n\t\t}\n\t\treturn (OTSMsg) message;\n\t}", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"Waiting for input\");\n\t\t// Handle reading data until we exit\n\t\tByteBuffer buf = ByteBuffer.allocate(2048);\n\t\twhile (!stopper && socketChannel.isOpen()) {\n\t\t\tSystem.out.println(\"Reading the socket\");\n\t\t\ttry {\n\t\t\t\t// No input from the user in 60 seconds results in kicking them\n\t\t\t\t// out\n\t\t\t\tint bytesRead = socketChannel.read(buf).get(60, TimeUnit.SECONDS);\n\t\t\t\t// ByteBuffer dst = ByteBuffer.allocate(bytesRead);\n\t\t\t\t// engine.unwrap(buf, dst);\n\t\t\t\tSystem.out.println(\"Got data of size: \" + bytesRead);\n\t\t\t\t// convert to proto\n\t\t\t\tcommonUIElements.MessageProtos.Message msg = commonUIElements.MessageProtos.Message\n\t\t\t\t\t\t.parseFrom(Arrays.copyOf(buf.array(), bytesRead));\n\t\t\t\tSystem.out.println(\"RXed: \" + msg.toString());\n\t\t\t\tif (!msg.getName().equals(name)) {\n\t\t\t\t\tname = msg.getName();\n\t\t\t\t}\n\t\t\t\t// add data to the message queue\n\t\t\t\tif (SignatureSystem.verifySignature(msg.getSignature(), msg.getMessage(), msg.getName(), trustStore)) {\n\t\t\t\t\tmessages.put(\n\t\t\t\t\t\t\tnew Message(msg.getSender(), msg.getMessage(), msg.getSignature(), msg.getClearance()));\n\t\t\t\t} else {\n\t\t\t\t\tMessage error = new Message(msg.getSender(), \"Error: signture is invalid\", msg.getSignature(),\n\t\t\t\t\t\t\tmsg.getClearance());\n\t\t\t\t\terror.error = true;\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t}\n\t\t\t\t// clear the buffer for the next message\n\t\t\t\tbuf.clear();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tSystem.err.println(\"Failed to add message to the queue: \" + e.getMessage());\n\t\t\t\tMessage error = new Message(this.name, \"Disconnected\", \"\", 1);\n\t\t\t\terror.error = true;\n\t\t\t\ttry {\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\tSystem.err.println(\"Thread has an error, can't inform server of this transgression\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} catch (TimeoutException e) {\n\t\t\t\tSystem.err.println(\"Timeout hit, waiting again\");\n\t\t\t\tMessage error = new Message(this.name, \"Client: \" + this.name + \" has timed out\", \"\", 1);\n\t\t\t\terror.kill = true;\n\t\t\t\ttry {\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\tSystem.err.println(\"Thread has an error, can't inform server of this transgression\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\tSystem.err.println(\"Execution error, breaking out of loop\");\n\t\t\t\tbreak;\n\t\t\t} catch (InvalidProtocolBufferException e) {\n\t\t\t\tSystem.err.println(\"Invalid protobuf received: \" + e.getMessage());\n\t\t\t\t// } catch(SSLException e) {\n\t\t\t\t// System.err.println(\"SSL Failed: \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tsocketChannel.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Failed to close socket while exiting\");\n\t\t}\n\t\tSystem.out.println(\"Exiting thread...\");\n\t}", "@java.lang.Override\n public boolean hasDecodedAudioTimeoutMs() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public boolean hasResponseTimeNsec() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }", "@Override\r\n public void onTimeout(final Long payload) {\n // count-down our latches. The first latch only requires one\r\n // invocation, the second expects two (though the second should\r\n // never be received)\r\n //\r\n expectedTimeoutReceivedLatch.countDown();\r\n timeoutWhichShouldNeverBeReceivedLatch.countDown();\r\n }", "@java.lang.Override\n public boolean hasDecodedAudioTimeoutMs() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "public void timeoutCheckAndRetransmit() throws IOException{\n\t\tfor ( int j=0; j<window.size(); j++ ){\n\t\t\tif (window.get(j).counter > DEFAULT_COUNTER_BOUND && window.get(j).acked == false){//retransmit this packet\n\t\t\t\treTransmit( j );\n\t\t\t\tSystem.out.println(\"SRSender \"+senderID+\" > \"+\"retransmit< \"+window.get(j).indexS+\", \"+(window.get(j).indexE-1)+\">\");\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "public synchronized void checkTimeoutMessages() {\n SQSMessage SQSMessage;\n String receiptHandler;\n long currentTimeStampDifference;\n for (Map.Entry pairs : receivedMessages.entrySet()) {\n SQSMessage = (SQSMessage) pairs.getValue();\n currentTimeStampDifference = System.currentTimeMillis() - SQSMessage.getReceivedTimeStamp();\n if (currentTimeStampDifference > SQSMessage.getDefaultVisibilityTimeout()) {\n receiptHandler = (String) pairs.getKey();\n SQSMessageQueue.addFirst(SQSMessage);\n receivedMessages.remove(receiptHandler);\n }\n }\n }", "public void testTimedPoll0() {\n try {\n SynchronousQueue q = new SynchronousQueue();\n assertNull(q.poll(0, TimeUnit.MILLISECONDS));\n } catch (InterruptedException e){\n\t unexpectedException();\n\t}\n }", "private native int waitUntilMessageAvailable0(int port, int handle)\n throws IOException;", "@Override\n public void handleMessage(Message msg) {\n sendEmptyMessageDelayed(0, 3000);\n if (resClient.getSendBufferFreePercent() <= 0.05) {\n Toast.makeText(StreamingActivity.this, \"sendbuffer is full,netspeed is low!\", Toast.LENGTH_SHORT).show();\n }\n }", "@Test\n public void testTimeout() throws Exception {\n ProduceRequestResult request = new ProduceRequestResult(topicPartition);\n FutureRecordMetadata future = new FutureRecordMetadata(request, relOffset,\n RecordBatch.NO_TIMESTAMP, 0, 0, Time.SYSTEM);\n assertFalse(future.isDone(), \"Request is not completed\");\n try {\n future.get(5, TimeUnit.MILLISECONDS);\n fail(\"Should have thrown exception.\");\n } catch (TimeoutException e) { /* this is good */\n }\n\n request.set(baseOffset, RecordBatch.NO_TIMESTAMP, null);\n request.done();\n assertTrue(future.isDone());\n assertEquals(baseOffset + relOffset, future.get().offset());\n }", "@Override\n public void onEmptyTarget() {\n endIt(eventTimeoutTimerNode.getNode().getId(), factory, defaultCondition.getEnd());\n }", "@SmallTest\n @Test\n public void testNegotiationSuccessAndDoesNotTimeOut() {\n testNegotiationSuccess();\n\n mTestExecutorService.advanceTime(NEGOTIATION_TIMEOUT_MILLIS);\n\n // Even though we timeout period has passed, we should NOT have failed negotiation and the\n // state should remain negotiated.\n verify(mCallback, never()).onNegotiationFailed(eq(mDtmfTransport));\n assertEquals(DtmfTransport.STATE_NEGOTIATED, mDtmfTransport.getTransportState());\n }", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn isTimedOut();\r\n\t}", "public void cbEmptyResponse()\n {\n }", "protected abstract boolean systemReadyToHandleReceivedMessage();", "@SmallTest\n @Test\n public void testNegotiationFailsDueToTimeout() {\n mDtmfTransport.startNegotiation();\n\n mTestExecutorService.advanceTime(NEGOTIATION_TIMEOUT_MILLIS);\n\n verify(mCallback).onNegotiationFailed(eq(mDtmfTransport));\n assertEquals(DtmfTransport.STATE_NEGOTIATION_FAILED, mDtmfTransport.getTransportState());\n }", "@Override\n public void deliveryComplete(IMqttDeliveryToken arg0) {\n try {\n if(arg0.getMessage()==null){\n //messageDelivered = true;\n }\n } catch (MqttException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "@java.lang.Override\n public boolean hasPostEndOfAudioTimeoutMs() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "@Override\n\tpublic Future<RpcResult<Void>> noinputOutput() {\n\t\tLOG.info(\"noinputOutput is called.\");\n\t\treturn Futures.immediateFuture( RpcResultBuilder.<Void> success().build() );\n\t}", "public boolean hasResponseTimeNsec() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }", "private boolean isGettingData(){\n int available;\n long startTime = System.nanoTime();\n int timeout = 100;\n InputStream inStream = null;\n flushStream();\n try {\n if(socket!=null)\n inStream = socket.getInputStream();\n Thread.sleep(100); //The Arduino keeps sending data for 100ms after it is told to stop\n }catch(IOException | InterruptedException e){}\n try {\n while (true) {\n available = inStream.available();\n if (available > 0) {\n return true;\n }\n Thread.sleep(1);\n long estimatedTime = System.nanoTime() - startTime;\n long estimatedMillis = TimeUnit.MILLISECONDS.convert(estimatedTime,\n TimeUnit.NANOSECONDS);\n if (estimatedMillis > timeout){\n return false; //timeout, no data coming\n }\n }\n }catch(IOException | InterruptedException | NullPointerException e){\n Log.d(\"Exception\", \"Exception\");\n }\n return false;\n }", "int timeout();", "@Override\r\n\tpublic void readResult(IDCardItem arg0) {\n\t\tmHandler.obtainMessage(200, arg0).sendToTarget();\r\n\t}", "public synchronized void sendResponseIfReady() throws IOException {\n getConnection().channel.write(response).addListener(new CallWriteListener(this));\n }", "@Override\n\tprotected void channelRead0(ChannelHandlerContext ctx, WsClientMessage msg) throws Exception {\n\t}", "T poll( int timeout, TimeUnit timeUnit )\n throws InterruptedException;", "public void setReadTimeout(int readTimeout){\n return; //TODO codavaj!!\n }", "private void onMessageTimeout(int expectedMessage) {\n switch (expectedMessage) {\n\n case MeshService.MESSAGE_GROUP_MODEL_GROUPID:\n if (mGroupAcksWaiting > 0) {\n if (mGroupAckListener != null) {\n // Timed out waiting for group update ACK.\n mGroupAckListener.groupsUpdated(mSendDeviceId, false,\n stActivity.getString(R.string.group_timeout));\n }\n mGroupAcksWaiting = 0;\n }\n break;\n case MeshService.MESSAGE_DEVICE_ASSOCIATED:\n // Fall through.\n case MeshService.MESSAGE_CONFIG_MODELS:\n // If we couldn't find out the model support for the device then we have to report association failed.\n if (mAssListener != null) {\n mAssListener.deviceAssociated(false);\n }\n if (mInfoListener!= null) {\n mInfoListener.onDeviceConfigReceived(false);\n }\n break;\n case MeshService.MESSAGE_FIRMWARE_VERSION:\n if (mInfoListener != null) {\n mInfoListener.onFirmwareVersion(0, 0, 0, false);\n }\n break;\n case MeshService.MESSAGE_GROUP_NUM_GROUPIDS:\n if (mGroupAckListener != null) {\n mGroupAckListener.groupsUpdated(mSendDeviceId, false, stActivity.getString(R.string.group_query_fail));\n }\n break;\n case MeshService.MESSAGE_CONFIG_DEVICE_INFO:\n\n // if we were waiting to get the configModels once we associate the device, we just assume we couldn't get the models\n // that the device support, but the association was successful.\n if (mDeviceIdtoUuidHash.size() > 0) {\n\n Device device =mDeviceStore.getDevice(mDeviceIdtoUuidHash.keyAt(0));\n mDeviceIdtoUuidHash.removeAt(0);\n if (device != null) {\n //Toast.makeText(stActivity, device.getName() + \" \" + stActivity.getString(R.string.added),Toast.LENGTH_SHORT).show();\n }\n if (mAssListener != null) {\n mAssListener.deviceAssociated(true);\n }\n }\n if (mInfoListener!= null) {\n mInfoListener.onDeviceConfigReceived(false);\n }\n if (mInfoListener != null) {\n mInfoListener.onDeviceInfoReceived(new byte[0], new byte[0], new byte[0], 0, false);\n }\n break;\n\n }\n }", "boolean hasResponseTimeSec();", "@Override\n public void receiveEmptyMessage(final EmptyMessage message) {\n\n }", "public byte[] receive (long timeout)\n throws IOException, IllegalArgumentException\n {\n int byteArraySize = getNextMessageSize (timeout);\n if (byteArraySize <= 0) {\n return null;\n }\n else {\n return receiveBuffer (timeout);\n }\n }", "@Override\r\n\t\t\t\t\tpublic void onConnectTimeoutException(String msg) {\n\t\t\t\t\t\tUToast.showConnectTimeoutToast(getActivity());\r\n\t\t\t\t\t\tstopLoadMoreAndRefresh();\r\n\t\t\t\t\t}", "public synchronized Message receive(long timeout) throws JMSException {\n if (timeout < 0) {\n message = getConsumer().receive();\n } else {\n message = getConsumer().receive(timeout);\n }\n return message;\n }" ]
[ "0.60622585", "0.5890835", "0.58763695", "0.5789647", "0.5746722", "0.57457334", "0.5737298", "0.5704895", "0.5698125", "0.5592248", "0.55730695", "0.55605036", "0.55570936", "0.5546303", "0.55307055", "0.54972595", "0.5453371", "0.54501295", "0.54489046", "0.5431074", "0.54100376", "0.5409782", "0.54033124", "0.5389529", "0.5372165", "0.5345635", "0.53369415", "0.5335368", "0.5335196", "0.5334438", "0.53249943", "0.53187037", "0.5310641", "0.52840954", "0.52751553", "0.52667046", "0.5263497", "0.5252896", "0.52493316", "0.52439964", "0.52412915", "0.5224899", "0.5216549", "0.5187994", "0.5184079", "0.51829356", "0.51730585", "0.5170758", "0.5159531", "0.5157399", "0.5150916", "0.5146803", "0.51385057", "0.51302296", "0.5123474", "0.51092076", "0.51010835", "0.50993913", "0.50973153", "0.50929904", "0.50927746", "0.508778", "0.50745314", "0.5071389", "0.5065306", "0.5063646", "0.5063022", "0.5050555", "0.5048937", "0.5048264", "0.50472724", "0.5032131", "0.50306904", "0.50280225", "0.5027311", "0.5023633", "0.5017132", "0.5015658", "0.50149155", "0.5014454", "0.50137115", "0.5012834", "0.50031745", "0.50031304", "0.500176", "0.50015855", "0.5000065", "0.49986818", "0.49980217", "0.49907002", "0.49876332", "0.49861902", "0.4985323", "0.49732304", "0.49726716", "0.49700093", "0.4969258", "0.4969077", "0.49672008", "0.49657246", "0.4958528" ]
0.0
-1
finding column count for each devices
public int getColumnCount(){ float scalefactor = getResources().getDisplayMetrics().density * 100; int width = getWindowManager().getDefaultDisplay().getWidth(); int columns = (int) ((float)width / (float) scalefactor); return columns; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getColumnsCount();", "int getColumnsCount();", "int colCount();", "public abstract int getNumColumns();", "int getColumnCount();", "int getColumnCount();", "private int numCols(){\n return attrTable.getModel().getColumnCount();\n }", "public abstract int numColumns();", "int getColumns();", "int getColumns();", "public int getColumnCount();", "public int getNumCol() {\n\t\treturn dc.size();\n\t}", "public int getNumberOfColumns() {\n\t\tthis.openDataBase();\n\t\tint iColumnCount = 0;\n\t\ttry { \n\t\t\tCursor mcursor = myDataBase.rawQuery(\"Select * from \" + TABLE_POSES, null);\n\t\t iColumnCount = mcursor.getColumnCount();\n\t\t mcursor.close();\n\t\t}\n\t\tcatch (SQLException sqle) {\n\t\t\tLog.d(\"Database Error\", \"Error getting number of columns\");\n\t\t\tLog.d(\"SQL EXception\", sqle.toString());\n\t\t}\n\t\t\n\t\tthis.close();\n return iColumnCount;\n\t}", "public int getNumColumns() { return columns.length; }", "@Override\n public int getColumnsCount() {\n return columns_.size();\n }", "@java.lang.Override\n public int getColumnsCount() {\n return columns_.size();\n }", "private void determineCounts( )\n {\n for( int r = 0; r < rows; r++ )\n {\n for( int c = 0; c < cols; c++ )\n {\n if( theMines[ r ][ c ] == 1 )\n theCounts[ r ] [ c ] = 9;\n else\n count( r, c );\n }\n }\n }", "private int calculateColumns(Container target) {\n if (columns > 0) {\n return columns;\n }\n int compCount = target.getComponentCount();\n if (compCount < 4) {\n return compCount;\n }\n if (compCount == 4) {\n return 2;\n }\n return 1;\n }", "public int getColumnCount() {\n int retCount = 0;\n if ( this.attData != null ) {\n Iterator<String> it = this.attData.keySet().iterator();\n while (it.hasNext()) {\n it.next();\n retCount++;\n }\n }\n return retCount;\n }", "int columnPairsSize();", "public abstract int getNumberOfColumnsInCurrentRow();", "public static int calculateNoOfColumns(Context context) {\n //get Display Metrics\n DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics();\n float dpWidth = displayMetrics.widthPixels / displayMetrics.density;\n //min width for column\n int scalingFactor = 180;\n int noOfColumns = (int) (dpWidth / scalingFactor);\n //set at least 2 columns\n if(noOfColumns < 2)\n noOfColumns = 2;\n return noOfColumns;\n }", "int totalColumns(){\n return column;\n }", "private int numberOfColumns(String[] arr) {\n int count = 0;\n for (int i = 0; i < arr.length; i++) {\n if (arr[i].equals(\":\")) {\n break;\n }\n count++;\n }\n return count;\n }", "public int columnCount() {\n\t\treturn n_;\n\t}", "private int numberOfColumns() {\n DisplayMetrics displayMetrics = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n int width = displayMetrics.widthPixels;\n int nColumns = width / imageWidth;\n if (nColumns < 2) return 2; //to keep the grid aspect\n return nColumns;\n }", "int getCellsCount();", "public int getNumberOfColumns(){\n\t\treturn number_columns;\n\t}", "public int getNoOfCols(ArrayList<String[]> records){\n\t\tString[] firstLine=records.get(0);\n\t\treturn Integer.parseInt(firstLine[1]);\n\t}", "int getDataScansCount();", "public int columns( )\n {\n int col = 0;\n\n if( table != null )\n {\n col = table[0].length;\n } //end\n return (col);\n }", "int getMetricDescriptorsCount();", "public int sizeOfColArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(COL$2);\n }\n }", "@Override\r\n\tpublic int getColumnsCount() {\r\n\t\tint result = 0;\r\n\t\tITableRow headerRow = this.getHeaderRow();\r\n\t\tif (null != headerRow) {\r\n\t\t\t// It is usually consistent that both the columns of table header and table cell\r\n\t\t\tresult = headerRow.getColumnsCount();\r\n\t\t}\r\n\t\telse if (this.hasBodyRow()) {\r\n\t\t\t// Gets the first line, with the number of columns of the first row as number of columns of the table\r\n\t\t\tITableRow row = this.getBodyRow(0);\r\n\t\t\tresult = row.getColumnsCount();\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public int getCountCol() {\n\treturn countCol;\n}", "public int getColumnsCount() {\n if (columnsBuilder_ == null) {\n return columns_.size();\n } else {\n return columnsBuilder_.getCount();\n }\n }", "public int getColumnsCount() {\n if (columnsBuilder_ == null) {\n return columns_.size();\n } else {\n return columnsBuilder_.getCount();\n }\n }", "public int getColumns() {\n\t\treturn NUM_OF_COLUMNS;\n\t}", "private int numRows(){\n return attrTable.getModel().getRowCount();\n }", "public int getNumColumns() { return target.getNumColumns();}", "private int numberOfColumns() {\n DisplayMetrics displayMetrics = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n // You can change this divider to adjust the size of the recipe cards\n int widthDivider = 300;\n int width = displayMetrics.widthPixels;\n int numOfColumns = width / widthDivider;\n if (numOfColumns < 2) {\n return 2;\n }\n return numOfColumns;\n }", "@Override\n public int getDeviceConfigurationCount() {\n int product = 1;\n\n for (CloudConfigurationDimension dimension : getDimensions()) {\n product *= dimension.getEnabledTypes().size();\n }\n\n return product;\n }", "int getRowsCount();", "public int getRunningDevicesCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "private int calcNumberOfColumns() {\n\t\tint result = 0;\n\t\tif (fields != null) {\n\t\t\tIterator<FieldEditor> e = fields.iterator();\n\t\t\twhile (e.hasNext()) {\n\t\t\t\tFieldEditor pe = e.next();\n\t\t\t\tresult = Math.max(result, pe.getNumberOfControls());\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public void count() throws UserCancelledException {\n\t\tint numAttributes = matrixInfo.getNumAttributes(); // total # of columns\n\t\t// int tVals = matrixInfo.getNumValues(target); // total # of rows\n\t\tint tVals = target.getMapping().size();\n\t\tint[][] counts; // the counts for this column\n\t\tAttribute a; // the current attribute (columns) being processed\n\t\tint vals; // the attribute's number of values\n\t\t// this thread counts every delta'th attribute beginning at i\n\t\tfor (int i = index; i < numAttributes; i += delta) {\n\n\t\t\ta = matrixInfo.getAttribute(i);\n\t\t\tvals = a.getMapping().getValues().size();\n\n\t\t\tif (a == target) {\n\t\t\t\t// special routine to count target distrn\n\t\t\t\tint[] tCounts = new int[vals];\n\t\t\t\tfor (Example e : exampleSet) {\n\t\t\t\t\ttCounts[(int) e.getValue(a)]++;\n\t\t\t\t}\n\t\t\t\tmatrix.addTargetCounts(tCounts);\n\n\t\t\t} else {\n\t\t\t\t// routine to count all regular attributes\n\t\t\t\tcounts = new int[tVals][vals];\n\t\t\t\t// count through examples\n\t\t\t\tfor (Example e : exampleSet) {\n\t\t\t\t\tcounts[(int) e.getValue(target)][(int) e.getValue(a)]++;\n\t\t\t\t}\n\t\t\t\tmatrix.addAttributeCounts(a, counts);\n\t\t\t}\n\t\t\tProgressManager.makeProgress();\n\t\t}\n\t}", "private static int getNumTotalEdges(){\r\n\t\t//return getMutMap().keySet().size();\r\n\t\treturn numCols+1;\r\n\t}", "public static int calculateNoOfColumns(Context context, float columnWidthDp) { // For example columnWidthdp=180\n DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics();\n float screenWidthDp = displayMetrics.widthPixels;\n int noOfColumns = (int) (screenWidthDp / columnWidthDp + 0.5); // +0.5 for correct rounding to int.\n return noOfColumns;\n }", "public int getNumFields() {\n return columns.size();\n }", "public int sizeOfColgroupArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(COLGROUP$4);\n }\n }", "public int getCountOfFreeDevices() {\n int count = 0;\n for (TestDevice td : mDevices) {\n if (td.getStatus() == TestDevice.STATUS_IDLE) {\n count++;\n }\n }\n return count;\n }", "int getTablesCount();", "public int sizeOfDeviceArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DEVICE$12);\n }\n }", "public int sizeOfColumnArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(COLUMN$0);\r\n }\r\n }", "public int count(){\n\tboolean val = false;\n\tint cont = 0;\n\tfor(int i =0;i<arch.length && !val;i++){\n\t\tif(arch[i]!=null){\n\t\t\tcont++;\n\t\t}\n\t\telse{\n\t\t\tval=true;\n\t\t}\n\t}\n\treturn cont;\n}", "public int obtenerNumeroColumnas() {\n\t\treturn matriz.get(0).size();\n\t}", "public static int getColumns() {\n\t\treturn columns;\n\t}", "public int getNumColumns() {\n\t\treturn numColumns; \n\t}", "@Override\n\t\tpublic int getColumnCount() {\n\t\t\treturn app.graph.verticesCount + 1;\n\t\t}", "private int columnCalculator() {\n\n DisplayMetrics metrics = new DisplayMetrics();\n Objects.requireNonNull(getActivity())\n .getWindowManager()\n .getDefaultDisplay()\n .getMetrics(metrics);\n\n // Width of smallest tablet\n int divider = 600;\n int width = metrics.widthPixels;\n int columns = width / divider;\n if (columns < 2) return 2;\n\n return columns;\n }", "public int numCols() {\n\t /*return the number of columns in the field*/\n return col; \n }", "private static int getNumColumns(int viewWidth, float minColumnWidth) {\n return Math.max((int) (viewWidth / minColumnWidth), 1);\n }", "public int getCols();", "public int numberOfColumns()\n {\n // TODO: get the number of columns\n return matrix[0].length;\n }", "public int numberOfColumns() {\n\t\treturn colCount;\n\t}", "public int getNumColumns() {\n\t\treturn numColumns;\n\t}", "@Test\n public void testGetColumnCount() {\n System.out.println(\"getColumnCount\");\n int expResult = 2;\n int result = testLibraryLibraryTableModel.getColumnCount();\n assertEquals(expResult, result);\n }", "@Override\n\tpublic int getNumColumns() {\n\t\treturn 0;\n\t}", "int getMetricsCount();", "int getProbeFieldsCount();", "public int getNumColumns() {\n return mNumColumns;\n }", "int getPivotDimensionHeadersCount();", "int countByExample(DeviceExample example);", "int getMetricValuesCount();", "int getSnInfoCount();", "int getSnInfoCount();", "int getSnInfoCount();", "public abstract int getNbMinColumns( );", "public static void countRowCol(){\n\t String line=\"\";\n\t row=0;\n\t col=0;\n try{\n Scanner reader = new Scanner(file);\n while(reader.hasNextLine()){\n row++;\n line=reader.nextLine();\n }\n reader.close();\n }catch (FileNotFoundException e) {\n \t e.printStackTrace();\n }\n String[] seperatedRow = line.split(\"\\t\");\n col=seperatedRow.length;\n\t}", "public abstract int getNumRows();", "public long getNumDefinedData();", "public int getCount() {\n return cp.getmImageIds(gridType).length;\n\n }", "public int getCount(){\r\n\t\tif(_serverinfo != null){\r\n\t\t\treturn _serverinfo.length / 6;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "private int calculateRowColumns(Element sourceElement, ArrayList<Element> columns) {\r\n \t\tint count = 0;\r\n \t\tint currentLength = 0;\r\n \t\tfor (Element column : columns) {\r\n \t\t\tif (ComponentUtil.isRendered(column)) {\r\n \t\t\t\tString nodeName = column.getNodeName();\r\n \t\t\t\tif (nodeName.endsWith(RichFaces.TAG_COLUMN_GROUP)) {\r\n \t\t\t\t\t// Store max calculated value of previous rows.\r\n \t\t\t\t\tcount = Math.max(currentLength,count);\r\n \t\t\t\t\t// Calculate number of columns in row.\r\n \t\t\t\t\tcurrentLength = calculateRowColumns(sourceElement, getColumns(column));\r\n \t\t\t\t\t// Store max calculated value\r\n \t\t\t\t\tcount = Math.max(currentLength,count);\r\n \t\t\t\t\tcurrentLength = 0;\r\n \t\t\t\t} else if (nodeName.equals(sourceElement.getPrefix() + Constants.COLON + RichFaces.TAG_COLUMN) ||\r\n \t\t\t\t\t\tnodeName.equals(sourceElement.getPrefix() + Constants.COLON + RichFaces.TAG_COLUMNS)) {\r\n \t\t\t\t\t// For new row, save length of previous.\r\n \t\t\t\t\tif (Boolean.getBoolean(column.getAttribute(RichFaces.ATTR_BREAK_BEFORE))) {\r\n \t\t\t\t\t\tcount = Math.max(currentLength,count);\r\n \t\t\t\t\t\tcurrentLength = 0;\r\n \t\t\t\t\t}\r\n \t\t\t\t\tString colspanStr = column.getAttribute(\"colspan\"); //$NON-NLS-1$\r\n \t\t\t\t\tInteger colspan = null;\r\n \t\t\t\t\ttry {\r\n \t\t\t\t\t\tcurrentLength += Integer.parseInt(colspanStr);\r\n \t\t\t\t\t} catch (NumberFormatException e) {\r\n \t\t\t\t\t\tcurrentLength++;\r\n \t\t\t\t\t}\r\n \t\t\t\t} else if (nodeName.endsWith(RichFaces.TAG_COLUMN)) {\r\n \t\t\t\t\t// UIColumn always have colspan == 1.\r\n \t\t\t\t\tcurrentLength++;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn Math.max(currentLength,count);\r\n \t}", "public int getColumns()\n {\n return columns;\n }", "int getMergedCellCount();", "public abstract int getNumOfRows();", "int getFieldCount();", "@Override\n public int getNumCols(){ return WIDTH; }", "private int size() {\n\treturn matrix.length; //# of rows\n }", "public int columns() {\n\treturn columns;\n}", "int getDimensionsCount();", "public void worksWithAndroid() {\n\n\t\tSystem.out.println( \"\\nTASK [3]> The number of students that will work with an Android app:\\n\");\n\t\t\n\t\tString [] namesColOne = columns.get(1);\n\t\tString [] namesColTwo = columns.get(2);\n\t\tString [] osType = columns.get(5);\t\t\n\t\t\n\t\tint count = 0;\n\t\t\n\t\tfor(int i = 0; i < osType.length; ++i) {\n\t\t\t\n\t\t\tif( Objects.equals(osType[i], \"Android App\") ) {\t\t\t\t\t\n\t\t\t\tSystem.out.println( \"[Names #1]: \" + namesColOne[i] + \" [Names #2]: \" + namesColTwo[i]);\t\n\t\t\t\t\n\t\t\t\t++count;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tint total = count * 2;\n\t\t\n\t\tSystem.out.println( \"\\nResult (both columns): \" + total);\n\t\tSystem.out.println( \"----------------------------------------------------\"); \n\t\t\n\t\t\n\t}", "public int calcColumnsHash() {\n int retHash = -1;\n if ( this.attData!=null ) {\n StringBuffer columnsList = new StringBuffer(100);\n Iterator<String> it = this.attData.keySet().iterator();\n while (it.hasNext()) {\n columnsList.append(it.next());\n }\n retHash = columnsList.toString().hashCode();\n }\n return retHash;\n }", "public int fillingOfMatrix(){\n int count=0;\n for (int i=0;i<m;i++)\n count+=matrix[i].size();\n return count;\n }" ]
[ "0.7440182", "0.7440182", "0.6923113", "0.68187326", "0.66128314", "0.66128314", "0.6612529", "0.65562403", "0.63298607", "0.63298607", "0.6297163", "0.62731344", "0.6266753", "0.6235928", "0.61914885", "0.61721855", "0.6152898", "0.613962", "0.6132024", "0.61249024", "0.612301", "0.61039346", "0.6097942", "0.60885745", "0.6083686", "0.6081987", "0.60594094", "0.6018327", "0.6015276", "0.60129595", "0.59766555", "0.5962558", "0.59428763", "0.5931447", "0.59273773", "0.5892914", "0.5892914", "0.5888939", "0.5875807", "0.58726543", "0.5857311", "0.58291405", "0.58216685", "0.5819455", "0.58165884", "0.58165884", "0.58165884", "0.58165884", "0.58165884", "0.58111995", "0.57996744", "0.57616115", "0.5759868", "0.57584083", "0.5748711", "0.5743437", "0.57387614", "0.57381845", "0.57335263", "0.57286316", "0.57281256", "0.57102996", "0.57091796", "0.5706964", "0.5701885", "0.56999844", "0.56908745", "0.5673249", "0.5669639", "0.56692636", "0.56621784", "0.56611717", "0.5660188", "0.56387424", "0.5637992", "0.56374353", "0.56186277", "0.56069255", "0.56056756", "0.55803937", "0.55803937", "0.55803937", "0.5560281", "0.55601233", "0.5559507", "0.55526114", "0.55460536", "0.55425006", "0.55389047", "0.55385345", "0.55340594", "0.5532317", "0.5528046", "0.5523751", "0.55145687", "0.5511973", "0.55092454", "0.5501983", "0.5485377", "0.5484036" ]
0.6516082
8
Returns a BOARD tile that a mouse cursor collides with OR returns null if the click missed the BOARD
public BoardTile getCollidingTile(int column, int row, CollisionResult collisionResult) { Node n = collisionResult.getGeometry().getParent(); while (n.getParent() != null) { if (n.equals(tiles[column][row].tileNode)) return tiles[column][row]; n = n.getParent(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final Tile selectComputerMove() {\r\n Tile tile = null;\r\n int count = 0;\r\n String tileName = null;\r\n boolean continueLoop = true;\r\n \r\n // First try to find a winning move\r\n for (Rail rail : rails) {\r\n for (Tile t : rail.getTiles()) {\r\n if (t.getText().equals(\"0\")) count++;\r\n }\r\n if (count == 2) {\r\n for (Tile t : rail.getTiles()) {\r\n if (t.getText().equals(\"\")) {\r\n tileName = t.getName();\r\n return t;\r\n }\r\n }\r\n }\r\n count = 0; \r\n }\r\n \r\n // If none found, try to block \"X\"\r\n for (Rail rail : rails) {\r\n for (Tile t : rail.getTiles()) {\r\n if (t.getText().equals(\"X\")) count++;\r\n }\r\n if (count == 2) {\r\n for (Tile t : rail.getTiles()) {\r\n if (t.getText().equals(\"\")) {\r\n tileName = t.getName();\r\n return t;\r\n }\r\n }\r\n }\r\n count = 0;\r\n }\r\n \r\n // If no blocking move, try to play the center which gives \"O\"\r\n // a statistical advantage\r\n if (!tiles[R2C2].isSelected()) {\r\n return tiles[R2C2];\r\n }\r\n \r\n \r\n // If center move is not available, try to find an open corner tile, \r\n // which might set up an winning combination\r\n if (!tiles[R1C1].isSelected()) {\r\n return tiles[R1C1];\r\n } else if (!tiles[R3C3].isSelected()) {\r\n return tiles[R3C3];\r\n } else if (!tiles[R3C1].isSelected()) {\r\n return tiles[R3C1];\r\n } else if (!tiles[R1C3].isSelected()) {\r\n return tiles[R1C3];\r\n }\r\n \r\n // If none found just pick an empty tile at random\r\n if(tileName == null) {\r\n int row = rand.nextInt(3) + 1;\r\n int col = rand.nextInt(3) + 1;\r\n tileName = \"r\" + row + \"c\" + col;\r\n for (Tile btn: tiles) {\r\n if (btn.getName().equals(tileName)) {\r\n tile = btn;\r\n break;\r\n }\r\n }\r\n }\r\n \r\n return tile;\r\n }", "private GObject getCollidingObject() {\n \tdouble x1 = ball.getX();\n \tdouble y1 = ball.getY();\n \tdouble x2 = x1 + BALL_RADIUS * 2;\n \tdouble y2 = y1 + BALL_RADIUS * 2;\n \n \tif (getElementAt(x1, y1) != null) return getElementAt(x1, y1);\n \tif (getElementAt(x1, y2) != null) return getElementAt(x1, y2);\n \tif (getElementAt(x2, y1) != null) return getElementAt(x2, y1);\n \tif (getElementAt(x2, y2) != null) return getElementAt(x2, y2);\n \n \treturn null;\n }", "public MapTile getTile(int x_pos, int y_pos) {\n if (x_pos < 0 || y_pos < 0 || x_pos >= map_grid_[0].length || y_pos >= map_grid_.length) {\n return null;\n }\n return map_grid_[y_pos][x_pos];\n }", "public FloorTile getTileFromTheBoard(int row, int col) {\r\n return board[row][col];\r\n }", "public OthelloTile getTile(Point p) {\n if(p == null) {\n return null;\n }\n int x = (p.x-35)/grid[0][0].getPreferredSize().width;\n int y = (p.y-35)/grid[0][0].getPreferredSize().height;\n if(x<0 || x>=grid.length || y<0 || y>=grid[0].length) {\n return null;\n }\n return grid[y][x];\n }", "public Tile getTile(int x, int y) {\r\n assert (tiles != null);\r\n \r\n if (x < 0 || y < 0 || x >= width || y >= height) {\r\n return Tile.floorTile;\r\n }\r\n \r\n Tile t = Tile.tiles[tiles[x][y]];\r\n if (t == null) {\r\n return Tile.floorTile;\r\n }\r\n return t;\r\n }", "@Override\n public SquareTile getTile(int x, int y) {\n // Check that the location is inside the grid\n if (x < 0 || x >= width || y < 0 || y >= height)\n return null;\n\n return tiles[x * width + y];\n }", "public abstract Tile getTileAt(int x, int y);", "private Tile getTile(int x, int y) {\n\t\tif (x < 0 || x > width || y < 0 || y > height) return Tile.VOID;\n\t\treturn Tile.tiles[tiles[x + y * width]];\n\t}", "public Tile getTile()\r\n\t{\r\n\t\tif(this.hasTiles())\r\n\t\t\treturn _tiles.remove(0);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "public Tile getTile(int x, int y) {\n\t\tif (x < 0 || x >= width || y < 0 || y >= height) {\n\t\t\treturn Tile.voidTile;\n\t\t}\n\t\treturn tiles[x + y * width];\n\t}", "public Tile getTile(Coordinaat crd){\n\n for(int Y=0; Y<size; Y++){\n for(int X=0; X<size; X++){\n if(crd.compareTo(tiles[X][Y].getCoordinaat()) == 0){\n return tiles[X][Y];\n }\n }\n }\n \n return null;\n }", "private UltraTeleportWaypoint getMouseOverWaypoint(int mouseX, int mouseY) {\r\n\r\n\t // calc pos\r\n\t int posX = (width - SIZE_X) / 2;\r\n\t int posY = (height - SIZE_Y) / 2;\r\n\r\n\t // check for the pos being in the header area\r\n\t if (mouseY <= posY + 16) {\r\n\t return null;\r\n\t }\r\n\r\n\t // add an offset to bring us to the y pos where the first cell is\r\n\t posX += 9;\r\n\t posY += 16;\r\n\r\n\t // determine which row we are hovering over\r\n\t int index = (mouseY - posY) / CELL_SIZE_Y;\r\n\t int start = this.getStartCell();\r\n\t index += start;\r\n\t \r\n\t boolean inRangeX = HubbyMath.isWithinRange(mouseX, posX, posX + CELL_SIZE_X);\r\n\t if (index >= 0 && index < UltraTeleportWaypoint.getWaypoints().size() && inRangeX) {\r\n\t return UltraTeleportWaypoint.getWaypoints().get(index);\r\n\t }\r\n\t return null;\r\n\t}", "protected Optional<Tile> getTile(Coordinate c) {\n\t\tfor (Tile t : model.getPuzzle()) {\n\t\t\tif (t.contains(c)) {\n\t\t\t\treturn Optional.of(t);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn Optional.empty(); \n\t}", "public final Optional<Tile> getTile(final GridPoint2D tilePoint) {\n\t if ((tilePoint.getRow() >= 0) && \n\t (tilePoint.getRow() < mLayout.size()) &&\n\t (tilePoint.getColumn() >= 0) && \n\t (tilePoint.getColumn() < mLayout.get(tilePoint.getRow()).size())) {\n\t return Optional.<Tile>of(mLayout.get(tilePoint.getRow()).get(tilePoint.getColumn()));\n\t } \n\t // The indicated point was outside of the battlefield, so return a null\n\t else {\n\t return Optional.<Tile>absent();\n\t }\n\t}", "public Tile getTileAt(Position p);", "Tile getTile() {\n if (tiles.size() == 0) {\n return null;\n } else {\n int randomIndex = ThreadLocalRandom.current().nextInt(0, tiles.size());\n Tile result = tiles.get(randomIndex);\n tiles.remove(randomIndex);\n return result;\n }\n }", "public Image getVisibleTile(int x, int y) throws SlickException {\r\n Image visibleTileImage = null;\r\n for (int l = this.getLayerCount() - 1; l > -1; l--) {\r\n if (visibleTileImage == null) {\r\n visibleTileImage = this.getTileImage(x, y, l);\r\n continue;\r\n }\r\n }\r\n if (visibleTileImage == null) {\r\n throw new SlickException(\"Tile doesn't have a tileset!\");\r\n }\r\n return visibleTileImage;\r\n }", "public Tile getTile(int x, int y) {\n\t\tif (x < 0 || x >= (this.width / Tile.WIDTH) || y < 0 || y >= (this.height / Tile.HEIGHT)) {\n//\t\t\tSystem.out.println(x + \" \" + y + \" \" + \"comes heere\");\n\t\t\treturn VoidTiled.getInstance();\n\t\t}\n\t\treturn tiles[x + y * (this.width / Tile.WIDTH)];\n\t}", "private Tile getTileAt(int x, int y)\n {\n int tileAt = y * TILES_PER_ROW + x;\n \n if (tileAt >= tileset.getTileCount())\n {\n return null;\n }\n else \n {\n return tileset.getTile(tileAt);\n }\n }", "public void mousePressed()\n{\n if (m.getTileManager().getActiveTile()!=null)\n {\n if (m.getTileManager().getActiveTile().isHover())\n {\n if(!m.getTileManager().getBrushMode())\n m.getTileManager().getActiveTile().drawCell();\n else\n m.getTileManager().getActiveTile().drawCellWithBrush(m.getTileManager().getIsBlack());\n }\n }\n if (m.getTileManager().getHoverIndex()!=-1)\n {\n m.getTileManager().setActiveTile(m.getTileManager().getHoverIndex());\n }\n}", "public Card getClickedCardFromHand(int X, int Y){\n // Cek kartu apa yang di klik dari tangan player saat itu\n // Return null kalo gak ada kartu yang di klik\n // Caranya loop untuk setiap kartu di hand kalo Sprite.OverlapPoint\n for (Card kartu : this.currentPlayer.getPlayerHands()){\n if (kartu.getSprite().isPointOverlap(X, Y)){\n return kartu;\n }\n }\n return null;\n }", "public FloorTile getTileAt(int row, int col) {\n return board[row][col];\n }", "TileItem getCurrentTile();", "public int getTile(int x, int y)\n {\n try {\n return board[x][y];\n } catch (ArrayIndexOutOfBoundsException e) {\n return EMPTY_FLAG;\n }\n }", "@Override\n public ITile getClosestTile(int x, int y) {\n return getClosestTile(new Point(x, y), getTileSize());\n }", "@Override\n public Tile get(int left, int top) {\n if (left < 1) return null;\n if (top < 1) return null;\n int index = getPosition(left, top);\n if (index >= tiles.size()) {\n return null;\n }\n\n return this.tiles.get(index);\n }", "public Tile getTile(int x, int y) {\n\t\tif(!isValidCoordinates(x,y)){\n\t\t\t//remove later -F\n\t\t\tSystem.out.println(\"Invalid\");\n\t\t\treturn tileGrid[0][0]; //will add handling in check later -F\n\t\t}\n\t\telse{\n\t\t\treturn tileGrid[x][y];\n\t\t}\n\t}", "public Tile getTile(int x, int y){\n\t\tif(x < 0 || y < 0 || x >= width || y >= height){\r\n\t\t\treturn Tile.grassTile;\r\n\t\t}\r\n\t\t\r\n\t\t//tiles[x][y] give us the id and the tiles[id] is the texture\r\n\t\tTile t = Tile.tiles[tiles[x][y]]; \r\n\t\tif(t == null){\r\n\t\t\t//If you try to access undefined tile index, return dirt tile as default\r\n\t\t\treturn Tile.dirtTile; \r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn t;\r\n\t\t}\r\n\t}", "public DungeonObject getDungeonTile(int x, int y) {\n\t\treturn dungeonRoom[x][y];\r\n\t}", "public Board twin() {\n if (tiles[0][0] != 0 && tiles[0][1] != 0)\n return new Board(tiles, new Position(0, 0), new Position(0, 1));\n else\n return new Board(tiles, new Position(1, 0), new Position(1, 1));\n }", "public MapEntity getTileAt(int x, int y) {\n\t\ttry {\n\t\t\treturn tiles.get(y)[x];\n\t\t}\n\t\tcatch(IndexOutOfBoundsException | NullPointerException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "private Cell getSnowballTarget() {\n Cell[][] blocks = gameState.map;\n int mostWormInRange = 0;\n Cell chosenCell = null;\n\n for (int i = currentWorm.position.x - 5; i <= currentWorm.position.x + 5; i++) {\n for (int j = currentWorm.position.y - 5; j <= currentWorm.position.y + 5; j++) {\n if (isValidCoordinate(i, j)\n && euclideanDistance(i, j, currentWorm.position.x, currentWorm.position.y) <= 5) {\n List<Cell> affectedCells = getSurroundingCells(i, j);\n affectedCells.add(blocks[j][i]);\n int wormInRange = 0;\n for (Cell cell : affectedCells) {\n for (Worm enemyWorm : opponent.worms) {\n if (enemyWorm.position.x == cell.x && enemyWorm.position.y == cell.y\n && enemyWorm.roundsUntilUnfrozen == 0 && enemyWorm.health > 0)\n wormInRange++;\n }\n for (Worm myWorm : player.worms) {\n if (myWorm.position.x == cell.x && myWorm.position.y == cell.y && myWorm.health > 0)\n wormInRange = -5;\n }\n }\n if (wormInRange > mostWormInRange) {\n mostWormInRange = wormInRange;\n chosenCell = blocks[j][i];\n }\n }\n }\n }\n\n return chosenCell;\n }", "public Tile getTile(int x, int y)\n\t{\n\t\t\n\t\tif(x < 0 || y < 0 || x >= width || y >= height)\n\t\t{\n\t\t\tSystem.out.println(\"wrong\");\n\n\t\t\treturn Tile.dirt;\n\t\t}\n\t\t\n\t\tTile t = Tile.tiles[worldTiles[x][y]];\n\t\t// if the tile is null returns dirt on default\n\t\tif(t == null)\n\t\t{\n\t\t\tSystem.out.println(\"null\");\n\n\t\t\treturn Tile.dirt;\n\t\t}\n\t\treturn t;\n\t}", "public GameTile getRandomFoodTile() {\n Random random = ThreadLocalRandom.current();\n GameTile found = GameTile.getByCoords(random.nextInt(TILE_COLS), random.nextInt(TILE_ROWS));\n if (found.getColor() == Color.BLACK) {\n return found;\n }\n\n return getRandomFoodTile();\n }", "@Override\n public void checkMousePressOnSprites(MiniGame game, int x, int y)\n {\n // FIGURE OUT THE CELL IN THE GRID\n int col = calculateGridCellColumn(x);\n int row = calculateGridCellRow(y);\n \n // DISABLE THE STATS DIALOG IF IT IS OPEN\n if (game.getGUIDialogs().get(STATS_DIALOG_TYPE).getState().equals(VISIBLE_STATE))\n {\n game.getGUIDialogs().get(STATS_DIALOG_TYPE).setState(INVISIBLE_STATE);\n return;\n }\n \n // CHECK THE TOP OF THE STACK AT col, row\n ArrayList<MahjongSolitaireTile> tileStack = tileGrid[col][row];\n if (tileStack.size() > 0)\n {\n // GET AND TRY TO SELECT THE TOP TILE IN THAT CELL, IF THERE IS ONE\n MahjongSolitaireTile testTile = tileStack.get(tileStack.size()-1);\n if (testTile.containsPoint(x, y))\n selectTile(testTile);\n }\n }", "public GameObject getObstacle() {\n \tif (selection != null) {\n \tjava.lang.Object data = selection.getBody().getUserData();\n \ttry {\n \t\treturn (GameObject)data;\n \t} catch (Exception e) {\n \t}\n }\n return null;\n }", "public TicTacToeBoard() {\n setBackground(Color.GREEN);//set background color is orange\n addMouseListener(this);// add listener\n addMouseMotionListener(\n new MouseMotionListener() { // mouseMotionListener into mouseListener\n public void mouseDragged(MouseEvent e) {\n }\n \n public void mouseMoved(MouseEvent e) {\n int x1 = (e.getX() - MARGIN + GRID_SPAN / 2) / GRID_SPAN; \n // set the mouse click position as the position on ticTacToeboard \n int y1 = (e.getY() - MARGIN + GRID_SPAN / 2) / GRID_SPAN;\n // game is over, can't go\n // out of ticTacToeboard area, can't go\n // have ticTacToe on the position, can't go\n if (x1 < 0 || x1 > ROWS || y1 < 0 || y1 > COLS || gameOver\n || findTicTacToe(x1, y1))\n setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); // set original model\n else\n setCursor(new Cursor(Cursor.HAND_CURSOR)); // set hand model\n }\n });\n }", "public void mouseMoved(MouseEvent e){\n int x1=(e.getX()-MARGIN+GRID_SPAN/2)/GRID_SPAN;\r\n int y1=(e.getY()-MARGIN+GRID_SPAN/2)/GRID_SPAN;\r\n //Can't set chess when gameover, pos outside of board or position(x1,y1) already occupied. \r\n //if not valid, set cursor to default.\r\n if(x1<0||x1>ROWS||y1<0||y1>COLS||gameOver||findChess(x1,y1))\r\n setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\r\n //if valid, set cursor to hand\r\n else setCursor(new Cursor(Cursor.HAND_CURSOR));\r\n\r\n }", "public void getTile_B8();", "public void drawCell()\n {\n // if mouse is not inside tile area dont draw anything\n if(showHover)\n {\n noStroke();\n \n rect(firstCellPosition[0]+hover[0]*cellSize,firstCellPosition[1]+hover[1]*cellSize,cellSize-1,cellSize-1);\n \n if(brushSize == 1)\n {\n if(!pattern[hover[0]][hover[1]])\n {\n pattern[hover[0]][hover[1]] = true;\n fill(0);\n }\n else\n {\n pattern[hover[0]][hover[1]] = false;\n fill(255);\n }\n rect(firstCellPosition[0]+hover[0]*cellSize,firstCellPosition[1]+hover[1]*cellSize,cellSize-1,cellSize-1);\n }\n if(brushSize == 2)\n {\n for(int i = 0; i < 2; i++)\n {\n for(int j = 0; j < 2; j++)\n {\n if(hover[0]+i < xCells && hover[1]+j < yCells)\n {\n if(!pattern[hover[0]+i][hover[1]+j])\n {\n pattern[hover[0]+i][hover[1]+j] = true;\n fill(0);\n }\n else\n {\n pattern[hover[0]+i][hover[1]+j] = false;\n fill(255);\n }\n rect(firstCellPosition[0]+(hover[0]+i)*cellSize,firstCellPosition[1]+(hover[1]+j)*cellSize,cellSize-1,cellSize-1);\n }\n }\n }\n }\n if(brushSize == 3)\n {\n for(int i = -1; i < 2; i++)\n {\n for(int j = -1; j < 2; j++)\n {\n if(hover[0]+i < xCells && hover[1]+j < yCells &&\n hover[0]+i >= 0 && hover[1]+j >= 0 )\n {\n if(!pattern[hover[0]+i][hover[1]+j])\n {\n pattern[hover[0]+i][hover[1]+j] = true;\n fill(0);\n }\n else\n {\n pattern[hover[0]+i][hover[1]+j] = false;\n fill(255);\n }\n rect(firstCellPosition[0]+(hover[0]+i)*cellSize,firstCellPosition[1]+(hover[1]+j)*cellSize,cellSize-1,cellSize-1);\n }\n }\n }\n }\n }\n }", "public Node getBoardNode() {\r\n return tilesNode;\r\n }", "public static Tile clickOnTile(Tile tiles[][], Point mouse)\n\t{\n\t\tfor(int i = 0;i < tiles.length;i++)\n\t\t{\n\t\t\tfor(int j = 0;j < tiles[0].length;j++)\n\t\t\t{\n\t\t\t\tif(tiles[i][j] != null)\n\t\t\t\t{\n\t\t\t\t\tArrayList<Point> pos = tiles[i][j].getPos();\n\t\t\t\t\tif(mouse.x < pos.get(0).x || mouse.x > pos.get(2).x)\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\telse if(mouse.y < pos.get(4).y || mouse.y > pos.get(1).y)\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\telse if(mouse.x < pos.get(1).x)\t\t//equation of the type 'y = coeff * x + ord'\n\t\t\t\t\t{\n\t\t\t\t\t\tfloat coeff1 = getCoeff(pos.get(0), pos.get(1));\n\t\t\t\t\t\tfloat ord1 = pos.get(0).y - (coeff1 * pos.get(0).x); \n\t\t\t\t\t\t\n\t\t\t\t\t\tint limitY = (int) (coeff1 * mouse.x + ord1);\n\t\t\t\t\t\tif(mouse.y > limitY)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tfloat coeff4 = getCoeff(pos.get(4), pos.get(5));\n\t\t\t\t\t\tfloat ord4 = pos.get(4).y - (coeff4 * pos.get(4).x);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tlimitY = (int) (coeff4 * mouse.x + ord4);\n\t\t\t\t\t\tif(mouse.y < limitY)\n\t\t\t\t\t\t{\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\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfloat coeff2 = getCoeff(pos.get(1), pos.get(2));\n\t\t\t\t\t\tfloat ord2 = pos.get(1).y - (coeff2 * pos.get(1).x);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tint limitY = (int) (coeff2 * mouse.x + ord2);\n\t\t\t\t\t\tif(mouse.y > limitY)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tfloat coeff3 = getCoeff(pos.get(3), pos.get(4));\n\t\t\t\t\t\tfloat ord3 = pos.get(3).y - (coeff3 * pos.get(3).x);\n\t\t\t\t\t\t\n\t\t\t\t\t\tlimitY = (int) (coeff3 * mouse.x + ord3);\n\t\t\t\t\t\tif(mouse.y < limitY)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//selectedTile = tiles[i][j];\n\t\t\t\t\t//return;\n\t\t\t\t\treturn tiles[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic void mousePressed(MouseEvent me) {\n\t\tint x = me.getX();\n\t\tint y = me.getY();\n\t\tx = (int)( (x-mrg_x+spc_x/2) / spc_x) + nWALL;\n\t\ty = (int)( (y-mrg_y+spc_y/2) / spc_y) + nWALL;\n\t\t\n\t\tif (isPlaying && arr[x][y] == NONE) {\n\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\t\n\t\t\tint t = (n+isWhiteWin+1) %2 ;\n\t\t\t\n\t\t\tif ( is33(x, y, (t%2==0)? WHITE:BLACK) ) {\n\t\t\t\t\n\t\t\t\tGraphics g = cvBoard.getGraphics();\n\t\t\t\tg.setColor(Color.red);\n\t\t\t\tg.drawOval((int) (mrg_x + (x-nWALL) * spc_x - spc_x/2) ,\n\t\t\t\t\t\t(int) (mrg_y + (y-nWALL) * spc_y -spc_y/2),\n\t\t\t\t\t\t(int) spc_x-1, (int) spc_y-1);\n\t\t\t\tg.fillOval((int) (mrg_x + (x-nWALL) * spc_x - spc_x/2) ,\n\t\t\t\t\t\t(int) (mrg_y + (y-nWALL) * spc_y -spc_y/2),\n\t\t\t\t\t\t(int) spc_x, (int) spc_y);\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "public int getTile(int x, int y)\n {\n return tilemap[x][y];\n }", "public Wall getWallOn(int x, int y) {\n\t\tfor (Entity e : entities) {\n\t\t\tif ((e.getX() == x) && (e.getY() == y) && e instanceof Wall) {\n\t\t\t\treturn (Wall) e;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public ChessBoardBlock findMovedBlock(int x, int y) {\r\n\t\tfor (int i=0; i<board.size(); i++) {\r\n\t\t\tChessBoardBlock b = board.get(order[i]);\r\n\t\t\tif ((x>=b.getX() && x<b.getX()+b.getWidth()) && (y>=b.getY() && y<b.getY()+b.getHeight())) {\r\n\t\t\t\treturn b;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void mousePressed(java.awt.event.MouseEvent evt) {\r\n int col,row;\r\n if(!gameOver()){\r\n if(currentPlayer.getClass()== Human.class) {\r\n col = (evt.getX() - 8) / tileSize;\r\n row = (evt.getY() - 30) / tileSize;\r\n System.out.println(col + \" \" + row);\r\n if (!selected && checks[row][col] != 0 && (currentPlayer.getColor() == checks[row][col])) {\r\n lastCol = col;\r\n lastRow = row;\r\n getAvailablePlays(row, col);\r\n } else if (selected && nextMove[row][col] == 1) {\r\n makeMove(lastRow, lastCol, row, col);\r\n resetTurn();\r\n swapPlayer();\r\n } else resetTurn();\r\n }\r\n }\r\n }", "private Pixel findFirstHolePixel() {\n\t\tfor (int i = 0; i < mRows; ++i) {\n\t\t\tfor (int j = 0; j < mCols; ++j) {\n\t\t\t\tif (mImage[i][j] == HOLE)\n\t\t\t\t\treturn new Pixel(i, j);\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "Tile getPosition();", "public BoardTile getTile(int column, int row) {\r\n return tiles[column][row];\r\n }", "public Tile getRandomLegalTile(){\n\t\tRandom random = new Random();\n\t\tArrayList<Tile> legalTiles = getAllLegalMoves(Game.getInstance().getCurrentPlayerColor());\n\t\tTile randomTile = legalTiles.get( random.nextInt(legalTiles.size()));\n\t\treturn randomTile;\n\t}", "public Block getBlock(int x, int y){\n\t\tIterator iterator = blocks.iterator();\n\t\twhile(iterator.hasNext()){\n\t\t\tBlock b = (Block) iterator.next();\n\t\t\tif ((b.getX()==x)&&(b.getY()==y)) {\n\t\t\t\treturn b;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "Piece getClickedPiece(int x, int y) {\n\t\t// find the piece that was clicked\n\t\tHashtable<Piece, Point> pieces = bullpenView.getDrawnPieces();\n\t\tSet<Piece> keySet = pieces.keySet();\n\t\tactivePiece = null;\n\n\t\tint size = BullpenView.SQUARE_SIZE;\n\t\t// check anchor square and relative squares for each piece in the bullpen\n\t\tfor (Piece piece : keySet) {\n\t\t\tint aCol = pieces.get(piece).x;\n\t\t\tint aRow = pieces.get(piece).y;\n\n\t\t\t// Piece was clicked if the x coordinate is within the SQUARE_SIZE constant of each point's\n\t\t\t// x coordinate and the SQUARE_SIZE constant of each point's y coordinate\n\t\t\tfor (Square s : piece.getAllSquares()) {\n\t\t\t\tint sCol = s.getCol();\n\t\t\t\tint sRow = s.getRow();\n\n\t\t\t\tif ((aCol + (sCol * size) <= x) && \n\t\t\t\t\t\t(aCol + (sCol * size) + size >= x) && \n\t\t\t\t\t\t(aRow + (sRow * size) <= y) && \n\t\t\t\t\t\t(aRow + (sRow * size) + size >= y)) {\n\t\t\t\t\tactivePiece = piece;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If we have found a piece, exit the for loop\n\t\t\tif (activePiece != null) {\n\t\t\t\treturn activePiece;\n\t\t\t}\n\t\t}\n\n\t\treturn activePiece;\n\t}", "public int[] mouseToCell()\n {\n int x = mouseX;\n int y = mouseY;\n if(x > firstCellPosition[0] && x < firstCellPosition[0]+xCells*cellSize &&\n y > firstCellPosition[1] && y < firstCellPosition[1]+yCells*cellSize)\n {\n showHover = true;\n x = x-firstCellPosition[0];\n y = y-firstCellPosition[1];\n int[] cell = new int[2];\n cell[0] = x/cellSize;\n cell[1] = y/cellSize;\n return cell;\n }\n showHover = false;\n return null;\n }", "public Tile getTile() { return tile; }", "public TileState choose(int row, int column) {\n if (playerOneTurn){\n if (board[row][column] == TileState.BLANK) {\n playerOneTurn = false;\n movesPlayed++;\n board[row][column] = TileState.CROSS;\n return TileState.CROSS;\n } else {\n return TileState.INVALID;\n }\n } else {\n if (board[row][column] == TileState.BLANK) {\n playerOneTurn = true;\n movesPlayed++;\n board[row][column] = TileState.CIRCLE;\n return TileState.CIRCLE;\n } else {//(board[row][column] != TileState.BLANK) {\n return TileState.INVALID;\n }\n }\n }", "private Cell getBananaTarget() {\n Cell[][] blocks = gameState.map;\n int mostWormInRange = 0;\n Cell chosenCell = null;\n boolean wormAtCenter;\n\n for (int i = currentWorm.position.x - currentWorm.bananaBomb.range; i <= currentWorm.position.x + currentWorm.bananaBomb.range; i++){\n for (int j = currentWorm.position.y - currentWorm.bananaBomb.range; j <= currentWorm.position.y + currentWorm.bananaBomb.range; j++){\n wormAtCenter = false;\n if (isValidCoordinate(i, j)\n && euclideanDistance(i, j, currentWorm.position.x, currentWorm.position.y) <= 5) {\n List<Cell> affectedCells = getBananaAffectedCell(i, j);\n\n int wormInRange = 0;\n for (Cell cell : affectedCells) {\n for (Worm enemyWorm : opponent.worms) {\n if (enemyWorm.position.x == cell.x && enemyWorm.position.y == cell.y\n && enemyWorm.health > 0)\n wormInRange++;\n if (enemyWorm.position.x == i && enemyWorm.position.y == j)\n wormAtCenter = true;\n }\n for (Worm myWorm : player.worms) {\n if (myWorm.position.x == cell.x && myWorm.position.y == cell.y && myWorm.health > 0)\n wormInRange = -5;\n }\n }\n if (wormInRange > mostWormInRange) {\n mostWormInRange = wormInRange;\n chosenCell = blocks[j][i];\n } else if (wormInRange == mostWormInRange && wormAtCenter) {\n chosenCell = blocks[j][i];\n }\n }\n }\n }\n\n return chosenCell;\n }", "public void drawCellHover()\n {\n int[] cell = mouseToCell();\n \n // if mouse is not inside tile area dont highlight anything\n if(showHover)\n {\n setHover(cell[0],cell[1]);\n fill(0,255,0,100);\n noStroke();\n \n if(brushSize == 1)\n {\n rect(firstCellPosition[0]+cell[0]*cellSize,firstCellPosition[1]+cell[1]*cellSize,cellSize-1,cellSize-1);\n }\n \n if(brushSize == 2)\n {\n for(int i = 0; i < 2; i++)\n {\n for(int j = 0; j < 2; j++)\n {\n if(cell[0]+i < xCells && cell[1]+j < yCells)\n {\n rect(firstCellPosition[0]+(cell[0]+i)*cellSize,firstCellPosition[1]+(cell[1]+j)*cellSize,cellSize-1,cellSize-1);\n }\n }\n }\n }\n \n if(brushSize == 3)\n {\n for(int i = -1; i < 2; i++)\n {\n for(int j = -1; j < 2; j++)\n {\n if(cell[0]+i < xCells && cell[1]+j < yCells &&\n cell[0]+i >= 0 && cell[1]+j >= 0 )\n {\n rect(firstCellPosition[0]+(cell[0]+i)*cellSize,firstCellPosition[1]+(cell[1]+j)*cellSize,cellSize-1,cellSize-1);\n }\n }\n }\n }\n }\n }", "boolean checkWin(Tile initialTile);", "private VolaTile getCaveTile() {\n/* */ try {\n/* 2147 */ Zone z = Zones.getZone(this.tilex, this.tiley, false);\n/* 2148 */ return z.getOrCreateTile(this.tilex, this.tiley);\n/* */ }\n/* 2150 */ catch (NoSuchZoneException noSuchZoneException) {\n/* */ \n/* */ \n/* 2153 */ logger.log(Level.WARNING, \"No cave tile for \" + this.tilex + \", \" + this.tiley);\n/* 2154 */ return this;\n/* */ } \n/* */ }", "public Tile getTile() {\n return _tile;\n }", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tif(!gameOver){\r\n\t\t\t//\t\t\tSystem.out.println(\"-----Grid Click------\");\r\n\t\t\tCell clickedCell;\r\n\t\t\tclickedCell = (Cell)e.getSource();\r\n\t\t\tBoolean filled = false;\r\n\t\t\tfilled = clickedCell.fillTile(player);\r\n\t\t\tif(filled == true){\r\n\t\t\t\tgridTrack[clickedCell.row][clickedCell.column] = player;\r\n\t\t\t\tCell.lastX = clickedCell.row;\r\n\t\t\t\tCell.lastY = clickedCell.column;\r\n\t\t\t\tgameOver = checkGrid();\r\n\t\t\t\tif(player == 1){\r\n\t\t\t\t\tplayer = 2;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tplayer = 1;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(!gameOver){\r\n\t\t\t\t\tif(randPlayer){\r\n\t\t\t\t\t\trandomMove();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif(simpleMinimax){\r\n\t\t\t\t\t\tsimpleMiniMaxMove(clickedCell);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "public Piece getPiece(int x, int y)\r\n {\r\n if(isValidSqr(x,y)) return board[x][y];\r\n return null;\r\n }", "public BufferedImage getSingleTile(final int x, final int y) {\n return this.sheet.getSubimage(x * TILE_SIZE_IN_GAME, y * TILE_SIZE_IN_GAME, TILE_SIZE_IN_GAME,\n TILE_SIZE_IN_GAME);\n }", "Rectangle getCollisionBox();", "private MNKCell findOneMoveWin(final MNKGameState winState) {\n for (MNKCell c : board.getFreeCells()) {\n MNKGameState result = board.markCell(c.i, c.j);\n board.unmarkCell();\n if (result == winState) return c;\n }\n return null;\n }", "Move getMove() {\r\n int[] p0 = new int[2];\r\n int[] p1 = new int[3];\r\n\r\n while (_playing) {\r\n while (_playing) {\r\n while (_playing) {\r\n _command.getMouse(p0);\r\n System.out.println(\"_command.getMouse 0\");\r\n if (p0[0] >= 0 && p0[1] >= 0) {\r\n System.out.println(\"We got a mouse move on the board for 0\");\r\n break;\r\n }\r\n try {\r\n Thread.sleep(magic1);\r\n System.out.println(\"This is the thread.sleep.\");\r\n } catch (InterruptedException ex) {\r\n System.out.println(\"This is the interruption.\");\r\n return null;\r\n }\r\n }\r\n if (!_playing) {\r\n return null;\r\n }\r\n if (_board.get(p0[0] + 1, p0[1] + 1) == _board.turn()) {\r\n System.out.print(\"Warning!!!\");\r\n break;\r\n }\r\n }\r\n if (!_playing) {\r\n return null;\r\n }\r\n while (_playing) {\r\n _command.getMouse(p1);\r\n System.out.println(\"_command.getMouse 1\");\r\n if (p1[0] >= 0 && p1[1] >= 0) {\r\n System.out.println(\"We got a mouse move on the board for 1\");\r\n break;\r\n }\r\n try {\r\n Thread.sleep(magic1);\r\n System.out.println(\"This is the thread.sleep.\");\r\n } catch (InterruptedException ex) {\r\n System.out.println(\"This is the interruption.\");\r\n return null;\r\n }\r\n }\r\n if (!_playing) {\r\n return null;\r\n }\r\n if (p0[0] == p1[0] || p0[1] == p1[1]\r\n || Math.abs(p1[0] - p0[0]) == Math.abs(p1[1] - p0[1])) {\r\n Move m = Move.create(p0[0] + 1, p0[1] + 1, p1[0] + 1, p1[1] + 1,\r\n _board);\r\n if (m != null && _board.isLegal(m)) {\r\n return m;\r\n }\r\n }\r\n }\r\n return null;\r\n }", "@Test\n public void testGetTile() {\n assertEquals(7, board3by3.getTile(0, 0).getId());\n }", "private Tile getTileAt(Position p) {\n return getTileAt(p.getRow(), p.getCol());\n }", "@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t//Get mouse screen positions\n\t\tmouseScreenX = arg0.getX();\n\t\tmouseScreenY = arg0.getY();\n\t\t//Convert screen to board position\n\t\tscreenToBoardPos(mouseScreenX, mouseScreenY, mouseBoardPos);\n\t\t//Check if mouse is in the private area\n\t\tmouseInPrivateArea = ObjectFunctions.isInPrivateArea(privateArea, mouseBoardPos.getXI(), mouseBoardPos.getYI());\n\t\tmouseInStacker = ObjectFunctions.isOnShape(id, gameInstance, table.stackerShape, boardToScreenTransformation, mouseBoardPos.getXI(), mouseBoardPos.getYI());\n\n\t\t//Check if some key is pressed\n\t\tif (player != null) {\n\t\t\t//set the mouse position of the player to send to other players\n\t\t\tgameInstance.update(new PlayerMousePositionUpdate(id, player, player, mouseBoardPos.getXI(), mouseBoardPos.getYI()));\n\n\t\t\tif (!player.visitor) {\n\t\t\t\t//Disable action string if mouse moves and no key is pressed\n\t\t\t\tif (downKeys.size() == 0) {\n\t\t\t\t\tplayer.actionString = \"\";\n\t\t\t\t}\n\t\t\t\t//get nearest object concerning the mouse position\n\t\t\t\tObjectInstance nearestObject = ObjectFunctions.getNearestObjectByPosition(this, gameInstance, player, mouseBoardPos.getXI(), mouseBoardPos.getYI(), 1, null);\n\t\t\t\t//do actions if mouse is in the private area or not and there is some nearest object\n\t\t\t\tif (mouseInPrivateArea && nearestObject != null && !arg0.isControlDown() && !arg0.isShiftDown() && !arg0.isAltDown()) {\n\t\t\t\t\tif (hoveredObject != null)\n\t\t\t\t\t{\n\t\t\t\t\t\thoveredObject.state.isActive = false;\n\t\t\t\t\t}\n\t\t\t\t\tnearestObject.state.isActive = false;\n\t\t\t\t\tsetHoveredObject(gameInstance, player, nearestObject);\n\t\t\t\t} else if (!mouseInPrivateArea) {\n\t\t\t\t\tif (nearestObject != null && !nearestObject.state.inPrivateArea) {\n\t\t\t\t\t\tif (hoveredObject == null) {\n\t\t\t\t\t\t\tsetHoveredObject(gameInstance, player, nearestObject);\n\t\t\t\t\t\t} else if (nearestObject.id != hoveredObject.id) {\n\t\t\t\t\t\t\tsetHoveredObject(gameInstance, player, nearestObject);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (isDebug && hoveredObject != null) {\n\t\t\t\t\t\t\toutText = \"Hover Object: \" + hoveredObject.id;\n\t\t\t\t\t\t\toutText += \"\\n Select: \" + hoveredObject.state.isSelected;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tunhoverObject(gameInstance, player);\n\t\t\t\t\t\tif (isDebug) {\n\t\t\t\t\t\t\toutText = \" \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//TODO do repaint if something happens and not if mouse moved?\n\t\trepaint();\n\t}", "public StateNode processClick(int x, int y) {\n this.getClicked(x, y);\n\n if (newClickOnTile.get().isPresent()\n // ^ and we click a tile\n && newClickOnTile.get().get().getOwner().equals(match.getUser())\n // ^ and we own the tile\n //&& !newClickOnTile.get().get().getContents().isPresent()\n // ^ and it's empty\n && gs.getUserDuckDust().isPlayable(gs.getHeld().get().getCost())) {\n // ^ card can be played\n\n if (newClickOnTile.get().get().getContents().isPresent()) {\n if (gs.getHeld().get().getCard() instanceof MinionCard\n && newClickOnTile.get().get().getContents().get().getCard() instanceof MinionCard) {\n MinionCard mcHeld = (MinionCard) gs.getHeld().get().getCard();\n MinionCard mcTile = (MinionCard) newClickOnTile.get().get().getContents().get().getCard();\n MinionCard mcNew = mcHeld.getParent(mcTile);\n\n if (mcNew == null) {\n if (gs.getHeld().isPresent()) {\n gs.getUserPyramid().returnYankedCard(gs.getHeld().get());\n gs.dropHeld();\n }\n return new Idle(match, stateCallback);\n }\n\n newClickOnTile.get().get().removeContents();\n try {\n newClickOnTile.get().get().setContents(new MatchCard(mcNew, 0, 0));\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n\n LoggerFactory.getLogger(HeldCard.class).info(\"Card Stacking: \" + mcHeld.getName() + \" + \" +\n mcTile.getName() + \" -> \" + mcNew.getName()\n );\n return finishDrop();\n } else {\n if (gs.getHeld().isPresent()) {\n gs.getUserPyramid().returnYankedCard(gs.getHeld().get());\n gs.dropHeld();\n }\n return new Idle(match, stateCallback);\n }\n }\n\n // transfer the card\n newClickOnTile.get().get().setContents(gs.getHeld().get());\n\n // Spend the amount of duck dust the card costs\n match.getUser().duckDustPool.spend(gs.getHeld().get().getCost());\n\n // Transmit played card\n if (GameManager.getInstance().getMultiplayerClient().isPresent()) {\n GameManager.getInstance().getMultiplayerClient().get().sendPlayerTurn(\n gs.getHeld().get().getUid(),\n x,\n y);\n }\n\n // Transfer to drop card\n return finishDrop();\n } else if (newClickOnDustPool\n // ^ click on the dust pool\n && gs.getUserDuckDust().canGrind()) {\n // ^ card can be ground\n\n // Grind the match card\n gs.getUserDuckDust().grind();\n\n Emitter emitter = Emitter.DUCK_DUST;\n\n Point2D grindCoords = gs.getGrinder().getOrigin();\n\n // Emit on that point\n gs.addParticles(emitter.emit(grindCoords.getX() + 115, grindCoords.getY() + 75));\n\n // Transmit ground card\n if (GameManager.getInstance().getMultiplayerClient().isPresent()) {\n GameManager.getInstance().getMultiplayerClient().get().sendGrindCard(gs.getHeld().get().getUid());\n }\n\n // Finish grind\n return finishDrop();\n } else {\n if (gs.getHeld().isPresent()) {\n gs.getUserPyramid().returnYankedCard(gs.getHeld().get());\n gs.dropHeld();\n }\n }\n\n // Transition to a new state\n return new Idle(match, stateCallback);\n }", "private Tile getTileAt(int row, int col) {\n return getTiles()[row][col];\n }", "@Override\r\n\tpublic Integer getCell(Integer x, Integer y) {\n\t\treturn game[x][y];\r\n\t}", "private Cell searchEmptySurrounding(){\n List <Cell> blocks = getSurroundingCells(currentWorm.position.x, currentWorm.position.y);\n for (Cell block : blocks){\n if(!isCellOccupied(block)) return block;\n }\n return null;\n }", "public Board twin() {\n Board c = getClone();\n int firstTileRow = -1, firstTileCol = -1, secTileRow = -1, secTileCol = -1;\n outerloop:\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n if (tiles[i][j] != 0) {\n firstTileRow = i;\n firstTileCol = j;\n break outerloop;\n }\n }\n }\n\n outerloop:\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n if ((tiles[i][j] != 0) && ((i != firstTileRow) || (j != firstTileCol))) {\n secTileRow = i;\n secTileCol = j;\n break outerloop;\n }\n }\n }\n\n int t = c.tiles[firstTileRow][firstTileCol];\n c.tiles[firstTileRow][firstTileCol] = c.tiles[secTileRow][secTileCol];\n c.tiles[secTileRow][secTileCol] = t;\n return c;\n }", "public Rect getTileRect(){\n return this.tileRect;\n }", "public Tile getTile(){\n\t\treturn currentTile;\n\t}", "public Piece getPiece(int xgrid, int ygrid) {\n\t\tfor (int i = 0; i < pieces.size(); i++) {\n\t\t\tif (pieces.get(i).getX() == xgrid && pieces.get(i).getY() == ygrid) {\n\t\t\t\treturn pieces.get(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public final Tile getTile(Player p, int ID) {\n\n\t\tTile tile = getTile(p, p.getX(), p.getY());\n\t\tif (tile != null && tile.getID() == ID)\n\t\t\treturn tile;\n\n\t\tSystem.err.println(\"Returning Null\");\n\t\treturn null;\n\t}", "private GObject getCollidingObject(GOval ball) {\n GObject result = null;\n GPoint[] borderPoints = createArrayOfBallBorders(ball);\n for (GPoint someBorderPoint : borderPoints) {\n result = getElementAt(someBorderPoint);\n if (result != null){\n break;\n }\n }\n return result;\n }", "private Move defaultMoveInGoodPlace(PentagoBoard b0) {\n \tPentagoBoard b = (PentagoBoard)b0.clone();\n \tList<Move> moves = b.getMovesFor(getColor());\n \tfor(Move m: moves) {\n \t\tPentagoMove pM = (PentagoMove)m;\n \t\tif(havMyNeighbour(b,getColor(), pM.getPlaceX(), pM.getPlaceY()) == false)\n \t\t\tcontinue;\n \t\tif(canWinInRow(b,pM.getPlaceY(),getColor())) {\n \t\t\tb.doMove(m);\n \t\t\tif(canWinOpponentNow(b) != null) { // przeciwnik nie moze wygrac po moim ruchu\n \t\t\tb.undoMove(m);\n \t\t\tcontinue;\n \t\t}\n \t\t\treturn m;\n \t\t}\n \t\tif(canWinInColumn(b,pM.getPlaceX(),getColor())) {\n \t\t\tb.doMove(m);\n \t\t\tif(canWinOpponentNow(b) != null) { // przeciwnik nie moze wygrac po moim ruchu\n \t\t\tb.undoMove(m);\n \t\t\tcontinue;\n \t\t}\n \t\t\treturn m;\n \t\t}\n \t}\n \treturn null;\n }", "protected Tile getTile( Tile[] tiles, int x, int y ) {\n return tiles[ (y * getHeightInTiles()) + x ];\n }", "public Tile getTile(Character letter) {\r\n int index;\r\n Tile returnedTile;\r\n if(isAvailable(letter)) {\r\n index = frame.indexOf(new Tile(letter));\r\n returnedTile = frame.get(index);\r\n }\r\n else //if we want to return blank instead of unavailable letter\r\n {\r\n index = frame.indexOf(new Tile('_'));\r\n returnedTile = frame.get(index);\r\n returnedTile.setBlankAs(letter);\r\n }\r\n return returnedTile;\r\n }", "public abstract boolean getCell(int x, int y);", "SerializableState getTile(Long id, int x, int y) throws RemoteException;", "public Tile getTile(int x, int y, int z) {\r\n\t\treturn map.getTile(x, y, z);\r\n\t}", "public LayoutThread find(int x, int y) {\n Iterator<LayoutThread> it = map.keySet().iterator(); while (it.hasNext()) {\n LayoutThread layout_thread = it.next(); if (map.get(layout_thread).contains(x,y)) return layout_thread;\n }\n return null;\n }", "private Worm getFirstWormInRange() {\n\n Set<String> cells = constructFireDirectionLines(currentWorm.weapon.range)\n .stream()\n .flatMap(Collection::stream)\n .map(cell -> String.format(\"%d_%d\", cell.x, cell.y))\n .collect(Collectors.toSet());\n\n for (Worm enemyWorm : opponent.worms) {\n String enemyPosition = String.format(\"%d_%d\", enemyWorm.position.x, enemyWorm.position.y);\n if (cells.contains(enemyPosition) && enemyWorm.health > 0) {\n return enemyWorm;\n }\n }\n\n return null;\n }", "@Override\n\tpublic void mouseReleased() {\n\t\tbuttonReleased = -1;\n\n\t\t// If the click was on the grid, toggle the appropriate cell\n\t\tif (Utility_Functions.between(mouseX, GRID_LEFT_OFFSET, grid.rightOffset())\n\t\t\t\t&& Utility_Functions.between(mouseY, GRID_TOP_OFFSET, GRID_BOTTOM) && !(state == State.GAME_OVER)\n\t\t\t\t&& !(state == State.PAUSED)) {\n\t\t\tint xPos = (mouseX - GRID_LEFT_OFFSET) % (CARD_WIDTH + GRID_X_SPACER);\n\t\t\tint yPos = (mouseY - GRID_TOP_OFFSET) % (CARD_HEIGHT + GRID_Y_SPACER);\n\n\t\t\tif ((Utility_Functions.between(xPos, CARD_WIDTH + 1, CARD_WIDTH + GRID_X_SPACER)\n\t\t\t\t\t|| Utility_Functions.between(yPos, CARD_HEIGHT + 1, CARD_HEIGHT + GRID_Y_SPACER))) {\n\t\t\t} else {\n\t\t\t\tint col = (mouseX - GRID_LEFT_OFFSET) / (CARD_WIDTH + GRID_X_SPACER);\n\t\t\t\tint row = (mouseY - GRID_TOP_OFFSET) / (CARD_HEIGHT + GRID_Y_SPACER);\n\t\t\t\tif (row == clickedRow && col == clickedCol) {\n\t\t\t\t\tgrid.updateSelected(clickedCol, clickedRow);\n\t\t\t\t}\n\t\t\t}\n\t\t} else { // Figure out if a button was clicked and, if so, which one\n\t\t\tfor (int i = 0; i < NUM_BUTTONS; i++) {\n\t\t\t\tif (Utility_Functions.between(mouseX, BUTTON_LEFT_OFFSET + i * (BUTTON_WIDTH + 12),\n\t\t\t\t\t\tBUTTON_LEFT_OFFSET + i * (BUTTON_WIDTH + 12) + BUTTON_WIDTH)\n\t\t\t\t\t\t&& Utility_Functions.between(mouseY, BUTTON_TOP_OFFSET, BUTTON_TOP_OFFSET + BUTTON_HEIGHT)) {\n\t\t\t\t\tbuttonReleased = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (buttonSelected == buttonReleased && buttonReleased >= 0) {\n\t\t\t\tif (buttonReleased == 2) {\n\t\t\t\t\tnewGame();\n\t\t\t\t} else if (state != State.GAME_OVER) {\n\t\t\t\t\tswitch (buttonReleased) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tgrid.addColumn();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tstate = State.FIND_SET;\n\t\t\t\t\t\thighlightCounter = 0;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tTimer_Procedures.togglePauseResume(this);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public Tile getTile() {\n return tile;\n }", "public Tile getTile() {\n return tile;\n }", "public Board twin() {\n exchangeFirstKeys(); // exchange (0,0) with (0,1)\n Board twinBoard = new Board(tiles);\n exchangeFirstKeys(); // roll it back\n return twinBoard;\n }", "String underMouseSimple(MouseEvent me) {\n RenderContext myrc = (RenderContext) rc; if (myrc == null) return null;\n Rectangle2D mouse_rect = new Rectangle2D.Double(me.getX()-1,me.getY()-1,3,3);\n Iterator<String> it = myrc.node_coord_set.keySet().iterator();\n while (it.hasNext()) {\n String node_coord = it.next(); \n if (myrc.node_to_geom.containsKey(node_coord) && \n mouse_rect.intersects(myrc.node_to_geom.get(node_coord).getBounds())) return node_coord;\n }\n return null;\n }", "public BoardPos decodeMouse(double mouseX, double mouseY) {\n if (mouseX > startX && mouseY > startY && mouseX < startX + sideLength &&\n mouseY < startY + sideLength) // range check\n return new BoardPos( (int)((mouseX - startX) / unitLength),\n (int)((mouseY - startY) / unitLength ));\n else return null;\n }", "private static Point winOrBlock(char[][] board, char match) {\r\n\t\tint rd;\r\n\t\tint cd;\r\n\t\tif(board[0][0] == match) {\r\n\t\t\tif(board[0][1] == match) {\r\n\t\t\t\trd = 0;\r\n\t\t\t\tcd = 2;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[0][2] == match) {\r\n\t\t\t\trd = 0;\r\n\t\t\t\tcd = 1;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[1][0] == match) {\r\n\t\t\t\trd = 2;\r\n\t\t\t\tcd = 0;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[1][1] == match) {\r\n\t\t\t\trd = 2;\r\n\t\t\t\tcd = 2;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[2][0] == match) {\r\n\t\t\t\trd = 1;\r\n\t\t\t\tcd = 0;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[2][2] == match) {\r\n\t\t\t\trd = 1;\r\n\t\t\t\tcd = 1;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(board[0][1] == match) {\r\n\t\t\tif(board[0][2] == match) {\r\n\t\t\t\trd = 0;\r\n\t\t\t\tcd = 0;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[1][1] == match) {\r\n\t\t\t\trd = 2;\r\n\t\t\t\tcd = 1;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[2][1] == match) {\r\n\t\t\t\trd = 1;\r\n\t\t\t\tcd = 1;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(board[0][2] == match) {\r\n\t\t\tif(board[1][1] == match) {\r\n\t\t\t\trd = 2;\r\n\t\t\t\tcd = 0;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[1][2] == match) {\r\n\t\t\t\trd = 2;\r\n\t\t\t\tcd = 2;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[2][0] == match) {\r\n\t\t\t\trd = 1;\r\n\t\t\t\tcd = 1;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[2][2] == match) {\r\n\t\t\t\trd = 1;\r\n\t\t\t\tcd = 2;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(board[1][0] == match) {\r\n\t\t\tif(board[1][1] == match) {\r\n\t\t\t\trd = 1;\r\n\t\t\t\tcd = 2;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[1][2] == match) {\r\n\t\t\t\trd = 1;\r\n\t\t\t\tcd = 1;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[2][0] == match) {\r\n\t\t\t\trd = 0;\r\n\t\t\t\tcd = 0;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(board[1][1] == match) {\r\n\t\t\tif(board[1][2] == match) {\r\n\t\t\t\trd = 1;\r\n\t\t\t\tcd = 0;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[2][0] == match) {\r\n\t\t\t\trd = 0;\r\n\t\t\t\tcd = 2;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[2][1] == match) {\r\n\t\t\t\trd = 0;\r\n\t\t\t\tcd = 1;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[2][2] == match) {\r\n\t\t\t\trd = 0;\r\n\t\t\t\tcd = 0;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(board[1][2] == match) {\r\n\t\t\tif(board[2][2] == match) {\r\n\t\t\t\trd = 0;\r\n\t\t\t\tcd = 2;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(board[2][0] == match) {\r\n\t\t\tif(board[2][1] == match) {\r\n\t\t\t\trd = 2;\r\n\t\t\t\tcd = 2;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(board[2][2] == match) {\r\n\t\t\t\trd = 2;\r\n\t\t\t\tcd = 1;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(board[2][1] == match) {\r\n\t\t\tif(board[2][2] == match) {\r\n\t\t\t\trd = 2;\r\n\t\t\t\tcd = 0;\r\n\t\t\t\tif(board[rd][cd] == '_') {\r\n\t\t\t\t\treturn new Point(rd,cd);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public int getTile(int t) {\n switch (t) {\n case HARDFLOOR: return hardfloors[type];\n case HARDWALL: return hardwalls[type];\n case SOFTFLOOR: return softfloors[type];\n case SOFTWALL: return softwalls[type];\n case STREAM: return streams[type];\n case RIVER: return rivers[type];\n } \n return Tile.WALL;\n }", "public abstract Cell getOverlappedCell(Rectangle rect);", "private Ship getShip(Board board, int x, int y) {\r\n\t\tfor(Ship ship:board.ships) {\r\n\t\t\tif(ship.contains(x,y)) {\r\n\t\t\t\treturn ship;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\r\n\t\tSystem.out.println(e.getX()/100 + \", \" + e.getY()/100);\r\n\t\tif (board[e.getX()/100][e.getY()/100].equals(Color.blue)) {\r\n\t\t\tif (turn%2 == 0) {\r\n\t\t\t\tboard[e.getX()/100][e.getY()/100] = Color.yellow;\r\n\t\t\t} else {\r\n\t\t\t\tboard[e.getX()/100][e.getY()/100] = Color.red;\r\n\t\t\t}\r\n\t\t\tturn++;\r\n\t\t\t\r\n\t\t\t//win condition\r\n\t\t\tif(board[0][0] == Color.yellow && board[0][1] == Color.yellow && board[0][2] == Color.yellow && board[0][3] == Color.yellow){\r\n\t\t\t\tboard[0][0] = Color.yellow;\r\n\t\t\t\tboard[0][1] = Color.yellow;\r\n\t\t\t\tboard[0][2] = Color.yellow;\r\n\t\t\t\tboard[0][3] = Color.yellow;\r\n\t\t\t\tboard[1][0] = Color.yellow;\r\n\t\t\t\tboard[1][1] = Color.yellow;\r\n\t\t\t\tboard[1][2] = Color.yellow;\r\n\t\t\t\tboard[1][3] = Color.yellow;\r\n\t\t\t\tboard[2][0] = Color.yellow;\r\n\t\t\t\tboard[2][1] = Color.yellow;\r\n\t\t\t\tboard[2][2] = Color.yellow;\r\n\t\t\t\tboard[2][3] = Color.yellow;\r\n\t\t\t\tboard[3][0] = Color.yellow;\r\n\t\t\t\tboard[3][1] = Color.yellow;\r\n\t\t\t\tboard[3][2] = Color.yellow;\r\n\t\t\t\tboard[3][3] = Color.yellow;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(board[1][0] == Color.yellow && board[1][1] == Color.yellow && board[1][2] == Color.yellow && board[1][3] == Color.yellow){\r\n\t\t\t\tboard[0][0] = Color.yellow;\r\n\t\t\t\tboard[0][1] = Color.yellow;\r\n\t\t\t\tboard[0][2] = Color.yellow;\r\n\t\t\t\tboard[0][3] = Color.yellow;\r\n\t\t\t\tboard[1][0] = Color.yellow;\r\n\t\t\t\tboard[1][1] = Color.yellow;\r\n\t\t\t\tboard[1][2] = Color.yellow;\r\n\t\t\t\tboard[1][3] = Color.yellow;\r\n\t\t\t\tboard[2][0] = Color.yellow;\r\n\t\t\t\tboard[2][1] = Color.yellow;\r\n\t\t\t\tboard[2][2] = Color.yellow;\r\n\t\t\t\tboard[2][3] = Color.yellow;\r\n\t\t\t\tboard[3][0] = Color.yellow;\r\n\t\t\t\tboard[3][1] = Color.yellow;\r\n\t\t\t\tboard[3][2] = Color.yellow;\r\n\t\t\t\tboard[3][3] = Color.yellow;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(board[2][0] == Color.yellow && board[2][1] == Color.yellow && board[2][2] == Color.yellow && board[2][3] == Color.yellow){\r\n\t\t\t\tboard[0][0] = Color.yellow;\r\n\t\t\t\tboard[0][1] = Color.yellow;\r\n\t\t\t\tboard[0][2] = Color.yellow;\r\n\t\t\t\tboard[0][3] = Color.yellow;\r\n\t\t\t\tboard[1][0] = Color.yellow;\r\n\t\t\t\tboard[1][1] = Color.yellow;\r\n\t\t\t\tboard[1][2] = Color.yellow;\r\n\t\t\t\tboard[1][3] = Color.yellow;\r\n\t\t\t\tboard[2][0] = Color.yellow;\r\n\t\t\t\tboard[2][1] = Color.yellow;\r\n\t\t\t\tboard[2][2] = Color.yellow;\r\n\t\t\t\tboard[2][3] = Color.yellow;\r\n\t\t\t\tboard[3][0] = Color.yellow;\r\n\t\t\t\tboard[3][1] = Color.yellow;\r\n\t\t\t\tboard[3][2] = Color.yellow;\r\n\t\t\t\tboard[3][3] = Color.yellow;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(board[0][0] == Color.yellow && board[1][0] == Color.yellow && board[2][0] == Color.yellow && board[3][0] == Color.yellow){\r\n\t\t\t\tboard[0][0] = Color.yellow;\r\n\t\t\t\tboard[0][1] = Color.yellow;\r\n\t\t\t\tboard[0][2] = Color.yellow;\r\n\t\t\t\tboard[0][3] = Color.yellow;\r\n\t\t\t\tboard[1][0] = Color.yellow;\r\n\t\t\t\tboard[1][1] = Color.yellow;\r\n\t\t\t\tboard[1][2] = Color.yellow;\r\n\t\t\t\tboard[1][3] = Color.yellow;\r\n\t\t\t\tboard[2][0] = Color.yellow;\r\n\t\t\t\tboard[2][1] = Color.yellow;\r\n\t\t\t\tboard[2][2] = Color.yellow;\r\n\t\t\t\tboard[2][3] = Color.yellow;\r\n\t\t\t\tboard[3][0] = Color.yellow;\r\n\t\t\t\tboard[3][1] = Color.yellow;\r\n\t\t\t\tboard[3][2] = Color.yellow;\r\n\t\t\t\tboard[3][3] = Color.yellow;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(board[0][1] == Color.yellow && board[1][1] == Color.yellow && board[2][1] == Color.yellow && board[3][1] == Color.yellow){\r\n\t\t\t\tboard[0][0] = Color.yellow;\r\n\t\t\t\tboard[0][1] = Color.yellow;\r\n\t\t\t\tboard[0][2] = Color.yellow;\r\n\t\t\t\tboard[0][3] = Color.yellow;\r\n\t\t\t\tboard[1][0] = Color.yellow;\r\n\t\t\t\tboard[1][1] = Color.yellow;\r\n\t\t\t\tboard[1][2] = Color.yellow;\r\n\t\t\t\tboard[1][3] = Color.yellow;\r\n\t\t\t\tboard[2][0] = Color.yellow;\r\n\t\t\t\tboard[2][1] = Color.yellow;\r\n\t\t\t\tboard[2][2] = Color.yellow;\r\n\t\t\t\tboard[2][3] = Color.yellow;\r\n\t\t\t\tboard[3][0] = Color.yellow;\r\n\t\t\t\tboard[3][1] = Color.yellow;\r\n\t\t\t\tboard[3][2] = Color.yellow;\r\n\t\t\t\tboard[3][3] = Color.yellow;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(board[0][2] == Color.yellow && board[1][2] == Color.yellow && board[2][2] == Color.yellow && board[3][2] == Color.yellow){\r\n\t\t\t\tboard[0][0] = Color.yellow;\r\n\t\t\t\tboard[0][1] = Color.yellow;\r\n\t\t\t\tboard[0][2] = Color.yellow;\r\n\t\t\t\tboard[0][3] = Color.yellow;\r\n\t\t\t\tboard[1][0] = Color.yellow;\r\n\t\t\t\tboard[1][1] = Color.yellow;\r\n\t\t\t\tboard[1][2] = Color.yellow;\r\n\t\t\t\tboard[1][3] = Color.yellow;\r\n\t\t\t\tboard[2][0] = Color.yellow;\r\n\t\t\t\tboard[2][1] = Color.yellow;\r\n\t\t\t\tboard[2][2] = Color.yellow;\r\n\t\t\t\tboard[2][3] = Color.yellow;\r\n\t\t\t\tboard[3][0] = Color.yellow;\r\n\t\t\t\tboard[3][1] = Color.yellow;\r\n\t\t\t\tboard[3][2] = Color.yellow;\r\n\t\t\t\tboard[3][3] = Color.yellow;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(board[0][0] == Color.yellow && board[1][1] == Color.yellow && board[2][2] == Color.yellow && board[3][3] == Color.yellow){\r\n\t\t\t\tboard[0][0] = Color.yellow;\r\n\t\t\t\tboard[0][1] = Color.yellow;\r\n\t\t\t\tboard[0][2] = Color.yellow;\r\n\t\t\t\tboard[0][3] = Color.yellow;\r\n\t\t\t\tboard[1][0] = Color.yellow;\r\n\t\t\t\tboard[1][1] = Color.yellow;\r\n\t\t\t\tboard[1][2] = Color.yellow;\r\n\t\t\t\tboard[1][3] = Color.yellow;\r\n\t\t\t\tboard[2][0] = Color.yellow;\r\n\t\t\t\tboard[2][1] = Color.yellow;\r\n\t\t\t\tboard[2][2] = Color.yellow;\r\n\t\t\t\tboard[2][3] = Color.yellow;\r\n\t\t\t\tboard[3][0] = Color.yellow;\r\n\t\t\t\tboard[3][1] = Color.yellow;\r\n\t\t\t\tboard[3][2] = Color.yellow;\r\n\t\t\t\tboard[3][3] = Color.yellow;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(board[3][0] == Color.yellow && board[1][2] == Color.yellow && board[2][1] == Color.yellow && board[0][3] == Color.yellow){\r\n\t\t\t\tboard[0][0] = Color.yellow;\r\n\t\t\t\tboard[0][1] = Color.yellow;\r\n\t\t\t\tboard[0][2] = Color.yellow;\r\n\t\t\t\tboard[0][3] = Color.yellow;\r\n\t\t\t\tboard[1][0] = Color.yellow;\r\n\t\t\t\tboard[1][1] = Color.yellow;\r\n\t\t\t\tboard[1][2] = Color.yellow;\r\n\t\t\t\tboard[1][3] = Color.yellow;\r\n\t\t\t\tboard[2][0] = Color.yellow;\r\n\t\t\t\tboard[2][1] = Color.yellow;\r\n\t\t\t\tboard[2][2] = Color.yellow;\r\n\t\t\t\tboard[2][3] = Color.yellow;\r\n\t\t\t\tboard[3][0] = Color.yellow;\r\n\t\t\t\tboard[3][1] = Color.yellow;\r\n\t\t\t\tboard[3][2] = Color.yellow;\r\n\t\t\t\tboard[3][3] = Color.yellow;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(board[0][0] == Color.red && board[0][1] == Color.red && board[0][2] == Color.red && board[0][3] == Color.red){\r\n\t\t\t\tboard[0][0] = Color.red;\r\n\t\t\t\tboard[0][1] = Color.red;\r\n\t\t\t\tboard[0][2] = Color.red;\r\n\t\t\t\tboard[0][3] = Color.red;\r\n\t\t\t\tboard[1][0] = Color.red;\r\n\t\t\t\tboard[1][1] = Color.red;\r\n\t\t\t\tboard[1][2] = Color.red;\r\n\t\t\t\tboard[1][3] = Color.red;\r\n\t\t\t\tboard[2][0] = Color.red;\r\n\t\t\t\tboard[2][1] = Color.red;\r\n\t\t\t\tboard[2][2] = Color.red;\r\n\t\t\t\tboard[2][3] = Color.red;\r\n\t\t\t\tboard[3][0] = Color.red;\r\n\t\t\t\tboard[3][1] = Color.red;\r\n\t\t\t\tboard[3][2] = Color.red;\r\n\t\t\t\tboard[3][3] = Color.red;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(board[1][0] == Color.red && board[1][1] == Color.red && board[1][2] == Color.red && board[1][3] == Color.red){\r\n\t\t\t\tboard[0][0] = Color.red;\r\n\t\t\t\tboard[0][1] = Color.red;\r\n\t\t\t\tboard[0][2] = Color.red;\r\n\t\t\t\tboard[0][3] = Color.red;\r\n\t\t\t\tboard[1][0] = Color.red;\r\n\t\t\t\tboard[1][1] = Color.red;\r\n\t\t\t\tboard[1][2] = Color.red;\r\n\t\t\t\tboard[1][3] = Color.red;\r\n\t\t\t\tboard[2][0] = Color.red;\r\n\t\t\t\tboard[2][1] = Color.red;\r\n\t\t\t\tboard[2][2] = Color.red;\r\n\t\t\t\tboard[2][3] = Color.red;\r\n\t\t\t\tboard[3][0] = Color.red;\r\n\t\t\t\tboard[3][1] = Color.red;\r\n\t\t\t\tboard[3][2] = Color.red;\r\n\t\t\t\tboard[3][3] = Color.red;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(board[2][0] == Color.red && board[2][1] == Color.red && board[2][2] == Color.red && board[2][3] == Color.red){\r\n\t\t\t\tboard[0][0] = Color.red;\r\n\t\t\t\tboard[0][1] = Color.red;\r\n\t\t\t\tboard[0][2] = Color.red;\r\n\t\t\t\tboard[0][3] = Color.red;\r\n\t\t\t\tboard[1][0] = Color.red;\r\n\t\t\t\tboard[1][1] = Color.red;\r\n\t\t\t\tboard[1][2] = Color.red;\r\n\t\t\t\tboard[1][3] = Color.red;\r\n\t\t\t\tboard[2][0] = Color.red;\r\n\t\t\t\tboard[2][1] = Color.red;\r\n\t\t\t\tboard[2][2] = Color.red;\r\n\t\t\t\tboard[2][3] = Color.red;\r\n\t\t\t\tboard[3][0] = Color.red;\r\n\t\t\t\tboard[3][1] = Color.red;\r\n\t\t\t\tboard[3][2] = Color.red;\r\n\t\t\t\tboard[3][3] = Color.red;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(board[0][0] == Color.red && board[1][0] == Color.red && board[2][0] == Color.red && board[3][0] == Color.red){\r\n\t\t\t\tboard[0][0] = Color.red;\r\n\t\t\t\tboard[0][1] = Color.red;\r\n\t\t\t\tboard[0][2] = Color.red;\r\n\t\t\t\tboard[0][3] = Color.red;\r\n\t\t\t\tboard[1][0] = Color.red;\r\n\t\t\t\tboard[1][1] = Color.red;\r\n\t\t\t\tboard[1][2] = Color.red;\r\n\t\t\t\tboard[1][3] = Color.red;\r\n\t\t\t\tboard[2][0] = Color.red;\r\n\t\t\t\tboard[2][1] = Color.red;\r\n\t\t\t\tboard[2][2] = Color.red;\r\n\t\t\t\tboard[2][3] = Color.red;\r\n\t\t\t\tboard[3][0] = Color.red;\r\n\t\t\t\tboard[3][1] = Color.red;\r\n\t\t\t\tboard[3][2] = Color.red;\r\n\t\t\t\tboard[3][3] = Color.red;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(board[0][1] == Color.red && board[1][1] == Color.red && board[2][1] == Color.red && board[3][1] == Color.red){\r\n\t\t\t\tboard[0][0] = Color.red;\r\n\t\t\t\tboard[0][1] = Color.red;\r\n\t\t\t\tboard[0][2] = Color.red;\r\n\t\t\t\tboard[0][3] = Color.red;\r\n\t\t\t\tboard[1][0] = Color.red;\r\n\t\t\t\tboard[1][1] = Color.red;\r\n\t\t\t\tboard[1][2] = Color.red;\r\n\t\t\t\tboard[1][3] = Color.red;\r\n\t\t\t\tboard[2][0] = Color.red;\r\n\t\t\t\tboard[2][1] = Color.red;\r\n\t\t\t\tboard[2][2] = Color.red;\r\n\t\t\t\tboard[2][3] = Color.red;\r\n\t\t\t\tboard[3][0] = Color.red;\r\n\t\t\t\tboard[3][1] = Color.red;\r\n\t\t\t\tboard[3][2] = Color.red;\r\n\t\t\t\tboard[3][3] = Color.red;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(board[0][2] == Color.red && board[1][2] == Color.red && board[2][2] == Color.red && board[3][2] == Color.red){\r\n\t\t\t\tboard[0][0] = Color.red;\r\n\t\t\t\tboard[0][1] = Color.red;\r\n\t\t\t\tboard[0][2] = Color.red;\r\n\t\t\t\tboard[0][3] = Color.red;\r\n\t\t\t\tboard[1][0] = Color.red;\r\n\t\t\t\tboard[1][1] = Color.red;\r\n\t\t\t\tboard[1][2] = Color.red;\r\n\t\t\t\tboard[1][3] = Color.red;\r\n\t\t\t\tboard[2][0] = Color.red;\r\n\t\t\t\tboard[2][1] = Color.red;\r\n\t\t\t\tboard[2][2] = Color.red;\r\n\t\t\t\tboard[2][3] = Color.red;\r\n\t\t\t\tboard[3][0] = Color.red;\r\n\t\t\t\tboard[3][1] = Color.red;\r\n\t\t\t\tboard[3][2] = Color.red;\r\n\t\t\t\tboard[3][3] = Color.red;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(board[0][0] == Color.red && board[1][1] == Color.red && board[2][2] == Color.red && board[3][3] == Color.red){\r\n\t\t\t\tboard[0][0] = Color.red;\r\n\t\t\t\tboard[0][1] = Color.red;\r\n\t\t\t\tboard[0][2] = Color.red;\r\n\t\t\t\tboard[0][3] = Color.red;\r\n\t\t\t\tboard[1][0] = Color.red;\r\n\t\t\t\tboard[1][1] = Color.red;\r\n\t\t\t\tboard[1][2] = Color.red;\r\n\t\t\t\tboard[1][3] = Color.red;\r\n\t\t\t\tboard[2][0] = Color.red;\r\n\t\t\t\tboard[2][1] = Color.red;\r\n\t\t\t\tboard[2][2] = Color.red;\r\n\t\t\t\tboard[2][3] = Color.red;\r\n\t\t\t\tboard[3][0] = Color.red;\r\n\t\t\t\tboard[3][1] = Color.red;\r\n\t\t\t\tboard[3][2] = Color.red;\r\n\t\t\t\tboard[3][3] = Color.red;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(board[3][0] == Color.red && board[1][2] == Color.red && board[2][1] == Color.red && board[0][3] == Color.red){\r\n\t\t\t\tboard[0][0] = Color.red;\r\n\t\t\t\tboard[0][1] = Color.red;\r\n\t\t\t\tboard[0][2] = Color.red;\r\n\t\t\t\tboard[0][3] = Color.red;\r\n\t\t\t\tboard[1][0] = Color.red;\r\n\t\t\t\tboard[1][1] = Color.red;\r\n\t\t\t\tboard[1][2] = Color.red;\r\n\t\t\t\tboard[1][3] = Color.red;\r\n\t\t\t\tboard[2][0] = Color.red;\r\n\t\t\t\tboard[2][1] = Color.red;\r\n\t\t\t\tboard[2][2] = Color.red;\r\n\t\t\t\tboard[2][3] = Color.red;\r\n\t\t\t\tboard[3][0] = Color.red;\r\n\t\t\t\tboard[3][1] = Color.red;\r\n\t\t\t\tboard[3][2] = Color.red;\r\n\t\t\t\tboard[3][3] = Color.red;\r\n\t\t\t}\r\n\t\t\trepaint();\r\n\t\t}\r\n\t}" ]
[ "0.6522459", "0.6369456", "0.6338887", "0.62464917", "0.6238237", "0.62378407", "0.62126356", "0.61321723", "0.61279505", "0.6125667", "0.6071814", "0.6065634", "0.6057385", "0.60423374", "0.60049427", "0.60000014", "0.59829175", "0.5977881", "0.59218466", "0.5906105", "0.5896773", "0.5878521", "0.58608466", "0.5845787", "0.5842853", "0.5842646", "0.58334184", "0.5800555", "0.5779049", "0.5773243", "0.5765238", "0.5743525", "0.57327104", "0.5713658", "0.5683857", "0.5674725", "0.5674661", "0.5669733", "0.56495357", "0.56119204", "0.56110007", "0.560214", "0.5583685", "0.55793494", "0.55685043", "0.5553458", "0.5547239", "0.55448955", "0.553718", "0.5536646", "0.55337036", "0.5531368", "0.55253476", "0.5523761", "0.5520699", "0.55206406", "0.550417", "0.54902136", "0.5484122", "0.54801327", "0.5472102", "0.54716945", "0.5470621", "0.54621094", "0.5456105", "0.5455283", "0.54403764", "0.5439041", "0.5438382", "0.54336524", "0.54312074", "0.54063356", "0.5406093", "0.53934747", "0.53860354", "0.5384479", "0.53808165", "0.5375383", "0.53720963", "0.53700763", "0.5364928", "0.5363388", "0.5344736", "0.53344023", "0.5333594", "0.5326126", "0.5324484", "0.5324329", "0.53181803", "0.53137493", "0.5313535", "0.5313535", "0.5310208", "0.53101844", "0.5309898", "0.53090435", "0.5298433", "0.5297769", "0.5294907", "0.5293536" ]
0.61464787
7
Returns a BOARD tile which location is defined by "column" and "row" indexes in a 5x5 matrix
public BoardTile getTile(int column, int row) { return tiles[column][row]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Board create5by5Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 5);\n Tile t2 = new Tile(1, 5);\n Tile t3 = new Tile(2, 5);\n Tile t4 = new Tile(3, 5);\n Tile t5 = new Tile(4, 5);\n Tile t6 = new Tile(5, 5);\n Tile t7 = new Tile(6, 5);\n Tile t8 = new Tile(7, 5);\n Tile t9 = new Tile(8, 5);\n Tile t10 = new Tile(9, 5);\n Tile t11 = new Tile(10, 5);\n Tile t12 = new Tile(11, 5);\n Tile t13 = new Tile(12, 5);\n Tile t14 = new Tile(13, 5);\n Tile t15 = new Tile(14, 5);\n Tile t16 = new Tile(15, 5);\n Tile t17 = new Tile(16, 5);\n Tile t18 = new Tile(17, 5);\n Tile t19 = new Tile(18, 5);\n Tile t20 = new Tile(19, 5);\n Tile t21 = new Tile(20, 5);\n Tile t22 = new Tile(21, 5);\n Tile t23 = new Tile(22, 5);\n Tile t24 = new Tile(23, 5);\n Tile t25 = new Tile(24, 5);\n tiles = new Tile[5][5];\n tiles[0][0] = t7;\n tiles[0][1] = t6;\n tiles[0][2] = t2;\n tiles[0][3] = t5;\n tiles[0][4] = t9;\n tiles[1][0] = t3;\n tiles[1][1] = t1;\n tiles[1][2] = t8;\n tiles[1][3] = t4;\n tiles[1][4] = t11;\n tiles[2][0] = t17;\n tiles[2][1] = t18;\n tiles[2][2] = t10;\n tiles[2][3] = t25;\n tiles[2][4] = t20;\n tiles[3][0] = t23;\n tiles[3][1] = t21;\n tiles[3][2] = t12;\n tiles[3][3] = t15;\n tiles[3][4] = t13;\n tiles[4][0] = t22;\n tiles[4][1] = t24;\n tiles[4][2] = t14;\n tiles[4][3] = t16;\n tiles[4][4] = t19;\n return new Board(tiles);\n }", "public FloorTile getTileAt(int row, int col) {\n return board[row][col];\n }", "public FloorTile getTileFromTheBoard(int row, int col) {\r\n return board[row][col];\r\n }", "private Tile getTileAt(int row, int col) {\n return getTiles()[row][col];\n }", "public abstract Tile getTileAt(int x, int y);", "@Override\n public SquareTile getTile(int x, int y) {\n // Check that the location is inside the grid\n if (x < 0 || x >= width || y < 0 || y >= height)\n return null;\n\n return tiles[x * width + y];\n }", "public Tile getTileAt(Position p);", "@Override\n public SquareTile getTile(Point location) {\n return getTile(location.getX(), location.getY());\n }", "public FloorTile[][] getBoard(){\r\n return board;\r\n }", "Piece getPieceAt(int col, int row);", "public Tile getTile(int x, int y) {\r\n assert (tiles != null);\r\n \r\n if (x < 0 || y < 0 || x >= width || y >= height) {\r\n return Tile.floorTile;\r\n }\r\n \r\n Tile t = Tile.tiles[tiles[x][y]];\r\n if (t == null) {\r\n return Tile.floorTile;\r\n }\r\n return t;\r\n }", "public int getTile(int x, int y)\n {\n return tilemap[x][y];\n }", "public int tileAt(int i, int j) {\n if (i < 0 || i >= n || j < 0 || j >= n)\n throw new java.lang.IndexOutOfBoundsException();\n return tiles[i][j];\n }", "public void initBasicBoardTiles() {\n\t\ttry {\n\t\t\tfor(int i = 1 ; i <= BOARD_SIZE ; i+=2) {\n\t\t\t\tfor(char c = getColumnLowerBound() ; c <= getColumnUpperBound() ; c+=2) {\n\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, c), PrimaryColor.BLACK).build());\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, (char) ( c + 1)), PrimaryColor.WHITE).build());\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 2 ; i <= BOARD_SIZE ; i+=2) {\n\t\t\t\tfor(char c = getColumnLowerBound() ; c <= getColumnUpperBound() ; c+=2) {\n\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, c), PrimaryColor.WHITE).build());\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, (char) ( c + 1)), PrimaryColor.BLACK).build());\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(LocationException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void getTile_B8();", "public int[][] getBoard();", "public abstract T getCell(int row, int column);", "public MapTile getTile(int x_pos, int y_pos) {\n if (x_pos < 0 || y_pos < 0 || x_pos >= map_grid_[0].length || y_pos >= map_grid_.length) {\n return null;\n }\n return map_grid_[y_pos][x_pos];\n }", "public Tile(int row, int column){\n this.row = row;\n this.column = column;\n this.piece = null;\n }", "public int getTile(int x, int y)\n {\n try {\n return board[x][y];\n } catch (ArrayIndexOutOfBoundsException e) {\n return EMPTY_FLAG;\n }\n }", "public Cell getCell(int row, int col) {\n return board[row][col];\n }", "public int tileAt(int i, int j) {\n if (i < 0 || j < 0 || i >= _N || j >= _N) {\n throw new IllegalArgumentException(\"Exceeds tile dimension\");\n }\n return _tiles[i][j];\n }", "public Marker[][] getBoard() { return board; }", "public Move getGridElement (int row, int column)\n {\n return mGrid[row][column];\n }", "private Tile getTileAt(int x, int y)\n {\n int tileAt = y * TILES_PER_ROW + x;\n \n if (tileAt >= tileset.getTileCount())\n {\n return null;\n }\n else \n {\n return tileset.getTile(tileAt);\n }\n }", "public TileFloor( int x, int y, int rows, int columns)\r\n {\r\n random = new Random(12345);\r\n ROWS = rows;\r\n COLUMNS= columns;\r\n this.x = x;\r\n this.y = y;\r\n }", "public OthelloTile getTile(Point p) {\n if(p == null) {\n return null;\n }\n int x = (p.x-35)/grid[0][0].getPreferredSize().width;\n int y = (p.y-35)/grid[0][0].getPreferredSize().height;\n if(x<0 || x>=grid.length || y<0 || y>=grid[0].length) {\n return null;\n }\n return grid[y][x];\n }", "public Tile getTile(int i, int k) {\n return tiles[i][k];\n }", "@Override\r\n\tpublic Integer getCell(Integer x, Integer y) {\n\t\treturn game[x][y];\r\n\t}", "public Cell getCellAt (int x, int y) {\n return grid[x-1][y-1];\n }", "private Board create4by4Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 4);\n Tile t2 = new Tile(1, 4);\n Tile t3 = new Tile(2, 4);\n Tile t4 = new Tile(3, 4);\n Tile t5 = new Tile(4, 4);\n Tile t6 = new Tile(5, 4);\n Tile t7 = new Tile(6, 4);\n Tile t8 = new Tile(7, 4);\n Tile t9 = new Tile(8, 4);\n Tile t10 = new Tile(9, 4);\n Tile t11 = new Tile(10, 4);\n Tile t12 = new Tile(11, 4);\n Tile t13 = new Tile(12, 4);\n Tile t14 = new Tile(13, 4);\n Tile t15 = new Tile(14, 4);\n Tile t16 = new Tile(15, 4);\n tiles = new Tile[4][4];\n tiles[0][0] = t5;\n tiles[0][1] = t16;\n tiles[0][2] = t1;\n tiles[0][3] = t3;\n tiles[1][0] = t13;\n tiles[1][1] = t15;\n tiles[1][2] = t9;\n tiles[1][3] = t12;\n tiles[2][0] = t2;\n tiles[2][1] = t6;\n tiles[2][2] = t7;\n tiles[2][3] = t14;\n tiles[3][0] = t10;\n tiles[3][1] = t4;\n tiles[3][2] = t8;\n tiles[3][3] = t11;\n return new Board(tiles);\n }", "public Tile[][] getBoard() {\r\n return board;\r\n }", "public String getTile(int row, int column)\n {\n return tiles.get(row).get(column).getLetter(); \n }", "private Tile getTileAt(Position p) {\n return getTileAt(p.getRow(), p.getCol());\n }", "private Tile getTile(int x, int y) {\n\t\tif (x < 0 || x > width || y < 0 || y > height) return Tile.VOID;\n\t\treturn Tile.tiles[tiles[x + y * width]];\n\t}", "private Board create3by3Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 3);\n Tile t2 = new Tile(1, 3);\n Tile t3 = new Tile(2, 3);\n Tile t4 = new Tile(3, 3);\n Tile t5 = new Tile(4, 3);\n Tile t6 = new Tile(5, 3);\n Tile t7 = new Tile(6, 3);\n Tile t8 = new Tile(7, 3);\n Tile t9 = new Tile(8, 3);\n tiles = new Tile[3][3];\n tiles[0][0] = t7;\n tiles[0][1] = t6;\n tiles[0][2] = t2;\n tiles[1][0] = t5;\n tiles[1][1] = t9;\n tiles[1][2] = t3;\n tiles[2][0] = t1;\n tiles[2][1] = t8;\n tiles[2][2] = t4;\n return new Board(tiles);\n }", "public void buildTile(int column, int row) {\r\n tiles[column][row].buildUp();\r\n }", "public void setTiles() {\n\t\tTileStack names = new TileStack();\n\t\tfor(int x=0; x < theBoard.getCols(); x++) {\n\t\t\tfor(int y=0; y < theBoard.getRows(); y++) {\n\t\t\t\tp = new Point(x,y);\n\t\t\t\tif(p.equals(new Point(0,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(1,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(4,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,1)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,1)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,4)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,4)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(1,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(4,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse \n\t\t\t\t\ttheBoard.setTile(p, names.pop());\n\t\t\t}\n\t\t}\n\t}", "public Node getBoardNode() {\r\n return tilesNode;\r\n }", "Tile getPosition();", "public static StackPane createBoard() {\n StackPane stackPane = new StackPane();\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n Tile tile = new Tile();\n Coordinates coordinates = new Coordinates(i, j);\n tile.setTextValue(\"\");\n tile.setTranslateX(i * 50);\n tile.setTranslateY(j * 50);\n tile.setEditable(true);\n tile.setTileId(coordinates);\n stackPane.getChildren().add(tile);\n tiles.put(coordinates, tile);\n }\n }\n return stackPane;\n }", "public Cell getCell(int row, int col) {\n\t\treturn board[row][col];\n\t}", "public Tile getTile(int x, int y){\n\t\tif(x < 0 || y < 0 || x >= width || y >= height){\r\n\t\t\treturn Tile.grassTile;\r\n\t\t}\r\n\t\t\r\n\t\t//tiles[x][y] give us the id and the tiles[id] is the texture\r\n\t\tTile t = Tile.tiles[tiles[x][y]]; \r\n\t\tif(t == null){\r\n\t\t\t//If you try to access undefined tile index, return dirt tile as default\r\n\t\t\treturn Tile.dirtTile; \r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn t;\r\n\t\t}\r\n\t}", "public Board twin() {\n if (tiles[0][0] != 0 && tiles[0][1] != 0)\n return new Board(tiles, new Position(0, 0), new Position(0, 1));\n else\n return new Board(tiles, new Position(1, 0), new Position(1, 1));\n }", "protected Tile getTile( Tile[] tiles, int x, int y ) {\n return tiles[ (y * getHeightInTiles()) + x ];\n }", "public Piece(int a_row, int a_col)\n {\n this.tileLocation = Pair.create(a_row,a_col);\n }", "public Tile getTile(int x, int y) {\n\t\tif(!isValidCoordinates(x,y)){\n\t\t\t//remove later -F\n\t\t\tSystem.out.println(\"Invalid\");\n\t\t\treturn tileGrid[0][0]; //will add handling in check later -F\n\t\t}\n\t\telse{\n\t\t\treturn tileGrid[x][y];\n\t\t}\n\t}", "public DungeonObject getDungeonTile(int x, int y) {\n\t\treturn dungeonRoom[x][y];\r\n\t}", "public void initializeTiles(){\r\n tileBoard = new Tile[7][7];\r\n //Create the fixed tiles\r\n //Row 0\r\n tileBoard[0][0] = new Tile(false, true, true, false);\r\n tileBoard[2][0] = new Tile(false, true, true, true);\r\n tileBoard[4][0] = new Tile(false, true, true, true);\r\n tileBoard[6][0] = new Tile(false, false, true, true);\r\n //Row 2\r\n tileBoard[0][2] = new Tile(true, true, true, false);\r\n tileBoard[2][2] = new Tile(true, true, true, false);\r\n tileBoard[4][2] = new Tile(false, true, true, true);\r\n tileBoard[6][2] = new Tile(true, false, true, true);\r\n //Row 4\r\n tileBoard[0][4] = new Tile(true, true, true, false);\r\n tileBoard[2][4] = new Tile(true, true, false, true);\r\n tileBoard[4][4] = new Tile(true, false, true, true);\r\n tileBoard[6][4] = new Tile(true, false, true, true);\r\n //Row 6\r\n tileBoard[0][6] = new Tile(true, true, false, false);\r\n tileBoard[2][6] = new Tile(true, true, false, true);\r\n tileBoard[4][6] = new Tile(true, true, false, true);\r\n tileBoard[6][6] = new Tile(true, false, false, true);\r\n \r\n //Now create the unfixed tiles, plus the extra tile (15 corners, 6 t's, 13 lines)\r\n ArrayList<Tile> tileBag = new ArrayList<Tile>();\r\n Random r = new Random();\r\n for (int x = 0; x < 15; x++){\r\n tileBag.add(new Tile(true, true, false, false));\r\n }\r\n for (int x = 0; x < 6; x++){\r\n tileBag.add(new Tile(true, true, true, false));\r\n }\r\n for (int x = 0; x < 13; x++){\r\n tileBag.add(new Tile(true, false, true, false));\r\n }\r\n //Randomize Orientation\r\n for (int x = 0; x < tileBag.size(); x++){\r\n int rand = r.nextInt(4);\r\n for (int y = 0; y <= rand; y++){\r\n tileBag.get(x).rotateClockwise();\r\n }\r\n }\r\n \r\n for (int x = 0; x < 7; x++){\r\n for (int y = 0; y < 7; y++){\r\n if (tileBoard[x][y] == null){\r\n tileBoard[x][y] = tileBag.remove(r.nextInt(tileBag.size()));\r\n }\r\n }\r\n }\r\n extraTile = tileBag.remove(0);\r\n }", "public BoardCell getCell(int row, int col) {\n\t\treturn this.grid[row][col]; \n\t}", "public int getBoardLocation() {return boardLocation;}", "public Square getSquareAt(int row, int col) {\n return playingBoard[row][col];\n }", "public Board twin() {\n Board c = getClone();\n int firstTileRow = -1, firstTileCol = -1, secTileRow = -1, secTileCol = -1;\n outerloop:\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n if (tiles[i][j] != 0) {\n firstTileRow = i;\n firstTileCol = j;\n break outerloop;\n }\n }\n }\n\n outerloop:\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n if ((tiles[i][j] != 0) && ((i != firstTileRow) || (j != firstTileCol))) {\n secTileRow = i;\n secTileCol = j;\n break outerloop;\n }\n }\n }\n\n int t = c.tiles[firstTileRow][firstTileCol];\n c.tiles[firstTileRow][firstTileCol] = c.tiles[secTileRow][secTileCol];\n c.tiles[secTileRow][secTileCol] = t;\n return c;\n }", "public void createBoard() {\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n matrix[i][j] = WATER;\n }\n }\n }", "public Board twin() {\n int x = -1, y = -1;\n int[][] tmpBlock = new int[N][N];\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n if (j < N-1 && matrix[i][j] != 0 && matrix[i][j+1] != 0) {\n x = i;\n y = j;\n }\n tmpBlock[i][j] = matrix[i][j];\n }\n }\n if (x == -1 && y == -1) throw new IllegalArgumentException();\n int t = tmpBlock[x][y];\n tmpBlock[x][y] = tmpBlock[x][y+1];\n tmpBlock[x][y+1] = t;\n return new Board(tmpBlock);\n }", "@Test\n public void testGetTile() {\n assertEquals(7, board3by3.getTile(0, 0).getId());\n }", "Cell getCellAt(Coord coord);", "public int getCell(int row, int col)\n {\n if (inBounds(row, col))\n return grid[row][col];\n else\n return OUT_OF_BOUNDS;\n }", "public void fillBoard() {\n List<Integer> fifteen = ArrayUtils.intArrayToList(SOLVED_BOARD);\n Collections.shuffle(fifteen, this.random);\n this.emptyTileIndex = fifteen.indexOf(0);\n this.matrix = fifteen.stream().mapToInt(i -> i).toArray();\n }", "public Board() {\n tiles = new int[3][3];\n int[] values = genValues(new int[]{1, 2, 3, 4, 5, 6, 7, 8, 0});\n\n int offset;\n for (int i = 0; i < 3; i++) {\n offset = 2 * i;\n tiles[i] = Arrays.copyOfRange(values, i + offset, i + offset + 3);\n }\n }", "public Integer[][] GetCurrentBoard()\n {\n return new Integer[2][3];\n }", "public Spatial boardCentre() {\r\n return tiles[2][2].tile;\r\n }", "public Tile getTile(int x, int y) {\n\t\tif (x < 0 || x >= width || y < 0 || y >= height) {\n\t\t\treturn Tile.voidTile;\n\t\t}\n\t\treturn tiles[x + y * width];\n\t}", "private Point2D getBoardPosition() {\n double size = getCellSize();\n double x = canvas.getWidth() / 2 - board.getWidth() * size / 2;\n double y = canvas.getHeight() / 2 - board.getHeight() * size / 2;\n\n return new Point2D(x, y);\n }", "public IImage createCheckerboard() {\n List<List<Pixel>> grid = new ArrayList<>();\n for (int i = 0; i < this.height; i++) {\n List<Pixel> row;\n // alternating between making rows starting with black or white tiles\n if (i % 2 == 0) {\n // start white\n for (int j = 0; j < this.tileSize; j++) {\n row = createRow(255, 0, (i * this.tileSize) + j);\n grid.add(row);\n }\n }\n else {\n // start black\n for (int m = 0; m < this.tileSize; m++) {\n row = createRow(0, 255, (i * this.tileSize) + m);\n grid.add(row);\n }\n }\n }\n return new Image(grid, 255);\n }", "private void initialiseBoard() {\r\n\t\t//Set all squares to EMPTY\r\n\t\tfor(int x = 0; x < board.getWidth(); x++) {\r\n\t\t\tfor(int y = 0; y < board.getHeight(); y++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), x, y);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Assign player tiles\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_ONE_TILE), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_TWO_TILE), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y);\r\n\t\t\r\n\t\t//Assign Creation tiles\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_ONE_POSITION_X+3, Board.PLAYER_ONE_POSITION_Y+3);\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_TWO_POSITION_X-3, Board.PLAYER_TWO_POSITION_Y-3);\r\n\t\t\r\n\t\t//Assign Out of Bounds tiles\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\t\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\t\r\n\t\t\r\n\t}", "final Piece get(int col, int row) {\r\n return board[col][row];\r\n }", "ArrayList<ArrayList<GamePiece>> makeBoard() {\n ArrayList<ArrayList<GamePiece>> row = new ArrayList<ArrayList<GamePiece>>();\n for (int i = 0; i < this.width; i++) {\n ArrayList<GamePiece> column = new ArrayList<GamePiece>();\n for (int j = 0; j < this.height; j++) {\n GamePiece temp = new GamePiece(i, j);\n column.add(temp);\n nodes.add(temp);\n }\n row.add(column);\n }\n return row;\n }", "public Pawn getPawn(int row, int column) {\n\t\treturn boardGrid[row][column];\n\t}", "public Tile getTile(int x, int y) {\n\t\tif (x < 0 || x >= (this.width / Tile.WIDTH) || y < 0 || y >= (this.height / Tile.HEIGHT)) {\n//\t\t\tSystem.out.println(x + \" \" + y + \" \" + \"comes heere\");\n\t\t\treturn VoidTiled.getInstance();\n\t\t}\n\t\treturn tiles[x + y * (this.width / Tile.WIDTH)];\n\t}", "public abstract boolean getCell(int x, int y);", "@Override\n\tpublic Piece view(Position boardPosition) {\n\t\tPiece temp;\n\t\ttemp = grid[boardPosition.row][boardPosition.col];\n\t\treturn temp;\n\t}", "public void renderBoard(){\n for (int k = 0; k < grid.length; k++)\n for (int m = 0; m < grid[k].length; m++)\n grid[k][m] = 0;\n\n // fill the 2D array using information for non-empty tiles\n for (Cell c : game.getNonEmptyTiles())\n grid[c.getRow()][c.getCol()] = c.getValue();\n }", "public static int[][] createBoard() {\r\n\t\t\r\n\t\tint[][] board = new int [8][8];\r\n\t\t//printing the red solduers\r\n\t\tfor (int line =0,column=0;line<3;line=line+1){\r\n\t\t\tif (line%2==0){column=0;}\r\n\t\t\telse {column=1;}\r\n\t\t\tfor (;column<8;column=column+2){\r\n\t\t\t\tboard [line][column] = 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//printing the blu solduers\r\n\t\tfor (int line =5,column=0;line<8;line=line+1){\r\n\t\t\tif (line%2==0){column=0;}\r\n\t\t\telse {column=1;}\r\n\t\t\tfor (;column<8;column=column+2){\r\n\t\t\t\tboard [line][column] = -1;\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t\treturn board;\r\n\t}", "int getCell(int x, int y) {\n try {\n return hiddenGrid[x][y];\n } catch (IndexOutOfBoundsException hiddenIndex) {}\n return hiddenGrid[x][y];\n }", "private void setTile(int row, int col, int value) {\n //first make sure the parameters are reasonable values\n if (row < 0 || row > 2 || col < 0 || col > 2) {\n throw new IllegalArgumentException(\"Passed bad index values to setTile()\");\n }\n tiles[row][col] = value;\n }", "public Tile getTile(int x, int y)\n\t{\n\t\t\n\t\tif(x < 0 || y < 0 || x >= width || y >= height)\n\t\t{\n\t\t\tSystem.out.println(\"wrong\");\n\n\t\t\treturn Tile.dirt;\n\t\t}\n\t\t\n\t\tTile t = Tile.tiles[worldTiles[x][y]];\n\t\t// if the tile is null returns dirt on default\n\t\tif(t == null)\n\t\t{\n\t\t\tSystem.out.println(\"null\");\n\n\t\t\treturn Tile.dirt;\n\t\t}\n\t\treturn t;\n\t}", "private int indexOfBoard(int no) {\n return 0;\n }", "Square getSquare(int x, int y){\n return board[x][y];\n }", "public Tile getTileAt(Point position) {\n\t\treturn getTileAt(position.x, position.y);\n\t}", "public Boards getView(Long bno);", "public Tile getTile(Coordinaat crd){\n\n for(int Y=0; Y<size; Y++){\n for(int X=0; X<size; X++){\n if(crd.compareTo(tiles[X][Y].getCoordinaat()) == 0){\n return tiles[X][Y];\n }\n }\n }\n \n return null;\n }", "public Cell getCell(int dim, int row, int col) {\n\n\t\treturn board[dim][row][col];\n\n\t}", "public static Tile[][] setUpMap() {\n\n Tile[][] tiles = new Tile[5][9];\n String[][] defaultMapLayout = GameMap.getMapLayout();\n\n for (int i = 0; i < 5; i++) {\n\n for (int j = 0; j < 9; j++) {\n\n String tileType = defaultMapLayout[i][j];\n\n if (tileType.equals(\"P\")) {\n Tile newTileName = new Plain();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"R\")) {\n Tile newTileName = new River();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M1\")) {\n Tile newTileName = new Mountain1();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M2\")) {\n Tile newTileName = new Mountain2();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M3\")) {\n Tile newTileName = new Mountain3();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"SM\")) {\n Tile newTileName = new SwampMonster();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"O\")) {\n Tile newTileName = new Ocean();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"G\")) {\n Tile newTileName = new Grass();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"V\")) {\n Tile newTileName = new Volcano();\n tiles[i][j] = newTileName;\n\n }else {\n Tile newTileName = new Plain();\n tiles[i][j] = newTileName;\n newTileName.setOwner(null);\n }\n\n }\n }\n return tiles;\n }", "private void generateBoard(){\n\t}", "public void printTiles() {\r\n for (int row=0; row<BOARD_MAX_WIDTH; row++) {\r\n for (int col=0; col<BOARD_MAX_WIDTH; col++) {\r\n System.out.print(tiles[row][col]);\r\n }\r\n System.out.println();\r\n }\r\n System.out.println();\r\n }", "public BlockFor2048[][] getBoard() {\n\t\treturn this.myBoard;\n\t}", "private void fillBoard() {\n\n boardMapper.put(1, new int[]{0, 0});\n boardMapper.put(2, new int[]{0, 1});\n boardMapper.put(3, new int[]{0, 2});\n boardMapper.put(4, new int[]{1, 0});\n boardMapper.put(5, new int[]{1, 1});\n boardMapper.put(6, new int[]{1, 2});\n boardMapper.put(7, new int[]{2, 0});\n boardMapper.put(8, new int[]{2, 1});\n boardMapper.put(9, new int[]{2, 2});\n\n }", "public static int[] findTile(int number, PuzzleState state) {\r\n\t\tint[] location = new int[2];\r\n\t\t\r\n\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\tfor (int j = 0; j < 4; j++)\r\n\t\t\t\tif (state.tiles[i][j] == number) {\r\n\t\t\t\t\tlocation[0] = i;\r\n\t\t\t\t\tlocation[1] = j;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t}\r\n\t\treturn location;\r\n\t}", "protected abstract void position(int[][] gameboard, int col, int row);", "public static BoardCell boardCell(int row, int column) {\n\t\tBoardCell boardCell = new BoardCell(row, column);\n\t\treturn boardCell;\n\t}", "Color get(int col, int row) {\n return _board[row][col]; // FIXED.\n }", "int getColumn(int x, int y){\n return board[x][y].getColumn();\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 int colPos(int pos) {\r\n return pos % squareDimension;\r\n }", "public int get_cell(int row,int col)\n{\n\treturn cell[row][col] ;\t\n}", "public Board createBoard(Square[][] grid) {Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\");assert grid != null; Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1053\"); Board board = new Board(grid); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1079\"); int width = board.getWidth(); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1115\"); int height = board.getHeight(); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1148\"); for (int x = 0; x < width; x++) {\n\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\tSquare square = grid[x][y];\n\t\t\t\tfor (Direction dir : Direction.values()) {\n\t\t\t\t\tint dirX = (width + x + dir.getDeltaX()) % width;\n\t\t\t\t\tint dirY = (height + y + dir.getDeltaY()) % height;\n\t\t\t\t\tSquare neighbour = grid[dirX][dirY];\n\t\t\t\t\tsquare.link(neighbour, dir);\n\t\t\t\t}\n\t\t\t}\n\t\t} Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1183\"); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1552\");return board ; }", "private int hitWhichSquare(float testX, float testY) {\r\n int row = 0;\r\n int col = 0;\r\n\r\n // width of each square in the board\r\n float tileWidth = scaleFactor * width / 4;\r\n float tileHeight = scaleFactor * height / 4;\r\n\r\n // where is the top and left of the board right now\r\n float leftX = dx + (1-scaleFactor) * width / 2;\r\n float topY = dy + (1-scaleFactor) * height / 2;\r\n\r\n\r\n for (int i = 0; i < 4; i += 1) {\r\n // test if we are in column i (between the i line and i+1 line)\r\n // leftmost vertical line = line 0\r\n // example: if we are between line 2 and line 3, we are in row 2\r\n if (testX < (i+1) * tileWidth + leftX && i * tileWidth + leftX < testX) {\r\n col = i;\r\n }\r\n\r\n // test if we are in row i (between the i line and i+1 line)\r\n // topmost horizontal line = line 0\r\n // example: if we are between line 0 and line 1, we are in row 0\r\n if (testY < (i+1) * tileHeight + topY && i * tileHeight + topY < testY) {\r\n row = i;\r\n }\r\n }\r\n return row * 4 + col;\r\n }", "public void SpiritBomb()\r\n {\r\n\r\n\t \r\n\t\tLocation loc = new Location(userRow+1, userCol);\r\n\t\tLocation loc1 = new Location(userRow+1, userCol1);\r\n\t\tLocation loc2 = new Location(userRow+1, userCol2);\r\n\t\tLocation loc3 = new Location(userRow+1, userCol3);\r\n\t\t\r\n\t\tLocation loc4 = new Location(userRow, userCol);\r\n\t\tLocation loc5 = new Location(userRow, userCol1);\r\n\t\tLocation loc6 = new Location(userRow, userCol2);\r\n\t\tLocation loc7 = new Location(userRow, userCol3);\r\n\t\t\r\n\t\tLocation loc8 = new Location(userRow-1, userCol);\r\n\t\tLocation loc9 = new Location(userRow-1, userCol1);\r\n\t\tLocation loc10 = new Location(userRow-1, userCol2);\r\n\t\tLocation loc11 = new Location(userRow-1, userCol3);\r\n\t\t\r\n\t\tLocation loc12 = new Location(userRow-2, userCol);\r\n\t\tLocation loc13= new Location(userRow-2, userCol1);\r\n\t\tLocation loc14 = new Location(userRow-2, userCol2);\r\n\t\tLocation loc15 = new Location(userRow-2, userCol3);\r\n\r\n\t \r\n\r\n\r\n\r\n\t\t\r\n\t\tLocation base1 = new Location(userRow,0);\r\n\t\t\r\n\t\t\tgrid.setImage(base1, \"FSpiritHold.png\");\r\n\t\t\t\r\n\t\tfor(int a = 0; a<9; a++) {\r\n\t\tif(userCol>0 && userCol3 !=15 && userCol2!=15 && userCol1!=15 && userCol!=15 && userRow>0)\r\n\t\t{\r\n\t\r\n\t\t\t Location next101 = new Location(userRow+1,userCol);\r\n\t\t\t Location next102 = new Location(userRow+1,userCol1);\r\n\t\t\t Location next103 = new Location(userRow+1,userCol2);\r\n\t\t\t Location next104 = new Location(userRow+1,userCol3);\r\n\r\n\t\t\t\tLocation next201 = new Location(userRow,userCol);\r\n\t\t\t\tLocation next202 = new Location(userRow,userCol1);\r\n\t\t\t\tLocation next203 = new Location(userRow,userCol2);\r\n\t\t\t\tLocation next204 = new Location(userRow,userCol3);\r\n\t\t\t\t\r\n\t\t\t\tLocation next301 = new Location(userRow-1,userCol);\r\n\t\t\t\tLocation next302 = new Location(userRow-1,userCol1);\r\n\t\t\t\tLocation next303 = new Location(userRow-1,userCol2);\r\n\t\t\t\tLocation next304 = new Location(userRow-1,userCol3);\r\n\t\t\t\t\r\n\t\t\t Location next401 = new Location(userRow-2,userCol);\r\n\t\t\t Location next402 = new Location(userRow-2,userCol1);\r\n\t\t\t Location next403 = new Location(userRow-2,userCol2);\r\n\t\t\t Location next404 = new Location(userRow-2,userCol3);\r\n\t\t\t userCol+=1;\r\n\t\t\t userCol1+=1;\r\n\t\t\t\tuserCol2+=1;\r\n\t\t\t\tuserCol3+=1;\r\n\t\t\t grid.setImage(next101, \"SB401.png\");\r\n\t\t\t grid.setImage(loc1, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next102, \"SB402.png\");\r\n\t\t\t grid.setImage(loc2, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next103, \"SB403.png\");\r\n\t\t\t grid.setImage(loc2, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next104, \"SB404.png\");\r\n\t\t\t grid.setImage(loc3, null);\r\n\r\n\t\t\t\t\r\n\t\t\t\tgrid.setImage(next201, \"SB301.png\");\r\n\t\t\t grid.setImage(loc4, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next202, \"SB302.png\");\r\n\t\t\t grid.setImage(loc5, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next203, \"SB303.png\");\r\n\t\t\t grid.setImage(loc6, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next204, \"SB304.png\");\r\n\t\t\t grid.setImage(loc7, null);\r\n\r\n\t\t\t\t\r\n\t\t\t\tgrid.setImage(next301, \"SB201.png\");\r\n\t\t\t grid.setImage(loc8, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next302, \"SB202.png\");\r\n\t\t\t grid.setImage(loc9, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next303, \"SB203.png\");\r\n\t\t\t grid.setImage(loc10, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next304, \"SB204.png\");\r\n\t\t\t grid.setImage(loc11, null);\r\n\r\n\t\t\t\t\r\n\t\t\t\tgrid.setImage(next401, \"SB101.png\");\r\n\t\t\t grid.setImage(loc12, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next402, \"SB102.png\");\r\n\t\t\t grid.setImage(loc13, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next403, \"SB103.png\");\r\n\t\t\t grid.setImage(loc14, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next404, \"SB104.png\");\r\n\t\t\t grid.setImage(loc15, null);\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t \r\n\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n }\r\n }", "String[][] getBoard();" ]
[ "0.7359542", "0.72795373", "0.72189766", "0.6972857", "0.6673669", "0.6565264", "0.64450616", "0.6364548", "0.6345512", "0.6338792", "0.6257073", "0.62290925", "0.62072897", "0.61996996", "0.61937577", "0.6175227", "0.61248523", "0.6121513", "0.6108579", "0.61070657", "0.6101718", "0.60909647", "0.60781455", "0.60620433", "0.60604453", "0.6046351", "0.6045814", "0.6042849", "0.6038839", "0.60279536", "0.6025188", "0.6010919", "0.5996982", "0.59813064", "0.5963134", "0.59612226", "0.5944787", "0.5935903", "0.59325564", "0.5911188", "0.59085524", "0.5900271", "0.5899171", "0.58988976", "0.58956504", "0.58801585", "0.58773005", "0.5869966", "0.585499", "0.5846902", "0.584467", "0.58415717", "0.5840447", "0.583837", "0.5836999", "0.5835476", "0.5815891", "0.58144176", "0.5796243", "0.5795446", "0.57926047", "0.5789838", "0.57700646", "0.57684225", "0.57664067", "0.5748884", "0.57399637", "0.5732113", "0.572706", "0.5720187", "0.5717461", "0.57152987", "0.5714952", "0.57080615", "0.5703985", "0.56937206", "0.56897324", "0.5687976", "0.56862104", "0.5677195", "0.56770283", "0.56757385", "0.56674063", "0.56592983", "0.56562555", "0.56478924", "0.56465673", "0.5645874", "0.56424034", "0.5636945", "0.56360555", "0.56358755", "0.5633148", "0.56261957", "0.56259143", "0.56240946", "0.5623685", "0.56197834", "0.56189626", "0.5616144" ]
0.6944124
4
Actually it returns a tilesNode
public Node getBoardNode() { return tilesNode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Tiles getTiles() {\n return tiles;\n }", "@Override\n protected void generateTiles() {\n }", "public Tile getTileAt(Position p);", "public abstract Tile getTileAt(int x, int y);", "@Override\n\tprotected void generateTiles() {\n\t}", "public Tile[] generateTiles() {\n return null;\n }", "public abstract TiledMapTileSet getTileSet();", "Tile getTile() {\n if (tiles.size() == 0) {\n return null;\n } else {\n int randomIndex = ThreadLocalRandom.current().nextInt(0, tiles.size());\n Tile result = tiles.get(randomIndex);\n tiles.remove(randomIndex);\n return result;\n }\n }", "public Tile[][] getTiles() {\n return tiles;\n }", "public interface TileManager {\r\n\t\r\n\tpublic String encode(long id);\r\n\t\r\n\tpublic int getNumTilesX();\r\n\t\r\n\tpublic int getNumTilesY();\r\n\t\r\n\tpublic double getTileSize();\r\n\t\r\n\tpublic String getCRS();\r\n\t\r\n\tpublic int[] getTileCoordinates(double[] bbox);\r\n\t\r\n\tpublic void setTiles(double[] geobbox);\r\n\t\r\n\tpublic List<String> getTiles(double[] geobbox);\r\n\t\r\n\tpublic List<Tile> getTiles();\r\n\t\r\n\tpublic double[] getWorldBBox();\r\n\t\t\r\n\tpublic List<String> getNeighourTiles(String code, List<String> directions);\r\n\t\r\n}", "private List<Tile> makeTiles() {\n List<Tile> tiles = new ArrayList<>();\n Board board = (Board) boardManager.getBoard();\n final int numTiles = board.getNumRows() * board.getNumCols();\n for (int tileNum = 0; tileNum != numTiles; tileNum++) {\n tiles.add(new Tile(tileNum + 1, tileNum, 4));\n }\n\n return tiles;\n }", "public Tile getTile() { return tile; }", "public Tile[][] getTiles() {\n return tiles;\n }", "protected Tile[] newTiles() {\n int len = getWidthInTiles() * getHeightInTiles();\n Tile[] t = new Tile[ len ];\n for(int i = 0; i < len; i++) {\n t[i] = null;\n }\n return t;\n }", "private void getTiles() {\n for (int i=0; i<rows.size(); i++) {\n LinearLayout row = rows.get(i);\n int count = row.getChildCount();\n for (int j=0; j<count; j++) {\n LinearLayout tile = (LinearLayout) row.getChildAt(j);\n TextView textView = (TextView) tile.getChildAt(1);\n String text = (String) textView.getText();\n String id = \"tile\" + text.replaceAll(\"\\\\s+\",\"\");\n tiles.put(id, tile);\n }\n }\n }", "public Tile getTile() {\n return tile;\n }", "public Tile getTile() {\n return tile;\n }", "TileItem getCurrentTile();", "private void createTile(){\n for(int i = 0; i < COPY_TILE; i++){\n for(int k = 0; k < DIFF_TILES -2; k++){\n allTiles.add(new Tile(k));\n }\n }\n }", "public Tile getTile(int x, int y){\n\t\tif(x < 0 || y < 0 || x >= width || y >= height){\r\n\t\t\treturn Tile.grassTile;\r\n\t\t}\r\n\t\t\r\n\t\t//tiles[x][y] give us the id and the tiles[id] is the texture\r\n\t\tTile t = Tile.tiles[tiles[x][y]]; \r\n\t\tif(t == null){\r\n\t\t\t//If you try to access undefined tile index, return dirt tile as default\r\n\t\t\treturn Tile.dirtTile; \r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn t;\r\n\t\t}\r\n\t}", "public Tile getTile(int x, int y) {\n\t\tif (x < 0 || x >= (this.width / Tile.WIDTH) || y < 0 || y >= (this.height / Tile.HEIGHT)) {\n//\t\t\tSystem.out.println(x + \" \" + y + \" \" + \"comes heere\");\n\t\t\treturn VoidTiled.getInstance();\n\t\t}\n\t\treturn tiles[x + y * (this.width / Tile.WIDTH)];\n\t}", "public static StackPane createBoard() {\n StackPane stackPane = new StackPane();\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n Tile tile = new Tile();\n Coordinates coordinates = new Coordinates(i, j);\n tile.setTextValue(\"\");\n tile.setTranslateX(i * 50);\n tile.setTranslateY(j * 50);\n tile.setEditable(true);\n tile.setTileId(coordinates);\n stackPane.getChildren().add(tile);\n tiles.put(coordinates, tile);\n }\n }\n return stackPane;\n }", "public ArrayList<Tile> getTiles(){\r\n return tiles;\r\n }", "public Tile getTile() {\n return _tile;\n }", "public SetOfTiles getSetOfTiles();", "public TilesManager getTilesManager() {\n return this.tilesManager;\n }", "public void initTiles() {\n\t\ttileList.add(new Go());\n\n\t\t// Brown properties\n\t\tProperty mediterranean = new Property(\"Mediterranean\");\n\t\tProperty balticAve = new Property(\"Baltic Avenue\");\n\n\t\t// Light blue properties\n\t\tProperty orientalAve = new Property(\"Oriental Avenue\");\n\t\tProperty vermontAve = new Property(\"Vermont Avenue\");\n\t\tProperty connecticutAve = new Property(\"Connecticut Avenue\");\n\n\t\t// Magenta properties\n\t\tProperty stCharles = new Property(\"St. Charles Place\");\n\t\tProperty statesAve = new Property(\"States Avenue\");\n\t\tProperty virginiaAve = new Property(\"Virginia Avenue\");\n\n\t\t// Orange properties\n\t\tProperty stJames = new Property(\"St. James Place\");\n\t\tProperty tennesseeAve = new Property(\"Tennessee Avenue\");\n\t\tProperty newYorkAve = new Property(\"New York Avenue\");\n\n\t\t// Red properties\n\t\tProperty kentuckyAve = new Property(\"Kentucky Avenue\");\n\t\tProperty indianaAve = new Property(\"Indiana Avenue\");\n\t\tProperty illinoisAve = new Property(\"Illinois Avenue\");\n\n\t\t// Yellow Properties\n\t\tProperty atlanticAve = new Property(\"Atlantic Avenue\");\n\t\tProperty ventnorAve = new Property(\"Ventnor Avenue\");\n\t\tProperty marvinGard = new Property(\"Marvin Gardins\");\n\n\t\t// Green Properties\n\t\tProperty pacificAve = new Property(\"Pacific Avenue\");\n\t\tProperty northCar = new Property(\"North Carolina Avenue\");\n\t\tProperty pennsylvannia = new Property(\"Pennsylvania Avenue\");\n\n\t\t// Dark blue properties\n\t\tProperty parkPlace = new Property(\"Park Place\");\n\t\tProperty boardWalk = new Property(\"Boardwalk\");\n\n\t\t// Tax tiles\n\t\tTaxTile incomeTax = new TaxTile(\"Income Tax\", 200);\n\t\tTaxTile luxuryTax = new TaxTile(\"Luxury Tax\", 100);\n\n\t\t// Utilities\n\t\tUtility electric = new Utility(\"Electric Company\");\n\t\tUtility water = new Utility(\"Water Works\");\n\n\t\t// Railroads\n\t\tRailroad reading = new Railroad(\"Reading\");\n\t\tRailroad pennRail = new Railroad(\"Pennsylvania\");\n\t\tRailroad bno = new Railroad(\"B & O\");\n\t\tRailroad shortLine = new Railroad(\"Short Line\");\n\n\t\t// Chance and community chest\n\t\tChance chance = new Chance();\n\t\tCommunity chest = new Community();\n\n\t\t// Adds the properties by color in accordance with their position on the board\n\t\t// adds color + placement of piece to a list of their respective colors\n\t\tbrown.add(1);\n\t\tbrown.add(3);\n\t\trailroads.add(5);\n\t\tlightBlue.add(6);\n\t\tlightBlue.add(8);\n\t\tlightBlue.add(9);\n\t\tmagenta.add(11);\n\t\tutilities.add(12);\n\t\tmagenta.add(13);\n\t\tmagenta.add(14);\n\t\trailroads.add(15);\n\t\torange.add(16);\n\t\torange.add(18);\n\t\torange.add(19);\n\t\tred.add(21);\n\t\tred.add(23);\n\t\tred.add(24);\n\t\trailroads.add(25);\n\t\tyellow.add(26);\n\t\tyellow.add(27);\n\t\tutilities.add(28);\n\t\tyellow.add(29);\n\t\tgreen.add(31);\n\t\tgreen.add(32);\n\t\tgreen.add(34);\n\t\trailroads.add(35);\n\t\tdarkBlue.add(37);\n\t\tdarkBlue.add(39);\n\n\t\t// tileList is the list of tiles of the board where each tile is representative of a place on the board\n\t\t// adds each tile is chronological order beginning of the board \"go\"\n\t\t//this list includes: properties, taxes, railroads, chance, community chest\n\t\t\n\t\ttileList.add(new Go());\n\n\t\ttileList.add(mediterranean);\n\t\ttileList.add(chest);\n\t\ttileList.add(balticAve);\n\t\ttileList.add(incomeTax);\n\t\ttileList.add(reading);\n\t\ttileList.add(orientalAve);\n\t\ttileList.add(chance);\t\n\t\ttileList.add(vermontAve);\n\t\ttileList.add(connecticutAve);\n\n\t\ttileList.add(new Jail());\n\t\t\t\n\t\ttileList.add(stCharles);\n\t\ttileList.add(electric);\t\t\t\n\t\ttileList.add(statesAve);\t\t\t\n\t\ttileList.add(virginiaAve);\n\t\ttileList.add(pennRail);\n\t\ttileList.add(stJames);\t\n\t\ttileList.add(chest);\n\t\ttileList.add(tennesseeAve);\t\t\t\n\t\ttileList.add(newYorkAve);\n\n\t\ttileList.add(new FreeParking());\n\t\t\t\n\t\ttileList.add(kentuckyAve);\t\t\n\t\ttileList.add(chance);\t\n\t\ttileList.add(indianaAve);\t\t\t\n\t\ttileList.add(illinoisAve);\n\t\ttileList.add(bno);\n\t\ttileList.add(atlanticAve);\t\t\t\n\t\ttileList.add(ventnorAve);\n\t\ttileList.add(water);\n\t\ttileList.add(marvinGard);\n\n\t\ttileList.add(new GoToJail());\n\t\t\t\t\t\n\t\ttileList.add(pacificAve);\t\t\t\n\t\ttileList.add(northCar);\n\t\ttileList.add(chest);\t\t\t\n\t\ttileList.add(pennsylvannia);\n\t\ttileList.add(shortLine);\n\t\ttileList.add(chance);\n\t\ttileList.add(parkPlace);\n\t\ttileList.add(luxuryTax);\n\t\ttileList.add(boardWalk);\n\t}", "private void createTiles() {\n\t\tint tile_width = bitmap.getWidth() / gridSize;\n\t\tint tile_height = bitmap.getHeight() / gridSize;\n\n\t\tfor (short row = 0; row < gridSize; row++) {\n\t\t\tfor (short column = 0; column < gridSize; column++) {\n\t\t\t\tBitmap bm = Bitmap.createBitmap(bitmap, column * tile_width,\n\t\t\t\t\t\trow * tile_height, tile_width, tile_height);\n\n\t\t\t\t// if final, Tile -> blank\n\t\t\t\tif ((row == gridSize - 1) && (column == gridSize - 1)) {\n\t\t\t\t\tbm = Bitmap.createBitmap(tile_width, tile_height,\n\t\t\t\t\t\t\tbm.getConfig());\n\t\t\t\t\tbm.eraseColor(Color.WHITE);\n\t\t\t\t\ttheBlankTile = new Tile(bm, row, column);\n\t\t\t\t\ttiles.add(theBlankTile);\n\t\t\t\t} else {\n\t\t\t\t\ttiles.add(new Tile(bm, row, column));\n\t\t\t\t}\n\t\t\t} // end column\n\t\t} // end row\n\t\tbitmap.recycle();\n\n\t}", "@Override\r\n\tpublic void createSprites(World world) {\r\n \t// the height of the map since 0,0 in Tiled is in the top left\r\n // compared to the TiledMap's 0,0 in the bottom left\r\n int height = 2400;\r\n\r\n // file locations of different trees\r\n TextureAtlas atlas = new TextureAtlas(\"Game Tilesets/Trees/Trees.pack\");\r\n Skin skin = new Skin();\r\n skin.addRegions(atlas);\r\n TextureRegion T2 = skin.getRegion(\"T2\");\r\n TextureRegion T3 = skin.getRegion(\"T3\");\r\n TextureRegion T7 = skin.getRegion(\"T7\");\r\n TextureRegion T9 = skin.getRegion(\"T9\");\r\n TextureRegion T10 = skin.getRegion(\"T10\");\r\n \r\n // add all of the trees\r\n \tthis.addSprite(new ObjectSprites(T2, 236, height - 1490));\r\n \r\n this.addSprite(new ObjectSprites(T9, 622, height - 1907));\r\n this.addSprite(new ObjectSprites(T9, 683, height - 1687));\r\n this.addSprite(new ObjectSprites(T9, 174, height - 1851));\r\n this.addSprite(new ObjectSprites(T9, 361, height - 1643));\r\n \r\n this.addSprite(new ObjectSprites(T10, 572, height - 1354));\r\n this.addSprite(new ObjectSprites(T10, 0, height - 1475));\r\n this.addSprite(new ObjectSprites(T10, -9, height - 1707));\r\n this.addSprite(new ObjectSprites(T10, 675, height - 1479));\r\n this.addSprite(new ObjectSprites(T10, 416, height - 1903));\r\n\r\n this.addSprite(new ObjectSprites(T3, 428, height - 1453));\r\n this.addSprite(new ObjectSprites(T3, 596, height - 1122));\r\n this.addSprite(new ObjectSprites(T3, -32, height - 988));\r\n this.addSprite(new ObjectSprites(T3, 476, height - 864));\r\n this.addSprite(new ObjectSprites(T3, 640, height - 725));\r\n this.addSprite(new ObjectSprites(T3, 424, height - 2123));\r\n \r\n this.addSprite(new ObjectSprites(T7, 145, height - 1347));\r\n this.addSprite(new ObjectSprites(T7, 83, height - 1935));\r\n this.addSprite(new ObjectSprites(T7, 585, height - 2031));\r\n this.addSprite(new ObjectSprites(T7, 290, height - 2304));\r\n \r\n Bandit b1 = new Bandit();\r\n b1.defineBody(world, 215, 1305);\r\n super.addSprite(b1);\r\n \r\n Bandit b2 = new Bandit();\r\n b2.defineBody(world, 60, 1445);\r\n super.addSprite(b2);\r\n \r\n Bandit b3 = new Bandit();\r\n b3.defineBody(world, 90, 1640);\r\n super.addSprite(b3);\r\n \r\n Bandit b4 = new Bandit();\r\n b4.defineBody(world, 530, 1740);\r\n super.addSprite(b4);\r\n \r\n Bandit b5 = new Bandit();\r\n b5.defineBody(world, 730, 1655);\r\n super.addSprite(b5);\r\n \r\n Bandit b6 = new Bandit();\r\n b6.defineBody(world, 90, 2235);\r\n super.addSprite(b6);\r\n \r\n Bandit b7 = new Bandit();\r\n b7.defineBody(world, 715, 1490);\r\n super.addSprite(b7);\r\n \r\n Bandit b8 = new Bandit();\r\n b8.defineBody(world, 318, 1605);\r\n super.addSprite(b8);\r\n }", "List<Tile> getAdjacentTiles();", "public static Tile[][] setUpMap() {\n\n Tile[][] tiles = new Tile[5][9];\n String[][] defaultMapLayout = GameMap.getMapLayout();\n\n for (int i = 0; i < 5; i++) {\n\n for (int j = 0; j < 9; j++) {\n\n String tileType = defaultMapLayout[i][j];\n\n if (tileType.equals(\"P\")) {\n Tile newTileName = new Plain();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"R\")) {\n Tile newTileName = new River();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M1\")) {\n Tile newTileName = new Mountain1();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M2\")) {\n Tile newTileName = new Mountain2();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M3\")) {\n Tile newTileName = new Mountain3();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"SM\")) {\n Tile newTileName = new SwampMonster();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"O\")) {\n Tile newTileName = new Ocean();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"G\")) {\n Tile newTileName = new Grass();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"V\")) {\n Tile newTileName = new Volcano();\n tiles[i][j] = newTileName;\n\n }else {\n Tile newTileName = new Plain();\n tiles[i][j] = newTileName;\n newTileName.setOwner(null);\n }\n\n }\n }\n return tiles;\n }", "public LinearLayout getTile(String text) {\n return tiles.get(text);\n }", "private Tile getTile(int x, int y) {\n\t\tif (x < 0 || x > width || y < 0 || y > height) return Tile.VOID;\n\t\treturn Tile.tiles[tiles[x + y * width]];\n\t}", "public Tile getTile(int x, int y) {\r\n assert (tiles != null);\r\n \r\n if (x < 0 || y < 0 || x >= width || y >= height) {\r\n return Tile.floorTile;\r\n }\r\n \r\n Tile t = Tile.tiles[tiles[x][y]];\r\n if (t == null) {\r\n return Tile.floorTile;\r\n }\r\n return t;\r\n }", "protected Tile getTile( Tile[] tiles, int x, int y ) {\n return tiles[ (y * getHeightInTiles()) + x ];\n }", "public Tile createTile(int i, int x, int y) {\n\t\tif (Constants.INTERACTIVE_TILES.contains(\" \" + i + \" \")) {\n\t\t\treturn new InteractiveTile(i, x, y);\n\t\t} else if (Constants.ITEM_IDS.contains(\" \" + i + \" \")\n\t\t\t\t|| Constants.IOBJECTS_IDS.contains(\" \" + i + \" \")\n\t\t\t\t|| Constants.CREATURE_IDS.contains(\" \" + i + \" \")) {\n\t\t\treturn new Tile(0, x, y);\n\t\t} else {\n\n\t\t\treturn new Tile(i, x, y);\n\t\t}\n\t}", "public Tile getTileAt(Point position) {\n\t\treturn getTileAt(position.x, position.y);\n\t}", "public TileEntity a_()\n {\n return new TileMarker();\n }", "@Override\n public Tile[][] getGrid() { return grid; }", "public Tile[][] getTileMap(){\r\n\t\treturn tileMap;\r\n\t}", "private Tile getTileAt(int x, int y)\n {\n int tileAt = y * TILES_PER_ROW + x;\n \n if (tileAt >= tileset.getTileCount())\n {\n return null;\n }\n else \n {\n return tileset.getTile(tileAt);\n }\n }", "public TileMap getMyTileMap() {\n return this.myTileMap;\n }", "@Override\n public SquareTile getTile(int x, int y) {\n // Check that the location is inside the grid\n if (x < 0 || x >= width || y < 0 || y >= height)\n return null;\n\n return tiles[x * width + y];\n }", "private Array<Tile>[] walk() {\n float targetY = currentTile.y + 1;\n Vector2 previousTile = new Vector2(currentTile.x, currentTile.y);\n\n Array<Vector2> tiles = new Array<Vector2>();\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n\n while(currentTile.y < targetY) {\n float rnd = random.nextFloat();\n\n if(rnd > 0.75f) { // up\n Array<Tile> grassRow = new Array<Tile>();\n Array<Tile> treeRow = new Array<Tile>();\n\n for(int x = 1; x <= 5; x++) {\n Vector2 vector = new Vector2(x, currentTile.y);\n\n GrassNEW grass = grassPool.obtain();\n grass.init(vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n grassRow.add(grass);\n\n if(!tiles.contains(vector, false)) {\n if(random.nextFloat() > 0.3) {\n TreeNEW tree = treePool.obtain();\n tree.init(vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n treeRow.add(tree);\n }\n } else {\n if(random.nextFloat() > 0.99) {\n Collectible power = new PowerUpSpikes(world, spikesTexture, vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n collectibles.add(power);\n } else {\n if(random.nextFloat() > 0.5) {\n Coin coin = new Coin(world, coinTexture, vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n collectibles.add(coin);\n }\n }\n }\n }\n\n currentTile.add(0, 1);\n\n Array<Tile>[] ret = new Array[2];\n ret[0] = grassRow;\n ret[1] = treeRow;\n\n return ret;\n } else if(rnd > 0.375) { // right\n if(currentTile.x < 5 && Math.abs(previousTile.x - currentTile.x) <= 2) {\n currentTile.add(1, 0);\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n }\n } else { // left\n if(currentTile.x > 1 && Math.abs(previousTile.x - currentTile.x) <= 2) {\n currentTile.add(-1, 0);\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n }\n }\n }\n\n return null; // will never happen\n }", "public Board twin() {\n if (tiles[0][0] != 0 && tiles[0][1] != 0)\n return new Board(tiles, new Position(0, 0), new Position(0, 1));\n else\n return new Board(tiles, new Position(1, 0), new Position(1, 1));\n }", "private Tile getTileAt(Position p) {\n return getTileAt(p.getRow(), p.getCol());\n }", "public Tile getTile()\r\n\t{\r\n\t\tif(this.hasTiles())\r\n\t\t\treturn _tiles.remove(0);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "public TileView getTileView(int diksId) {\n if (mGrid != null) {\n try {\n for (int i = 0; i < mGrid.getCount(); i++) {\n TileView each = (TileView) mGrid.getChildAt(i);\n if (each != null && each.mDisk.getId() == diksId) {\n return each;\n }\n }\n } catch (Exception e) {\n }\n }\n\n return null;\n }", "public void initTiles()\n {\n PropertiesManager props = PropertiesManager.getPropertiesManager(); \n String imgPath = props.getProperty(MahjongSolitairePropertyType.IMG_PATH);\n int spriteTypeID = 0;\n SpriteType sT;\n \n // WE'LL RENDER ALL THE TILES ON TOP OF THE BLANK TILE\n String blankTileFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_IMAGE_NAME);\n BufferedImage blankTileImage = miniGame.loadImageWithColorKey(imgPath + blankTileFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileImage(blankTileImage);\n \n // THIS IS A HIGHLIGHTED BLANK TILE FOR WHEN THE PLAYER SELECTS ONE\n String blankTileSelectedFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_SELECTED_IMAGE_NAME);\n BufferedImage blankTileSelectedImage = miniGame.loadImageWithColorKey(imgPath + blankTileSelectedFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileSelectedImage(blankTileSelectedImage);\n \n // FIRST THE TYPE A TILES, OF WHICH THERE IS ONLY ONE OF EACH\n // THIS IS ANALOGOUS TO THE SEASON TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeATiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_A_TILES);\n for (int i = 0; i < typeATiles.size(); i++)\n {\n String imgFile = imgPath + typeATiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_A_TYPE);\n spriteTypeID++;\n }\n \n // THEN THE TYPE B TILES, WHICH ALSO ONLY HAVE ONE OF EACH\n // THIS IS ANALOGOUS TO THE FLOWER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeBTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_B_TILES);\n for (int i = 0; i < typeBTiles.size(); i++)\n {\n String imgFile = imgPath + typeBTiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_B_TYPE);\n spriteTypeID++;\n }\n \n // AND THEN TYPE C, FOR WHICH THERE ARE 4 OF EACH \n // THIS IS ANALOGOUS TO THE CHARACTER AND NUMBER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeCTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_C_TILES);\n for (int i = 0; i < typeCTiles.size(); i++)\n {\n String imgFile = imgPath + typeCTiles.get(i);\n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID); \n for (int j = 0; j < 4; j++)\n {\n initTile(sT, TILE_C_TYPE);\n }\n spriteTypeID++;\n }\n }", "public Tile getTile(int x, int y)\n\t{\n\t\t\n\t\tif(x < 0 || y < 0 || x >= width || y >= height)\n\t\t{\n\t\t\tSystem.out.println(\"wrong\");\n\n\t\t\treturn Tile.dirt;\n\t\t}\n\t\t\n\t\tTile t = Tile.tiles[worldTiles[x][y]];\n\t\t// if the tile is null returns dirt on default\n\t\tif(t == null)\n\t\t{\n\t\t\tSystem.out.println(\"null\");\n\n\t\t\treturn Tile.dirt;\n\t\t}\n\t\treturn t;\n\t}", "public BufferedImage getTile(int tilex, int tiley) {\n\t\t// System.out.println(tilex+\" || \"+tiley);\n\t\tif (this.bufImage == null) {\n\t\t\treturn null;\n\t\t}\n\t\ttry {\n\t\t\t// System.out.println(tilex*(this.tileSize+1)+1+\" | \"+tiley*(this.tileSize+1)+1);\n\t\t\treturn this.bufImage.getSubimage(tilex*(this.tileSize+1)+1, tiley*(this.tileSize+1)+1, this.tileSize, this.tileSize);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tdebug.DebugLog(\"Couldnt load tile subimage.If BLOCKSIZE==\" + this.tileSize + \" is correct, better check the sourcefile.\");\n\t\t\treturn new BufferedImage(0, 0, 0);\n\t\t}\n\t}", "public TileSelector(){\r\n super();\r\n \r\n }", "public int tileType(){\n\t\treturn this.type;\n\t}", "private VolaTile getCaveTile() {\n/* */ try {\n/* 2147 */ Zone z = Zones.getZone(this.tilex, this.tiley, false);\n/* 2148 */ return z.getOrCreateTile(this.tilex, this.tiley);\n/* */ }\n/* 2150 */ catch (NoSuchZoneException noSuchZoneException) {\n/* */ \n/* */ \n/* 2153 */ logger.log(Level.WARNING, \"No cave tile for \" + this.tilex + \", \" + this.tiley);\n/* 2154 */ return this;\n/* */ } \n/* */ }", "@Override\n public SquareTile getTile(Point location) {\n return getTile(location.getX(), location.getY());\n }", "public Tile getTile() {\n\t\treturn tile;\n\t}", "public Tile getTile(int x, int y) {\n\t\tif (x < 0 || x >= width || y < 0 || y >= height) {\n\t\t\treturn Tile.voidTile;\n\t\t}\n\t\treturn tiles[x + y * width];\n\t}", "public int getTileType() {\r\n\t\treturn 3;\r\n\t}", "public void createTiles() {\r\n Session session = sessionService.getCurrentSession();\r\n Campaign campaign = session.getCampaign();\r\n\r\n tilePane.getChildren().clear();\r\n List<Pc> pcs = null;\r\n try {\r\n pcs = characterService.getPlayerCharacters();\r\n } catch (MultiplePlayersException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n if (pcs != null) {\r\n pcs = pcs.stream().filter(pc -> campaign.getPcs().stream().anyMatch(\r\n campaignPc -> campaignPc.getId().equalsIgnoreCase(pc.getId())\r\n )).collect(Collectors.toList());\r\n\r\n for (Pc pc : pcs) {\r\n SortedMap<String, String> items = getTileItems(pc);\r\n Tile tile = new Tile(pc.getId(), pc.getName(), items);\r\n tile.setOnMouseClicked(mouseEvent -> {\r\n try {\r\n sessionService.updateParticipant(playerManagementService.getRegisteredPlayer().getId(), tile.getObjectId());\r\n } catch (EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n parentController.updateSession(sessionService.getCurrentSession());\r\n parentController.switchView();\r\n });\r\n tilePane.getChildren().add(tile);\r\n }\r\n }\r\n }", "public void getTile_B8();", "public Tile getNextTile(Unit u);", "public ArrayList<TileSet> getTilesets() {\r\n return this.tileSets;\r\n }", "public Tile getTile(int pos) {\n\t\tObject t = tileList.get(pos);\n\t\tif(t instanceof Property){\n\t\t\treturn (Property) t;\n\t\t} else if(t instanceof TaxTile){\n\t\t\treturn (TaxTile) t;\n\t\t} else { // Should not happen\n\t\t\treturn (Tile) t;\n\t\t}\n\t}", "@Override\n\tpublic AbstractTileOLD createTile(Frame frame, Point pos, Point sourcePos) {\n\t\t// TileOLD t = new TileOLD(frame, pos.x, pos.y, new ZoneSheet(frame,\n\t\t// ZoneSheet.TILE_SHEET), sourcePos.x, sourcePos.y);\n\t\t// t.setData((TileDataOLD) data[sourcePos.x][sourcePos.y]);\n\t\treturn null;\n\t}", "private Node getLobby() {//大廳節點\n\n Node base = new Node();\n\n base.setRenderable(arrowRenderable);\n\n return base;\n\n }", "public void setTiles() {\n\t\tTileStack names = new TileStack();\n\t\tfor(int x=0; x < theBoard.getCols(); x++) {\n\t\t\tfor(int y=0; y < theBoard.getRows(); y++) {\n\t\t\t\tp = new Point(x,y);\n\t\t\t\tif(p.equals(new Point(0,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(1,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(4,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,1)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,1)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,4)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,4)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(1,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(4,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse \n\t\t\t\t\ttheBoard.setTile(p, names.pop());\n\t\t\t}\n\t\t}\n\t}", "public List<Tile> getOwnedTiles() {\n return new ArrayList<Tile>(ownedTiles);\n }", "public Tile getInitTile() {\n return new Tile(initItem.type + \"-Init\", initItem.left, initItem.right,\n initItem.up, initItem.down, initItem.center, initItem.coatOfArms, initItem.separatedCities);\n }", "public TiledImage(BufferedImage image, int tile_X, int tile_Y) {\n\t\t\t\n\t\tm_imageWidth = image.getWidth();\n\t\tm_imageHeight = image.getHeight();\n\t\t\n\t\t// Determine number of rows and columns required\n\t\tm_rows = (int) Math.ceil(image.getWidth() / (double) tile_X);\n\t\tm_columns = (int) Math.ceil(image.getHeight() / (double) tile_Y);\n\t\t\n\t\tif (m_rows > 0 && m_columns > 0) {\n\t\t\t\n\t\t\tint chunks = m_rows * m_columns;\n\t\t\tint count = 0;\n\t\t\t\n\t\t\t// The goal here is to divide\n\t m_sourceTiles = new BufferedImage[chunks]; //Image array to hold image chunks\n\t m_transforms = new Translate[chunks];\n\t m_imageTiles = new Image[chunks];\n\t for (int x = 0; x < m_rows; x++) {\n\t for (int y = 0; y < m_columns; y++) {\n\t // Initialize the image array with image chunks\n\t \t// https://stackoverflow.com/questions/5836128/how-do-i-make-javas-imagebuffer-to-read-a-png-file-correctly\n\t \tint imageType = image.getType();\n\t \tif (imageType == 0) imageType = 5;\n\t m_sourceTiles[count] = new BufferedImage(tile_X, tile_Y, imageType);\n\t\n\t // draws the image chunk\n\t Graphics2D gr = m_sourceTiles[count].createGraphics();\n\t gr.drawImage(image, 0, 0, tile_X, tile_Y, tile_X * y, tile_Y * x, tile_X * y + tile_X, tile_Y * x + tile_Y, null);\n\t gr.dispose();\n\t \n\t // Create the JavaFX Image tile\n\t \t\tm_imageTiles[count] = SwingFXUtils.toFXImage(m_sourceTiles[count], null);\n\t \n\t // assign a translate offset Transform for the tile.\n\t int shiftX = tile_X * y;\n\t int shiftY = tile_Y * x;\n\t \n\t Translate translate = new Translate();\n\t translate.setX(shiftX);\n\t translate.setY(shiftY);\n\t m_transforms[count] = translate;\n\t \n\t count++;\n\t }\n\t }\n\t\t}\n\t}", "public Tile getTile(){\n\t\treturn currentTile;\n\t}", "public int getTileLevel()\n {\n return tileLevel;\n }", "public Tile getTile(Coordinaat crd){\n\n for(int Y=0; Y<size; Y++){\n for(int X=0; X<size; X++){\n if(crd.compareTo(tiles[X][Y].getCoordinaat()) == 0){\n return tiles[X][Y];\n }\n }\n }\n \n return null;\n }", "public Tile[] generate() {\n Tile[] tiles = generateTiles();\n calculatePathfindingGrid(tiles);\n return tiles;\n }", "public Rect getTileRect(){\n return this.tileRect;\n }", "public BufferedImage next() {\r\n if (ix >= numTiles) \r\n throw new NoSuchElementException();\r\n \r\n ix++;\r\n int c = ix % numCols;\r\n int r = ix / numCols;\r\n \r\n int w = getWidth();\r\n int h = getHeight();\r\n \r\n int x = c * tileWidth;\r\n int y = r * tileHeight;\r\n \r\n BufferedImage result = new BufferedImage(getWidth(), getHeight(), imageType);\r\n Graphics g = result.getGraphics();\r\n g.drawImage(m_source, 0, 0, w, h, x, y, (x + w), (y + h), null);\r\n g.dispose();\r\n \r\n return result;\r\n }", "SerializableState getTile(Long id, int x, int y) throws RemoteException;", "public List<Tile> getTilesAtAbsoluteRect(AbsoluteRectangle rect) {\n List<Tile> tiles = new ArrayList<>();\n int tileWidth = tileMap.getTileWidth();\n int tileHeight = tileMap.getTileHeight();\n int startX = rect.x / tileWidth;\n int startY = rect.y / tileHeight;\n int endX = (int) Math.ceil((rect.x + rect.width) / (float) tileWidth);\n int endY = (int) Math.ceil((rect.y + rect.height) / (float) tileHeight);\n for (int x = startX; x < endX; x++)\n for (int y = startY; y < endY; y++) {\n Tile tile = tileMap.getTile(x, y);\n if (tile != null)\n tiles.add(tile);\n }\n return tiles;\n }", "private TilePane createGrid() {\n\t\tTilePane board = new TilePane();\n\t\tboard.setPrefRows(9);\n\t\tboard.setPrefColumns(9);\n\t\tboard.setPadding(new Insets(3,3,3,3));\n\t\tboard.setHgap(3); //Horisontal gap between tiles\n\t\tboard.setVgap(3); //Vertical gap between tiles\n\t\t\n\t\t//Creates and colors tiles\n\t\tfor(int i = 0; i < 9; i++){\n\t\t\tfor(int k = 0; k < 9; k++){\n\t\t\t\tLetterTextField text = new LetterTextField();\n\t\t\t\ttext.setPrefColumnCount(1);\n\t\t\t\t\n\t\t\t\tif(!(i/3 == 1 || k/3 == 1) || (i/3 == 1 && k/3 == 1)){\n\t\t\t\t\ttext.setStyle(\"-fx-background-color: #daa520;\");\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfield[i][k] = text;\n\t\t\t\tboard.getChildren().add(text);\n\t\t\t}\n\t\t}\t\t\n\t\treturn board;\n\t}", "String getTileType();", "@Override\n public Tile getFirst() {\n return tiles.iterator().next();\n }", "public OthelloTile getTile(Point p) {\n if(p == null) {\n return null;\n }\n int x = (p.x-35)/grid[0][0].getPreferredSize().width;\n int y = (p.y-35)/grid[0][0].getPreferredSize().height;\n if(x<0 || x>=grid.length || y<0 || y>=grid[0].length) {\n return null;\n }\n return grid[y][x];\n }", "public TiledMap createMap() {\n map_inter = new MapTile[g_logic.MAP_WIDTH][g_logic.MAP_HEIGHT];\n \n //drawing stuff\n tiles = new Texture(Gdx.files.internal(\"packed/terrain.png\"));\n TextureRegion[][] splitTiles = TextureRegion.split(tiles, 54, 54);\n map = new TiledMap();\n MapLayers layers = map.getLayers();\n TiledMapTileLayer new_layer = new TiledMapTileLayer(g_logic.MAP_WIDTH, g_logic.MAP_HEIGHT, g_logic.ISO_WIDTH, g_logic.ISO_HEIGHT);\n \n //actual generation\n for (int x = 0; x < g_logic.MAP_WIDTH; x++) \n {\n for (int y = 0; y < g_logic.MAP_HEIGHT; y++) \n {\n char chara = '.';\n int ty = 0;\n int tx;\n if (x == 0 || x == g_logic.MAP_WIDTH-1)\n {\n tx = 1;\n chara = '#';\n }\n else\n {\n tx = 0; \n chara = '.';\n }\n \n //set up map tiles\n MapTile tile = new MapTile(x, y, tx, ty, chara);\n Gdx.app.log(\"Map gen\", \"Created a map tile @\" + x + \",\" + y + \" \" + tx + \" \" + ty + \" \" + chara);\n \n //put them in the internal map\n putInterMap(tile, x, y);\n \n //set up renderer cells\n TiledMapTileLayer.Cell cell = new TiledMapTileLayer.Cell();\n //y,x\n cell.setTile(new StaticTiledMapTile(splitTiles[tile.getTextureY()][tile.getTextureX()]));\n new_layer.setCell(x, y, cell);\n }\n }\n \n \n float y_off = g_logic.getYOffset();\n new_layer.setOffsetY(y_off);\n layers.add(new_layer);\n \n g_logic.setInterMap(map_inter);\n\n return map;\n }", "public ArrayList<MahjongSolitaireTile>[][] getTileGrid() \n { \n return tileGrid; \n }", "ArrayList<Tile> getTilesPlayerOne() throws RemoteException;", "public Node getNode() {\n\t\tif(piece != null)\n\t\t\troot.getChildren().addAll(piece.getImage(),rectangle);\n\t\telse\n\t\t\troot.getChildren().add(rectangle);\n\t\treturn root;\n\t}", "protected MapChunk[] generateChunks( Tile[] tiles ) {\n \n // Check that the tiles we have been given are valid.\n if(tiles == null) {\n return null;\n }\n \n // Ensure we have tiles\n if(tiles.length <= 0) {\n return null;\n }\n \n // Ensure that the tile count is correct\n int tileRows = getHeightInTiles();\n int tileCols = getWidthInTiles();\n \n int tileCount = tileRows * tileCols;\n \n if(tiles.length != tileCount) {\n return null;\n }\n \n // Calculate the amount of chunks we need\n int chunkRows = getWidthInChunks();\n int chunkCols = getHeightInChunks();\n \n int chunkCount = chunkRows * chunkCols;\n \n // Create an array to store these chunks\n MapChunk[] chunks = new MapChunk[ chunkCount ];\n \n // Nullify the chunks\n for( int i = 0; i < chunkCount; i++ ) {\n chunks[i] = null;\n }\n \n // Render the tiles onto the chunks\n for(int x = 0; x < tileCols; x++) {\n for(int y = 0; y < tileRows; y++) {\n \n // Get the current tile\n Tile thisTile = tiles[ (y * tileCols) + x ];\n \n // Figure out which chunk we're in \n int tileX = x * getTileWidth();\n int tileY = y * getTileHeight();\n \n int chunkX = 0;\n int chunkY = 0;\n \n while( tileX >= getChunkWidth() ) {\n chunkX ++;\n tileX -= getChunkWidth();\n }\n \n while( tileY >= getChunkHeight() ) {\n chunkY ++;\n tileY -= getChunkHeight();\n }\n \n // Find the chunk\n MapChunk chunk = chunks[ (chunkY * chunkCols) + chunkX ];\n \n // System.out.println(\" Tile \" + ((y * tileCols) + x) + \" (\" + x + \", \" + y + \") Tile Position \" + (x * getTileWidth()) + \", \" + (y * getTileHeight()) + \" is in Chunk \" + chunkX + \", \" + chunkY + \" which is at index \" + ((chunkY * chunkCols) + chunkX));\n \n // Ensure this chunk has been created\n if(chunk == null) {\n chunk = new MapChunk( getChunkWidth(), getChunkHeight() );\n chunks[ (chunkY * chunkCols) + chunkX ] = chunk;\n \n }\n \n // Draw the tile\n for(int tx = 0; tx < getTileWidth(); tx++ ){\n for(int ty = 0; ty < getTileHeight(); ty++) {\n chunk.image.setPixel(\n \n tx + (x * getTileWidth()) - (chunkX * getChunkWidth()),\n ty + (y * getTileHeight()) - (chunkY * getChunkHeight()),\n thisTile.getColor()\n \n );\n }\n }\n \n }\n }\n \n return chunks;\n \n }", "public Tile getTile(int x, int y) {\n\t\tif(!isValidCoordinates(x,y)){\n\t\t\t//remove later -F\n\t\t\tSystem.out.println(\"Invalid\");\n\t\t\treturn tileGrid[0][0]; //will add handling in check later -F\n\t\t}\n\t\telse{\n\t\t\treturn tileGrid[x][y];\n\t\t}\n\t}", "private static void tileInit(int i, int j, Group tileGroup, int i2, int i3, int i4, int i5) {\n Tile tile = new Tile(i, j, (i2), (i3));\n tile.setTranslateX((i4));\n tile.setTranslateY(i5);\n tileGroup.getChildren().add(tile);\n }", "@Override\n public Tile get(int left, int top) {\n if (left < 1) return null;\n if (top < 1) return null;\n int index = getPosition(left, top);\n if (index >= tiles.size()) {\n return null;\n }\n\n return this.tiles.get(index);\n }", "public static ArrayList<Tile> doTiles(BufferedImage img, int tileSize) {\n \n allTiles = new ArrayList();\n int propX = tileSize;//img.getWidth() / nTiles;\n int propY = tileSize;//img.getHeight() / nTiles;\n int nTilesX = img.getWidth() / tileSize;\n int nTilesY = img.getHeight() / tileSize;\n \n WritableRaster wr = (WritableRaster) img.getData();\n //First 2 fors: maximum number of tiles watching the image width and height\n for (int i = 0; i < nTilesX; i++) {\n for (int j = 0; j < nTilesY; j++) {\n \t//Making sure we dont go out of bounds\n if (i * propX + propX <= img.getWidth()) {\n if (j * propY + propY <= img.getHeight()) {\n \t//Create the tile image\n WritableRaster tile = (WritableRaster)wr.createChild((i * propX), (j * propY), propX, propY, 0, 0, null);\n BufferedImage buffTile = new BufferedImage(img.getColorModel(), tile, \n img.getColorModel().isAlphaPremultiplied(), null);\n //Create our Tile object with the image and sizes \n Tile t = new Tile(buffTile, i*propX, j*propY);\n //Add the tile to the array of tiles of the image\n allTiles.add(t);\n }\n }\n }\n }\n return allTiles;\n }", "public Image getTileImage(){\n\t\treturn tileImage;\n\t}", "RenderedOp getNode(Long id) throws RemoteException;", "public ef l()\r\n/* 293: */ {\r\n/* 294:240 */ Packet211TileDesc packet = new Packet211TileDesc();\r\n/* 295:241 */ packet.subId = 9;\r\n/* 296:242 */ packet.xCoord = this.l;packet.yCoord = this.m;\r\n/* 297:243 */ packet.zCoord = this.n;\r\n/* 298:244 */ writeToPacket(packet);\r\n/* 299:245 */ packet.encode();\r\n/* 300:246 */ return packet;\r\n/* 301: */ }", "protected Runnable createTileRunner(Tile tile) {\r\n return new TileRunner();\r\n }", "int getTileSize();", "void buildBlock(Tile t);", "public Node createGrid() {\n\t\tGroup gridGroup = new Group();\n\t\tgridGroup.getChildren().addAll(buildXYPlane());\n\t\t/*\n\t\t * XXX extend the grid\n\t\t * \n\t\t * here it would be possible to extend the grid, e.g. with a graph\n\t\t * or another plane with a grid (XZ, YZ, ...).\n\t\t * \n\t\t * it would look like this:\n\t\t * gridGroup.getChildren().addAll(buildGraph());\n\t\t */\n\t\treturn gridGroup;\n\t}", "public Tile(int x, int y, String type) {\n\tthis.x = x;\n\tthis.y = y;\n\tthis.type = type;\n\tboundingShape = null;\n }", "private void getTilePrefabs(){\n \n tilePrefabs = new Node[14];\n tilePrefabs[0] = (Node) animation_Scene.getChild(0);\n tilePrefabs[1] = (Node) animation_Scene.getChild(1);\n tilePrefabs[2] = (Node) animation_Scene.getChild(2);\n tilePrefabs[3] = (Node) animation_Scene.getChild(3);\n tilePrefabs[4] = (Node) animation_Scene.getChild(4);\n tilePrefabs[5] = (Node) animation_Scene.getChild(5);\n tilePrefabs[6] = (Node) animation_Scene.getChild(6);\n tilePrefabs[7] = (Node) animation_Scene.getChild(7);\n tilePrefabs[8] = (Node) animation_Scene.getChild(8);\n tilePrefabs[9] = (Node) animation_Scene.getChild(9);\n tilePrefabs[10] = (Node) animation_Scene.getChild(10);\n tilePrefabs[11] = (Node) animation_Scene.getChild(11);\n tilePrefabs[12] = (Node) animation_Scene.getChild(12);\n tilePrefabs[13] = (Node) animation_Scene.getChild(13);\n \n /* A colored lit cube. Needs light source! */ \n Material floorMat = new Material(assetManager, \"Common/MatDefs/Light/Lighting.j3md\"); \n floorMat.setBoolean(\"UseMaterialColors\", true); \n floorMat.setColor(\"Ambient\", new ColorRGBA(0.113f,0.104f, 0.128f,1));\n floorMat.setColor(\"Diffuse\", ColorRGBA.Green); \n \n Material wallMat = new Material(assetManager, \"Common/MatDefs/Light/Lighting.j3md\"); \n wallMat.setBoolean(\"UseMaterialColors\", true); \n wallMat.setColor(\"Ambient\", new ColorRGBA(0.359f,0.367f, 0.312f,1)); \n wallMat.setColor(\"Diffuse\", ColorRGBA.Green); \n \n tilePrefabs[0].setMaterial(floorMat);\n tilePrefabs[1].setMaterial(wallMat);\n tilePrefabs[2].setMaterial(wallMat);\n tilePrefabs[3].setMaterial(wallMat);\n tilePrefabs[4].setMaterial(floorMat);\n tilePrefabs[5].setMaterial(floorMat);\n tilePrefabs[6].setMaterial(floorMat);\n tilePrefabs[7].setMaterial(floorMat);\n tilePrefabs[8].setMaterial(wallMat);\n tilePrefabs[9].setMaterial(floorMat);\n tilePrefabs[10].setMaterial(floorMat);\n tilePrefabs[11].setMaterial(floorMat);\n tilePrefabs[12].setMaterial(wallMat);\n tilePrefabs[13].setMaterial(wallMat);\n }", "public static Tile of(final int originalPos) {\n return new Tile(originalPos);\n }" ]
[ "0.6846255", "0.66341096", "0.6622219", "0.66174054", "0.6522256", "0.6497061", "0.64870703", "0.6379592", "0.6367317", "0.63406366", "0.6337348", "0.63320464", "0.6326289", "0.62845385", "0.6267474", "0.62545705", "0.62545705", "0.6164675", "0.61570615", "0.61539036", "0.61335886", "0.6128627", "0.61171234", "0.6112286", "0.6107781", "0.60899067", "0.6072056", "0.60446596", "0.6009477", "0.6008711", "0.59980136", "0.59918725", "0.59607047", "0.5956306", "0.5943243", "0.5943161", "0.59400123", "0.59346676", "0.59344244", "0.5922519", "0.592162", "0.5919665", "0.5899787", "0.5885356", "0.5877869", "0.58666486", "0.58584553", "0.58554757", "0.5855423", "0.58380413", "0.5811249", "0.58099127", "0.5804921", "0.58016026", "0.57997525", "0.5787604", "0.5785766", "0.57823926", "0.577914", "0.57762843", "0.5773905", "0.5772773", "0.57637787", "0.5746143", "0.57419604", "0.57206196", "0.569659", "0.5694795", "0.5693286", "0.5691758", "0.56905776", "0.5677094", "0.5675911", "0.5662716", "0.5661507", "0.56567836", "0.5643104", "0.5638819", "0.5634863", "0.5633632", "0.56333816", "0.5626183", "0.5601821", "0.5596578", "0.55924314", "0.55806595", "0.5576092", "0.55456924", "0.5530934", "0.55286133", "0.5520074", "0.55196196", "0.5513671", "0.5507745", "0.550172", "0.5494314", "0.5492315", "0.5489016", "0.54887664", "0.54870707" ]
0.7087168
0
Returns a tile (a Spatial) in the exact middle of the BOARD
public Spatial boardCentre() { return tiles[2][2].tile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Tile getTileAt(int x, int y);", "public Tile getTileAt(Position p);", "Tile getPosition();", "@Override\n public SquareTile getTile(int x, int y) {\n // Check that the location is inside the grid\n if (x < 0 || x >= width || y < 0 || y >= height)\n return null;\n\n return tiles[x * width + y];\n }", "public void getTile_B8();", "public OthelloTile getTile(Point p) {\n if(p == null) {\n return null;\n }\n int x = (p.x-35)/grid[0][0].getPreferredSize().width;\n int y = (p.y-35)/grid[0][0].getPreferredSize().height;\n if(x<0 || x>=grid.length || y<0 || y>=grid[0].length) {\n return null;\n }\n return grid[y][x];\n }", "public abstract void snapPoseToTileMid();", "@Override\n public SquareTile getTile(Point location) {\n return getTile(location.getX(), location.getY());\n }", "public int getTile(int x, int y)\n {\n return tilemap[x][y];\n }", "private Tile getTile(int x, int y) {\n\t\tif (x < 0 || x > width || y < 0 || y > height) return Tile.VOID;\n\t\treturn Tile.tiles[tiles[x + y * width]];\n\t}", "private Tile getTileAt(int x, int y)\n {\n int tileAt = y * TILES_PER_ROW + x;\n \n if (tileAt >= tileset.getTileCount())\n {\n return null;\n }\n else \n {\n return tileset.getTile(tileAt);\n }\n }", "public Vector2 returnToNearestStockpile(Resource resource){\n\t\tif(myTownHall == null)\n\t\t\treturn new Vector2(0,0);\n\t\treturn myTownHall.getCenter();\n\t}", "public FloorTile getTileFromTheBoard(int row, int col) {\r\n return board[row][col];\r\n }", "public static Point worldToMap(double x, double y) {\n\t\tfinal Client client = Context.client();\n\t\tfinal Multipliers multipliers = Context.multipliers();\n\t\tfinal Player local = Players.getLocal();\n\t\tx -= Game.getBaseX();\n\t\ty -= Game.getBaseY();\n\n\t\tfinal RegionOffset localTile = local.getRegionOffset();\n\t\tfinal int calculatedX = (int) (x * 4 + 2) - (localTile.getX() << 9) / 0x80;\n\t\tfinal int calculatedY = (int) (y * 4 + 2) - (localTile.getY() << 9) / 0x80;\n\n\t\tfinal WidgetChild mm2 = WidgetComposite.getMap();\n\t\tif (mm2 == null) {\n\t\t\treturn new Point(-1, -1);\n\t\t}\n\t\tfinal int actDistSq = calculatedX * calculatedX + calculatedY * calculatedY;\n\t\tfinal int mmDist = Math.max(mm2.getWidth() / 2, mm2.getHeight() / 2) - 6;\n\n\t\tif (mmDist * mmDist >= actDistSq) {\n\t\t\tint angle = 0x3fff & (int) client.getMinimapAngle();\n\t\t\tfinal boolean setting4 = client.getMinimapSetting() * multipliers.GLOBAL_MINIMAPSETTING == 4;\n\n\t\t\tif (!setting4) {\n\t\t\t\tangle = 0x3fff & (client.getMinimapOffset() * multipliers.GLOBAL_MINIMAPOFFSET) + (int) client.getMinimapAngle();\n\t\t\t}\n\n\t\t\tint cs = Calculations.SIN_TABLE[angle];\n\t\t\tint cc = Calculations.COS_TABLE[angle];\n\n\t\t\tif (!setting4) {\n\t\t\t\tfinal int fact = 0x100 + (client.getMinimapScale() * multipliers.GLOBAL_MINIMAPSCALE);\n\t\t\t\tcs = 0x100 * cs / fact;\n\t\t\t\tcc = 0x100 * cc / fact;\n\t\t\t}\n\n\t\t\tfinal int calcCenterX = cc * calculatedX + cs * calculatedY >> 0xf;\n\t\t\tfinal int calcCenterY = cc * calculatedY - cs * calculatedX >> 0xf;\n\t\t\tfinal int screen_x = calcCenterX + mm2.getAbsoluteX() + mm2.getWidth() / 2;\n\t\t\tfinal int screen_y = -calcCenterY + mm2.getAbsoluteY() + mm2.getHeight() / 2;\n\t\t\treturn new Point(screen_x, screen_y);\n\t\t}\n\n\t\treturn new Point(-1, -1);\n\t}", "public FloorTile getTileAt(int row, int col) {\n return board[row][col];\n }", "public Tile getTile(int x, int y) {\r\n assert (tiles != null);\r\n \r\n if (x < 0 || y < 0 || x >= width || y >= height) {\r\n return Tile.floorTile;\r\n }\r\n \r\n Tile t = Tile.tiles[tiles[x][y]];\r\n if (t == null) {\r\n return Tile.floorTile;\r\n }\r\n return t;\r\n }", "public Tile getTile(int x, int y) {\n\t\tif (x < 0 || x >= (this.width / Tile.WIDTH) || y < 0 || y >= (this.height / Tile.HEIGHT)) {\n//\t\t\tSystem.out.println(x + \" \" + y + \" \" + \"comes heere\");\n\t\t\treturn VoidTiled.getInstance();\n\t\t}\n\t\treturn tiles[x + y * (this.width / Tile.WIDTH)];\n\t}", "public Point findSpace(){\r\n Point toReturn = new Point(-1, -1);\r\n for (int i = 0; i<puzzleSize; i++){\r\n for (int j = 0; j<puzzleSize; j++){\r\n if (this.state[i][j] == 0)\r\n toReturn.setLocation(i,j);\r\n }\r\n }\r\n return toReturn;\r\n }", "@Override\n public ITile getClosestTile(int x, int y) {\n return getClosestTile(new Point(x, y), getTileSize());\n }", "Piece getPieceAt(int col, int row);", "public Point getTileCoordinates(int x, int y) {\n int tileWidth = this.board.getTileSet().getTileWidth() + 1;\n int tileHeight = this.board.getTileSet().getTileHeight() + 1;\n\n int tileX = Math.max(0, Math.min(x / tileWidth, this.board.getWidth() - 1));\n int tileY = Math.max(0, Math.min(y / tileHeight, this.board.getHeight() - 1));\n\n return new Point(tileX, tileY);\n }", "Square getCurrentPosition();", "public Location getLocation() {\n return ((Location) tile);\n }", "public Tile getTile(int x, int y) {\n\t\tif (x < 0 || x >= width || y < 0 || y >= height) {\n\t\t\treturn Tile.voidTile;\n\t\t}\n\t\treturn tiles[x + y * width];\n\t}", "private Point getTileCoordinates(int x, int y)\n {\n int tileWidth = this.tileset.getTileWidth() + 1;\n int tileHeight = this.tileset.getTileHeight() + 1;\n int tileCount = this.tileset.getTileCount();\n int rows = tileCount / TILES_PER_ROW + \n (tileCount % TILES_PER_ROW > 0 ? 1 : 0);\n \n int tileX = Math.max(0, Math.min(x / tileWidth, TILES_PER_ROW - 1));\n int tileY = Math.max(0, Math.min(y / tileHeight, rows - 1));\n \n return new Point(tileX, tileY);\n }", "public Shard getLowerNeighbor() {\r\n double middleLat = south + Math.abs(north - south) / 2;\r\n double nextLat = middleLat - Math.abs(north - south);\r\n\r\n return new Shard(new Coordinates(nextLat, coordinates.getLon()), zoom);\r\n }", "public TiledWraparound(Spatial tile)\r\n {\r\n super(tile.getTopRight());\r\n final int PAD = 1;\r\n int tiles = PAD*2+1;\r\n this.tile = tile;\r\n float BLx = -tr.getX(), BLy = -tr.getY();\r\n offsets = new Location[tiles*tiles];\r\n for(int i=0; i<tiles; i++)\r\n {\r\n for(int j=0; j<tiles; j++)\r\n {\r\n offsets[i*tiles+j] = new Location.Location2D(BLx+tr.getX()*i, BLy+tr.getY()*j);\r\n }\r\n }\r\n }", "private Tile getTileAt(Position p) {\n return getTileAt(p.getRow(), p.getCol());\n }", "public MapTile getTile(int x_pos, int y_pos) {\n if (x_pos < 0 || y_pos < 0 || x_pos >= map_grid_[0].length || y_pos >= map_grid_.length) {\n return null;\n }\n return map_grid_[y_pos][x_pos];\n }", "private VolaTile getCaveTile() {\n/* */ try {\n/* 2147 */ Zone z = Zones.getZone(this.tilex, this.tiley, false);\n/* 2148 */ return z.getOrCreateTile(this.tilex, this.tiley);\n/* */ }\n/* 2150 */ catch (NoSuchZoneException noSuchZoneException) {\n/* */ \n/* */ \n/* 2153 */ logger.log(Level.WARNING, \"No cave tile for \" + this.tilex + \", \" + this.tiley);\n/* 2154 */ return this;\n/* */ } \n/* */ }", "public abstract TiledMapTileSet getTileSet();", "private Tile getTileAt(int row, int col) {\n return getTiles()[row][col];\n }", "public Tile getTile(int x, int y){\n\t\tif(x < 0 || y < 0 || x >= width || y >= height){\r\n\t\t\treturn Tile.grassTile;\r\n\t\t}\r\n\t\t\r\n\t\t//tiles[x][y] give us the id and the tiles[id] is the texture\r\n\t\tTile t = Tile.tiles[tiles[x][y]]; \r\n\t\tif(t == null){\r\n\t\t\t//If you try to access undefined tile index, return dirt tile as default\r\n\t\t\treturn Tile.dirtTile; \r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn t;\r\n\t\t}\r\n\t}", "public Tile getTile(int x, int y) {\n\t\tif(!isValidCoordinates(x,y)){\n\t\t\t//remove later -F\n\t\t\tSystem.out.println(\"Invalid\");\n\t\t\treturn tileGrid[0][0]; //will add handling in check later -F\n\t\t}\n\t\telse{\n\t\t\treturn tileGrid[x][y];\n\t\t}\n\t}", "public short fitsOnBeginning(Tile tile);", "public Board twin() {\n if (tiles[0][0] != 0 && tiles[0][1] != 0)\n return new Board(tiles, new Position(0, 0), new Position(0, 1));\n else\n return new Board(tiles, new Position(1, 0), new Position(1, 1));\n }", "private Point getPixel(Point source) {\n float stepWidth = /*canvasWidth*/ canvasHeight / mapWidth;\n float stepHeight = canvasHeight / mapHeight;\n\n float centerX = canvasWidth / 2;\n float centerY = canvasHeight / 2;\n\n return new Point((int) (centerX + source.X * stepWidth), (int) (centerY + source.Y * stepHeight));\n }", "@Override\n\tpublic final Tile getLocation() {\n\t\tfinal Client client = Loader.getClient();\n\t\treturn new Tile(client.getBaseX() + getLocalRegionX(),\n\t\t\t\tclient.getBaseY() + getLocalRegionY(), client.getPlane());\n\t}", "public SetOfTiles getSetOfTiles();", "public void setTiles() {\n\t\tTileStack names = new TileStack();\n\t\tfor(int x=0; x < theBoard.getCols(); x++) {\n\t\t\tfor(int y=0; y < theBoard.getRows(); y++) {\n\t\t\t\tp = new Point(x,y);\n\t\t\t\tif(p.equals(new Point(0,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(1,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(4,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,1)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,1)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,4)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,4)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(1,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(4,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse \n\t\t\t\t\ttheBoard.setTile(p, names.pop());\n\t\t\t}\n\t\t}\n\t}", "public Image getVisibleTile(int x, int y) throws SlickException {\r\n Image visibleTileImage = null;\r\n for (int l = this.getLayerCount() - 1; l > -1; l--) {\r\n if (visibleTileImage == null) {\r\n visibleTileImage = this.getTileImage(x, y, l);\r\n continue;\r\n }\r\n }\r\n if (visibleTileImage == null) {\r\n throw new SlickException(\"Tile doesn't have a tileset!\");\r\n }\r\n return visibleTileImage;\r\n }", "public Tile getTile() { return tile; }", "public Tile getNextTile(Unit u);", "public BufferedImage getSingleTile(final int x, final int y) {\n return this.sheet.getSubimage(x * TILE_SIZE_IN_GAME, y * TILE_SIZE_IN_GAME, TILE_SIZE_IN_GAME,\n TILE_SIZE_IN_GAME);\n }", "public Point2D getBombTileCenterPosition(GameObject node) {\n double x;\n double y;\n\n List<Rectangle> intersectingTiles = new ArrayList<>();\n for (Rectangle2D r : gameMatrix) {\n Rectangle currentMatrixTile = new Rectangle(r.getMinX(), r.getMinY(), r.getWidth(), r.getHeight());\n\n // check if rectangle of game matrix intersects with player bounds and harvest these in new array\n if (currentMatrixTile.getBoundsInParent().intersects(node.getBoundsInParent())) {\n intersectingTiles.add(currentMatrixTile);\n }\n }\n // if player bounds are completely in one tile\n if (intersectingTiles.size() == 1) {\n Rectangle r = intersectingTiles.get(0);\n x = r.getX() + (r.getWidth() / 2);\n y = r.getY() + (r.getHeight() / 2);\n return new Point2D(x, y);\n }\n // if player bounds are in more than one tile\n else {\n for (int i = 0; i < intersectingTiles.size(); i++) {\n Point2D playerCenterPosition = new Point2D(node.getX() + (node.getFitWidth() / 2), node.getY() + (node.getFitHeight() / 2));\n Rectangle currentTile = intersectingTiles.get(i);\n\n // the center position of the player should only exist in one tile at a time ...\n if (currentTile.contains(playerCenterPosition)) {\n return new Point2D(currentTile.getX() + (currentTile.getWidth() / 2), currentTile.getY() + (currentTile.getHeight() / 2));\n }\n }\n // a mystery\n return null;\n }\n }", "Tile getTile() {\n if (tiles.size() == 0) {\n return null;\n } else {\n int randomIndex = ThreadLocalRandom.current().nextInt(0, tiles.size());\n Tile result = tiles.get(randomIndex);\n tiles.remove(randomIndex);\n return result;\n }\n }", "public MapEntity getTileAt(int x, int y) {\n\t\ttry {\n\t\t\treturn tiles.get(y)[x];\n\t\t}\n\t\tcatch(IndexOutOfBoundsException | NullPointerException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "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 Piece getPieceInTile() {\n \r\n return pieceInTile;\r\n }", "@NotNull\n public Location<World> getCenterBlock() {\n int centerX = getMinChunk().getX() + 16;\n int centerZ = getMinChunk().getZ() + 16;\n return Tungsten.INSTANCE.getIslandWorld().getLocation(centerX * 16, 86, centerZ * 16);\n }", "private Coordinate tileCoordinateForTileRightAbove(GuiTile tile) {\n\t\treturn new Coordinate(tile.getScreenBottomX() / GuiTile.getScale() + GuiTile.getHalfWidth() + 0.05 * GuiTile.getHalfWidth(),\n\t\t\t\ttile.getScreenBottomY() / GuiTile.getScale() - tile.getMid1Height() - GuiTile.getBaseHeight() - 0.05 * GuiTile.getHalfWidth());\n\t}", "SerializableState getTile(Long id, int x, int y) throws RemoteException;", "public Tile access(int x, int y) {\r\n\t\treturn layout.get(x)[y];\r\n\t}", "private void getTileNumber() {\r\n int xtile = (int) Math.floor((coordinates.getLon() + 180) / 360 * (1 << zoom));\r\n int ytile = (int) Math.floor((1 - Math.log(Math.tan(Math.toRadians(coordinates.getLat())) + 1 / Math.cos(Math.toRadians(coordinates.getLat()))) / Math.PI) / 2 * (1 << zoom));\r\n\r\n if (xtile < 0) xtile = 0;\r\n\r\n if (xtile >= (1 << zoom)) xtile = ((1 << zoom) - 1);\r\n\r\n if (ytile < 0) ytile = 0;\r\n\r\n if (ytile >= (1 << zoom)) ytile = ((1 << zoom) - 1);\r\n\r\n this.xtile = xtile;\r\n this.ytile = ytile;\r\n }", "default int gridToSlot(int x, int y) {\n return y * 9 + x;\n }", "@Override\n public Tile get(int left, int top) {\n if (left < 1) return null;\n if (top < 1) return null;\n int index = getPosition(left, top);\n if (index >= tiles.size()) {\n return null;\n }\n\n return this.tiles.get(index);\n }", "int getTileSize();", "protected Tile getTile( Tile[] tiles, int x, int y ) {\n return tiles[ (y * getHeightInTiles()) + x ];\n }", "Cell getCellAt(Coord coord);", "protected void registerTile(int x, int y) {}", "public Tile getTile(int x, int y)\n\t{\n\t\t\n\t\tif(x < 0 || y < 0 || x >= width || y >= height)\n\t\t{\n\t\t\tSystem.out.println(\"wrong\");\n\n\t\t\treturn Tile.dirt;\n\t\t}\n\t\t\n\t\tTile t = Tile.tiles[worldTiles[x][y]];\n\t\t// if the tile is null returns dirt on default\n\t\tif(t == null)\n\t\t{\n\t\t\tSystem.out.println(\"null\");\n\n\t\t\treturn Tile.dirt;\n\t\t}\n\t\treturn t;\n\t}", "private void fetchTile() {\n\t\t\tif (tile.getRequest().isCancelled() || tile.isFinal()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tMapSource source = tile.getRequest().getSource();\n\t\t\tProjObj proj = tile.getRequest().getProjection();\n\t\t\tfinal int ppd = tile.getRequest().getPPD();\n\t\t\t\n\t\t\tfor (int fuzzyPPD = ppd/2 ; fuzzyPPD > 1 ; fuzzyPPD /= 2){\t\t\t\t\n\t\t\t\tint ratio = ppd / fuzzyPPD;\n\t\t\t\t\n\t\t\t\t// A tile has 256 pixels on a side.\n\t\t\t\t// Using this method, we can't upscale data to be fuzzy if it's more than 256 times larger \n\t\t\t\t// than the area we are looking to fill. Upscaling data more than 16 times seems unlikely to provide\n\t\t\t\t// any real benefit to the user, so we will quit our search at this point\n\t\t\t\tif (ratio>16) break;\n\t\t\t\t\n\t\t\t\tString tileName = CacheManager.getTileName(\n\t\t\t\t\tsource.getName(), proj, fuzzyPPD,\n\t\t\t\t\ttile.getXtile()/ratio, tile.getYtile()/ratio,\n\t\t\t\t\tsource.hasNumericKeyword());\n\t\t\t\t\n\t\t\t\tBufferedImage tileImage = CacheManager.getTile(source, tileName);\n\t\t\t\t\n\t\t\t\tif (tileImage==null) {\t\t\t\t\t\t\t\t\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint xtileindex = tile.getXtile() % ratio;\n\t\t\t\tint ytileindex = ratio - (tile.getYtile() % ratio) - 1;\n\t\t\t\t\n\t\t\t\tdouble fuzzyxstep = MapRetriever.tiler.getPixelWidth() / ratio;\n\t\t\t\tdouble fuzzyystep = MapRetriever.tiler.getPixelHeight() / ratio;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\ttileImage = tileImage.getSubimage((int)(xtileindex * fuzzyxstep), (int)(ytileindex * fuzzyystep), (int)fuzzyxstep, (int)fuzzyystep);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog(e);\n\t\t\t\t\tlog(\"xtileindex:\"+xtileindex+\" fuzzyxstep:\"+fuzzyxstep+\" ytileindex:\"+ytileindex+\" fuzzyystep:\"+fuzzyystep);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlong outputImageSize = (tileImage.getWidth()*ratio)*(tileImage.getHeight()*ratio);\n\t\t\t\tif (outputImageSize <= 0 || outputImageSize > Integer.MAX_VALUE){\n\t\t\t\t\tlog(\"Scaling tile from \"+fuzzyPPD+\" to \"+ppd+\" will result in image size overflow.\"+\n\t\t\t\t\t\t\t\" Stopping further search for lower PPDs for this tile.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttileImage = CacheManager.scaleImage(tileImage, ratio);\n\t\t\t\t\n\t\t\t\tmyRetriever.fuzzyResponse(tile, tileImage);\n\t\t\t}\t\t\t\t\t\t\n\t\t}", "public DungeonObject getDungeonTile(int x, int y) {\n\t\treturn dungeonRoom[x][y];\r\n\t}", "protected abstract void setTile( int tile, int x, int y );", "public Point getGridCoordinates(){\n try {\n return (new Point(x / MapManager.getMapTileWidth(), y / MapManager.getMapTileHeight()));\n } catch (Exception e){\n System.out.print(\"Error while getting grid coordinates.\");\n throw e;\n }\n }", "public Location computerMove()\n\t{\n\t\tArrayList<Location> possibleLocs = new ArrayList<Location>();\n\t\tfor (int row = 0; row < grid.length; row++)\n\t\t{\n\t\t\tfor (int col = 0; col < grid[0].length; col++)\n\t\t\t{\n\t\t\t\tLocation temp = new Location(row, col);\n\t\t\t\tif (!isOccupied(temp))\n\t\t\t\t\tpossibleLocs.add(temp);\n\t\t\t}\n\t\t}\n\t\tfor (int count = 0; count < possibleLocs.size(); count++)\n\t\t{\n\t\t\tif (checkWin(1, possibleLocs.get(count)))\n\t\t\t\treturn possibleLocs.get(count);\n\t\t\telse if (checkWin(0, possibleLocs.get(count)))\n\t\t\t\treturn possibleLocs.get(count);\n\t\t}\n\t\treturn possibleLocs.get((int) (Math.random() * possibleLocs.size()));\n\t}", "public final Optional<Tile> getTile(final GridPoint2D tilePoint) {\n\t if ((tilePoint.getRow() >= 0) && \n\t (tilePoint.getRow() < mLayout.size()) &&\n\t (tilePoint.getColumn() >= 0) && \n\t (tilePoint.getColumn() < mLayout.get(tilePoint.getRow()).size())) {\n\t return Optional.<Tile>of(mLayout.get(tilePoint.getRow()).get(tilePoint.getColumn()));\n\t } \n\t // The indicated point was outside of the battlefield, so return a null\n\t else {\n\t return Optional.<Tile>absent();\n\t }\n\t}", "public int getActualTileWidth() {\n return 32;\n }", "public Tile getTile() {\n return _tile;\n }", "public int getTileX()\n\t{\n\t\treturn this.tileX;\n\t}", "public MapLocation getEnemySwarmCenter() {\n\t\treturn new MapLocation(centerEnemyX, centerEnemyY);\n\t}", "public Board twin() {\n Board c = getClone();\n int firstTileRow = -1, firstTileCol = -1, secTileRow = -1, secTileCol = -1;\n outerloop:\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n if (tiles[i][j] != 0) {\n firstTileRow = i;\n firstTileCol = j;\n break outerloop;\n }\n }\n }\n\n outerloop:\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n if ((tiles[i][j] != 0) && ((i != firstTileRow) || (j != firstTileCol))) {\n secTileRow = i;\n secTileCol = j;\n break outerloop;\n }\n }\n }\n\n int t = c.tiles[firstTileRow][firstTileCol];\n c.tiles[firstTileRow][firstTileCol] = c.tiles[secTileRow][secTileCol];\n c.tiles[secTileRow][secTileCol] = t;\n return c;\n }", "@Test\n public void testGetTile()\n {\n try\n {\n Square s = new Square();\n\n assertNull(s.getTile()); // Should return null as no tile placed yet.\n\n s.setTile(Tile.E); // Add a tile\n\n assertEquals(Tile.E, s.getTile()); // Check the tile is now on the square\n }\n catch(Exception ex)\n {\n fail(\"No exception should be thrown when getting a Tile from the square.\");\n }\n }", "Coordinate[] getTilePosition(int x, int y) {\n\t\treturn guiTiles.get(y).get(x).getBoundary();\n\t}", "private Point2D getBoardPosition() {\n double size = getCellSize();\n double x = canvas.getWidth() / 2 - board.getWidth() * size / 2;\n double y = canvas.getHeight() / 2 - board.getHeight() * size / 2;\n\n return new Point2D(x, y);\n }", "@Test\n public void testGetTile() {\n assertEquals(7, board3by3.getTile(0, 0).getId());\n }", "@Override\r\n\tpublic Integer getCell(Integer x, Integer y) {\n\t\treturn game[x][y];\r\n\t}", "private int getMidPoint(int cordinate)\n {\n int mid_point = ((cordinate + Player.getWidth_of_box()) / 2);\n return mid_point;\n }", "public Board twin() {\n exchangeFirstKeys(); // exchange (0,0) with (0,1)\n Board twinBoard = new Board(tiles);\n exchangeFirstKeys(); // roll it back\n return twinBoard;\n }", "public TileFloor(int x, int y)\r\n {\r\n random = new Random(12345);\r\n ROWS = DEFAULT_ROWS;\r\n COLUMNS= DEFAULT_COLUMNS;\r\n this.x = x;\r\n this.y = y;\r\n }", "public Piece(int a_row, int a_col)\n {\n this.tileLocation = Pair.create(a_row,a_col);\n }", "public BoardCell getCenterCell() {\n\t\treturn null;\n\t}", "TileItem getCurrentTile();", "public MapEntity getTileAt(IntVector2D v) {\n\t\tif(v == null)\n\t\t\treturn null;\n\t\treturn getTileAt(v.getX(), v.getY());\n\t}", "public abstract Set<Tile> getNeighbors(Tile tile);", "private Location generateRandomStartLocation() {\n\t\tif (!atLeastOneNonWallLocation()) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t\t\t\"There is no free tile available for the player to be placed\");\n\t\t}\n\n\t\twhile (true) {\n\t\t\t// Generate a random location\n\t\t\tfinal Random random = new Random();\n\t\t\tfinal int randomRow = random.nextInt(this.map.getMapHeight());\n\t\t\tfinal int randomCol = random.nextInt(this.map.getMapWidth());\n\n\t\t\tfinal Location location = new Location(randomCol, randomRow);\n\n\t\t\tif (this.map.getMapCell(location).isWalkable()\n\t\t\t\t\t&& !otherPlayerOnTile(location, -1)) {\n\t\t\t\t// If it's not a wall then we can put them there\n\t\t\t\treturn location;\n\t\t\t}\n\t\t}\n\t}", "public Tile getTile() {\n return tile;\n }", "public Tile getTile() {\n return tile;\n }", "public int getTile(int x, int y)\n {\n try {\n return board[x][y];\n } catch (ArrayIndexOutOfBoundsException e) {\n return EMPTY_FLAG;\n }\n }", "public char getSpot(int x,int y){\r\n if(x<0||x>=3||y<0||y>=3){return 7;}\r\n return board[x][y];\r\n }", "int getMinTileX(Long id) throws RemoteException;", "public int getTileWidth() {\n return 8;\n }", "public Cell getCellAt (int x, int y) {\n return grid[x-1][y-1];\n }", "public WorldImage drawBoard() {\r\n return new OverlayOffsetAlign(\"center\", \"bottom\",\r\n new TextImage(\"Flood-It!\", Cnst.textHeight, Color.BLUE),\r\n 0, Cnst.boardHeight + Cnst.scale,\r\n new AboveAlignImage(\"center\",\r\n new TextImage(\"Turn Count: \" + Integer.toString(this.currTurn) + \"/\"\r\n + Integer.toString(this.maxTurn), Cnst.textHeight, Color.BLACK),\r\n this.indexHelp(0,0).drawBoard(this.blocks)).movePinhole(0, (Cnst.scale * 7) / 2)\r\n ).movePinhole(0, (Cnst.scale * 76) / 10)\r\n .movePinhole(-Cnst.boardWidth / 2, -Cnst.boardHeight / 2);\r\n }", "public Position findWeed() {\n int xVec =0;\n int yVec=0;\n int sum = 0;\n Position move = new Position(0, 0);\n for (int i = 0; i < this.WORLD.getMapSize().getX(); i++) {\n for (int j = 0; j < this.WORLD.getMapSize().getY(); j++) {\n\n //hogweed\n Organism organism = this.WORLD.getOrganism(i, j);\n if(organism!=null){\n Class c = organism.getClass();\n if (c.getSimpleName().equals(\"Parnsip\")) {\n int tmpX = Math.abs(this.position.getX() - i);\n int tmpY = Math.abs(this.position.getY() - j);\n if (!(xVec == 0 && yVec == 0)) {\n int tmpSum = tmpX + tmpY;\n if (sum > tmpSum) {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpSum;\n this.setMove(move, j, i);\n }\n }\n else {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpX + tmpY;\n this.setMove(move, j, i);\n }\n }\n }\n\n }\n }\n return move;\n }", "public Coord minCell()\n {\n\t int minX = getGrid().keySet().stream().mapToInt(Coord::getX).min().orElse(0);\n\n\t int minY = getGrid().keySet().stream().mapToInt(Coord::getY).min().orElse(0);\n\n\t return new Coord(minX, minY);\n }", "private Cell getSnowballTarget() {\n Cell[][] blocks = gameState.map;\n int mostWormInRange = 0;\n Cell chosenCell = null;\n\n for (int i = currentWorm.position.x - 5; i <= currentWorm.position.x + 5; i++) {\n for (int j = currentWorm.position.y - 5; j <= currentWorm.position.y + 5; j++) {\n if (isValidCoordinate(i, j)\n && euclideanDistance(i, j, currentWorm.position.x, currentWorm.position.y) <= 5) {\n List<Cell> affectedCells = getSurroundingCells(i, j);\n affectedCells.add(blocks[j][i]);\n int wormInRange = 0;\n for (Cell cell : affectedCells) {\n for (Worm enemyWorm : opponent.worms) {\n if (enemyWorm.position.x == cell.x && enemyWorm.position.y == cell.y\n && enemyWorm.roundsUntilUnfrozen == 0 && enemyWorm.health > 0)\n wormInRange++;\n }\n for (Worm myWorm : player.worms) {\n if (myWorm.position.x == cell.x && myWorm.position.y == cell.y && myWorm.health > 0)\n wormInRange = -5;\n }\n }\n if (wormInRange > mostWormInRange) {\n mostWormInRange = wormInRange;\n chosenCell = blocks[j][i];\n }\n }\n }\n }\n\n return chosenCell;\n }", "public BoxContainer getElement(int x, int y){\n\t\t\tArrayList<Integer> coordinates = new ArrayList<Integer>();\n\t\t\tcoordinates.add(x);\n\t\t\tcoordinates.add(y);\n\t\t\tBoxContainer point = map.get(coordinates);\n\t\t\tif (point == null){\n\t\t\t\treturn BoxContainer.Unkown;\n\t\t\t} else {\n\t\t\t\treturn point;\n\t\t\t}\n\t\t}", "int getTileGridXOffset(Long id) throws RemoteException;", "void randomBlock() {\n\t\t// map generate (int map)\n\t\tfor (int i = 0; i < mapX; i += 2) {\n\t\t\tfor (int j = 0; j < mapY; j += 2) {\n\t\t\t\tint r = (int) Math.random() * 4;\n\t\t\t\tif (r == 0) {\n\t\t\t\t\ttileMap[i][j] = new Tile(i, j, 1);\n\t\t\t\t\ttileMap[i + 1][j] = new Tile(i + 1, j, 1);\n\t\t\t\t\ttileMap[i][j + 1] = new Tile(i, j + 1, 1);\n\t\t\t\t\ttileMap[i + 1][j + 1] = new Tile(i + 1, j + 1, 1);\n\n\t\t\t\t} else {\n\t\t\t\t\ttileMap[i][j] = new Tile(i, j, 0);\n\t\t\t\t\ttileMap[i + 1][j] = new Tile(i + 1, j, 0);\n\t\t\t\t\ttileMap[i][j + 1] = new Tile(i, j + 1, 0);\n\t\t\t\t\ttileMap[i + 1][j + 1] = new Tile(i + 1, j + 1, 0);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.70399714", "0.6766802", "0.66916513", "0.64355433", "0.6387", "0.62330115", "0.61606413", "0.6140057", "0.6091078", "0.6081247", "0.60797614", "0.60260534", "0.60033816", "0.59722364", "0.596197", "0.5940721", "0.59199244", "0.58999133", "0.5884267", "0.5858515", "0.58135843", "0.5813316", "0.5792996", "0.5789285", "0.5789116", "0.57843924", "0.57752645", "0.57732654", "0.5770454", "0.5758097", "0.5748153", "0.5745659", "0.57373923", "0.57179976", "0.57177866", "0.5715367", "0.57095677", "0.57035446", "0.56830716", "0.5655126", "0.56441385", "0.56298137", "0.56238395", "0.56067693", "0.55933034", "0.55889714", "0.55882025", "0.55860037", "0.5585724", "0.55733943", "0.5568717", "0.556866", "0.556404", "0.5557537", "0.55506486", "0.5549787", "0.55493027", "0.5546179", "0.55460674", "0.5536925", "0.55359197", "0.5534055", "0.55322635", "0.5529402", "0.5526323", "0.55205697", "0.5515285", "0.55151707", "0.55148894", "0.5503498", "0.5498748", "0.54842365", "0.5482493", "0.54823506", "0.5482304", "0.54796493", "0.5475385", "0.54653823", "0.5465059", "0.5459822", "0.54559517", "0.5455872", "0.54545903", "0.54482794", "0.54446334", "0.5444388", "0.5443235", "0.5443235", "0.544243", "0.54343945", "0.5429832", "0.5429357", "0.5427532", "0.54272515", "0.54228574", "0.5417577", "0.5407213", "0.5403836", "0.54038274", "0.53928775" ]
0.6967538
1
Builds up a tile that was selected by a players during the building phase
public void buildTile(int column, int row) { tiles[column][row].buildUp(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean selectTile(String player, int coordinate, String area, MBproduction.buildingType build){\n String culture = null;\n boolean AIflag = false;\n boolean placeFlag = false;\n MBproduction.terrainTypeEnum selected;\n String normalizeSelected;\n /*******************************/\n player=player.toLowerCase();\n switch(player.toLowerCase()){\n case\"human\":\n culture = playBoard.humanCulture();\n break;\n case\"ai1\":\n culture = playBoard.AICulture1();\n break;\n case\"ai2\":\n culture = playBoard.AICulture2();\n break;\n default:\n break;\n }\n selected = playBoard.getIndiTerrain(coordinate);\n normalizeSelected = \n selected.toString().substring(0, selected.toString().length()-1);\n switch(culture.toLowerCase()){\n //norse\n case\"norse\":\n switch(area.toLowerCase()){\n case\"production\":\n for (int i = 0; i < norseProduction.size(); i ++){\n if (norseProduction.get(i).getName().equalsIgnoreCase(normalizeSelected)){\n norseProduction.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(selected.getPath())));\n norseProduction.remove(i);\n playBoard.updateProductionResourceCube(player, selected);\n playBoard.exileTerrain(selected); \n tileSelection.get(coordinate).setEnabled(false);\n stackAI.remove(stackAI.indexOf(coordinate));\n placeFlag = true;AIflag = true;\n break;\n }\n }\n break;\n //!!!!!!!!WARNNING!!!!!!!! NEED TO MODIFY FOR ITERATION II\n case\"city\":\n for (int i = 0; i < norseCity.size(); i ++){\n if (norseCity.get(i).getIcon() == null){\n norseCity.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(build.getPath())));\n placeFlag = true;\n break;\n }\n }\n break;\n default:\n break;\n }\n break;\n //greek \n case\"greek\":\n switch(area.toLowerCase()){\n case\"production\":\n for (int i = 0; i < greekProduction.size(); i ++){\n if (greekProduction.get(i).getName().equalsIgnoreCase(normalizeSelected)){\n greekProduction.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(selected.getPath())));\n greekProduction.remove(i);\n playBoard.updateProductionResourceCube(player, selected);\n playBoard.exileTerrain(selected); \n tileSelection.get(coordinate).setEnabled(false);\n stackAI.remove(stackAI.indexOf(coordinate));\n placeFlag = true;AIflag = true;\n break;\n }\n }\n break;\n //!!!!!!!!WARNNING!!!!!!!! NEED TO MODIFY FOR ITERATION II\n case\"city\":\n for (int i = 0; i < greekCity.size(); i ++){\n if (greekCity.get(i).getIcon() == null){\n greekCity.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(build.getPath())));\n placeFlag = true;\n break;\n } \n }\n break;\n default:\n break;\n }\n break;\n //egypt\n case\"egypt\":\n switch(area.toLowerCase()){\n case\"production\":\n for (int i = 0; i < egyptProduction.size(); i ++){\n if (egyptProduction.get(i).getName().equalsIgnoreCase(normalizeSelected)){\n egyptProduction.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(selected.getPath())));\n playBoard.updateProductionResourceCube(player, selected);\n playBoard.exileTerrain(selected);\n egyptProduction.remove(i);\n tileSelection.get(coordinate).setEnabled(false);\n stackAI.remove(stackAI.indexOf(coordinate));\n placeFlag = true;AIflag = true;\n break; \n }\n }\n break;\n //!!!!!!!!WARNNING!!!!!!!! NEED TO MODIFY FOR ITERATION II\n case\"city\":\n for (int i = 0; i < egyptCity.size(); i ++){\n if (egyptCity.get(i).getIcon() == null){\n egyptCity.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(build.getPath())));\n placeFlag = true;\n break;\n } \n }\n break;\n default:\n break;\n }\n break;\n default:\n break;\n }\n if ((!placeFlag)&&(player.equalsIgnoreCase(\"human\"))){\n JOptionPane.showMessageDialog(\n null, \"No suitable tile for \" + player , \"Information\",\n JOptionPane.WARNING_MESSAGE);\n }\n return AIflag; \n }", "void buildDome(Tile t);", "void buildBlock(Tile t);", "void doPlaceBuilding() {\r\n\t\tint idx = buildingTable.getSelectedRow();\r\n\t\tif (idx >= 0) {\r\n\t\t\tidx = buildingTable.convertRowIndexToModel(idx);\r\n\t\t\tTileEntry te = buildingTableModel.rows.get(idx);\r\n\t\t\tif (renderer.selectedRectangle != null && renderer.selectedRectangle.width > 0) {\r\n\t\t\t\tUndoableMapEdit undo = new UndoableMapEdit(renderer.surface);\r\n\t\t\t\t\r\n\t\t\t\tRectangle clearRect = new Rectangle(renderer.selectedRectangle);\r\n\t\t\t\tclearRect.width = ((clearRect.width + te.tile.width) / (te.tile.width + 1)) * (te.tile.width + 1) + 1;\r\n\t\t\t\tclearRect.height = ((clearRect.height + te.tile.height) / (te.tile.height + 1)) * (te.tile.height + 1) + 1;\r\n\t\t\t\tdeleteEntitiesOf(renderer.surface.buildingmap, clearRect, true);\r\n\t\t\t\t\r\n\t\t\t\tfor (int x = renderer.selectedRectangle.x; x < renderer.selectedRectangle.x + renderer.selectedRectangle.width; x += te.tile.width + 1) {\r\n\t\t\t\t\tfor (int y = renderer.selectedRectangle.y; y > renderer.selectedRectangle.y - renderer.selectedRectangle.height; y -= te.tile.height + 1) {\r\n\t\t\t\t\t\tBuilding bld = new Building(te.buildingType, te.surface);\r\n\t\t\t\t\t\tbld.makeFullyBuilt();\r\n\t\t\t\t\t\tbld.location = Location.of(x + 1, y - 1);\r\n\t\t\t\t\t\trenderer.surface.buildings.add(bld);\r\n\t\t\t\t\t\tplaceTile(te.tile, bld.location.x, bld.location.y, SurfaceEntityType.BUILDING, bld);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tplaceRoads(te.surface);\r\n\t\t\t\tundo.setAfter();\r\n\t\t\t\taddUndo(undo);\r\n\t\t\t\trenderer.repaint();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public BuildByPermitTile map(BuildByPermitTileDTO selectedActionDTO);", "public void initTiles()\n {\n PropertiesManager props = PropertiesManager.getPropertiesManager(); \n String imgPath = props.getProperty(MahjongSolitairePropertyType.IMG_PATH);\n int spriteTypeID = 0;\n SpriteType sT;\n \n // WE'LL RENDER ALL THE TILES ON TOP OF THE BLANK TILE\n String blankTileFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_IMAGE_NAME);\n BufferedImage blankTileImage = miniGame.loadImageWithColorKey(imgPath + blankTileFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileImage(blankTileImage);\n \n // THIS IS A HIGHLIGHTED BLANK TILE FOR WHEN THE PLAYER SELECTS ONE\n String blankTileSelectedFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_SELECTED_IMAGE_NAME);\n BufferedImage blankTileSelectedImage = miniGame.loadImageWithColorKey(imgPath + blankTileSelectedFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileSelectedImage(blankTileSelectedImage);\n \n // FIRST THE TYPE A TILES, OF WHICH THERE IS ONLY ONE OF EACH\n // THIS IS ANALOGOUS TO THE SEASON TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeATiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_A_TILES);\n for (int i = 0; i < typeATiles.size(); i++)\n {\n String imgFile = imgPath + typeATiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_A_TYPE);\n spriteTypeID++;\n }\n \n // THEN THE TYPE B TILES, WHICH ALSO ONLY HAVE ONE OF EACH\n // THIS IS ANALOGOUS TO THE FLOWER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeBTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_B_TILES);\n for (int i = 0; i < typeBTiles.size(); i++)\n {\n String imgFile = imgPath + typeBTiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_B_TYPE);\n spriteTypeID++;\n }\n \n // AND THEN TYPE C, FOR WHICH THERE ARE 4 OF EACH \n // THIS IS ANALOGOUS TO THE CHARACTER AND NUMBER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeCTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_C_TILES);\n for (int i = 0; i < typeCTiles.size(); i++)\n {\n String imgFile = imgPath + typeCTiles.get(i);\n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID); \n for (int j = 0; j < 4; j++)\n {\n initTile(sT, TILE_C_TYPE);\n }\n spriteTypeID++;\n }\n }", "private void createTile(){\n for(int i = 0; i < COPY_TILE; i++){\n for(int k = 0; k < DIFF_TILES -2; k++){\n allTiles.add(new Tile(k));\n }\n }\n }", "void doSelectBuilding() {\r\n\t\tint idx = buildingTable.getSelectedRow();\r\n\t\tif (idx >= 0) {\r\n\t\t\tidx = buildingTable.convertRowIndexToModel(idx);\r\n\t\t\tTileEntry tileEntry = buildingTableModel.rows.get(idx);\r\n\t\t\tpreview.setImage(tileEntry.previewTile);\r\n\t\t\trenderer.placementRectangle.width = tileEntry.tile.width + 2;\r\n\t\t\trenderer.placementRectangle.height = tileEntry.tile.height + 2;\r\n\t\t\tsurfaceTable.getSelectionModel().clearSelection();\r\n\t\t\tcurrentBaseTile = null;\r\n\t\t\tcurrentBuildingType = tileEntry.buildingType;\r\n\t\t\tcurrentBuildingRace = tileEntry.surface;\r\n\t\t}\r\n\t}", "public void createTiles() {\r\n Session session = sessionService.getCurrentSession();\r\n Campaign campaign = session.getCampaign();\r\n\r\n tilePane.getChildren().clear();\r\n List<Pc> pcs = null;\r\n try {\r\n pcs = characterService.getPlayerCharacters();\r\n } catch (MultiplePlayersException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n if (pcs != null) {\r\n pcs = pcs.stream().filter(pc -> campaign.getPcs().stream().anyMatch(\r\n campaignPc -> campaignPc.getId().equalsIgnoreCase(pc.getId())\r\n )).collect(Collectors.toList());\r\n\r\n for (Pc pc : pcs) {\r\n SortedMap<String, String> items = getTileItems(pc);\r\n Tile tile = new Tile(pc.getId(), pc.getName(), items);\r\n tile.setOnMouseClicked(mouseEvent -> {\r\n try {\r\n sessionService.updateParticipant(playerManagementService.getRegisteredPlayer().getId(), tile.getObjectId());\r\n } catch (EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n parentController.updateSession(sessionService.getCurrentSession());\r\n parentController.switchView();\r\n });\r\n tilePane.getChildren().add(tile);\r\n }\r\n }\r\n }", "private void createNewCity()\r\n {\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n boolean canBuild = false;\r\n\r\n if(currentPlayer == 1)\r\n {\r\n int unitType = worldPanel.player1.units[currentUnit - 1].getUnitType();\r\n if(unitType == 1)//if unit is a settler\r\n canBuild = true;\r\n }\r\n\r\n else if(currentPlayer == 2)\r\n {\r\n int unitType = worldPanel.player1.units[currentUnit - 1].getUnitType();\r\n if(unitType == 1)//if unit is a settler\r\n canBuild = true;\r\n }\r\n\r\n //if the unit who presses build is a settler\r\n if(canBuild == true)\r\n {\r\n if(currentPlayer == 1)\r\n {\r\n int playerLoc = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n worldPanel.player1.addCity(playerLoc);\r\n currentUnit++;\r\n worldPanel.setCurrentUnit(currentUnit);\r\n }//end if\r\n else if(currentPlayer == 2)\r\n {\r\n int playerLoc = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n worldPanel.player2.addCity(playerLoc);\r\n currentUnit++;\r\n worldPanel.setCurrentUnit(currentUnit);\r\n }//end elseif\r\n }//end if\r\n\r\n //set new player and unit if necessary\r\n int temp = worldPanel.getNumUnits(currentPlayer);\r\n if(currentUnit > temp)\r\n {\r\n if(currentPlayer == 1)\r\n worldPanel.setCurrentPlayer(2);\r\n else\r\n worldPanel.setCurrentPlayer(1);\r\n worldPanel.setCurrentUnit(1);\r\n }//end if\r\n\r\n //set up new mapPosition if player moved\r\n if(canBuild == true)\r\n setMapPos();\r\n setInfoPanel();\r\n }", "public void selectTile(MahjongSolitaireTile selectTile)\n {\n // IF IT'S ALREADY THE SELECTED TILE, DESELECT IT\n if (selectTile == selectedTile)\n {\n selectedTile = null;\n selectTile.setState(VISIBLE_STATE);\n return;\n }\n \n // IF THE TILE IS NOT AT THE TOP OF ITS STACK, DO NOTHING\n int col = selectTile.getGridColumn();\n int row = selectTile.getGridRow();\n int index = tileGrid[col][row].indexOf(selectTile);\n if (index != (tileGrid[col][row].size() - 1))\n return;\n \n // IF THE TILE IS NOT FREE, DO NOTHING, BUT MAKE SURE WE GIVE FEEDBACK\n if ((col > 0) && (col < (gridColumns - 1)))\n {\n int leftZ = tileGrid[col-1][row].size();\n int z = tileGrid[col][row].size();\n int rightZ = tileGrid[col+1][row].size();\n if ((z <= leftZ) && (z <= rightZ))\n {\n // IF IT'S ALREADY INCORRECTLY SELECTED, DEACTIVATE THE FEEDBACK\n if (selectTile.getState().equals(INCORRECTLY_SELECTED_STATE))\n {\n selectTile.setState(VISIBLE_STATE);\n redTile = null;\n return;\n }\n else if(selectTile.getState().equals(VISIBLE_STATE))\n {\n //check if there's another red tile\n if(redTile != null)\n {\n //then make previous red tile visible instead\n redTile.setState(VISIBLE_STATE);\n redTile = null;\n }\n //make it red and give it audio\n selectTile.setState(INCORRECTLY_SELECTED_STATE);\n miniGame.getAudio().play(MahjongSolitairePropertyType.BLOCKED_TILE_AUDIO_CUE.toString(), false);\n redTile = selectTile;\n return;\n }\n }\n }\n\n // IT'S FREE\n if (selectedTile == null)\n {\n selectedTile = selectTile;\n selectedTile.setState(SELECTED_STATE);\n miniGame.getAudio().play(MahjongSolitairePropertyType.SELECT_AUDIO_CUE.toString(), false);\n }\n //they match\n else if(selectedTile.match(selectTile))\n {\n //remove\n MahjongSolitaireMove move = new MahjongSolitaireMove();\n move.col1 = selectedTile.getGridColumn();\n move.row1 = selectedTile.getGridRow();\n move.col2 = selectTile.getGridColumn();\n move.row2 = selectTile.getGridRow();\n processMove(move);\n redTile.setState(VISIBLE_STATE);\n redTile = null;\n }\n // THEY DON'T MATCH, GIVE SOME AUDIO FEEDBACK\n else\n {\n miniGame.getAudio().play(MahjongSolitairePropertyType.NO_MATCH_AUDIO_CUE.toString(), false); \n }\n }", "public TileSelector(){\r\n super();\r\n \r\n }", "public static Tile[][] setUpMap() {\n\n Tile[][] tiles = new Tile[5][9];\n String[][] defaultMapLayout = GameMap.getMapLayout();\n\n for (int i = 0; i < 5; i++) {\n\n for (int j = 0; j < 9; j++) {\n\n String tileType = defaultMapLayout[i][j];\n\n if (tileType.equals(\"P\")) {\n Tile newTileName = new Plain();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"R\")) {\n Tile newTileName = new River();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M1\")) {\n Tile newTileName = new Mountain1();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M2\")) {\n Tile newTileName = new Mountain2();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M3\")) {\n Tile newTileName = new Mountain3();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"SM\")) {\n Tile newTileName = new SwampMonster();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"O\")) {\n Tile newTileName = new Ocean();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"G\")) {\n Tile newTileName = new Grass();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"V\")) {\n Tile newTileName = new Volcano();\n tiles[i][j] = newTileName;\n\n }else {\n Tile newTileName = new Plain();\n tiles[i][j] = newTileName;\n newTileName.setOwner(null);\n }\n\n }\n }\n return tiles;\n }", "private void createNewUnit()\r\n {\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n int randomNumber = (int)Math.ceil(Math.random() * 8);\r\n boolean canBuild = false;\r\n\r\n if(currentPlayer == 1)\r\n {\r\n int unitType = worldPanel.player1.units[currentUnit - 1].getUnitType();\r\n if(unitType == 1)//if unit is a settler\r\n canBuild = true;\r\n }\r\n\r\n else if(currentPlayer == 2)\r\n {\r\n int unitType = worldPanel.player2.units[currentUnit - 1].getUnitType();\r\n if(unitType == 1)//if unit is a settler\r\n canBuild = true;\r\n }\r\n\r\n //if the unit who presses build is a settler\r\n if(canBuild == true)\r\n {\r\n if(currentPlayer == 1)\r\n {\r\n int playerLoc = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n worldPanel.player1.addUnit2(randomNumber);\r\n int noUnits = worldPanel.player1.getNumUnits();\r\n\t\t\t\t\t\t\t\tif(randomNumber == 7)//if unit is a ship\r\n\t\t\t\t\t\t\t\t\tworldPanel.player1.units[noUnits].setPosition(getSeaLoc(playerLoc));\r\n\t\t\t\t\t\t\t\telse\r\n \tworldPanel.player1.units[noUnits].setPosition(playerLoc);\r\n worldPanel.player1.setNumUnits(noUnits + 1);\r\n currentUnit++;\r\n worldPanel.setCurrentUnit(currentUnit);\r\n }//end if\r\n else if(currentPlayer == 2)\r\n {\r\n int playerLoc = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n worldPanel.player2.addUnit2(randomNumber);\r\n int noUnits = worldPanel.player2.getNumUnits();\r\n\t\t\t\t\t\t\t\tif(randomNumber == 7)//if unit is a ship\r\n\t\t\t\t\t\t\t\t\tworldPanel.player2.units[noUnits].setPosition(getSeaLoc(playerLoc));\r\n\t\t\t\t\t\t\t\telse\r\n \tworldPanel.player2.units[noUnits].setPosition(playerLoc);\r\n worldPanel.player2.setNumUnits(noUnits + 1);\r\n currentUnit++;\r\n worldPanel.setCurrentUnit(currentUnit);\r\n }//end elseif\r\n }//end if\r\n\r\n //set new player and unit if necessary\r\n int temp = worldPanel.getNumUnits(currentPlayer);\r\n if(currentUnit > temp)\r\n {\r\n if(currentPlayer == 1)\r\n worldPanel.setCurrentPlayer(2);\r\n else\r\n worldPanel.setCurrentPlayer(1);\r\n worldPanel.setCurrentUnit(1);\r\n }//end if\r\n\r\n //set up new mapPosition if player moved\r\n if(canBuild == true)\r\n setMapPos();\r\n setInfoPanel();//set up information panel\r\n }", "private void fetchTile() {\n\t\t\tif (tile.getRequest().isCancelled() || tile.isFinal()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tMapSource source = tile.getRequest().getSource();\n\t\t\tProjObj proj = tile.getRequest().getProjection();\n\t\t\tfinal int ppd = tile.getRequest().getPPD();\n\t\t\t\n\t\t\tfor (int fuzzyPPD = ppd/2 ; fuzzyPPD > 1 ; fuzzyPPD /= 2){\t\t\t\t\n\t\t\t\tint ratio = ppd / fuzzyPPD;\n\t\t\t\t\n\t\t\t\t// A tile has 256 pixels on a side.\n\t\t\t\t// Using this method, we can't upscale data to be fuzzy if it's more than 256 times larger \n\t\t\t\t// than the area we are looking to fill. Upscaling data more than 16 times seems unlikely to provide\n\t\t\t\t// any real benefit to the user, so we will quit our search at this point\n\t\t\t\tif (ratio>16) break;\n\t\t\t\t\n\t\t\t\tString tileName = CacheManager.getTileName(\n\t\t\t\t\tsource.getName(), proj, fuzzyPPD,\n\t\t\t\t\ttile.getXtile()/ratio, tile.getYtile()/ratio,\n\t\t\t\t\tsource.hasNumericKeyword());\n\t\t\t\t\n\t\t\t\tBufferedImage tileImage = CacheManager.getTile(source, tileName);\n\t\t\t\t\n\t\t\t\tif (tileImage==null) {\t\t\t\t\t\t\t\t\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint xtileindex = tile.getXtile() % ratio;\n\t\t\t\tint ytileindex = ratio - (tile.getYtile() % ratio) - 1;\n\t\t\t\t\n\t\t\t\tdouble fuzzyxstep = MapRetriever.tiler.getPixelWidth() / ratio;\n\t\t\t\tdouble fuzzyystep = MapRetriever.tiler.getPixelHeight() / ratio;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\ttileImage = tileImage.getSubimage((int)(xtileindex * fuzzyxstep), (int)(ytileindex * fuzzyystep), (int)fuzzyxstep, (int)fuzzyystep);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog(e);\n\t\t\t\t\tlog(\"xtileindex:\"+xtileindex+\" fuzzyxstep:\"+fuzzyxstep+\" ytileindex:\"+ytileindex+\" fuzzyystep:\"+fuzzyystep);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlong outputImageSize = (tileImage.getWidth()*ratio)*(tileImage.getHeight()*ratio);\n\t\t\t\tif (outputImageSize <= 0 || outputImageSize > Integer.MAX_VALUE){\n\t\t\t\t\tlog(\"Scaling tile from \"+fuzzyPPD+\" to \"+ppd+\" will result in image size overflow.\"+\n\t\t\t\t\t\t\t\" Stopping further search for lower PPDs for this tile.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttileImage = CacheManager.scaleImage(tileImage, ratio);\n\t\t\t\t\n\t\t\t\tmyRetriever.fuzzyResponse(tile, tileImage);\n\t\t\t}\t\t\t\t\t\t\n\t\t}", "public void setTiles() {\n\t\tTileStack names = new TileStack();\n\t\tfor(int x=0; x < theBoard.getCols(); x++) {\n\t\t\tfor(int y=0; y < theBoard.getRows(); y++) {\n\t\t\t\tp = new Point(x,y);\n\t\t\t\tif(p.equals(new Point(0,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(1,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(4,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,1)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,1)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,4)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,4)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(1,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(4,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse \n\t\t\t\t\ttheBoard.setTile(p, names.pop());\n\t\t\t}\n\t\t}\n\t}", "@Override\n protected void generateTiles() {\n }", "private Array<Tile>[] walk() {\n float targetY = currentTile.y + 1;\n Vector2 previousTile = new Vector2(currentTile.x, currentTile.y);\n\n Array<Vector2> tiles = new Array<Vector2>();\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n\n while(currentTile.y < targetY) {\n float rnd = random.nextFloat();\n\n if(rnd > 0.75f) { // up\n Array<Tile> grassRow = new Array<Tile>();\n Array<Tile> treeRow = new Array<Tile>();\n\n for(int x = 1; x <= 5; x++) {\n Vector2 vector = new Vector2(x, currentTile.y);\n\n GrassNEW grass = grassPool.obtain();\n grass.init(vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n grassRow.add(grass);\n\n if(!tiles.contains(vector, false)) {\n if(random.nextFloat() > 0.3) {\n TreeNEW tree = treePool.obtain();\n tree.init(vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n treeRow.add(tree);\n }\n } else {\n if(random.nextFloat() > 0.99) {\n Collectible power = new PowerUpSpikes(world, spikesTexture, vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n collectibles.add(power);\n } else {\n if(random.nextFloat() > 0.5) {\n Coin coin = new Coin(world, coinTexture, vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n collectibles.add(coin);\n }\n }\n }\n }\n\n currentTile.add(0, 1);\n\n Array<Tile>[] ret = new Array[2];\n ret[0] = grassRow;\n ret[1] = treeRow;\n\n return ret;\n } else if(rnd > 0.375) { // right\n if(currentTile.x < 5 && Math.abs(previousTile.x - currentTile.x) <= 2) {\n currentTile.add(1, 0);\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n }\n } else { // left\n if(currentTile.x > 1 && Math.abs(previousTile.x - currentTile.x) <= 2) {\n currentTile.add(-1, 0);\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n }\n }\n }\n\n return null; // will never happen\n }", "public TiledMap createMap() {\n map_inter = new MapTile[g_logic.MAP_WIDTH][g_logic.MAP_HEIGHT];\n \n //drawing stuff\n tiles = new Texture(Gdx.files.internal(\"packed/terrain.png\"));\n TextureRegion[][] splitTiles = TextureRegion.split(tiles, 54, 54);\n map = new TiledMap();\n MapLayers layers = map.getLayers();\n TiledMapTileLayer new_layer = new TiledMapTileLayer(g_logic.MAP_WIDTH, g_logic.MAP_HEIGHT, g_logic.ISO_WIDTH, g_logic.ISO_HEIGHT);\n \n //actual generation\n for (int x = 0; x < g_logic.MAP_WIDTH; x++) \n {\n for (int y = 0; y < g_logic.MAP_HEIGHT; y++) \n {\n char chara = '.';\n int ty = 0;\n int tx;\n if (x == 0 || x == g_logic.MAP_WIDTH-1)\n {\n tx = 1;\n chara = '#';\n }\n else\n {\n tx = 0; \n chara = '.';\n }\n \n //set up map tiles\n MapTile tile = new MapTile(x, y, tx, ty, chara);\n Gdx.app.log(\"Map gen\", \"Created a map tile @\" + x + \",\" + y + \" \" + tx + \" \" + ty + \" \" + chara);\n \n //put them in the internal map\n putInterMap(tile, x, y);\n \n //set up renderer cells\n TiledMapTileLayer.Cell cell = new TiledMapTileLayer.Cell();\n //y,x\n cell.setTile(new StaticTiledMapTile(splitTiles[tile.getTextureY()][tile.getTextureX()]));\n new_layer.setCell(x, y, cell);\n }\n }\n \n \n float y_off = g_logic.getYOffset();\n new_layer.setOffsetY(y_off);\n layers.add(new_layer);\n \n g_logic.setInterMap(map_inter);\n\n return map;\n }", "public void generateShape() {\n\n //TODO for tetris game - copy added to Tetris\n Shape newShape = null;\n //if(GAME_TO_TEST==GameEnum.TETRIS){\n //newShape = TetrisShapeFactory.getRandomShape(this.board);\n //} else if (GAME_TO_TEST== GameEnum.DRMARIO){\n //newShape = DrMarioShapeFactory.getRandomShape(this.board);\n //}\n\n //Temporary\n //-------------------------------------//\n Image image = null;\n try {\n image = new Image(new FileInputStream(\"resources/BlockPurple.png\"));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n int spawnColIndex = 0;\n int spawnRowIndex = 0;\n int tileSize = 0;\n boolean setColor = false;\n boolean setTileBorder = false; //toggle to add boarder to tile\n boolean setImage = true;\n spawnColIndex = (board.gridWidth-1)/2; //half of board width\n spawnRowIndex = 0;\n tileSize = board.tileSize;\n\n Tile tile1 = new Tile(tileSize, setColor, Color.VIOLET, setTileBorder, setImage, image, spawnColIndex,spawnRowIndex, 0 , Direction.DOWN); //Center Tile\n Tile tile2 = new Tile(tileSize, setColor, Color.VIOLET, setTileBorder, setImage, image, spawnColIndex,spawnRowIndex,1 , Direction.RIGHT);\n Tile tile3 = new Tile(tileSize, setColor, Color.VIOLET, setTileBorder, setImage, image, spawnColIndex,spawnRowIndex, 1 , Direction.LEFT);\n Tile tile4 = new Tile(tileSize, setColor, Color.VIOLET, setTileBorder, setImage, image, spawnColIndex,spawnRowIndex, 1 , Direction.DOWN);\n\n List<Tile> tiles = new ArrayList<Tile>();\n tiles.add(tile1);\n tiles.add(tile2);\n tiles.add(tile3);\n tiles.add(tile4);\n newShape = new Shape(tiles);\n\n //set newly created shape as the currently active shape\n this.currentActiveShape = newShape;\n\n //check if spawn area is occupied\n boolean isOccupied =false;\n for (Tile newTile : this.currentActiveShape.tiles) {\n if(this.board.getTile(newTile.columnIndex,newTile.rowIndex)!=null){\n isOccupied = true;\n }\n }\n\n //TODO\n //check if shape reaches top\n if(!isOccupied){\n //add tiles to board\n for (Tile newTile : this.currentActiveShape.tiles) {\n this.board.placeTile(newTile);\n }\n } else {\n //TODO later add Game Over JavaFx message\n System.out.println(\"GAME OVER\");\n\n //TODO Finishlater\n //Text gameoverText = new Text(10,20,\"GAME OVER\");\n //gameoverText.setFill(Color.RED);\n //gameoverText.setX( 100/*( ((board.gridWidth-1)*tileSize)/2)*/ );\n //gameoverText.setY( 100/*( ((board.gridHeight-1)*tileSize)/2)*/ );\n //gameoverText.setStyle(\"-fx-font: 70 arial;\");\n //this.group.getChildren().add(gameoverText);\n\n //Text t = new Text();\n //t.setX(20.0f);\n //t.setY(65.0f);\n //t.setX(100);\n //t.setY(200);\n //t.setText(\"Perspective\");\n //t.setFill(Color.YELLOW);\n //t.setFont(Font.font(null, FontWeight.BOLD, 36));\n //this.group.getChildren().add(t);\n //this.pane.getChildren().add(t);\n\n //System.exit(0);\n }\n\n }", "Render() {\n int imgNum;\n SampleModel sm = baseImage.getSampleModel(); // Set up the attributes for the new image.\n newImage = new TiledImage(baseImage.getMinX(),\n baseImage.getMinY(),\n (pixWidth * hTiles),\n (pixHeight * vTiles),\n baseImage.getTileGridXOffset(),\n baseImage.getTileGridYOffset(),\n baseImage.getSampleModel(),\n baseImage.getColorModel());\n RenderedImage smallImage; // Variable for holding the scaled down image to be placed in the large image.\n int tileArray[][] = new int[hTiles][vTiles]; // The array of how the tiles are arranged.\n // First, we select what tiles go where...\n for (int x = 0; x < hTiles; x++) { // Cycle through the image tiles, horizontally.\n for (int y = 0; y < vTiles; y++) { // Cycle through the image tiles, vertically.\n try {\n tileArray[x][y] = findBestFit(mapArray[x][y], tileArray, x, y); // Find the tile to go there.\n setCurr((x * vTiles) + y); // Update task stuff.\n setMsg(\"Choosing Image For Tile #\" + ((x * vTiles) + y));\n } catch (Exception e) {}\n }\n }\n\n setCurr(0); // Task stuff, for progress indicators...\n setMsg(\"Done Selecting Tiles... Generating Image\");\n\n // Next, we actually build the image based on the tiles we chose.\n for (int x = 0; x < hTiles; x++) { // Again, cycle horizonally,\n for (int y = 0; y < vTiles; y++) { // And vertically. ( for every tile in the image )\n try {\n smallImage = imageLoader.getRenderedImage(tileLibrary.get(tileArray[x][y]).getFileName()); // Load the image from the tile we selected.\n smallImage = imageOps.scale(smallImage, pixWidth, pixHeight); // Scale the image to the appropriate size.\n // Create a region of interest on the large image to paste the small image into.\n ROIShape myROI = new ROIShape(new Rectangle((x*pixWidth), (y*pixHeight), smallImage.getWidth(), smallImage.getHeight()));\n ParameterBlock pb = new ParameterBlock(); // Move the image to the appropriate spot...\n pb.addSource(smallImage);\n pb.add((float)(x*pixWidth));\n pb.add((float)(y*pixHeight));\n pb.add(new InterpolationNearest());\n smallImage = JAI.create(\"translate\", pb, null); // Do the translation.\n newImage.setData(smallImage.getData(), myROI); // Stick the tile image into the large image.\n setCurr((x * vTiles) + y); // Update task stuff.\n setMsg(\"Building Tile# \" + ((x * vTiles) + y));\n } catch (Exception e) {}\n }\n }\n setCurr(lengthOfTask); // Finish up the task stuff.\n setMsg(\"DONE!\");\n }", "@Override\n\tprotected void generateTiles() {\n\t}", "public void initTiles() {\n\t\ttileList.add(new Go());\n\n\t\t// Brown properties\n\t\tProperty mediterranean = new Property(\"Mediterranean\");\n\t\tProperty balticAve = new Property(\"Baltic Avenue\");\n\n\t\t// Light blue properties\n\t\tProperty orientalAve = new Property(\"Oriental Avenue\");\n\t\tProperty vermontAve = new Property(\"Vermont Avenue\");\n\t\tProperty connecticutAve = new Property(\"Connecticut Avenue\");\n\n\t\t// Magenta properties\n\t\tProperty stCharles = new Property(\"St. Charles Place\");\n\t\tProperty statesAve = new Property(\"States Avenue\");\n\t\tProperty virginiaAve = new Property(\"Virginia Avenue\");\n\n\t\t// Orange properties\n\t\tProperty stJames = new Property(\"St. James Place\");\n\t\tProperty tennesseeAve = new Property(\"Tennessee Avenue\");\n\t\tProperty newYorkAve = new Property(\"New York Avenue\");\n\n\t\t// Red properties\n\t\tProperty kentuckyAve = new Property(\"Kentucky Avenue\");\n\t\tProperty indianaAve = new Property(\"Indiana Avenue\");\n\t\tProperty illinoisAve = new Property(\"Illinois Avenue\");\n\n\t\t// Yellow Properties\n\t\tProperty atlanticAve = new Property(\"Atlantic Avenue\");\n\t\tProperty ventnorAve = new Property(\"Ventnor Avenue\");\n\t\tProperty marvinGard = new Property(\"Marvin Gardins\");\n\n\t\t// Green Properties\n\t\tProperty pacificAve = new Property(\"Pacific Avenue\");\n\t\tProperty northCar = new Property(\"North Carolina Avenue\");\n\t\tProperty pennsylvannia = new Property(\"Pennsylvania Avenue\");\n\n\t\t// Dark blue properties\n\t\tProperty parkPlace = new Property(\"Park Place\");\n\t\tProperty boardWalk = new Property(\"Boardwalk\");\n\n\t\t// Tax tiles\n\t\tTaxTile incomeTax = new TaxTile(\"Income Tax\", 200);\n\t\tTaxTile luxuryTax = new TaxTile(\"Luxury Tax\", 100);\n\n\t\t// Utilities\n\t\tUtility electric = new Utility(\"Electric Company\");\n\t\tUtility water = new Utility(\"Water Works\");\n\n\t\t// Railroads\n\t\tRailroad reading = new Railroad(\"Reading\");\n\t\tRailroad pennRail = new Railroad(\"Pennsylvania\");\n\t\tRailroad bno = new Railroad(\"B & O\");\n\t\tRailroad shortLine = new Railroad(\"Short Line\");\n\n\t\t// Chance and community chest\n\t\tChance chance = new Chance();\n\t\tCommunity chest = new Community();\n\n\t\t// Adds the properties by color in accordance with their position on the board\n\t\t// adds color + placement of piece to a list of their respective colors\n\t\tbrown.add(1);\n\t\tbrown.add(3);\n\t\trailroads.add(5);\n\t\tlightBlue.add(6);\n\t\tlightBlue.add(8);\n\t\tlightBlue.add(9);\n\t\tmagenta.add(11);\n\t\tutilities.add(12);\n\t\tmagenta.add(13);\n\t\tmagenta.add(14);\n\t\trailroads.add(15);\n\t\torange.add(16);\n\t\torange.add(18);\n\t\torange.add(19);\n\t\tred.add(21);\n\t\tred.add(23);\n\t\tred.add(24);\n\t\trailroads.add(25);\n\t\tyellow.add(26);\n\t\tyellow.add(27);\n\t\tutilities.add(28);\n\t\tyellow.add(29);\n\t\tgreen.add(31);\n\t\tgreen.add(32);\n\t\tgreen.add(34);\n\t\trailroads.add(35);\n\t\tdarkBlue.add(37);\n\t\tdarkBlue.add(39);\n\n\t\t// tileList is the list of tiles of the board where each tile is representative of a place on the board\n\t\t// adds each tile is chronological order beginning of the board \"go\"\n\t\t//this list includes: properties, taxes, railroads, chance, community chest\n\t\t\n\t\ttileList.add(new Go());\n\n\t\ttileList.add(mediterranean);\n\t\ttileList.add(chest);\n\t\ttileList.add(balticAve);\n\t\ttileList.add(incomeTax);\n\t\ttileList.add(reading);\n\t\ttileList.add(orientalAve);\n\t\ttileList.add(chance);\t\n\t\ttileList.add(vermontAve);\n\t\ttileList.add(connecticutAve);\n\n\t\ttileList.add(new Jail());\n\t\t\t\n\t\ttileList.add(stCharles);\n\t\ttileList.add(electric);\t\t\t\n\t\ttileList.add(statesAve);\t\t\t\n\t\ttileList.add(virginiaAve);\n\t\ttileList.add(pennRail);\n\t\ttileList.add(stJames);\t\n\t\ttileList.add(chest);\n\t\ttileList.add(tennesseeAve);\t\t\t\n\t\ttileList.add(newYorkAve);\n\n\t\ttileList.add(new FreeParking());\n\t\t\t\n\t\ttileList.add(kentuckyAve);\t\t\n\t\ttileList.add(chance);\t\n\t\ttileList.add(indianaAve);\t\t\t\n\t\ttileList.add(illinoisAve);\n\t\ttileList.add(bno);\n\t\ttileList.add(atlanticAve);\t\t\t\n\t\ttileList.add(ventnorAve);\n\t\ttileList.add(water);\n\t\ttileList.add(marvinGard);\n\n\t\ttileList.add(new GoToJail());\n\t\t\t\t\t\n\t\ttileList.add(pacificAve);\t\t\t\n\t\ttileList.add(northCar);\n\t\ttileList.add(chest);\t\t\t\n\t\ttileList.add(pennsylvannia);\n\t\ttileList.add(shortLine);\n\t\ttileList.add(chance);\n\t\ttileList.add(parkPlace);\n\t\ttileList.add(luxuryTax);\n\t\ttileList.add(boardWalk);\n\t}", "public void fillWithIslandTiles() {\n\t\tthis.addCard(new IslandTile(\"Breakers Bridge\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Bronze Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Cliffs of Abandon\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Cave of Embers\", CardType.TILE, TreasureType.CRYSTAL_OF_FIRE));\n\t\tthis.addCard(new IslandTile(\"Crimson Forest\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Copper Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Coral Palace\", CardType.TILE, TreasureType.OCEAN_CHALICE));\n\t\tthis.addCard(new IslandTile(\"Cave of Shadows\", CardType.TILE, TreasureType.CRYSTAL_OF_FIRE));\n\t\tthis.addCard(new IslandTile(\"Dunes of Deception\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Fool's Landing\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Gold Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Howling Garden\", CardType.TILE, TreasureType.STATUE_OF_WIND));\n\t\tthis.addCard(new IslandTile(\"Iron Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Lost Lagoon\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Misty Marsh\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Observatory\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Phantom Rock\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Silver Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Temple of the Moon\", CardType.TILE, TreasureType.EARTH_STONE));\n\t\tthis.addCard(new IslandTile(\"Tidal Palace\", CardType.TILE, TreasureType.OCEAN_CHALICE));\n\t\tthis.addCard(new IslandTile(\"Temple of the Sun\", CardType.TILE, TreasureType.EARTH_STONE));\n\t\tthis.addCard(new IslandTile(\"Twilight Hollow\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Whispering Garden\", CardType.TILE, TreasureType.STATUE_OF_WIND));\n\t\tthis.addCard(new IslandTile(\"Watchtower\", CardType.TILE, TreasureType.NONE));\n\t}", "void doCopy(boolean surface, boolean building) {\r\n\t\tif (renderer.surface == null || renderer.selectedRectangle == null || renderer.selectedRectangle.width == 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tStringWriter sw = new StringWriter();\r\n\t\tPrintWriter out = new PrintWriter(sw);\r\n\t\t\r\n\t\tout.printf(\"<?xml version='1.0' encoding='UTF-8'?>%n\");\r\n\t\tout.printf(\"<map x='%d' y='%d' width='%d' height='%d'>%n\", renderer.selectedRectangle.x, renderer.selectedRectangle.y, renderer.selectedRectangle.width, renderer.selectedRectangle.height);\r\n\t\t\r\n\t\tMap<Object, Object> memory = new IdentityHashMap<Object, Object>();\r\n\t\tfor (int i = renderer.selectedRectangle.x; i < renderer.selectedRectangle.x + renderer.selectedRectangle.width; i++) {\r\n\t\t\tfor (int j = renderer.selectedRectangle.y; j > renderer.selectedRectangle.y - renderer.selectedRectangle.height; j--) {\r\n\t\t\t\tif (surface) {\r\n\t\t\t\t\tfor (SurfaceFeature sf : renderer.surface.features) {\r\n\t\t\t\t\t\tif (sf.containsLocation(i, j)) {\r\n\t\t\t\t\t\t\tif (memory.put(sf, sf) == null) {\r\n\t\t\t\t\t\t\t\tout.printf(\" <tile x='%d' y='%d' id='%s' type='%s'/>%n\", sf.location.x, sf.location.y, sf.id, sf.type);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (building) {\r\n\t\t\t\t\tfor (Building b : renderer.surface.buildings) {\r\n\t\t\t\t\t\tif (b.containsLocation(i, j)) {\r\n\t\t\t\t\t\t\tif (memory.put(b, b) == null) {\r\n\t\t\t\t\t\t\t\tout.printf(\" <building id='%s' tech='%s' x='%d' y='%d' build='%d' hp='%d' level='%d' worker='%d' energy='%d' enabled='%s' repairing='%s' />%n\",\r\n\t\t\t\t\t\t\t\t\t\tb.type.id, b.techId, b.location.x, b.location.y, b.buildProgress, b.hitpoints, b.upgradeLevel, b.assignedWorker, b.assignedEnergy, b.enabled, b.repairing);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout.printf(\"%n\");\r\n\t\t}\r\n\t\t\r\n\t\tout.printf(\"</map>%n\");\r\n\t\tout.flush();\r\n\t\t\r\n\t\tStringSelection sel = new StringSelection(sw.toString());\r\n\t\tToolkit.getDefaultToolkit().getSystemClipboard().setContents(sel, sel);\r\n\t}", "public static void makePieces() {\n\t\tPiece[] pieces = new Piece[35];\n\t\tfor (int i = 0; i < pieces.length; i++) {\n\t\t\tTile t = new Tile(false, true, 0, 0);\n\t\t\tTile f = new Tile(false, false, 0, 0);\n\t\t\tTile[][] tiles = new Tile[6][6];\n\t\t\tswitch (i) {\n\t\t\tcase 0:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, t, f, f }, { f, f, t, f, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, t, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, t, f, f }, { f, f, t, f, f, f },\n\t\t\t\t\t\t{ f, f, t, t, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, t, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, f, f, t, f, f }, { f, f, f, t, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, t, f, f }, { f, f, t, t, f, f }, { f, f, t, f, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\ttiles = new Tile[][] { { f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\ttiles = new Tile[][] { { f, f, t, f, f, f }, { f, f, t, t, f, f }, { f, f, t, f, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\ttiles = new Tile[][] { { f, f, t, t, f, f }, { f, f, t, f, f, f }, { f, f, t, f, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\ttiles = new Tile[][] { { f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, t, f, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, t, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, t, f, f, f, f }, { f, t, t, f, f, f },\n\t\t\t\t\t\t{ f, t, t, t, f, f }, { f, f, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, f, t, f, f }, { f, t, t, t, f, f },\n\t\t\t\t\t\t{ f, t, t, f, f, f }, { f, f, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, f, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, f, t, t, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, t, t, t, f, f }, { f, t, f, f, f, f },\n\t\t\t\t\t\t{ f, t, f, f, f, f }, { f, t, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, t, f, f, f, f }, { f, t, t, t, f, f },\n\t\t\t\t\t\t{ f, t, f, f, f, f }, { f, t, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, t, t, t, f, f }, { f, f, t, f, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, t, f, f }, { f, t, t, f, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, t, f, f }, { f, f, t, f, f, f },\n\t\t\t\t\t\t{ f, t, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, t, f, f }, { f, f, t, f, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, t, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, f, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, t, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, t, f, t, f, f }, { f, t, t, t, f, f },\n\t\t\t\t\t\t{ f, t, f, f, f, f }, { f, f, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, t, t, t, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, t, f, t, f, f }, { f, t, t, t, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, f, f, f }, { f, t, t, t, f, f },\n\t\t\t\t\t\t{ f, t, t, f, f, f }, { f, f, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, f, f, f }, { f, t, t, t, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, f, f, f }, { f, t, t, t, f, f },\n\t\t\t\t\t\t{ f, t, f, f, f, f }, { f, t, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, t, f, f }, { f, f, f, t, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, f, t, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, t, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 26:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, f, t, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, f, t, t, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 27:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, t, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, f, t, t, f, f }, { f, f, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 28:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, f, t, f, f }, { f, t, t, t, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 29:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, f, t, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, t, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 30:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, f, t, f, f }, { f, t, t, t, f, f },\n\t\t\t\t\t\t{ f, t, f, f, f, f }, { f, t, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 31:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, t, t, t, f, f }, { f, t, f, t, f, f },\n\t\t\t\t\t\t{ f, t, f, f, f, f }, { f, f, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 32:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, f, t, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, t, t, f, f, f }, { f, t, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 33:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, t, f, f }, { f, t, t, f, f, f },\n\t\t\t\t\t\t{ f, t, f, f, f, f }, { f, t, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 34:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, t, f, f }, { f, f, t, f, f, f },\n\t\t\t\t\t\t{ f, t, t, f, f, f }, { f, t, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tpieces[i] = new Piece(tiles);\n\t\t}\n\t\ttry {\n\t\t\tFileOutputStream saveFile = new FileOutputStream(\"pieces.data\");\n\t\t\tObjectOutputStream save = new ObjectOutputStream(saveFile);\n\t\t\tsave.reset();\n\t\t\tsave.writeObject(pieces);\n\t\t\tsave.close();\n\t\t} catch (Exception exc) {\n\t\t\texc.printStackTrace(); // If there was an error, print the info.\n\t\t}\n\t}", "public void requestBuild(Tile hoveredTile) {\n GamePackage gamePackage = new GamePackage(Client.getInstance().getSocket(), \"requestBuild\");\n BuildingType buildingMode = GameContainer.getBuildingMode();\n gamePackage.setRequestedBuilding(buildingMode);\n gamePackage.setTilePosition(\"x\", hoveredTile.getX());\n gamePackage.setTilePosition(\"y\", hoveredTile.getY());\n PackageManager.getInstance().add(gamePackage);\n }", "public Parent createContent(){\n Pane root = new Pane();\n root.setPrefSize((dimension * tileSize)+(tileSize*4)+menuWidth, (dimension * tileSize)+(tileSize*4));\n root.getChildren().addAll(tileGroup);\n TopOfBoard top = new TopOfBoard();\n Parent controlsAndMovement = top.newScene();\n root.getChildren().addAll(controlsAndMovement);\n\n // setting main game board template\n for (int i = 0; i< dimension; i++){\n for (int j = 0; j< dimension; j++){\n if (i==0||i== dimension -1||j==0||j== dimension -1){\n if (i==0) {\n if (j==0){\n tileInit(i, j, tileGroup, tileSize * 2, tileSize * 2, j * tileSize, i * tileSize);\n }\n else if (j== dimension -1){\n tileInit(i, j, tileGroup, tileSize*2, tileSize*2, (j * tileSize)+tileSize, i * tileSize);\n }\n else {\n tileInit(i, j, tileGroup, tileSize*2, tileSize, (j * tileSize)+tileSize, i * tileSize);\n }\n }\n else if (i== dimension -1){\n if (j==0){\n tileInit(i, j, tileGroup, tileSize*2, tileSize*2, j * tileSize, (i * tileSize)+tileSize);\n }\n else if (j== dimension -1){\n tileInit(i, j, tileGroup, tileSize*2, tileSize*2, (j * tileSize)+tileSize, (i * tileSize)+tileSize);\n }\n else {\n tileInit(i, j, tileGroup, tileSize * 2, tileSize, (j * tileSize) + tileSize, (i * tileSize) + tileSize);\n }\n }\n else if (j==0){\n tileInit(i, j, tileGroup, tileSize, tileSize*2, j * tileSize, (i * tileSize)+(tileSize));\n\n }\n else if (j== dimension -1) {\n tileInit(i, j, tileGroup, tileSize, tileSize*2, (j * tileSize)+(tileSize), (i * tileSize)+tileSize);\n }\n\n }\n }\n\n // Setting player score board\n for (int q = 1; q <= numOfPlayers; q++){\n if (q == 1){\n Tile tile = new Tile((getTileSize()*2), (getTileSize()*4));\n tile.setTranslateX((getTileSize()* getDimension())+(getTileSize()*3));\n tile.setTranslateY(getTileSize()*3);\n Text text = new Text((getTileSize()* getDimension())+(getTileSize()*4), (getTileSize()*3.5), \"Player 1 score board:\");\n tileGroup.getChildren().addAll(tile, text);\n }\n else if (q == 2){\n Tile tile = new Tile((getTileSize()*2), (getTileSize()*4));\n tile.setTranslateX((getTileSize()* getDimension())+(getTileSize()*3));\n tile.setTranslateY(getTileSize()*5);\n Text text = new Text((getTileSize()* getDimension())+(getTileSize()*4), (getTileSize()*5.5), \"Player 2 score board:\");\n tileGroup.getChildren().addAll(tile, text);\n }\n else if (q == 3){\n Tile tile = new Tile((getTileSize()*2), (getTileSize()*4));\n tile.setTranslateX((getTileSize()* getDimension())+(getTileSize()*3));\n tile.setTranslateY(getTileSize()*7);\n Text text = new Text((getTileSize()* getDimension())+(getTileSize()*4), (getTileSize()*7.5), \"Player 3 score board:\");\n tileGroup.getChildren().addAll(tile, text);\n }\n else if (q == 4){\n Tile tile = new Tile((getTileSize()*2), (getTileSize()*4));\n tile.setTranslateX((getTileSize()* getDimension())+(getTileSize()*3));\n tile.setTranslateY(getTileSize()*9);\n Text text = new Text((getTileSize()* getDimension())+(getTileSize()*4), (getTileSize()*9.5), \"Player 4 score board:\");\n tileGroup.getChildren().addAll(tile, text);\n }\n\n }\n\n for (int r = 1; r <= numOfPlayers; r++) {\n if (r == 1) {\n Tile tile = new Tile((getTileSize() * 3), (getTileSize() * 4));\n tile.setTranslateX((getTileSize() * getDimension()) + (getTileSize() * 7));\n tile.setTranslateY(0);\n Text text = new Text((getTileSize() * getDimension()) + (getTileSize() * 8), (getTileSize() * 0.5), \"Player 1 owned cards:\");\n tileGroup.getChildren().addAll(tile, text);\n } else if (r == 2) {\n Tile tile = new Tile((getTileSize() * 3), (getTileSize() * 4));\n tile.setTranslateX((getTileSize() * getDimension()) + (getTileSize() * 7));\n tile.setTranslateY(getTileSize() * 3);\n Text text = new Text((getTileSize() * getDimension()) + (getTileSize() * 8), (getTileSize() * 3.5), \"Player 2 owned cards:\");\n tileGroup.getChildren().addAll(tile, text);\n } else if (r == 3) {\n Tile tile = new Tile((getTileSize() * 3), (getTileSize() * 4));\n tile.setTranslateX((getTileSize() * getDimension()) + (getTileSize() * 7));\n tile.setTranslateY(getTileSize() * 6);\n Text text = new Text((getTileSize() * getDimension()) + (getTileSize() * 8), (getTileSize() * 6.5), \"Player 3 owned cards:\");\n tileGroup.getChildren().addAll(tile, text);\n } else if (r == 4) {\n Tile tile = new Tile((getTileSize() * 3), (getTileSize() * 4));\n tile.setTranslateX((getTileSize() * getDimension()) + (getTileSize() * 7));\n tile.setTranslateY(getTileSize() * 9);\n Text text = new Text((getTileSize() * getDimension()) + (getTileSize() * 8), (getTileSize() * 9.5), \"Player 4 owned cards:\");\n tileGroup.getChildren().addAll(tile, text);\n\n }\n }\n addImg();\n }\n return root;\n }", "public void update(ResourcesMap resourcemap, TileSelector tileselector, List<Building> buildings) {\n\t\tthis.tileSelector = tileselector;\n\t\tthis.resourceMap = resourcemap;\n\t\tthis.infoString = \"\";\n\t\tthis.range.setRadius(0);\n\t\t\n\t\tthis.position = new Vector2i(this.tileSelector.selectedTile.x,this.tileSelector.selectedTile.y);\n\t\tthis.actualTile = this.tileMap.get(position.y).get(position.x);\n\t\t\n\t\t// show Tile info\n\t\tthis.infoString += \"Tile position : {\" + position.x + \", \" + position.y + \"}\\n\";\n\t\tthis.infoString += \"TILE_TYPE : \" + this.actualTile.getTileType().toString() + \"\\n\";\n\t\tfor(Resource.ResourceType resource : Resource.ResourceType.values()) {\n\t\t\tif(resourcemap.getResources(this.position.x, this.position.y).get(resource) > 0) {\n\t\t\t\tthis.infoString += \"\\t\" + resource.toString() + \" : \" + resourcemap.getResources(this.position.x, this.position.y).get(resource) + \"\\n\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t// show Building info\n\t\tfor(Building b : buildings) {\n\t\t\tif(b.getHitbox().contains(position)) {\n\t\t\t\tthis.building = b;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(this.building != null) {\n\t\t\tthis.infoString += \"BUILDING_NAME : \" + this.building.getType().toString() + \"[\" + this.building.getId() + \"] \\n\";\n\t\t\tthis.infoString += \"Level : \" + this.building.getLevel() + \"\\n\";\n\t\t\t\n\t\t\t// Get the resources available for the building.\n\t\t\tResourcesStack availableResources = new ResourcesStack();\n\t\t\t\n\t\t\tfor(int x = this.building.getHitbox().left ; x < this.building.getHitbox().left + this.building.getHitbox().width ; ++x) {\n\t\t\t\tfor(int y = this.building.getHitbox().top ; y < this.building.getHitbox().top + this.building.getHitbox().height ; ++y) {\n\t\t\t\t\tavailableResources.add(resourcemap.getResources(new Vector2i(x, y)));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(Resource.ResourceType resource : Resource.ResourceType.values()) {\n\t\t\t\t// show %\n\t\t\t\tfor(Need need : this.building.getNeeds()) {\n\t\t\t\t\tif(need.type.equals(resource)){\n\t\t\t\t\t\tthis.infoString += \"\\t\" + resource.toString() + \" : \" + availableResources.get(resource);\n\t\t\t\t\t\tthis.infoString += \" : \" + (int)((availableResources.get(resource) / need.amount) * 100) + \" %\";\n\t\t\t\t\t\tthis.infoString += \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tthis.infoString += \"Halted : \" + this.building.isHalted() + \"\\n\";\n\t\t\t\n\t\t\tthis.infoString += \"Inhabitants : \" + this.building.getInhabitants().size();\n\t\t\tif(this.building.getUnemployedInhabitantCount() != -1)\n\t\t\t\tthis.infoString += \" (\" + this.building.getUnemployedInhabitantCount() + \" unemployed)\";\n\t\t\tthis.infoString += \"\\n\";\n\t\t\t\n\t\t\tthis.infoString += \"Clients : \" + this.building.getClients().size() + \"\\n\";\n\t\t\tthis.infoString += \"Employees : \" + this.building.getEmployees().size() + \"\\n\";\n\t\t}\n\t\t\n\t\t// we set the text\n\t\tthis.infoText.setString(infoString);\n\t\tthis.infoText.setPosition(this.position.x*16 +20, this.position.y*16 +20);\n\t\t\n\t\t// we set the rectangle\n\t\tthis.rectangleShape.setPosition(this.position.x *16, this.position.y*16);\n\t\tthis.rectangleShape.setSize(new Vector2f(this.infoText.getGlobalBounds().width + 30,this.infoText.getGlobalBounds().height + 30));\n\t\t\n\t\t// we set the range\n\t\tif(this.building != null) {\n\t\t\tthis.range.setPosition(this.building.getHitbox().left * 16 + this.building.getHitbox().width * 8, this.building.getHitbox().top * 16 + this.building.getHitbox().height * 8);\n\t\t\tthis.range.setRadius(this.building.getHitbox().width * 8 + this.building.getRange() * 16);\n\t\t\tthis.range.setOrigin((this.range.getLocalBounds().left + this.range.getLocalBounds().width) / 2.f, (this.range.getLocalBounds().top + this.range.getLocalBounds().height) / 2.f);\n\t\t}\n\t\t\n\t\t// we reset the building\n\t\tthis.building = null;\n\t\t\n\t}", "public void rebuild()\n {\n this.tilePropertyPanel.table.clearChildren();\n this.spritePropertyPanel.table.clearChildren();\n this.mapPropertyPanel.removeablePropertyPanel.table.clearChildren();\n if(map.selectedLayer != null)\n {\n this.layerPropertyPanel.setVisible(true);\n this.layerPropertyPanel.layerWidthProperty.value.setText(Integer.toString(map.selectedLayer.width));\n this.layerPropertyPanel.layerHeightProperty.value.setText(Integer.toString(map.selectedLayer.height));\n this.layerPropertyPanel.layerZProperty.value.setText(Float.toString(map.selectedLayer.z));\n }\n else\n this.layerPropertyPanel.setVisible(false);\n if(map.tileMenu.selectedTiles.size == 1)\n {\n if(map.tileMenu.selectedTiles.first().tool == TileMenuTools.TILE)\n {\n Array<PropertyField> tileProperties = map.tileMenu.selectedTiles.first().lockedProperties;\n for (int i = 0; i < tileProperties.size; i++)\n this.tilePropertyPanel.table.add(tileProperties.get(i)).padBottom(1).row();\n this.tilePropertyPanel.setVisible(true);\n }\n else if(map.tileMenu.selectedTiles.first().tool == TileMenuTools.SPRITE)\n {\n Array<PropertyField> spriteProperties = map.tileMenu.selectedTiles.first().lockedProperties;\n for (int i = 0; i < spriteProperties.size; i++)\n this.spritePropertyPanel.table.add(spriteProperties.get(i)).padBottom(1).row();\n this.spritePropertyPanel.setVisible(true);\n }\n }\n if(map.selectedSprites.size > 0)\n {\n Array<PropertyField> spriteProperties = map.selectedSprites.first().lockedProperties;\n for (int i = 0; i < spriteProperties.size; i++)\n this.spritePropertyPanel.table.add(spriteProperties.get(i)).padBottom(1).row();\n this.spritePropertyPanel.setVisible(true);\n }\n if(map.selectedSprites.size == 0 && map.tileMenu.selectedTiles.size == 0)\n {\n for(int i = 0; i < mapPropertyPanel.properties.size; i ++)\n {\n this.mapPropertyPanel.removeablePropertyPanel.table.add(mapPropertyPanel.properties.get(i)).padBottom(1).row();\n }\n this.mapPropertyPanel.removeablePropertyPanel.setVisible(true);\n }\n if(this.layerPropertyPanel.isVisible())\n this.layerPropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.layerPropertyPanel.setSize(getWidth(), 0);\n if(this.tilePropertyPanel.isVisible())\n this.tilePropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.tilePropertyPanel.setSize(getWidth(), 0);\n if(this.spritePropertyPanel.isVisible())\n this.spritePropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.spritePropertyPanel.setSize(getWidth(), 0);\n if(this.mapPropertyPanel.removeablePropertyPanel.isVisible())\n this.mapPropertyPanel.removeablePropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.mapPropertyPanel.removeablePropertyPanel.setSize(getWidth(), 0);\n\n this.propertyPanel.rebuild();\n this.propertyTable.invalidateHierarchy();\n\n setSize(getWidth(), getHeight()); // refits everything\n }", "private void spawnTrees() {\n int spawnNum = this.random.nextInt(10) + 20;\n if (this.treeTiles.size() >= 30) { // max 30 trees\n spawnNum = 0;\n }\n for (int i = 0; i < spawnNum; i++) {\n String tree = trees[this.random.nextInt(trees.length)];\n int y = this.random.nextInt(this.getMap().length);\n Tile spawnTile = this.getMapAt(this.random.nextInt(this.getMap()[y].length), y);\n Tile centerTile;\n if ((spawnTile != null) && this.inMap(spawnTile.getX()-2, spawnTile.getY()-1)) {\n centerTile = this.getMapAt(spawnTile.getX()-2, spawnTile.getY()-1);\n } else {\n centerTile = null;\n }\n if ((spawnTile != null) && (spawnTile instanceof GroundTile)\n && (centerTile != null) && (centerTile instanceof GroundTile)\n && (spawnTile.getContent() == null)) {\n ExtrinsicTree newTree = new ExtrinsicTree(tree);\n newTree.setStage(17);\n spawnTile.setContent(newTree);\n this.treeTiles.add(spawnTile);\n }\n }\n }", "private void buildStreet() {\r\n\t\tbuilt = false;\r\n\t\tbuildPanelRoad.setVisible(false);\r\n\t\tMessage message = new Message(clickedRoad, true, null);\r\n\t\tsendMessage(message);\r\n\t}", "private void putTilesOnBoard() {\n boolean isWhite = true;\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n Tile t = new Tile(isWhite, new Position(x, y));\n t.setOnMouseClicked(e -> {\n if (t.piece != null && this.activeTile == null && this.whitePlayer == t.piece.isWhite()) {\n this.activeTile = t;\n ArrayList<Position> moves = t.piece.getLegalMoves();\n this.highlightAvailableMoves(moves, t.isWhite);\n } else if (t.isHighlighted.getValue() && this.activeTile.piece != null ) {\n movePieces(t);\n } else {\n this.activeTile = null;\n this.clearHighlightedTiles();\n }\n this.updatePieceBoards();\n });\n t.isHighlighted.addListener((o, b, b1) -> {\n if (o.getValue() == true) {\n t.startHighlight();\n } else {\n t.clearHighlight();\n }\n });\n this.board[x][y] = t;\n this.add(this.board[x][y], x, y);\n isWhite = !isWhite;\n }\n isWhite = !isWhite;\n }\n\n }", "private void createTiles() {\n\t\tint tile_width = bitmap.getWidth() / gridSize;\n\t\tint tile_height = bitmap.getHeight() / gridSize;\n\n\t\tfor (short row = 0; row < gridSize; row++) {\n\t\t\tfor (short column = 0; column < gridSize; column++) {\n\t\t\t\tBitmap bm = Bitmap.createBitmap(bitmap, column * tile_width,\n\t\t\t\t\t\trow * tile_height, tile_width, tile_height);\n\n\t\t\t\t// if final, Tile -> blank\n\t\t\t\tif ((row == gridSize - 1) && (column == gridSize - 1)) {\n\t\t\t\t\tbm = Bitmap.createBitmap(tile_width, tile_height,\n\t\t\t\t\t\t\tbm.getConfig());\n\t\t\t\t\tbm.eraseColor(Color.WHITE);\n\t\t\t\t\ttheBlankTile = new Tile(bm, row, column);\n\t\t\t\t\ttiles.add(theBlankTile);\n\t\t\t\t} else {\n\t\t\t\t\ttiles.add(new Tile(bm, row, column));\n\t\t\t\t}\n\t\t\t} // end column\n\t\t} // end row\n\t\tbitmap.recycle();\n\n\t}", "@Override\n public boolean build(Match m, ClientHandler ch, Server server) {\n int wID=2;\n Player p = m.getPlayer(ch.getName());\n if(p.getWorker(0).getMoved()) wID = 0;\n if(p.getWorker(1).getMoved()) wID = 1;\n ArrayList<Coordinate> coordinates = whereCanBuild(m, ch, wID);\n server.write(ch, \"serviceMessage\", \"MSGE-Build: \\n\");\n if(coordinates.size()!=0){\n Coordinate c = null;\n server.write(ch, \"serviceMessage\", \"LIST-\"+printCoordinates(coordinates));\n server.write(ch, \"interactionServer\", \"TURN-Where you want to build?\\n\");\n int id;\n while(true){\n try{\n String msg = server.read(ch);\n if(msg == null){\n for(ClientHandler chl : server.getClientHandlers()){\n server.write(chl, \"serviceMessage\", \"WINM-Player disconnected\\n\");\n }\n ch.resetConnected();\n ch.closeConnection();\n return false;\n }else{\n id = Integer.parseInt(msg);\n }\n if(id<0 || id>=coordinates.size()){\n server.write(ch, \"serviceMessage\", \"MSGE-Invalid input\\n\");\n server.write(ch, \"interactionServer\", \"TURN-Try another index: \");\n continue;\n }\n break;\n } catch (NumberFormatException e){\n server.write(ch, \"serviceMessage\", \"MSGE-Invalid input\\n\");\n server.write(ch, \"interactionServer\", \"TURN-Try another index: \");\n }\n }\n c = coordinates.get(id);\n if(c.equals(p.getWorker(wID).getPosition()))\n server.write(ch, \"serviceMessage\", \"MSGE-You're using Zeus Power!\\n\");\n m.updateBuilding(c);\n m.getBoard()[c.getX()][c.getY()].setLevelledUp(true);\n p.getWorker(wID).changeBuilt(true);\n return true;\n }else{\n return false;\n }\n\n }", "@Override\n\tpublic void execute() throws InstantiationException,\n\t\t\tIllegalAccessException, ClassNotFoundException, IOException {\n\t\tBuilding building = (Building) Class.forName(\n\t\t\t\tConstant.TILE_PACKAGE + commandData.get(\"tileName\"))\n\t\t\t\t.newInstance();\n\t\tbuilding.setX((Integer) commandData.get(\"pointX\"));\n\t\tbuilding.setY((Integer) commandData.get(\"pointY\"));\n\t\tbuilding.setTileManager(tileManager);\n\t\tbuilding.setFocusManager(focusManager);\n\t\tbuilding.setUUID((UUID) commandData.get(\"focusID\"));\n\t\tbuilding.initBuildingImage((String) commandData.get(\"buildingName\"));\n\t\ttileManager.addTile((Tile) building);\n\t}", "@Override\r\n public void onClick(View view) {\n mSoundPool.play(mSoundClick, mVolume, mVolume, 1, 0, 1f);\r\n\r\n // get tile coordinates\r\n int largeI = smallTile.getLargeTileNo();\r\n // Log.e(\"large tile no\", String.valueOf(largeI));\r\n int smallI = smallTile.getSmallTileNo();\r\n // Log.e(\"small tile no\", String.valueOf(smallI));\r\n // change background color\r\n inner.setSelected(!inner.isSelected());\r\n if (phase == 1) {\r\n if (inner.isSelected()) {\r\n // selected state change\r\n inner.setBackgroundResource(R.drawable.tile_blue); // selected background turns blue\r\n String letter = (inner.getText()).toString();\r\n // Log.e(\"letter\", String.valueOf(letter));\r\n allTiles[largeI].append(letter); // add new letter selected to current string\r\n // Log.e(\"character appended\", String.valueOf(letter));\r\n allTilesInt[largeI][smallI] = 1; // set background highlighted\r\n } else {\r\n // de-selected state change\r\n inner.setBackgroundResource(R.drawable.tile_gray); // deselected background is grey\r\n String letter = (inner.getText()).toString(); // get letter from inner tile clicked\r\n // Log.e(\"letter\", String.valueOf(letter));\r\n allTiles[largeI].deleteCharAt(allTiles[largeI].length() - 1); // remove most recently selected\r\n allTilesInt[largeI][smallI] = 0; // deselect background highlighted\r\n }\r\n } else {\r\n // selected state change\r\n if (phaseTwoString.length() != 9) {\r\n if (phaseTwoIsSelected[largeI] == 0) {\r\n inner.setBackgroundResource(R.drawable.tile_purple); // selected background turns blue\r\n String letter = (inner.getText()).toString();\r\n // Log.e(\"letter\", String.valueOf(letter));\r\n phaseTwoString.append(letter); // add new letter selected to current string\r\n // Log.e(\"character appended\", String.valueOf(letter));\r\n phaseTwoIsSelected[largeI] = 1; // set background highlighted\r\n }\r\n }\r\n }\r\n }", "TileItem getCurrentTile();", "public void generateTerrain()\n\t{\n\t\tint rand;\n\t\tint starting=(int)(blocksWide*0.45);//Choose the first grass block\n\t\tblocksTall=(int)(blocksWide*0.6);\n\t\tfor(int i=0;i<blocksWide;i++)\n\t\t{\n\t\t\t//Determine whether the next block will go up a level, down a level or stay the same (55% chance of staying the same)\n\t\t\trand=ThreadLocalRandom.current().nextInt(0,3);\t\n\t\t\tif(rand!=0)\n\t\t\t{\n\t\t\t\trand=ThreadLocalRandom.current().nextInt(-1,2);\n\t\t\t}\n\t\t\tif(starting+rand<blocksTall-2 && starting+rand>4)\t//Make sure new position isn't too close to the top or bottom\n\t\t\t{\n\t\t\t\tstarting+=rand;\n\t\t\t}\n\t\t\tgrassy[i]=starting;\n\t\t\tgrassT[i]=ThreadLocalRandom.current().nextInt(0,3);\n\t\t\t//Generate a platform to allow for collision detection\n\t\t\tplatforms.add(new Platform((double)i/blocksWide,(double)starting/blocksTall,1.0/blocksWide,1.0/blocksWide));\n\t\t}\n\t\tplatforms.add(new Platform(0.0,0.0,0.0,0.0));\n\t}", "public void fillTable() {\n\t\tif (scroll.getWidth() == 0) {\n\t\t\treturn;\n\t\t}\n\t\tboolean showedNew = false;\n\t\tArrayList<Placeable> currentView = new ArrayList<Placeable>();\n\t\tif (viewing == ViewingMode.MATERIAL) {\n\t\t\tif (loadedMats == null)\n\t\t\t\tloadedMats = repo.getAllMats();\n\t\t\tfor (NamedMaterial m: loadedMats) {\n\t\t\t\tcurrentView.add(m);\n\t\t\t}\n\t\t}\n\t\telse if (viewing == ViewingMode.PIECE){\n\t\t\tif (loadedPieces == null)\n\t\t\t\tloadedPieces = repo.getAllPieces();\n\t\t\tfor (Piece m: loadedPieces) {\n\t\t\t\tcurrentView.add(m);\n\t\t\t}\n\t\t\tshowedNew = true;\n\t\t}\n\t\t\n\t\ttiles.clearChildren();\n\t\tfloat cellWidth = 64.0f;\n\t\tint numAcross = (int)(scroll.getWidth() / cellWidth);\n\t\tif (numAcross <= 0) {\n\t\t\tnumAcross = 1;\n\t\t}\n\t\tint count = 0;\n\t\tActor tile;\n\t\twhile (count < currentView.size()) {\n\t\t\tfor (int y = 0; y < numAcross; y++) {\n\t\t\t\tif (!showedNew) {\n\t\t\t\t\ttile = new Label(\"New\", TextureOrganizer.getSkin());\n\t\t\t\t\t((Label)tile).setAlignment(Align.center);\n\t\t\t\t\ttile.addListener(new ClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t public void clicked(InputEvent event, float x, float y) {\n\t\t\t\t\t\t\tmakeNew();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tshowedNew = true;\n\t\t\t\t}\n\t\t\t\telse if (count >= currentView.size()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttile = new ColoredRectActor(currentView.get(count++));\n\t\t\t\t\ttile.addListener(new TileListener((ColoredRectActor)tile));\n\t\t\t\t}\n\t\t\t\ttiles.add(tile).width(cellWidth).height(cellWidth).fill();\n\t\t\t}\n\t\t\tif (count < currentView.size())\n\t\t\t\ttiles.row();\n\t\t}\n\t}", "public final Tile selectComputerMove() {\r\n Tile tile = null;\r\n int count = 0;\r\n String tileName = null;\r\n boolean continueLoop = true;\r\n \r\n // First try to find a winning move\r\n for (Rail rail : rails) {\r\n for (Tile t : rail.getTiles()) {\r\n if (t.getText().equals(\"0\")) count++;\r\n }\r\n if (count == 2) {\r\n for (Tile t : rail.getTiles()) {\r\n if (t.getText().equals(\"\")) {\r\n tileName = t.getName();\r\n return t;\r\n }\r\n }\r\n }\r\n count = 0; \r\n }\r\n \r\n // If none found, try to block \"X\"\r\n for (Rail rail : rails) {\r\n for (Tile t : rail.getTiles()) {\r\n if (t.getText().equals(\"X\")) count++;\r\n }\r\n if (count == 2) {\r\n for (Tile t : rail.getTiles()) {\r\n if (t.getText().equals(\"\")) {\r\n tileName = t.getName();\r\n return t;\r\n }\r\n }\r\n }\r\n count = 0;\r\n }\r\n \r\n // If no blocking move, try to play the center which gives \"O\"\r\n // a statistical advantage\r\n if (!tiles[R2C2].isSelected()) {\r\n return tiles[R2C2];\r\n }\r\n \r\n \r\n // If center move is not available, try to find an open corner tile, \r\n // which might set up an winning combination\r\n if (!tiles[R1C1].isSelected()) {\r\n return tiles[R1C1];\r\n } else if (!tiles[R3C3].isSelected()) {\r\n return tiles[R3C3];\r\n } else if (!tiles[R3C1].isSelected()) {\r\n return tiles[R3C1];\r\n } else if (!tiles[R1C3].isSelected()) {\r\n return tiles[R1C3];\r\n }\r\n \r\n // If none found just pick an empty tile at random\r\n if(tileName == null) {\r\n int row = rand.nextInt(3) + 1;\r\n int col = rand.nextInt(3) + 1;\r\n tileName = \"r\" + row + \"c\" + col;\r\n for (Tile btn: tiles) {\r\n if (btn.getName().equals(tileName)) {\r\n tile = btn;\r\n break;\r\n }\r\n }\r\n }\r\n \r\n return tile;\r\n }", "public Tile(GameLogic logic, PieceService pieceservice, int x, int y) {\n\n this.x = x;\n this.y = y;\n this.pieces = new ArrayList<>();\n\n setWidth(TakApp.TILE_SIZE);\n setHeight(TakApp.TILE_SIZE);\n \n relocate(x * TakApp.TILE_SIZE, y * TakApp.TILE_SIZE);\n Image tilebg = new Image(getClass().getResourceAsStream(\"/images/tile.jpg\"));\n ImagePattern imagePattern = new ImagePattern(tilebg);\n setFill(imagePattern);\n \n if (this.hasPieces() == false) {\n setOnMousePressed(e -> {\n String pieceColor = logic.checkTurn();\n Piece piece = pieceservice.makePiece(logic, pieceColor, x, y);\n if (piece != null) {\n pieceservice.setPiece(piece, x, y);\n this.pieces.add(piece);\n }\n });\n } else if (this.hasPieces() == true) {\n \n setOnMousePressed(e -> {\n this.oldX = this.getXcoordinate();\n this.oldY = this.getYcoordinate();\n });\n\n setOnMouseDragged(e -> {\n relocate(e.getSceneX(), e.getSceneY());\n });\n \n setOnMouseReleased(e -> {\n \n double mouseX = e.getSceneX();\n double mouseY = e.getSceneY();\n\n int newX = (int) Math.floor(mouseX / 100.0);\n int newY = (int) Math.floor(mouseY / 100.0);\n \n boolean validMove = logic.isValidMove(oldX, oldY, newX, newY);\n \n if (validMove) {\n pieceservice.removePiece(this.pieces.get(this.pieces.size() - 1), oldX, oldY);\n pieceservice.setPiece(this.pieces.get(this.pieces.size() - 1), newX, newY);\n } else {\n pieceservice.setPiece(this.pieces.get(this.pieces.size() - 1), oldX, oldY);\n }\n });\n } \n }", "public void getTile_B8();", "void placeTile(Tile tile, int x, int y, SurfaceEntityType type, Building building) {\r\n\t\tfor (int a = x; a < x + tile.width; a++) {\r\n\t\t\tfor (int b = y; b > y - tile.height; b--) {\r\n\t\t\t\tSurfaceEntity se = new SurfaceEntity();\r\n\t\t\t\tse.type = type;\r\n\t\t\t\tse.virtualRow = y - b;\r\n\t\t\t\tse.virtualColumn = a - x;\r\n\t\t\t\tse.tile = tile;\r\n\t\t\t\tse.tile.alpha = alpha;\r\n\t\t\t\tse.building = building;\r\n\t\t\t\tif (type != SurfaceEntityType.BASE) {\r\n\t\t\t\t\trenderer.surface.buildingmap.put(Location.of(a, b), se);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trenderer.surface.basemap.put(Location.of(a, b), se);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void createSprites(World world) {\r\n \t// the height of the map since 0,0 in Tiled is in the top left\r\n // compared to the TiledMap's 0,0 in the bottom left\r\n int height = 2400;\r\n\r\n // file locations of different trees\r\n TextureAtlas atlas = new TextureAtlas(\"Game Tilesets/Trees/Trees.pack\");\r\n Skin skin = new Skin();\r\n skin.addRegions(atlas);\r\n TextureRegion T2 = skin.getRegion(\"T2\");\r\n TextureRegion T3 = skin.getRegion(\"T3\");\r\n TextureRegion T7 = skin.getRegion(\"T7\");\r\n TextureRegion T9 = skin.getRegion(\"T9\");\r\n TextureRegion T10 = skin.getRegion(\"T10\");\r\n \r\n // add all of the trees\r\n \tthis.addSprite(new ObjectSprites(T2, 236, height - 1490));\r\n \r\n this.addSprite(new ObjectSprites(T9, 622, height - 1907));\r\n this.addSprite(new ObjectSprites(T9, 683, height - 1687));\r\n this.addSprite(new ObjectSprites(T9, 174, height - 1851));\r\n this.addSprite(new ObjectSprites(T9, 361, height - 1643));\r\n \r\n this.addSprite(new ObjectSprites(T10, 572, height - 1354));\r\n this.addSprite(new ObjectSprites(T10, 0, height - 1475));\r\n this.addSprite(new ObjectSprites(T10, -9, height - 1707));\r\n this.addSprite(new ObjectSprites(T10, 675, height - 1479));\r\n this.addSprite(new ObjectSprites(T10, 416, height - 1903));\r\n\r\n this.addSprite(new ObjectSprites(T3, 428, height - 1453));\r\n this.addSprite(new ObjectSprites(T3, 596, height - 1122));\r\n this.addSprite(new ObjectSprites(T3, -32, height - 988));\r\n this.addSprite(new ObjectSprites(T3, 476, height - 864));\r\n this.addSprite(new ObjectSprites(T3, 640, height - 725));\r\n this.addSprite(new ObjectSprites(T3, 424, height - 2123));\r\n \r\n this.addSprite(new ObjectSprites(T7, 145, height - 1347));\r\n this.addSprite(new ObjectSprites(T7, 83, height - 1935));\r\n this.addSprite(new ObjectSprites(T7, 585, height - 2031));\r\n this.addSprite(new ObjectSprites(T7, 290, height - 2304));\r\n \r\n Bandit b1 = new Bandit();\r\n b1.defineBody(world, 215, 1305);\r\n super.addSprite(b1);\r\n \r\n Bandit b2 = new Bandit();\r\n b2.defineBody(world, 60, 1445);\r\n super.addSprite(b2);\r\n \r\n Bandit b3 = new Bandit();\r\n b3.defineBody(world, 90, 1640);\r\n super.addSprite(b3);\r\n \r\n Bandit b4 = new Bandit();\r\n b4.defineBody(world, 530, 1740);\r\n super.addSprite(b4);\r\n \r\n Bandit b5 = new Bandit();\r\n b5.defineBody(world, 730, 1655);\r\n super.addSprite(b5);\r\n \r\n Bandit b6 = new Bandit();\r\n b6.defineBody(world, 90, 2235);\r\n super.addSprite(b6);\r\n \r\n Bandit b7 = new Bandit();\r\n b7.defineBody(world, 715, 1490);\r\n super.addSprite(b7);\r\n \r\n Bandit b8 = new Bandit();\r\n b8.defineBody(world, 318, 1605);\r\n super.addSprite(b8);\r\n }", "public void build()\n {\n\t\tPoint3d loc;\n\t\n\t\tcomputeFPS(0);\n\t\n\t\t// Make random number generator\n\t\tif (seed == -1) {\n\t\t seed = System.currentTimeMillis() % 10000;\n\t\t System.out.println(\"Seed value: \" + seed);\n\t\t}\n\t\trgen = new Random(seed);\n\t\n\t\t// Create empty scene\n\t\tobstacles = new Vector<Obstacle>();\n\t\tcritters = new Vector<Critter>();\n\t\n\t\t// ---------------\n\n // Create a couple of trees, one big and one smaller\n obstacles.addElement(new Tree(rgen, 5, 6, 4.5f, 0.4f, 0.0f, 0.0f));\n obstacles.addElement(new Tree(rgen, 4, 6, 2.5f, 0.15f, 8.0f, -5.0f));\n\n // Create a few rocks\n obstacles.addElement(new Rock(rgen, 4, 2, 2, 1));\n obstacles.addElement(new Rock(rgen, 3, 4, 8, 1));\n obstacles.addElement(new Rock(rgen, 3, 7, 2, 2));\n obstacles.addElement(new Rock(rgen, 2, -2.6, -9, 2));\n obstacles.addElement(new Rock(rgen, 4, -2, -3, 1));\n obstacles.addElement(new Rock(rgen, 3, -2, -1.11, 1));\n \n // Create the main bug\n mainBug = new Bug(rgen, 0.4f, -1, 1, 0.1f, 0.0f);\n critters.addElement(mainBug);\n \n // baby critters\n critters.addElement(new Bug(rgen, 0.1f, -5, 6, 0.1, 0.0f));\n critters.addElement(new Bug(rgen, 0.15f, -7, -6, 0.1, 0.0f));\n critters.addElement(new Bug(rgen, 0.2f, -8, 1, 0.1, 0.0f));\n \n //predator\n predator = new Predator(rgen, 0.3f, -9, 9, 0, 0);\n critters.addElement(predator);\n \n \n goal = new Point3d(rgen.nextDouble()*5, rgen.nextDouble()*5, 0);\n target = 0;\n\n\t\t// Reset computation clock\n\t\tcomputeClock = 0;\n }", "private void drawTiles(Graphics g)\n {\n for (int x = 0; x < 19; x++)\n {\n for (int y = 0; y < 15; y++)\n {\n tileset.getSprite(5, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n switch(board[x][y])\n {\n case 1:\n {\n tileset.getSprite(4, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n break;\n }\n case 2:\n {\n tileset.getSprite(3, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n break;\n }\n case 3:\n {\n if (bombs[x][y].getTimeLeft() > 80)\n {\n bombImage.getSprite(0, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n if (bombs[x][y].getTimeLeft() <= 80 && bombs[x][y].getTimeLeft() > 50)\n {\n bombImage.getSprite(1, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n if (bombs[x][y].getTimeLeft() <= 50 && bombs[x][y].getTimeLeft() > 20)\n {\n bombImage.getSprite(2, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n if (bombs[x][y].getTimeLeft() <= 20)\n {\n bombImage.getSprite(3, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n break;\n }\n //4 is player\n case 5:\n {\n if (fire[x][y] == null)\n {\n tileset.getSprite(2, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n break;\n }\n case 6:\n {\n if (fire[x][y] == null)\n {\n tileset.getSprite(15, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n break;\n }\n }\n }\n }\n }", "public void buildTileOfSingleView(Context context,FakeSuiteBean sb) {\n\t\tpartitionView = new SingleView(context);\n\t\tpartitionView.setContent(sb.resId);\n\t\ttile = new TileView(context);\n\t\ttile.setContent(partitionView);\n\t\ttile.setTitle(sb.tilte);\n\t\ttileViewList.add(tile);\n\t}", "public void build(Cell[][] map, Action[][][] actions, int[] position ) {\n int[] destination=new int[2];\n TypeBlock typeBlock=null;\n for (int i = Math.max(0, position[0] - 1); (i <= Math.min(4, position[0] + 1)); i++) {\n for (int j = Math.max(0, position[1] - 1); j <= Math.min(4, position[1] + 1); j++) {\n if (!map[i][j].getBlock(map[i][j].getSize() - 1).getTypeBlock().equals(TypeBlock.WORKER)\n && !map[i][j].getBlock(map[i][j].getSize() - 1).getTypeBlock().equals(TypeBlock.DOME)) {\n switch (map[i][j].getBlock(map[i][j].getSize() - 1).getTypeBlock()) {\n case LEVEL1:\n typeBlock = TypeBlock.LEVEL2;\n destination[0] = i;\n destination[1] = j;\n ((Build) actions[i][j][1]).set(true, typeBlock, destination);\n break;\n case LEVEL2:\n typeBlock = TypeBlock.LEVEL3;\n destination[0] = i;\n destination[1] = j;\n ((Build) actions[i][j][1]).set(true, typeBlock, destination);\n break;\n case LEVEL3:\n typeBlock = TypeBlock.DOME;\n destination[0] = i;\n destination[1] = j;\n ((Build) actions[i][j][2]).set(true, typeBlock, destination);\n break;\n default:\n typeBlock = TypeBlock.LEVEL1;\n destination[0] = i;\n destination[1] = j;\n ((Build) actions[i][j][1]).set(true, typeBlock, destination);\n }\n }\n }\n\n }\n }", "public void addSubbedTile(Tile t) { subbedTiles.add(t); }", "private List<Tile> makeTiles() {\n List<Tile> tiles = new ArrayList<>();\n Board board = (Board) boardManager.getBoard();\n final int numTiles = board.getNumRows() * board.getNumCols();\n for (int tileNum = 0; tileNum != numTiles; tileNum++) {\n tiles.add(new Tile(tileNum + 1, tileNum, 4));\n }\n\n return tiles;\n }", "public Tile getTileAt(Position p);", "public void selectTile(CardTile ct){\n\t\tif(ct.getCard() != null){ \n\t\t\t/*For Viewing Selected Card information*/\n//\t\t\tint HP;\n//\t\t\tArrayList<Card> attached;\n//\t\t\tString cards_att = \"\";\n//\t\t\tif (ct.getCard() instanceof Pokemon){\n//\t\t\t\tHP = ((Pokemon)ct.getCard()).getHP();\n//\t\t\t\tattached = ((Pokemon)ct.getCard()).getAttachedCards(); \n//\t\t\t\tfor (int l=0; l< attached.size(); l++){\n//\t\t\t\t\tcards_att += l+1 + \": \" + attached.get(l).getName() + \"<br />\";\n//\t\t\t\t}\n//\t\t\t} else {\n//\t\t\t\tHP = 0;\n//\t\t\t\tattached = new ArrayList<Card>();\n//\t\t\t\tcards_att = \"NA\";\n//\t\t\t}\n//\t\t\tboard.updateInfo(\"<html><p>\" + \"Card location: \"+ ct.getPlace() + \"<br />\" \n//\t\t\t\t\t\t\t\t+ \"Seq No: \"+ ct.getSeqNo() + \"<br />\" \n//\t\t\t\t\t\t\t\t+ \"Card Name: \"+ ct.getCard().getName() + \"<br />\"\n//\t\t\t\t\t\t\t\t+ \"Card Type: \"+ ct.getCard().getType() + \"<br />\"\n//\t\t\t\t\t\t\t\t+ \"Attached cards: \" + \"<br />\" + cards_att + \"<br />\" \n//\t\t\t\t\t\t\t\t+ \"HP: \"+ HP + \"<br />\"\n//\t\t\t\t\t\t\t\t+ \"</p></html>\");\n\t\t\t/*EO For Viewing Selected Card information*/\n\t\t\t\n\t\t\t// we can in the normal case select cards from the hand or the bench or the active\n\t\t\t// later we can add more cases as needed but this is for normal play\n\t\t\tif(ct.getPlace() == Place.MY_ACTIVE || ct.getPlace() == Place.MY_BENCH || ct.getPlace() == Place.MY_HAND){\n\t\t\t\tselectedTile = ct;\n\t\t\t\tct.setSelected(true);\n\t\t\t\tdisplayCardInfo(ct);\n\t\t\t}\n\t\t}\n\t}", "private void setAvailableFromLastMove(int large, int smallx) {\n clearAvailable();\n // Make all the tiles at the destination available\n if (large != -1) {\n\n\n for (int i = 0; i < 9; i++) {\n for (int dest = 0; dest < 9; dest++) {\n if (!phaseTwo) {\n if (!done) {\n if (i == large) {\n TileAssignment5 tile = mSmallTiles[large][dest];\n if ((tile.getOwner() == TileAssignment5.Owner.NOTCLICKED))\n addAvailable(tile);\n\n switch (smallx) {\n case 0:\n int a[] = adjacencyList.get(0);\n\n for (int x : a) {\n TileAssignment5 tile1 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile1)) {\n mAvailable.remove(tile1);\n //}\n }\n break;\n case 1:\n int a1[] = adjacencyList.get(1);\n\n for (int x : a1) {\n TileAssignment5 tile2 = mSmallTiles[large][x];\n // if(mAvailable.contains(tile2)) {\n mAvailable.remove(tile2);\n //}\n }\n break;\n case 2:\n int a2[] = adjacencyList.get(2);\n for (int x : a2) {\n TileAssignment5 tile3 = mSmallTiles[large][x];\n // if(mAvailable.contains(tile3)) {\n mAvailable.remove(tile3);\n // }\n }\n break;\n case 3:\n int a3[] = adjacencyList.get(3);\n for (int x : a3) {\n TileAssignment5 tile4 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile4)) {\n mAvailable.remove(tile4);\n // }\n }\n break;\n case 4:\n int a4[] = adjacencyList.get(4);\n for (int x : a4) {\n TileAssignment5 tile5 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile5)) {\n mAvailable.remove(tile5);//}\n\n }\n break;\n case 5:\n int a5[] = adjacencyList.get(5);\n for (int x : a5) {\n TileAssignment5 tile6 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile6)) {\n mAvailable.remove(tile6);//}\n\n }\n break;\n case 6:\n int a6[] = adjacencyList.get(6);\n for (int x : a6) {\n TileAssignment5 tile7 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile7)) {\n mAvailable.remove(tile7);//}\n\n }\n break;\n case 7:\n int a7[] = adjacencyList.get(7);\n for (int x : a7) {\n TileAssignment5 tile8 = mSmallTiles[large][x];\n // if(mAvailable.contains(tile8)) {\n mAvailable.remove(tile8);//}\n\n }\n break;\n case 8:\n int a8[] = adjacencyList.get(8);\n for (int x : a8) {\n TileAssignment5 tile9 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile9)) {\n mAvailable.remove(tile9);//}\n\n }\n break;\n }\n\n } else {\n if (DoneTiles.contains(i)) {\n continue;\n }\n TileAssignment5 tile = mSmallTiles[i][dest];\n tile.setOwner(TileAssignment5.Owner.FREEZED);\n tile.updateDrawableState('a', 0);\n }\n } else { //OnDOnePressed\n if (DoneTiles.contains(i)) {\n continue;\n }\n\n // Log.d(\"Comes \", \"Hereeee\");\n if (i != large) {//Correct answer\n TileAssignment5 tile = mSmallTiles[i][dest];\n tile.setOwner(TileAssignment5.Owner.NOTCLICKED);\n addAvailable(tile);\n tile.updateDrawableState('a', 0);\n //done =false;\n }\n }\n\n\n }else {\n/*\n ileAssignment5 thistile = mSmallTiles[i][dest];\n if(((Button)thistile.getView()).getText().charAt(0)==' '){\n mAvailable.remove(thistile);\n thistile.updateDrawableState('a', 0);\n }\n*/\n\n\n if (i == large) {\n if (dest == smallx) {\n TileAssignment5 tile1 = mSmallTiles[large][dest];\n tile1.setOwner(TileAssignment5.Owner.CLICKED);\n if (mAvailable.contains(tile1)) {\n mAvailable.remove(tile1);\n }\n tile1.updateDrawableState('a', 0);\n\n } else {\n TileAssignment5 tile2 = mSmallTiles[large][dest];\n if (!(tile2.getOwner() == TileAssignment5.Owner.CLICKED)) {\n\n tile2.setOwner(TileAssignment5.Owner.FREEZED);\n }\n if (mAvailable.contains(tile2)) {\n mAvailable.remove(tile2);\n }\n tile2.updateDrawableState('a', 0);\n }\n\n\n } else {\n\n\n TileAssignment5 tile3 = mSmallTiles[i][dest];\n if (!(tile3.getOwner() == TileAssignment5.Owner.CLICKED)) {\n tile3.setOwner(TileAssignment5.Owner.NOTCLICKED);\n }\n // if(((((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(null))||((Button)mSmallTiles[i][dest].getView()).getText().toString().charAt(0)==' ')||(((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(\"\"))){\n\n if ((!mAvailable.contains(tile3))&&(tile3.getView().toString().charAt(0)!=' ')){\n mAvailable.add(tile3);\n }\n\n\n tile3.updateDrawableState('a', 0);\n\n\n\n TileAssignment5 tile = mSmallTiles[i][dest];\n if(((Button)mSmallTiles[i][dest].getView()).getText().toString().charAt(0)==' '){\n // Log.d(\"Yes \", \"it came\");\n if(mAvailable.contains(tile)){\n mAvailable.remove(tile);\n }\n\n }\n else{\n if(!mAvailable.contains(tile)){\n addAvailable(tile);}\n }\n\n\n\n\n\n\n\n\n\n /*\n\n\n\n\n\n\n ileAssignment5 tile = mSmallTiles[i][dest];\n ileAssignment5 tile = mSmallTiles[i][dest];\n try{\n if(((((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(null))||((Button)mSmallTiles[i][dest].getView()).getText().toString().charAt(0)==' ')||(((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(\"\"))){\n // Log.d(\"Yes \", \"it came\");\n if(mAvailable.contains(tile)){\n mAvailable.remove(tile);\n }\n }\n else{\n if(!mAvailable.contains(tile)){\n addAvailable(tile);}\n }}catch (ArrayIndexOutOfBoundsException e){\n\n\n }catch ( StringIndexOutOfBoundsException e){\n\n }\n\n*/\n }\n\n }\n }\n }\n }\n // If there were none available, make all squares available\n if (mAvailable.isEmpty()&&large==-1) {\n setAllAvailable();\n }\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}", "void Setup(int type){\r\n\t\t/*Rock Specific*/\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\tif (id == 1){\r\n\t\t\t/*Tile centering*/\r\n\t\t\tthis.xoffset = 0.0f*Tile.TILEWIDTH;\r\n\t\t\tthis.yoffset = -2f/64f*Tile.TILEHEIGHT;\r\n\t\t\tthis.width = Tile.TILEWIDTH;\r\n\t\t\tthis.height = Tile.TILEHEIGHT;\r\n\t\t\t/*Bounds*/\r\n\t\t\tbounds.x = (int)((4f / 64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.y = (int)((15f / 64f) * Tile.TILEHEIGHT);\r\n\t\t\tbounds.width = (int)((56f / 64f) * Tile.TILEWIDTH) ;\r\n\t\t\tbounds.height = (int)((36f / 64f) * Tile.TILEHEIGHT);\r\n\t\t}\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\t/*Tree Specific*/\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\telse if (id == 2){\r\n\t\t\t/*Tile centering*/\r\n\t\t\tthis.xoffset = (-2 + 9f/64f) * Tile.TILEWIDTH;\r\n\t\t\tthis.yoffset = (-3 - 32f/64f) * Tile.TILEHEIGHT;\r\n\t\t\tthis.width = 5*Tile.TILEWIDTH;\r\n\t\t\tthis.height = 5*Tile.TILEHEIGHT;\r\n\t\t\t/*Bounds*/\r\n\t\t\tbounds.x = (int) ((128f / 64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.y = (int) ((240f/64f) * Tile.TILEHEIGHT);\r\n\t\t\tbounds.width = (int)((48f /64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.height = (int) ((48f/64f) * Tile.TILEHEIGHT);\r\n\t\t}\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\t/*Table Specific*/\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\telse if (id == 3){\r\n\t\t\t/*Tile centering*/\r\n\t\t\tthis.xoffset = (9f/64f - .2f) * Tile.TILEWIDTH;\r\n\t\t\tthis.yoffset = (-40f/64f) * Tile.TILEHEIGHT;\r\n\t\t\tthis.width = 1.f*Tile.TILEWIDTH;\r\n\t\t\tthis.height = 2.10f*Tile.TILEHEIGHT;\r\n\t\t\t/*Bounds*/\r\n\t\t\tbounds.x = (int) (Tile.TILEHEIGHT/5.3f);\r\n\t\t\tbounds.y = (int) (.75*Tile.TILEHEIGHT);\r\n\t\t\tbounds.width = (int)((48f /64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.height = (int) ((48f/64f) * Tile.TILEHEIGHT);\r\n\t\t}\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\t/*Toilet Specific*/\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\telse if (id == 4){\r\n\t\t\t/*Tile centering*/\r\n\t\t\tthis.xoffset = (13f/64f - .2f) * Tile.TILEWIDTH;\r\n\t\t\tthis.yoffset = (-70f/64f) * Tile.TILEHEIGHT;\r\n\t\t\tthis.width = 1.f*Tile.TILEWIDTH;\r\n\t\t\tthis.height = 2.10f*Tile.TILEHEIGHT;\r\n\t\t\t/*Bounds*/\r\n\t\t\tbounds.x = (int) (Tile.TILEHEIGHT/5.65f);\r\n\t\t\tbounds.y = (int) (1.3*Tile.TILEHEIGHT);\r\n\t\t\tbounds.width = (int)((48f /64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.height = (int) ((48f/64f) * Tile.TILEHEIGHT);\r\n\t\t}\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\t/*Chair Specific*/\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\telse if (id == 5){\r\n\t\t\t/*Tile centering*/\r\n\t\t\tthis.xoffset = (13f/64f - .2f) * Tile.TILEWIDTH;\r\n\t\t\tthis.yoffset = (-70f/64f) * Tile.TILEHEIGHT;\r\n\t\t\tthis.width = Tile.TILEWIDTH;\r\n\t\t\tthis.height = 2*Tile.TILEHEIGHT;\r\n\t\t\t/*Bounds*/\r\n\t\t\tbounds.x = (int) (Tile.TILEHEIGHT/5.65f);\r\n\t\t\tbounds.y = (int) (1.3*Tile.TILEHEIGHT);\r\n\t\t\tbounds.width = (int)((48f /64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.height = (int) ((48f/64f) * Tile.TILEHEIGHT);\r\n\t\t}\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\t/*Bush Specific*/\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\telse if (id == 6){\r\n\t\t\t/*Tile centering*/\r\n\t\t\tthis.xoffset = (13f/64f - .6f) * Tile.TILEWIDTH;\r\n\t\t\tthis.yoffset = (-70f/64f) * Tile.TILEHEIGHT;\r\n\t\t\tthis.width = 2*Tile.TILEWIDTH;\r\n\t\t\tthis.height = 2*Tile.TILEHEIGHT;\r\n\t\t\t/*Bounds*/\r\n\t\t\tbounds.x = (int) (.55f*Tile.TILEHEIGHT);\r\n\t\t\tbounds.y = (int) (1.5*Tile.TILEHEIGHT);\r\n\t\t\tbounds.width = (int)((48f /64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.height = (int) ((40f/64f) * Tile.TILEHEIGHT);\r\n\t\t}\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\t/* Sunflower Specific */\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\telse if (id == 7) {\r\n\t\t\t/* Tile centering */\r\n\t\t\tthis.xoffset = (-.1f)*Tile.TILEWIDTH;\r\n\t\t\tthis.yoffset = (-.2f - 32f / 64f) * Tile.TILEHEIGHT ;\r\n\t\t\tthis.width = 1.5f * Tile.TILEWIDTH;\r\n\t\t\tthis.height = 1.5f * Tile.TILEHEIGHT;\r\n\t\t\t/* Bounds */\r\n\t\t\tbounds.x = (int) ((32f / 64f ) * Tile.TILEWIDTH);\r\n\t\t\tbounds.y = (int) ((32f / 64f + .6f) * Tile.TILEHEIGHT);\r\n\t\t\tbounds.width = (int) ((32f / 64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.height = (int) ((32f / 64f) * Tile.TILEHEIGHT);\r\n\t\t}\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\t/* Pumpkin Specific */\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\telse if (id == 8) {\r\n\t\t\t/* Tile centering */\r\n\t\t\tthis.xoffset = (-.85f)*Tile.TILEWIDTH;\r\n\t\t\tthis.yoffset = (-144f / 64f +.4f) * Tile.TILEHEIGHT ;\r\n\t\t\tthis.width = 2.75f * Tile.TILEWIDTH;\r\n\t\t\tthis.height = 2.75f * Tile.TILEHEIGHT;\r\n\t\t\t/* Bounds */\r\n\t\t\tbounds.x = (int) ((64f / 64f -.1f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.y = (int) ((140f / 64f-.3f) * Tile.TILEHEIGHT);\r\n\t\t\tbounds.width = (int) ((64f / 64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.height = (int) ((64f / 64f) * Tile.TILEHEIGHT);\r\n\t\t}\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\t/* Watermelon Specific */\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\telse if (id == 9) {\r\n\t\t\t/* Tile centering */\r\n\t\t\tthis.xoffset = (-.85f)*Tile.TILEWIDTH;\r\n\t\t\tthis.yoffset = (-144f / 64f +.4f) * Tile.TILEHEIGHT ;\r\n\t\t\tthis.width = 2.75f * Tile.TILEWIDTH;\r\n\t\t\tthis.height = 2.75f * Tile.TILEHEIGHT;\r\n\t\t\t/* Bounds */\r\n\t\t\tbounds.x = (int) ((64f / 64f -.1f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.y = (int) ((140f / 64f-.3f) * Tile.TILEHEIGHT);\r\n\t\t\tbounds.width = (int) ((64f / 64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.height = (int) ((64f / 64f) * Tile.TILEHEIGHT);\r\n\t\t}\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\t/* Corn Specific */\r\n\t\t/*----------------------------------------------------------------------------------*/\r\n\t\telse if (id == 10) {\r\n\t\t\t/* Tile centering */\r\n\t\t\tthis.xoffset = (-.45f)*Tile.TILEWIDTH;\r\n\t\t\tthis.yoffset = (-80f / 64f ) * Tile.TILEHEIGHT ;\r\n\t\t\tthis.width = 2f * Tile.TILEWIDTH;\r\n\t\t\tthis.height = 2f * Tile.TILEHEIGHT;\r\n\t\t\t/* Bounds */\r\n\t\t\tbounds.x = (int) ((64f / 64f -.3f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.y = (int) ((80f / 64f +.1f) * Tile.TILEHEIGHT);\r\n\t\t\tbounds.width = (int) ((32f / 64f) * Tile.TILEWIDTH);\r\n\t\t\tbounds.height = (int) ((64f / 64f - .2f) * Tile.TILEHEIGHT);\r\n\t\t}\r\n\t\t/*----------------------------------------------------------------------------------*/\t\r\n\t}", "public void addRandoms() {\n //Add random boulders on tiles that aren't Lava\n int tileNumber;\n int selector;\n Tile t;\n String tileTexture;\n Random random = new Random();\n SquareVector playerPos = getPlayerEntity().getPosition();\n int tileCount = GameManager.get().getWorld().getTiles().size();\n AbstractWorld world = GameManager.get().getWorld();\n int randIndex;\n\n for (int i = 0; i < 20; i++) {\n //Get respective volcano tile (5 <= Lava tiles Index <= 8\n do {\n randIndex = random.nextInt(tileCount);\n t = world.getTile(randIndex);\n } while (t.getCoordinates().isCloseEnoughToBeTheSame(playerPos));\n\n tileTexture = t.getTextureName();\n tileNumber = Integer.parseInt(tileTexture.split(\"_\")[1]);\n\n selector = random.nextInt(2);\n if (tileNumber < 5 && tileNumber > 1 && selector == 1 && !t.hasParent()) {\n entities.add(new Rock(t, true));\n } else if (t != null && (tileNumber == 3 || tileNumber == 4) &&\n selector == 0 && !t.hasParent()) {\n entities.add(new VolcanoBurningTree(t, true));\n } else {\n i--;\n }\n }\n }", "private void openFloor(Tile t) {\r\n int tileRow = t.getRow();\r\n int tileCol = t.getCol();\r\n if (t.getSurroudingBombs() == 0) { \r\n for (int r = tileRow - 1; r <= tileRow + 1; r++) {\r\n for (int c = tileCol - 1; c <= tileCol + 1; c++) {\r\n if (r >= 0 && r < gridSize && c >= 0 && c < gridSize) {\r\n Tile inspectionTile = grid[r][c]; \r\n if (!(r == tileRow && c == tileCol) && inspectionTile.isHidden() \r\n && !inspectionTile.getFlagged()) {\r\n if (!inspectionTile.isBomb()) {\r\n inspectionTile.handleTile();\r\n if (inspectionTile.getSurroudingBombs() == 0) {\r\n openFloor(inspectionTile);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n } else {\r\n for (int r = tileRow - 1; r <= tileRow + 1; r++) {\r\n for (int c = tileCol - 1; c <= tileCol + 1; c++) {\r\n if (r >= 0 && r < gridSize && c >= 0 && c < gridSize) {\r\n Tile inspectionTile = grid[r][c]; \r\n if ((r != tileRow - 1 && c != tileCol - 1) ||\r\n (r != tileRow - 1 && c != tileCol + 1) ||\r\n (r != tileRow + 1 && c != tileCol - 1) ||\r\n (r != tileRow + 1 && c != tileCol + 1) && \r\n !(r == tileRow && c == tileCol) && inspectionTile.isHidden()) {\r\n if (!inspectionTile.isBomb()) {\r\n inspectionTile.handleTile();\r\n if (inspectionTile.getSurroudingBombs() == 0) {\r\n openFloor(inspectionTile);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }", "private void makeMaze() {\n\t\ttry {\n\t\t\tthis.end = ImageIO.read(new File(\"images/tiles/end_locked.png\"));\n\t\t\tint w = getWidth()/gui.getModel().getDifficulty();\n\t\t\tint h = getHeight()/gui.getModel().getDifficulty();\n\t\t\tint difficulty = gui.getModel().getDifficulty();\n\t\t\tmazeImage = new BufferedImage(difficulty*(getWidth()/difficulty), difficulty*(getHeight()/difficulty), BufferedImage.TYPE_INT_RGB);\n\t\t\tGraphics2D g = mazeImage.createGraphics();\n\t\t\tString tile = \"\";\n\t\t\tfor (BaseState s: gui.getModel().getMaze()) {\n\t\t\t\tint x = s.getX(); int y = s.getY();\n\t\t\t\t\n\t\t\t\t// check walls\n\t\t\t\tint numSides = 0;\n\t\t\t\tboolean rightWall = false;\n\t\t\t\tboolean leftWall = false;\n\t\t\t\tboolean topWall = false;\n\t\t\t\tboolean bottomWall = false;\n\t\t\t\tif (s.getRight() == null) rightWall = true;\n\t\t\t\tif (s.getLeft() == null) leftWall = true;\n\t\t\t\tif (s.getUp() == null) topWall = true;\n\t\t\t\tif (s.getDown() == null) bottomWall = true;\n\t\t\t\tif (topWall) numSides++;\n\t\t\t\tif (leftWall) numSides++;\n\t\t\t\tif (bottomWall) numSides++;\n\t\t\t\tif (rightWall) numSides++;\n\t\t\t\t\n\t\t\t\t// find tile type\n\t\t\t\tif (numSides == 3) { // dead end\n\t\t\t\t\tif (!rightWall) tile = \"images/tiles/deadend_left.bmp\";\n\t\t\t\t\telse if (!leftWall) tile = \"images/tiles/deadend_right.bmp\";\n\t\t\t\t\telse if (!topWall) tile = \"images/tiles/deadend_bottom.bmp\";\n\t\t\t\t\telse if (!bottomWall) tile = \"images/tiles/deadend_top.bmp\";\n\t\t\t\t} else if (numSides == 2) { // corner or hall\n\t\t\t\t\t//hall\n\t\t\t\t\tif (rightWall && leftWall) tile = \"images/tiles/hall_vertical.bmp\";\n\t\t\t\t\telse if (topWall && bottomWall) tile = \"images/tiles/hall_horizontal.bmp\";\n\t\t\t\t\t//corner\n\t\t\t\t\telse if (topWall && leftWall) tile = \"images/tiles/corner_top_left.bmp\";\n\t\t\t\t\telse if (topWall && rightWall) tile = \"images/tiles/corner_top_right.bmp\";\n\t\t\t\t\telse if (bottomWall && leftWall) tile = \"images/tiles/corner_bottom_left.bmp\";\n\t\t\t\t\telse if (bottomWall && rightWall) tile = \"images/tiles/corner_bottom_right.bmp\";\n\t\t\t\t} else if (numSides == 1) { // single side\n\t\t\t\t\tif (leftWall) tile = \"images/tiles/wall_left.bmp\";\n\t\t\t\t\telse if (rightWall) tile = \"images/tiles/wall_right.bmp\";\n\t\t\t\t\telse if (topWall) tile = \"images/tiles/wall_top.bmp\";\n\t\t\t\t\telse if (bottomWall) tile = \"images/tiles/wall_bottom.bmp\";\n\t\t\t\t} else { // open\n\t\t\t\t\ttile = \"images/tiles/open.bmp\";\n\t\t\t\t}\n\t\t\t\t// draw tile\n\t\t\t\tg.drawImage(ImageIO.read(new File(tile)), x*w, y*h, w, h, null);\n\t\t\t\t\n\t\t\t\t// check for ending and draw if need be\n\t\t\t\tif (s.getX() == gui.getModel().getDifficulty() - 1 && s.getY() == gui.getModel().getDifficulty() - 1) {\n\t\t\t\t\tg.drawImage(ImageIO.read(new File(\"images/tiles/end_unlocked.png\")), x*w, y*h, w, h, null);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch(IOException e) {System.err.println(\"Images not found.\");}\n\t}", "private boolean buildEntity() {\r\n\t\t/****************** Tower Creation ******************/\r\n\t\tif (this.type.contains(\"tower\")) {\r\n\t\t\tif (this.type.equals(\"tower0\")) {\r\n\t\t\t\t// Basic starting tower\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 2;\r\n\t\t\t\tthis.health = 500;\r\n\t\t\t\tthis.attack = 0;\r\n\t\t\t\tthis.price = 110;\r\n\t\t\t\tthis.frames = 1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower1\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.health = 90;\r\n\t\t\t\tthis.attack = 30;\r\n\t\t\t\tthis.price = 50;\r\n\t\t\t\tthis.frames = 5;\r\n\t\t\t\tthis.weaponFrames = 1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower2\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.health = 160;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 210;\r\n\t\t\t\tthis.frames = 6;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.weaponFrames = 8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower3\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.health = 245;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 245;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.frames = 9;\r\n\t\t\t\tthis.weaponFrames =1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower4\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.health = 200;\r\n\t\t\t\tthis.attack = 3000;\r\n\t\t\t\tthis.price = 500;\r\n\t\t\t\tthis.frames = 9;\r\n\t\t\t\tthis.weaponFrames = 8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower5\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.weaponFrames = 3;\r\n\t\t\t\tthis.health = 100;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 90;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.frames = 7;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/****************** Enemy Creation ******************/\r\n\t\tif (this.type.contains(\"zombie\")) {\r\n\t\t\tif (this.type.equals(\"zombie0\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 150;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 75;\r\n\t\t\t\tthis.deathFrames = 9;\r\n\t\t\t\tthis.walkFrames = 9;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie1\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 500;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 50;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 6;\r\n\t\t\t\tthis.attackFrames =8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie2\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 250;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 50;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 6;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie3\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 100;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.speed = 25;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 8;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/****************** Object Creation ******************/\r\n\t\tif (this.type.contains(\"object\")) {\r\n\t\t\tif (this.type.equals(\"object0\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object1\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object2\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object3\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object4\")) {\r\n\t\t\t\t// Jail building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object5\")) {\r\n\t\t\t\t// Inn building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object6\")) {\r\n\t\t\t\t// Bar building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object7\")) {\r\n\t\t\t\t// Watchtower building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object8\")) {\r\n\t\t\t\t// Plus path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object9\")) {\r\n\t\t\t\t// NS Path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object10\")) {\r\n\t\t\t\t// EW Path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object11\")) {\r\n\t\t\t\t// Cobble Ground\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object12\")) {\r\n\t\t\t\t// Tombstone with dirt\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object13\")) {\r\n\t\t\t\t// Tombstone\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object14\")) {\r\n\t\t\t\t// Wood grave marker\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/****************** Out of Creation ******************/\r\n\t\t// Check if a type was created and return results\r\n\t\tif (this.base != null) {\r\n\t\t\t// Successful creation\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\t// Unsuccessful creation\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private Board create5by5Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 5);\n Tile t2 = new Tile(1, 5);\n Tile t3 = new Tile(2, 5);\n Tile t4 = new Tile(3, 5);\n Tile t5 = new Tile(4, 5);\n Tile t6 = new Tile(5, 5);\n Tile t7 = new Tile(6, 5);\n Tile t8 = new Tile(7, 5);\n Tile t9 = new Tile(8, 5);\n Tile t10 = new Tile(9, 5);\n Tile t11 = new Tile(10, 5);\n Tile t12 = new Tile(11, 5);\n Tile t13 = new Tile(12, 5);\n Tile t14 = new Tile(13, 5);\n Tile t15 = new Tile(14, 5);\n Tile t16 = new Tile(15, 5);\n Tile t17 = new Tile(16, 5);\n Tile t18 = new Tile(17, 5);\n Tile t19 = new Tile(18, 5);\n Tile t20 = new Tile(19, 5);\n Tile t21 = new Tile(20, 5);\n Tile t22 = new Tile(21, 5);\n Tile t23 = new Tile(22, 5);\n Tile t24 = new Tile(23, 5);\n Tile t25 = new Tile(24, 5);\n tiles = new Tile[5][5];\n tiles[0][0] = t7;\n tiles[0][1] = t6;\n tiles[0][2] = t2;\n tiles[0][3] = t5;\n tiles[0][4] = t9;\n tiles[1][0] = t3;\n tiles[1][1] = t1;\n tiles[1][2] = t8;\n tiles[1][3] = t4;\n tiles[1][4] = t11;\n tiles[2][0] = t17;\n tiles[2][1] = t18;\n tiles[2][2] = t10;\n tiles[2][3] = t25;\n tiles[2][4] = t20;\n tiles[3][0] = t23;\n tiles[3][1] = t21;\n tiles[3][2] = t12;\n tiles[3][3] = t15;\n tiles[3][4] = t13;\n tiles[4][0] = t22;\n tiles[4][1] = t24;\n tiles[4][2] = t14;\n tiles[4][3] = t16;\n tiles[4][4] = t19;\n return new Board(tiles);\n }", "public void drawTile() {\n\n }", "private void generate()\r\n {\r\n mapPieces = myMap.Generate3();\r\n mapWidth = myMap.getMapWidth();\r\n mapHeight = myMap.getMapHeight();\r\n }", "private void buildCity() {\r\n\t\tMessage message = new Message(clickedNode, true, null);\r\n\t\tsendMessage(message);\r\n\t}", "private static void tileInit(int i, int j, Group tileGroup, int i2, int i3, int i4, int i5) {\n Tile tile = new Tile(i, j, (i2), (i3));\n tile.setTranslateX((i4));\n tile.setTranslateY(i5);\n tileGroup.getChildren().add(tile);\n }", "public void createWorldMap() {\r\n\t\tdo {\r\n\t\t\t//\t\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Recursive map generation method over here@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n\t\t\t//Generation loop 1 *ADDS VEIN STARTS AND GRASS*\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif (Math.random()*10000>9999) { //randomly spawn a conore vein start\r\n\t\t\t\t\t\ttileMap[i][j] = new ConoreTile (conore, true);\r\n\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t}else if (Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new KannaiteTile(kanna, true);\r\n\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new FuelTile(fuel, true);\r\n\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999) {\r\n\t\t\t\t\t\ttileMap[i][j] = new ForestTile(forest, true);\r\n\t\t\t\t\t\tforestCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new OilTile(oil,true);\r\n\t\t\t\t\t}else if(Math.random()*10000>9997) {\r\n\t\t\t\t\t\ttileMap[i][j] = new MountainTile(mountain, true);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\ttileMap[i][j] = new GrassTile(dirt);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} // End for loop \r\n\t\t\t} // End for loop\r\n\t\t\t//End generation loop 1\r\n\r\n\t\t\t//Generation loop 2 *EXPANDS ON THE VEINS*\r\n\t\t\tdo {\r\n\t\t\t\tif (conoreCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ConoreTile (conore,true);\r\n\t\t\t\t\tconoreCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tconorePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (kannaiteCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new KannaiteTile (kanna,true);\r\n\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (fuelCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new FuelTile (fuel,true);\r\n\t\t\t\t\tfuelCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (forestCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ForestTile (forest,true);\r\n\t\t\t\t\tforestCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tforestPass = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 2\r\n\r\n\t\t\t//Generation loop 3 *COUNT ORES*\r\n\t\t\tint loop3Count = 0;\r\n\t\t\tconorePass = false;\r\n\t\t\tkannaitePass = false;\r\n\t\t\tfuelPass = false;\r\n\t\t\tforestPass = false;\r\n\t\t\tdo {\r\n\t\t\t\tconoreCount = 0;\r\n\t\t\t\tkannaiteCount = 0;\r\n\t\t\t\tfuelCount = 0;\r\n\t\t\t\tforestCount = 0;\r\n\t\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (tileMap[i][j] instanceof ConoreTile) {\r\n\t\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof KannaiteTile) {\r\n\t\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof FuelTile) {\r\n\t\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof ForestTile) {\r\n\t\t\t\t\t\t\tforestCount++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (conoreCount < 220) {\r\n\t\t\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tconorePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (kannaiteCount < 220) {\r\n\t\t\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (fuelCount< 220) {\r\n\t\t\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (forestCount < 220) {\r\n\t\t\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tforestPass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tloop3Count++;\r\n\t\t\t\tif (loop3Count > 100) {\r\n\t\t\t\t\tSystem.out.println(\"map generation failed! restarting\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\t\t\t//END OF LOOP 3\r\n\r\n\t\t\t//LOOP 4: THE MOUNTAIN & OIL LOOP\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildMountain(i,j);\r\n\t\t\t\t\tbuildOil(i,j);\r\n\t\t\t\t}\r\n\t\t\t}//End of THE Mountain & OIL LOOP\r\n\r\n\t\t\t//ADD MINIMUM AMOUNT OF ORES\r\n\r\n\t\t\t//Generation Loop 5 *FINAL SETUP*\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif(i == 1 || j == 1 || i == tileMap.length-2 || j == tileMap[i].length-2) {\r\n\t\t\t\t\t\ttileMap[i][j] = new DesertTile(desert);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (i == 0 || j == 0 || i == tileMap.length-1 || j == tileMap[i].length-1) {\r\n\t\t\t\t\t\ttileMap[i][j] = new WaterTile(water);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 5\r\n\t\t\t//mapToString();//TEST RUN\r\n\t\t} while(!conorePass || !kannaitePass || !fuelPass || !forestPass); // End createWorldMap method\r\n\t}", "public static GameTile makeNewTile(int tileValue)\n {\n GameTileyul579 GameTile= new GameTileyul579(tileValue);\n return GameTile;\n }", "public void grab() {\r\n\t\tString item = mapContents[currentPlayer.getCurrentRoom()];\r\n\t\tif (item == null) return;\r\n\t\t\r\n\t\t// If artifact, make sure has room or backpack\r\n\t\tif (item.startsWith(\"Artifact\")) {\r\n\t\t\tif (currentPlayer.count(\"Artifact\") <= currentPlayer.count(\"Backpack\")) {\r\n\t\t\t\tcurrentPlayer.pickup(item);\r\n\t\t\t\tattackLevel++;\r\n\t\t\t\taddEvent(\"``\"+currentName+\"`` picked up an Artifact **\"+item.substring(8)+\"** :star:\",true);\r\n\t\t\t\taddHistory(\"ARTIFACT \"+item.substring(8));\r\n\t\t\t\tmapContents[currentPlayer.getCurrentRoom()] = null;\r\n\t\t\t}\r\n\t\t// If monkey idol, make sure didn't already pick one up this turn\r\n\t\t} else if (item.startsWith(\"MonkeyIdol\") && !currentPlayer.getAlreadyPickedUpMonkeyIdol()) {\r\n\t\t\tcurrentPlayer.pickup(item);\r\n\t\t\tcurrentPlayer.setAlreadyPickedUpMonkeyIdol(true);\r\n\t\t\tint num = Integer.parseInt(item.substring(10));\r\n\t\t\tnum--;\r\n\t\t\tif (num == 0) {\r\n\t\t\t\tmapContents[currentPlayer.getCurrentRoom()] = null;\r\n\t\t\t} else {\r\n\t\t\t\tmapContents[currentPlayer.getCurrentRoom()] = \"MonkeyIdol\"+num;\r\n\t\t\t}\r\n\t\t\taddEvent(\"``\"+currentName+\"`` picked up a Monkey Idol **5** :star:\",true);\r\n\t\t\taddHistory(\"IDOL \"+item.substring(8));\r\n\t\t}\r\n\t\tupdateReactionsInfo();\r\n\t\tupdatePlayArea(currentPlayer, false);\r\n\t\tupdateMarketAndTreasures(false);\r\n\t\ttry {\r\n\t\t\tupdateBoard();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void getTilePressed(View v){\n numpressed = numpressed + 1;\n if(numpressed>4){\n myTurn = true;\n showToast(\"Override: Your turn!\");\n }\n if(myTurn || is_debug){\n numpressed = 0;\n if(!MultiplayerManager.getInstance().enoughTimeBetweenCommands()){\n showToast(\"Please wait a second before issueing another command\");\n return;\n }\n int id = v.getId();\n String resource = v.getResources().getResourceEntryName(id);\n String resource_str = resource.replace(\"square_\", \"\");\n int tile = Integer.parseInt(resource_str);\n\n if(bombIntent){\n if(tile!=myTile && tile!=opponentTile && !bombs_location.contains(tile) && !powerup_location.contains(tile)){\n canPlaceBomb = false;\n placeBomb(tile, false);\n return;\n }else{\n showToast(\"Cant place there\");\n }\n }\n /**\n * check if tile is valid\n */\n if((tile==myTile+1 || tile==myTile-1 || tile==myTile+10 || tile==myTile+11 || tile == myTile+9 || tile==myTile-10 || tile ==myTile-11 || tile == myTile-9) && tile != opponentTile){\n MoveTileSelf(tile);\n checkPowerups(tile);\n }else{\n showToast(\"Can't move there imbecile\");\n }\n }else{\n showToast(\"Wait for your turn imbecile\");\n }\n }", "public void update() {\r\n\r\n\t\tfor(int p=0;p<200;p++) {\r\n\t\t\tfor(int k=0;k<200;k++) {\r\n\r\n\t\t\t\tif(tileMap[p][k].getBuilding()!=null) {\r\n\t\t\t\t\tBuilding m=tileMap[p][k].getBuilding();\r\n\t\t\t\t\t//update the buildings\r\n\t\t\t\t\ttileMap[p][k].getBuilding().update();\r\n\r\n\t\t\t\t\t//Check if battery is giving off power\r\n\t\t\t\t\tif( (m instanceof LowTierBattery) || (m instanceof LargeBattery) || (m instanceof IndustrialGradeBattery) ) {\r\n\r\n\t\t\t\t\t\t//If it's a Battery\r\n\t\t\t\t\t\tLowTierBattery f =(LowTierBattery) tileMap[p][k].getBuilding();\t\r\n\r\n\t\t\t\t\t\t//Check if its getting power and charging\r\n\t\t\t\t\t\tif(checkPowerLine(p,k,3)) {\r\n\t\t\t\t\t\t\tpowerSwitcher(p,k,2,true); //If it is then give off power\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tpowerSwitcher(p,k,2,f.getCapacity()>0); ///if it isnt then only give power if there is capacity\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//If a building is generating power add power to tiles;\r\n\t\t\t\t\t}else if( (m instanceof SteamEngine) || (m instanceof HandCrankGenerator) || (m instanceof SteamTurbine) || (m instanceof WindTurbine) ) {\r\n\r\n\t\t\t\t\t\tpowerSwitcher(p,k,3,((PoweredBuilding) m).getPower()); //Adds power or remove power based on the status of the generators\r\n\r\n\t\t\t\t\t\t//Powerline only get power from other powerline or buildings\r\n\t\t\t\t\t}else if(m instanceof PowerLine) {\r\n\r\n\t\t\t\t\t\tpowerSwitcher(p,k,5,checkPowerLine(p,k,5)); //Checks if the powerline is powered by other buildings then give it to powerSwitch method\r\n\r\n\t\t\t\t\t}else if(m instanceof LargePowerLine) {\r\n\t\t\t\t\t\tpowerSwitcher(p,k,10,checkPowerLine(p,k,10)); //Checks if the powerline is powered by other buildings then give it to powerSwitch method\r\n\r\n\t\t\t\t\t\t//If its just a powered building enable it if the tile under it is powered;\r\n\t\t\t\t\t}else if((m instanceof PoweredBuilding)) {\r\n\t\t\t\t\t\t((PoweredBuilding) tileMap[p][k].getBuilding()).setPower(tileMap[p][k].getPowered());\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t//Pipe movement\r\n\t\t\t\t\tif(m instanceof Pipe ) {\r\n\t\t\t\t\t\tpipeCheck(p,k,m);\r\n\t\t\t\t\t}else if(m.getOutputInventorySize()>0) {\r\n\t\t\t\t\t\tbuildingPipeCheck(p,k,m);\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void BuildUp(int towerToBuild, int towerTarget, int bottomSize) {\n\t\t\n\t\tint notTowerTarget = getOtherTower(towerToBuild,towerTarget);\n\n\t\twhile( towerSet.TopBlock(towerToBuild) > 1 ) {\n\t\t\tif(towerSet.TopBlock(towerTarget) == towerSet.TopBlock(towerToBuild) - 1) {\n\t\t\t\ttowerSet.MoveBlock(towerTarget,towerToBuild);\n\t\t\t\tturnNumber++;\n\t\t\t\tSystem.out.println(this.toString());\n\t\t\t}\n\t\t\telse if(towerSet.TopBlock(notTowerTarget) == towerSet.TopBlock(towerToBuild) - 1) {\n\t\t\t\ttowerSet.MoveBlock(notTowerTarget,towerToBuild);\n\t\t\t\tturnNumber++;\n\t\t\t\tSystem.out.println(this.toString());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(towerSet.TopBlock(towerTarget) == 1 ) {\n\t\t\t\t\tthis.BreakDown(towerTarget, towerToBuild, towerSet.TopBlock(towerToBuild) - 1);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.BreakDown(notTowerTarget, towerToBuild, towerSet.TopBlock(towerToBuild) - 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void build() {\n resetUpdate();\n\n gameMessage.setSpace1(clientMessage.getSpace1());\n gameMessage.setLevel(clientMessage.getLevelToBuild());\n gameMessage.notify(gameMessage);\n\n if ( liteGame.getCurrWorker() == null ){\n removePlayerFromTheGame();\n }\n }", "public Row(Context context, boolean black, int x, int y, int tileWidth, int tileHeight, int index) {\n this.blackFirst = black;\n this.context = context;\n this.index = index;\n this.x = x;\n this.y = y;\n dy = GamePanel.gameSpeed;\n\n\n// BLACK_BITMAP_TILE = BitmapFactory.decodeResource(context.getResources(), R.drawable.black);\n// WHITE_BITMAP_TILE = BitmapFactory.decodeResource(context.getResources(), R.drawable.white);\n\n tiles = new ArrayList<>();\n if (blackFirst) {\n// for(int i = 0; i < ChessBoard.COLUMN_NUM; i ++){\n// Tile tile;\n// if((i % 2) == 0) {\n// tile = new Tile(BLACK_BITMAP_TILE, x + i * tileWidth, y, tileWidth, tileHeight, true );\n// } else {\n// tile = new Tile(WHITE_BITMAP_TILE, x + i * tileWidth, y, tileWidth, tileHeight, false );\n// }\n// tiles.add(i, tile);\n// }\n for (int i = 0; i < GamePanel.COLUMN_NUM; i++) {\n Tile tile;\n if ((i % 2) == 0) {\n tile = new Tile(x + i * tileWidth, y, tileWidth, tileHeight, true, i, index);\n } else {\n tile = new Tile(x + i * tileWidth, y, tileWidth, tileHeight, false, i, index);\n }\n tiles.add(i, tile);\n }\n } else {\n// for(int i = 0; i < ChessBoard.COLUMN_NUM; i ++){\n// Tile tile;\n// if((i % 2) == 0) {\n// tile = new Tile(WHITE_BITMAP_TILE, x + i * tileWidth, y, tileWidth, tileHeight, false );\n// } else {\n// tile = new Tile(BLACK_BITMAP_TILE, x + i * tileWidth, y, tileWidth, tileHeight, true );\n// }\n// tiles.add(i, tile);\n// }\n\n for (int i = 0; i < GamePanel.COLUMN_NUM; i++) {\n Tile tile;\n if ((i % 2) == 0) {\n tile = new Tile(x + i * tileWidth, y, tileWidth, tileHeight, false, i, index);\n } else {\n tile = new Tile(x + i * tileWidth, y, tileWidth, tileHeight, true, i, index);\n }\n tiles.add(i, tile);\n }\n }\n\n\n }", "public TileFloor( int x, int y, int rows, int columns)\r\n {\r\n random = new Random(12345);\r\n ROWS = rows;\r\n COLUMNS= columns;\r\n this.x = x;\r\n this.y = y;\r\n }", "public void spawnEnemy(){\n\t\tint initTile = 0;\n\t\n\t\tfor(int i=0; i<screen.maps[screen.currentMap].path.getHeight(); i++){\n\t\t\tif(screen.maps[screen.currentMap].path.getCell(0, i).getTile().getProperties().containsKey(\"ground\") == true){\n\t\t\t\tinitTile = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\txCoor = 2;\n\t\tyCoor = (initTile)*64 + 2;\n\t\tbound = new Circle(xCoor+30, yCoor+30, 30);\n\t\tinGame = true;\n\t}", "public MapGen()//Collect images, create Platform list, create grassy array and generate a random integer as the map wideness\n\t{\n\t\tblocksWide= ThreadLocalRandom.current().nextInt(32, 64 + 1);\n\t\tclouds=kit.getImage(\"Resources/SkyBackground.jpg\");\n\t\tdirt=kit.getImage(\"Resources/Dirt.png\");\n\t\tgrass[0]=kit.getImage(\"Resources/Grass.png\");\n\t\tgrass[1]=kit.getImage(\"Resources/Grass1.png\");\n\t\tgrass[2]=kit.getImage(\"Resources/Grass2.png\");\n\t\tplatforms=new ArrayList<Platform>();\n\t\tgrassy=new int[blocksWide];\n\t\tgrassT=new int[blocksWide];\n\t\tgenerateTerrain();\n\t\t\n\t\t\n\t\t\n\t}", "public void toggleSelected(){\n if(!selected) {\n this.graphicsGroup.toFront();\n// System.out.println(\"selecting\");\n transparentBoxImages = new Image[(int)this.getWidth()/32][(int) this.getHeight()/32];\n //add the box to the proper position for each row this world addition covers\n for(int x = 0; x< this.getWidth() / game.BLOCK_SIZE; x++){\n for(int y = 0; y<this.getHeight()/game.BLOCK_SIZE;y++){\n Image nextImage = new Image(new TextureRegion(game.atlas.findRegion(\"GreenTransparent\")));\n nextImage.setSize(game.BLOCK_SIZE, game.BLOCK_SIZE);\n nextImage.setPosition(this.getX() + (x * game.BLOCK_SIZE), this.getY() + (y * game.BLOCK_SIZE));\n\n graphicsGroup.addActorBefore(this, nextImage);\n transparentBoxImages[x][y]= nextImage;\n\n }\n }\n\n //pick the item up\n this.setY(this.getY() + 10);\n selected = true;\n }\n else{\n\n //put the item back down\n this.setY(this.getY() - 10);\n\n for(int x = 0; x< this.getWidth() / game.BLOCK_SIZE; x++){\n for(int y = 0; y<this.getHeight()/game.BLOCK_SIZE;y++){\n graphicsGroup.removeActor(transparentBoxImages[x][y]);\n\n }\n }\n\n\n selected = false;\n\n //if we can't place it there, then we will just run everything again\n if(!game.placeable){\n Timer.schedule(new Timer.Task(){\n @Override\n public void run() {\n game.selectEnemy(worldAddition);\n }\n }, 0.1f);\n }\n\n\n }\n }", "public void addToNextMoves(GameTile[][] visibleMap) {\r\n\t\t\r\n\t\t//Breadth First Search Code\r\n//\t\tWumpusState state = new WumpusState(visibleMap, playerX, playerY, wumpusX, wumpusY);\r\n\r\n\t\tQueue<WumpusState> queue = new LinkedList<WumpusState>();\t\t\t\t//use the queue in the same way\t\r\n\t\tHashMap<String, Boolean> visitedStates = new HashMap<String, Boolean>();\t//add all children to the queue, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//add all the children to the hash and set values to true.\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//once all the children have been visited, generate children sequentially for the children that already been added \r\n\t\tWumpusState state = new WumpusState(visibleMap, playerX, playerY);\r\n\t\tlong nodesExpanded = 0;\r\n\t\t\r\n\t\tqueue.add(state);\r\n\t\twhile(!queue.isEmpty()) {\r\n\t\t\tWumpusState currentState = queue.remove();\r\n\t\t\tSystem.out.println(currentState.toString());\r\n\t\t\tif(currentState.getPlayerX() == 4 && currentState.getPlayerY() == 1) {\r\n\t\t\t\tnodesExpanded = visitedStates.size();\r\n\t\t\t\tSystem.out.println(\"Nodes Expanded: \"+nodesExpanded);\r\n\t\t\t\tArrayList<AgentAction> actions = currentState.getAllActions();\r\n\t\t\t\tfor(int i=1;i<actions.size(); i++) {\r\n\t\t\t\t\tSystem.out.println(actions.get(i));\r\n\t\t\t\t\tnextMoves.add(actions.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tnextMoves.add(AgentAction.declareVictory);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif(visitedStates.containsKey(currentState.toString())) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tvisitedStates.put(currentState.toString(), true);\r\n\t\t\t\tWumpusState[] childrenOfCurrentChild = currentState.generateChildrenStates();\r\n\t\t\t\tfor(int j=0; j<childrenOfCurrentChild.length; j++) {\r\n\t\t\t\t\tif(childrenOfCurrentChild[j]!=null) {\r\n\t\t\t\t\t\tqueue.add(childrenOfCurrentChild[j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "public TerrainObject build() {\n\t\tfor(int i=0; i<paramsSet.length-3; i++)\n\t\t\tif(!paramsSet[i])\n\t\t\t\tthrow new IllegalArgumentException(\"Needed parameter (No. \"+i+\") for TerrainObject hasn't been set\");\n\t\treturn new TerrainObject(x, y, z, xW, yW, zW, scale, seed, noise);\n\t}", "public Tile createTile(int i, int x, int y) {\n\t\tif (Constants.INTERACTIVE_TILES.contains(\" \" + i + \" \")) {\n\t\t\treturn new InteractiveTile(i, x, y);\n\t\t} else if (Constants.ITEM_IDS.contains(\" \" + i + \" \")\n\t\t\t\t|| Constants.IOBJECTS_IDS.contains(\" \" + i + \" \")\n\t\t\t\t|| Constants.CREATURE_IDS.contains(\" \" + i + \" \")) {\n\t\t\treturn new Tile(0, x, y);\n\t\t} else {\n\n\t\t\treturn new Tile(i, x, y);\n\t\t}\n\t}", "public SpaceHulkWorldModel(TiledMap map, int players)\r\n/* 49: */ {\r\n/* 50: 49 */ super(map);\r\n/* 51: 50 */ this.mission = false;\r\n/* 52: 51 */ this.reachablePlaces = 0;\r\n/* 53: 52 */ this.highlight = new int[getWidthInTiles()][getHeightInTiles()];\r\n/* 54: 53 */ this.walkable = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 55: 54 */ this.blocked = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 56: 55 */ this.finish = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 57: 56 */ this.door = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 58: 57 */ this.rock = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 59: 58 */ this.fire = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 60: 59 */ this.grass = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 61: 60 */ this.sand = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 62: */ \r\n/* 63: 62 */ this.reach = new boolean[getWidthInTiles()][getHeightInTiles()];\r\n/* 64: 64 */ for (int x = 0; x < getWidthInTiles(); x++) {\r\n/* 65: 66 */ for (int y = 0; y < getHeightInTiles(); y++) {\r\n/* 66: 69 */ this.walkable[x][y] = checkTileProperty(x, y, \"walkable\", \"true\");\r\n/* 67: */ }\r\n/* 68: */ }\r\n/* 69: */ }", "private static TETile getRandomTile() {\n Random r = new Random();\n int tileNum = r.nextInt(5);\n switch (tileNum) {\n case 0: return Tileset.FLOWER;\n case 1: return Tileset.MOUNTAIN;\n case 2: return Tileset.TREE;\n case 3: return Tileset.GRASS;\n case 4: return Tileset.SAND;\n default: return Tileset.SAND;\n }\n }", "public StructureVillagePieces.Village buildComponent(StructureVillagePieces.PieceWeight parPieceWeight, StructureVillagePieces.Start parStart, List<StructureComponent> parPiecesList, Random parRand, int parMinX, int parMinY, int parMinZ, EnumFacing parFacing, int parType) {\n/* 50 */ System.out.println(\"TekHouse6 buildComponent() at \" + parMinX + \", \" + parMinY + \", \" + parMinZ);\n/* */ \n/* 52 */ StructureBoundingBox structureboundingbox = StructureBoundingBox.getComponentToAddBoundingBox(parMinX, parMinY, parMinZ, 0, 0, 0, 9, 7, 12, parFacing);\n/* 53 */ return (canVillageGoDeeper(structureboundingbox) && StructureComponent.findIntersecting(parPiecesList, structureboundingbox) == null) ? (StructureVillagePieces.Village)new TekHouse6(parStart, parType, parRand, structureboundingbox, parFacing) : null;\n/* */ }", "public void createDeckBuilding() {\n\t\tboolean stop = false;\n\t\twhile (this.deckBuilding.size() < 5 && stop == false) {\n\t\t\tCard cardBuilding;\n\t\t\tint number = random.nextInt(this.building.size() + this.machine.size());\n\t\t\tif (number < this.building.size()) {\n\t\t\t\tcardBuilding = pickOnThePioche(this.building);\n\t\t\t\tif (cardBuilding.getName().equals(\"Stop\")) {\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t\tstop = true;\n\t\t\t\t} else {\n\t\t\t\t\tthis.building.remove(cardBuilding);\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcardBuilding = pickOnThePioche(this.machine);\n\t\t\t\tif (cardBuilding.getName().equals(\"Stop\")) {\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t\tstop = true;\n\t\t\t\t} else {\n\t\t\t\t\tthis.building.remove(cardBuilding);\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public SelectTile(MapManager parent, Point selected){\n this.parent = parent;\n \n //Save the selected point\n this.selected = new Point(selected.x, selected.y);\n\n //Add the Point to the list of selected cells\n this.parent.getSelectedArea().clear();\n this.parent.getSelectedArea().add(this.selected);\n }", "public void initializeTiles(){\r\n tileBoard = new Tile[7][7];\r\n //Create the fixed tiles\r\n //Row 0\r\n tileBoard[0][0] = new Tile(false, true, true, false);\r\n tileBoard[2][0] = new Tile(false, true, true, true);\r\n tileBoard[4][0] = new Tile(false, true, true, true);\r\n tileBoard[6][0] = new Tile(false, false, true, true);\r\n //Row 2\r\n tileBoard[0][2] = new Tile(true, true, true, false);\r\n tileBoard[2][2] = new Tile(true, true, true, false);\r\n tileBoard[4][2] = new Tile(false, true, true, true);\r\n tileBoard[6][2] = new Tile(true, false, true, true);\r\n //Row 4\r\n tileBoard[0][4] = new Tile(true, true, true, false);\r\n tileBoard[2][4] = new Tile(true, true, false, true);\r\n tileBoard[4][4] = new Tile(true, false, true, true);\r\n tileBoard[6][4] = new Tile(true, false, true, true);\r\n //Row 6\r\n tileBoard[0][6] = new Tile(true, true, false, false);\r\n tileBoard[2][6] = new Tile(true, true, false, true);\r\n tileBoard[4][6] = new Tile(true, true, false, true);\r\n tileBoard[6][6] = new Tile(true, false, false, true);\r\n \r\n //Now create the unfixed tiles, plus the extra tile (15 corners, 6 t's, 13 lines)\r\n ArrayList<Tile> tileBag = new ArrayList<Tile>();\r\n Random r = new Random();\r\n for (int x = 0; x < 15; x++){\r\n tileBag.add(new Tile(true, true, false, false));\r\n }\r\n for (int x = 0; x < 6; x++){\r\n tileBag.add(new Tile(true, true, true, false));\r\n }\r\n for (int x = 0; x < 13; x++){\r\n tileBag.add(new Tile(true, false, true, false));\r\n }\r\n //Randomize Orientation\r\n for (int x = 0; x < tileBag.size(); x++){\r\n int rand = r.nextInt(4);\r\n for (int y = 0; y <= rand; y++){\r\n tileBag.get(x).rotateClockwise();\r\n }\r\n }\r\n \r\n for (int x = 0; x < 7; x++){\r\n for (int y = 0; y < 7; y++){\r\n if (tileBoard[x][y] == null){\r\n tileBoard[x][y] = tileBag.remove(r.nextInt(tileBag.size()));\r\n }\r\n }\r\n }\r\n extraTile = tileBag.remove(0);\r\n }", "public Building (Pixmap image,\n Location3D center,\n Dimension size,\n Sound sound,\n int playerID,\n int health,\n double buildTime) {\n super(image, center, size, sound, playerID, MAXHEALTH, buildTime);\n myRallyPoint = new Location3D(getWorldLocation().getX(), getWorldLocation().getY() + 150, 0);\n \n }", "void loadCheckerBoard(int tileSize);", "private void constructionPhase() {\n for( final Player p : playerList ) {\n this.player = p;\n player.flipAllUp();\n ClickObserver.getInstance().setActivePlayer(this.player);\n pause();\n\n ClickObserver.getInstance().setTerrainFlag(\"\");\n ClickObserver.getInstance().setClickedTerrain(player.getHexesOwned().get(0));\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n Board.applyCovers();\n GUI.getRackGui().setOwner(player);\n GUI.getHelpText().setText(\"Construction Phase: \" + p.getName() \n + \", select one of your tiles to build a new tower, or upgrade an existing one.\");\n ClickObserver.getInstance().whenTerrainClicked();\n }\n });\n\t\t\ttry { Thread.sleep(500); } catch( Exception e ){ return; }\n ClickObserver.getInstance().setTerrainFlag(\"Construction: ConstructFort\");\n ArrayList<Terrain> ownedHexes = player.getHexesOwned();\n for (final Terrain t : ownedHexes) {\n if (t.getOwner().getName().equals(player.getName())) {\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n t.uncover();\n }\n });\n }\n }\n while( isPaused ){\n try { Thread.sleep(100); } catch( Exception e ){ return; }\n }\n player.flipAllDown();\n }\n ClickObserver.getInstance().setTerrainFlag(\"\");\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n Board.removeCovers();\n }\n });\n }", "public Tile(int x, int y, char type) {\n\t\tthis.tileX = x*Tile.TILE_SIDE;\n\t\tthis.tileY = LevelScreen.INFO_BAR_HEIGHT+y*Tile.TILE_SIDE;\n\t\tthis.type = type;\n\t\tthis.hasDefenseObject = false;\n\t\tthis.currentConstruct = null;\n\n\t\tif (type == TOWER_TERRAIN) {\n\t\t\ttileImage = Assets.tileEmptyTower;\n\t\t} else if (type == PATH) {\n\t\t\ttileImage = Assets.tilePath;\n\t\t} else if (type == MONSTER_GOAL) {\n\t\t\ttileImage = Assets.tileGoal;\n\t\t} else if (type == MONSTER_ENTRANCE) {\n\t\t\ttileImage = Assets.tileEntrance;\n\t\t}\n\t}", "@Override\n\tprotected void updateTiles() {\n\n\t\tfinal byte tileId = getPlanetType().mainTileId;\n\n\t\tfor (int i = 0; i < tiles.length; i++) {\n\t\t\t// if (random.NextDouble() > 0.95f)\n\t\t\t// tiles[i] = 0;\n\t\t\t// else\n\t\t\ttiles[i] = tileId;\n\t\t}\n\t}", "public Puzzle exPuzzle() {\n List<Tile> tiles = new ArrayList<>(9);\n tiles.add(new Tile(new Pic(Pattern.A, Half.x), new Pic(Pattern.A, Half.x), new Pic(Pattern.B, Half.y), new Pic(Pattern.C, Half.x)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.y), new Pic(Pattern.D, Half.x), new Pic(Pattern.C, Half.y), new Pic(Pattern.C, Half.x)));\n tiles.add(new Tile(new Pic(Pattern.A, Half.x), new Pic(Pattern.A, Half.y), new Pic(Pattern.D, Half.x), new Pic(Pattern.A, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.C, Half.x), new Pic(Pattern.C, Half.x), new Pic(Pattern.B, Half.x), new Pic(Pattern.C, Half.x)));\n tiles.add(new Tile(new Pic(Pattern.A, Half.x), new Pic(Pattern.A, Half.y), new Pic(Pattern.B, Half.y), new Pic(Pattern.B, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.x), new Pic(Pattern.B, Half.x), new Pic(Pattern.C, Half.y), new Pic(Pattern.A, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.x), new Pic(Pattern.B, Half.x), new Pic(Pattern.A, Half.x), new Pic(Pattern.D, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.x), new Pic(Pattern.B, Half.y), new Pic(Pattern.B, Half.x), new Pic(Pattern.A, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.y), new Pic(Pattern.A, Half.x), new Pic(Pattern.D, Half.y), new Pic(Pattern.C, Half.y)));\n return new Puzzle(tiles);\n }", "public static void makeGrid (Species map[][], int numSheepStart, int numWolfStart, int numPlantStart, int sheepHealth, int plantHealth, int wolfHealth, int plantSpawnRate) {\n \n // Declare coordinates to randomly spawn species\n int y = 0;\n int x = 0;\n \n // Initialise plants\n Plant plant;\n \n // Spawn plants\n for (int i = 0; i < numPlantStart; i++) {\n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) { \n \n // Choose a random plant (50% chance healthy, 25% poisonous or energizing)\n int plantChoice = (int) Math.ceil(Math.random() * 100);\n \n // Create the new plants\n if ((plantChoice <= 100) && (plantChoice >= 50)) {\n plant = new HealthyPlant(plantHealth, x, y, plantSpawnRate);\n } else if ((plantChoice < 50) && (plantChoice >= 25)) {\n plant = new EnergizingPlant(plantHealth, x, y, plantSpawnRate);\n } else {\n plant = new PoisonousPlant(plantHealth, x, y, plantSpawnRate);\n }\n \n // Set plant coordinates\n plant.setX(x);\n plant.setY(y);\n map[y][x] = plant;\n \n // No space\n } else { \n i -= 1;\n }\n \n }\n \n // Spawn sheep\n for (int i = 0; i < numSheepStart; i++) { \n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) {\n \n // Create new sheep\n Sheep sheep = new Sheep(sheepHealth, x, y, 5); \n \n // Set sheep coordinates\n sheep.setX(x);\n sheep.setY(y);\n map[y][x] = sheep;\n \n // No space\n } else { \n i -= 1; \n }\n \n }\n \n // Spawn wolves\n for (int i = 0; i < numWolfStart; i++) { \n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) { \n \n // Create new wolf\n Wolf wolf = new Wolf(wolfHealth, x, y, 5); \n \n // Set wolf coordinates\n wolf.setX(x);\n wolf.setY(y);\n map[y][x] = wolf; \n \n // No space\n } else { \n i -= 1; \n }\n }\n \n }", "public void initGame() {\r\n Log.d(\"UT3\", \"init game\");\r\n mEntireBoard = new Tile(this);\r\n // Create all the tiles\r\n for (int large = 0; large < 9; large++) {\r\n mLargeTiles[large] = new Tile(this);\r\n for (int small = 0; small < 9; small++) {\r\n mSmallTiles[large][small] = new Tile(this);\r\n }\r\n mLargeTiles[large].setSubTiles(mSmallTiles[large]);\r\n }\r\n mEntireBoard.setSubTiles(mLargeTiles);\r\n\r\n // If the player moves first, set which spots are available\r\n mLastSmall = -1;\r\n mLastLarge = -1;\r\n setAvailableFromLastMove(mLastSmall);\r\n }", "void doSelectSurface() {\r\n\t\tint idx = surfaceTable.getSelectedRow();\r\n\t\tif (idx >= 0) {\r\n\t\t\tidx = surfaceTable.convertRowIndexToModel(idx);\r\n\t\t\tTileEntry tileEntry = surfaceTableModel.rows.get(idx);\r\n\t\t\tpreview.setImage(tileEntry.previewTile);\r\n\t\t\trenderer.placementRectangle.width = tileEntry.tile.width;\r\n\t\t\trenderer.placementRectangle.height = tileEntry.tile.height;\r\n\t\t\tbuildingTable.getSelectionModel().clearSelection();\r\n\t\t\t\r\n\t\t\tcurrentBaseTile = new SurfaceFeature(); \r\n\t\t\tcurrentBaseTile.tile = tileEntry.tile;\r\n\t\t\tcurrentBaseTile.id = tileEntry.id;\r\n\t\t\tcurrentBaseTile.type = tileEntry.surface;\r\n\t\t\t\r\n\t\t\tcurrentBuildingType = null;\r\n\t\t}\r\n\t}", "public void processMove(MahjongSolitaireMove move)\n {\n // REMOVE THE MOVE TILES FROM THE GRID\n ArrayList<MahjongSolitaireTile> stack1 = tileGrid[move.col1][move.row1];\n ArrayList<MahjongSolitaireTile> stack2 = tileGrid[move.col2][move.row2]; \n MahjongSolitaireTile tile1 = stack1.remove(stack1.size()-1);\n MahjongSolitaireTile tile2 = stack2.remove(stack2.size()-1);\n \n // MAKE SURE BOTH ARE UNSELECTED\n tile1.setState(VISIBLE_STATE);\n tile2.setState(VISIBLE_STATE);\n \n // SEND THEM TO THE STACK\n tile1.setTarget(TILE_STACK_X + TILE_STACK_OFFSET_X, TILE_STACK_Y + TILE_STACK_OFFSET_Y);\n tile1.startMovingToTarget(MAX_TILE_VELOCITY);\n tile2.setTarget(TILE_STACK_X + TILE_STACK_2_OFFSET_X, TILE_STACK_Y + TILE_STACK_OFFSET_Y);\n tile2.startMovingToTarget(MAX_TILE_VELOCITY);\n stackTiles.add(tile1);\n stackTiles.add(tile2); \n \n // MAKE SURE THEY MOVE\n movingTiles.add(tile1);\n movingTiles.add(tile2);\n \n // AND MAKE SURE NEW TILES CAN BE SELECTED\n selectedTile = null;\n \n // PLAY THE AUDIO CUE\n miniGame.getAudio().play(MahjongSolitairePropertyType.MATCH_AUDIO_CUE.toString(), false);\n \n // NOW CHECK TO SEE IF THE GAME HAS EITHER BEEN WON OR LOST\n \n // HAS THE PLAYER WON?\n if (stackTiles.size() == NUM_TILES)\n {\n // YUP UPDATE EVERYTHING ACCORDINGLY\n endGameAsWin();\n }\n else\n {\n // SEE IF THERE ARE ANY MOVES LEFT\n MahjongSolitaireMove possibleMove = this.findMove();\n if (possibleMove == null)\n {\n // NOPE, WITH NO MOVES LEFT BUT TILES LEFT ON\n // THE GRID, THE PLAYER HAS LOST\n endGameAsLoss();\n }\n }\n }", "public FloorTile getGoalTile() {\r\n return goalTile;\r\n }", "private void addItems() {\n int random3 = 0;\n for (int i = 0; i < MAP_LENGTH; i++) {\n for (int j = 0; j < MAP_LENGTH; j++) {\n random3 = (int)(Math.round(Math.random()*9));\n if (tileMap[i][j].getTerrain() instanceof Grass) {\n if (adjacentCity(i, j) && tileMap[i][j].getCity() == null) { //Only have an item if possibly within city borders\n if (random3 == 0) {\n tileMap[i][j].setResource(new Fruit(i,j)); //Rep Fruit\n } else if (random3 == 1) {\n tileMap[i][j].setResource(new Animal(i,j)); //Rep Animal\n } else if (random3 == 2) {\n tileMap[i][j].setResource(new Forest(i,j)); //Rep Trees (forest)\n } else if (random3 == 3) {\n tileMap[i][j].setResource(new Crop(i,j)); //Rep Crop\n }\n }\n } else {\n if (adjacentCity(i, j)) {\n if (random3 < 2) {\n tileMap[i][j].setResource(new Fish(i, j)); //Rep fish\n } else if (random3 == 4) {\n if (Math.random() < 0.5) {\n tileMap[i][j].setResource(new Whale(i, j)); //Rep whale\n }\n }\n }\n }\n }\n }\n }", "private void prepare()\n {\n treespawn treespawn2 = new treespawn();\n addObject(treespawn2,30,486);\n\n hantu hantu = new hantu();\n addObject(hantu,779,359);\n \n hantu hantu2 = new hantu();\n addObject(hantu2,88,84);\n \n bergerak bergerak2 = new bergerak();\n addObject(bergerak2,745,423);\n\n bergerak bergerak3 = new bergerak();\n addObject(bergerak3,266,566);\n \n bergerak bergerak4 = new bergerak();\n addObject(bergerak4,564,566);\n\n hantu hantu3 = new hantu();\n addObject(hantu3,671,490);\n \n hantu hantu4 = new hantu();\n addObject(hantu4,371,499);\n\n bergerak bergerak = new bergerak();\n addObject(bergerak,150,148);\n\n lantai lantai = new lantai();\n addObject(lantai,561,577); \n addObject(lantai,419,579); \n\n player player = new player();\n addObject(player,882,498);\n\n lantai3 lantai3 = new lantai3();\n addObject(lantai3,120,148);\n\n flyinglantai flyinglantai = new flyinglantai();\n addObject(flyinglantai,292,148);\n\n treespawn treespawn = new treespawn();\n addObject(treespawn,30,291);\n\n lantai4 lantai4 = new lantai4();\n addObject(lantai4,235,536);\n \n lantai4 lantai42 = new lantai4();\n addObject(lantai42,275,508);\n \n lantai4 lantai43 = new lantai4();\n addObject(lantai43,323,480);\n \n lantai4 lantai44 = new lantai4();\n addObject(lantai44,369,454);\n\n lantai2 lantai2 = new lantai2();\n addObject(lantai2,680,424);\n\n \n lantai3 lantai32 = new lantai3();\n addObject(lantai32,938,146);\n \n lantai4 lantai45 = new lantai4();\n addObject(lantai45,21,370);\n\n lantai4 lantai46 = new lantai4();\n addObject(lantai46,210,180);\n \n lantai4 lantai47 = new lantai4();\n addObject(lantai47,257,201);\n \n lantai4 lantai48 = new lantai4();\n addObject(lantai48,302,229);\n \n lantai4 lantai49 = new lantai4();\n addObject(lantai49,354,255);\n \n lantai4 lantai410 = new lantai4();\n addObject(lantai410,402,281);\n \n lantai4 lantai411 = new lantai4();\n addObject(lantai411,444,302);\n \n lantai4 lantai412 = new lantai4();\n addObject(lantai412,491,334);\n \n lantai4 lantai413 = new lantai4();\n addObject(lantai413,546,364);\n \n lantai4 lantai414 = new lantai4();\n addObject(lantai414,582,397);\n \n doorlv3 doorlv3 = new doorlv3();\n addObject(doorlv3,910,45);\n\n \n }", "public MapTile() {}" ]
[ "0.6765572", "0.66891277", "0.6644103", "0.63899857", "0.63457143", "0.6345636", "0.62813115", "0.62439805", "0.6187185", "0.61361855", "0.59325075", "0.59190536", "0.59125733", "0.5905979", "0.58941627", "0.5860329", "0.58505505", "0.58362174", "0.57843953", "0.5774824", "0.5769791", "0.57629544", "0.5749908", "0.56943595", "0.5693896", "0.56901", "0.5682", "0.56677836", "0.5660366", "0.564911", "0.56297517", "0.5621914", "0.5620807", "0.56204396", "0.56101125", "0.55953926", "0.558353", "0.557124", "0.55589056", "0.5553596", "0.55440605", "0.55427086", "0.554085", "0.55259454", "0.5522609", "0.5519189", "0.55175686", "0.55151", "0.5503515", "0.55020213", "0.5488128", "0.54837596", "0.5482648", "0.54699975", "0.5468834", "0.5449245", "0.54401845", "0.5438052", "0.54373586", "0.5434907", "0.54285806", "0.5410191", "0.54080576", "0.5404493", "0.53985393", "0.5398345", "0.53975326", "0.53934616", "0.5392178", "0.53868496", "0.53810984", "0.5364751", "0.5360662", "0.5354495", "0.5351892", "0.53488284", "0.5344878", "0.53396916", "0.5339556", "0.53306687", "0.5329592", "0.5329529", "0.53248644", "0.53238356", "0.53155327", "0.5314028", "0.530866", "0.52937055", "0.52916634", "0.52879226", "0.52844495", "0.5278592", "0.527316", "0.527223", "0.52694595", "0.5268246", "0.52670574", "0.5265144", "0.5263708", "0.52589405" ]
0.5856597
16
Shows tiles available to enter by the builder during the movement phase
public void showAvailableTiles(Builder selected, showTilesMode mode) { //case 1: we remove tiles that were available in a previous phase if (mode == showTilesMode.hideTiles) hideAllAdjacentTiles(selected); else // mode == showTilesMode.showTiles, case 2: we are checking every single adjacent tile around the builder showAllAdjacentTiles(selected); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tiles()\n{\n if(m.getActiveManager() != 0)\n {\n m.hideButtonsOfManager(1);\n m.hideButtonsOfManager(2);\n m.showButtonsOfManager(0);\n m.activateManager(0);\n m.getTileManager().getActiveTile().setShowHover(true);\n }\n}", "public void displayTiles() {\n System.out.println(\"\\n Tiles of this game : \");\n String phrase = \"No army deployed on this tile !\";\n for (Tile tile : this.board.getAllTiles()) {\n if (!tile.isEmpty()) {\n System.out.print(\" { Type tile : \" + tile.getCharacter() + \", Position Y : \" + tile.getPosX() +\", Position X : \" + tile.getPosY() + \", State : Occuped, Player : \" + tile.getPlayer().getName() + \", Army : \" + tile.getPersonnage().getName() + \", Army size : \" +((Army) tile.getPersonnage()).getArmySize() + \"}\\n\");\n } else {\n System.out.print(\" { Type tile : \" + tile.getCharacter() +\", Position Y : \" + tile.getPosX() +\", Position X : \" + tile.getPosY()+ \", State : \"+ phrase + \" }\\n\");\n }\n }\n }", "@Override\n\tpublic void show () {\n overWorld = new Sprite(new TextureRegion(new Texture(Gdx.files.internal(\"Screens/overworldscreen.png\"))));\n overWorld.setPosition(0, 0);\n batch = new SpriteBatch();\n batch.getProjectionMatrix().setToOrtho2D(0, 0, 320, 340);\n\n // Creates the indicator and sets it to the position of the first grid item.\n indicator = new MapIndicator(screen.miscAtlases.get(2));\n // Creates the icon of Daur that indicates his position.\n icon = new DaurIcon(screen.miscAtlases.get(2));\n // Sets the mask position to zero, as this screen does not lie on the coordinate plane of any tiled map.\n screen.mask.setPosition(0, 0);\n screen.mask.setSize(320, 340);\n Gdx.input.setInputProcessor(inputProcessor);\n\n // Creates all relevant text.\n createText();\n // Sets numX and numY to the position of Daur on the map.\n numX = storage.cellX;\n numY = storage.cellY;\n indicator.setPosition(numX * 20, numY * 20 + 19);\n // Sets the icon to the center of this cell.\n icon.setPosition(numX * 20 + 10 - icon.getWidth() / 2, numY * 20 + 29 - icon.getHeight() / 2);\n // Creates all the gray squares necessary.\n createGraySquares();\n }", "public void fillTable() {\n\t\tif (scroll.getWidth() == 0) {\n\t\t\treturn;\n\t\t}\n\t\tboolean showedNew = false;\n\t\tArrayList<Placeable> currentView = new ArrayList<Placeable>();\n\t\tif (viewing == ViewingMode.MATERIAL) {\n\t\t\tif (loadedMats == null)\n\t\t\t\tloadedMats = repo.getAllMats();\n\t\t\tfor (NamedMaterial m: loadedMats) {\n\t\t\t\tcurrentView.add(m);\n\t\t\t}\n\t\t}\n\t\telse if (viewing == ViewingMode.PIECE){\n\t\t\tif (loadedPieces == null)\n\t\t\t\tloadedPieces = repo.getAllPieces();\n\t\t\tfor (Piece m: loadedPieces) {\n\t\t\t\tcurrentView.add(m);\n\t\t\t}\n\t\t\tshowedNew = true;\n\t\t}\n\t\t\n\t\ttiles.clearChildren();\n\t\tfloat cellWidth = 64.0f;\n\t\tint numAcross = (int)(scroll.getWidth() / cellWidth);\n\t\tif (numAcross <= 0) {\n\t\t\tnumAcross = 1;\n\t\t}\n\t\tint count = 0;\n\t\tActor tile;\n\t\twhile (count < currentView.size()) {\n\t\t\tfor (int y = 0; y < numAcross; y++) {\n\t\t\t\tif (!showedNew) {\n\t\t\t\t\ttile = new Label(\"New\", TextureOrganizer.getSkin());\n\t\t\t\t\t((Label)tile).setAlignment(Align.center);\n\t\t\t\t\ttile.addListener(new ClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t public void clicked(InputEvent event, float x, float y) {\n\t\t\t\t\t\t\tmakeNew();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tshowedNew = true;\n\t\t\t\t}\n\t\t\t\telse if (count >= currentView.size()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttile = new ColoredRectActor(currentView.get(count++));\n\t\t\t\t\ttile.addListener(new TileListener((ColoredRectActor)tile));\n\t\t\t\t}\n\t\t\t\ttiles.add(tile).width(cellWidth).height(cellWidth).fill();\n\t\t\t}\n\t\t\tif (count < currentView.size())\n\t\t\t\ttiles.row();\n\t\t}\n\t}", "private void computeMovableTilesToDisplayToPlayer() {\n \tfor (Entity enemyEntity : allCreaturesOfCurrentRoom) {\n \t\tAIComponent aiComponent = Mappers.aiComponent.get(enemyEntity);\n \t\tif (aiComponent.getSubSystem() != null) {\n \t\t\tboolean handledInSubSystem = aiComponent.getSubSystem().computeMovableTilesToDisplayToPlayer(this, enemyEntity, room);\n \t\t\tif (handledInSubSystem) continue;\n \t\t}\n \t\t\n \tMoveComponent moveCompo = Mappers.moveComponent.get(enemyEntity);\n \tAttackComponent attackCompo = Mappers.attackComponent.get(enemyEntity);\n \t\n \t\t//clear the movable tile\n \t\tmoveCompo.clearMovableTiles();\n \t\tif (attackCompo != null) attackCompo.clearAttackableTiles();\n \t\t\n \t\tmoveCompo.setMoveRemaining(moveCompo.getMoveSpeed());\n \t\t\n \t//Build the movable tiles list\n \t\ttileSearchService.buildMoveTilesSet(enemyEntity, room);\n \t\tif (attackCompo != null) attackTileSearchService.buildAttackTilesSet(enemyEntity, room, false, true);\n \t\tmoveCompo.hideMovableTiles();\n \t\tif (attackCompo != null) attackCompo.hideAttackableTiles();\n \t}\n }", "@Override\n protected void generateTiles() {\n }", "@Override\n\tprotected void generateTiles() {\n\t}", "private void revealTiles() {\n\n for (int i = 0; i < minefield.getRows(); i++) {\n for (int j = 0; j < minefield.getCols(); j++) {\n if (minefield.getMinefield()[i][j].isRevealed()\n && !minefield.getMinefield()[i][j].isMined()) {\n tileLabel[i][j].setText(\"<html><b>\" + minefield.getMinefield()[i][j].getMinedNeighbours() + \"</html></b>\");\n tile[i][j].setBackground(new Color(208, 237, 243));\n switch (tileLabel[i][j].getText()) {\n case \"<html><b>0</html></b>\":\n tileLabel[i][j].setText(\"\");\n break;\n case \"<html><b>1</html></b>\":\n tileLabel[i][j].setForeground(Color.blue);\n break;\n case \"<html><b>2</html></b>\":\n tileLabel[i][j].setForeground(new Color(0, 100, 0));\n break;\n case \"<html><b>3</html></b>\":\n tileLabel[i][j].setForeground(Color.red);\n break;\n case \"<html><b>4</html></b>\":\n tileLabel[i][j].setForeground(new Color(75, 0, 130));\n break;\n case \"<html><b>5</html></b>\":\n tileLabel[i][j].setForeground(new Color(130, 0, 0));\n break;\n case \"<html><b>6</html></b>\":\n tileLabel[i][j].setForeground(new Color(0, 153, 153));\n break;\n case \"<html><b>7</html></b>\":\n tileLabel[i][j].setForeground(Color.black);\n break;\n case \"<html><b>8</html></b>\":\n tileLabel[i][j].setForeground(Color.darkGray);\n break;\n }\n }\n }\n }\n frame.repaint();\n }", "private void putTilesOnBoard() {\n boolean isWhite = true;\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n Tile t = new Tile(isWhite, new Position(x, y));\n t.setOnMouseClicked(e -> {\n if (t.piece != null && this.activeTile == null && this.whitePlayer == t.piece.isWhite()) {\n this.activeTile = t;\n ArrayList<Position> moves = t.piece.getLegalMoves();\n this.highlightAvailableMoves(moves, t.isWhite);\n } else if (t.isHighlighted.getValue() && this.activeTile.piece != null ) {\n movePieces(t);\n } else {\n this.activeTile = null;\n this.clearHighlightedTiles();\n }\n this.updatePieceBoards();\n });\n t.isHighlighted.addListener((o, b, b1) -> {\n if (o.getValue() == true) {\n t.startHighlight();\n } else {\n t.clearHighlight();\n }\n });\n this.board[x][y] = t;\n this.add(this.board[x][y], x, y);\n isWhite = !isWhite;\n }\n isWhite = !isWhite;\n }\n\n }", "public void drawTile() {\n\n }", "public void setTiles() {\n\t\tTileStack names = new TileStack();\n\t\tfor(int x=0; x < theBoard.getCols(); x++) {\n\t\t\tfor(int y=0; y < theBoard.getRows(); y++) {\n\t\t\t\tp = new Point(x,y);\n\t\t\t\tif(p.equals(new Point(0,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(1,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(4,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,1)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,1)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,4)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,4)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(1,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(4,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse \n\t\t\t\t\ttheBoard.setTile(p, names.pop());\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void render() {\n\t\tupdate();\n\n\t\tGdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT); // clear the screen\n\t\tbatch.begin();\n\n\t\tTextureRegion tmpRegion = null;\n\t\t\n\t\t// Draw the terrain!\n\t\tfor (int x = 0; x < 30; ++x) {\n\t\t\tfor (int y = 0; y < 20; ++y) {\n\t\t\t\ttmpRegion = new TextureRegion( tileset32Texture, (tiles[x][y] - 4) * 32, 0, 32, 32);\n\t\t\t\t//pause_button_region = new TextureRegion( spriteSheet, tiles[x][y] - 4, 0, 32, 32);\n\t\t\t\t// switch to 32x32 sprite\n\t\t\t\t//batch.draw(spriteSheet, x * 16, y * 16, tiles[x][y] * 16, 0, 16, 16);\n\t\t\t\tbatch.draw(tmpRegion, x * SQUARE_WIDTH, y * SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH);\n\n\t\t\t\t// Temporary, copy pasta\n\t\t\t\t/*\n\t\t\t\t * switch( movementDirs[x][y] ) { case 'N': batch.draw(\n\t\t\t\t * spriteSheet, x*16, y*16, 11*16, 0, 16, 16 ); break; case 'E':\n\t\t\t\t * batch.draw( spriteSheet, x*16, y*16, 12*16, 0, 16, 16 );\n\t\t\t\t * break; case 'W': batch.draw( spriteSheet, x*16, y*16, 13*16,\n\t\t\t\t * 0, 16, 16 ); break; case 'S': batch.draw( spriteSheet, x*16,\n\t\t\t\t * y*16, 14*16, 0, 16, 16 ); break; }\n\t\t\t\t */\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\t// Draw the towers\n\t\tfor( int i = 0; i < towers.size(); ++i )\n\t\t{\n\t\t\tbatch.draw(towers.get(i).m_type.getTextureRegion(), towers.get(i).m_x * SQUARE_WIDTH, (towers.get(i).m_y) * SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH);\n\t\t\t//drawSprite(towers.get( i ).getIconNum(), towers.get(i).m_x, towers.get(i).m_y);\n\t\t\tif (towers.get(i).selected) {\n\t\t\t\t//batch.draw(spriteSheet, towers.get(i).m_x * SQUARE_WIDTH, towers.get(i).m_y * SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH, towers.get(i).m_type.getSpriteLocX(), towers.get(i).m_type.getSpriteLocY(), 16, 16, false, true);\n\t\t\t\t//drawSprite(towers.get( i ).getIconNum(), towers.get(i).m_x, towers.get(i).m_y);\n\t\t\t\tbatch.draw(selectionImg, towers.get(i).m_x * SQUARE_WIDTH, towers.get(i).m_y * SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH, 0, 0, 32, 32, false, true);\n\t\t\t}\n\n\t\t\t\n\t\t}\n\n\t\t// Draw the creeps!\n\t\tfor( int i = 0; i < creeps.size(); ++i)\n\t\t{\n\n\t\t\tif( creeps.get(i).active ) {\n\t\t\t\tTextureRegion toUse = null;\n\t\t\t\t//TextureRegion toUse = new TextureRegion(corporateCreepTexture);\n\t\t\t\tif (creeps.get(i).m_type == CreepType.GLOBAL_CORP) {\n\t\t\t\t\ttoUse = new TextureRegion(corporateCreepTexture);\n\t\t\t\t} else if (creeps.get(i).m_type == CreepType.SEARCHER) {\n\t\t\t\t\ttoUse = new TextureRegion(defconZeplinTexture);\n\t\t\t\t} else if (creeps.get(i).m_type == CreepType.GOVERNMENT) {\n\t\t\t\t\ttoUse = new TextureRegion(govHeliTexture);\n\t\t\t\t} else {\n\t\t\t\t\t// TODO: Change this to difference art.\n\t\t\t\t\ttoUse = new TextureRegion(corporateCreepTexture);\n\t\t\t\t}\n\t\t\t\tbatch.draw(toUse, creeps.get(i).x * SQUARE_WIDTH + creeps.get(i).xOffset, creeps.get(i).y * SQUARE_WIDTH + creeps.get(i).yOffset, SQUARE_WIDTH, SQUARE_WIDTH);\n\t\t\t\t//batch.draw(toUse, creeps.get(i).x * SQUARE_WIDTH + creeps.get(i).xOffset, creeps.get(i).y * SQUARE_WIDTH + creeps.get(i).yOffset, SQUARE_WIDTH, SQUARE_WIDTH, 0, 32, 32, 32, false, false);\n\t\t\t}\n\t\t}\n\n\t\t// Draw the projectiles!\n\t\tfor( int i = 0; i < maxProjectiles; ++i )\n\t\t{\n\t\t\tif( projectiles[i].active )\n\t\t\t{\n//\t\t\t\tbatch.draw( spriteSheet, projectiles[i].my_coords.x*SQUARE_WIDTH, projectiles[i].my_coords.y*SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH, 0, 16*3, 16, 16, false, false);\n\t\t\t\tif (projectiles[i].towertype == \"judge\"){\n\t\t\t\t\tbatch.draw( spriteSheet, projectiles[i].my_coords.x*SQUARE_WIDTH, projectiles[i].my_coords.y*SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH, 0, 16*3, 16, 16, false, false);\n\t\t\t\t} else if (projectiles[i].towertype == \"teacher\"){\n\t\t\t\t\tbatch.draw( spriteSheet, projectiles[i].my_coords.x*SQUARE_WIDTH, projectiles[i].my_coords.y*SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH, 16, 16*3, 16, 16, false, false);\n\t\t\t\t} else if (projectiles[i].towertype == \"lawyer\"){\n\t\t\t\t\tbatch.draw( spriteSheet, projectiles[i].my_coords.x*SQUARE_WIDTH, projectiles[i].my_coords.y*SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH, 32, 16*3, 16, 16, false, false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Draw the UI!\n\n\t\t// Background\n\n\t\tbatch.draw(blackBox, 0, 0, uiPanelWidth , screenHeight);\n\n\t\t// Draw the menu bar\n\t\tbatch.draw(menuTexture,-4,-190);\n\t\t//batch.draw(menu_region, 0, -100);\n\t\t\n\t\t// Draw the free towers.\n\t\t\n\t\tfor (int i = 1; i <= 3; i++) \n\t\t{\n\t\t\tif (free_towers.get(i-1) != null) \n\t\t\t{\n\t\t\t\t//tower_region.setRegion( free_towers.get(i-1).getSpriteLocX(), free_towers.get(i-1).getSpriteLocY(), 16, 16 );\n\t\t\t\tbatch.draw(free_towers.get(i-1).getTextureRegion(), 29, (screenHeight - 60 * i) + 5, SQUARE_WIDTH, SQUARE_WIDTH);\n\t\t\t\t//batch.draw(tower_region, 33, screenHeight - 57 * i, 16, 16);\n\t\t\t\t\n\t\t\t\tString towerPrice = \"$\" + free_towers.get(i-1).getPrice();\n\t\t\t\tTextBounds priceBounds = mFont.getBounds(towerPrice);\n\t\t\t\tColor oldColor = mFont.getColor();\n\t\t\t\tmFont.setColor(Color.GREEN);\n\t\t\t\tmFont.drawWrapped(batch, towerPrice, 10, 33 + screenHeight - 58*i + priceBounds.height, priceBounds.width);\n\t\t\t\tmFont.setColor(oldColor);\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\t// Keep the GC in its cage as long as possible. \n\t\tif( oldMoney != money || oldLife != life )\n\t\t{\n\t\t\tuiString = \"+: \" + life + '\\n' + \"$: \" + money;\n\t\t\tuiBounds = mFont.getMultiLineBounds(uiString);\n\t\t}\n\t\toldMoney = money;\n\t\toldLife = life;\n\t\t\t\t\n\t\t// Draw droid pause button if on an android device.\n\t\tif (runningDrd) {\n\t\t\t\n\t\t\tpause_button_region.setRegion(7*17, 23, 2, 2);\n\t\t\tbatch.draw(pause_button_region, DRD_PAUSE_RECT.x, DRD_PAUSE_RECT.y, DRD_PAUSE_RECT.width, DRD_PAUSE_RECT.height);\n\t\t\t\n\t\t\tString pause_button_string = \"Pause\";\n\t\t\tTextBounds pauseButtonBounds = mFont.getBounds(pause_button_string);\n\t\t\tmFont.drawWrapped(batch, pause_button_string,\n\t\t\t\t\t\t\t(32 - (pauseButtonBounds.width / 2)),\n\t\t\t\t\t\t\tDRD_PAUSE_RECT.y + pauseButtonBounds.height + 4, pauseButtonBounds.width);\n\t\t}\n\t\t\n\t\t// Draw the restart button if paused or game over.\n\t\tif (life <= 0 || isPaused) {\n\t\t\t\n\t\t\trestart_button_region.setRegion(7*17, 23, 2, 2);\n\t\t\tbatch.draw(restart_button_region, RESTART_RECT.x, RESTART_RECT.y, RESTART_RECT.width, RESTART_RECT.height);\n\t\t\t\n\t\t\tString restart_button_string = \"Restart\";\n\t\t\tTextBounds restartButtonBounds = mFont.getBounds(restart_button_string);\n\t\t\tmFont.drawWrapped(batch, restart_button_string,\n\t\t\t\t\t\t\t(32 - (restartButtonBounds.width / 2)),\n\t\t\t\t\t\t\tRESTART_RECT.y + restartButtonBounds.height + 4, restartButtonBounds.width);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t// Draw the start button if we are in build mode.\n\t\tif (buildMode) {\n\t\t\t\n\t\t\tstart_button_region.setRegion(7*17, 23, 2, 2);\n\t\t\tbatch.draw(start_button_region, START_RECT.x, START_RECT.y, START_RECT.width, START_RECT.height);\n\t\t\t\n\t\t\tString start_button_string = \"Start\";\n\t\t\tTextBounds startButtonBounds = mFont.getBounds(start_button_string);\n\t\t\tmFont.drawWrapped(batch, start_button_string,\n\t\t\t\t\t\t\t(32 - (startButtonBounds.width / 2)),\n\t\t\t\t\t\t\tSTART_RECT.y + startButtonBounds.height + 4, startButtonBounds.width);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t// Draw the sell button if we are not paused or in build mode and a tower is selected.\n\t\tif (!isPaused && !buildMode && selected != null) {\n\t\t\t\n\t\t\tsell_button_region.setRegion(7*17, 23, 2, 2);\n\t\t\tbatch.draw(sell_button_region, SELL_RECT.x, SELL_RECT.y, SELL_RECT.width, SELL_RECT.height);\n\t\t\t\n\t\t\tString sell_button_string = \"Sell\";\n\t\t\tTextBounds sellButtonBounds = mFont.getBounds(sell_button_string);\n\t\t\tmFont.drawWrapped(batch, sell_button_string,\n\t\t\t\t\t\t\t(32 - (sellButtonBounds.width / 2)),\n\t\t\t\t\t\t\tSTART_RECT.y + sellButtonBounds.height + 4, sellButtonBounds.width);\n\t\t}\n\t\t\n\t\t// Text\n\t\tString uiString = \"+ \" + life + '\\n' + \"$ \" + money;\n\t\tTextBounds uiBounds = mFont.getMultiLineBounds(uiString);\n\t\tColor oldColor = mFont.getColor();\n\t\tmFont.setColor(Color.RED);\n\t\tmFont.drawWrapped(batch, uiString, 3, uiBounds.height + 3, uiBounds.width);\n\t\tmFont.setColor(oldColor);\n\n\t\t// DEBUG TEXT\n\t\t//mFont.drawWrapped(batch, debugtext, 60, uiBounds.height + 3, 1000);\t\t\n\n\t\t// Draw the cursorTexture\n\t\tif (cursorState != null && cursorTexture != null) {\n\t\t\tbatch.draw(cursorTexture, cursorLocX - 8, screenHeight - cursorLocY - 8);\n\t\t}\n\t\t\n\t\t// Render Paused String if needed in bottom right corner.\n\t\tString center_string = null;\n\t\tif (isPaused) {\n\t\t\tcenter_string = \"PAUSED\";\n\t\t} else if (life <= 0) {\n\t\t\tcenter_string = \"GAME OVER\";\n\t\t}\n\t\t\n\t\tif (center_string != null) {\n\t\t\tTextBounds pausedBounds = mFont.getMultiLineBounds(center_string);\n\t\t\tColor oldColor2 = mFont.getColor();\n\t\t\tmFont.setColor(Color.RED);\n\t\t\tmFont.drawWrapped(batch, center_string,\n\t\t\t\t\t(screenWidth / 2) - (pausedBounds.width / 2),\n\t\t\t\t\t(screenHeight / 2) - (pausedBounds.height / 2), pausedBounds.width );\n\t\t\tmFont.setColor(oldColor2);\n\t\t}\n\t\t\n\t\tbatch.end();\n\t}", "public void display() {\n updateTileButtons();\n gridView.setAdapter(new CustomAdapter(tileButtons, columnWidth, columnHeight));\n }", "@Override\n\tpublic void show() {\n\t\tcontainer = new Table();\n//\t\tcontainer.background(skin.getDrawable(\"darkenWorld\"));\n\t\tcontainer.setSize(width, height);\n\t\t\n\t\tdarken = new Image(skin.getDrawable(\"darkenWorld\"));\n\t\tdarken.setSize(width, height);\n\t\t\n\t\ttimer.start();\n\t\t\n\t\ttrainingBag = new TrainingBag(width, height);\n\t\t\n\t\tBitmapFont font = new BitmapFont(Gdx.files.internal(\"fontSmall-export.fnt\"),\n\t\t Gdx.files.internal(\"fontSmall-export.png\"), false);\n\t\t\n\t\t\n\t\tLabelStyle labelStyle = new LabelStyle();\n\t\tlabelStyle.font = font;\n\t\t\n\t\ttimeLeft = new Label(timeString + \" 20\", labelStyle);\n\t\ttimeLeft.setPosition(width - timeLeft.getWidth(), height - timeLeft.getHeight());\n\t\t\n\t\thits = new Label(hitsString + \"0\" + amountString, labelStyle);\n\t\thits.setPosition(0, height - timeLeft.getHeight());\n\t\t\n\t\t\n\t\tcontainer.row();\n\t\tcontainer.add(trainingBag);\n\t\t\n\t\tgroup.addActor(darken);\n\t\tgroup.addActor(container);\n\t\tgroup.addActor(timeLeft);\n\t\tgroup.addActor(hits);\n\t}", "@Override\r\n\tpublic void updateScreen() {\r\n\t\tsuper.updateScreen();\r\n\t\t_resolutionResolver = new ScaledResolution(Minecraft.getMinecraft(), Minecraft.getMinecraft().displayWidth, Minecraft.getMinecraft().displayHeight);\r\n\t\tthis.width = _resolutionResolver.getScaledWidth();\r\n\t\tthis.height = _resolutionResolver.getScaledHeight();\r\n\r\n\t\t// Handle when the player clicked on a cell\r\n\t\tif (_selectedCell != -1) {\r\n\t\t \r\n\t\t\t// make sure we have our player or otherwise we will\r\n\t\t // not be able to set the correct position for the player\r\n\t\t\tif (HubbyUtils.getServerPlayer() != null) {\r\n\t\t\t\tint cellIndex = _startCell + _selectedCell;\r\n\t\t\t\tif (cellIndex < UltraTeleportWaypoint.getWaypointCount()) {\r\n\t\t\t\t UltraTeleportWaypoint p = UltraTeleportWaypoint.getWaypoints().get(cellIndex);\r\n\t\t\t\t double posX = p.getPos().getX();\r\n\t\t\t\t double posY = p.getPos().getY();\r\n\t\t\t\t double posZ = p.getPos().getZ();\r\n\t\t\t\t float yaw = p.getRotationY();\r\n\t\t\t\t float pitch = p.getRotationX();\r\n\r\n\t\t\t\t // Get the client world to be able to find the proper block for teleporting\r\n\t\t\t\t World world = HubbyUtils.getClientWorld();\r\n\t\t\t\t if (world != null) {\r\n\t\t\t\t while (true) {\r\n\t\t\t\t \tBlockPos pos = new BlockPos(posX, posY, posZ);\r\n\t\t\t\t if (world.isAirBlock(pos)) {\r\n\t\t\t\t break;\r\n\t\t\t\t }\r\n\t\t\t\t posY += 1.0d;\r\n\t\t\t\t }\r\n\t\t\t\t }\r\n\r\n\t\t\t\t // Update the player's location on the server and then\r\n\t\t\t\t // that will pass down to the client player and update his\r\n\t\t\t\t // position as well\r\n\t\t\t\t HubbyUtils.getServerPlayer().playerNetServerHandler.setPlayerLocation(posX, posY, posZ, yaw, pitch);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t_selectedCell = -1;\r\n\t\t}\r\n\r\n\t\t// update selected list\r\n for (int i = 0; i < UltraTeleportWaypoint.getWaypointCount(); ++i) {\r\n if (i >= _selectedList.size()) {\r\n _selectedList.add(false);\r\n }\r\n }\r\n\r\n // Only show delete button when we have something selected\r\n if (getSelectedCount() > 0) {\r\n this.buttonList.add(_deleteButton);\r\n }\r\n else {\r\n this.buttonList.clear();\r\n }\r\n\t}", "void display()\n\t{\n\t\ttiles[fruit[0]][fruit[1]][fruit[2]] = \" *\";\n\n\t\t// does not write over head\n\t\tif (theSnake.getLength() == 3)\n\t\t{\n\t\t\tfor (int i = 1; i < theSnake.getLength(); i++)\n\t\t\t{\n\t\t\t\t// Places snake body parts onto the board\n\t\t\t\t//in each of its positions\n\t\t\t\ttiles[theSnake.getXofPartI(i)][theSnake.getYofPartI(i)][theSnake.getZofPartI(i)] = \" @\";\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tfor (int i = theSnake.getLength() - 1; tiles[theSnake.getXofPartI(i)][theSnake.getYofPartI(i)][theSnake.getZofPartI(i)] != \" @\"\n\t\t\t\t&& i != 0; i--)\n\t\t\t{\n\t\t\t\t// Places snake body parts onto the board\n\t\t\t\t//in each of its positions\n\t\t\t\ttiles[theSnake.getXofPartI(i)][theSnake.getYofPartI(i)][theSnake.getZofPartI(i)] = \" @\";\n\t\t\t}\n\t\t\t// places snake body part where its head was in the previous update\n\t\t\ttiles[theSnake.getXofPartI(1)][theSnake.getYofPartI(1)][theSnake.getZofPartI(1)] = \" @\";\n\t\t}\n\n\t\t// Print basic instructions\n\t\tangles.append(\"\\n\\tq: to quit\\n\\t8: up\\t5: down\\t\\t\\t\\t\\t\\t8: up\\t5: down\\n\\t4: left\\t6: right\\t\\t\\t\\t\\t9: left\\t3:right\\n\\t9:\");\n\t\tangles.append(\"surfacing\\t3: deeper\\t\\t\\t\\t4: surfacing\\t6: deeper\\n\");\n\n\t\t// print the board to console\n\t\tfor (int y = 0; y < size; y++){\n\t\t\tangles.append(\"\\t\");\n\t\t\tdisplayLine(y, \"xy\");\n\n\t\t\tangles.append(\"\\t\\t\");\n\t\t\tdisplayLine(y, \"zy\");\n\t\t\tangles.append(\"\\n\");\n\t\t}\n\n\t\tangles.append(\"\\n\\n\");\n\t\tfor (int z = 0; z < size; z++) {\n\t\t\tangles.append(\"\\t\");\n\t\t\tdisplayLine(z, \"xz\");\n\t\t\tangles.append(\"\\n\");\n\t\t}\n\t\t\n\t\tSystem.out.println(angles);\n\t\tangles.replace(0, angles.length(), \"\");\n\n\t\t// removes snake from board completely so we don't have to keep track\n\t\t//of conditions.\n\t\t//for (int i = 0; i < theSnake.getLength(); i++)\n\t\t//{\n\n\t\t// Only the last snake body part will need to be taken off\n\t\ttiles[theSnake.getXofPartI(theSnake.getLength() - 1)][theSnake.getYofPartI(theSnake.getLength() - 1)][theSnake.getZofPartI(theSnake.getLength() - 1)] = \" \";\n\t\t//}\n\t}", "@Override\n public void revealAllMines() {\n for (Tile[] tiles : grid) {\n for (Tile t : tiles) {\n if (t.getType() == Tile.MINE) {\n t.setState(Tile.REVEALED);\n }\n }\n }\n }", "public void start_game(String s) {\n\n if (s.equals(\"New\")) {\n Long seed = Long.parseLong(this.input_seed);\n this.rand = new Random(seed); // not sure if this is correct way to approach this problem?\n Createworld cr = new Createworld(seed);\n this.tiles = cr.returnTile();\n int[] start_location = generate_avatar_location();\n ArrayList<int[]> start_food = generate_foods();\n this.position = start_location;\n }\n\n String cont = \"continue\";\n this.ter.renderFrame(this.tiles);\n InputSource inputSource = new KeyboardInputSource();\n\n\n\n\n while (cont.equals(\"continue\") && this.total_moves > 0 && this.number_of_foods > 0) {\n\n while (!StdDraw.hasNextKeyTyped()) {\n\n StdDraw.setPenColor(Color.BLACK);\n StdDraw.filledRectangle(this.tiles[0].length / 2 + 30, this.tiles[1].length - 2, 10, 2);\n StdDraw.filledRectangle(this.tiles[0].length / 2, this.tiles[1].length - 2, 10, 2);\n StdDraw.filledRectangle(this.tiles[0].length / 2 + 47, this.tiles[1].length - 2, 10, 2);\n TETile type = getTileat((int) StdDraw.mouseX(), (int) StdDraw.mouseY());\n Font textfonttwo = new Font(\"sans serif\", Font.BOLD, 25);\n StdDraw.setFont(textfonttwo);\n StdDraw.setPenColor(Color.WHITE);\n String descriptiontwo = \"Description: \" + type.description();\n String description = \"Moves: \" + total_moves;\n String descriptionthree = \"Foods Remaining: \" + this.number_of_foods;\n StdDraw.text(this.tiles[0].length / 2 + 30, this.tiles[1].length - 2, description);\n StdDraw.text(this.tiles[0].length / 2, this.tiles[1].length - 2, descriptiontwo);\n StdDraw.text(this.tiles[0].length/2 + 47, this.tiles[1].length -2, descriptionthree);\n StdDraw.show();\n StdDraw.enableDoubleBuffering();\n }\n\n\n char c = inputSource.getNextKey();\n move(c, \"keyboard\");\n\n\n if (c == ':' && inputSource.getNextKey() == 'Q') { // Breaks it if we press Q\n\n saveEditor(\"seed\", this.input_seed);\n saveEditor(\"movements\", this.directions);\n System.out.println(this.directions);\n System.exit(0);\n break;\n }\n }\n if(this.total_moves == 0){\n sorry();\n }\n else if(this.number_of_foods == 0){\n congrats();\n\n }\n }", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t\tif ( !input ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\ttileVisible = true;\r\n\t\trepaint();\r\n\t}", "public void printMiniMap() \n { \n /* this.miniMapFrame(); */\n }", "public void fillWithIslandTiles() {\n\t\tthis.addCard(new IslandTile(\"Breakers Bridge\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Bronze Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Cliffs of Abandon\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Cave of Embers\", CardType.TILE, TreasureType.CRYSTAL_OF_FIRE));\n\t\tthis.addCard(new IslandTile(\"Crimson Forest\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Copper Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Coral Palace\", CardType.TILE, TreasureType.OCEAN_CHALICE));\n\t\tthis.addCard(new IslandTile(\"Cave of Shadows\", CardType.TILE, TreasureType.CRYSTAL_OF_FIRE));\n\t\tthis.addCard(new IslandTile(\"Dunes of Deception\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Fool's Landing\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Gold Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Howling Garden\", CardType.TILE, TreasureType.STATUE_OF_WIND));\n\t\tthis.addCard(new IslandTile(\"Iron Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Lost Lagoon\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Misty Marsh\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Observatory\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Phantom Rock\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Silver Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Temple of the Moon\", CardType.TILE, TreasureType.EARTH_STONE));\n\t\tthis.addCard(new IslandTile(\"Tidal Palace\", CardType.TILE, TreasureType.OCEAN_CHALICE));\n\t\tthis.addCard(new IslandTile(\"Temple of the Sun\", CardType.TILE, TreasureType.EARTH_STONE));\n\t\tthis.addCard(new IslandTile(\"Twilight Hollow\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Whispering Garden\", CardType.TILE, TreasureType.STATUE_OF_WIND));\n\t\tthis.addCard(new IslandTile(\"Watchtower\", CardType.TILE, TreasureType.NONE));\n\t}", "private void drawTiles(Graphics g)\n {\n for (int x = 0; x < 19; x++)\n {\n for (int y = 0; y < 15; y++)\n {\n tileset.getSprite(5, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n switch(board[x][y])\n {\n case 1:\n {\n tileset.getSprite(4, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n break;\n }\n case 2:\n {\n tileset.getSprite(3, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n break;\n }\n case 3:\n {\n if (bombs[x][y].getTimeLeft() > 80)\n {\n bombImage.getSprite(0, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n if (bombs[x][y].getTimeLeft() <= 80 && bombs[x][y].getTimeLeft() > 50)\n {\n bombImage.getSprite(1, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n if (bombs[x][y].getTimeLeft() <= 50 && bombs[x][y].getTimeLeft() > 20)\n {\n bombImage.getSprite(2, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n if (bombs[x][y].getTimeLeft() <= 20)\n {\n bombImage.getSprite(3, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n break;\n }\n //4 is player\n case 5:\n {\n if (fire[x][y] == null)\n {\n tileset.getSprite(2, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n break;\n }\n case 6:\n {\n if (fire[x][y] == null)\n {\n tileset.getSprite(15, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n break;\n }\n }\n }\n }\n }", "public void expLocation() {\n\t\tif (!death) {\t// Geht nicht wenn Tod!\n\t\t\t\n\t\t\t// Beschreibungen anzeigen und boolean explored auf wahr setzen, außer der Raum wurde bereits untersucht\n\t\t\tif (location[this.currentLocation].isExplored()) { Tuna.setMessage(\"Dieser Raum wurde bereits untersucht!\");\n\t\t\t} else {\n\t\t\t\tTuna.addText(location[this.currentLocation].getDescriptions().getExploreDescription());\n\t\t\t\tlocation[this.currentLocation].setExplored(true);\n\t\t\t}\n\t\t\t\n\t\t\t// Items an Stelle null im Item-Array des Standortes sichtbar machen\n\t\t\tif ((currentLocation > 0 && currentLocation < 7 && currentLocation != 2) || currentLocation == 20) {\n\t\t\t\tlocation[this.currentLocation].getItem(0).setVisible(true);\n\t\t\t\t/* Im Korridor (1) der Kaffeelöscherkasten\n\t\t\t\t * Im Konferenzraum (3) der Ventilationsschacht\n\t\t\t\t * In der Kammer der Leere (4) die Notiz\n\t\t\t\t * Im Ventilationsraum (5) die Notiz\n\t\t\t\t * In der Damentoilette (6) das Skillboook\n\t\t\t\t * Im Fahrstuhlschacht (20) die Kaffeetasse\n\t\t\t\t */\n\t\t\t}\n\t\t\t\n\t\t\t// Items an Stelle eins im Item-Array des Standortes sichtbar machen\n\t\t\tif (currentLocation == 9) {\n\t\t\t\tlocation[this.currentLocation].getItem(1).setVisible(true);\n\t\t\t}\n\t\t} else if (death) {\n\t\t\tTuna.setMessage(\"Du bist tot!\");\n\t\t}\n\t}", "public Parent createContent(){\n Pane root = new Pane();\n root.setPrefSize((dimension * tileSize)+(tileSize*4)+menuWidth, (dimension * tileSize)+(tileSize*4));\n root.getChildren().addAll(tileGroup);\n TopOfBoard top = new TopOfBoard();\n Parent controlsAndMovement = top.newScene();\n root.getChildren().addAll(controlsAndMovement);\n\n // setting main game board template\n for (int i = 0; i< dimension; i++){\n for (int j = 0; j< dimension; j++){\n if (i==0||i== dimension -1||j==0||j== dimension -1){\n if (i==0) {\n if (j==0){\n tileInit(i, j, tileGroup, tileSize * 2, tileSize * 2, j * tileSize, i * tileSize);\n }\n else if (j== dimension -1){\n tileInit(i, j, tileGroup, tileSize*2, tileSize*2, (j * tileSize)+tileSize, i * tileSize);\n }\n else {\n tileInit(i, j, tileGroup, tileSize*2, tileSize, (j * tileSize)+tileSize, i * tileSize);\n }\n }\n else if (i== dimension -1){\n if (j==0){\n tileInit(i, j, tileGroup, tileSize*2, tileSize*2, j * tileSize, (i * tileSize)+tileSize);\n }\n else if (j== dimension -1){\n tileInit(i, j, tileGroup, tileSize*2, tileSize*2, (j * tileSize)+tileSize, (i * tileSize)+tileSize);\n }\n else {\n tileInit(i, j, tileGroup, tileSize * 2, tileSize, (j * tileSize) + tileSize, (i * tileSize) + tileSize);\n }\n }\n else if (j==0){\n tileInit(i, j, tileGroup, tileSize, tileSize*2, j * tileSize, (i * tileSize)+(tileSize));\n\n }\n else if (j== dimension -1) {\n tileInit(i, j, tileGroup, tileSize, tileSize*2, (j * tileSize)+(tileSize), (i * tileSize)+tileSize);\n }\n\n }\n }\n\n // Setting player score board\n for (int q = 1; q <= numOfPlayers; q++){\n if (q == 1){\n Tile tile = new Tile((getTileSize()*2), (getTileSize()*4));\n tile.setTranslateX((getTileSize()* getDimension())+(getTileSize()*3));\n tile.setTranslateY(getTileSize()*3);\n Text text = new Text((getTileSize()* getDimension())+(getTileSize()*4), (getTileSize()*3.5), \"Player 1 score board:\");\n tileGroup.getChildren().addAll(tile, text);\n }\n else if (q == 2){\n Tile tile = new Tile((getTileSize()*2), (getTileSize()*4));\n tile.setTranslateX((getTileSize()* getDimension())+(getTileSize()*3));\n tile.setTranslateY(getTileSize()*5);\n Text text = new Text((getTileSize()* getDimension())+(getTileSize()*4), (getTileSize()*5.5), \"Player 2 score board:\");\n tileGroup.getChildren().addAll(tile, text);\n }\n else if (q == 3){\n Tile tile = new Tile((getTileSize()*2), (getTileSize()*4));\n tile.setTranslateX((getTileSize()* getDimension())+(getTileSize()*3));\n tile.setTranslateY(getTileSize()*7);\n Text text = new Text((getTileSize()* getDimension())+(getTileSize()*4), (getTileSize()*7.5), \"Player 3 score board:\");\n tileGroup.getChildren().addAll(tile, text);\n }\n else if (q == 4){\n Tile tile = new Tile((getTileSize()*2), (getTileSize()*4));\n tile.setTranslateX((getTileSize()* getDimension())+(getTileSize()*3));\n tile.setTranslateY(getTileSize()*9);\n Text text = new Text((getTileSize()* getDimension())+(getTileSize()*4), (getTileSize()*9.5), \"Player 4 score board:\");\n tileGroup.getChildren().addAll(tile, text);\n }\n\n }\n\n for (int r = 1; r <= numOfPlayers; r++) {\n if (r == 1) {\n Tile tile = new Tile((getTileSize() * 3), (getTileSize() * 4));\n tile.setTranslateX((getTileSize() * getDimension()) + (getTileSize() * 7));\n tile.setTranslateY(0);\n Text text = new Text((getTileSize() * getDimension()) + (getTileSize() * 8), (getTileSize() * 0.5), \"Player 1 owned cards:\");\n tileGroup.getChildren().addAll(tile, text);\n } else if (r == 2) {\n Tile tile = new Tile((getTileSize() * 3), (getTileSize() * 4));\n tile.setTranslateX((getTileSize() * getDimension()) + (getTileSize() * 7));\n tile.setTranslateY(getTileSize() * 3);\n Text text = new Text((getTileSize() * getDimension()) + (getTileSize() * 8), (getTileSize() * 3.5), \"Player 2 owned cards:\");\n tileGroup.getChildren().addAll(tile, text);\n } else if (r == 3) {\n Tile tile = new Tile((getTileSize() * 3), (getTileSize() * 4));\n tile.setTranslateX((getTileSize() * getDimension()) + (getTileSize() * 7));\n tile.setTranslateY(getTileSize() * 6);\n Text text = new Text((getTileSize() * getDimension()) + (getTileSize() * 8), (getTileSize() * 6.5), \"Player 3 owned cards:\");\n tileGroup.getChildren().addAll(tile, text);\n } else if (r == 4) {\n Tile tile = new Tile((getTileSize() * 3), (getTileSize() * 4));\n tile.setTranslateX((getTileSize() * getDimension()) + (getTileSize() * 7));\n tile.setTranslateY(getTileSize() * 9);\n Text text = new Text((getTileSize() * getDimension()) + (getTileSize() * 8), (getTileSize() * 9.5), \"Player 4 owned cards:\");\n tileGroup.getChildren().addAll(tile, text);\n\n }\n }\n addImg();\n }\n return root;\n }", "@Override\r\n public void onTileAdded() {\r\n super.onTileAdded();\r\n //Log.d(TAG, \"on tile added running\");\r\n initTileState();\r\n }", "public void addToNextMoves(GameTile[][] visibleMap) {\r\n\t\t\r\n\t\t//Breadth First Search Code\r\n//\t\tWumpusState state = new WumpusState(visibleMap, playerX, playerY, wumpusX, wumpusY);\r\n\r\n\t\tQueue<WumpusState> queue = new LinkedList<WumpusState>();\t\t\t\t//use the queue in the same way\t\r\n\t\tHashMap<String, Boolean> visitedStates = new HashMap<String, Boolean>();\t//add all children to the queue, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//add all the children to the hash and set values to true.\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//once all the children have been visited, generate children sequentially for the children that already been added \r\n\t\tWumpusState state = new WumpusState(visibleMap, playerX, playerY);\r\n\t\tlong nodesExpanded = 0;\r\n\t\t\r\n\t\tqueue.add(state);\r\n\t\twhile(!queue.isEmpty()) {\r\n\t\t\tWumpusState currentState = queue.remove();\r\n\t\t\tSystem.out.println(currentState.toString());\r\n\t\t\tif(currentState.getPlayerX() == 4 && currentState.getPlayerY() == 1) {\r\n\t\t\t\tnodesExpanded = visitedStates.size();\r\n\t\t\t\tSystem.out.println(\"Nodes Expanded: \"+nodesExpanded);\r\n\t\t\t\tArrayList<AgentAction> actions = currentState.getAllActions();\r\n\t\t\t\tfor(int i=1;i<actions.size(); i++) {\r\n\t\t\t\t\tSystem.out.println(actions.get(i));\r\n\t\t\t\t\tnextMoves.add(actions.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tnextMoves.add(AgentAction.declareVictory);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif(visitedStates.containsKey(currentState.toString())) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tvisitedStates.put(currentState.toString(), true);\r\n\t\t\t\tWumpusState[] childrenOfCurrentChild = currentState.generateChildrenStates();\r\n\t\t\t\tfor(int j=0; j<childrenOfCurrentChild.length; j++) {\r\n\t\t\t\t\tif(childrenOfCurrentChild[j]!=null) {\r\n\t\t\t\t\t\tqueue.add(childrenOfCurrentChild[j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "@Override\n\tpublic void enter() {\n\t\t//Update dimensions\n\t\tattachedTo.setWidth(20);\n\t\tattachedTo.setHeight(20);\n\t\t\n\t\t//set image of player to overworld image\n\t\tattachedTo.setShape(new Ellipse2D.Double(), Color.green);\n\t\tattachedTo.updateShape();\n\t\t\n\t\t\n\t\t//Set the sprite to testspritesheet (until image for overworld state is made)\n\t\t//Now sets the sprite to a test spritesheet\n\t\tattachedTo.setSprite(Directory.spriteLibrary.get(\"HeroOverworld\"));\n\t\t\n\t\t//Queue up an animation of row 0 in spritesheet to repeat\n\t\tattachedTo.getSprite().queueAnimation(0, false);\n\t\t\n\t\t//Start timing movement by getting previous time\n\t\tpreviousTime = System.currentTimeMillis();\n\t}", "public void addTileOnBeginning(Tile tile);", "public void processMove(MahjongSolitaireMove move)\n {\n // REMOVE THE MOVE TILES FROM THE GRID\n ArrayList<MahjongSolitaireTile> stack1 = tileGrid[move.col1][move.row1];\n ArrayList<MahjongSolitaireTile> stack2 = tileGrid[move.col2][move.row2]; \n MahjongSolitaireTile tile1 = stack1.remove(stack1.size()-1);\n MahjongSolitaireTile tile2 = stack2.remove(stack2.size()-1);\n \n // MAKE SURE BOTH ARE UNSELECTED\n tile1.setState(VISIBLE_STATE);\n tile2.setState(VISIBLE_STATE);\n \n // SEND THEM TO THE STACK\n tile1.setTarget(TILE_STACK_X + TILE_STACK_OFFSET_X, TILE_STACK_Y + TILE_STACK_OFFSET_Y);\n tile1.startMovingToTarget(MAX_TILE_VELOCITY);\n tile2.setTarget(TILE_STACK_X + TILE_STACK_2_OFFSET_X, TILE_STACK_Y + TILE_STACK_OFFSET_Y);\n tile2.startMovingToTarget(MAX_TILE_VELOCITY);\n stackTiles.add(tile1);\n stackTiles.add(tile2); \n \n // MAKE SURE THEY MOVE\n movingTiles.add(tile1);\n movingTiles.add(tile2);\n \n // AND MAKE SURE NEW TILES CAN BE SELECTED\n selectedTile = null;\n \n // PLAY THE AUDIO CUE\n miniGame.getAudio().play(MahjongSolitairePropertyType.MATCH_AUDIO_CUE.toString(), false);\n \n // NOW CHECK TO SEE IF THE GAME HAS EITHER BEEN WON OR LOST\n \n // HAS THE PLAYER WON?\n if (stackTiles.size() == NUM_TILES)\n {\n // YUP UPDATE EVERYTHING ACCORDINGLY\n endGameAsWin();\n }\n else\n {\n // SEE IF THERE ARE ANY MOVES LEFT\n MahjongSolitaireMove possibleMove = this.findMove();\n if (possibleMove == null)\n {\n // NOPE, WITH NO MOVES LEFT BUT TILES LEFT ON\n // THE GRID, THE PLAYER HAS LOST\n endGameAsLoss();\n }\n }\n }", "private void revealAround() {\n if (xTile - 1 >= 0 && !References.GetMainTileActorMap()[xTile - 1][yTile].isRevealed()) {\n References.GetMainTileActorMap()[xTile - 1][yTile].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile - 1][yTile].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile - 1][yTile].setRevealed(true);\n }\n }\n if (yTile - 1 >= 0 && !References.GetMainTileActorMap()[xTile][yTile - 1].isRevealed()) {\n References.GetMainTileActorMap()[xTile][yTile - 1].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile][yTile - 1].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile][yTile - 1].setRevealed(true);\n }\n }\n if (xTile + 1 < Parameters.NUM_X_TILES && !References.GetMainTileActorMap()[xTile + 1][yTile].isRevealed()) {\n References.GetMainTileActorMap()[xTile + 1][yTile].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile + 1][yTile].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile + 1][yTile].setRevealed(true);\n }\n }\n if (yTile + 1 < Parameters.NUM_Y_TILES && !References.GetMainTileActorMap()[xTile][yTile + 1].isRevealed()) {\n References.GetMainTileActorMap()[xTile][yTile + 1].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile][yTile + 1].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile][yTile + 1].setRevealed(true);\n }\n }\n }", "@Override\n\tpublic void mouseEntered(MouseEvent e) {\n\t\tif (shipsToPlace > 0) {\n\t\t\tchar isTileEnabled = (\"\" + e.getComponent()).charAt(22);\n\n\t\t\tif (isTileEnabled == 't') {\n\n\t\t\t\tint x = Integer.parseInt((\"\" + e.getComponent()).charAt(20) + \"\");\n\t\t\t\tint y = Integer.parseInt((\"\" + e.getComponent()).charAt(21) + \"\");\n\t\t\t\tplayerBoard[x][y].setBackground(Color.yellow);\n\n\t\t\t\tif (shipsToPlace == 3) {\n\t\t\t\t\tfor (int i = 1; i < 5; i++) {\n\t\t\t\t\t\tif ((x + i) < 10)\n\t\t\t\t\t\t\tplayerBoard[x + i][y].setBackground(Color.yellow);\n\t\t\t\t\t}\n\t\t\t\t} else if (shipsToPlace == 2) {\n\t\t\t\t\tif (y + 1 < 10)\n\t\t\t\t\t\tplayerBoard[x][y + 1].setBackground(Color.yellow);\n\t\t\t\t\tif (y + 2 < 10)\n\t\t\t\t\t\tplayerBoard[x][y + 2].setBackground(Color.yellow);\n\t\t\t\t} else if (shipsToPlace == 1) {\n\t\t\t\t\tif (y + 1 < 10)\n\t\t\t\t\t\tplayerBoard[x][y + 1].setBackground(Color.yellow);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void paintVisible(Graphics g){\n\n for (int i = 0; i < listOfTiles.size(); i++) {\n //In setPixels, the 3rd arguement is essentially the \"z\" height\n TileView holder = listOfTiles.get(i);\n\n //The tile Y pixels should be increased based on the z coordinate per column\n yPixel -= 8; //Now this will be the same as paintMapObjects\n holder.setPixels(xPixel, yPixel);\n holder.paintComponent(g);\n }\n }", "public void renderTileManager()\n {\n background(background);\n tiles[activeTile].drawGrid();\n tiles[activeTile].drawCellHover();\n createPreview(tiles[activeTile]);\n drawPreviewHover();\n drawPreviews();\n }", "@Override\n public void displayMapTiles(MapTile[][] grid)\n {\n Platform.runLater(() -> {\n MapView mapArea = gui.getMapArea();\n mapArea.displayMapGrid(grid, -3, -3);\n });\n }", "private void makeMaze() {\n\t\ttry {\n\t\t\tthis.end = ImageIO.read(new File(\"images/tiles/end_locked.png\"));\n\t\t\tint w = getWidth()/gui.getModel().getDifficulty();\n\t\t\tint h = getHeight()/gui.getModel().getDifficulty();\n\t\t\tint difficulty = gui.getModel().getDifficulty();\n\t\t\tmazeImage = new BufferedImage(difficulty*(getWidth()/difficulty), difficulty*(getHeight()/difficulty), BufferedImage.TYPE_INT_RGB);\n\t\t\tGraphics2D g = mazeImage.createGraphics();\n\t\t\tString tile = \"\";\n\t\t\tfor (BaseState s: gui.getModel().getMaze()) {\n\t\t\t\tint x = s.getX(); int y = s.getY();\n\t\t\t\t\n\t\t\t\t// check walls\n\t\t\t\tint numSides = 0;\n\t\t\t\tboolean rightWall = false;\n\t\t\t\tboolean leftWall = false;\n\t\t\t\tboolean topWall = false;\n\t\t\t\tboolean bottomWall = false;\n\t\t\t\tif (s.getRight() == null) rightWall = true;\n\t\t\t\tif (s.getLeft() == null) leftWall = true;\n\t\t\t\tif (s.getUp() == null) topWall = true;\n\t\t\t\tif (s.getDown() == null) bottomWall = true;\n\t\t\t\tif (topWall) numSides++;\n\t\t\t\tif (leftWall) numSides++;\n\t\t\t\tif (bottomWall) numSides++;\n\t\t\t\tif (rightWall) numSides++;\n\t\t\t\t\n\t\t\t\t// find tile type\n\t\t\t\tif (numSides == 3) { // dead end\n\t\t\t\t\tif (!rightWall) tile = \"images/tiles/deadend_left.bmp\";\n\t\t\t\t\telse if (!leftWall) tile = \"images/tiles/deadend_right.bmp\";\n\t\t\t\t\telse if (!topWall) tile = \"images/tiles/deadend_bottom.bmp\";\n\t\t\t\t\telse if (!bottomWall) tile = \"images/tiles/deadend_top.bmp\";\n\t\t\t\t} else if (numSides == 2) { // corner or hall\n\t\t\t\t\t//hall\n\t\t\t\t\tif (rightWall && leftWall) tile = \"images/tiles/hall_vertical.bmp\";\n\t\t\t\t\telse if (topWall && bottomWall) tile = \"images/tiles/hall_horizontal.bmp\";\n\t\t\t\t\t//corner\n\t\t\t\t\telse if (topWall && leftWall) tile = \"images/tiles/corner_top_left.bmp\";\n\t\t\t\t\telse if (topWall && rightWall) tile = \"images/tiles/corner_top_right.bmp\";\n\t\t\t\t\telse if (bottomWall && leftWall) tile = \"images/tiles/corner_bottom_left.bmp\";\n\t\t\t\t\telse if (bottomWall && rightWall) tile = \"images/tiles/corner_bottom_right.bmp\";\n\t\t\t\t} else if (numSides == 1) { // single side\n\t\t\t\t\tif (leftWall) tile = \"images/tiles/wall_left.bmp\";\n\t\t\t\t\telse if (rightWall) tile = \"images/tiles/wall_right.bmp\";\n\t\t\t\t\telse if (topWall) tile = \"images/tiles/wall_top.bmp\";\n\t\t\t\t\telse if (bottomWall) tile = \"images/tiles/wall_bottom.bmp\";\n\t\t\t\t} else { // open\n\t\t\t\t\ttile = \"images/tiles/open.bmp\";\n\t\t\t\t}\n\t\t\t\t// draw tile\n\t\t\t\tg.drawImage(ImageIO.read(new File(tile)), x*w, y*h, w, h, null);\n\t\t\t\t\n\t\t\t\t// check for ending and draw if need be\n\t\t\t\tif (s.getX() == gui.getModel().getDifficulty() - 1 && s.getY() == gui.getModel().getDifficulty() - 1) {\n\t\t\t\t\tg.drawImage(ImageIO.read(new File(\"images/tiles/end_unlocked.png\")), x*w, y*h, w, h, null);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch(IOException e) {System.err.println(\"Images not found.\");}\n\t}", "public void initTiles() {\n\t\ttileList.add(new Go());\n\n\t\t// Brown properties\n\t\tProperty mediterranean = new Property(\"Mediterranean\");\n\t\tProperty balticAve = new Property(\"Baltic Avenue\");\n\n\t\t// Light blue properties\n\t\tProperty orientalAve = new Property(\"Oriental Avenue\");\n\t\tProperty vermontAve = new Property(\"Vermont Avenue\");\n\t\tProperty connecticutAve = new Property(\"Connecticut Avenue\");\n\n\t\t// Magenta properties\n\t\tProperty stCharles = new Property(\"St. Charles Place\");\n\t\tProperty statesAve = new Property(\"States Avenue\");\n\t\tProperty virginiaAve = new Property(\"Virginia Avenue\");\n\n\t\t// Orange properties\n\t\tProperty stJames = new Property(\"St. James Place\");\n\t\tProperty tennesseeAve = new Property(\"Tennessee Avenue\");\n\t\tProperty newYorkAve = new Property(\"New York Avenue\");\n\n\t\t// Red properties\n\t\tProperty kentuckyAve = new Property(\"Kentucky Avenue\");\n\t\tProperty indianaAve = new Property(\"Indiana Avenue\");\n\t\tProperty illinoisAve = new Property(\"Illinois Avenue\");\n\n\t\t// Yellow Properties\n\t\tProperty atlanticAve = new Property(\"Atlantic Avenue\");\n\t\tProperty ventnorAve = new Property(\"Ventnor Avenue\");\n\t\tProperty marvinGard = new Property(\"Marvin Gardins\");\n\n\t\t// Green Properties\n\t\tProperty pacificAve = new Property(\"Pacific Avenue\");\n\t\tProperty northCar = new Property(\"North Carolina Avenue\");\n\t\tProperty pennsylvannia = new Property(\"Pennsylvania Avenue\");\n\n\t\t// Dark blue properties\n\t\tProperty parkPlace = new Property(\"Park Place\");\n\t\tProperty boardWalk = new Property(\"Boardwalk\");\n\n\t\t// Tax tiles\n\t\tTaxTile incomeTax = new TaxTile(\"Income Tax\", 200);\n\t\tTaxTile luxuryTax = new TaxTile(\"Luxury Tax\", 100);\n\n\t\t// Utilities\n\t\tUtility electric = new Utility(\"Electric Company\");\n\t\tUtility water = new Utility(\"Water Works\");\n\n\t\t// Railroads\n\t\tRailroad reading = new Railroad(\"Reading\");\n\t\tRailroad pennRail = new Railroad(\"Pennsylvania\");\n\t\tRailroad bno = new Railroad(\"B & O\");\n\t\tRailroad shortLine = new Railroad(\"Short Line\");\n\n\t\t// Chance and community chest\n\t\tChance chance = new Chance();\n\t\tCommunity chest = new Community();\n\n\t\t// Adds the properties by color in accordance with their position on the board\n\t\t// adds color + placement of piece to a list of their respective colors\n\t\tbrown.add(1);\n\t\tbrown.add(3);\n\t\trailroads.add(5);\n\t\tlightBlue.add(6);\n\t\tlightBlue.add(8);\n\t\tlightBlue.add(9);\n\t\tmagenta.add(11);\n\t\tutilities.add(12);\n\t\tmagenta.add(13);\n\t\tmagenta.add(14);\n\t\trailroads.add(15);\n\t\torange.add(16);\n\t\torange.add(18);\n\t\torange.add(19);\n\t\tred.add(21);\n\t\tred.add(23);\n\t\tred.add(24);\n\t\trailroads.add(25);\n\t\tyellow.add(26);\n\t\tyellow.add(27);\n\t\tutilities.add(28);\n\t\tyellow.add(29);\n\t\tgreen.add(31);\n\t\tgreen.add(32);\n\t\tgreen.add(34);\n\t\trailroads.add(35);\n\t\tdarkBlue.add(37);\n\t\tdarkBlue.add(39);\n\n\t\t// tileList is the list of tiles of the board where each tile is representative of a place on the board\n\t\t// adds each tile is chronological order beginning of the board \"go\"\n\t\t//this list includes: properties, taxes, railroads, chance, community chest\n\t\t\n\t\ttileList.add(new Go());\n\n\t\ttileList.add(mediterranean);\n\t\ttileList.add(chest);\n\t\ttileList.add(balticAve);\n\t\ttileList.add(incomeTax);\n\t\ttileList.add(reading);\n\t\ttileList.add(orientalAve);\n\t\ttileList.add(chance);\t\n\t\ttileList.add(vermontAve);\n\t\ttileList.add(connecticutAve);\n\n\t\ttileList.add(new Jail());\n\t\t\t\n\t\ttileList.add(stCharles);\n\t\ttileList.add(electric);\t\t\t\n\t\ttileList.add(statesAve);\t\t\t\n\t\ttileList.add(virginiaAve);\n\t\ttileList.add(pennRail);\n\t\ttileList.add(stJames);\t\n\t\ttileList.add(chest);\n\t\ttileList.add(tennesseeAve);\t\t\t\n\t\ttileList.add(newYorkAve);\n\n\t\ttileList.add(new FreeParking());\n\t\t\t\n\t\ttileList.add(kentuckyAve);\t\t\n\t\ttileList.add(chance);\t\n\t\ttileList.add(indianaAve);\t\t\t\n\t\ttileList.add(illinoisAve);\n\t\ttileList.add(bno);\n\t\ttileList.add(atlanticAve);\t\t\t\n\t\ttileList.add(ventnorAve);\n\t\ttileList.add(water);\n\t\ttileList.add(marvinGard);\n\n\t\ttileList.add(new GoToJail());\n\t\t\t\t\t\n\t\ttileList.add(pacificAve);\t\t\t\n\t\ttileList.add(northCar);\n\t\ttileList.add(chest);\t\t\t\n\t\ttileList.add(pennsylvannia);\n\t\ttileList.add(shortLine);\n\t\ttileList.add(chance);\n\t\ttileList.add(parkPlace);\n\t\ttileList.add(luxuryTax);\n\t\ttileList.add(boardWalk);\n\t}", "public void gameOver() {\r\n grid.exposeMines();\r\n this.displayGrid();\r\n System.out.println(\"Better luck next time!\");\r\n }", "protected void warp() {\n\t\tRandom r = new Random();\n\t\t\n\t\t// Get random index from coordinates list\n\t\tint nextPos = r.nextInt(this.coords.length);\n\t\t\n\t\t// Set new position for monster\n\t\tthis.setBounds(this.coords[nextPos].width, this.coords[nextPos].height, mWidth, mHeight);\n\t\t\n\t\tthis.setVisible(true);\n\t}", "public void 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 }", "public void initTiles()\n {\n PropertiesManager props = PropertiesManager.getPropertiesManager(); \n String imgPath = props.getProperty(MahjongSolitairePropertyType.IMG_PATH);\n int spriteTypeID = 0;\n SpriteType sT;\n \n // WE'LL RENDER ALL THE TILES ON TOP OF THE BLANK TILE\n String blankTileFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_IMAGE_NAME);\n BufferedImage blankTileImage = miniGame.loadImageWithColorKey(imgPath + blankTileFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileImage(blankTileImage);\n \n // THIS IS A HIGHLIGHTED BLANK TILE FOR WHEN THE PLAYER SELECTS ONE\n String blankTileSelectedFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_SELECTED_IMAGE_NAME);\n BufferedImage blankTileSelectedImage = miniGame.loadImageWithColorKey(imgPath + blankTileSelectedFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileSelectedImage(blankTileSelectedImage);\n \n // FIRST THE TYPE A TILES, OF WHICH THERE IS ONLY ONE OF EACH\n // THIS IS ANALOGOUS TO THE SEASON TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeATiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_A_TILES);\n for (int i = 0; i < typeATiles.size(); i++)\n {\n String imgFile = imgPath + typeATiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_A_TYPE);\n spriteTypeID++;\n }\n \n // THEN THE TYPE B TILES, WHICH ALSO ONLY HAVE ONE OF EACH\n // THIS IS ANALOGOUS TO THE FLOWER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeBTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_B_TILES);\n for (int i = 0; i < typeBTiles.size(); i++)\n {\n String imgFile = imgPath + typeBTiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_B_TYPE);\n spriteTypeID++;\n }\n \n // AND THEN TYPE C, FOR WHICH THERE ARE 4 OF EACH \n // THIS IS ANALOGOUS TO THE CHARACTER AND NUMBER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeCTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_C_TILES);\n for (int i = 0; i < typeCTiles.size(); i++)\n {\n String imgFile = imgPath + typeCTiles.get(i);\n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID); \n for (int j = 0; j < 4; j++)\n {\n initTile(sT, TILE_C_TYPE);\n }\n spriteTypeID++;\n }\n }", "public void Define() {\n manager = new Manager(); // Initialize other classes\n save = new Save();\n store = new Store();\n menu = new Menu();\n postgame = new PostGame();\n\n map = new ImageIcon(\"res/map.png\").getImage(); // Load background image\n \t\n \n // Load the track image\n track = new ImageIcon(\"res/TrackCorner.png\").getImage(); // Initialize the track image file\n \n // Load images for the towers\n tileset_towers[0] = new ImageIcon(\"res/redlasertower.png\").getImage();\n tileset_towers[1] = new ImageIcon(\"res/blueLaserTower.png\").getImage();\n tileset_towers[2] = new ImageIcon(\"res/goldLaserTower.png\").getImage();\n \n // Load images for the indicators\n tileset_indicators[0] = new ImageIcon(\"res/button.png\").getImage();\n tileset_indicators[1] = new ImageIcon(\"res/money.png\").getImage();\n tileset_indicators[2] = new ImageIcon(\"res/heart.png\").getImage();\n \n // Load images for the buttons\n tileset_buttons[0] = new ImageIcon(\"res/redLaserTower.png\").getImage();\n tileset_buttons[1] = new ImageIcon(\"res/blueLaserTower.png\").getImage();\n tileset_buttons[2] = new ImageIcon(\"res/goldLaserTower.png\").getImage();\n tileset_buttons[3] = new ImageIcon(\"res/trash.png\").getImage();\n \n // Load images for the solider\n tileset_soldier[0] = new ImageIcon(\"res/enemyD1.png\").getImage();\n tileset_soldier[1] = new ImageIcon(\"res/enemyD2.png\").getImage();\n \n tileset_soldier[2] = new ImageIcon(\"res/enemyR1.png\").getImage();\n tileset_soldier[3] = new ImageIcon(\"res/enemyR2.png\").getImage();\n \n tileset_soldier[4] = new ImageIcon(\"res/enemyL1.png\").getImage();\n tileset_soldier[5] = new ImageIcon(\"res/enemyL2.png\").getImage();\n \n tileset_soldier[6] = new ImageIcon(\"res/enemyU1.png\").getImage();\n tileset_soldier[7] = new ImageIcon(\"res/enemyU2.png\").getImage();\n \n // Save the configuration of the track\n save.loadSave(new File(\"save/mission.txt\"));\n save.loadHighScore();\n \n // Initialize enemy objects\n for(int i = 0; i < enemies.length; i++) {\n \tenemies[i] = new Enemy();\n }\n \n }", "private void enableAllTiles() {\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\tplayerBoard[j][i].setEnabled(true);\n\t\t\t\tplayerBoard[j][i].setName(j + \"\" + i + \"t\");\n\t\t\t\tplayerBoard[j][i].setForeground(Color.lightGray);\n\t\t\t\tplayerBoard[j][i].setBackground(Color.darkGray);\n\t\t\t}\n\t\t}\n\t}", "public void createTiles() {\r\n Session session = sessionService.getCurrentSession();\r\n Campaign campaign = session.getCampaign();\r\n\r\n tilePane.getChildren().clear();\r\n List<Pc> pcs = null;\r\n try {\r\n pcs = characterService.getPlayerCharacters();\r\n } catch (MultiplePlayersException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n if (pcs != null) {\r\n pcs = pcs.stream().filter(pc -> campaign.getPcs().stream().anyMatch(\r\n campaignPc -> campaignPc.getId().equalsIgnoreCase(pc.getId())\r\n )).collect(Collectors.toList());\r\n\r\n for (Pc pc : pcs) {\r\n SortedMap<String, String> items = getTileItems(pc);\r\n Tile tile = new Tile(pc.getId(), pc.getName(), items);\r\n tile.setOnMouseClicked(mouseEvent -> {\r\n try {\r\n sessionService.updateParticipant(playerManagementService.getRegisteredPlayer().getId(), tile.getObjectId());\r\n } catch (EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n parentController.updateSession(sessionService.getCurrentSession());\r\n parentController.switchView();\r\n });\r\n tilePane.getChildren().add(tile);\r\n }\r\n }\r\n }", "public void updateBoard() {\r\n\t\tfor(int i = 0, k = 0; i < board.getWidth(); i+=3) {\r\n\t\t\tfor(int j = 0; j < board.getHeight(); j+=3) {\r\n\t\t\t\t//Check that there are pieces to display\r\n\t\t\t\tif(k < bag.size()) {\r\n\t\t\t\t\tboard.setTile(bag.get(k), i, j);\r\n\t\t\t\t\tk++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tboard.fillSpace(GridSquare.Type.EMPTY, i, j);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void mouseExited(MouseEvent e) {\n\n\t\tif (shipsToPlace > 0) {\n\t\t\tint x = Integer.parseInt((\"\" + e.getComponent()).charAt(20) + \"\");\n\t\t\tint y = Integer.parseInt((\"\" + e.getComponent()).charAt(21) + \"\");\n\n\t\t\tchar isTileEnabled = (\"\" + e.getComponent()).charAt(22);\n\n\t\t\tif (isTileEnabled == 't')\n\t\t\t\tplayerBoard[x][y].setBackground(Color.darkGray);\n\n\t\t\tif (shipsToPlace == 3) {\n\n\t\t\t\tfor (int i = 1; i < 5; i++) {\n\n\t\t\t\t\tif ((x + i) < 10) {\n\n\t\t\t\t\t\tisTileEnabled = playerBoard[x + i][y].getName().charAt(2);\n\n\t\t\t\t\t\tif (isTileEnabled == 't')\n\t\t\t\t\t\t\tplayerBoard[x + i][y].setBackground(Color.darkGray);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tplayerBoard[x + i][y].setBackground(Color.lightGray);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else if (shipsToPlace == 2) {\n\t\t\t\tif (y + 1 < 10) {// first tile\n\n\t\t\t\t\tisTileEnabled = playerBoard[x][y + 1].getName().charAt(2);\n\n\t\t\t\t\tif (isTileEnabled == 't')\n\t\t\t\t\t\tplayerBoard[x][y + 1].setBackground(Color.darkGray);\n\t\t\t\t\telse\n\t\t\t\t\t\tplayerBoard[x][y + 1].setBackground(Color.lightGray);\n\n\t\t\t\t}\n\n\t\t\t\tif (y + 2 < 10) {// second tile\n\t\t\t\t\tisTileEnabled = playerBoard[x][y + 2].getName().charAt(2);\n\n\t\t\t\t\tif (isTileEnabled == 't')\n\t\t\t\t\t\tplayerBoard[x][y + 2].setBackground(Color.darkGray);\n\t\t\t\t\telse\n\t\t\t\t\t\tplayerBoard[x][y + 2].setBackground(Color.lightGray);\n\t\t\t\t}\n\n\t\t\t} else if (shipsToPlace == 1) {\n\n\t\t\t\tif (y + 1 < 10) {// first tile\n\n\t\t\t\t\tisTileEnabled = playerBoard[x][y + 1].getName().charAt(2);\n\n\t\t\t\t\tif (isTileEnabled == 't')\n\t\t\t\t\t\tplayerBoard[x][y + 1].setBackground(Color.darkGray);\n\t\t\t\t\telse\n\t\t\t\t\t\tplayerBoard[x][y + 1].setBackground(Color.lightGray);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void actualShowWorldChest(){\n\t\tElement el = nifty.getScreen(\"hud\").findElementByName(\"WorldChest\");\n\t\tel.show();\n\t\tfor(Item it : screenManager.getInventoryManager().getOpenWorldChest()){\n\t\t\tif(it.getInventoryPosition() != null){\n\t\t\t\tElement toHide = nifty.getScreen(\"hud\").findElementByName(\"hoverstats-\"+it.getId());\n\t\t\t\tif(toHide!=null){\n\t\t\t\t\ttoHide.setVisible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void displayPossibleMoves() {\n \tGame.permBoard.displayBoard();\n }", "public void printTiles() {\r\n for (int row=0; row<BOARD_MAX_WIDTH; row++) {\r\n for (int col=0; col<BOARD_MAX_WIDTH; col++) {\r\n System.out.print(tiles[row][col]);\r\n }\r\n System.out.println();\r\n }\r\n System.out.println();\r\n }", "void doPlaceBuilding() {\r\n\t\tint idx = buildingTable.getSelectedRow();\r\n\t\tif (idx >= 0) {\r\n\t\t\tidx = buildingTable.convertRowIndexToModel(idx);\r\n\t\t\tTileEntry te = buildingTableModel.rows.get(idx);\r\n\t\t\tif (renderer.selectedRectangle != null && renderer.selectedRectangle.width > 0) {\r\n\t\t\t\tUndoableMapEdit undo = new UndoableMapEdit(renderer.surface);\r\n\t\t\t\t\r\n\t\t\t\tRectangle clearRect = new Rectangle(renderer.selectedRectangle);\r\n\t\t\t\tclearRect.width = ((clearRect.width + te.tile.width) / (te.tile.width + 1)) * (te.tile.width + 1) + 1;\r\n\t\t\t\tclearRect.height = ((clearRect.height + te.tile.height) / (te.tile.height + 1)) * (te.tile.height + 1) + 1;\r\n\t\t\t\tdeleteEntitiesOf(renderer.surface.buildingmap, clearRect, true);\r\n\t\t\t\t\r\n\t\t\t\tfor (int x = renderer.selectedRectangle.x; x < renderer.selectedRectangle.x + renderer.selectedRectangle.width; x += te.tile.width + 1) {\r\n\t\t\t\t\tfor (int y = renderer.selectedRectangle.y; y > renderer.selectedRectangle.y - renderer.selectedRectangle.height; y -= te.tile.height + 1) {\r\n\t\t\t\t\t\tBuilding bld = new Building(te.buildingType, te.surface);\r\n\t\t\t\t\t\tbld.makeFullyBuilt();\r\n\t\t\t\t\t\tbld.location = Location.of(x + 1, y - 1);\r\n\t\t\t\t\t\trenderer.surface.buildings.add(bld);\r\n\t\t\t\t\t\tplaceTile(te.tile, bld.location.x, bld.location.y, SurfaceEntityType.BUILDING, bld);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tplaceRoads(te.surface);\r\n\t\t\t\tundo.setAfter();\r\n\t\t\t\taddUndo(undo);\r\n\t\t\t\trenderer.repaint();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void updateScreen() {\n\t\tZone possibleNewZone = currentZone.getSpace(playerY, playerX).getNextZone();\n\t\tif (possibleNewZone != null) {\n\t\t\tString oldBGMusic = currentZone.getBackgroundMusic();\n\t\t\tcurrentZone = possibleNewZone;\n\t\t\tcurrentZone.enableZoneWarpSpaces();\n\t\t\tplayerX = currentZone.getPlayerStartX();\n\t\t\tplayerY = currentZone.getPlayerStartY();\n\t\t\t\n\n\t\t\tif (!oldBGMusic.equals(currentZone.getBackgroundMusic())) {\n\t\t\t\tmusicPlayer.stop();\n\t\t\t\tmusicPlayer.play(currentZone.getBackgroundMusic(), 100);\n\t\t\t}\n\t\t}\n\n\t\t// Update Panel Colors\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int a = 0; a < 10; a++) {\n\t\t\t\tpanels[i][a].setBackground(currentZone.getSpace(i, a).getColor());\n\t\t\t}\n\t\t}\n\n\t\t// Update Labels\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int a = 0; a < 10; a++) {\n\n\t\t\t\tlabels[i][a].setIcon(currentZone.getSpace(i, a).getPic());\n\t\t\t}\n\t\t}\n\t\t// Shows player in the new space\n\t\tlabels[playerY][playerX].setIcon(playerPic);\n\n\t\t// Shows enemy in the new space\n\t\t// labels[enemyY][enemyX].setIcon(enemyPic);\n\t}", "private void addPieces() {\n gridPane.getChildren().clear();\n Map<Piece, Position> pieces = controller.getAllActivePiecesPositions();\n /* Add the tiles */\n for (int row = 0; row < 8; row++) {\n for (int col = 0; col < 8; col++) {\n Tile tile = new TileView(new Position(row, col));\n gridPane.add(tile.getRootNode(),\n 1 + tile.getPosition().getCol(),\n 1 + tile.getPosition().getRow());\n GridPane.setHgrow(tile.getRootNode(), Priority.ALWAYS);\n GridPane.setVgrow(tile.getRootNode(), Priority.ALWAYS);\n getTiles()[row][col] = tile;\n tile.getRootNode().setOnMouseClicked(\n tileListener(tile));\n tile.clear();\n tile.setSymbol(\"\");\n }\n }\n /* Add the pieces */\n for (Piece p : pieces.keySet()) {\n Position placeAt = pieces.get(p);\n getTileAt(placeAt).setSymbol(p.getType().getSymbol(p.getSide()));\n }\n /* Add the coordinates around the perimeter */\n for (int i = 1; i <= 8; i++) {\n Text coord1 = new Text((char) (64 + i) + \"\");\n coord1.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord1.setFill(Color.WHITE);\n GridPane.setHalignment(coord1, HPos.CENTER);\n gridPane.add(coord1, i, 0);\n\n Text coord2 = new Text((char) (64 + i) + \"\");\n coord2.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord2.setFill(Color.WHITE);\n GridPane.setHalignment(coord2, HPos.CENTER);\n gridPane.add(coord2, i, 9);\n\n Text coord3 = new Text(\" \" + (9 - i) + \" \");\n coord3.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord3.setFill(Color.WHITE);\n GridPane.setHalignment(coord3, HPos.CENTER);\n gridPane.add(coord3, 0, i);\n\n Text coord4 = new Text(\" \" + (9 - i) + \" \");\n coord4.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord4.setFill(Color.WHITE);\n GridPane.setHalignment(coord4, HPos.CENTER);\n gridPane.add(coord4, 9, i);\n }\n }", "public void render() {\n\n /*\n gridCache is a much more efficient way of rendering the grid -- instead of iterating every single location with each render(),\n it only draws the locations which have changed, cutting down on lag.\n */\n\n ArrayList<Location> queue = gridCache;\n\n if (doFullRender) { // On the first render it should draw the entire grid\n background(255, 255, 255);\n queue = grid;\n doFullRender = false;\n this.bar = new ScoreBar(players, 0, topHeight/2 + topHeight/4);\n }\n\n for (PowerUp p : powerUps) { // Workaround for cache being overwritten\n p.addToCache();\n }\n\n for (Location loc : queue) {\n if (loc.getType() != LocationType.POWERUP) {\n int c = loc.getColor();\n stroke(c);\n fill(c);\n\n rect(loc.getX(), loc.getY(), pixelSize-1, pixelSize-1);\n } else {\n Location l2 = getLocation(loc);\n if (l2 != null) {\n l2.setType(LocationType.POWERUP);\n }\n }\n }\n\n for (PowerUp p : powerUps) {\n p.render();\n }\n\n gridCache = new ArrayList();\n}", "void showUI(Player player) {\n\t\tString title = (this.range!=-1 ? \"BCL:\"+this.getOwnerName()+\"@\"+this.getLoc() : \"New \"+(this.isAdminChunkLoader()?\"Admin \":\"\")+\"BetterChunkLoader\");\n\t\tif (title.length()>32) {\n\t\t\ttitle=title.substring(0, 32);\n\t\t}\n\t\tInventory inventory = Bukkit.createInventory(this, 9, title);\n\n\t\taddInventoryOption(inventory, 0, Material.REDSTONE_TORCH_ON, \"Remove\");\n\t\t\n\t\tfor (byte i=0; i<5; i++) {\n\t\t\taddInventoryOption(inventory, i+2, Material.MAP, \"Size \"+this.sizeX(i)+(this.getRange()==i?\" [selected]\":\"\"));\n\t\t}\n\t\t\n\t\tplayer.openInventory(inventory);\n\t}", "public void drawOverview()\n\t{\n\t\tstackRows = (int)Math.ceil(stacks.size()/9.f);\n\t\tfor(int y = 0; y < 6; y++)\n\t\t{\n\t\t\tfor(int x = 0; x < 9; x++)\n\t\t\t{\t\t\n\t\t\t\t\tint slotIndex = x+9*y;\n\t\t\t\t\tint stackIndex = x+9*(y+scrollOffset);\n\t\t\t\t\t//System.out.println(slotIndex);\n\t\t\t\t\tSlot slot = new Slot(inventory,slotIndex, x*24, y*18);\t\t\t\t\n\t\t\t\t\tthis.addSlotToContainer(slot);\n\t\t\t\t\t\n\t\t\t\t\tif(stackIndex < stacks.size())\n\t\t\t\t\t\tslot.putStack(stacks.get(stackIndex));\n\t\t\t\t\telse\n\t\t\t\t\t\tslot.putStack(null);\n\t\t\t}\n\t\t}\n\t\t/*int i =0;\n\t\tfor(ItemStack stack : stacks)\n\t\t{\n\t\t\tthis.inventorySlots.get(i).putStack(stack);\n\t\t\t\n\t\t\ti++;\n\t\t}*/\n\t\t//this.inventoryItemStacks = stacks;\n\t}", "private Array<Tile>[] walk() {\n float targetY = currentTile.y + 1;\n Vector2 previousTile = new Vector2(currentTile.x, currentTile.y);\n\n Array<Vector2> tiles = new Array<Vector2>();\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n\n while(currentTile.y < targetY) {\n float rnd = random.nextFloat();\n\n if(rnd > 0.75f) { // up\n Array<Tile> grassRow = new Array<Tile>();\n Array<Tile> treeRow = new Array<Tile>();\n\n for(int x = 1; x <= 5; x++) {\n Vector2 vector = new Vector2(x, currentTile.y);\n\n GrassNEW grass = grassPool.obtain();\n grass.init(vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n grassRow.add(grass);\n\n if(!tiles.contains(vector, false)) {\n if(random.nextFloat() > 0.3) {\n TreeNEW tree = treePool.obtain();\n tree.init(vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n treeRow.add(tree);\n }\n } else {\n if(random.nextFloat() > 0.99) {\n Collectible power = new PowerUpSpikes(world, spikesTexture, vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n collectibles.add(power);\n } else {\n if(random.nextFloat() > 0.5) {\n Coin coin = new Coin(world, coinTexture, vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n collectibles.add(coin);\n }\n }\n }\n }\n\n currentTile.add(0, 1);\n\n Array<Tile>[] ret = new Array[2];\n ret[0] = grassRow;\n ret[1] = treeRow;\n\n return ret;\n } else if(rnd > 0.375) { // right\n if(currentTile.x < 5 && Math.abs(previousTile.x - currentTile.x) <= 2) {\n currentTile.add(1, 0);\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n }\n } else { // left\n if(currentTile.x > 1 && Math.abs(previousTile.x - currentTile.x) <= 2) {\n currentTile.add(-1, 0);\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n }\n }\n }\n\n return null; // will never happen\n }", "GameState requestActionTile();", "public void printMap()\n {\n if(this.firstTime)\n {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() { setVisible(true); }\n });\n this.firstTime = false;\n }\n screen.repaint();\n }", "public void arrangeBoard(){\n for(int i=0;i<6;i++){\n for(int j=0;j<6;j++){\n if(i==2 && j==0){ //set the target ship.\n gbc.gridx = 0;\n gbc.gridy = 2;\n gbc.gridwidth = 2;\n targetShip = new JLabel();\n targetShip.setIcon(new ImageIcon(\"design\\\\ships\\\\targetShip.png\"));\n mainPanel.add(targetShip,gbc);\n }\n else if(i==2 && j==1){\n continue;\n }\n else{ //put free spaces in the other places.\n gbc.gridx = j;\n gbc.gridy = i;\n gbc.gridwidth = 1;\n gbc.gridheight = 1;\n freeSpaceButton freeSpace = new freeSpaceButton(new Point(j,i));\n mainPanel.add(freeSpace,gbc);\n }\n }\n }\n }", "private void setAvailableFromLastMove(int large, int smallx) {\n clearAvailable();\n // Make all the tiles at the destination available\n if (large != -1) {\n\n\n for (int i = 0; i < 9; i++) {\n for (int dest = 0; dest < 9; dest++) {\n if (!phaseTwo) {\n if (!done) {\n if (i == large) {\n TileAssignment5 tile = mSmallTiles[large][dest];\n if ((tile.getOwner() == TileAssignment5.Owner.NOTCLICKED))\n addAvailable(tile);\n\n switch (smallx) {\n case 0:\n int a[] = adjacencyList.get(0);\n\n for (int x : a) {\n TileAssignment5 tile1 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile1)) {\n mAvailable.remove(tile1);\n //}\n }\n break;\n case 1:\n int a1[] = adjacencyList.get(1);\n\n for (int x : a1) {\n TileAssignment5 tile2 = mSmallTiles[large][x];\n // if(mAvailable.contains(tile2)) {\n mAvailable.remove(tile2);\n //}\n }\n break;\n case 2:\n int a2[] = adjacencyList.get(2);\n for (int x : a2) {\n TileAssignment5 tile3 = mSmallTiles[large][x];\n // if(mAvailable.contains(tile3)) {\n mAvailable.remove(tile3);\n // }\n }\n break;\n case 3:\n int a3[] = adjacencyList.get(3);\n for (int x : a3) {\n TileAssignment5 tile4 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile4)) {\n mAvailable.remove(tile4);\n // }\n }\n break;\n case 4:\n int a4[] = adjacencyList.get(4);\n for (int x : a4) {\n TileAssignment5 tile5 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile5)) {\n mAvailable.remove(tile5);//}\n\n }\n break;\n case 5:\n int a5[] = adjacencyList.get(5);\n for (int x : a5) {\n TileAssignment5 tile6 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile6)) {\n mAvailable.remove(tile6);//}\n\n }\n break;\n case 6:\n int a6[] = adjacencyList.get(6);\n for (int x : a6) {\n TileAssignment5 tile7 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile7)) {\n mAvailable.remove(tile7);//}\n\n }\n break;\n case 7:\n int a7[] = adjacencyList.get(7);\n for (int x : a7) {\n TileAssignment5 tile8 = mSmallTiles[large][x];\n // if(mAvailable.contains(tile8)) {\n mAvailable.remove(tile8);//}\n\n }\n break;\n case 8:\n int a8[] = adjacencyList.get(8);\n for (int x : a8) {\n TileAssignment5 tile9 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile9)) {\n mAvailable.remove(tile9);//}\n\n }\n break;\n }\n\n } else {\n if (DoneTiles.contains(i)) {\n continue;\n }\n TileAssignment5 tile = mSmallTiles[i][dest];\n tile.setOwner(TileAssignment5.Owner.FREEZED);\n tile.updateDrawableState('a', 0);\n }\n } else { //OnDOnePressed\n if (DoneTiles.contains(i)) {\n continue;\n }\n\n // Log.d(\"Comes \", \"Hereeee\");\n if (i != large) {//Correct answer\n TileAssignment5 tile = mSmallTiles[i][dest];\n tile.setOwner(TileAssignment5.Owner.NOTCLICKED);\n addAvailable(tile);\n tile.updateDrawableState('a', 0);\n //done =false;\n }\n }\n\n\n }else {\n/*\n ileAssignment5 thistile = mSmallTiles[i][dest];\n if(((Button)thistile.getView()).getText().charAt(0)==' '){\n mAvailable.remove(thistile);\n thistile.updateDrawableState('a', 0);\n }\n*/\n\n\n if (i == large) {\n if (dest == smallx) {\n TileAssignment5 tile1 = mSmallTiles[large][dest];\n tile1.setOwner(TileAssignment5.Owner.CLICKED);\n if (mAvailable.contains(tile1)) {\n mAvailable.remove(tile1);\n }\n tile1.updateDrawableState('a', 0);\n\n } else {\n TileAssignment5 tile2 = mSmallTiles[large][dest];\n if (!(tile2.getOwner() == TileAssignment5.Owner.CLICKED)) {\n\n tile2.setOwner(TileAssignment5.Owner.FREEZED);\n }\n if (mAvailable.contains(tile2)) {\n mAvailable.remove(tile2);\n }\n tile2.updateDrawableState('a', 0);\n }\n\n\n } else {\n\n\n TileAssignment5 tile3 = mSmallTiles[i][dest];\n if (!(tile3.getOwner() == TileAssignment5.Owner.CLICKED)) {\n tile3.setOwner(TileAssignment5.Owner.NOTCLICKED);\n }\n // if(((((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(null))||((Button)mSmallTiles[i][dest].getView()).getText().toString().charAt(0)==' ')||(((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(\"\"))){\n\n if ((!mAvailable.contains(tile3))&&(tile3.getView().toString().charAt(0)!=' ')){\n mAvailable.add(tile3);\n }\n\n\n tile3.updateDrawableState('a', 0);\n\n\n\n TileAssignment5 tile = mSmallTiles[i][dest];\n if(((Button)mSmallTiles[i][dest].getView()).getText().toString().charAt(0)==' '){\n // Log.d(\"Yes \", \"it came\");\n if(mAvailable.contains(tile)){\n mAvailable.remove(tile);\n }\n\n }\n else{\n if(!mAvailable.contains(tile)){\n addAvailable(tile);}\n }\n\n\n\n\n\n\n\n\n\n /*\n\n\n\n\n\n\n ileAssignment5 tile = mSmallTiles[i][dest];\n ileAssignment5 tile = mSmallTiles[i][dest];\n try{\n if(((((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(null))||((Button)mSmallTiles[i][dest].getView()).getText().toString().charAt(0)==' ')||(((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(\"\"))){\n // Log.d(\"Yes \", \"it came\");\n if(mAvailable.contains(tile)){\n mAvailable.remove(tile);\n }\n }\n else{\n if(!mAvailable.contains(tile)){\n addAvailable(tile);}\n }}catch (ArrayIndexOutOfBoundsException e){\n\n\n }catch ( StringIndexOutOfBoundsException e){\n\n }\n\n*/\n }\n\n }\n }\n }\n }\n // If there were none available, make all squares available\n if (mAvailable.isEmpty()&&large==-1) {\n setAllAvailable();\n }\n }", "public void start(){\n getBoard();\n prepareBoard();\n renderBoard();\n }", "public void showBoard() {\n for (int i = 0; i < booleanBoard.length; i++) {\n for (int j = 0; j < booleanBoard.length; j++) {\n if (strBoard[i][j].equals(\"possible move\") || strBoard[i][j].equals(\"castling\")) {\n gA.getBoard()[i][j].setBackgroundResource(R.color.green);\n }\n if (strBoard[i][j].equals(\"possible kill\")) {\n gA.getBoard()[i][j].setBackgroundResource(R.color.red);\n }\n if (booleanBoard[i][j]) {\n if (figBoard[i][j].getColor().equals(\"white\")) {\n gA.getBoard()[i][j].setRotation(180);\n } else {\n gA.getBoard()[i][j].setRotation(0);\n }\n gA.getBoard()[i][j].setImageResource(figBoard[i][j].getImageResource());\n } else {\n gA.getBoard()[i][j].setImageResource(0);\n }\n }\n }\n }", "public void show() {\r\n\t\tif (getSpawnLocation() == null)\r\n\t\t\treturn;\r\n\r\n\t\tif (!checkItem()) {\r\n\t\t\titem \t= getWorld().dropItem(getSpawnLocation(), getItemStack());\r\n\t\t\titem.setVelocity(new Vector(0, 0.1, 0));\r\n\t\t\titem.setPickupDelay(1000);\r\n\t\t\t\r\n\t\t}\r\n\t\tisVisible \t= true;\r\n\t}", "public void start() {\n System.out.println(\"Hello player. In front of you is a 3 x 3 grid of tiles numbered from 1 to 8, and \\n\" +\n \"the goal is to put the tiles in increasing order from left to right and top to bottom \\n\" +\n \"as shown below. \\n\");\n\n int[][] sample = {{1,2,3},{4,5,6},{7,8,0}};\n Board sampleBoard = new Board(sample);\n\n System.out.println(sampleBoard.toString());\n\n System.out.println(\"After you have solved the board or you have forfeited by pressing the SPACE key, you can \\n\" +\n \"right-click to generate a new board and then press enter to start the timer again.\\n\\n\" +\n \"If you ever have any trouble, you can request the computer\\n\" +\n \"to solve the board by forfeiting and pressing ENTER to let the computer walk you through a solution. \\n\\n\" +\n \"When you are ready, PRESS ENTER KEY TO START THE TIMER OR PRESS SPACE TO FORFEIT AND TRY ANOTHER BOARD. \");\n\n\n }", "public void rebuild()\n {\n this.tilePropertyPanel.table.clearChildren();\n this.spritePropertyPanel.table.clearChildren();\n this.mapPropertyPanel.removeablePropertyPanel.table.clearChildren();\n if(map.selectedLayer != null)\n {\n this.layerPropertyPanel.setVisible(true);\n this.layerPropertyPanel.layerWidthProperty.value.setText(Integer.toString(map.selectedLayer.width));\n this.layerPropertyPanel.layerHeightProperty.value.setText(Integer.toString(map.selectedLayer.height));\n this.layerPropertyPanel.layerZProperty.value.setText(Float.toString(map.selectedLayer.z));\n }\n else\n this.layerPropertyPanel.setVisible(false);\n if(map.tileMenu.selectedTiles.size == 1)\n {\n if(map.tileMenu.selectedTiles.first().tool == TileMenuTools.TILE)\n {\n Array<PropertyField> tileProperties = map.tileMenu.selectedTiles.first().lockedProperties;\n for (int i = 0; i < tileProperties.size; i++)\n this.tilePropertyPanel.table.add(tileProperties.get(i)).padBottom(1).row();\n this.tilePropertyPanel.setVisible(true);\n }\n else if(map.tileMenu.selectedTiles.first().tool == TileMenuTools.SPRITE)\n {\n Array<PropertyField> spriteProperties = map.tileMenu.selectedTiles.first().lockedProperties;\n for (int i = 0; i < spriteProperties.size; i++)\n this.spritePropertyPanel.table.add(spriteProperties.get(i)).padBottom(1).row();\n this.spritePropertyPanel.setVisible(true);\n }\n }\n if(map.selectedSprites.size > 0)\n {\n Array<PropertyField> spriteProperties = map.selectedSprites.first().lockedProperties;\n for (int i = 0; i < spriteProperties.size; i++)\n this.spritePropertyPanel.table.add(spriteProperties.get(i)).padBottom(1).row();\n this.spritePropertyPanel.setVisible(true);\n }\n if(map.selectedSprites.size == 0 && map.tileMenu.selectedTiles.size == 0)\n {\n for(int i = 0; i < mapPropertyPanel.properties.size; i ++)\n {\n this.mapPropertyPanel.removeablePropertyPanel.table.add(mapPropertyPanel.properties.get(i)).padBottom(1).row();\n }\n this.mapPropertyPanel.removeablePropertyPanel.setVisible(true);\n }\n if(this.layerPropertyPanel.isVisible())\n this.layerPropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.layerPropertyPanel.setSize(getWidth(), 0);\n if(this.tilePropertyPanel.isVisible())\n this.tilePropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.tilePropertyPanel.setSize(getWidth(), 0);\n if(this.spritePropertyPanel.isVisible())\n this.spritePropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.spritePropertyPanel.setSize(getWidth(), 0);\n if(this.mapPropertyPanel.removeablePropertyPanel.isVisible())\n this.mapPropertyPanel.removeablePropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.mapPropertyPanel.removeablePropertyPanel.setSize(getWidth(), 0);\n\n this.propertyPanel.rebuild();\n this.propertyTable.invalidateHierarchy();\n\n setSize(getWidth(), getHeight()); // refits everything\n }", "private void begin(){\n for(int i = 0; i < height; i++){ //y\n for(int j = 0; j < width; j++){ //x\n for(int k = 0; k < ids.length; k++){\n if(m.getTileids()[j][i].equals(ids[k])){\n map[j][i] = Handler.memory.getTiles()[k];\n //Handler.debug(\"is tile null: \" + (Handler.memory.getTiles()[k] == null));\n \n k = ids.length;\n }else if(k == (ids.length - 1)){\n Handler.debug(\"something went wrong\", true);\n\n }\n }\n }\n }\n mt.setCleared(clear);\n mt.setMap(map);\n \n \n }", "private void setupPhase() {\n ClickObserver.getInstance().setTerrainFlag(\"Setup: SelectStartTerrain\");\n for (final Player p : playerList) {\n \t\n this.player = p;\n player.flipAllUp();\n ClickObserver.getInstance().setActivePlayer(this.player);\n pause();\n \n // Cover all terrains, uncover starting pos ones\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getRackGui().setOwner(player);\n \tBoard.applyCovers();\n \tfor (Coord spot : startingPos) {\n \t\tif (!Board.getTerrainWithCoord(spot).isOccupied())\n \t\t\tBoard.getTerrainWithCoord(spot).uncover();\n \t}\n GUI.getHelpText().setText(\"Setup Phase: \" + p.getName() \n + \", select a valid hex to start your kingdom.\");\n }\n });\n while( isPaused ){\n int num = p.getHexesOwned().size();\n if( num == 1 ){\n unPause();\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \tPlayerBoard.getInstance().updateGold(player);\n }\n });\n System.out.println(\"done\");\n }\n try { Thread.sleep(100); } catch( Exception e ){ return; }\n }\n player.flipAllDown();\n }\n pause();\n \n // Now that all players have selected starting spots, flip over all terrains\n // *Note: Not sure I understand the rules with regards to this, but I think this is right\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \t Board.showTerrains();\n Board.removeBadWaters();\n }\n });\n while( isPaused ){\n try { Thread.sleep(100); } catch( Exception e ){ return; }\n }\n \n // Check if player has at least two land hexes around starting spot\n for( final Player p : playerList ) {\n this.player = p;\n\n player.flipAllUp();\n ClickObserver.getInstance().setActivePlayer(this.player);\n pause();\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getHelpText().setText(p.getName() \n + \", select a water hex to replace with from deck\");\n Board.removeBadAdjWaters();\n }\n });\n while( isPaused ){\n try { Thread.sleep(100); } catch( Exception e ){ return; }\n }\n\n player.flipAllDown();\n }\n \n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \t\t\tTileDeck.getInstance().slideOut();\n }\n });\n\n \n // next prompt each player to select an adjacent hex\n ClickObserver.getInstance().setTerrainFlag(\"Setup: SelectTerrain\");\n // loop 2 times so each player adds 2 more hexes\n for( int i=0; i<2; i++ ){\n for( final Player p : playerList ) {\n this.player = p;\n\n player.flipAllUp();\n ClickObserver.getInstance().setActivePlayer(this.player);\n pause();\n \n final ArrayList<Terrain> ownedHexes = player.getHexesOwned();\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n Board.applyCovers();\n }\n });\n \tfor (Terrain t1 : ownedHexes) {\n \t\tIterator<Coord> keySetIterator = Board.getTerrains().keySet().iterator();\n \twhile(keySetIterator.hasNext()) {\n \t\tCoord key = keySetIterator.next();\n \t\tfinal Terrain t2 = Board.getTerrains().get(key);\n \t\tif (t2.compareTo(t1) == 1 && !t2.isOccupied() && !t2.getType().equals(\"SEA\")) {\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \t\t\tt2.uncover();\n }\n });\n \t\t}\n \t}\n \t}\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getRackGui().setOwner(player);\n GUI.getHelpText().setText(\"Setup Phase: \" + p.getName() \n + \", select an adjacent hex to add to your kingdom.\");\n }\n });\n // forces the GameLoop thread to wait until unpaused\n while( isPaused ){\n try { Thread.sleep(100); } catch( Exception e ){ return; }\n }\n player.flipAllDown();\n }\n }\n // prompt each player to place their first tower\n ClickObserver.getInstance().setTerrainFlag(\"Construction: ConstructFort\");\n for( final Player p : playerList ) {\n this.player = p;\n \n player.flipAllUp();\n ClickObserver.getInstance().setActivePlayer(this.player);\n pause();\n \n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n Board.applyCovers();\n GUI.getRackGui().setOwner(player);\n GUI.getHelpText().setText(\"Setup Phase: \" + p.getName() \n + \", select one of your tiles to place a tower.\");\n }\n });\n \n // sleeps to avoid null pointer (runLater is called before player.getHexesOwned() below)\n try { Thread.sleep(50); } catch( Exception e ){ return; }\n ArrayList<Terrain> ownedHexes = player.getHexesOwned();\n \n for (final Terrain t : ownedHexes) {\n \t\n \tif (t.getOwner().getName().equals(player.getName())) { \n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \t\tt.uncover();\n }\n });\n \t}\n }\n while( isPaused ){\n try { Thread.sleep(100); } catch( Exception e ){ return; }\n }\n player.flipAllDown();\n }\n // allow players to add some or all things to their tiles.\n ClickObserver.getInstance().setTerrainFlag(\"RecruitingThings: PlaceThings\");\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getDoneButton().setDisable(false);\n }\n });\n for (final Player p : playerList) {\n this.player = p;\n player.flipAllUp();\n doneClicked = false;\n ClickObserver.getInstance().setClickedTerrain(p.getHexesOwned().get(2));\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \tClickObserver.getInstance().whenTerrainClicked();\n GUI.getRackGui().setOwner(player);\n Board.applyCovers();\n GUI.getHelpText().setText(\"Setup Phase: \" + p.getName()\n + \", place some or all of your things on a tile you own.\");\n }\n });\n ClickObserver.getInstance().setActivePlayer(this.player);\n pause();\n ArrayList<Terrain> ownedHexes = player.getHexesOwned();\n for (final Terrain t : ownedHexes) {\n \tif (t.getOwner().getName().equals(player.getName())) {\n\t Platform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \t\tt.uncover();\n\t }\n\t });\n \t}\n }\n \n while (isPaused) {\n try { Thread.sleep(100); } catch(Exception e) { return; }\n }\n player.flipAllDown();\n }\n ClickObserver.getInstance().setTerrainFlag(\"\");\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n Board.removeCovers();\n }\n });\n }", "public void updateOpenTiles(){\r\n\t\tthis.openTiles = getOpenTiles() - 1;\r\n\t}", "public void setAdjacent()\r\n {\n \t\r\n adjacentTiles = new Tile[6];\r\n \r\n \r\n //Driver.map[VERT][HOR]\r\n \r\n if(verticalPos < Driver.map.length && horizontalPos > 1) //topleft\r\n {\r\n \ttopLeft = Driver.map[verticalPos + 1][horizontalPos - 1];\r\n }\r\n else\r\n {\r\n \ttopLeft = null;\r\n }\r\n \r\n if(verticalPos < Driver.map.length - 2) //top\r\n {\r\n \ttop = Driver.map[verticalPos + 2][horizontalPos];\r\n }\r\n else\r\n {\r\n \ttop = null;\r\n }\r\n \r\n if(verticalPos < Driver.map.length && horizontalPos < Driver.map[0].length) //topright\r\n {\r\n \ttopRight = Driver.map[verticalPos + 1][horizontalPos + 1];\r\n }\r\n else\r\n {\r\n \ttopRight = null;\r\n }\r\n \r\n if(verticalPos > 1 && horizontalPos < Driver.map[0].length) //bottomright\r\n {\r\n \tbottomRight = Driver.map[verticalPos - 1][horizontalPos + 1];\r\n }\r\n else\r\n {\r\n \tbottomRight = null;\r\n }\r\n \r\n if(verticalPos > 2) //bottom\r\n {\r\n \tbottom = Driver.map[verticalPos - 2][horizontalPos];\r\n }\r\n else\r\n {\r\n \tbottom = null;\r\n }\r\n \r\n if(verticalPos > 1 && horizontalPos > 1) //botttomLeft\r\n {\r\n \tbottomLeft = Driver.map[verticalPos - 1][horizontalPos - 1];\r\n }\r\n else\r\n {\r\n \tbottomLeft = null;\r\n }\r\n \t\r\n \r\n adjacentTiles[0] = topLeft;\r\n adjacentTiles[1] = top;\r\n adjacentTiles[2] = topRight;\r\n adjacentTiles[3] = bottomRight;\r\n adjacentTiles[4] = bottom;\r\n adjacentTiles[5] = bottomLeft;\r\n \r\n \r\n// System.out.print(\"main tile \" + getHor() + \", \" + getVert() + \" \");\r\n// for(int i = 0; i < adjacentTiles.length; i++)\r\n// {\r\n// \tif( adjacentTiles[i] != null)\r\n// \t\tSystem.out.print(adjacentTiles[i].getHor() + \", \" + adjacentTiles[i].getVert() + \" | \");\r\n// \telse\r\n// \t\tSystem.out.print(\"null \");\r\n// }\r\n// System.out.println();\r\n \r\n }", "private void updateAllTiles() {\r\n mEntireBoard.updateDrawableState();\r\n for (int large = 0; large < 9; large++) {\r\n mLargeTiles[large].updateDrawableState();\r\n for (int small = 0; small < 9; small++) {\r\n mSmallTiles[large][small].updateDrawableState();\r\n }\r\n }\r\n }", "public void testMapping() {\n\t\ttry { Thread.sleep(1000); } catch (Exception e) { }\n\t\tPuzzleView view = app.getPuzzleView();\n\t\t\n\t\tapp.setVisible(true);\n\t\t\n\t}", "public void blank() {\r\n\t\trunning = false;// sets the simulation to stopped\r\n\t\tfor (int i = 0; i < TOTAL_TILES; i++)// loops through all tiles\r\n\t\t\tnodes[i] = new Node(new Point(i / WIDTH_TILES * SIZE_TILES, i % HEIGHT_TILES * SIZE_TILES), new ImageIcon(\"empty.png\").getImage(), false, \"empty\");// sets empty tile\r\n\t}", "@Override\r\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\tif ( !input ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\ttileVisible = true;\r\n\t\ttileX = arg0.getX() / 36;\r\n\t\ttileY = arg0.getY() / 36;\r\n\t\trepaint();\r\n\t}", "public static void render(Graphics g, Tile tile, Point pxCenterPoint, float value) {\n Point topLeft = new Point(pxCenterPoint.x - (tile.getImage().getWidth() / 2), pxCenterPoint.y - (tile.getImage().getHeight() / 2));\n if (value >= 0) {\n\n\n if (tile.getType() == \"Mountain\") {\n\n g.drawImage(GraphicAssets.col, topLeft.x, topLeft.y + 19 + 21, 60, tile.getImageHeight() / 2, null);\n g.drawImage(GraphicAssets.base, topLeft.x, topLeft.y + 19 + 19 + tile.getImageHeight() / 2, 60, 19, null);\n g.drawImage(tile.getImage(), topLeft.x, topLeft.y, tile.getImage().getWidth(), tile.getImage().getHeight(), null);\n\n } else if (tile.getType() == \"Water\" || tile.getType() == \"Grass\" || tile.getType() == \"Running\") {\n //\n //System.out.println(topLeft.y);\n g.drawImage(GraphicAssets.col, topLeft.x, topLeft.y + 10 + 19, 60, tile.getImageHeight() / 2, null);\n g.drawImage(GraphicAssets.base, topLeft.x, topLeft.y + 10 + 19 + tile.getImageHeight() / 2, 60, 19, null);\n g.drawImage(tile.getImage(), topLeft.x, topLeft.y + 10, tile.getImage().getWidth(), tile.getImage().getHeight(), null);\n } else {\n g.drawImage(GraphicAssets.col, topLeft.x, topLeft.y + 10 + 19, 60, tile.getImageHeight() / 2, null);\n g.drawImage(GraphicAssets.base, topLeft.x, topLeft.y + 10 + 19 + tile.getImageHeight() / 2, 60, 19, null);\n g.drawImage(tile.getImage(), topLeft.x, topLeft.y + 10, tile.getImage().getWidth(), tile.getImage().getHeight(), null);\n }\n if (tile.hasAreaEffect()) {\n areaEffectRenderer.render(g, tile.getAreaEffect(), topLeft);\n }\n\n if (tile.hasItem()) {\n for (Item item : tile.getItems()) {\n itemRenderer.render(g, item, topLeft);\n }\n }\n }\n }", "@Override\n public boolean isTileFriendly(){\n return false;\n }", "@Override\n\tpublic void move() {\n\t\tCoordinate currPos = new Coordinate(control.getPosition());\n\t\t\n\t\t// if we have enough packages head to the exit\n\t\tif (control.numParcels() <= control.numParcelsFound()) {\n\t\t\t// if we don't have a path to the exit\n\t\t\tif (control.currentPath == null || !control.isHeadingToFinish) {\t\n\t\t\t\t// find path to exit\n\t\t\t\tArrayList<Coordinate> tempPath = null;\n\t\t\t\t// See if there's a path without needing to go through hazards\n\t\t\t\ttempPath = control.findPath(currPos, control.finish.get(0), control.hazardsMap.keySet());\n\t\t\t\tSet<Coordinate> tempHazards = new HashSet<>(control.hazardsMap.keySet());\n\t\t\t\t// If no path without going through hazards, just go through them\n\t\t\t\tif (tempPath == null || tempPath.size() == 0) {\n\t\t\t\t\tfor (Coordinate coord : control.hazardsMap.keySet()) {\n\t\t\t\t\t\ttempHazards.remove(coord);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If it's a valid map, there should be a path now\n\t\t\t\tcontrol.setPath(control.findPath(currPos, control.finish.get(0), tempHazards));\n\t\n\t\t\t\tcontrol.isHeadingToFinish = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\theadTowardsPackages(currPos);\n\t\t\n\t\texploreUnseenMap(currPos);\n\t\t\n\t\tMapTile currTile = control.getView().get(currPos);\n\t\tboolean isHealth = false;\n\t\tif (currTile.getType() == MapTile.Type.TRAP) {\n\t\t\tTrapTile trap = (TrapTile) currTile;\n\t\t\tif (trap.getTrap().equals(\"health\")) {\n\t\t\t\tisHealth = true;\n\t\t\t}\n\t\t}\n\t\tif (isHealth && (control.getHealth() < HEALTH_TRAP_THRESHOLD)) {\n\t\t\t// do nothing\n\t\t\treturn;\n\t\t} else {\n\t\t\tisHealth = false;\n\t\t\tcontrol.moveTowards(control.dest);\n\t\t}\n\t\t\n\t}", "private void showInstructScreen() {\n\t\twhile (!Mouse.isButtonDown(0)\n\t\t\t\t|| !(Mouse.getX() >= 643 && Mouse.getX() <= 758 && Mouse.getY() <= (displayHeight - 494) && Mouse.getY() >= (displayHeight - 562))) {\n\t\t\t// draw instructions screen\n\t\t\tdrawScreen(sprite.get(\"instructScreen\"));\n\t\t\t\n\t\t\t// update display\n\t\t\tupdateDisplay();\n\t\t}\n\t}", "void loadCheckerBoard(int tileSize);", "public void enableTiles(boolean enable)\n {\n // PUT ALL THE TILES IN ONE PLACE WHERE WE CAN PROCESS THEM TOGETHER\n moveAllTilesToStack();\n \n // GO THROUGH ALL OF THEM \n for (MahjongSolitaireTile tile : stackTiles)\n {\n // AND SET THEM PROPERLY\n if (enable)\n tile.setState(VISIBLE_STATE);\n else\n tile.setState(INVISIBLE_STATE);\n } \n }", "protected boolean selectTile(String player, int coordinate, String area, MBproduction.buildingType build){\n String culture = null;\n boolean AIflag = false;\n boolean placeFlag = false;\n MBproduction.terrainTypeEnum selected;\n String normalizeSelected;\n /*******************************/\n player=player.toLowerCase();\n switch(player.toLowerCase()){\n case\"human\":\n culture = playBoard.humanCulture();\n break;\n case\"ai1\":\n culture = playBoard.AICulture1();\n break;\n case\"ai2\":\n culture = playBoard.AICulture2();\n break;\n default:\n break;\n }\n selected = playBoard.getIndiTerrain(coordinate);\n normalizeSelected = \n selected.toString().substring(0, selected.toString().length()-1);\n switch(culture.toLowerCase()){\n //norse\n case\"norse\":\n switch(area.toLowerCase()){\n case\"production\":\n for (int i = 0; i < norseProduction.size(); i ++){\n if (norseProduction.get(i).getName().equalsIgnoreCase(normalizeSelected)){\n norseProduction.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(selected.getPath())));\n norseProduction.remove(i);\n playBoard.updateProductionResourceCube(player, selected);\n playBoard.exileTerrain(selected); \n tileSelection.get(coordinate).setEnabled(false);\n stackAI.remove(stackAI.indexOf(coordinate));\n placeFlag = true;AIflag = true;\n break;\n }\n }\n break;\n //!!!!!!!!WARNNING!!!!!!!! NEED TO MODIFY FOR ITERATION II\n case\"city\":\n for (int i = 0; i < norseCity.size(); i ++){\n if (norseCity.get(i).getIcon() == null){\n norseCity.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(build.getPath())));\n placeFlag = true;\n break;\n }\n }\n break;\n default:\n break;\n }\n break;\n //greek \n case\"greek\":\n switch(area.toLowerCase()){\n case\"production\":\n for (int i = 0; i < greekProduction.size(); i ++){\n if (greekProduction.get(i).getName().equalsIgnoreCase(normalizeSelected)){\n greekProduction.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(selected.getPath())));\n greekProduction.remove(i);\n playBoard.updateProductionResourceCube(player, selected);\n playBoard.exileTerrain(selected); \n tileSelection.get(coordinate).setEnabled(false);\n stackAI.remove(stackAI.indexOf(coordinate));\n placeFlag = true;AIflag = true;\n break;\n }\n }\n break;\n //!!!!!!!!WARNNING!!!!!!!! NEED TO MODIFY FOR ITERATION II\n case\"city\":\n for (int i = 0; i < greekCity.size(); i ++){\n if (greekCity.get(i).getIcon() == null){\n greekCity.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(build.getPath())));\n placeFlag = true;\n break;\n } \n }\n break;\n default:\n break;\n }\n break;\n //egypt\n case\"egypt\":\n switch(area.toLowerCase()){\n case\"production\":\n for (int i = 0; i < egyptProduction.size(); i ++){\n if (egyptProduction.get(i).getName().equalsIgnoreCase(normalizeSelected)){\n egyptProduction.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(selected.getPath())));\n playBoard.updateProductionResourceCube(player, selected);\n playBoard.exileTerrain(selected);\n egyptProduction.remove(i);\n tileSelection.get(coordinate).setEnabled(false);\n stackAI.remove(stackAI.indexOf(coordinate));\n placeFlag = true;AIflag = true;\n break; \n }\n }\n break;\n //!!!!!!!!WARNNING!!!!!!!! NEED TO MODIFY FOR ITERATION II\n case\"city\":\n for (int i = 0; i < egyptCity.size(); i ++){\n if (egyptCity.get(i).getIcon() == null){\n egyptCity.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(build.getPath())));\n placeFlag = true;\n break;\n } \n }\n break;\n default:\n break;\n }\n break;\n default:\n break;\n }\n if ((!placeFlag)&&(player.equalsIgnoreCase(\"human\"))){\n JOptionPane.showMessageDialog(\n null, \"No suitable tile for \" + player , \"Information\",\n JOptionPane.WARNING_MESSAGE);\n }\n return AIflag; \n }", "@Override\r\n public void init() {\n Image bgImage = assets().getImage(\"images/bg.png\");\r\n ImageLayer bgLayer = graphics().createImageLayer(bgImage);\r\n graphics().rootLayer().add(bgLayer);\r\n\r\n // Create tiles\r\n tiles = new int[BOARD_MAX_WIDTH][BOARD_MAX_HEIGHT];\r\n printTiles();\r\n\r\n // Place mines at random positions\r\n int placedMines = 0;\r\n Random r = new Random();\r\n while (placedMines < MINES) {\r\n int row = r.nextInt(BOARD_MAX_WIDTH);\r\n int col = r.nextInt(BOARD_MAX_HEIGHT);\r\n if (tiles[row][col] == TILE_EMPTY) {\r\n tiles[row][col] = TILE_MINE;\r\n placedMines++;\r\n }\r\n }\r\n printTiles();\r\n\r\n // Count number of mines around blank tiles\r\n for (int row = 0; row < BOARD_MAX_WIDTH; row++) {\r\n for (int col = 0; col < BOARD_MAX_WIDTH; col++) {\r\n // Check surrounding tiles if mine\r\n if (tiles[row][col] == TILE_MINE) {\r\n for (int rowCheck = -1; rowCheck <= 1; rowCheck++) {\r\n for (int colCheck = -1; colCheck <= 1; colCheck++) {\r\n if (tileExistAndNotMine(row+rowCheck, col+colCheck)) {\r\n tiles[row+rowCheck][col+colCheck]++;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n printTiles();\r\n\r\n // Create tile map\r\n Map<Integer, TileType> tileMap = new HashMap<Integer, TileType>();\r\n tileMap.put(0, TileType.EMPTY);\r\n tileMap.put(1, TileType.ONE);\r\n tileMap.put(2, TileType.TWO);\r\n tileMap.put(3, TileType.THREE);\r\n tileMap.put(4, TileType.FOUR);\r\n tileMap.put(5, TileType.FIVE);\r\n tileMap.put(6, TileType.SIX);\r\n tileMap.put(7, TileType.SEVEN);\r\n tileMap.put(8, TileType.EIGHT);\r\n tileMap.put(9, TileType.MINE);\r\n\r\n // Create a GroupLayer to hold the sprites\r\n GroupLayer groupLayer = graphics().createGroupLayer();\r\n graphics().rootLayer().add(groupLayer);\r\n\r\n // Create graphic tiles\r\n tileList = new ArrayList<Tile>();\r\n for (int row = 0; row < BOARD_MAX_WIDTH; row++) {\r\n for (int col = 0; col < BOARD_MAX_WIDTH; col++) {\r\n Tile tile = new Tile(groupLayer, col*Tile.SIZE, row*Tile.SIZE, tileMap.get(tiles[row][col]), row, col);\r\n tileList.add(tile);\r\n }\r\n }\r\n\r\n // Timer text\r\n CanvasImage canvasImage = graphics().createImage(160, 70);\r\n timerLabel = canvasImage.canvas();\r\n ImageLayer countDownLayer = graphics().createImageLayer(canvasImage);\r\n countDownLayer.setTranslation(180, 10);\r\n graphics().rootLayer().add(countDownLayer);\r\n\r\n // Cleared tiles text\r\n CanvasImage clearedTilesImage = graphics().createImage(160, 70);\r\n clearedTilesLabel = clearedTilesImage.canvas();\r\n ImageLayer clearedTilesLayer = graphics().createImageLayer(clearedTilesImage);\r\n clearedTilesLayer.setTranslation(180, 30);\r\n graphics().rootLayer().add(clearedTilesLayer);\r\n updateClearedTiles();\r\n }", "@Override\n\tpublic void showContents() {\n\t\tt1.start();\n\t\tif (menuAnimation.title_showing())\n\t\t{\n\t\t\tprogram.add(Play);\n\t\t\tprogram.add(Settings);\n\t\t\tprogram.add(Credits);\n\t\t\tprogram.add(Exit);\n\t\t\tprogram.add(barrel);\n\t\t\tprogram.add(tank);\n\t\t\ttitle.setLocation(30,80);\n\t\t\ttitle.changeTransparent(1);\n\t\t\tprogram.add(title);\n\t\t\tbackground.setImage(\"otherImages/background.png\");\n\t\t\tbackground.setSize(900,620);\n\t\t\tbackground.setLocation(-50,0);\n\t\t\tbg.start();\n\t\t\tbackground.sendToBack();\n\t\t\tprogram.add(background);\n\t\t}\n\t}", "public static void main(String[] args) {\n Map map=new Map();\n Actions actions=new Actions();\n Random rnd = new Random();\n int end = rnd.nextInt((110 - 70) + 1) + 70;\n System.out.println(\"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\");\n System.out.println(\"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\");\n System.out.println(\"\\033[36m\"+\" You wake up on a abandoned spaceship. Try to survive.\"+\"\\033[0m\");\n System.out.println(\"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\");\n System.out.println(\"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\");\n System.out.println(map.getMapObject(3,1).getDescriptionObject());\n while(actions.getMoves()<end&&!actions.getEscapePod()){\n if(actions.getMoves()%8==0)\n System.out.println(\"The ship is creeking!\");\n System.out.println(\"x: \"+actions.getX()+\"\\n\" +\n \"y: \"+actions.getY());\n map.printMap(actions.getX(), actions.getY());\n actions.input();\n }\n if(actions.getMoves()>20)\n {\n System.out.println(\"Game Over\");\n }\n else\n {\n System.out.println(\"Mission complete\");\n System.out.println(\"You beat the game in \"+actions.getMoves()+\" moves.\");\n }\n }", "static void pixels() {\n flag = 0;\n // On start-up this will ask for the dimensions of the board until you enter a valid number.\n // If there already is a dimension set, the dialogue will close properly even with invalid input.\n while( true ) {\n try {\n String input = JOptionPane.showInputDialog(content, \"Enter n. 1 < n < 101\");\n tileNum = Integer.parseInt(input);\n \n if( tileNum > 100 || tileNum < 2 ) continue;\n break;\n } catch ( Exception e ) {\n if( tiles.size() != 0 ) return;\n }\n }\n start = 0;\n \n // Wipes and prepares the content pane for new tiles.\n tiles.clear();\n if( content == null ) {\n content = new JPanel();\n content.setBackground(Color.gray);\n content.setSize(self.getContentPane().getSize().width, self.getContentPane().getSize().height * 6 / 7);\n content.setLocation(0, 0);\n content.setLayout(new GridLayout(tileNum, tileNum, 0, 0));\n \n self.add(content);\n }\n content.removeAll();\n content.repaint();\n \n // Fills the content pane with tileNum * tileNum tiles.\n for( int i = 0; i < tileNum * tileNum; i++ ) {\n Tile temp = new Tile(white);\n if( i == 0 ) temp.setBackground(red);\n tiles.add(temp);\n content.add(temp);\n }\n content.revalidate();\n }", "public void showMap(boolean isEnd) {\n\t\t// Map shown inbetween games. Works by grabbing the system time in milliseconds,\n\t\t// adding 5000, and then counting down 1 second every second. Effectively keeping\n\t\t// the map screen up for 5 seconds.\n//\t\tif(legnum == 4) {\n//\t\t\treplay = new JButton(\"Replay\");\n//\t\t\treplay.setSize(frameWidth*5/100, frameHeight*5/100);\n//\t\t\tif(isOsprey) {\n//\t\t\t\treplay.setLocation((frameWidth/2)+frameWidth*30/100, frameHeight/2);\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\treplay.setLocation((frameWidth/2)+frameWidth*15/100, frameWidth/2);\n//\t\t\t}\n//\t\t\tframe.add(replay);\n//\t\t}\n\t\tlong tEnd = System.currentTimeMillis();\n\t\tframe.setVisible(true);\n\t\tlong tStart = tEnd + 3*1000;\n\t\twhile(tStart > tEnd) {\n\t\t\ttStart -= 1000;\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private void tileViewUpdate(TileView tv) {\n\n\t\tswapTileWithBlank(tv);\n\n\t\t// int i = 0;\n\t\t// for (Tile tile : tiles) {\n\t\t// Log.v(\"log_tag\", \"current location= \" + (i++) + \" \"\n\t\t// + tile.getCurrentLocation());\n\t\t// }\n\n\t}", "@Override\n public void paintComponent(Graphics g){\n super.paintComponent(g);\n if(ingame){\n\n int screenWidth = this.getWidth();\n int screenHeight = this.getHeight();\n\n\n for(int i = 0; i < end_positions.size(); i++){\n End_position item = end_positions.get(i);\n g.setColor(Color.green);\n g.fillRect(item.getDestinationX()*screenWidth/LEVEL_WIDTH,item.getDestinationY()*screenHeight/LEVEL_HEIGHT,item.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,item.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n }\n\n g.setColor(Color.white);\n g.fillRect(player.getCurrentX()*screenWidth/LEVEL_WIDTH,player.getCurrentY()*screenHeight/LEVEL_HEIGHT,player.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,player.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n\n\n for(int i = 0; i < boxes.size(); i++){\n Box item = boxes.get(i);\n g.setColor(Color.yellow);\n g.fillRect(item.getCurrentX()*screenWidth/LEVEL_WIDTH,item.getCurrentY()*screenHeight/LEVEL_HEIGHT,item.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,item.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n }\n for(int i = 0; i < walls.size(); i++){\n Wall item = walls.get(i);\n\n g.setColor(Color.red);\n g.fillRect(item.getDestinationX()*screenWidth/LEVEL_WIDTH,item.getDestinationY()*screenHeight/LEVEL_HEIGHT,item.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,item.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n\n }\n\n }\n\n }", "public void update(ResourcesMap resourcemap, TileSelector tileselector, List<Building> buildings) {\n\t\tthis.tileSelector = tileselector;\n\t\tthis.resourceMap = resourcemap;\n\t\tthis.infoString = \"\";\n\t\tthis.range.setRadius(0);\n\t\t\n\t\tthis.position = new Vector2i(this.tileSelector.selectedTile.x,this.tileSelector.selectedTile.y);\n\t\tthis.actualTile = this.tileMap.get(position.y).get(position.x);\n\t\t\n\t\t// show Tile info\n\t\tthis.infoString += \"Tile position : {\" + position.x + \", \" + position.y + \"}\\n\";\n\t\tthis.infoString += \"TILE_TYPE : \" + this.actualTile.getTileType().toString() + \"\\n\";\n\t\tfor(Resource.ResourceType resource : Resource.ResourceType.values()) {\n\t\t\tif(resourcemap.getResources(this.position.x, this.position.y).get(resource) > 0) {\n\t\t\t\tthis.infoString += \"\\t\" + resource.toString() + \" : \" + resourcemap.getResources(this.position.x, this.position.y).get(resource) + \"\\n\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t// show Building info\n\t\tfor(Building b : buildings) {\n\t\t\tif(b.getHitbox().contains(position)) {\n\t\t\t\tthis.building = b;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(this.building != null) {\n\t\t\tthis.infoString += \"BUILDING_NAME : \" + this.building.getType().toString() + \"[\" + this.building.getId() + \"] \\n\";\n\t\t\tthis.infoString += \"Level : \" + this.building.getLevel() + \"\\n\";\n\t\t\t\n\t\t\t// Get the resources available for the building.\n\t\t\tResourcesStack availableResources = new ResourcesStack();\n\t\t\t\n\t\t\tfor(int x = this.building.getHitbox().left ; x < this.building.getHitbox().left + this.building.getHitbox().width ; ++x) {\n\t\t\t\tfor(int y = this.building.getHitbox().top ; y < this.building.getHitbox().top + this.building.getHitbox().height ; ++y) {\n\t\t\t\t\tavailableResources.add(resourcemap.getResources(new Vector2i(x, y)));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(Resource.ResourceType resource : Resource.ResourceType.values()) {\n\t\t\t\t// show %\n\t\t\t\tfor(Need need : this.building.getNeeds()) {\n\t\t\t\t\tif(need.type.equals(resource)){\n\t\t\t\t\t\tthis.infoString += \"\\t\" + resource.toString() + \" : \" + availableResources.get(resource);\n\t\t\t\t\t\tthis.infoString += \" : \" + (int)((availableResources.get(resource) / need.amount) * 100) + \" %\";\n\t\t\t\t\t\tthis.infoString += \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tthis.infoString += \"Halted : \" + this.building.isHalted() + \"\\n\";\n\t\t\t\n\t\t\tthis.infoString += \"Inhabitants : \" + this.building.getInhabitants().size();\n\t\t\tif(this.building.getUnemployedInhabitantCount() != -1)\n\t\t\t\tthis.infoString += \" (\" + this.building.getUnemployedInhabitantCount() + \" unemployed)\";\n\t\t\tthis.infoString += \"\\n\";\n\t\t\t\n\t\t\tthis.infoString += \"Clients : \" + this.building.getClients().size() + \"\\n\";\n\t\t\tthis.infoString += \"Employees : \" + this.building.getEmployees().size() + \"\\n\";\n\t\t}\n\t\t\n\t\t// we set the text\n\t\tthis.infoText.setString(infoString);\n\t\tthis.infoText.setPosition(this.position.x*16 +20, this.position.y*16 +20);\n\t\t\n\t\t// we set the rectangle\n\t\tthis.rectangleShape.setPosition(this.position.x *16, this.position.y*16);\n\t\tthis.rectangleShape.setSize(new Vector2f(this.infoText.getGlobalBounds().width + 30,this.infoText.getGlobalBounds().height + 30));\n\t\t\n\t\t// we set the range\n\t\tif(this.building != null) {\n\t\t\tthis.range.setPosition(this.building.getHitbox().left * 16 + this.building.getHitbox().width * 8, this.building.getHitbox().top * 16 + this.building.getHitbox().height * 8);\n\t\t\tthis.range.setRadius(this.building.getHitbox().width * 8 + this.building.getRange() * 16);\n\t\t\tthis.range.setOrigin((this.range.getLocalBounds().left + this.range.getLocalBounds().width) / 2.f, (this.range.getLocalBounds().top + this.range.getLocalBounds().height) / 2.f);\n\t\t}\n\t\t\n\t\t// we reset the building\n\t\tthis.building = null;\n\t\t\n\t}", "@Override\n\tpublic void showContents() {\n\t\tprogram.add(Background);\n\t\tprogram.add(lvl1);\n\t\tprogram.add(lvl2);\n\t\tprogram.add(lvl3);\n\t\tprogram.add(Back);\n\n\t}", "@Override\r\n\r\n public void start(Stage primaryStage) throws Exception\r\n {\n\r\n controller.scoreBoard.setAlignment(Pos.CENTER);\r\n controller.scoreBoard.setPadding(new Insets(10, 10, 10, 10));\r\n\r\n// board = new TilePane();\r\n for (int i = 0; i < controller.gameBoard.bombList.size(); i++)\r\n {\r\n board.getChildren().add(controller.gameBoard.bombList.get(i));\r\n System.out.println(\"filling\");\r\n }\r\n board.setPrefColumns(controller.gameBoard.BOARD_WIDTH);\r\n board.setAlignment(Pos.CENTER);\r\n\r\n System.out.println(\"---------\\n# Cells: \" + controller.gameBoard.bombList.size());\r\n System.out.println(\"# Bombs: \" + controller.gameBoard.BOMB_COUNT + \"\\n---------\\n\");\r\n main = new BorderPane(board, controller.scoreBoard, null, null, null);\r\n primaryStage.setScene(new Scene(main));\r\n primaryStage.setTitle(\"Minesweeper...ish\");\r\n primaryStage.setResizable(true);\r\n primaryStage.show();\r\n\r\n Bindings.bindBidirectional(controller.scoreBoard.timeText.textProperty(), controller.scoreBoard.gameTimer.currentTimeProperty, new NumberStringConverter());\r\n Bindings.bindBidirectional(controller.scoreBoard.bombText.textProperty(), controller.gameBoard.bombsRemaining, new NumberStringConverter());\r\n /**\r\n * Cleans up program for closing\r\n */\r\n primaryStage.setOnCloseRequest(new EventHandler<WindowEvent>()\r\n {\r\n @Override\r\n public void handle(WindowEvent event)\r\n {\r\n controller.scoreBoard.gameTimer.gameTime.cancel();\r\n System.exit(0);\r\n }\r\n });\r\n\r\n /**\r\n * Handles Reset button for game\r\n * Reloads the GUI\r\n */\r\n controller.scoreBoard.resetBtn.setOnMouseClicked(new EventHandler<MouseEvent>()\r\n {\r\n @Override\r\n public void handle(MouseEvent event)\r\n {\r\n controller.reset();\r\n board.getChildren().clear();\r\n\r\n for (int i = 0; i < controller.gameBoard.bombList.size(); i++)\r\n {\r\n board.getChildren().add(controller.gameBoard.bombList.get(i));\r\n }\r\n }\r\n });\r\n }", "public void stateChanged(ChangeEvent e)\r\n\t\t\t\t\t{\n\t\t\t\t\t\ttheGridView.showWalkTiles(showWalkTilesButton.isSelected());\r\n\t\t\t\t\t}", "private void initDungeon() {\n\t\tengine = new GameEngine(map, this::handleObjectStateChange);\n\n\t\tplayer = engine.getPlayer();\n\t\tObservableList<Node> nodes = dungeonPane.getChildren();\n\n // draw grids\n resources.drawGridLine(nodes, map.getSizeX(), map.getSizeY());\n\n\t\tfor(GameObject obj: engine.getAllObjects()) {\n resources.createImageViewByGameObject(obj, nodes);\n }\n\n\n\t\tfinal LongProperty lastUpdateTime = new SimpleLongProperty(0);\n\t\tmainAnimation = new AnimationTimer() {\n\t\t\t@Override\n\t\t\tpublic void handle(long now) {\n\t\t\t\tdouble elapsedSeconds = (now - lastUpdateTime.get()) / 1000000000.0 ;\n\t\t\t\t// make sure at most go 40 ms for each frame\n\t\t\t\telapsedSeconds = elapsedSeconds > 0.04 ? 0.04 : elapsedSeconds;\n\t\t\t\ttimeConsumed += elapsedSeconds;\n\n\t\t\t\tupdatePlayerMovingStatus();\n\n\t\t\t\tif(keyPressed.contains(KeyCode.A))\n\t\t\t\t handlePlayerShootArrow();\n\n\t\t\t\tif(keyPressed.contains(KeyCode.B))\n\t\t\t\t handlePlayerSetBomb();\n\n\t\t\t\tif(updateMovingObjects(elapsedSeconds))\n\t\t\t\t return;\n\n\t\t\t\t// update timer last in case bomb went off and player is dead\n timers.updateAll((int)(elapsedSeconds * 1000));\n\t\t\t\tlastUpdateTime.set(now);\n\t\t\t}\n\t\t};\n\t\tmainAnimation.start();\n\t}", "public void getTilePressed(View v){\n numpressed = numpressed + 1;\n if(numpressed>4){\n myTurn = true;\n showToast(\"Override: Your turn!\");\n }\n if(myTurn || is_debug){\n numpressed = 0;\n if(!MultiplayerManager.getInstance().enoughTimeBetweenCommands()){\n showToast(\"Please wait a second before issueing another command\");\n return;\n }\n int id = v.getId();\n String resource = v.getResources().getResourceEntryName(id);\n String resource_str = resource.replace(\"square_\", \"\");\n int tile = Integer.parseInt(resource_str);\n\n if(bombIntent){\n if(tile!=myTile && tile!=opponentTile && !bombs_location.contains(tile) && !powerup_location.contains(tile)){\n canPlaceBomb = false;\n placeBomb(tile, false);\n return;\n }else{\n showToast(\"Cant place there\");\n }\n }\n /**\n * check if tile is valid\n */\n if((tile==myTile+1 || tile==myTile-1 || tile==myTile+10 || tile==myTile+11 || tile == myTile+9 || tile==myTile-10 || tile ==myTile-11 || tile == myTile-9) && tile != opponentTile){\n MoveTileSelf(tile);\n checkPowerups(tile);\n }else{\n showToast(\"Can't move there imbecile\");\n }\n }else{\n showToast(\"Wait for your turn imbecile\");\n }\n }", "@Override\r\n public void mapshow() {\r\n showMap l_showmap = new showMap(d_playerList, d_country);\r\n l_showmap.check();\r\n }", "public void placeTile(Tile t){\n\t\t//System.out.println(t.toString() + \" was placed\");\n\t\toccupied = true;\n\t\tcurrentTile = t;\n\t}", "public void updateClearedTiles() {\r\n clearedTiles++;\r\n String text = String.format(\"Cleared tiles: %s / %s\",\r\n clearedTiles,\r\n tileList.size() - MINES);\r\n clearedTilesLabel.clear().drawText(text, 10, 10);\r\n\r\n // Check if cleared game\r\n if (clearedTiles == (tileList.size() - MINES)) {\r\n gameEngine.setScreen(new WinScreen(gameEngine));\r\n }\r\n }", "private void testStartBaseLocationsDraw() {\n this.mPlayers = new Player[Constants.NUM_OF_PLAYERS];\n BoardField[] startBases = this.mBoardLevel.getStartingFields();\n PlayerType[] types = {PlayerType.YELLOW, PlayerType.RED, PlayerType.BLUE, PlayerType.GREEN};\n Token[] tokens = new Token[Constants.START_FIELD_LOCATION_NUMBER];\n for(int i = 0; i < this.mPlayers.length; i++) {\n // create player tokens.\n for (int j = 0; j < Constants.START_FIELD_LOCATION_NUMBER; j++) {\n tokens[j] = new Token(types[i], this.mResources.getToken(types[i]));\n }\n // create player start base.\n StartBase sb = StartBaseFactory.createStartBase(types[i],\n Constants.START_FIELD_GRID_ROWS,\n Constants.START_FIELD_GRID_COLUMNS,\n Constants.START_FIELD_GRID_SIZE,\n Constants.START_FIELD_LOCATION_NUMBER,\n startBases[i],\n tokens);\n // create player.\n this.mPlayers[i] = new Player(sb, tokens, types[i]);\n\n // add token to the start position\n Point startLocation = startBases[i].getLocation();\n Image tokenImage = new Image(this.mResources.getToken(types[i]));\n Vector2 startTokenLocation =this.mBoardLevel.getCenterOfLocation(startLocation.getX(),\n startLocation.getY());\n tokenImage.setPosition(startTokenLocation.x, startTokenLocation.y);\n this.mStage.addActor(tokenImage);\n\n // add tokens to the start base\n for (int r = 0; r < Constants.START_FIELD_GRID_ROWS; r ++) {\n for (int c = 0; c < Constants.START_FIELD_GRID_COLUMNS; c++) {\n tokenImage = new Image(this.mResources.getToken(types[i]));\n Vector2 tokenLocation = sb.getCenterOfLocation(r, c);\n tokenImage.setPosition(tokenLocation.x, tokenLocation.y);\n this.mStage.addActor(tokenImage);\n }\n }\n }\n }", "@Override\r\n\tpublic void createSprites(World world) {\r\n \t// the height of the map since 0,0 in Tiled is in the top left\r\n // compared to the TiledMap's 0,0 in the bottom left\r\n int height = 2400;\r\n\r\n // file locations of different trees\r\n TextureAtlas atlas = new TextureAtlas(\"Game Tilesets/Trees/Trees.pack\");\r\n Skin skin = new Skin();\r\n skin.addRegions(atlas);\r\n TextureRegion T2 = skin.getRegion(\"T2\");\r\n TextureRegion T3 = skin.getRegion(\"T3\");\r\n TextureRegion T7 = skin.getRegion(\"T7\");\r\n TextureRegion T9 = skin.getRegion(\"T9\");\r\n TextureRegion T10 = skin.getRegion(\"T10\");\r\n \r\n // add all of the trees\r\n \tthis.addSprite(new ObjectSprites(T2, 236, height - 1490));\r\n \r\n this.addSprite(new ObjectSprites(T9, 622, height - 1907));\r\n this.addSprite(new ObjectSprites(T9, 683, height - 1687));\r\n this.addSprite(new ObjectSprites(T9, 174, height - 1851));\r\n this.addSprite(new ObjectSprites(T9, 361, height - 1643));\r\n \r\n this.addSprite(new ObjectSprites(T10, 572, height - 1354));\r\n this.addSprite(new ObjectSprites(T10, 0, height - 1475));\r\n this.addSprite(new ObjectSprites(T10, -9, height - 1707));\r\n this.addSprite(new ObjectSprites(T10, 675, height - 1479));\r\n this.addSprite(new ObjectSprites(T10, 416, height - 1903));\r\n\r\n this.addSprite(new ObjectSprites(T3, 428, height - 1453));\r\n this.addSprite(new ObjectSprites(T3, 596, height - 1122));\r\n this.addSprite(new ObjectSprites(T3, -32, height - 988));\r\n this.addSprite(new ObjectSprites(T3, 476, height - 864));\r\n this.addSprite(new ObjectSprites(T3, 640, height - 725));\r\n this.addSprite(new ObjectSprites(T3, 424, height - 2123));\r\n \r\n this.addSprite(new ObjectSprites(T7, 145, height - 1347));\r\n this.addSprite(new ObjectSprites(T7, 83, height - 1935));\r\n this.addSprite(new ObjectSprites(T7, 585, height - 2031));\r\n this.addSprite(new ObjectSprites(T7, 290, height - 2304));\r\n \r\n Bandit b1 = new Bandit();\r\n b1.defineBody(world, 215, 1305);\r\n super.addSprite(b1);\r\n \r\n Bandit b2 = new Bandit();\r\n b2.defineBody(world, 60, 1445);\r\n super.addSprite(b2);\r\n \r\n Bandit b3 = new Bandit();\r\n b3.defineBody(world, 90, 1640);\r\n super.addSprite(b3);\r\n \r\n Bandit b4 = new Bandit();\r\n b4.defineBody(world, 530, 1740);\r\n super.addSprite(b4);\r\n \r\n Bandit b5 = new Bandit();\r\n b5.defineBody(world, 730, 1655);\r\n super.addSprite(b5);\r\n \r\n Bandit b6 = new Bandit();\r\n b6.defineBody(world, 90, 2235);\r\n super.addSprite(b6);\r\n \r\n Bandit b7 = new Bandit();\r\n b7.defineBody(world, 715, 1490);\r\n super.addSprite(b7);\r\n \r\n Bandit b8 = new Bandit();\r\n b8.defineBody(world, 318, 1605);\r\n super.addSprite(b8);\r\n }", "public void enterPlayerView(){\n\t\tplayerSeen=true;\r\n\t\tplayerMapped=true;\r\n\t}", "private void setupBoardViews(){ //This resets the view for use by the UI. Forces out of Design mode\n Log.d(TAG, \"setupBoardViews: Started\");\n view_stage_map = VIEW_MAP_START;\n cycleMapView();\n }", "public void Display_Boards(){\r\n\t\tfor(int i=0; i<13; i++){\r\n\t\t\tdisplay.putStaticLine(myBoard.Display(i)+\" \"+hisBoard.Display(i));\r\n\t\t}\r\n\t}" ]
[ "0.6794477", "0.6659642", "0.66391826", "0.65868556", "0.6563344", "0.6541916", "0.64600277", "0.63634896", "0.61962926", "0.61550117", "0.6104225", "0.6101437", "0.6075806", "0.6068648", "0.60498923", "0.60330105", "0.6028396", "0.6020065", "0.5962973", "0.5961865", "0.59600234", "0.59512097", "0.5917526", "0.59161246", "0.59117424", "0.59107345", "0.59065497", "0.5903214", "0.5890665", "0.58889353", "0.5886592", "0.58772975", "0.5865689", "0.58616614", "0.58528835", "0.58459705", "0.58448184", "0.58443", "0.5835778", "0.5835477", "0.58312285", "0.58297884", "0.58279", "0.5820478", "0.5816717", "0.5811938", "0.581121", "0.5808809", "0.57735014", "0.57725906", "0.57722855", "0.573467", "0.5732896", "0.5725914", "0.5718541", "0.57094944", "0.5707374", "0.57035685", "0.5696864", "0.5696584", "0.5694537", "0.5677775", "0.56764036", "0.56736773", "0.56615627", "0.565514", "0.56531006", "0.56520694", "0.5648685", "0.5641518", "0.56396884", "0.5637582", "0.56016314", "0.5601269", "0.5598729", "0.55957735", "0.55888855", "0.5588347", "0.558098", "0.5580253", "0.5569218", "0.55558497", "0.55543244", "0.5553407", "0.55531037", "0.5546784", "0.5541706", "0.5537704", "0.55376726", "0.55319893", "0.5526982", "0.5526259", "0.5526228", "0.55236995", "0.5516031", "0.5512221", "0.55119115", "0.55110735", "0.55025464", "0.55018723" ]
0.6774731
1
Returns height of a building 0 is GROUND, 1 is FIRST etc.
public Floor getHeight() { return height; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getHeight();", "String getHeight();", "@Override\n public int height() {\n IHex posHex = game.getBoard().getHex(getPosition());\n return (isProne() || ((posHex != null) && Compute.isInBuilding(game, this))) ? 0 : 1;\n }", "long getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight() {\n return (int) Math.round(height);\n }", "public int getHeight() {\n return bala.getHeight();\n }", "double getHeight();", "public static int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}", "int getHeight1();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "int getHeight();", "public double getHeight();", "public double getHeight();", "public int getHeight() {\n // Replace the following line with your solution.\n return height;\n }", "public int height();", "public int height();", "public int height();", "public int height();", "VariableAmount getHeight();", "public int getHeight() {\n return (roomHeight);\n }", "public Integer getHeight()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.height, null);\n }", "public int levelHeight() {\r\n\t\treturn map[0].getProperties().get(\"height\", Integer.class);\r\n\t}", "int height();", "int getheight();", "public int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}", "public final int getHeight(){\n return height_;\n }", "public int getHeight()\n {\n \treturn height;\n }", "public Number getHeight() {\n\t\treturn getAttribute(HEIGHT_TAG);\n\t}", "public int getHeight()\n {\n return height;\n }", "public int getHeight() \n\t{\n\t\treturn height;\n\t}", "public int getHeight(){\n \treturn height;\n }", "public int getHeight()\n\t{\n\t\treturn height;\n\t}", "public int getHeight()\n\t{\n\t\treturn height;\n\t}", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight()\n {\n return height;\n }", "public int getHeight() { return height; }", "public int getHeight(){\n return height;\n }", "public float getHeight();", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n\t\treturn getHeight(this);\n\t}", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height;\n }", "public int getHeight() {\n return height_;\n }", "public int getHeight() {return height;}", "private double getHeight() {\n\t\treturn height;\n\t}", "public int getHeight(String kmer, generateHash g, int base) {\n\t\tint height = 0;\n\t\tint hashed = (int) g.hashFunction(base, kmer);\n\t\twhile(this.parent[hashed]!= '\\0') {\n\t\t\theight++;\n\t\t\tkmer = this.getParent(kmer, hashed);\n\t\t\thashed = (int) g.hashFunction(base, kmer);\n\t\t}\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\n\t\treturn height;\n\t}", "Length getHeight();", "public int height()\n {\n return height;\n }", "public int getHeight() {\n\treturn height;\n}", "int getHeight() {return height;}", "public int getHeight() {\r\n\t\treturn height;\r\n\t}", "public int getHeight() {\r\n\t\treturn height;\r\n\t}", "public int getHeight() {\r\n\t\t\r\n\t\treturn height;\r\n\t}", "public double getHeight () {\n return height;\n }", "public int getHeight(){\n return height;\n }", "@Override\n\tpublic int height() {\n\t\tif (this.valCount == 0) { // if empty leaf\n\t\t\treturn 0;\n\t\t}\n\t\tint max = 1; \n\t\tfor (int i = 0; i < childCount; ++i) { // finds longest route among children\n\t\t\tmax = Math.max(max, children[i].height() + 1);\n\t\t}\n\t\treturn max;\n\t}", "public int getHeight() {\n return height_;\n }", "public double getHeight() {\n return location.height();\n }" ]
[ "0.703734", "0.703734", "0.70252055", "0.70122045", "0.6917787", "0.6917787", "0.6917787", "0.6917787", "0.6917787", "0.6917787", "0.6906088", "0.68922836", "0.68819666", "0.6854875", "0.6853214", "0.6853029", "0.6853029", "0.6853029", "0.6853029", "0.6853029", "0.6853029", "0.6853029", "0.6853029", "0.6853029", "0.6853029", "0.6853029", "0.6853029", "0.6853029", "0.6853029", "0.6853029", "0.6853029", "0.6844113", "0.6844113", "0.6826749", "0.6805674", "0.6805674", "0.6805674", "0.6805674", "0.67771244", "0.6764086", "0.67516494", "0.6724538", "0.6719676", "0.6700416", "0.6688929", "0.66869116", "0.6685443", "0.66737664", "0.666932", "0.6667655", "0.66655195", "0.66630554", "0.66630554", "0.666178", "0.666178", "0.666178", "0.665589", "0.66550463", "0.6646364", "0.66410017", "0.6634872", "0.6630401", "0.662604", "0.662604", "0.662604", "0.662604", "0.662604", "0.662604", "0.662604", "0.662604", "0.662604", "0.662604", "0.662604", "0.6613019", "0.66111386", "0.6607977", "0.65958565", "0.6595036", "0.6595036", "0.6595036", "0.6595036", "0.6595036", "0.6595036", "0.6595036", "0.6595036", "0.6595036", "0.6595036", "0.6595036", "0.6594037", "0.65889543", "0.65887433", "0.65883005", "0.6581534", "0.6581534", "0.6560721", "0.65606177", "0.6553155", "0.65525466", "0.65466803", "0.65448666" ]
0.73027676
0
Returns a Vector2f with tile's matrix coordinates. "x" is a column coordinate, "y" is a row coordinate
public Vector2f getCoordinates() { return new Vector2f(tileColumn, tileRow); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Point getTileCoordinates(int x, int y) {\n int tileWidth = this.board.getTileSet().getTileWidth() + 1;\n int tileHeight = this.board.getTileSet().getTileHeight() + 1;\n\n int tileX = Math.max(0, Math.min(x / tileWidth, this.board.getWidth() - 1));\n int tileY = Math.max(0, Math.min(y / tileHeight, this.board.getHeight() - 1));\n\n return new Point(tileX, tileY);\n }", "private Point getTileCoordinates(int x, int y)\n {\n int tileWidth = this.tileset.getTileWidth() + 1;\n int tileHeight = this.tileset.getTileHeight() + 1;\n int tileCount = this.tileset.getTileCount();\n int rows = tileCount / TILES_PER_ROW + \n (tileCount % TILES_PER_ROW > 0 ? 1 : 0);\n \n int tileX = Math.max(0, Math.min(x / tileWidth, TILES_PER_ROW - 1));\n int tileY = Math.max(0, Math.min(y / tileHeight, rows - 1));\n \n return new Point(tileX, tileY);\n }", "public static Vector2 LevelCoordinatesToScreen(int x, int y){\n\t\tVector2 screenPos = new Vector2();\n\t\tfloat screenX = (X_OFFSET + x)*TILE_SIZE;\n\t\tfloat screenY = (Y_OFFSET + y)*TILE_SIZE;\n\t\tscreenPos.x = screenX;\n\t\tscreenPos.y = screenY;\n\t\treturn screenPos;\n\t}", "@Override\n public SquareTile getTile(int x, int y) {\n // Check that the location is inside the grid\n if (x < 0 || x >= width || y < 0 || y >= height)\n return null;\n\n return tiles[x * width + y];\n }", "Coordinate[] getTilePosition(int x, int y) {\n\t\treturn guiTiles.get(y).get(x).getBoundary();\n\t}", "public int getTile(int x, int y)\n {\n return tilemap[x][y];\n }", "public Tile getTile(int x, int y) {\n\t\tif(!isValidCoordinates(x,y)){\n\t\t\t//remove later -F\n\t\t\tSystem.out.println(\"Invalid\");\n\t\t\treturn tileGrid[0][0]; //will add handling in check later -F\n\t\t}\n\t\telse{\n\t\t\treturn tileGrid[x][y];\n\t\t}\n\t}", "public Position2D(double x, double y) {\n this.x = x;\n this.y = y;\n }", "public MapEntity getTileAt(int x, int y) {\n\t\ttry {\n\t\t\treturn tiles.get(y)[x];\n\t\t}\n\t\tcatch(IndexOutOfBoundsException | NullPointerException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public Tile access(int x, int y) {\r\n\t\treturn layout.get(x)[y];\r\n\t}", "private Tile getTile(int x, int y) {\n\t\tif (x < 0 || x > width || y < 0 || y > height) return Tile.VOID;\n\t\treturn Tile.tiles[tiles[x + y * width]];\n\t}", "private static Vector2f toScreenCoords(float x, float y) {\r\n\t\treturn(new Vector2f((x + 0.5f) * DisplayManager.getWidth(), y * DisplayManager.getHeight()));\r\n\t}", "public Coordinate pixelToWorld(int x, int y, Envelope map) {\n if (graphics == null) {\n LOGGER.info(\"no graphics yet deffined\");\n \n return null;\n }\n \n //set up the affine transform and calculate scale values\n AffineTransform at = setUpTransform(map, screenSize);\n \n /* If we are rendering to a component which has already set up some form\n * of transformation then we can concatenate our transformation to it.\n * An example of this is the ZoomPane component of the swinggui module.*/\n if (concatTransforms) {\n graphics.getTransform().concatenate(at);\n } else {\n graphics.setTransform(at);\n }\n \n try {\n Point2D result = at.inverseTransform(new java.awt.geom.Point2D.Double(x, y),\n new java.awt.geom.Point2D.Double());\n Coordinate c = new Coordinate(result.getX(), result.getY());\n \n return c;\n } catch (Exception e) {\n LOGGER.warning(e.toString());\n }\n \n return null;\n }", "public Tile(final int x, final int y) {\n this.x = x;\n this.y = y;\n }", "public static Coordinate create2D(double x, double y) {\r\n return new Coordinate(x, y, Double.NaN, Double.NaN);\r\n }", "public Tile getTile(int x, int y) {\r\n assert (tiles != null);\r\n \r\n if (x < 0 || y < 0 || x >= width || y >= height) {\r\n return Tile.floorTile;\r\n }\r\n \r\n Tile t = Tile.tiles[tiles[x][y]];\r\n if (t == null) {\r\n return Tile.floorTile;\r\n }\r\n return t;\r\n }", "public Tile getTile(int x, int y) {\n\t\tif (x < 0 || x >= (this.width / Tile.WIDTH) || y < 0 || y >= (this.height / Tile.HEIGHT)) {\n//\t\t\tSystem.out.println(x + \" \" + y + \" \" + \"comes heere\");\n\t\t\treturn VoidTiled.getInstance();\n\t\t}\n\t\treturn tiles[x + y * (this.width / Tile.WIDTH)];\n\t}", "public IEntity getOnTheMapXY(int x, int y) {\r\n\t\t// we check if we are not at the edge of the map\r\n\t\t if(x >= 0 && x < Map.getWidth() && y >= 0 && y < Map.getHeight())\r\n\t\t \treturn this.map[x][y];\r\n\t\t else\r\n\t\t \treturn this.map[0][0];\r\n\t\t \r\n\t}", "public Tile getTile(int x, int y) {\n\t\tif (x < 0 || x >= width || y < 0 || y >= height) {\n\t\t\treturn Tile.voidTile;\n\t\t}\n\t\treturn tiles[x + y * width];\n\t}", "public abstract Tile getTileAt(int x, int y);", "public Vector2D(double x, double y) {\n \n _x = x;\n _y = y;\n \n }", "public Position getPositionFromPixelCoords(int y, int x){\n if (disp.rotated){\n return new Position(y / 64 + 1, (x - 640) / -64);\n } else {\n return new Position((y - 576) / -64, x / 64);\n }\n }", "private Tile getTileAt(int x, int y)\n {\n int tileAt = y * TILES_PER_ROW + x;\n \n if (tileAt >= tileset.getTileCount())\n {\n return null;\n }\n else \n {\n return tileset.getTile(tileAt);\n }\n }", "public Rotation2D(float x, float y)\n {\n this.x = x;\n this.y = y;\n }", "public int[] convertPixelsInRowCol(int x, int y) {\n\t\tint[] row_col = new int[2];\n\t\t// filas\n\t\trow_col[0] = y / config.getLevelBoxSize();\n\t\t// columnas\n\t\trow_col[1] = x / config.getLevelBoxSize();\n\t\treturn row_col;\n\t}", "public Vector2d() {\n\t\tthis.x = 0;\n\t\tthis.y = 0;\n\t}", "public Vector2d(double x, double y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "public Tile getTile(int x, int y){\n\t\tif(x < 0 || y < 0 || x >= width || y >= height){\r\n\t\t\treturn Tile.grassTile;\r\n\t\t}\r\n\t\t\r\n\t\t//tiles[x][y] give us the id and the tiles[id] is the texture\r\n\t\tTile t = Tile.tiles[tiles[x][y]]; \r\n\t\tif(t == null){\r\n\t\t\t//If you try to access undefined tile index, return dirt tile as default\r\n\t\t\treturn Tile.dirtTile; \r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn t;\r\n\t\t}\r\n\t}", "public Tile getTile(int x, int y)\n\t{\n\t\t\n\t\tif(x < 0 || y < 0 || x >= width || y >= height)\n\t\t{\n\t\t\tSystem.out.println(\"wrong\");\n\n\t\t\treturn Tile.dirt;\n\t\t}\n\t\t\n\t\tTile t = Tile.tiles[worldTiles[x][y]];\n\t\t// if the tile is null returns dirt on default\n\t\tif(t == null)\n\t\t{\n\t\t\tSystem.out.println(\"null\");\n\n\t\t\treturn Tile.dirt;\n\t\t}\n\t\treturn t;\n\t}", "public MapTile getTile(int x_pos, int y_pos) {\n if (x_pos < 0 || y_pos < 0 || x_pos >= map_grid_[0].length || y_pos >= map_grid_.length) {\n return null;\n }\n return map_grid_[y_pos][x_pos];\n }", "protected Tile getTile( Tile[] tiles, int x, int y ) {\n return tiles[ (y * getHeightInTiles()) + x ];\n }", "public static Point worldToMap(double x, double y) {\n\t\tfinal Client client = Context.client();\n\t\tfinal Multipliers multipliers = Context.multipliers();\n\t\tfinal Player local = Players.getLocal();\n\t\tx -= Game.getBaseX();\n\t\ty -= Game.getBaseY();\n\n\t\tfinal RegionOffset localTile = local.getRegionOffset();\n\t\tfinal int calculatedX = (int) (x * 4 + 2) - (localTile.getX() << 9) / 0x80;\n\t\tfinal int calculatedY = (int) (y * 4 + 2) - (localTile.getY() << 9) / 0x80;\n\n\t\tfinal WidgetChild mm2 = WidgetComposite.getMap();\n\t\tif (mm2 == null) {\n\t\t\treturn new Point(-1, -1);\n\t\t}\n\t\tfinal int actDistSq = calculatedX * calculatedX + calculatedY * calculatedY;\n\t\tfinal int mmDist = Math.max(mm2.getWidth() / 2, mm2.getHeight() / 2) - 6;\n\n\t\tif (mmDist * mmDist >= actDistSq) {\n\t\t\tint angle = 0x3fff & (int) client.getMinimapAngle();\n\t\t\tfinal boolean setting4 = client.getMinimapSetting() * multipliers.GLOBAL_MINIMAPSETTING == 4;\n\n\t\t\tif (!setting4) {\n\t\t\t\tangle = 0x3fff & (client.getMinimapOffset() * multipliers.GLOBAL_MINIMAPOFFSET) + (int) client.getMinimapAngle();\n\t\t\t}\n\n\t\t\tint cs = Calculations.SIN_TABLE[angle];\n\t\t\tint cc = Calculations.COS_TABLE[angle];\n\n\t\t\tif (!setting4) {\n\t\t\t\tfinal int fact = 0x100 + (client.getMinimapScale() * multipliers.GLOBAL_MINIMAPSCALE);\n\t\t\t\tcs = 0x100 * cs / fact;\n\t\t\t\tcc = 0x100 * cc / fact;\n\t\t\t}\n\n\t\t\tfinal int calcCenterX = cc * calculatedX + cs * calculatedY >> 0xf;\n\t\t\tfinal int calcCenterY = cc * calculatedY - cs * calculatedX >> 0xf;\n\t\t\tfinal int screen_x = calcCenterX + mm2.getAbsoluteX() + mm2.getWidth() / 2;\n\t\t\tfinal int screen_y = -calcCenterY + mm2.getAbsoluteY() + mm2.getHeight() / 2;\n\t\t\treturn new Point(screen_x, screen_y);\n\t\t}\n\n\t\treturn new Point(-1, -1);\n\t}", "public Vec2(int x, int y) {\n\t\t// Store position\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "public static TransformMatrix translationMatrix(float x, float y) {\n\t\treturn new TransformMatrix(1,1,x,y);\n\t}", "public Vector2i(int x, int y) {\n this.x = x;\n this.y = y;\n }", "private int convert2d(int x, int y) {\n return x + y * width;\n }", "public Vector2f(float x, float y) {\n this.x = x;\n this.y = y;\n }", "public Vector2f (float x, float y)\n {\n set(x, y);\n }", "public Vector2D toVector2D ( );", "public Square getSquareAtPosition(int x, int y) {\n\t\treturn this.grid[x][y];\n\t}", "public Vector2f(int x, int y) {\n this((float) x, (float) y);\n }", "public long[] getWorldCoordinate(int screenX, int screenY);", "public Vector2(float x, float y) {\n\t\tthis.X = x;\n\t\tthis.Y = y;\n\t}", "public int getTile(int x, int y)\n {\n try {\n return board[x][y];\n } catch (ArrayIndexOutOfBoundsException e) {\n return EMPTY_FLAG;\n }\n }", "private Point2D.Float toGridPoint(int x, int y) {\n return new Point2D.Float((float)((x - centreX)*scale), (float)((centreY - y)*scale));\n }", "public int tileAt(int i, int j) {\n if (i < 0 || j < 0 || i >= _N || j >= _N) {\n throw new IllegalArgumentException(\"Exceeds tile dimension\");\n }\n return _tiles[i][j];\n }", "public DungeonObject getDungeonTile(int x, int y) {\n\t\treturn dungeonRoom[x][y];\r\n\t}", "public MapEntity getTileAt(IntVector2D v) {\n\t\tif(v == null)\n\t\t\treturn null;\n\t\treturn getTileAt(v.getX(), v.getY());\n\t}", "public Vec2f() {\n\t\tthis(0, 0);\n\t}", "DeviceCoordinate transformWorldToScreen(final double x, final double y);", "public Vec2 vectorPixelsToWorld(Vec2 v) {\n\n Vec2 u = new Vec2(v.x / scaleFactor, v.y / scaleFactor);\n\n u.y *= yFlip;\n\n return u;\n }", "public int get(int x, int y){\n return matriz[x][y];\n }", "private static Vector2f toGuiCoords(float x, float y) {\r\n\t\treturn(new Vector2f((x/DisplayManager.getWidth()) - 0.5f, y/DisplayManager.getHeight()));\r\n\t}", "public float[] unProjectCoordinates(float x, float y) {\n\t\t// construct the input vector\n\t\tfloat[] inVec = new float[] {\n\t\t\t\t/* x: */ x, /* y: */ y, \n\t\t\t\t/* z: */ 0, /* w: */ 1\n\t\t};\n\t\t// map from window coordinates to NDC coordinates\n\t\tinVec[0] = (inVec[0] / viewportDims[0]) * 2.0f - 1.0f;\n\t\tinVec[1] = (inVec[1] / viewportDims[1]) * 2.0f - 1.0f;\n\t\tinVec[1] = -inVec[1];\n\t\t\n\t\t// get the output coordinates\n\t\tfloat[] outVec = new float[4];\n\t\tMatrix.multiplyMV(outVec, 0, reverseMatrix, 0, inVec, 0);\n\t\tif (outVec[3] == 0) \n\t\t\treturn null;\n\t\t\n\t\t// divide by the homogenous coordinates\n\t\toutVec[0] /= outVec[3];\n\t\toutVec[1] /= outVec[3];\n\t\toutVec[2] /= outVec[3];\n\t\t\n\t\treturn outVec;\n\t}", "public Matrix(int x, int y) {\n\t\tnrow=x;\n\t\tncol=y;\n\t\tmat = new int[x][y];\n\t\t\n\n\t}", "public Tile(int imageCoordinate, int x, int y) {\n this.imageCoordinate = imageCoordinate;\n this.x = x;\n this.y = y;\n }", "public Vector2F getWorldLocation() {\n\t\treturn new Vector2F(xPos, yPos);\n\t}", "public int getLocation(int x, int y) {\n\t\treturn grid[x][y];\n\t}", "public BufferedImage getTile(int tilex, int tiley) {\n\t\t// System.out.println(tilex+\" || \"+tiley);\n\t\tif (this.bufImage == null) {\n\t\t\treturn null;\n\t\t}\n\t\ttry {\n\t\t\t// System.out.println(tilex*(this.tileSize+1)+1+\" | \"+tiley*(this.tileSize+1)+1);\n\t\t\treturn this.bufImage.getSubimage(tilex*(this.tileSize+1)+1, tiley*(this.tileSize+1)+1, this.tileSize, this.tileSize);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tdebug.DebugLog(\"Couldnt load tile subimage.If BLOCKSIZE==\" + this.tileSize + \" is correct, better check the sourcefile.\");\n\t\t\treturn new BufferedImage(0, 0, 0);\n\t\t}\n\t}", "public Coord getCoordAtPosition(int x, int y) {\n if(internalNative == null) {\n if(internalLightweightCmp != null) {\n return internalLightweightCmp.getCoordFromPosition(x, y);\n }\n // TODO: Browser component\n return new Coord(0, 0);\n }\n internalNative.calcLatLongPosition(x, y);\n return new Coord(internalNative.getScreenLat(), internalNative.getScreenLon());\n }", "@Override\n public ImageData createPixelMap(double x, double y) {\n return graphicsEnvironmentImpl.createPixelMap(canvas, x, y);\n }", "public static Vector2 unprojectedPosition(int x, int y) {\n Vector3 unprojected = CAMERA.unproject(new Vector3(x, y, 0));\n return new Vector2(unprojected.x, unprojected.y);\n }", "public TileInfo toTileInfo(int x, int y, TileInfo tileInfo) {\r\n\t\tif (tileInfo == null) {\r\n\t\t\ttileInfo = new TileInfo();\r\n\t\t}\r\n\t\ttileInfo.set(getTile(x, y, tileInfo.get()));\r\n\t\treturn tileInfo;\r\n\t}", "public Vec2 coordPixelsToWorld(Vec2 screen) {\n return coordPixelsToWorld(screen.x, screen.y);\n }", "public Point getGridCoordinates(){\n try {\n return (new Point(x / MapManager.getMapTileWidth(), y / MapManager.getMapTileHeight()));\n } catch (Exception e){\n System.out.print(\"Error while getting grid coordinates.\");\n throw e;\n }\n }", "public Point2D_2_9(int x, int y) {\n\t this.x = x;\n\t this.y = y;\n\t }", "public static Coordinate create2DM(double x, double y, double m) {\r\n return new Coordinate(x, y, Double.NaN, m);\r\n }", "public Vector2 toVector2()\n {\n return new Vector2(this.x, this.z);\n }", "public Vector2(int x, int y) {\n this.x = x;\n this.y = y;\n }", "public int getLocation(int x, int y) {\n\t\treturn board[x][y];\n\t}", "Tile getPosition();", "public double productoVectorial2(Pixel pixel) {\r\n\t\treturn getX() * pixel.getY() - getY() * pixel.getX();\r\n\t\t //return getXCartesiano() * pixel.getYCartesiano() - getYCartesiano() * pixel.getXCartesiano();\r\n\t}", "public ImgMathVec(int x, int y) {\r\n\t\tv = new int[3];\r\n\t\tv[0] = x;\r\n\t\tv[1] = y;\r\n\t\tv[2] = 1;\r\n\t}", "public double[] getWorldCoordinateWGS84(int screenX, int screenY);", "public SubCell(int x, int y) {\n this.x = Math.floorMod(x, COLUMNS);\n this.y = Math.floorMod(y, ROWS);\n }", "void to_screen_2D_x_y_i (double horiz, double vert) {\n double rp = Math.toRadians(craft_pitch); \n double space_x = scalex*(offx+horiz);\n double space_y = scaley*(offy+vert);\n space_x = space_x*Math.cos(rp) - space_y*Math.sin(rp); \n space_y = space_x*Math.sin(rp) + space_y*Math.cos(rp); \n\n x[xy_i] = screen_off_x + toInt(space_x);\n y[xy_i++] = screen_off_y + toInt(space_y);\n }", "public Vector2F getScreenLocation() {\n\t\treturn new Vector2F(xPos, yPos);\n\t}", "public TiledImage(BufferedImage image, int tile_X, int tile_Y) {\n\t\t\t\n\t\tm_imageWidth = image.getWidth();\n\t\tm_imageHeight = image.getHeight();\n\t\t\n\t\t// Determine number of rows and columns required\n\t\tm_rows = (int) Math.ceil(image.getWidth() / (double) tile_X);\n\t\tm_columns = (int) Math.ceil(image.getHeight() / (double) tile_Y);\n\t\t\n\t\tif (m_rows > 0 && m_columns > 0) {\n\t\t\t\n\t\t\tint chunks = m_rows * m_columns;\n\t\t\tint count = 0;\n\t\t\t\n\t\t\t// The goal here is to divide\n\t m_sourceTiles = new BufferedImage[chunks]; //Image array to hold image chunks\n\t m_transforms = new Translate[chunks];\n\t m_imageTiles = new Image[chunks];\n\t for (int x = 0; x < m_rows; x++) {\n\t for (int y = 0; y < m_columns; y++) {\n\t // Initialize the image array with image chunks\n\t \t// https://stackoverflow.com/questions/5836128/how-do-i-make-javas-imagebuffer-to-read-a-png-file-correctly\n\t \tint imageType = image.getType();\n\t \tif (imageType == 0) imageType = 5;\n\t m_sourceTiles[count] = new BufferedImage(tile_X, tile_Y, imageType);\n\t\n\t // draws the image chunk\n\t Graphics2D gr = m_sourceTiles[count].createGraphics();\n\t gr.drawImage(image, 0, 0, tile_X, tile_Y, tile_X * y, tile_Y * x, tile_X * y + tile_X, tile_Y * x + tile_Y, null);\n\t gr.dispose();\n\t \n\t // Create the JavaFX Image tile\n\t \t\tm_imageTiles[count] = SwingFXUtils.toFXImage(m_sourceTiles[count], null);\n\t \n\t // assign a translate offset Transform for the tile.\n\t int shiftX = tile_X * y;\n\t int shiftY = tile_Y * x;\n\t \n\t Translate translate = new Translate();\n\t translate.setX(shiftX);\n\t translate.setY(shiftY);\n\t m_transforms[count] = translate;\n\t \n\t count++;\n\t }\n\t }\n\t\t}\n\t}", "public TileFloor(int x, int y)\r\n {\r\n random = new Random(12345);\r\n ROWS = DEFAULT_ROWS;\r\n COLUMNS= DEFAULT_COLUMNS;\r\n this.x = x;\r\n this.y = y;\r\n }", "public Vector2D getPosition ();", "public Point2D getLocation();", "int getColumn(int x, int y){\n return board[x][y].getColumn();\n }", "@ThreadOpenGL\n public void glTexCoord2f()\n {\n GL11.glTexCoord2f(this.x, this.y);\n }", "private Tile getTileAt(int row, int col) {\n return getTiles()[row][col];\n }", "@Override\r\n\tpublic Integer getCell(Integer x, Integer y) {\n\t\treturn game[x][y];\r\n\t}", "public BufferedImage getSingleTile(final int x, final int y) {\n return this.sheet.getSubimage(x * TILE_SIZE_IN_GAME, y * TILE_SIZE_IN_GAME, TILE_SIZE_IN_GAME,\n TILE_SIZE_IN_GAME);\n }", "public FloorTile getTileAt(int row, int col) {\n return board[row][col];\n }", "private void generateMaze(int x, int y) {generateMaze(getCell(x, y)); // gerar a partir da celula\r\n }", "public Spatial boardCentre() {\r\n return tiles[2][2].tile;\r\n }", "public Tile getTileAt(Position p);", "public Point2D.Float getScreenToGameCoords(int screenX, int screenY) {\n\t\treturn cam.unproject((float) screenX, (float) screenY);\n\t}", "public void setTile(int x, int y) {\n/* 748 */ this.e.setTile(x, y);\n/* 749 */ this.k = getTileIdx();\n/* */ \n/* */ \n/* 752 */ String str = (String)this.f.f(this.k);\n/* 753 */ if (str.equals(\"none\")) {\n/* 754 */ this.h = 0;\n/* */ }\n/* 756 */ else if (str.equals(\"rct\")) {\n/* 757 */ this.h = 1;\n/* 758 */ c();\n/* */ }\n/* 760 */ else if (str.equals(\"ict\")) {\n/* 761 */ this.h = 2;\n/* 762 */ d();\n/* */ } else {\n/* */ \n/* 765 */ throw new IllegalArgumentException(\"Component transformation not recognized\");\n/* */ } \n/* */ }", "public int tileAt(int i, int j) {\n if (i < 0 || i >= n || j < 0 || j >= n)\n throw new java.lang.IndexOutOfBoundsException();\n return tiles[i][j];\n }", "public SbVec4f\ngetObjectTextureCoords(final SoNode node)\n//\n////////////////////////////////////////////////////////////////////////\n{\n return multVecMatrix4(getImageToObject(node), imageTexCoords);\n}", "public Vector2D subtract(float x, float y){\n return new Vector2D(this.x - x, this.y - y);\n }", "public Point transform(int x, int y) {\n\t\tdouble pixelWidth = this.plainWidth / this.resolutionX;\n\n\t\tdouble rightFactor = pixelWidth * (x - (this.resolutionX / 2.0));\n\t\tdouble upFactor = pixelWidth * ((this.resolutionY / 2.0) - y);\n\n\t\treturn plainCenterPoint\n\t\t\t\t.add(upVec.mult(upFactor))\n\t\t\t\t.add(rightVec.mult(rightFactor));\n\t}", "public Cell getCellAt (int x, int y) {\n return grid[x-1][y-1];\n }", "Square getSquare(int x, int y){\n return board[x][y];\n }", "public Vector2D method_878() {\n return this.field_661;\n }", "public Rotation2D()\n {\n this.x = 0.0f;\n this.y = 0.0f;\n }" ]
[ "0.66630894", "0.6590118", "0.6367677", "0.63404685", "0.61462235", "0.6133467", "0.6076534", "0.6041277", "0.60375965", "0.6022289", "0.6021395", "0.592926", "0.5908116", "0.5907678", "0.5890786", "0.5877284", "0.5865629", "0.58617014", "0.58417976", "0.5829958", "0.58243054", "0.58187956", "0.58111227", "0.5782498", "0.5769331", "0.5765826", "0.57633775", "0.575408", "0.5751452", "0.57437754", "0.5727381", "0.5717244", "0.5695799", "0.5670035", "0.56618834", "0.5658529", "0.5607909", "0.5593589", "0.55665946", "0.5550413", "0.5544629", "0.55386955", "0.5531629", "0.5514729", "0.5512906", "0.54836905", "0.5478312", "0.5465318", "0.5461569", "0.5451766", "0.5429604", "0.5423943", "0.54238266", "0.5415678", "0.54147846", "0.5405153", "0.5402571", "0.5398785", "0.5397647", "0.53956753", "0.53930247", "0.5389371", "0.53799725", "0.5371888", "0.5371399", "0.53650075", "0.53554183", "0.53527296", "0.53497565", "0.5332516", "0.53291976", "0.5320329", "0.531551", "0.5306392", "0.530238", "0.5281702", "0.5279613", "0.5264918", "0.5252831", "0.524924", "0.52471125", "0.52471054", "0.5246446", "0.52450526", "0.52441823", "0.52437484", "0.5240429", "0.52304226", "0.522737", "0.5227201", "0.5227144", "0.5225486", "0.52209514", "0.52163213", "0.5213194", "0.5201028", "0.51978004", "0.51953053", "0.51923317", "0.51906484" ]
0.68324196
0
Returns true when a building is completed
public boolean isCompleted() { return completed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isComplete();", "boolean isComplete();", "boolean isComplete();", "protected boolean isFinished() {\n\n \tif(weAreDoneSenor == true) {\n\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\n \t\n }", "public Boolean isComplete() {\n return true;\n }", "protected boolean isFinished() {\r\n if (state == STATE_SUCCESS) {\r\n // Success\r\n return true;\r\n }\r\n if (state == STATE_FAILURE) {\r\n // Failure\r\n return true;\r\n }\r\n return false;\r\n }", "public abstract boolean isComplete();", "protected boolean isFinished() {\n\t\treturn true;\n\t}", "protected boolean isFinished() {\n\t\treturn true;\n\t}", "protected boolean isFinished() {\n\t\treturn true;\n\t}", "protected boolean isFinished()\n\t{\n\t\treturn true;\n\t}", "boolean isFinished() {\n\t\tif (this.currentRoom.isExit() && this.currentRoom.getMonsters().isEmpty()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "public boolean is_completed();", "public boolean isFinished(){\n return true;\n }", "public boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return finished;\n }", "protected boolean isFinished() {\n\t\treturn false;\n\t\t//return timeOnTarget >= finishTime;\n }", "@Override\n public boolean isFinished() {\n return complete;\n }", "protected boolean isFinished() {\n\t\tif (_timesRumbled == 40) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "protected boolean isFinished() {\n return Robot.m_elevator.onTarget();\n }", "public boolean isComplete()\n {\n return getStatus() == STATUS_COMPLETE;\n }", "public static boolean isFinishedCity()\r\n {\r\n try\r\n {\r\n Building b = astApp.getBuildings().get( astApp.getBuildings().size() - 1 );\r\n \r\n if( b.getBuilding().getXLocation() + b.getBuilding().getWidth() >= 700 )\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }\r\n catch( ArrayIndexOutOfBoundsException e )\r\n {\r\n return false;\r\n }\r\n }", "protected boolean isFinished() {\n\t\treturn pid.onTarget();\n\t}", "boolean hasIsComplete();", "boolean hasIsComplete();", "protected boolean isFinished() {\n \treturn (Robot.sonar.getDistance() <= distance);\n }", "protected boolean isFinished() {\n\t\treturn Robot.gearIntake.getPegSwitch();\n\t}", "@Override\n\tpublic boolean isFinished() {\n\t\treturn finished;\n\t}", "protected boolean isFinished() {\n if (waitForMovement) return (timeSinceInitialized() > Robot.intake.HOPPER_DELAY);\n return true;\n }", "@Override\n\tpublic boolean isFinished() {\n\t\treturn true;\n\t}", "protected boolean isFinished(){\r\n return true;\r\n }", "public boolean isCompleted()\n\t{\n\t\treturn pieces.length == existing.cardinality();\n\t}", "protected boolean isFinished() {\n\t\treturn Robot.elevator.isInPosition(newPosition, direction);\n\t}", "protected boolean isFinished() {\n\t\treturn isFinished;\n\t}", "@Override\r\n\tpublic boolean isFinished() {\n\t\treturn finish;\r\n\t}", "boolean hasFinished();", "boolean completed();", "public boolean isComplete() {\n return complete;\n }", "public boolean isComplete() {\n return complete;\n }", "protected boolean isFinished() {\n return m_onTarget;\n }", "protected boolean isFinished() {\n \t\n \tif(current_time >= goal) {\n \t\t\n \t\treturn true;\n \t}else {\n \t\t\n \t\treturn false;\n \t}\n }", "public boolean isFinished() {\n\t\treturn (finished);\n\t}", "@Override\n public boolean isCompleted() {\n return time.secondsPassed==finishLevel;\n }", "public boolean isComplete() {\r\n\t\treturn complete;\r\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn done; \n\t}", "protected boolean isFinished() {\n //return controller.onTarget();\n return true;\n }", "public boolean isFinished();", "public boolean finished() {\n\t\t\n\t\tfor ( int i = 0; i <this.num; i++) {\n\t\t\tif (this.car[i]!=null) {\n\t\t\t\tif (this.car[i].checkFinished()==false) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean isCompleted() {\r\n return completed;\r\n }", "protected boolean isFinished() {\n return isFinished;\n }", "boolean isComplete() {\n return complete.get();\n }", "boolean isCompleted();", "public boolean isCompleted() {\n\t\t\n\t\treturn completed;\n\t\t\n\t}", "protected boolean isFinished() {\n \tif (moving) return Robot.armPiston.getMajor() != PistonPositions.Moving; /* && Robot.armPiston.getMinor() != PistonPositions.Moving; */\n \treturn true;\n }", "public static boolean isCompleted(){\n return isComplete;\n }", "public boolean isComplete() {\n\t\treturn false;\n\t}", "public boolean isCompleted() {\n return completed;\n }", "protected boolean isFinished() {\n\treturn this.isDone;\n }", "public boolean isFinished(){\n return this.finished;\n }", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}", "public boolean isFinished() {\n\t\t\n\t\treturn drivetrain.angleReachedTarget();\n\n\t}", "protected boolean isFinished()\n\t{\n\t\treturn false;\n\t}", "protected boolean isFinished() {\r\n\t\t \tboolean ans = false;\r\n\t\t \treturn ans;\r\n\t\t }", "public boolean completed() {\n return completed;\n }", "protected boolean isFinished() {\n return System.currentTimeMillis() - timeStarted >= timeToGo;\n }", "public boolean isFinished() {\n return finished;\n }", "public boolean isComplete( ) {\n\t\treturn complete;\n\t}", "@Override\n public boolean isFinished() {\n if (numBalls == -1) {\n return false;\n } else {\n return ballsShot >= numBalls;\n }\n }", "public boolean isFinished() {\n\t\treturn finished;\n\t}", "public boolean isFinished() {\n\t\treturn finished;\n\t}", "public boolean isFinishing() {\n return isFinishing;\n }", "Boolean isFinished();", "public abstract boolean isCompleted();", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished()\n {\n return timer.get() > driveDuration;\n }", "public boolean isComplete() {\n return addedFrontWork.size() == 0 && addedBackWork.size() == 0 && sawAllDone.get();\n }", "boolean isFinished();", "public boolean isComplete()\n {\n return (getCount() >= getGoal());\n }", "protected boolean isFinished() {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean isComplete() {\n\t\tif (this.defeated == this.totalEnemies)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public boolean isCompleted() {\n\t\treturn program.getBPCFG().isCompleted();\n\t}", "@Override\n\tpublic boolean isCompleted()\n\t{\n\t\treturn false;\n\t}", "public boolean isComplete(){\r\n\r\n\t\t// TODO\r\n\t\t\r\n\t\tif(!isValid()){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "protected boolean isFinished() {\n \t// wait for a time out\n return false;\n }", "public boolean isDone()\n {\n return (this.elapsed >= this.duration);\n }", "public synchronized boolean hasFinished ()\n {\n return this.finished;\n }", "protected boolean isFinished() {\n\t\treturn Robot.oi.ds.isAutonomous();\n\t}", "@Override\n public boolean isCompleted() {\n return isAllChildCompleted() || this.completion == 1;\n }" ]
[ "0.7545686", "0.7499924", "0.7499924", "0.7420268", "0.74140346", "0.73841906", "0.73801076", "0.7374708", "0.7374708", "0.7374708", "0.7365561", "0.736322", "0.732645", "0.732645", "0.732645", "0.732645", "0.732645", "0.732645", "0.73227566", "0.73124385", "0.7306152", "0.7298369", "0.728155", "0.7252873", "0.7252823", "0.7252046", "0.7244009", "0.7240668", "0.72403216", "0.72384477", "0.72384477", "0.7237214", "0.72364765", "0.7232585", "0.7226997", "0.7214762", "0.7208317", "0.7206025", "0.7197313", "0.71739316", "0.7170808", "0.71586674", "0.7153357", "0.71532726", "0.71532726", "0.7152207", "0.7149467", "0.7138802", "0.7138327", "0.71335006", "0.713286", "0.7131245", "0.71309096", "0.71267", "0.7119439", "0.7117358", "0.7115961", "0.71130234", "0.71124995", "0.71098226", "0.7105407", "0.71042633", "0.71018475", "0.7096752", "0.709448", "0.70934844", "0.70934844", "0.709329", "0.70884436", "0.70882165", "0.70851123", "0.7074483", "0.7071824", "0.70716506", "0.7067142", "0.7064175", "0.7064175", "0.7052156", "0.70450515", "0.70448047", "0.70255077", "0.70255077", "0.70255077", "0.70255077", "0.70255077", "0.70255077", "0.70241857", "0.7020305", "0.70195097", "0.7019066", "0.70185626", "0.7015899", "0.701511", "0.70146686", "0.7000042", "0.6999271", "0.69981027", "0.6997017", "0.6996945", "0.69870317" ]
0.71133155
57
Returns true when a builder is able to enter a tile
public boolean isBuildable() { return buildable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean canBuildDome(Tile t);", "boolean canBuildBlock(Tile t);", "boolean checkWin(Tile initialTile);", "private static boolean isTileAvailable(DisplayTile tile, Direction fromDirection, HashMap<DisplayTile, DisplayTile> chainedTiles) {\n\t\tif (tile == null || chainedTiles.containsKey(tile))\n\t\t\treturn false;\n\t\t\n\t\tif (tile.isRoomTile() && !tile.hasDoor(fromDirection))\n\t\t\treturn false;\n\t\t\t\n\t\tif (tile.hasSuspect() || tile.isRemovedTile())\n\t\t\treturn false;\n\t\t\n\t\tif (tile.isPassage() && tile.getPassageConnection().hasSuspect())\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}", "public boolean isRun() {\n if (!isValid()) {\n return false;\n }\n else {\n if (tiles.get(0).getColour() == tiles.get(1).getColour()) {\n return true;\n } else {\n return false;\n }\n }\n }", "public boolean canStandOn(Environment tile)\n {\n if( tile.terrainType == TerrainType.TELETILE )\n return false; // Standing on empty space is pretty hard\n return getMoveCost(tile) < IMPASSABLE;\n }", "public boolean getCanSpawnHere()\n {\n return this.isValidLightLevel() && super.getCanSpawnHere();\n }", "public boolean isTileSelected() {\n return selectedTile != null;\n }", "boolean canMove(Tile t);", "@Override\n public boolean activate() {\n //When will this activate?\n return Areas.FALADOR.contains(ctx.players.local().tile())\n && ctx.widgets.component(1371,0).visible()\n && !ctx.objects.select().name(\"Waterpump\").within(6.0).isEmpty();\n }", "public boolean hasTile(Tile a_tile){\n for(int i = 0; i < playerHand.size(); i++){\n if(playerHand.get(i).getLeft() == a_tile.getLeft() && playerHand.get(i).getRight() == a_tile.getRight()){\n return true;\n }\n }\n return false;\n }", "public boolean hasSelectedTile()\r\n\t{\r\n\t\treturn (selectedTile != null);\r\n\t}", "public boolean hasTile(GroundTile tile) {\n return this.editedTiles.contains(tile);\n }", "@Override\r\n\tpublic boolean isNodeValid() {\n\t\treturn (SKILLS.HITPOINTS.getActualLevel() >= 25\r\n\t\t\t\t&& SKILLS.THIEVING.getActualLevel() >= 28\r\n\t\t\t\t&& Inventory.getCount(\"Coins\") >= 30 && (Location.karamjaFirstStepCheck.atLocation(Player.getPosition()) ||Location.karamjaBoatLandTile.equals(Player.getPosition()) ));\r\n\t}", "public abstract boolean isTerrainAccessiable(final Cell cell);", "public boolean hasTiles()\r\n\t{\r\n\t\treturn _tiles.size() != 0;\r\n\t}", "private boolean checkTileExists(int x, int y, int zoom) {\n \t int minZoom = 12;\n \t int maxZoom = 16;\n\n \t if ((zoom < minZoom || zoom > maxZoom)) {\n \t return false;\n \t }\n\n \t return true;\n \t }", "protected boolean selectTile(String player, int coordinate, String area, MBproduction.buildingType build){\n String culture = null;\n boolean AIflag = false;\n boolean placeFlag = false;\n MBproduction.terrainTypeEnum selected;\n String normalizeSelected;\n /*******************************/\n player=player.toLowerCase();\n switch(player.toLowerCase()){\n case\"human\":\n culture = playBoard.humanCulture();\n break;\n case\"ai1\":\n culture = playBoard.AICulture1();\n break;\n case\"ai2\":\n culture = playBoard.AICulture2();\n break;\n default:\n break;\n }\n selected = playBoard.getIndiTerrain(coordinate);\n normalizeSelected = \n selected.toString().substring(0, selected.toString().length()-1);\n switch(culture.toLowerCase()){\n //norse\n case\"norse\":\n switch(area.toLowerCase()){\n case\"production\":\n for (int i = 0; i < norseProduction.size(); i ++){\n if (norseProduction.get(i).getName().equalsIgnoreCase(normalizeSelected)){\n norseProduction.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(selected.getPath())));\n norseProduction.remove(i);\n playBoard.updateProductionResourceCube(player, selected);\n playBoard.exileTerrain(selected); \n tileSelection.get(coordinate).setEnabled(false);\n stackAI.remove(stackAI.indexOf(coordinate));\n placeFlag = true;AIflag = true;\n break;\n }\n }\n break;\n //!!!!!!!!WARNNING!!!!!!!! NEED TO MODIFY FOR ITERATION II\n case\"city\":\n for (int i = 0; i < norseCity.size(); i ++){\n if (norseCity.get(i).getIcon() == null){\n norseCity.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(build.getPath())));\n placeFlag = true;\n break;\n }\n }\n break;\n default:\n break;\n }\n break;\n //greek \n case\"greek\":\n switch(area.toLowerCase()){\n case\"production\":\n for (int i = 0; i < greekProduction.size(); i ++){\n if (greekProduction.get(i).getName().equalsIgnoreCase(normalizeSelected)){\n greekProduction.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(selected.getPath())));\n greekProduction.remove(i);\n playBoard.updateProductionResourceCube(player, selected);\n playBoard.exileTerrain(selected); \n tileSelection.get(coordinate).setEnabled(false);\n stackAI.remove(stackAI.indexOf(coordinate));\n placeFlag = true;AIflag = true;\n break;\n }\n }\n break;\n //!!!!!!!!WARNNING!!!!!!!! NEED TO MODIFY FOR ITERATION II\n case\"city\":\n for (int i = 0; i < greekCity.size(); i ++){\n if (greekCity.get(i).getIcon() == null){\n greekCity.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(build.getPath())));\n placeFlag = true;\n break;\n } \n }\n break;\n default:\n break;\n }\n break;\n //egypt\n case\"egypt\":\n switch(area.toLowerCase()){\n case\"production\":\n for (int i = 0; i < egyptProduction.size(); i ++){\n if (egyptProduction.get(i).getName().equalsIgnoreCase(normalizeSelected)){\n egyptProduction.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(selected.getPath())));\n playBoard.updateProductionResourceCube(player, selected);\n playBoard.exileTerrain(selected);\n egyptProduction.remove(i);\n tileSelection.get(coordinate).setEnabled(false);\n stackAI.remove(stackAI.indexOf(coordinate));\n placeFlag = true;AIflag = true;\n break; \n }\n }\n break;\n //!!!!!!!!WARNNING!!!!!!!! NEED TO MODIFY FOR ITERATION II\n case\"city\":\n for (int i = 0; i < egyptCity.size(); i ++){\n if (egyptCity.get(i).getIcon() == null){\n egyptCity.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(build.getPath())));\n placeFlag = true;\n break;\n } \n }\n break;\n default:\n break;\n }\n break;\n default:\n break;\n }\n if ((!placeFlag)&&(player.equalsIgnoreCase(\"human\"))){\n JOptionPane.showMessageDialog(\n null, \"No suitable tile for \" + player , \"Information\",\n JOptionPane.WARNING_MESSAGE);\n }\n return AIflag; \n }", "public boolean isSpawnable(Location loc) {\n Block block = loc.getBlock();\n Block under = loc.getBlock().getRelative(BlockFace.DOWN);\n Block above = loc.getBlock().getRelative(BlockFace.UP);\n if (block.getType().equals(Material.AIR) && !under.getType().equals(Material.AIR) && above.getType().equals(Material.AIR)) {\n if (block.getLightLevel() <= plugin.CONFIG.SPAWNING_LIGHT) {\n return true;\n }\n }\n return false;\n }", "private boolean tryAttack(Tile fromTile) {\r\n\t\tint size = getBoard().getTiles().length;\r\n\r\n\t\t// if attacker is on power-up tile\r\n\t\tif (fromTile.getTileType().equals(\"PowerUp\")) {\r\n\t\t\tif (fromTile.getPiece().getLEAGUE() == League.SHARK && fromTile.getTer().territoryName().equals(\"Shark\")) {\r\n\t\t\t\tfromTile.getPiece().setPower(fromTile.getPiece().getPower() + 1);\r\n\t\t\t}\r\n\r\n\t\t\tif (fromTile.getPiece().getLEAGUE() == League.EAGLE && fromTile.getTer().territoryName().equals(\"Eagle\")) {\r\n\t\t\t\tfromTile.getPiece().setPower(fromTile.getPiece().getPower() + 1);\r\n\t\t\t} else if (fromTile.getTer().territoryName().equals(\"Neutral\")) {\r\n\t\t\t\tfromTile.getPiece().setPower(fromTile.getPiece().getPower() + 1);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t// if the defender is on power-up tile\r\n\t\tif (tile.getTileType().equals(\"PowerUp\")) {\r\n\t\t\tif (tile.getPiece().getLEAGUE() == League.SHARK && tile.getTer().territoryName().equals(\"Shark\")) {\r\n\t\t\t\ttile.getPiece().setPower(tile.getPiece().getPower() + 1);\r\n\t\t\t}\r\n\r\n\t\t\tif (tile.getPiece().getLEAGUE() == League.EAGLE && tile.getTer().territoryName().equals(\"Eagle\")) {\r\n\t\t\t\ttile.getPiece().setPower(tile.getPiece().getPower() + 1);\r\n\t\t\t} else if (tile.getTer().territoryName().equals(\"Neutral\")) {\r\n\t\t\t\ttile.getPiece().setPower(tile.getPiece().getPower() + 1);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tif (fromTile.getPiece().getPower() >= tile.getPiece().getPower()) {\r\n\t\t\tif (tile.getPiece().getTYPE() == PieceType.FLAG) {\r\n\t\t\t\tfromTile.getPiece().setHasEnemyFlag(true);\r\n\t\t\t\tUtilities.infoAlert(\"Enemy Flag Captured!\", \"Get that piece with the flag back to your territory quickly!\");\r\n\t\t\t} else {\r\n\t\t\t\tif (tile.getPiece().getHasEnemyFlag() == true) {\r\n\t\t\t\t\tUtilities.infoAlert(\"Flag Recaptured!\", \"Enemy piece carrying your flag has been killed.\\nYour flag has respawned in your territory.\");\r\n\r\n\t\t\t\t\t// generate the dropped flag at its original position\r\n\t\t\t\t\t// or generate the dropped flag on first available tile on first or last row\r\n\t\t\t\t\t// if the default position has a piece on it\r\n\t\t\t\t\tif (tile.getPiece().getLEAGUE() == League.EAGLE) {\r\n\t\t\t\t\t\tif (getBoard().getTiles()[size - 1][(size / 2) - 1].getPiece() == null) {\r\n\t\t\t\t\t\t\tgetBoard().getTiles()[size - 1][(size / 2) - 1].setPiece(new SharkFlag());\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tfor (int sharkCol = 0; sharkCol < getBoard().getTiles().length; sharkCol++) {\r\n\t\t\t\t\t\t\t\tif (getBoard().getTiles()[size - 1][sharkCol].getPiece() == null) {\r\n\t\t\t\t\t\t\t\t\tgetBoard().getTiles()[size - 1][sharkCol].setPiece(new SharkFlag());\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (getBoard().getTiles()[0][size / 2].getPiece() == null) {\r\n\t\t\t\t\t\t\tgetBoard().getTiles()[0][size / 2].setPiece(new EagleFlag());\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tfor (int eagleCol = 0; eagleCol < getBoard().getTiles().length; eagleCol++) {\r\n\t\t\t\t\t\t\t\tif (getBoard().getTiles()[0][eagleCol].getPiece() == null) {\r\n\t\t\t\t\t\t\t\t\tgetBoard().getTiles()[0][eagleCol].setPiece(new EagleFlag());\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn movePiece(fromTile);\r\n\t\t} else {\r\n\t\t\tUtilities.infoAlert(\"Invalid action\", \"Enemy power level higher at level \" + tile.getPiece().getPower()\r\n\t\t\t\t\t+ \". \" + \"\\nYour current piece is not able to defeat it and has cowered back in fear.\");\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private boolean canAddRedTile() {\n\n\t\tif(isAllPiecesEaten(Game.getInstance().getCurrentPlayerColor())) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isEntered();", "boolean haveAnySpawn();", "public boolean canPung(int tile) {\n\t\tint[] numbers = getTileNumbers();\n\t\tint instances = TileAnalyser.in(tile, numbers);\n\t\treturn instances>1;\n\t}", "public boolean canDoBuildInitialRoad(){\n\t\t // If the player already has two roads on the board then he has already placed the initial roads\n\t\t if(playerPieces.getNumberOfRoads() < 14){\n\t\t\t return false;\n\t\t }\n\t\t return true;\n\t }", "boolean hasMinigameAction();", "boolean isGameFinished() {\n if (tiles.takenTilesNumber() < 3)\n return false;\n Symbol winningSymbol = tiles.getTile(1);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(9).equals(winningSymbol)) {\n return true;\n }\n }\n if(tiles.getTile(2).equals(winningSymbol)) {\n if(tiles.getTile(3).equals(winningSymbol)) return true;\n }\n if(tiles.getTile(4).equals(winningSymbol)) {\n if(tiles.getTile(7).equals(winningSymbol)) return true;\n }\n }\n winningSymbol = tiles.getTile(2);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(8).equals(winningSymbol)) return true;\n }\n }\n\n winningSymbol = tiles.getTile(3);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(7).equals(winningSymbol)) return true;\n }\n if (tiles.getTile(6).equals(winningSymbol)) {\n if (tiles.getTile(9).equals(winningSymbol)) return true;\n }\n }\n\n\n winningSymbol = tiles.getTile(4);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(7).equals(winningSymbol)) return true;\n }\n }\n\n winningSymbol = tiles.getTile(7);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(8).equals(winningSymbol)) {\n if (tiles.getTile(9).equals(winningSymbol)) return true;\n }\n }\n return false;\n }", "public static boolean canWrap(TileEntity tile) {\n\t\treturn (tile instanceof IStargateAccess) || (tile instanceof IStargateControllerAccess)\n\t\t\t\t|| (tile instanceof INaquadahGeneratorAccess);\n\t}", "public boolean mayPickup(Player debug1) {\n/* 112 */ return true;\n/* */ }", "boolean isImageTileType();", "public boolean getCanSpawnHere()\r\n {\r\n return false;\r\n }", "public boolean isValid() {\n return super.isValid()\n && getUnit().isPerson()\n && checkTileImprovementPlan(tileImprovementPlan)\n && (hasTools() || checkColonyForTools(getAIUnit(), colonyWithTools));\n }", "public boolean isSpawn()\n\t{\n\t\treturn block == Block.FRUIT_SPAWN || block == Block.GHOST_SPAWN || block == Block.PAC_SPAWN;\n\t}", "public boolean tileReachable(float tx, float ty, AgentModel selectedAgent)\r\n/* 243: */ {\r\n/* 244:271 */ float x = selectedAgent.getX() - 0.5F;\r\n/* 245:272 */ float y = selectedAgent.getY() - 0.5F;\r\n/* 246:274 */ switch ((int)selectedAgent.getAngle())\r\n/* 247: */ {\r\n/* 248: */ case 0: \r\n/* 249:277 */ if ((y - 1.0F == ty) && (tx >= x - 1.0F) && (tx <= x + 1.0F)) {\r\n/* 250:279 */ return true;\r\n/* 251: */ }\r\n/* 252: */ break;\r\n/* 253: */ case 90: \r\n/* 254:283 */ if ((x + 1.0F == tx) && (ty >= y - 1.0F) && (ty <= y + 1.0F)) {\r\n/* 255:285 */ return true;\r\n/* 256: */ }\r\n/* 257: */ break;\r\n/* 258: */ case 180: \r\n/* 259:289 */ if ((y + 1.0F == ty) && (tx >= x - 1.0F) && (tx <= x + 1.0F)) {\r\n/* 260:291 */ return true;\r\n/* 261: */ }\r\n/* 262: */ break;\r\n/* 263: */ case 270: \r\n/* 264:295 */ if ((x - 1.0F == tx) && (ty >= y - 1.0F) && (ty <= y + 1.0F)) {\r\n/* 265:298 */ return true;\r\n/* 266: */ }\r\n/* 267: */ break;\r\n/* 268: */ }\r\n/* 269:303 */ return false;\r\n/* 270: */ }", "private boolean canAddBlueTile() {\n\t\tint soldierCount=0,queenCount=0;\n\n\n\t\tArrayList<Piece> playerPieces = Board.getInstance().getColorPieces(Game.getInstance().getCurrentPlayerColor());\n\t\tfor(Piece p:playerPieces)\n\t\t{\n\t\t\tif(p instanceof Soldier)\n\t\t\t{\n\t\t\t\tsoldierCount++;\n\t\t\t}\n\t\t\tif(p instanceof Queen)\n\t\t\t{\n\t\t\t\tqueenCount++;\n\t\t\t}\n\t\t}\n\t\treturn (soldierCount == 2 && queenCount == 1);\n\t}", "protected boolean checkForWin() {\r\n \t\r\n if (squaresRevealed == this.width * this.height - this.mines) {\r\n finishFlags();\r\n finish(GameStateModel.WON);\r\n return true;\r\n } \t\r\n \t\r\n return false;\r\n \t\r\n }", "private boolean canRemoveTiles() {\n return this.mCurrentSpecs.size() > 8;\n }", "public boolean tileWalkable(float xTile, float yTile)\r\n/* 160: */ {\r\n/* 161:183 */ return (!tileInBounds(xTile, yTile)) || \r\n/* 162:184 */ (this.walkable[((int)xTile)][((int)yTile)] != 0);\r\n/* 163: */ }", "public boolean tileOfComputer (int row, int col){\n return this.gameBoard[row][col] == 'o';\n }", "public boolean canChow(int tile) {\n\t\treturn TileAnalyser.inchow(tile, getTileNumbers())>0;\n\t}", "@Override\n public boolean isTileFriendly(){\n return false;\n }", "public boolean isWalkAbleTile(int x, int y) {\n\t\tfor (Entity e : entities) {\n\t\t\tif (e.getX() >> 4 == x && e.getY() >> 4 == y)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean shouldExecute() {\n LivingEntity livingentity = ShulkerEntity.this.getAttackTarget();\n if (livingentity != null && livingentity.isAlive()) {\n return ShulkerEntity.this.world.getDifficulty() != Difficulty.PEACEFUL;\n } else {\n return false;\n }\n }", "public boolean isWin() {\n\t\t\n\t\tboolean win = true;\n\t\t\n\t\tfor(int i = 0; i < numTiles - 2; i++) {\n\t\t\twin = win && (boardConfig[i] < boardConfig[i+1]);\n\t\t}\n\t\t\n\t\twin = win && (boardConfig[numTiles - 1] == 0);\n\t\t\n\t\treturn win;\n\t}", "public boolean tileInBounds(float xTile, float yTile)\r\n/* 111: */ {\r\n/* 112:124 */ return (xTile >= 0.0F) && (xTile < getWidthInTiles()) && (yTile >= 0.0F) && (\r\n/* 113:125 */ yTile < getHeightInTiles());\r\n/* 114: */ }", "private void isAbleToBuild() throws RemoteException {\n int gebouwdeGebouwen = speler.getGebouwdeGebouwen();\n int bouwLimiet = speler.getKarakter().getBouwLimiet();\n if (gebouwdeGebouwen >= bouwLimiet) {\n bouwbutton.setDisable(true); // Disable button\n }\n }", "boolean wouldBeValidHome(IGeneticMob geneticMob, Vec3 coords, Block block, int metadata, TileEntity te);", "private boolean makeMapTileTakeTurn(int x, int y) {\n MapTile tile_at_x_y = this.getTile(x, y);\n if (tile_at_x_y == null) {\n return false;\n }\n tile_at_x_y.takeTurn();\n return true;\n }", "@Override\n\tpublic boolean canActorEnter(Actor actor){\n\t\tif(actor.hasCapability(Abilities.ENTER))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "@Test\n public void testIsActionable_FirstCornerCase() {\n board.getCell(3, 4).addLevel();\n board.getCell(3, 3).addLevel();\n board.getCell(4, 3).addLevel();\n assertFalse(godPower.isActionable(board, player.getWorker1()));\n }", "public boolean tileOfHuman (int row, int col){\n return this.gameBoard[row][col] == 'o';\n }", "public boolean canHit() {\n\t\treturn this.hand.countValue().first() < 17;\n\t}", "public final boolean hasOnePerTileItem(int floorLevel) {\n/* 4849 */ return (this.vitems != null && this.vitems.hasOnePerTileItem(floorLevel));\n/* */ }", "private boolean canEntityBuild(User user, Location location) {\n Collection<TownBlock> blocks = TownyUniverse.getInstance().getDataSource().getAllTownBlocks();\n\n int x = (int)Math.floor(location.getX() / 16.0);\n int z = (int)Math.floor(location.getZ() / 16.0);\n\n TownyWorld world;\n try {\n world = TownyUniverse.getInstance().getDataSource().getWorld(location.getWorld().getName());\n } catch (Exception e) {\n return true;\n }\n\n TownBlock block = new TownBlock(x, z, world);\n\n return !blocks.contains(block);\n }", "public boolean isPressed() {\r\n List<Entity> entities = dungeon.getEntities();\r\n for (Entity e: entities) {\r\n if (e != null && e.getY() == getY() && e.getX() == getX()) {\r\n if (\"Boulder\".equals(e.getClass().getSimpleName()))\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "private boolean isCheckMate() {\n if (whitePlayer.getOccupiedSet().isEmpty()) {\n System.out.println(\"BLACK PLAYER WINS\");\n return true;\n }\n else if (blackPlayer.getOccupiedSet().isEmpty()) {\n System.out.println(\"WHITE PLAYER WINS\");\n return true;\n }\n else return false;\n }", "public boolean win(){\r\n for(int row = 0; row<map.length; row++){\r\n for(int col = 0; col<map[0].length; col++){\r\n if(map[row][col].getSafe() == false && (map[row][col].getVisual().equals(square) || map[row][col].getVisual().equals(bomb))){\r\n return false;\r\n }\r\n if(map[row][col].getSafe() == true && map[row][col].getVisual().equals(flag)){\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "public boolean canMine(EntityPlayer player, int X, int Y, int Z);", "public boolean isInsideTile(int x, int y){\n\t\treturn (x >= tileX && x <= tileX+tileImage.getWidth() && y >= tileY && y <= tileY+tileImage.getHeight());\n\t}", "private boolean buildStreetIsAllowed() {\r\n\t\tif (clickedRoad.getEnd() == lastSettlementNode\r\n\t\t\t\t|| clickedRoad.getStart() == lastSettlementNode) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private boolean isCreateBattle() {\r\n int percent = ConfigUtil.getConfigInteger(\"battlePercent\", 30);\r\n if(RandomUtil.nextInt(100) < percent){\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean hasShip(int tile) {\r\n return (tiles[tile] & 1) != 0;\r\n }", "private boolean canSelectCurWorldType() {\n WorldType worldtype = WorldType.WORLD_TYPES[this.selectedIndex];\n if (worldtype != null && worldtype.canBeCreated()) {\n return worldtype == WorldType.DEBUG_ALL_BLOCK_STATES ? hasShiftDown() : true;\n } else {\n return false;\n }\n }", "boolean isSetRoadTerrain();", "@Override\n\tpublic boolean shouldExecute() {\n\t\tif (!theEntity.isTamed())\n\t\t\treturn false;\n\t\telse if (theEntity.isInWater())\n\t\t\treturn false;\n\t\telse if (!theEntity.onGround)\n\t\t\treturn false;\n\t\telse {\n\t\t\tfinal EntityLivingBase var1 = theEntity.getOwner();\n\t\t\treturn var1 == null ? true\n\t\t\t\t\t: theEntity.getDistanceSqToEntity(var1) < 144.0D\n\t\t\t\t\t\t\t&& var1.getAITarget() != null ? false : isSitting;\n\t\t}\n\t}", "public boolean stepOn(Player player) {\n //System.out.println(\"Nem léphetsz rá a MapElementre.\");\n return false;\n }", "private static boolean isWin()\n {\n boolean win = true;\n for(Ship[] k:map)\n {\n for(Ship o:k)\n {\n if(o.getState()==1)\n win=false;\n }\n }\n return win;\n }", "@Override\n\tpublic boolean canCoordinateBeSpawn(int par1, int par2) {\n\t\tint i = worldObj.getFirstUncoveredBlock(par1, par2);\n\t\tif (i == 0) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn Block.blocksList[i].blockMaterial.blocksMovement();\n\t\t}\n\t}", "public boolean isWin_DragonKingOfArms(){\r\n // player got LordSelachii card\r\n /*Player playerHoldCard = null;\r\n for (Player player : discWorld.getPlayer_HASH().values()) {\r\n if (player.getPersonalityCardID() == 5) {\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }*/\r\n int count = 0;\r\n for(TroubleMarker troubleMarker : discWorld.getTroubleMarker_HASH().values()){\r\n if(troubleMarker.getAreaNumber() != ConstantField.DEFAULT_PIECE_AREA_NUMBER){\r\n count++;\r\n }\r\n }\r\n \r\n if(count >= 8){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n \r\n }", "public boolean isTileOnMap(int x, int y) {\n\t\treturn getTileAt(x, y) != null;\n\t}", "protected boolean allBoatsArePlaced() {\n for(BoatDrawing boat : boatMap.values()) {\n if (!boat.isPlaced()) {\n return false;\n }\n }\n logMsg(\"click now on 'valider' button to begin game\");\n return true;\n }", "public static boolean terrain_has_flag(int terr, terrain_flag_id flag){\r\n\t\t\t //\t BV_ISSET(get_tile_type(terr)->flags, flag)\r\n\t\t\t return false;\r\n}", "public boolean checkRequirements(PlayerBoard playerBoard);", "private static boolean checkWin() {\n\t\tfor (int i = 0; i < nRows; i++)\n\t\t\tfor (int j = 0; j < nColumns; j++) {\n\t\t\t\tCell cell = field.getCellAt(i, j);\n\t\t\t\tif (cell.hasMine() && !cell.hasSign())\t // if the cell has a mine\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// but has no flag\n\t\t\t\t\treturn false;\n\t\t\t\tif (cell.getFlag() >= 0 && !cell.getVisiblity()) // if the cell has no\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// mine in it but\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// it is not visible\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\twin = gameOver = true;\n\t\treturn true;\n\t}", "public void verifyStudyNavigatorTilePresent() {\n\t\tmoveToElement(studyNavigatorTile);\n\t\tAssert.assertTrue(isElementPresent(studyNavigatorTile));\n\t\treportInfo();\n\t}", "@Override\n\tpublic boolean isUseableByPlayer(EntityPlayer player){\n\t return worldObj.getTileEntity(xCoord, yCoord, zCoord) != this ? false : player.getDistanceSq(xCoord + 0.5D, yCoord + 0.5D, zCoord + 0.5D) <= 64.0D;\n\t}", "private boolean inGameInvariant(){\n if (owner != null && troops >= 1)\n return true;\n else\n throw new IllegalStateException(\"A Territory is left without a Master or Troops\");\n }", "public boolean isValidBoard() {\n\t\t\n\t\tif(mainSlots.size() != NUM_MAIN_SLOTS) {\n\t\t\treturn false;\n\t\t} else if ((redHomeZone != null && redHomeZone.size() != NUM_HOME_SLOTS) ||\n\t\t\t\t(greenHomeZone != null && greenHomeZone.size() != NUM_HOME_SLOTS) ||\n\t\t\t\t(yellowHomeZone != null && yellowHomeZone.size() != NUM_HOME_SLOTS) || \n\t\t\t\t(blueHomeZone != null && blueHomeZone.size() != NUM_HOME_SLOTS)) {\n\t\t\treturn false;\n\t\t} else if ((redEndZone != null && redEndZone.size() != NUM_END_SLOTS) ||\n\t\t\t\t(greenEndZone != null && greenEndZone.size() != NUM_END_SLOTS) || \n\t\t\t\t(yellowEndZone != null && yellowEndZone.size() != NUM_END_SLOTS) || \n\t\t\t\t(blueEndZone != null && blueEndZone.size() != NUM_END_SLOTS)) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t}", "public boolean work() {\n // get the next block so the cart knows where to mine\n Vec3 next = getNextblock();\n // save thee coordinates for easy access\n int x = (int) next.xCoord;\n int y = (int) next.yCoord;\n int z = (int) next.zCoord;\n\n // loop through the blocks in the \"hole\" in front of the cart\n\n for (int i = -getRange(); i <= getRange(); i++) {\n for (int j = -getRange(); j <= getRange(); j++) {\n // calculate the coordinates of this \"hole\"\n int coordX = x + i;\n int coordY = y - 1;\n int coordZ = z + j;\n\n if (farm(coordX, coordY, coordZ)) {\n return true;\n } else if (till(coordX, coordY, coordZ)) {\n return true;\n } else if (plant(coordX, coordY, coordZ)) {\n return true;\n }\n }\n }\n\n return false;\n }", "public boolean checkAlienPlacementTile(float x, float y)\r\n/* 471: */ {\r\n/* 472:563 */ if (!tileWalkable(x, y)) {\r\n/* 473:565 */ return false;\r\n/* 474: */ }\r\n/* 475:568 */ AgentModel a = getAgentOnTile(x, y);\r\n/* 476:569 */ if ((a != null) || (((a instanceof DoorModel)) && (!((DoorModel)a).isOpen()))) {\r\n/* 477:571 */ return false;\r\n/* 478: */ }\r\n/* 479:574 */ return true;\r\n/* 480: */ }", "public boolean isInside(){\n\t\tinside = true;\n\t\tif(map.contains(new Rectangle(x,y,(int)spriteSize.getHeight(), (int)spriteSize.getWidth()))==false){\n\t\t\tinside = false;\n\t\t}\n\t\treturn(inside);\n\t}", "@Override\n public boolean isValid() {\n return (27 - Inventory.getAll().length <= Inventory.find(\"Soft clay\").length)\n || (Inventory.find(\"Soft clay\").length < 1 || Inventory\n .find(\"Astral rune\").length < 1)\n && !Banking.isBankScreenOpen()\n && GlassBlower.antiban.canInteractObject();\n }", "@Override\n protected boolean isFinished() {\n return (Math.abs(hpIntake.getWristPosition()) - HatchPanelIntake.positions[position.ordinal()] < Math.PI/12);\n }", "boolean hasGrid();", "public boolean isGoal() {\n return Arrays.deepEquals(tiles, goal);\n }", "boolean hasEntered() {\n return entered;\n }", "public boolean canBuild(Player player) {\n\t\treturn canBuild(player.getUsername());\n\t}", "public boolean shouldHit() {\r\n\t\tif(getHandVal() < 17) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false; \r\n\t}", "public abstract boolean isMine();", "public boolean canBuildNextStage() {\r\n\t\tSystem.out.print(\"Checking if \" + stages[stagesCompleted]\r\n\t\t\t\t+ \" can be built:\");\r\n\t\tSimpleResList costSRL = SimpleResList\r\n\t\t\t\t.buildCostList(stages[stagesCompleted]);\r\n\t\tSystem.out\r\n\t\t\t\t.println((canBuildStage(stages[stagesCompleted], costSRL) ? \" true \"\r\n\t\t\t\t\t\t: \" false \"));\r\n\t\t// TODO needs code to see if there is enough money to buy the goods from\r\n\t\t// the neighbors(if they have the goods).....look buildCommandOptions\r\n\t\treturn canBuildStage(stages[stagesCompleted], costSRL); // this is only\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// checking to\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// see if this\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// board can\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// afford it\r\n\t}", "public boolean shouldExecute()\n {\n return !super.shouldExecute() ? false : (!this.theEntity.worldObj.getGameRules().getGameRuleBooleanValue(\"mobGriefing\") ? false : !this.field_151504_e.func_150015_f(this.theEntity.worldObj, this.entityPosX, this.entityPosY, this.entityPosZ));\n }", "boolean hasStartGameRequest();", "private boolean tileIsInbounds(int row, int col){\n\t\treturn row >= 0 && col >= 0\n\t\t\t\t&& row < board.length && col < board[0].length;\n\t}", "public boolean checkRep() {\n return location.x() >= 0 && location.x() < board.getWidth() && \n location.y() >= 0 && location.y() < board.getHeight(); \n }", "public boolean canSpawnMore() {\n for(int e: enemiesLeft) {\n if(e > 0) {\n return true;\n }\n }\n\n return false;\n }", "public boolean shouldExecute() {\n if (this.runDelay <= 0) {\n if (!net.minecraftforge.event.ForgeEventFactory.getMobGriefingEvent(bean.world, bean)) {\n return false;\n }\n\n this.currentTask = -1;\n if(plantAndCollect)\n this.hasFarmItem = ((EntityWorkBean)bean).isFarmItemInInventory();\n else this.hasFarmItem = false;\n this.wantsToReapStuff = true; //this.villager.wantsMoreFood();\n }\n\n return super.shouldExecute();\n }", "public boolean hasTileEntity(int metadata)\r\n/* 259: */ {\r\n/* 260:304 */ return true;\r\n/* 261: */ }", "public boolean canGameStart() {\n\t\tif (users.getSize() >= quantidadeDeJogadoresMinimos) {\n\t\t\t// Jogo pode comešar\n\t\t\treturn true;\n\n\t\t}\n\t\t// Jogo nao pode comešar\n\t\treturn false;\n\t}", "private boolean roomShouldHaveMonsters() {\n return contents.contains(roomContents.MONSTERS)\n || contents.contains(roomContents.EXPLORATION)\n || contents.contains(roomContents.KEY)\n || contents.contains(roomContents.FINAL_KEY);\n }", "private boolean legalMove() {\n\n\t\t// empty landing spot\n\t\tif (tilePath.size() == 0) {\n\t\t\tdebug(\"illegal, empty landing spot\");\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!mBoard.tileIsEmpty(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, tile not empty\");\n\t\t\treturn false;\n\t\t}\n\n\t\t// start doesn't equal end\n\t\tif (tilePath.get(0).equals(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, start doesn't equal end\");\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public boolean win() {\n for (int i = 0; i < getBoard().length; i++) {\n for (int j = 0; j < getBoard()[i].length; j++) {\n if (!getBoard(i, j).getClicked() && !getBoard(i, j).getMine()) {\n return false;\n }\n }\n }\n for (int i = 0; i < getBoard().length; i++) {\n for (int j = 0; j < getBoard()[i].length; j++) {\n if (getBoard(i, j).getMine()) {\n getBoard(i, j).setFlagged();\n getBoard(i, j).repaint();\n }\n }\n }\n return true;\n }" ]
[ "0.7635299", "0.7601848", "0.7080627", "0.6958659", "0.6690476", "0.6654242", "0.6650611", "0.66180766", "0.6604612", "0.6530369", "0.6449162", "0.63828516", "0.63468313", "0.63272846", "0.6309325", "0.63061845", "0.62791926", "0.6278024", "0.62575495", "0.6253343", "0.624234", "0.62282234", "0.6214527", "0.6199443", "0.6183101", "0.61755764", "0.61582696", "0.61385345", "0.61308485", "0.61290836", "0.61045116", "0.60996556", "0.60892487", "0.6072745", "0.60719496", "0.60611933", "0.60525703", "0.6043934", "0.60373795", "0.6033784", "0.60155237", "0.60111845", "0.6003414", "0.6003376", "0.6002626", "0.59861255", "0.5981411", "0.59663635", "0.5950552", "0.5939141", "0.59325254", "0.5930818", "0.59299517", "0.59277195", "0.5921034", "0.5920479", "0.59173095", "0.591674", "0.59163606", "0.5914288", "0.5910172", "0.59069645", "0.5905604", "0.5904108", "0.58892304", "0.5881624", "0.5876762", "0.5870346", "0.5869776", "0.58676803", "0.58651316", "0.58646303", "0.5864198", "0.5858589", "0.5858301", "0.5856181", "0.5854988", "0.5851916", "0.58456916", "0.5838412", "0.5832082", "0.5826236", "0.58259743", "0.5817393", "0.5816461", "0.58121663", "0.5804248", "0.58008164", "0.5795963", "0.57958305", "0.5792624", "0.5791625", "0.5790083", "0.57898855", "0.5789587", "0.5786541", "0.5782704", "0.5782454", "0.57792383", "0.57781404", "0.5774359" ]
0.0
-1
Returns true when a builder is able to build on a tile
public boolean isMovable() { return movable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean canBuildDome(Tile t);", "boolean canBuildBlock(Tile t);", "boolean hasBuild();", "private boolean isBuilt() {\n\t\t\tif (name == null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor (WeaponFlavor flavor: WeaponFlavor.values()) {\n\t\t\t\tif (flavors.get(flavor) == null) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "public boolean canBuild(Player player) {\n\t\treturn canBuild(player.getUsername());\n\t}", "public boolean canBuild(int numToBuild) \n\t{\n\t\t return (numBuildings+numToBuild) <= MAX_NUM_UNITS;\n\t}", "private void isAbleToBuild() throws RemoteException {\n int gebouwdeGebouwen = speler.getGebouwdeGebouwen();\n int bouwLimiet = speler.getKarakter().getBouwLimiet();\n if (gebouwdeGebouwen >= bouwLimiet) {\n bouwbutton.setDisable(true); // Disable button\n }\n }", "public boolean canBuildNextStage() {\r\n\t\tSystem.out.print(\"Checking if \" + stages[stagesCompleted]\r\n\t\t\t\t+ \" can be built:\");\r\n\t\tSimpleResList costSRL = SimpleResList\r\n\t\t\t\t.buildCostList(stages[stagesCompleted]);\r\n\t\tSystem.out\r\n\t\t\t\t.println((canBuildStage(stages[stagesCompleted], costSRL) ? \" true \"\r\n\t\t\t\t\t\t: \" false \"));\r\n\t\t// TODO needs code to see if there is enough money to buy the goods from\r\n\t\t// the neighbors(if they have the goods).....look buildCommandOptions\r\n\t\treturn canBuildStage(stages[stagesCompleted], costSRL); // this is only\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// checking to\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// see if this\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// board can\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// afford it\r\n\t}", "public boolean isBuildable() {\r\n return buildable;\r\n }", "private static boolean isTileAvailable(DisplayTile tile, Direction fromDirection, HashMap<DisplayTile, DisplayTile> chainedTiles) {\n\t\tif (tile == null || chainedTiles.containsKey(tile))\n\t\t\treturn false;\n\t\t\n\t\tif (tile.isRoomTile() && !tile.hasDoor(fromDirection))\n\t\t\treturn false;\n\t\t\t\n\t\tif (tile.hasSuspect() || tile.isRemovedTile())\n\t\t\treturn false;\n\t\t\n\t\tif (tile.isPassage() && tile.getPassageConnection().hasSuspect())\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}", "public boolean isBuilt()\n {\n return (dbMap != null);\n }", "public boolean isBuilt()\n {\n return (dbMap != null);\n }", "public boolean canBuild(Player player, Location location) {\n\t\tif (mayor.equals(player.getUniqueId()) || councils.containsKey(player.getUniqueId())) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tPlot plot = getPlotHere(location);\n\t\t\treturn plot != null && plot.canBuild(player, location);\n\t\t}\n\t}", "public boolean isBuilt()\r\n {\r\n return (dbMap != null);\r\n }", "public boolean airportIsBuilt() {\n\t\tif(projectsAvailable.isEmpty() && projectsActive.isEmpty()) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isRun() {\n if (!isValid()) {\n return false;\n }\n else {\n if (tiles.get(0).getColour() == tiles.get(1).getColour()) {\n return true;\n } else {\n return false;\n }\n }\n }", "public boolean canBuild(Vertex vertex, int type) {\n \t\tif (type == Vertex.TOWN && towns >= MAX_TOWNS)\n \t\t\treturn false;\n \t\telse if (type == Vertex.CITY && cities >= MAX_CITIES)\n \t\t\treturn false;\n \n \t\treturn vertex.canBuild(this, type, board.isSetupPhase());\n \t}", "private boolean canEntityBuild(User user, Location location) {\n Collection<TownBlock> blocks = TownyUniverse.getInstance().getDataSource().getAllTownBlocks();\n\n int x = (int)Math.floor(location.getX() / 16.0);\n int z = (int)Math.floor(location.getZ() / 16.0);\n\n TownyWorld world;\n try {\n world = TownyUniverse.getInstance().getDataSource().getWorld(location.getWorld().getName());\n } catch (Exception e) {\n return true;\n }\n\n TownBlock block = new TownBlock(x, z, world);\n\n return !blocks.contains(block);\n }", "public boolean canBuild(Location location, Player player) {\n if (!location.getWorld().getEnvironment().equals(Environment.NORMAL)) {\n // If theyre not in the overworld, they cant build\n return false;\n } else if (landIsClaimed(location)) {\n if(isOwner(location,player)) {\n return true;\n } else if(landPermissionCode(location).equals(\"p\")) {\n return true;\n } else if(landPermissionCode(location).equals(\"c\")) {\n String owner_uuid=REDIS.get(\"chunk\" + location.getChunk().getX() + \",\" + location.getChunk().getZ() + \"owner\");\n String owner_clan=REDIS.get(\"clan:\"+owner_uuid);\n String player_clan=REDIS.get(\"clan:\"+player.getUniqueId().toString());\n if(owner_clan.equals(player_clan)) {\n return true;\n } else {\n return false;\n }\n } else {\n return false;\n }\n } else {\n return true;\n }\n }", "public boolean canDoBuildInitialRoad(){\n\t\t // If the player already has two roads on the board then he has already placed the initial roads\n\t\t if(playerPieces.getNumberOfRoads() < 14){\n\t\t\t return false;\n\t\t }\n\t\t return true;\n\t }", "@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 }", "public boolean isValid() {\n return super.isValid()\n && getUnit().isPerson()\n && checkTileImprovementPlan(tileImprovementPlan)\n && (hasTools() || checkColonyForTools(getAIUnit(), colonyWithTools));\n }", "@Override\n public boolean canBuild(User user, AbilityDescription abilityDescription, Location location) {\n try {\n TownyWorld world = com.palmergames.bukkit.towny.TownyUniverse.getInstance().getWorldMap().get(user.getWorld().getName());\n\n if (world != null && !world.isUsingTowny()) {\n // Exit early if this world isn't being protected by Towny.\n return true;\n }\n } catch (Exception e) {\n //\n }\n\n if (user instanceof com.plushnode.atlacore.platform.Player) {\n return canPlayerBuild(user, location);\n }\n\n return canEntityBuild(user, location);\n }", "private boolean canRemoveTiles() {\n return this.mCurrentSpecs.size() > 8;\n }", "private boolean buildStreetIsAllowed() {\r\n\t\tif (clickedRoad.getEnd() == lastSettlementNode\r\n\t\t\t\t|| clickedRoad.getStart() == lastSettlementNode) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "boolean checkWin(Tile initialTile);", "public boolean hasTiles()\r\n\t{\r\n\t\treturn _tiles.size() != 0;\r\n\t}", "public boolean getCanSpawnHere()\n {\n return this.isValidLightLevel() && super.getCanSpawnHere();\n }", "public boolean hasBuildPermission(Player player, Block block) {\n if (bypassBuildPermissions) return true;\n if (player != null && player.hasPermission(\"magic.bypass_build\")) return true;\n if (hasBypassPermission(player)) return true;\n\n boolean allowed = true;\n for (BlockBuildManager manager : blockBuildManagers) {\n if (!manager.hasBuildPermission(player, block)) {\n allowed = false;\n break;\n }\n }\n return allowed;\n }", "boolean isImageTileType();", "private boolean canAddBlueTile() {\n\t\tint soldierCount=0,queenCount=0;\n\n\n\t\tArrayList<Piece> playerPieces = Board.getInstance().getColorPieces(Game.getInstance().getCurrentPlayerColor());\n\t\tfor(Piece p:playerPieces)\n\t\t{\n\t\t\tif(p instanceof Soldier)\n\t\t\t{\n\t\t\t\tsoldierCount++;\n\t\t\t}\n\t\t\tif(p instanceof Queen)\n\t\t\t{\n\t\t\t\tqueenCount++;\n\t\t\t}\n\t\t}\n\t\treturn (soldierCount == 2 && queenCount == 1);\n\t}", "public boolean canStandOn(Environment tile)\n {\n if( tile.terrainType == TerrainType.TELETILE )\n return false; // Standing on empty space is pretty hard\n return getMoveCost(tile) < IMPASSABLE;\n }", "public boolean checkBuildings(){\n\t\tfor(Structure building : this.buildings){\n\t\t\tif(!building.isDestroyed()){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public Boolean checkIfValidBuild(){\r\n int buildValue = 0;\r\n for (Card card: userChosenCards){\r\n buildValue += card.getNumValue();\r\n }\r\n\r\n buildValue += card.getNumValue();\r\n\r\n switch (option){\r\n case 1:\r\n if(userChosenCards.size() == 0){\r\n Toast.makeText(ChooseTableCardActivity.this,\r\n \"Invalid Build - Cannot create a build with just one card\",\r\n Toast.LENGTH_LONG).show();\r\n return false;\r\n }\r\n\r\n return player.checkBuildValueInHand(player.getPlayerHandVec(), buildValue);\r\n case 2:\r\n if (buildValue == round.getBuilds().get(player.getId()).getNumValue()){\r\n return true;\r\n }\r\n return false;\r\n }\r\n return false;\r\n }", "public boolean hasCreateTaskPack() {\n return packCase_ == 3;\n }", "public boolean isTileSelected() {\n return selectedTile != null;\n }", "private boolean isCreateBattle() {\r\n int percent = ConfigUtil.getConfigInteger(\"battlePercent\", 30);\r\n if(RandomUtil.nextInt(100) < percent){\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean hasCreateTaskPack() {\n return packCase_ == 3;\n }", "boolean isMake();", "public final boolean canUse(){\n\t\tmaintain();\n\t\t//check if grown if not try to grow\n\t\tif(grown){\t\n\t\t\tif(host.getStrength()>USE_COST){\n\t\t\t\thost.expend(USE_COST);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thost.expend(host.getStrength());\n\t\t\t}\n\t\t}\n\t\telse{\t\t\t\n\t\t\tcanGrow(host, this);\n\t\t}\t\n\t\treturn false;\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void buildFalse() {\n nextWorkerCell.setIsOccupied(true);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell);\n assertFalse(workerHephaestus.getHasBuilt());\n }", "public static boolean canWrap(TileEntity tile) {\n\t\treturn (tile instanceof IStargateAccess) || (tile instanceof IStargateControllerAccess)\n\t\t\t\t|| (tile instanceof INaquadahGeneratorAccess);\n\t}", "@java.lang.Override\n public boolean hasBuild() {\n return instance.hasBuild();\n }", "private boolean shouldBuild(IResource resource) {\n \t\treturn resource.getType() == IResource.FILE && resource.getFileExtension().equals(\"gf\");\n \t}", "@Test\n public void buildDomeTrue() {\n nextWorkerCell.setLevel(3);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell);\n assertEquals(4, nextWorkerCell.getLevel());\n assertTrue(nextWorkerCell.getIsOccupied());\n }", "private boolean canAddRedTile() {\n\n\t\tif(isAllPiecesEaten(Game.getInstance().getCurrentPlayerColor())) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean roomShouldHaveMonsters() {\n return contents.contains(roomContents.MONSTERS)\n || contents.contains(roomContents.EXPLORATION)\n || contents.contains(roomContents.KEY)\n || contents.contains(roomContents.FINAL_KEY);\n }", "private boolean isCanBuildRoad(Rectangle newRoad) {\n\t\tfor (Node otherRoad : roads) {\n\t\t\tif (newRoad.getBoundsInParent().intersects(otherRoad.getBoundsInParent())) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "boolean hasCreateTaskPack();", "boolean canMove(Tile t);", "protected boolean selectTile(String player, int coordinate, String area, MBproduction.buildingType build){\n String culture = null;\n boolean AIflag = false;\n boolean placeFlag = false;\n MBproduction.terrainTypeEnum selected;\n String normalizeSelected;\n /*******************************/\n player=player.toLowerCase();\n switch(player.toLowerCase()){\n case\"human\":\n culture = playBoard.humanCulture();\n break;\n case\"ai1\":\n culture = playBoard.AICulture1();\n break;\n case\"ai2\":\n culture = playBoard.AICulture2();\n break;\n default:\n break;\n }\n selected = playBoard.getIndiTerrain(coordinate);\n normalizeSelected = \n selected.toString().substring(0, selected.toString().length()-1);\n switch(culture.toLowerCase()){\n //norse\n case\"norse\":\n switch(area.toLowerCase()){\n case\"production\":\n for (int i = 0; i < norseProduction.size(); i ++){\n if (norseProduction.get(i).getName().equalsIgnoreCase(normalizeSelected)){\n norseProduction.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(selected.getPath())));\n norseProduction.remove(i);\n playBoard.updateProductionResourceCube(player, selected);\n playBoard.exileTerrain(selected); \n tileSelection.get(coordinate).setEnabled(false);\n stackAI.remove(stackAI.indexOf(coordinate));\n placeFlag = true;AIflag = true;\n break;\n }\n }\n break;\n //!!!!!!!!WARNNING!!!!!!!! NEED TO MODIFY FOR ITERATION II\n case\"city\":\n for (int i = 0; i < norseCity.size(); i ++){\n if (norseCity.get(i).getIcon() == null){\n norseCity.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(build.getPath())));\n placeFlag = true;\n break;\n }\n }\n break;\n default:\n break;\n }\n break;\n //greek \n case\"greek\":\n switch(area.toLowerCase()){\n case\"production\":\n for (int i = 0; i < greekProduction.size(); i ++){\n if (greekProduction.get(i).getName().equalsIgnoreCase(normalizeSelected)){\n greekProduction.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(selected.getPath())));\n greekProduction.remove(i);\n playBoard.updateProductionResourceCube(player, selected);\n playBoard.exileTerrain(selected); \n tileSelection.get(coordinate).setEnabled(false);\n stackAI.remove(stackAI.indexOf(coordinate));\n placeFlag = true;AIflag = true;\n break;\n }\n }\n break;\n //!!!!!!!!WARNNING!!!!!!!! NEED TO MODIFY FOR ITERATION II\n case\"city\":\n for (int i = 0; i < greekCity.size(); i ++){\n if (greekCity.get(i).getIcon() == null){\n greekCity.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(build.getPath())));\n placeFlag = true;\n break;\n } \n }\n break;\n default:\n break;\n }\n break;\n //egypt\n case\"egypt\":\n switch(area.toLowerCase()){\n case\"production\":\n for (int i = 0; i < egyptProduction.size(); i ++){\n if (egyptProduction.get(i).getName().equalsIgnoreCase(normalizeSelected)){\n egyptProduction.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(selected.getPath())));\n playBoard.updateProductionResourceCube(player, selected);\n playBoard.exileTerrain(selected);\n egyptProduction.remove(i);\n tileSelection.get(coordinate).setEnabled(false);\n stackAI.remove(stackAI.indexOf(coordinate));\n placeFlag = true;AIflag = true;\n break; \n }\n }\n break;\n //!!!!!!!!WARNNING!!!!!!!! NEED TO MODIFY FOR ITERATION II\n case\"city\":\n for (int i = 0; i < egyptCity.size(); i ++){\n if (egyptCity.get(i).getIcon() == null){\n egyptCity.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(build.getPath())));\n placeFlag = true;\n break;\n } \n }\n break;\n default:\n break;\n }\n break;\n default:\n break;\n }\n if ((!placeFlag)&&(player.equalsIgnoreCase(\"human\"))){\n JOptionPane.showMessageDialog(\n null, \"No suitable tile for \" + player , \"Information\",\n JOptionPane.WARNING_MESSAGE);\n }\n return AIflag; \n }", "public boolean buildBuilding(String buildingType) {\n\t\tString type = buildingType.toLowerCase();\n\t\tthis.gc.placeBuilding(type);\n\n\t\tboolean placementSuccesfull = this.gc.isPlacementSuccesfull();\n\n\t\treturn placementSuccesfull;\n\n\t}", "private boolean buildEntity() {\r\n\t\t/****************** Tower Creation ******************/\r\n\t\tif (this.type.contains(\"tower\")) {\r\n\t\t\tif (this.type.equals(\"tower0\")) {\r\n\t\t\t\t// Basic starting tower\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 2;\r\n\t\t\t\tthis.health = 500;\r\n\t\t\t\tthis.attack = 0;\r\n\t\t\t\tthis.price = 110;\r\n\t\t\t\tthis.frames = 1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower1\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.health = 90;\r\n\t\t\t\tthis.attack = 30;\r\n\t\t\t\tthis.price = 50;\r\n\t\t\t\tthis.frames = 5;\r\n\t\t\t\tthis.weaponFrames = 1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower2\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.health = 160;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 210;\r\n\t\t\t\tthis.frames = 6;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.weaponFrames = 8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower3\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.health = 245;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 245;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.frames = 9;\r\n\t\t\t\tthis.weaponFrames =1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower4\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.health = 200;\r\n\t\t\t\tthis.attack = 3000;\r\n\t\t\t\tthis.price = 500;\r\n\t\t\t\tthis.frames = 9;\r\n\t\t\t\tthis.weaponFrames = 8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower5\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.weaponFrames = 3;\r\n\t\t\t\tthis.health = 100;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 90;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.frames = 7;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/****************** Enemy Creation ******************/\r\n\t\tif (this.type.contains(\"zombie\")) {\r\n\t\t\tif (this.type.equals(\"zombie0\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 150;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 75;\r\n\t\t\t\tthis.deathFrames = 9;\r\n\t\t\t\tthis.walkFrames = 9;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie1\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 500;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 50;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 6;\r\n\t\t\t\tthis.attackFrames =8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie2\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 250;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 50;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 6;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie3\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 100;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.speed = 25;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 8;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/****************** Object Creation ******************/\r\n\t\tif (this.type.contains(\"object\")) {\r\n\t\t\tif (this.type.equals(\"object0\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object1\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object2\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object3\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object4\")) {\r\n\t\t\t\t// Jail building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object5\")) {\r\n\t\t\t\t// Inn building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object6\")) {\r\n\t\t\t\t// Bar building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object7\")) {\r\n\t\t\t\t// Watchtower building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object8\")) {\r\n\t\t\t\t// Plus path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object9\")) {\r\n\t\t\t\t// NS Path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object10\")) {\r\n\t\t\t\t// EW Path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object11\")) {\r\n\t\t\t\t// Cobble Ground\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object12\")) {\r\n\t\t\t\t// Tombstone with dirt\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object13\")) {\r\n\t\t\t\t// Tombstone\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object14\")) {\r\n\t\t\t\t// Wood grave marker\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/****************** Out of Creation ******************/\r\n\t\t// Check if a type was created and return results\r\n\t\tif (this.base != null) {\r\n\t\t\t// Successful creation\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\t// Unsuccessful creation\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean mayPickup(Player debug1) {\n/* 112 */ return true;\n/* */ }", "public final boolean hasOnePerTileItem(int floorLevel) {\n/* 4849 */ return (this.vitems != null && this.vitems.hasOnePerTileItem(floorLevel));\n/* */ }", "public boolean hasSelectedTile()\r\n\t{\r\n\t\treturn (selectedTile != null);\r\n\t}", "private boolean checkTileExists(int x, int y, int zoom) {\n \t int minZoom = 12;\n \t int maxZoom = 16;\n\n \t if ((zoom < minZoom || zoom > maxZoom)) {\n \t return false;\n \t }\n\n \t return true;\n \t }", "public boolean isRebuildEnabled() {\n if (!run.hasPermission(Item.BUILD)) {\n return false;\n }\n if (!run.getParent().isBuildable()) {\n return false;\n }\n\n return true;\n }", "public boolean shouldExecute() {\n if (this.runDelay <= 0) {\n if (!net.minecraftforge.event.ForgeEventFactory.getMobGriefingEvent(bean.world, bean)) {\n return false;\n }\n\n this.currentTask = -1;\n if(plantAndCollect)\n this.hasFarmItem = ((EntityWorkBean)bean).isFarmItemInInventory();\n else this.hasFarmItem = false;\n this.wantsToReapStuff = true; //this.villager.wantsMoreFood();\n }\n\n return super.shouldExecute();\n }", "boolean isGameFinished() {\n if (tiles.takenTilesNumber() < 3)\n return false;\n Symbol winningSymbol = tiles.getTile(1);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(9).equals(winningSymbol)) {\n return true;\n }\n }\n if(tiles.getTile(2).equals(winningSymbol)) {\n if(tiles.getTile(3).equals(winningSymbol)) return true;\n }\n if(tiles.getTile(4).equals(winningSymbol)) {\n if(tiles.getTile(7).equals(winningSymbol)) return true;\n }\n }\n winningSymbol = tiles.getTile(2);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(8).equals(winningSymbol)) return true;\n }\n }\n\n winningSymbol = tiles.getTile(3);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(7).equals(winningSymbol)) return true;\n }\n if (tiles.getTile(6).equals(winningSymbol)) {\n if (tiles.getTile(9).equals(winningSymbol)) return true;\n }\n }\n\n\n winningSymbol = tiles.getTile(4);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(7).equals(winningSymbol)) return true;\n }\n }\n\n winningSymbol = tiles.getTile(7);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(8).equals(winningSymbol)) {\n if (tiles.getTile(9).equals(winningSymbol)) return true;\n }\n }\n return false;\n }", "public boolean isBuildingNeeded(org.eclipse.emf.common.util.URI uri) {\n\t\treturn false;\n\t}", "public boolean isBuildingNeeded(org.eclipse.emf.common.util.URI uri) {\n\t\treturn false;\n\t}", "@Override\n public boolean activate() {\n //When will this activate?\n return Areas.FALADOR.contains(ctx.players.local().tile())\n && ctx.widgets.component(1371,0).visible()\n && !ctx.objects.select().name(\"Waterpump\").within(6.0).isEmpty();\n }", "public boolean checkRequirements(PlayerBoard playerBoard);", "public boolean isOver() {\n return this.treeNode.getBuilding().isFinished();\n }", "@Override\n public boolean isUsable(Game game) {\n// game.getCurrentPlayer().setInQue(true);\n availableSquare.clear();\n Boolean result = false;\n Worker worker = (Worker) game.getTargetInUse();\n if (game.getTargetSelected() != null) {\n game.getCurrentPlayer().setInQue(false);\n game.getController().setGoOn(true);\n return true;\n }\n // if(game.getTargetSelected().getSquare().getWorker()==null) {\n for (Square s : worker.getSquare().getAdjacentSquares()) {\n if (s.getLevel() < 4 && (s.getWorker() == null || s.getWorker().getC() != worker.getC()) && ((worker.getCanMoveUp() && worker.getSquare().getLevel() == s.getLevel() - 1) || (worker.getSquare().getLevel() > s.getLevel() - 1)))\n availableSquare.add(s);\n }\n result = true;\n List<SquareToJson> availableSquares = new ArrayList<>();\n for (Square s1 : availableSquare)\n availableSquares.add(new SquareToJson(s1.getLevel(), \"\", s1.getCoordinateX(), s1.getCoordinateY()));\n\n SquareToJson[][] map = game.squareToJsonArrayGenerator();\n\n ChooseTarget chooseTarget = new ChooseTarget(\"Where do you want to move?\", availableSquares, map);\n UpdateEvent event = new UpdateEvent(map);\n game.notifyObservers(event);\n game.notifyCurrent(chooseTarget);\n\n //}\n /*else{\n game.getCurrentPlayer().setInQue(false);\n game.getController().setGoOn(true);\n return true;\n }*/\n if (worker.getSquareNotAvailable() != null)\n availableSquare.remove(worker.getSquareNotAvailable());\n\n if (availableSquare.size() == 0) {\n game.getCurrentPlayer().setDefeat(true);\n result = false;\n game.getCurrentPlayer().setInQue(false);\n game.getController().setGoOn(false);\n return result;\n }\n worker.setCanBeMoved(result);\n game.getCurrentPlayer().setInQue(true);\n game.getController().setGoOn(true);\n return result;\n }", "@Override\n\tpublic boolean isWorking(Role role, RoleBuild build) {\n\t\treturn false;\n\t}", "public boolean canBuild(String username) {\n\t\tif (getOwner() != null)\n\t\t\treturn false;\n\n\t\t/*\n\t\t * If there is a village owned by the player on one of the\n\t\t * intersections, the player can build a road\n\t\t */\n\t\tfor (int i = 0; i < myIntersections.length; i++) {\n\t\t\tIntersectionUnit unit = myIntersections[i].getUnit();\n\t\t\tif (unit != null) {\n\t\t\t\t// There is a unit here\n\t\t\t\tif (unit instanceof Village) {\n\t\t\t\t\t// The unit is a village\n\t\t\t\t\tVillage village = (Village) unit;\n\t\t\t\t\tif (village.getOwner().getUsername().equals(username))\n\t\t\t\t\t\t// The player owns the village\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * If there is an adjacent road owned by the player, the player can\n\t\t * build\n\t\t */\n\t\tfor (int i = 0; i < myIntersections.length; i++) {\n\t\t\tIntersection intersection = myIntersections[i];\n\n\t\t\tfor (Edge edge : intersection.getEdges()) {\n\t\t\t\tif (edge.getOwner() != null)\n\t\t\t\t\tif (edge.getOwner().getUsername().equals(username))\n\t\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean wasBuilt() {\n \t\treturn triggerForLastBuild != -1;\n \t}", "public boolean canReproduce() {\r\n ArrayList<Cell> neighbours = getNeighbours(FIRSTLAYER);\r\n\r\n int numOfSameT = 0;\r\n int numOfEmpty = 0;\r\n int numOfFoodC = 0;\r\n\r\n for (Cell cell : neighbours) {\r\n if (isSameType(cell.getInhabit())) {\r\n numOfSameT++;\r\n } else if (cell.getInhabit() == null && isTerrainAccessiable(cell)) {\r\n numOfEmpty++;\r\n } else if (isEdible(cell.getInhabit())) {\r\n numOfFoodC++;\r\n }\r\n }\r\n\r\n return (numOfSameT >= numOfSameTypeNeighbourToReproduce() \r\n && numOfEmpty >= numOfEmptyToReproduce()\r\n && numOfFoodC >= numOfFoodCellToReproduce());\r\n }", "public boolean hasTile(Tile a_tile){\n for(int i = 0; i < playerHand.size(); i++){\n if(playerHand.get(i).getLeft() == a_tile.getLeft() && playerHand.get(i).getRight() == a_tile.getRight()){\n return true;\n }\n }\n return false;\n }", "@Override\n\tpublic boolean shouldExecute() {\n\t\tif (!theEntity.isTamed())\n\t\t\treturn false;\n\t\telse if (theEntity.isInWater())\n\t\t\treturn false;\n\t\telse if (!theEntity.onGround)\n\t\t\treturn false;\n\t\telse {\n\t\t\tfinal EntityLivingBase var1 = theEntity.getOwner();\n\t\t\treturn var1 == null ? true\n\t\t\t\t\t: theEntity.getDistanceSqToEntity(var1) < 144.0D\n\t\t\t\t\t\t\t&& var1.getAITarget() != null ? false : isSitting;\n\t\t}\n\t}", "public boolean hasTile(GroundTile tile) {\n return this.editedTiles.contains(tile);\n }", "public boolean affordTown() {\n \t\treturn (FREE_BUILD || towns < MAX_TOWNS\n \t\t\t\t&& getResources(Type.BRICK) >= 1\n \t\t\t\t&& getResources(Type.LUMBER) >= 1\n \t\t\t\t&& getResources(Type.GRAIN) >= 1\n \t\t\t\t&& getResources(Type.WOOL) >= 1);\n \t}", "boolean haveAnySpawn();", "public boolean isUseful(Buildable buildable,HashSet<Class> useful){\n Boolean isUseful = false;\n //Iterate through each class in the set, and if the class is the same as the buildable's class, set isUseful to true\n for (Class i: useful\n ) {\n if(i.equals(buildable.getClass())){\n isUseful=true;\n }\n }\n return isUseful;\n }", "private boolean hasTools() {\n return hasTools(getAIUnit());\n }", "public boolean canFly() {\n\t\treturn !isEgg() && !isHatchling();\n\t}", "private boolean canSelectCurWorldType() {\n WorldType worldtype = WorldType.WORLD_TYPES[this.selectedIndex];\n if (worldtype != null && worldtype.canBeCreated()) {\n return worldtype == WorldType.DEBUG_ALL_BLOCK_STATES ? hasShiftDown() : true;\n } else {\n return false;\n }\n }", "public boolean isGoal() {\n return Arrays.deepEquals(tiles, goal);\n }", "public static boolean isFinishedCity()\r\n {\r\n try\r\n {\r\n Building b = astApp.getBuildings().get( astApp.getBuildings().size() - 1 );\r\n \r\n if( b.getBuilding().getXLocation() + b.getBuilding().getWidth() >= 700 )\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }\r\n catch( ArrayIndexOutOfBoundsException e )\r\n {\r\n return false;\r\n }\r\n }", "public boolean canBuild(Edge edge) {\n \t\tif (edge == null || roads.size() >= MAX_ROADS)\n \t\t\treturn false;\n \n \t\tif (board.isSetupPhase()) {\n \t\t\t// check if the edge is adjacent to the last town built\n \t\t\tif (lastTown != edge.getVertex1() && lastTown != edge.getVertex2())\n \t\t\t\treturn false;\n \t\t}\n \n \t\treturn edge.canBuild(this);\n \t}", "public boolean createBuild(Build build);", "private static boolean hasTools(AIUnit aiUnit) {\n return aiUnit.getUnit().hasAbility(\"model.ability.improveTerrain\");\n }", "boolean CanBuyRoad();", "private boolean canBuy(BuildingType x) {\r\n return gameDetails.buildingsStats.get(x).price <= myself.energy;\r\n }", "public boolean isValidBoard() {\n\t\t\n\t\tif(mainSlots.size() != NUM_MAIN_SLOTS) {\n\t\t\treturn false;\n\t\t} else if ((redHomeZone != null && redHomeZone.size() != NUM_HOME_SLOTS) ||\n\t\t\t\t(greenHomeZone != null && greenHomeZone.size() != NUM_HOME_SLOTS) ||\n\t\t\t\t(yellowHomeZone != null && yellowHomeZone.size() != NUM_HOME_SLOTS) || \n\t\t\t\t(blueHomeZone != null && blueHomeZone.size() != NUM_HOME_SLOTS)) {\n\t\t\treturn false;\n\t\t} else if ((redEndZone != null && redEndZone.size() != NUM_END_SLOTS) ||\n\t\t\t\t(greenEndZone != null && greenEndZone.size() != NUM_END_SLOTS) || \n\t\t\t\t(yellowEndZone != null && yellowEndZone.size() != NUM_END_SLOTS) || \n\t\t\t\t(blueEndZone != null && blueEndZone.size() != NUM_END_SLOTS)) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t}", "public boolean isWin() {\n\t\t\n\t\tboolean win = true;\n\t\t\n\t\tfor(int i = 0; i < numTiles - 2; i++) {\n\t\t\twin = win && (boardConfig[i] < boardConfig[i+1]);\n\t\t}\n\t\t\n\t\twin = win && (boardConfig[numTiles - 1] == 0);\n\t\t\n\t\treturn win;\n\t}", "public boolean canChow(int tile) {\n\t\treturn TileAnalyser.inchow(tile, getTileNumbers())>0;\n\t}", "private static boolean isWin()\n {\n boolean win = true;\n for(Ship[] k:map)\n {\n for(Ship o:k)\n {\n if(o.getState()==1)\n win=false;\n }\n }\n return win;\n }", "public boolean isSpawnable(Location loc) {\n Block block = loc.getBlock();\n Block under = loc.getBlock().getRelative(BlockFace.DOWN);\n Block above = loc.getBlock().getRelative(BlockFace.UP);\n if (block.getType().equals(Material.AIR) && !under.getType().equals(Material.AIR) && above.getType().equals(Material.AIR)) {\n if (block.getLightLevel() <= plugin.CONFIG.SPAWNING_LIGHT) {\n return true;\n }\n }\n return false;\n }", "public boolean shouldExecute() {\n LivingEntity livingentity = ShulkerEntity.this.getAttackTarget();\n if (livingentity != null && livingentity.isAlive()) {\n return ShulkerEntity.this.world.getDifficulty() != Difficulty.PEACEFUL;\n } else {\n return false;\n }\n }", "private boolean canAddSupport() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n || uiStateManager.getState().equals(GameUIState.STANDBY);\n }", "@Override\n public boolean isValid() {\n if(width < 0){\n return false;\n }\n\n if(height < 0){\n return false;\n }\n\n //no null objects\n if(origin == null){\n return false;\n }\n\n if(color == null){\n return false;\n }\n\n //if texture doesn't exist, sprite is not buildable\n if(!Gdx.files.internal(texture).exists()){\n Gdx.app.log(TAG, \"Texture cannot be found: \" + texture);\n return false;\n }\n\n return true;\n }", "public abstract boolean isTerrainAccessiable(final Cell cell);", "protected boolean allBoatsArePlaced() {\n for(BoatDrawing boat : boatMap.values()) {\n if (!boat.isPlaced()) {\n return false;\n }\n }\n logMsg(\"click now on 'valider' button to begin game\");\n return true;\n }", "public boolean getCanSpawnHere()\r\n {\r\n return false;\r\n }", "public boolean doIMoveToWorkPlace()\n\t{\n\t\t// if(myWorker.getPosition().getX() == destBuilding.getPosition().getX()\n\t\t// && myWorker.getPosition().getY() ==\n\t\t// destBuilding.getPosition().getY())\n\t\t// return false;\n\t\t// return true;\n\t\tObjectType workplaceType = destBuilding.getObjectType();\n\t\tPoint workplacePoint = destBuilding.getPosition();\n\t\tfor (int i = destBuilding.getPosition().getX(); i < destBuilding\n\t\t\t\t.getPosition().getX()\n\t\t\t\t+ getMyPlayer().getPlayerInfo().getBuildingSize()\n\t\t\t\t\t\t.get(workplaceType) - 1; i++)\n\t\t{\n\t\t\tif ((myWorker.getPosition().getX() == i && workplacePoint.getY() - 1 == myWorker\n\t\t\t\t\t.getPosition().getY())\n\t\t\t\t\t|| (myWorker.getPosition().getX() == i && workplacePoint\n\t\t\t\t\t\t\t.getY()\n\t\t\t\t\t\t\t+ getMyPlayer().getPlayerInfo().getBuildingSize()\n\t\t\t\t\t\t\t\t\t.get(workplaceType) == myWorker\n\t\t\t\t\t\t\t.getPosition().getY()))\n\t\t\t\treturn false;\n\t\t}\n\n\t\tfor (int i = destBuilding.getPosition().getY(); i < destBuilding\n\t\t\t\t.getPosition().getY()\n\t\t\t\t+ getMyPlayer().getPlayerInfo().getBuildingSize()\n\t\t\t\t\t\t.get(workplaceType) - 1; i++)\n\t\t{\n\t\t\tif ((myWorker.getPosition().getY() == i && workplacePoint.getX() - 1 == myWorker\n\t\t\t\t\t.getPosition().getX())\n\t\t\t\t\t|| (myWorker.getPosition().getY() == i && workplacePoint\n\t\t\t\t\t\t\t.getX()\n\t\t\t\t\t\t\t+ getMyPlayer().getPlayerInfo().getBuildingSize()\n\t\t\t\t\t\t\t\t\t.get(workplaceType) == myWorker\n\t\t\t\t\t\t\t.getPosition().getX()))\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "boolean testIsTouchingIGamePiece(Tester t) {\n return t.checkExpect(los2.isTouching(ship2), false)\n && t.checkExpect(los3.isTouching(bullet8), true)\n && t.checkExpect(lob2.isTouching(ship2), true)\n && t.checkExpect(lob3.isTouching(ship11), false)\n && t.checkExpect(lob3.isTouching(ship3), true)\n && t.checkExpect(mt.isTouching(ship6), false);\n }", "public boolean isValid() {\n //valid melds must have 3+ tile\n if (tiles.size() < 3) {\n //System.out.println(\"fail 1\");\n return false;\n }\n if (tiles.get(0).getColour() == tiles.get(1).getColour() &&\n\t\t\ttiles.get(0).getValue() != tiles.get(1).getValue()) { //test a run\n\t\t\tif (this.size() > 13) {\n //System.out.println(\"fail 2\");\n return false;\n }\n for (int i=1; i<tiles.size(); i++) {\n if (tiles.get(i).getColour() != tiles.get(0).getColour()) { //make sure all are same colour\n //System.out.println(\"fail 3\");\n return false;\n }\n if (tiles.get(i).getValue() != (tiles.get(0).getValue() + i)) { //make sure all values make a run\n //System.out.println(\"fail 4\");\n return false;\n }\n }\n } else { //test a set\n Set<Character> colours = new HashSet<>();\n for (int i=0; i<tiles.size(); i++) {\n if (tiles.get(i).getValue() != tiles.get(0).getValue()) { //all are same value\n //System.out.println(\"fail 5\");\n\t\t\t\t\treturn false;\n }\n\n if (colours.contains(tiles.get(i).getColour()) && tiles.get(i).getColour() != 'J') { //check for duplicate colours\n //System.out.println(\"fail 6\");\n\t\t\t\t\treturn false;\n } else {\n\t\t\t\t\tcolours.add(tiles.get(i).getColour()); //keep track of all the colours this set has\n }\n }\n if (this.size() > 4) { //only possible if there are 5 cards, including a joker\n //System.out.println(\"fail 7\");\n\t\t\t\treturn false;\n }\n }\n\n return true; \n }", "public boolean shouldExecute()\n {\n return !super.shouldExecute() ? false : (!this.theEntity.worldObj.getGameRules().getGameRuleBooleanValue(\"mobGriefing\") ? false : !this.field_151504_e.func_150015_f(this.theEntity.worldObj, this.entityPosX, this.entityPosY, this.entityPosZ));\n }" ]
[ "0.7946803", "0.77613395", "0.6763614", "0.6757758", "0.6705356", "0.66973037", "0.65763134", "0.6530839", "0.6522264", "0.6476085", "0.644018", "0.644018", "0.64374495", "0.6425162", "0.6371772", "0.6362639", "0.63542026", "0.63280207", "0.6298909", "0.62768185", "0.62601966", "0.62351865", "0.6225193", "0.6200001", "0.61522335", "0.61346245", "0.6117819", "0.6113629", "0.61007816", "0.6090667", "0.60842615", "0.6075043", "0.60749936", "0.6074141", "0.6061351", "0.6059186", "0.60467154", "0.60371464", "0.60347754", "0.6025848", "0.60143316", "0.60097146", "0.6009545", "0.6007765", "0.59968805", "0.59887874", "0.5983897", "0.59773266", "0.59511656", "0.5933474", "0.5922508", "0.5919725", "0.59161717", "0.5905766", "0.5893616", "0.58902746", "0.58847266", "0.58806044", "0.5849816", "0.5847056", "0.5838651", "0.5838651", "0.58234876", "0.58099824", "0.58088654", "0.58062947", "0.5797897", "0.5788942", "0.5786981", "0.5781386", "0.5778381", "0.576709", "0.5762169", "0.5752771", "0.5752171", "0.5748962", "0.5746849", "0.5746538", "0.574586", "0.5744919", "0.5739303", "0.57325065", "0.5728387", "0.5723707", "0.5712569", "0.5709451", "0.5704082", "0.5699521", "0.56985265", "0.56969184", "0.56960946", "0.5689655", "0.5688657", "0.5688358", "0.5686381", "0.5685854", "0.56705636", "0.56645495", "0.5661788", "0.5656594", "0.5647715" ]
0.0
-1
Enables or disables tile's "buildability"
public void setBuildable(boolean b) { buildable = b; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void disableBuildHotel(){\r\n\t\tbuildHotel = false;\r\n\t}", "public void enableMonsters(){\n enabled = true;\n }", "@Override\n protected void setInitiallyEnabled(boolean forConstruction)\n {\n super.setInitiallyEnabled(forConstruction);\n\n setEnabled(CogToolLID.NewWidget,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.NewWidgetJustWarn,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.AddDesignDevices,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.ZoomToFit,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.ZoomNormal,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.ZoomIn,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.ZoomOut,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SetBackgroundImage,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SetWidgetColor,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n\n setEnabled(CogToolLID.SkinNone,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SkinWireFrame,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SkinWinXP,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SkinMacOSX,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SkinPalm,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n\n setEnabled(CogToolLID.RenderAll,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.UnRender,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n\n boolean enable = (frame.getBackgroundImage() == null)\n ? MenuUtil.DISABLED\n : MenuUtil.ENABLED;\n\n setEnabled(CogToolLID.RemoveBackgroundImage,\n ListenerIdentifierMap.ALL,\n enable);\n\n view.setIsBackgroundAvailable(enable);\n\n setViewEnabledState(selection, ListenerIdentifierMap.NORMAL);\n }", "public void enableTiles(boolean enable)\n {\n // PUT ALL THE TILES IN ONE PLACE WHERE WE CAN PROCESS THEM TOGETHER\n moveAllTilesToStack();\n \n // GO THROUGH ALL OF THEM \n for (MahjongSolitaireTile tile : stackTiles)\n {\n // AND SET THEM PROPERLY\n if (enable)\n tile.setState(VISIBLE_STATE);\n else\n tile.setState(INVISIBLE_STATE);\n } \n }", "private void disableRestrictedTiles(int x, int y) {\n\t\tif (shipsToPlace == 3) {\n\t\t\tfor (int i = 6; i < 10; i++) {\n\t\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\t\tplayerBoard[i][j].setEnabled(false);\n\t\t\t\t\tplayerBoard[i][j].setBackground(Color.lightGray);\n\t\t\t\t\tplayerBoard[i][j].setName((j) + \"\" + (i) + \"f\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t} else if (shipsToPlace == 2) {\n\t\t\t// disables long ship tiles\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tif (y - i >= 0) {\n\t\t\t\t\tfor (int j = 0; j < 5; j++) {\n\t\t\t\t\t\tplayerBoard[x + j][y - i].setEnabled(false);\n\t\t\t\t\t\tplayerBoard[x + j][y - i].setBackground(Color.lightGray);\n\t\t\t\t\t\tplayerBoard[x + j][y - i].setName((x + j) + \"\" + (y - i) + \"f\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// disables restricted tiles\n\t\t\tfor (int i = 8; i < 10; i++) {\n\t\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\t\tplayerBoard[j][i].setEnabled(false);\n\t\t\t\t\tplayerBoard[j][i].setBackground(Color.lightGray);\n\t\t\t\t\tplayerBoard[j][i].setName(j + \"\" + i + \"f\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstatus.setText(\" Click to place the second ship\");\n\t\t} else if (shipsToPlace == 1) {\n\t\t\t// disable medium ship tiles\n\t\t\tif (y - 1 >= 0) {\n\t\t\t\tplayerBoard[x][y - 1].setEnabled(false);\n\t\t\t\tplayerBoard[x][y - 1].setBackground(Color.lightGray);\n\t\t\t\tplayerBoard[x][y - 1].setName(x + \"\" + (y - 1) + \"f\");\n\t\t\t}\n\t\t\tplayerBoard[x][y].setEnabled(false);\n\t\t\tplayerBoard[x][y + 1].setEnabled(false);\n\t\t\tplayerBoard[x][y + 2].setEnabled(false);\n\n\t\t\tplayerBoard[x][y].setBackground(Color.lightGray);\n\t\t\tplayerBoard[x][y + 1].setBackground(Color.lightGray);\n\t\t\tplayerBoard[x][y + 2].setBackground(Color.lightGray);\n\n\t\t\tplayerBoard[x][y].setName(x + \"\" + y + \"f\");\n\t\t\tplayerBoard[x][y + 1].setName(x + \"\" + (y + 1) + \"f\");\n\t\t\tplayerBoard[x][y + 2].setName(x + \"\" + (y + 2) + \"f\");\n\n\t\t\t// disables long ship tiles\n\t\t\tfor (int counter1 = 0; counter1 < 2; counter1++) {\n\t\t\t\tif (longShipCoords[1] - counter1 >= 0) {\n\n\t\t\t\t\tfor (int longcount = 0; longcount < 5; longcount++) {\n\n\t\t\t\t\t\tplayerBoard[longShipCoords[0] + longcount][longShipCoords[1] - counter1].setEnabled(false);\n\t\t\t\t\t\tplayerBoard[longShipCoords[0] + longcount][longShipCoords[1] - counter1]\n\t\t\t\t\t\t\t\t.setBackground(Color.lightGray);\n\t\t\t\t\t\tplayerBoard[longShipCoords[0] + longcount][longShipCoords[1] - counter1]\n\t\t\t\t\t\t\t\t.setName((longShipCoords[0] + longcount) + \"\" + (longShipCoords[1] - counter1) + \"f\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// disable restricted tiles\n\t\t\tfor (int i = 9; i < 10; i++) {\n\t\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\t\tplayerBoard[j][i].setEnabled(false);\n\t\t\t\t\tplayerBoard[j][i].setBackground(Color.lightGray);\n\t\t\t\t\tplayerBoard[j][i].setName(j + \"\" + i + \"f\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstatus.setText(\" Click to place the third ship\");\n\t\t} else {\n\t\t\tenableAllTiles();\n\t\t}\n\t}", "public boolean isRebuildEnabled() {\n if (!run.hasPermission(Item.BUILD)) {\n return false;\n }\n if (!run.getParent().isBuildable()) {\n return false;\n }\n\n return true;\n }", "protected void doToggleBuildings() {\r\n\t\trenderer.showBuildings = ui.viewShowBuildings.getState();\r\n\t\trepaint();\r\n\t}", "@Override\n public boolean isTileFriendly(){\n return false;\n }", "public void setEnabled (boolean enabled) {\r\n\tcheckWidget ();\r\n\tint topHandle = topHandle ();\r\n\tint flags = enabled ? 0 : OS.Pt_BLOCKED | OS.Pt_GHOST;\r\n\tOS.PtSetResource (topHandle, OS.Pt_ARG_FLAGS, flags, OS.Pt_BLOCKED | OS.Pt_GHOST);\r\n}", "public void disableMonsters(){\n enabled = false;\n }", "boolean canBuildDome(Tile t);", "@Override\n public void enableBaseProductionButton() {\n gameboardPanel.enableBaseProductionButton();\n }", "private void enableAllTiles() {\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\tplayerBoard[j][i].setEnabled(true);\n\t\t\t\tplayerBoard[j][i].setName(j + \"\" + i + \"t\");\n\t\t\t\tplayerBoard[j][i].setForeground(Color.lightGray);\n\t\t\t\tplayerBoard[j][i].setBackground(Color.darkGray);\n\t\t\t}\n\t\t}\n\t}", "boolean canBuildBlock(Tile t);", "public void setEnabled(boolean aFlag) { _enabled = aFlag; }", "@Override\n\tpublic void setEnabled(boolean flag) {\n\t\t\n\t}", "public void setCanBuild(boolean canBuild) {\n this.canBuild = canBuild;\n notifyViews();\n }", "protected void doToggleMinimap() {\r\n\t\trenderer.minimapMode = ui.viewSymbolicBuildings.isSelected();\r\n\t\trenderer.repaint();\r\n\t}", "void enableMod();", "boolean updateEnabling();", "void useGodPower(boolean use);", "@Test\n public void canUseSpecialPowerFalseNoBuild() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.setHasMoved(true);\n //no Build\n assertFalse(workerHephaestus.canUseSpecialPower());\n }", "public void ativarBuild() {\n this.build = true;\n }", "public void update() {\r\n\r\n\t\tfor(int p=0;p<200;p++) {\r\n\t\t\tfor(int k=0;k<200;k++) {\r\n\r\n\t\t\t\tif(tileMap[p][k].getBuilding()!=null) {\r\n\t\t\t\t\tBuilding m=tileMap[p][k].getBuilding();\r\n\t\t\t\t\t//update the buildings\r\n\t\t\t\t\ttileMap[p][k].getBuilding().update();\r\n\r\n\t\t\t\t\t//Check if battery is giving off power\r\n\t\t\t\t\tif( (m instanceof LowTierBattery) || (m instanceof LargeBattery) || (m instanceof IndustrialGradeBattery) ) {\r\n\r\n\t\t\t\t\t\t//If it's a Battery\r\n\t\t\t\t\t\tLowTierBattery f =(LowTierBattery) tileMap[p][k].getBuilding();\t\r\n\r\n\t\t\t\t\t\t//Check if its getting power and charging\r\n\t\t\t\t\t\tif(checkPowerLine(p,k,3)) {\r\n\t\t\t\t\t\t\tpowerSwitcher(p,k,2,true); //If it is then give off power\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tpowerSwitcher(p,k,2,f.getCapacity()>0); ///if it isnt then only give power if there is capacity\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//If a building is generating power add power to tiles;\r\n\t\t\t\t\t}else if( (m instanceof SteamEngine) || (m instanceof HandCrankGenerator) || (m instanceof SteamTurbine) || (m instanceof WindTurbine) ) {\r\n\r\n\t\t\t\t\t\tpowerSwitcher(p,k,3,((PoweredBuilding) m).getPower()); //Adds power or remove power based on the status of the generators\r\n\r\n\t\t\t\t\t\t//Powerline only get power from other powerline or buildings\r\n\t\t\t\t\t}else if(m instanceof PowerLine) {\r\n\r\n\t\t\t\t\t\tpowerSwitcher(p,k,5,checkPowerLine(p,k,5)); //Checks if the powerline is powered by other buildings then give it to powerSwitch method\r\n\r\n\t\t\t\t\t}else if(m instanceof LargePowerLine) {\r\n\t\t\t\t\t\tpowerSwitcher(p,k,10,checkPowerLine(p,k,10)); //Checks if the powerline is powered by other buildings then give it to powerSwitch method\r\n\r\n\t\t\t\t\t\t//If its just a powered building enable it if the tile under it is powered;\r\n\t\t\t\t\t}else if((m instanceof PoweredBuilding)) {\r\n\t\t\t\t\t\t((PoweredBuilding) tileMap[p][k].getBuilding()).setPower(tileMap[p][k].getPowered());\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t//Pipe movement\r\n\t\t\t\t\tif(m instanceof Pipe ) {\r\n\t\t\t\t\t\tpipeCheck(p,k,m);\r\n\t\t\t\t\t}else if(m.getOutputInventorySize()>0) {\r\n\t\t\t\t\t\tbuildingPipeCheck(p,k,m);\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void enable(){\r\n\t\tthis.activ = true;\r\n\t}", "public void toggleEnable();", "public void powerSwitcher(int x, int y, int radius, boolean power) {\t\t\r\n\r\n\t\tfor(int k=1;k<radius+1;k++) { //Add power to tiles around building if its possible\r\n\t\t\tif(x-k>=0) {\t\t\t\t\t//First check if tile can be checked\r\n\t\t\t\tif(power) {\r\n\t\t\t\t\ttileMap[x-k][y].setPowered(true); //If we are adding power add or else remove\r\n\t\t\t\t}else {\r\n\t\t\t\t\ttileMap[x-k][y].setPowered(false);\r\n\t\t\t\t}\t\r\n\t\t\t} \r\n\t\t\tif(x+k<201) { //Repeat for all directions \r\n\t\t\t\tif(power) { \r\n\t\t\t\t\ttileMap[x+k][y].setPowered(true);\r\n\t\t\t\t}else {\r\n\t\t\t\t\ttileMap[x+k][y].setPowered(false);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\tif(y-k>=0) {\r\n\t\t\t\tif(power) {\r\n\t\t\t\t\ttileMap[x][y-k].setPowered(true);\r\n\t\t\t\t}else {\r\n\t\t\t\t\ttileMap[x][y-k].setPowered(false);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\tif(y+k<201) {\r\n\t\t\t\tif(power) {\r\n\t\t\t\t\ttileMap[x][y+k].setPowered(true);\r\n\t\t\t\t}else {\r\n\t\t\t\t\ttileMap[x][y+k].setPowered(false);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setIsInPlatform(boolean val){\n setInPlatform(val);\n }", "public void enable() {\n operating = true;\n }", "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 }", "public void setBoardEnabled(boolean flag) {\r\n\t\tfor (int i = 0; i < order.length; i++) {\r\n\t\t\tChessBoardBlock block = board.get(order[i]);\r\n\t\t\tblock.setEnabled(flag);\r\n//\t\t\tblock.setBorderPainted(flag);\r\n\t\t}\r\n\t}", "boolean getHardcoreEnabled();", "@ReactMethod\n public void setEnabled(final boolean isEnabled) {\n MainThreadHandler.runOnMainThread(new Runnable() {\n @Override\n public void run() {\n try {\n if (isEnabled) {\n BugReporting.setState(Feature.State.ENABLED);\n } else {\n BugReporting.setState(Feature.State.DISABLED);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n }", "public void enableSmartImprovement() { this.exec = this.exec.withProperty(\"sm.improve\", true); }", "public void setDistributable(boolean distributable);", "@Test\n public void canUseSpecialPowerFalseNoMoveNoBuild() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n //no move, no build\n assertFalse(workerHephaestus.canUseSpecialPower());\n }", "public void requestBuild(Tile hoveredTile) {\n GamePackage gamePackage = new GamePackage(Client.getInstance().getSocket(), \"requestBuild\");\n BuildingType buildingMode = GameContainer.getBuildingMode();\n gamePackage.setRequestedBuilding(buildingMode);\n gamePackage.setTilePosition(\"x\", hoveredTile.getX());\n gamePackage.setTilePosition(\"y\", hoveredTile.getY());\n PackageManager.getInstance().add(gamePackage);\n }", "public void setCustomBuildStep(boolean customBuildStep);", "void setNightModeState(boolean b);", "void setGodPower(boolean b);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "public void setEnabled(boolean enabled);", "public void setEnabled(boolean enabled);", "private void isAbleToBuild() throws RemoteException {\n int gebouwdeGebouwen = speler.getGebouwdeGebouwen();\n int bouwLimiet = speler.getKarakter().getBouwLimiet();\n if (gebouwdeGebouwen >= bouwLimiet) {\n bouwbutton.setDisable(true); // Disable button\n }\n }", "public void enableBuyEntrance(){\r\n\t\tbuyEntrance = true;\r\n\t\tbuildHotel = true;\r\n\t}", "public void enableKillSwitch(){\n isClimbing = false;\n isClimbingArmDown = false;\n Robot.isKillSwitchEnabled = true;\n }", "public void setEnabled(Boolean value) { this.myEnabled = value.booleanValue(); }", "public void enable();", "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 }", "public void enable() {\r\n m_enabled = true;\r\n }", "public void enable()\r\n\t{\r\n\t\tenabled = true;\r\n\t}", "public void tiles()\n{\n if(m.getActiveManager() != 0)\n {\n m.hideButtonsOfManager(1);\n m.hideButtonsOfManager(2);\n m.showButtonsOfManager(0);\n m.activateManager(0);\n m.getTileManager().getActiveTile().setShowHover(true);\n }\n}", "public boolean canRequestPower();", "public void addBuildables(){\n this.allBuildables.add(new Nexus());\n this.allBuildables.add(new Pylon());\n this.allBuildables.add(new Assimilator());\n this.allBuildables.add(new Gateway());\n this.allBuildables.add(new CyberneticsCore());\n this.allBuildables.add(new RoboticsFacility());\n this.allBuildables.add(new Stargate());\n this.allBuildables.add(new TwilightCouncil());\n this.allBuildables.add(new TemplarArchives());\n this.allBuildables.add(new DarkShrine());\n this.allBuildables.add(new RoboticsBay());\n this.allBuildables.add(new FleetBeacon());\n this.allBuildables.add(new Probe());\n this.allBuildables.add(new Zealot());\n this.allBuildables.add(new Stalker());\n this.allBuildables.add(new Sentry());\n this.allBuildables.add(new Observer());\n this.allBuildables.add(new Immortal());\n this.allBuildables.add(new Phoenix());\n this.allBuildables.add(new VoidRay());\n this.allBuildables.add(new Colossus());\n this.allBuildables.add(new HighTemplar());\n this.allBuildables.add(new DarkTemplar());\n this.allBuildables.add(new Carrier());\n }", "@Test\n @DisplayName(\"Enabled when it is built\")\n @Disabled\n @Tag(\"development\")\n void developmentTest() {\n }", "public void enable ( ) {\r\n\t\tenabled = true;\r\n\t}", "void setEnable(boolean b) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public boolean setEnabled(boolean enable);", "public abstract boolean isDisable(Project project);", "private void checkEnabled() {\n }", "protected boolean selectTile(String player, int coordinate, String area, MBproduction.buildingType build){\n String culture = null;\n boolean AIflag = false;\n boolean placeFlag = false;\n MBproduction.terrainTypeEnum selected;\n String normalizeSelected;\n /*******************************/\n player=player.toLowerCase();\n switch(player.toLowerCase()){\n case\"human\":\n culture = playBoard.humanCulture();\n break;\n case\"ai1\":\n culture = playBoard.AICulture1();\n break;\n case\"ai2\":\n culture = playBoard.AICulture2();\n break;\n default:\n break;\n }\n selected = playBoard.getIndiTerrain(coordinate);\n normalizeSelected = \n selected.toString().substring(0, selected.toString().length()-1);\n switch(culture.toLowerCase()){\n //norse\n case\"norse\":\n switch(area.toLowerCase()){\n case\"production\":\n for (int i = 0; i < norseProduction.size(); i ++){\n if (norseProduction.get(i).getName().equalsIgnoreCase(normalizeSelected)){\n norseProduction.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(selected.getPath())));\n norseProduction.remove(i);\n playBoard.updateProductionResourceCube(player, selected);\n playBoard.exileTerrain(selected); \n tileSelection.get(coordinate).setEnabled(false);\n stackAI.remove(stackAI.indexOf(coordinate));\n placeFlag = true;AIflag = true;\n break;\n }\n }\n break;\n //!!!!!!!!WARNNING!!!!!!!! NEED TO MODIFY FOR ITERATION II\n case\"city\":\n for (int i = 0; i < norseCity.size(); i ++){\n if (norseCity.get(i).getIcon() == null){\n norseCity.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(build.getPath())));\n placeFlag = true;\n break;\n }\n }\n break;\n default:\n break;\n }\n break;\n //greek \n case\"greek\":\n switch(area.toLowerCase()){\n case\"production\":\n for (int i = 0; i < greekProduction.size(); i ++){\n if (greekProduction.get(i).getName().equalsIgnoreCase(normalizeSelected)){\n greekProduction.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(selected.getPath())));\n greekProduction.remove(i);\n playBoard.updateProductionResourceCube(player, selected);\n playBoard.exileTerrain(selected); \n tileSelection.get(coordinate).setEnabled(false);\n stackAI.remove(stackAI.indexOf(coordinate));\n placeFlag = true;AIflag = true;\n break;\n }\n }\n break;\n //!!!!!!!!WARNNING!!!!!!!! NEED TO MODIFY FOR ITERATION II\n case\"city\":\n for (int i = 0; i < greekCity.size(); i ++){\n if (greekCity.get(i).getIcon() == null){\n greekCity.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(build.getPath())));\n placeFlag = true;\n break;\n } \n }\n break;\n default:\n break;\n }\n break;\n //egypt\n case\"egypt\":\n switch(area.toLowerCase()){\n case\"production\":\n for (int i = 0; i < egyptProduction.size(); i ++){\n if (egyptProduction.get(i).getName().equalsIgnoreCase(normalizeSelected)){\n egyptProduction.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(selected.getPath())));\n playBoard.updateProductionResourceCube(player, selected);\n playBoard.exileTerrain(selected);\n egyptProduction.remove(i);\n tileSelection.get(coordinate).setEnabled(false);\n stackAI.remove(stackAI.indexOf(coordinate));\n placeFlag = true;AIflag = true;\n break; \n }\n }\n break;\n //!!!!!!!!WARNNING!!!!!!!! NEED TO MODIFY FOR ITERATION II\n case\"city\":\n for (int i = 0; i < egyptCity.size(); i ++){\n if (egyptCity.get(i).getIcon() == null){\n egyptCity.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(build.getPath())));\n placeFlag = true;\n break;\n } \n }\n break;\n default:\n break;\n }\n break;\n default:\n break;\n }\n if ((!placeFlag)&&(player.equalsIgnoreCase(\"human\"))){\n JOptionPane.showMessageDialog(\n null, \"No suitable tile for \" + player , \"Information\",\n JOptionPane.WARNING_MESSAGE);\n }\n return AIflag; \n }", "void disableMod();", "private static boolean hasTools(AIUnit aiUnit) {\n return aiUnit.getUnit().hasAbility(\"model.ability.improveTerrain\");\n }", "@Override\n public void enableProductionButtons() {\n gameboardPanel.disableEndTurnButton();\n gameboardPanel.disableEndOfProductionButton();\n gameboardPanel.enableProductionButtons();\n leaderCardsPanel.enableProductionButtons();\n }", "public void setgearExtendLights(){\n \tgearExtendLights.set(true);\n }", "public boolean isBuildable() {\r\n return buildable;\r\n }", "private void enableAndBuildHardwareLayer() {\n if (isHardwareAccelerated()) {\n // Turn on hardware layers for performance\n setLayerType(LAYER_TYPE_HARDWARE, null);\n\n // force building the layer, so you don't get a blip early in an animation\n // when the layer is created layer\n buildLayer();\n }\n }", "public void enablePanel(boolean b);", "public void setEnabled(boolean b) {\n // Not supported for MenuComponents\n }", "public abstract void Enabled();", "public boolean enableActionInBazelContext() {\n return false;\n }", "public void setEnable(String name,boolean value) {\n\t\tgetButtonPanel().getButton(name).setEnabled(value);\n\t\tgetGameMenuBar().getItem(name).setEnabled(value);\n\t}", "private void setLit(boolean value)\n\t{\n\t\tfor (int x = 0; x < width; x++)\n\t\t{\n\t\t\tfor (int y = 0; y < height; y++)\n\t\t\t{\n\t\t\t\ttiles[x][y].setLit(value);\n\t\t\t}\n\t\t}\t\t\t\t\n\t}", "public void letSmartComputerSetup() {\n //generates a random spot for the flag\n int randomRow = (int)(Math.random() * 2);\n int randomCol = (int)(Math.random() * 10);\n\n //adjusts the flag for the proper team\n if(state.getCurrentTeamsTurn().getTEAMNUMBER() == 0) {\n randomRow += 8;\n }\n\n //adds the flag to the board\n state.setLastTappedPieceButton(Rank.FLAG);\n state.tapOnSquare(randomRow, randomCol);\n state.tapOnSquare(randomRow, randomCol);\n\n //places bombs around the flag if possible\n state.setLastTappedPieceButton(Rank.BOMB);\n if(randomRow != 0) {\n state.tapOnSquare(randomRow - 1, randomCol);\n state.tapOnSquare(randomRow - 1, randomCol);\n }\n if(randomRow != 9) {\n state.tapOnSquare(randomRow + 1, randomCol);\n state.tapOnSquare(randomRow + 1, randomCol);\n }\n if(randomCol != 0) {\n state.tapOnSquare(randomRow, randomCol -1);\n state.tapOnSquare(randomRow, randomCol -1);\n }\n if(randomCol != 9) {\n state.tapOnSquare(randomRow, randomCol + 1);\n state.tapOnSquare(randomRow, randomCol + 1);\n }\n\n //transitions the player to play phase\n state.transitionPhases();\n }", "private synchronized void doSetWiperTiles()\n {\n // Setup tiling paths\n if((bWiperAvailable) && (bNetworkPvdEnabled != true))\n {\n // create the XPS instance, passing in our Context\n if (Config.LOGV) Log.v(TAG,\"Wiper Setting Tiles\");\n\n if((null==szUsername) ||(null==szRealm))\n {\n Log.e(TAG,\"Username /Realm not set\");\n bWiperAvailable = false;\n }\n }\n else\n {\n if(Config.LOGD) Log.d(TAG,\"Skip Tile Setup\");\n }\n }", "public void setEnabledLevel(int level)\r\n {\r\n this.enabled = level;\r\n }", "private void setButtonDisabled() {\n final boolean areProjects = mainController.selectedOrganisationProperty().getValue().getProjects().size() > 0;\n final boolean areTeams = mainController.selectedOrganisationProperty().getValue().getTeams().size() > 0;\n //allocateTeamButton.setDisable(!(areProjects && areTeams));\n }", "@FXML\n\tprivate void enableFPGA() {\n\t\tcheckFieldEditOrNot = true;\n\t\tif (enableFPGA.isSelected()) {\n\t\t\tfpgaFamily.setDisable(false);\n\t\t\tbrowseBitFile.setDisable(false);\n\t\t\tSX3Manager.getInstance().addLog(\"Enable FIFO Master Configuration Download : \" + true + \".<br>\");\n\t\t\tlogDetails1.getEngine().setUserStyleSheetLocation(\"data:,body{font: 12px Arial;}\");\n\n\t\t} else {\n\t\t\tfpgaFamily.setDisable(true);\n\t\t\tbrowseBitFile.setDisable(true);\n\t\t\tchooseBitFile.setText(\"\");\n\t\t\tbitFileSize.setText(\"0\");\n\t\t\tSX3Manager.getInstance().addLog(\"Enable FIFO Master Configuration Download : \" + false + \".<br>\");\n\t\t\tlogDetails1.getEngine().setUserStyleSheetLocation(\"data:,body{font: 12px Arial;}\");\n\n\t\t}\n\t}", "public boolean canBuild(int numToBuild) \n\t{\n\t\t return (numBuildings+numToBuild) <= MAX_NUM_UNITS;\n\t}", "private void setBuild(long value) {\n bitField0_ |= 0x00000004;\n build_ = value;\n }", "public void setHotGrowable(boolean value) {\n this.hotGrowable = value;\n }", "public void enable()\n\t{\n\t\tplayButton.setEnabled(true);\n\t\tpassButton.setEnabled(true);\n\t\tbigTwoPanel.setEnabled(true);\n\t}", "public void setEnabled(boolean value) {\n this.enabled = value;\n }", "public void setEnabled(boolean enabled) {\r\n\t}", "public void setEnabled(boolean value) {\n m_Enabled = value;\n }", "@Override\n public boolean isProgrammable() {\n return false;\n }", "protected void toggleLaser() {\n laserOn = !laserOn;\n }", "public void setPwrreserve( java.lang.Boolean newValue ) {\n __setCache(\"pwrreserve\", newValue);\n }", "public boolean hasBuildPermission(Player player, Block block) {\n if (bypassBuildPermissions) return true;\n if (player != null && player.hasPermission(\"magic.bypass_build\")) return true;\n if (hasBypassPermission(player)) return true;\n\n boolean allowed = true;\n for (BlockBuildManager manager : blockBuildManagers) {\n if (!manager.hasBuildPermission(player, block)) {\n allowed = false;\n break;\n }\n }\n return allowed;\n }", "private void enableTypesBasedOnApi() {\n\n IAndroidTarget target = mProject != null ? Sdk.getCurrent().getTarget(mProject) : null;\n int currentApiLevel = 1;\n if (target != null) {\n currentApiLevel = target.getVersion().getApiLevel();\n }\n\n for (TypeInfo type : sTypes) {\n type.getWidget().setEnabled(type.getTargetApiLevel() <= currentApiLevel);\n }\n }", "private void enableControls(boolean b) {\n\n\t}", "@Override\r\n\tpublic void setBuildOrder() {\n\t\tqueueBuild(false, UpgradeType.Protoss_Ground_Armor);\r\n\t}", "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 }", "private void enableToolbar(boolean enable) {\r\n Save.setEnabled(enable);\r\n SaveAs.setEnabled(enable);\r\n SaveButton.setEnabled(enable);\r\n SaveAsButton.setEnabled(enable);\r\n SelectAll.setEnabled(enable);\r\n ClearCircuit.setEnabled(enable);\r\n MakeImageButton.setEnabled(enable);\r\n ToggleGrid.setEnabled(enable);\r\n Simulation.setEnabled(enable);\r\n Edit.setEnabled(enable);\r\n StartButton.setEnabled(enable);\r\n RecordButton.setEnabled(enable);\r\n SimulatorSpeed.setEnabled(enable);\r\n }", "public void setEnabled(final boolean theFlag) {\n myEnabled = theFlag;\n }", "public void enable() {\n TalonHelper.configNeutralMode(Arrays.asList(armMotor, armMotorSlave), NeutralMode.Brake);\n }", "public void turnOn(boolean truth) {\r\n setEnabled(truth);\r\n }" ]
[ "0.615514", "0.61411124", "0.61082107", "0.5827256", "0.58131146", "0.5777776", "0.5747119", "0.5721883", "0.5709086", "0.5700434", "0.5683083", "0.5630971", "0.5603415", "0.5571752", "0.55500454", "0.55413353", "0.55264187", "0.55142343", "0.54403657", "0.54322195", "0.5427317", "0.5426347", "0.54145086", "0.5403282", "0.5395058", "0.538979", "0.5371668", "0.53666914", "0.5363674", "0.5352023", "0.53402865", "0.53386456", "0.5338268", "0.53359675", "0.5335712", "0.53280383", "0.53208464", "0.5297491", "0.5295569", "0.5286827", "0.5277682", "0.5277682", "0.5277682", "0.5277682", "0.5273044", "0.5273044", "0.5267926", "0.52670556", "0.5263926", "0.52620584", "0.5249011", "0.5235593", "0.52294695", "0.5222978", "0.522212", "0.5219961", "0.5213122", "0.5209804", "0.5209026", "0.5200925", "0.520049", "0.5200474", "0.5194889", "0.51701313", "0.5154456", "0.51474303", "0.514712", "0.51434946", "0.5141668", "0.5133351", "0.51291823", "0.5113075", "0.5106144", "0.5103573", "0.50879097", "0.5087048", "0.50841767", "0.50675046", "0.50597763", "0.50570244", "0.5047921", "0.50442296", "0.5035167", "0.5033305", "0.50300694", "0.5026062", "0.5025792", "0.5020452", "0.5013549", "0.50054806", "0.4994201", "0.49934104", "0.49897304", "0.49889964", "0.49884316", "0.49742877", "0.49680635", "0.49596664", "0.4956299", "0.4950366" ]
0.6030897
3
Enables or disables a possibility to enter a certain tile
public void setMovable(boolean b) { movable = b; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enableTiles(boolean enable)\n {\n // PUT ALL THE TILES IN ONE PLACE WHERE WE CAN PROCESS THEM TOGETHER\n moveAllTilesToStack();\n \n // GO THROUGH ALL OF THEM \n for (MahjongSolitaireTile tile : stackTiles)\n {\n // AND SET THEM PROPERLY\n if (enable)\n tile.setState(VISIBLE_STATE);\n else\n tile.setState(INVISIBLE_STATE);\n } \n }", "public void tiles()\n{\n if(m.getActiveManager() != 0)\n {\n m.hideButtonsOfManager(1);\n m.hideButtonsOfManager(2);\n m.showButtonsOfManager(0);\n m.activateManager(0);\n m.getTileManager().getActiveTile().setShowHover(true);\n }\n}", "protected abstract void setTile( int tile, int x, int y );", "private void enableAllTiles() {\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\tplayerBoard[j][i].setEnabled(true);\n\t\t\t\tplayerBoard[j][i].setName(j + \"\" + i + \"t\");\n\t\t\t\tplayerBoard[j][i].setForeground(Color.lightGray);\n\t\t\t\tplayerBoard[j][i].setBackground(Color.darkGray);\n\t\t\t}\n\t\t}\n\t}", "void setTile(Tile tile) {\n _tile = tile;\n }", "GameState requestActionTile();", "protected void registerTile(int x, int y) {}", "private void disableRestrictedTiles(int x, int y) {\n\t\tif (shipsToPlace == 3) {\n\t\t\tfor (int i = 6; i < 10; i++) {\n\t\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\t\tplayerBoard[i][j].setEnabled(false);\n\t\t\t\t\tplayerBoard[i][j].setBackground(Color.lightGray);\n\t\t\t\t\tplayerBoard[i][j].setName((j) + \"\" + (i) + \"f\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t} else if (shipsToPlace == 2) {\n\t\t\t// disables long ship tiles\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tif (y - i >= 0) {\n\t\t\t\t\tfor (int j = 0; j < 5; j++) {\n\t\t\t\t\t\tplayerBoard[x + j][y - i].setEnabled(false);\n\t\t\t\t\t\tplayerBoard[x + j][y - i].setBackground(Color.lightGray);\n\t\t\t\t\t\tplayerBoard[x + j][y - i].setName((x + j) + \"\" + (y - i) + \"f\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// disables restricted tiles\n\t\t\tfor (int i = 8; i < 10; i++) {\n\t\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\t\tplayerBoard[j][i].setEnabled(false);\n\t\t\t\t\tplayerBoard[j][i].setBackground(Color.lightGray);\n\t\t\t\t\tplayerBoard[j][i].setName(j + \"\" + i + \"f\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstatus.setText(\" Click to place the second ship\");\n\t\t} else if (shipsToPlace == 1) {\n\t\t\t// disable medium ship tiles\n\t\t\tif (y - 1 >= 0) {\n\t\t\t\tplayerBoard[x][y - 1].setEnabled(false);\n\t\t\t\tplayerBoard[x][y - 1].setBackground(Color.lightGray);\n\t\t\t\tplayerBoard[x][y - 1].setName(x + \"\" + (y - 1) + \"f\");\n\t\t\t}\n\t\t\tplayerBoard[x][y].setEnabled(false);\n\t\t\tplayerBoard[x][y + 1].setEnabled(false);\n\t\t\tplayerBoard[x][y + 2].setEnabled(false);\n\n\t\t\tplayerBoard[x][y].setBackground(Color.lightGray);\n\t\t\tplayerBoard[x][y + 1].setBackground(Color.lightGray);\n\t\t\tplayerBoard[x][y + 2].setBackground(Color.lightGray);\n\n\t\t\tplayerBoard[x][y].setName(x + \"\" + y + \"f\");\n\t\t\tplayerBoard[x][y + 1].setName(x + \"\" + (y + 1) + \"f\");\n\t\t\tplayerBoard[x][y + 2].setName(x + \"\" + (y + 2) + \"f\");\n\n\t\t\t// disables long ship tiles\n\t\t\tfor (int counter1 = 0; counter1 < 2; counter1++) {\n\t\t\t\tif (longShipCoords[1] - counter1 >= 0) {\n\n\t\t\t\t\tfor (int longcount = 0; longcount < 5; longcount++) {\n\n\t\t\t\t\t\tplayerBoard[longShipCoords[0] + longcount][longShipCoords[1] - counter1].setEnabled(false);\n\t\t\t\t\t\tplayerBoard[longShipCoords[0] + longcount][longShipCoords[1] - counter1]\n\t\t\t\t\t\t\t\t.setBackground(Color.lightGray);\n\t\t\t\t\t\tplayerBoard[longShipCoords[0] + longcount][longShipCoords[1] - counter1]\n\t\t\t\t\t\t\t\t.setName((longShipCoords[0] + longcount) + \"\" + (longShipCoords[1] - counter1) + \"f\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// disable restricted tiles\n\t\t\tfor (int i = 9; i < 10; i++) {\n\t\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\t\tplayerBoard[j][i].setEnabled(false);\n\t\t\t\t\tplayerBoard[j][i].setBackground(Color.lightGray);\n\t\t\t\t\tplayerBoard[j][i].setName(j + \"\" + i + \"f\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstatus.setText(\" Click to place the third ship\");\n\t\t} else {\n\t\t\tenableAllTiles();\n\t\t}\n\t}", "public void draw_Active_Tile(boolean b) {\n if (b) {\n mazeEditor.mazeDrawMode = DRAW_ACTIVE_TILE;\n\n Tog2.setState(false); \n Tog3.setState(false); \n Tog4.setState(false); \n Tog5.setState(false);\n Tog6.setState(false);\n Tog7.setState(false);\n }\n }", "public void selectTile(MahjongSolitaireTile selectTile)\n {\n // IF IT'S ALREADY THE SELECTED TILE, DESELECT IT\n if (selectTile == selectedTile)\n {\n selectedTile = null;\n selectTile.setState(VISIBLE_STATE);\n return;\n }\n \n // IF THE TILE IS NOT AT THE TOP OF ITS STACK, DO NOTHING\n int col = selectTile.getGridColumn();\n int row = selectTile.getGridRow();\n int index = tileGrid[col][row].indexOf(selectTile);\n if (index != (tileGrid[col][row].size() - 1))\n return;\n \n // IF THE TILE IS NOT FREE, DO NOTHING, BUT MAKE SURE WE GIVE FEEDBACK\n if ((col > 0) && (col < (gridColumns - 1)))\n {\n int leftZ = tileGrid[col-1][row].size();\n int z = tileGrid[col][row].size();\n int rightZ = tileGrid[col+1][row].size();\n if ((z <= leftZ) && (z <= rightZ))\n {\n // IF IT'S ALREADY INCORRECTLY SELECTED, DEACTIVATE THE FEEDBACK\n if (selectTile.getState().equals(INCORRECTLY_SELECTED_STATE))\n {\n selectTile.setState(VISIBLE_STATE);\n redTile = null;\n return;\n }\n else if(selectTile.getState().equals(VISIBLE_STATE))\n {\n //check if there's another red tile\n if(redTile != null)\n {\n //then make previous red tile visible instead\n redTile.setState(VISIBLE_STATE);\n redTile = null;\n }\n //make it red and give it audio\n selectTile.setState(INCORRECTLY_SELECTED_STATE);\n miniGame.getAudio().play(MahjongSolitairePropertyType.BLOCKED_TILE_AUDIO_CUE.toString(), false);\n redTile = selectTile;\n return;\n }\n }\n }\n\n // IT'S FREE\n if (selectedTile == null)\n {\n selectedTile = selectTile;\n selectedTile.setState(SELECTED_STATE);\n miniGame.getAudio().play(MahjongSolitairePropertyType.SELECT_AUDIO_CUE.toString(), false);\n }\n //they match\n else if(selectedTile.match(selectTile))\n {\n //remove\n MahjongSolitaireMove move = new MahjongSolitaireMove();\n move.col1 = selectedTile.getGridColumn();\n move.row1 = selectedTile.getGridRow();\n move.col2 = selectTile.getGridColumn();\n move.row2 = selectTile.getGridRow();\n processMove(move);\n redTile.setState(VISIBLE_STATE);\n redTile = null;\n }\n // THEY DON'T MATCH, GIVE SOME AUDIO FEEDBACK\n else\n {\n miniGame.getAudio().play(MahjongSolitairePropertyType.NO_MATCH_AUDIO_CUE.toString(), false); \n }\n }", "@Override\n\tpublic void mouseEntered(MouseEvent e) {\n\t\tif (shipsToPlace > 0) {\n\t\t\tchar isTileEnabled = (\"\" + e.getComponent()).charAt(22);\n\n\t\t\tif (isTileEnabled == 't') {\n\n\t\t\t\tint x = Integer.parseInt((\"\" + e.getComponent()).charAt(20) + \"\");\n\t\t\t\tint y = Integer.parseInt((\"\" + e.getComponent()).charAt(21) + \"\");\n\t\t\t\tplayerBoard[x][y].setBackground(Color.yellow);\n\n\t\t\t\tif (shipsToPlace == 3) {\n\t\t\t\t\tfor (int i = 1; i < 5; i++) {\n\t\t\t\t\t\tif ((x + i) < 10)\n\t\t\t\t\t\t\tplayerBoard[x + i][y].setBackground(Color.yellow);\n\t\t\t\t\t}\n\t\t\t\t} else if (shipsToPlace == 2) {\n\t\t\t\t\tif (y + 1 < 10)\n\t\t\t\t\t\tplayerBoard[x][y + 1].setBackground(Color.yellow);\n\t\t\t\t\tif (y + 2 < 10)\n\t\t\t\t\t\tplayerBoard[x][y + 2].setBackground(Color.yellow);\n\t\t\t\t} else if (shipsToPlace == 1) {\n\t\t\t\t\tif (y + 1 < 10)\n\t\t\t\t\t\tplayerBoard[x][y + 1].setBackground(Color.yellow);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void getTilePressed(View v){\n numpressed = numpressed + 1;\n if(numpressed>4){\n myTurn = true;\n showToast(\"Override: Your turn!\");\n }\n if(myTurn || is_debug){\n numpressed = 0;\n if(!MultiplayerManager.getInstance().enoughTimeBetweenCommands()){\n showToast(\"Please wait a second before issueing another command\");\n return;\n }\n int id = v.getId();\n String resource = v.getResources().getResourceEntryName(id);\n String resource_str = resource.replace(\"square_\", \"\");\n int tile = Integer.parseInt(resource_str);\n\n if(bombIntent){\n if(tile!=myTile && tile!=opponentTile && !bombs_location.contains(tile) && !powerup_location.contains(tile)){\n canPlaceBomb = false;\n placeBomb(tile, false);\n return;\n }else{\n showToast(\"Cant place there\");\n }\n }\n /**\n * check if tile is valid\n */\n if((tile==myTile+1 || tile==myTile-1 || tile==myTile+10 || tile==myTile+11 || tile == myTile+9 || tile==myTile-10 || tile ==myTile-11 || tile == myTile-9) && tile != opponentTile){\n MoveTileSelf(tile);\n checkPowerups(tile);\n }else{\n showToast(\"Can't move there imbecile\");\n }\n }else{\n showToast(\"Wait for your turn imbecile\");\n }\n }", "public void setTile(Tile tile) {\n\t\tthis.tile = tile;\n\t}", "@Override\n public boolean isTileFriendly(){\n return false;\n }", "boolean checkWin(Tile initialTile);", "protected boolean selectTile(String player, int coordinate, String area, MBproduction.buildingType build){\n String culture = null;\n boolean AIflag = false;\n boolean placeFlag = false;\n MBproduction.terrainTypeEnum selected;\n String normalizeSelected;\n /*******************************/\n player=player.toLowerCase();\n switch(player.toLowerCase()){\n case\"human\":\n culture = playBoard.humanCulture();\n break;\n case\"ai1\":\n culture = playBoard.AICulture1();\n break;\n case\"ai2\":\n culture = playBoard.AICulture2();\n break;\n default:\n break;\n }\n selected = playBoard.getIndiTerrain(coordinate);\n normalizeSelected = \n selected.toString().substring(0, selected.toString().length()-1);\n switch(culture.toLowerCase()){\n //norse\n case\"norse\":\n switch(area.toLowerCase()){\n case\"production\":\n for (int i = 0; i < norseProduction.size(); i ++){\n if (norseProduction.get(i).getName().equalsIgnoreCase(normalizeSelected)){\n norseProduction.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(selected.getPath())));\n norseProduction.remove(i);\n playBoard.updateProductionResourceCube(player, selected);\n playBoard.exileTerrain(selected); \n tileSelection.get(coordinate).setEnabled(false);\n stackAI.remove(stackAI.indexOf(coordinate));\n placeFlag = true;AIflag = true;\n break;\n }\n }\n break;\n //!!!!!!!!WARNNING!!!!!!!! NEED TO MODIFY FOR ITERATION II\n case\"city\":\n for (int i = 0; i < norseCity.size(); i ++){\n if (norseCity.get(i).getIcon() == null){\n norseCity.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(build.getPath())));\n placeFlag = true;\n break;\n }\n }\n break;\n default:\n break;\n }\n break;\n //greek \n case\"greek\":\n switch(area.toLowerCase()){\n case\"production\":\n for (int i = 0; i < greekProduction.size(); i ++){\n if (greekProduction.get(i).getName().equalsIgnoreCase(normalizeSelected)){\n greekProduction.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(selected.getPath())));\n greekProduction.remove(i);\n playBoard.updateProductionResourceCube(player, selected);\n playBoard.exileTerrain(selected); \n tileSelection.get(coordinate).setEnabled(false);\n stackAI.remove(stackAI.indexOf(coordinate));\n placeFlag = true;AIflag = true;\n break;\n }\n }\n break;\n //!!!!!!!!WARNNING!!!!!!!! NEED TO MODIFY FOR ITERATION II\n case\"city\":\n for (int i = 0; i < greekCity.size(); i ++){\n if (greekCity.get(i).getIcon() == null){\n greekCity.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(build.getPath())));\n placeFlag = true;\n break;\n } \n }\n break;\n default:\n break;\n }\n break;\n //egypt\n case\"egypt\":\n switch(area.toLowerCase()){\n case\"production\":\n for (int i = 0; i < egyptProduction.size(); i ++){\n if (egyptProduction.get(i).getName().equalsIgnoreCase(normalizeSelected)){\n egyptProduction.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(selected.getPath())));\n playBoard.updateProductionResourceCube(player, selected);\n playBoard.exileTerrain(selected);\n egyptProduction.remove(i);\n tileSelection.get(coordinate).setEnabled(false);\n stackAI.remove(stackAI.indexOf(coordinate));\n placeFlag = true;AIflag = true;\n break; \n }\n }\n break;\n //!!!!!!!!WARNNING!!!!!!!! NEED TO MODIFY FOR ITERATION II\n case\"city\":\n for (int i = 0; i < egyptCity.size(); i ++){\n if (egyptCity.get(i).getIcon() == null){\n egyptCity.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(build.getPath())));\n placeFlag = true;\n break;\n } \n }\n break;\n default:\n break;\n }\n break;\n default:\n break;\n }\n if ((!placeFlag)&&(player.equalsIgnoreCase(\"human\"))){\n JOptionPane.showMessageDialog(\n null, \"No suitable tile for \" + player , \"Information\",\n JOptionPane.WARNING_MESSAGE);\n }\n return AIflag; \n }", "public void setTile(int x, int y) {\n/* 748 */ this.e.setTile(x, y);\n/* 749 */ this.k = getTileIdx();\n/* */ \n/* */ \n/* 752 */ String str = (String)this.f.f(this.k);\n/* 753 */ if (str.equals(\"none\")) {\n/* 754 */ this.h = 0;\n/* */ }\n/* 756 */ else if (str.equals(\"rct\")) {\n/* 757 */ this.h = 1;\n/* 758 */ c();\n/* */ }\n/* 760 */ else if (str.equals(\"ict\")) {\n/* 761 */ this.h = 2;\n/* 762 */ d();\n/* */ } else {\n/* */ \n/* 765 */ throw new IllegalArgumentException(\"Component transformation not recognized\");\n/* */ } \n/* */ }", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t\tif ( !input ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\ttileVisible = true;\r\n\t\trepaint();\r\n\t}", "public void mousePressed()\n{\n if (m.getTileManager().getActiveTile()!=null)\n {\n if (m.getTileManager().getActiveTile().isHover())\n {\n if(!m.getTileManager().getBrushMode())\n m.getTileManager().getActiveTile().drawCell();\n else\n m.getTileManager().getActiveTile().drawCellWithBrush(m.getTileManager().getIsBlack());\n }\n }\n if (m.getTileManager().getHoverIndex()!=-1)\n {\n m.getTileManager().setActiveTile(m.getTileManager().getHoverIndex());\n }\n}", "private void notifyForbiddenTile(){\n\t\t\tJPanel pnl = EditorGUI.current;\n\t\t\tColor oldColor = pnl.getBackground();\n\t\t\t\n\t\t\tpnl.setBackground(new Color(240,125,125));\n\t\t\tnew Timer(delay, new ActionListener() {\t\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tpnl.setBackground(oldColor);\n\t\t\t\t\t((Timer) e.getSource()).stop();\n\t\t\t\t}\n\t\t\t}).start();\n\t\t}", "public void setSelectedTile(TileEnum tile) {\n selectedTile = tile;\n }", "public void drawTile() {\n\n }", "void setPosition(Tile t);", "boolean canMove(Tile t);", "public void enableMonsters(){\n enabled = true;\n }", "public void onTileEntry(Tile tile) {}", "private boolean makeMapTileTakeTurn(int x, int y) {\n MapTile tile_at_x_y = this.getTile(x, y);\n if (tile_at_x_y == null) {\n return false;\n }\n tile_at_x_y.takeTurn();\n return true;\n }", "private void setLit(boolean value)\n\t{\n\t\tfor (int x = 0; x < width; x++)\n\t\t{\n\t\t\tfor (int y = 0; y < height; y++)\n\t\t\t{\n\t\t\t\ttiles[x][y].setLit(value);\n\t\t\t}\n\t\t}\t\t\t\t\n\t}", "@Override\r\n public void onTileAdded() {\r\n super.onTileAdded();\r\n //Log.d(TAG, \"on tile added running\");\r\n initTileState();\r\n }", "public void TileClicked(MouseEvent e) {\n\t\tButton button;\n\t\tif(game.isDone()) {\n\t\t\treturn;\n\t\t}\n\t\tbutton = ((Button)e.getSource());\n\t\t//getting coordinates from button clicked, and tile model from that location\n\t\tString[] coordString = new String[2];\n\t\tcoordString = button.getId().split(\" . \");\n\t\tint x = Integer.parseInt(coordString[0]);\n\t\tint y = Integer.parseInt(coordString[1]);\n\t\tTile currTile = game.getTile(x, y);\n\t\t\n\t\t\n\t\tif(game.getRounds() == 0) {\n\t\t\tgame.placeBombs(x, y);\n\t\t\t// For testing.\n\t\t\t//System.out.println(game);\n\t\t\tstartTimer();\n\t\t}\n\t\t\n\t\tgame.incRounds();\n\t\t\n\t\t//in case the tile is already revealed\n\t\tif(currTile.isShown()) {\n\t\t\tflagSolver(x,y);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint tileMarker = currTile.getMarker();\n\t\t//for changing markers between blank, flag, and question mark\n\t\tif(e.getButton() == MouseButton.SECONDARY) {\n\t\t\tswitch(tileMarker) {\n\t\t\tcase 0:\n\t\t\t\tgame.incFlagCounter(1);\n\t\t\t\tImageView flag = new ImageView(new Image(\"public/images/\"+selectedTheme+\"/flag.png\"));\n\t\t\t\tflag.setFitHeight(30);\n\t\t\t\tflag.setFitWidth(30);\n\t\t\t\tbutton.setGraphic(flag);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tgame.incFlagCounter(-1);\n\t\t\t\tImageView qMark = new ImageView(new Image(\"public/images/\"+selectedTheme+\"/qMark.png\"));\n\t\t\t\tqMark.setFitHeight(20);\n\t\t\t\tqMark.setFitWidth(20);\n\t\t\t\tbutton.setGraphic(qMark);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tbutton.setGraphic(null);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tbombLabel.setText(\"Flag: \" + game.getFlagCounter() + \"/\" + game.getNumOfBombs());\n\t\t\tcurrTile.incMarker();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//Calls unmarkedTile if the tile does not have a flag or question mark\n\t\tif (tileMarker == 0) {\n\t\t\tunmarkedTile(x, y, false);\n\t\t}\n\t}", "boolean canBuildDome(Tile t);", "public void setTile (int i, boolean up)\n\t{\n\t\ttileButton[i].setIcon (up ? tileIcon[i] : tileIcon[0]);\n\t}", "public void powerSwitcher(int x, int y, int radius, boolean power) {\t\t\r\n\r\n\t\tfor(int k=1;k<radius+1;k++) { //Add power to tiles around building if its possible\r\n\t\t\tif(x-k>=0) {\t\t\t\t\t//First check if tile can be checked\r\n\t\t\t\tif(power) {\r\n\t\t\t\t\ttileMap[x-k][y].setPowered(true); //If we are adding power add or else remove\r\n\t\t\t\t}else {\r\n\t\t\t\t\ttileMap[x-k][y].setPowered(false);\r\n\t\t\t\t}\t\r\n\t\t\t} \r\n\t\t\tif(x+k<201) { //Repeat for all directions \r\n\t\t\t\tif(power) { \r\n\t\t\t\t\ttileMap[x+k][y].setPowered(true);\r\n\t\t\t\t}else {\r\n\t\t\t\t\ttileMap[x+k][y].setPowered(false);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\tif(y-k>=0) {\r\n\t\t\t\tif(power) {\r\n\t\t\t\t\ttileMap[x][y-k].setPowered(true);\r\n\t\t\t\t}else {\r\n\t\t\t\t\ttileMap[x][y-k].setPowered(false);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\tif(y+k<201) {\r\n\t\t\t\tif(power) {\r\n\t\t\t\t\ttileMap[x][y+k].setPowered(true);\r\n\t\t\t\t}else {\r\n\t\t\t\t\ttileMap[x][y+k].setPowered(false);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void chooseBonusTile(Map<Integer, String> bonusTiles) {\n bonusTilePane.setVisible(true);\n bonusTileController.setBonusTiles(bonusTiles);\n }", "public void toggleShipAtTile(int tile) {\r\n if (placedShips < 4 || hasShip(tile)) {\r\n if (hasShip(tile)) {\r\n placedShips -= 1;\r\n } else {\r\n placedShips += 1;\r\n }\r\n tiles[tile] = tiles[tile] ^ 1;\r\n }\r\n }", "public void placeTile(Tile t){\n\t\t//System.out.println(t.toString() + \" was placed\");\n\t\toccupied = true;\n\t\tcurrentTile = t;\n\t}", "boolean canBuildBlock(Tile t);", "@Override\r\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\tif ( !input ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\ttileVisible = true;\r\n\t\ttileX = arg0.getX() / 36;\r\n\t\ttileY = arg0.getY() / 36;\r\n\t\trepaint();\r\n\t}", "public void addTileOnBeginning(Tile tile);", "public void draw_Tunnel_Tile(boolean b) {\n if (b) {\n mazeEditor.mazeDrawMode = DRAW_TUNNEL_TILE;\n\n Tog1.setState(false); \n Tog2.setState(false); \n Tog3.setState(false); \n Tog5.setState(false);\n Tog6.setState(false);\n Tog7.setState(false);\n }\n }", "public void setTiles() {\n\t\tTileStack names = new TileStack();\n\t\tfor(int x=0; x < theBoard.getCols(); x++) {\n\t\t\tfor(int y=0; y < theBoard.getRows(); y++) {\n\t\t\t\tp = new Point(x,y);\n\t\t\t\tif(p.equals(new Point(0,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(1,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(4,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,1)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,1)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,4)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,4)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(1,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(4,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse \n\t\t\t\t\ttheBoard.setTile(p, names.pop());\n\t\t\t}\n\t\t}\n\t}", "public void mapMode() {\n\t\ttheTrainer.setUp(false);\n\t\ttheTrainer.setDown(false);\n\t\ttheTrainer.setLeft(false);\n\t\ttheTrainer.setRight(false);\n\n\t\tinBattle = false;\n\t\tred = green = blue = 255;\n\t\tthis.requestFocus();\n\t}", "private void setAvailableFromLastMove(int large, int smallx) {\n clearAvailable();\n // Make all the tiles at the destination available\n if (large != -1) {\n\n\n for (int i = 0; i < 9; i++) {\n for (int dest = 0; dest < 9; dest++) {\n if (!phaseTwo) {\n if (!done) {\n if (i == large) {\n TileAssignment5 tile = mSmallTiles[large][dest];\n if ((tile.getOwner() == TileAssignment5.Owner.NOTCLICKED))\n addAvailable(tile);\n\n switch (smallx) {\n case 0:\n int a[] = adjacencyList.get(0);\n\n for (int x : a) {\n TileAssignment5 tile1 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile1)) {\n mAvailable.remove(tile1);\n //}\n }\n break;\n case 1:\n int a1[] = adjacencyList.get(1);\n\n for (int x : a1) {\n TileAssignment5 tile2 = mSmallTiles[large][x];\n // if(mAvailable.contains(tile2)) {\n mAvailable.remove(tile2);\n //}\n }\n break;\n case 2:\n int a2[] = adjacencyList.get(2);\n for (int x : a2) {\n TileAssignment5 tile3 = mSmallTiles[large][x];\n // if(mAvailable.contains(tile3)) {\n mAvailable.remove(tile3);\n // }\n }\n break;\n case 3:\n int a3[] = adjacencyList.get(3);\n for (int x : a3) {\n TileAssignment5 tile4 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile4)) {\n mAvailable.remove(tile4);\n // }\n }\n break;\n case 4:\n int a4[] = adjacencyList.get(4);\n for (int x : a4) {\n TileAssignment5 tile5 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile5)) {\n mAvailable.remove(tile5);//}\n\n }\n break;\n case 5:\n int a5[] = adjacencyList.get(5);\n for (int x : a5) {\n TileAssignment5 tile6 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile6)) {\n mAvailable.remove(tile6);//}\n\n }\n break;\n case 6:\n int a6[] = adjacencyList.get(6);\n for (int x : a6) {\n TileAssignment5 tile7 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile7)) {\n mAvailable.remove(tile7);//}\n\n }\n break;\n case 7:\n int a7[] = adjacencyList.get(7);\n for (int x : a7) {\n TileAssignment5 tile8 = mSmallTiles[large][x];\n // if(mAvailable.contains(tile8)) {\n mAvailable.remove(tile8);//}\n\n }\n break;\n case 8:\n int a8[] = adjacencyList.get(8);\n for (int x : a8) {\n TileAssignment5 tile9 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile9)) {\n mAvailable.remove(tile9);//}\n\n }\n break;\n }\n\n } else {\n if (DoneTiles.contains(i)) {\n continue;\n }\n TileAssignment5 tile = mSmallTiles[i][dest];\n tile.setOwner(TileAssignment5.Owner.FREEZED);\n tile.updateDrawableState('a', 0);\n }\n } else { //OnDOnePressed\n if (DoneTiles.contains(i)) {\n continue;\n }\n\n // Log.d(\"Comes \", \"Hereeee\");\n if (i != large) {//Correct answer\n TileAssignment5 tile = mSmallTiles[i][dest];\n tile.setOwner(TileAssignment5.Owner.NOTCLICKED);\n addAvailable(tile);\n tile.updateDrawableState('a', 0);\n //done =false;\n }\n }\n\n\n }else {\n/*\n ileAssignment5 thistile = mSmallTiles[i][dest];\n if(((Button)thistile.getView()).getText().charAt(0)==' '){\n mAvailable.remove(thistile);\n thistile.updateDrawableState('a', 0);\n }\n*/\n\n\n if (i == large) {\n if (dest == smallx) {\n TileAssignment5 tile1 = mSmallTiles[large][dest];\n tile1.setOwner(TileAssignment5.Owner.CLICKED);\n if (mAvailable.contains(tile1)) {\n mAvailable.remove(tile1);\n }\n tile1.updateDrawableState('a', 0);\n\n } else {\n TileAssignment5 tile2 = mSmallTiles[large][dest];\n if (!(tile2.getOwner() == TileAssignment5.Owner.CLICKED)) {\n\n tile2.setOwner(TileAssignment5.Owner.FREEZED);\n }\n if (mAvailable.contains(tile2)) {\n mAvailable.remove(tile2);\n }\n tile2.updateDrawableState('a', 0);\n }\n\n\n } else {\n\n\n TileAssignment5 tile3 = mSmallTiles[i][dest];\n if (!(tile3.getOwner() == TileAssignment5.Owner.CLICKED)) {\n tile3.setOwner(TileAssignment5.Owner.NOTCLICKED);\n }\n // if(((((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(null))||((Button)mSmallTiles[i][dest].getView()).getText().toString().charAt(0)==' ')||(((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(\"\"))){\n\n if ((!mAvailable.contains(tile3))&&(tile3.getView().toString().charAt(0)!=' ')){\n mAvailable.add(tile3);\n }\n\n\n tile3.updateDrawableState('a', 0);\n\n\n\n TileAssignment5 tile = mSmallTiles[i][dest];\n if(((Button)mSmallTiles[i][dest].getView()).getText().toString().charAt(0)==' '){\n // Log.d(\"Yes \", \"it came\");\n if(mAvailable.contains(tile)){\n mAvailable.remove(tile);\n }\n\n }\n else{\n if(!mAvailable.contains(tile)){\n addAvailable(tile);}\n }\n\n\n\n\n\n\n\n\n\n /*\n\n\n\n\n\n\n ileAssignment5 tile = mSmallTiles[i][dest];\n ileAssignment5 tile = mSmallTiles[i][dest];\n try{\n if(((((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(null))||((Button)mSmallTiles[i][dest].getView()).getText().toString().charAt(0)==' ')||(((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(\"\"))){\n // Log.d(\"Yes \", \"it came\");\n if(mAvailable.contains(tile)){\n mAvailable.remove(tile);\n }\n }\n else{\n if(!mAvailable.contains(tile)){\n addAvailable(tile);}\n }}catch (ArrayIndexOutOfBoundsException e){\n\n\n }catch ( StringIndexOutOfBoundsException e){\n\n }\n\n*/\n }\n\n }\n }\n }\n }\n // If there were none available, make all squares available\n if (mAvailable.isEmpty()&&large==-1) {\n setAllAvailable();\n }\n }", "void toggleEntered() {\n entered = !entered;\n }", "void use(ATile clickedTile, GodSim g);", "public void initTiles()\n {\n PropertiesManager props = PropertiesManager.getPropertiesManager(); \n String imgPath = props.getProperty(MahjongSolitairePropertyType.IMG_PATH);\n int spriteTypeID = 0;\n SpriteType sT;\n \n // WE'LL RENDER ALL THE TILES ON TOP OF THE BLANK TILE\n String blankTileFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_IMAGE_NAME);\n BufferedImage blankTileImage = miniGame.loadImageWithColorKey(imgPath + blankTileFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileImage(blankTileImage);\n \n // THIS IS A HIGHLIGHTED BLANK TILE FOR WHEN THE PLAYER SELECTS ONE\n String blankTileSelectedFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_SELECTED_IMAGE_NAME);\n BufferedImage blankTileSelectedImage = miniGame.loadImageWithColorKey(imgPath + blankTileSelectedFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileSelectedImage(blankTileSelectedImage);\n \n // FIRST THE TYPE A TILES, OF WHICH THERE IS ONLY ONE OF EACH\n // THIS IS ANALOGOUS TO THE SEASON TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeATiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_A_TILES);\n for (int i = 0; i < typeATiles.size(); i++)\n {\n String imgFile = imgPath + typeATiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_A_TYPE);\n spriteTypeID++;\n }\n \n // THEN THE TYPE B TILES, WHICH ALSO ONLY HAVE ONE OF EACH\n // THIS IS ANALOGOUS TO THE FLOWER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeBTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_B_TILES);\n for (int i = 0; i < typeBTiles.size(); i++)\n {\n String imgFile = imgPath + typeBTiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_B_TYPE);\n spriteTypeID++;\n }\n \n // AND THEN TYPE C, FOR WHICH THERE ARE 4 OF EACH \n // THIS IS ANALOGOUS TO THE CHARACTER AND NUMBER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeCTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_C_TILES);\n for (int i = 0; i < typeCTiles.size(); i++)\n {\n String imgFile = imgPath + typeCTiles.get(i);\n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID); \n for (int j = 0; j < 4; j++)\n {\n initTile(sT, TILE_C_TYPE);\n }\n spriteTypeID++;\n }\n }", "public void toggleSelected(){\n if(!selected) {\n this.graphicsGroup.toFront();\n// System.out.println(\"selecting\");\n transparentBoxImages = new Image[(int)this.getWidth()/32][(int) this.getHeight()/32];\n //add the box to the proper position for each row this world addition covers\n for(int x = 0; x< this.getWidth() / game.BLOCK_SIZE; x++){\n for(int y = 0; y<this.getHeight()/game.BLOCK_SIZE;y++){\n Image nextImage = new Image(new TextureRegion(game.atlas.findRegion(\"GreenTransparent\")));\n nextImage.setSize(game.BLOCK_SIZE, game.BLOCK_SIZE);\n nextImage.setPosition(this.getX() + (x * game.BLOCK_SIZE), this.getY() + (y * game.BLOCK_SIZE));\n\n graphicsGroup.addActorBefore(this, nextImage);\n transparentBoxImages[x][y]= nextImage;\n\n }\n }\n\n //pick the item up\n this.setY(this.getY() + 10);\n selected = true;\n }\n else{\n\n //put the item back down\n this.setY(this.getY() - 10);\n\n for(int x = 0; x< this.getWidth() / game.BLOCK_SIZE; x++){\n for(int y = 0; y<this.getHeight()/game.BLOCK_SIZE;y++){\n graphicsGroup.removeActor(transparentBoxImages[x][y]);\n\n }\n }\n\n\n selected = false;\n\n //if we can't place it there, then we will just run everything again\n if(!game.placeable){\n Timer.schedule(new Timer.Task(){\n @Override\n public void run() {\n game.selectEnemy(worldAddition);\n }\n }, 0.1f);\n }\n\n\n }\n }", "@Override\n public boolean activate() {\n //When will this activate?\n return Areas.FALADOR.contains(ctx.players.local().tile())\n && ctx.widgets.component(1371,0).visible()\n && !ctx.objects.select().name(\"Waterpump\").within(6.0).isEmpty();\n }", "public void mouseExited(MouseEvent e) {\n\n\t\tif (shipsToPlace > 0) {\n\t\t\tint x = Integer.parseInt((\"\" + e.getComponent()).charAt(20) + \"\");\n\t\t\tint y = Integer.parseInt((\"\" + e.getComponent()).charAt(21) + \"\");\n\n\t\t\tchar isTileEnabled = (\"\" + e.getComponent()).charAt(22);\n\n\t\t\tif (isTileEnabled == 't')\n\t\t\t\tplayerBoard[x][y].setBackground(Color.darkGray);\n\n\t\t\tif (shipsToPlace == 3) {\n\n\t\t\t\tfor (int i = 1; i < 5; i++) {\n\n\t\t\t\t\tif ((x + i) < 10) {\n\n\t\t\t\t\t\tisTileEnabled = playerBoard[x + i][y].getName().charAt(2);\n\n\t\t\t\t\t\tif (isTileEnabled == 't')\n\t\t\t\t\t\t\tplayerBoard[x + i][y].setBackground(Color.darkGray);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tplayerBoard[x + i][y].setBackground(Color.lightGray);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else if (shipsToPlace == 2) {\n\t\t\t\tif (y + 1 < 10) {// first tile\n\n\t\t\t\t\tisTileEnabled = playerBoard[x][y + 1].getName().charAt(2);\n\n\t\t\t\t\tif (isTileEnabled == 't')\n\t\t\t\t\t\tplayerBoard[x][y + 1].setBackground(Color.darkGray);\n\t\t\t\t\telse\n\t\t\t\t\t\tplayerBoard[x][y + 1].setBackground(Color.lightGray);\n\n\t\t\t\t}\n\n\t\t\t\tif (y + 2 < 10) {// second tile\n\t\t\t\t\tisTileEnabled = playerBoard[x][y + 2].getName().charAt(2);\n\n\t\t\t\t\tif (isTileEnabled == 't')\n\t\t\t\t\t\tplayerBoard[x][y + 2].setBackground(Color.darkGray);\n\t\t\t\t\telse\n\t\t\t\t\t\tplayerBoard[x][y + 2].setBackground(Color.lightGray);\n\t\t\t\t}\n\n\t\t\t} else if (shipsToPlace == 1) {\n\n\t\t\t\tif (y + 1 < 10) {// first tile\n\n\t\t\t\t\tisTileEnabled = playerBoard[x][y + 1].getName().charAt(2);\n\n\t\t\t\t\tif (isTileEnabled == 't')\n\t\t\t\t\t\tplayerBoard[x][y + 1].setBackground(Color.darkGray);\n\t\t\t\t\telse\n\t\t\t\t\t\tplayerBoard[x][y + 1].setBackground(Color.lightGray);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "boolean setStone(int x, int y);", "public void placeSettlement(boolean maximal) {\n List<Tile> tiles;\n if (maximal) {\n tiles = getGame().getMap()\n .getClaimableTiles(owner, tile, getRadius());\n } else {\n tiles = new ArrayList<Tile>();\n tiles.add(tile);\n }\n \n tile.setSettlement(this);\n for (Tile t : tiles) {\n t.changeOwnership(owner, this);\n }\n for (Tile t : tile.getSurroundingTiles(getLineOfSight())) {\n owner.setExplored(t);\n }\n owner.invalidateCanSeeTiles();\n }", "public static boolean terrain_has_flag(int terr, terrain_flag_id flag){\r\n\t\t\t //\t BV_ISSET(get_tile_type(terr)->flags, flag)\r\n\t\t\t return false;\r\n}", "public void select(int x, int y)\r\n {\r\n _ausgewahlt = new Tile(x * 64, y * 64, 64, 64,\r\n TileType.EditorAusgewahlt);\r\n }", "@Override\n public void checkMousePressOnSprites(MiniGame game, int x, int y)\n {\n // FIGURE OUT THE CELL IN THE GRID\n int col = calculateGridCellColumn(x);\n int row = calculateGridCellRow(y);\n \n // DISABLE THE STATS DIALOG IF IT IS OPEN\n if (game.getGUIDialogs().get(STATS_DIALOG_TYPE).getState().equals(VISIBLE_STATE))\n {\n game.getGUIDialogs().get(STATS_DIALOG_TYPE).setState(INVISIBLE_STATE);\n return;\n }\n \n // CHECK THE TOP OF THE STACK AT col, row\n ArrayList<MahjongSolitaireTile> tileStack = tileGrid[col][row];\n if (tileStack.size() > 0)\n {\n // GET AND TRY TO SELECT THE TOP TILE IN THAT CELL, IF THERE IS ONE\n MahjongSolitaireTile testTile = tileStack.get(tileStack.size()-1);\n if (testTile.containsPoint(x, y))\n selectTile(testTile);\n }\n }", "public void letSmartComputerSetup() {\n //generates a random spot for the flag\n int randomRow = (int)(Math.random() * 2);\n int randomCol = (int)(Math.random() * 10);\n\n //adjusts the flag for the proper team\n if(state.getCurrentTeamsTurn().getTEAMNUMBER() == 0) {\n randomRow += 8;\n }\n\n //adds the flag to the board\n state.setLastTappedPieceButton(Rank.FLAG);\n state.tapOnSquare(randomRow, randomCol);\n state.tapOnSquare(randomRow, randomCol);\n\n //places bombs around the flag if possible\n state.setLastTappedPieceButton(Rank.BOMB);\n if(randomRow != 0) {\n state.tapOnSquare(randomRow - 1, randomCol);\n state.tapOnSquare(randomRow - 1, randomCol);\n }\n if(randomRow != 9) {\n state.tapOnSquare(randomRow + 1, randomCol);\n state.tapOnSquare(randomRow + 1, randomCol);\n }\n if(randomCol != 0) {\n state.tapOnSquare(randomRow, randomCol -1);\n state.tapOnSquare(randomRow, randomCol -1);\n }\n if(randomCol != 9) {\n state.tapOnSquare(randomRow, randomCol + 1);\n state.tapOnSquare(randomRow, randomCol + 1);\n }\n\n //transitions the player to play phase\n state.transitionPhases();\n }", "private void putTilesOnBoard() {\n boolean isWhite = true;\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n Tile t = new Tile(isWhite, new Position(x, y));\n t.setOnMouseClicked(e -> {\n if (t.piece != null && this.activeTile == null && this.whitePlayer == t.piece.isWhite()) {\n this.activeTile = t;\n ArrayList<Position> moves = t.piece.getLegalMoves();\n this.highlightAvailableMoves(moves, t.isWhite);\n } else if (t.isHighlighted.getValue() && this.activeTile.piece != null ) {\n movePieces(t);\n } else {\n this.activeTile = null;\n this.clearHighlightedTiles();\n }\n this.updatePieceBoards();\n });\n t.isHighlighted.addListener((o, b, b1) -> {\n if (o.getValue() == true) {\n t.startHighlight();\n } else {\n t.clearHighlight();\n }\n });\n this.board[x][y] = t;\n this.add(this.board[x][y], x, y);\n isWhite = !isWhite;\n }\n isWhite = !isWhite;\n }\n\n }", "TileItem getCurrentTile();", "void flag(int position) {\n getTile(position).flag();\n if (getTile(position).isFlagged()) {\n mineLeft--;\n } else {\n mineLeft++;\n }\n\n setChanged();\n notifyObservers();\n }", "public void enterMap(Map map, int layer, int i, int j) {\n //1. add the tile to the map\n map.addTile( layer, i, j, this);\n }", "private boolean tryAttack(Tile fromTile) {\r\n\t\tint size = getBoard().getTiles().length;\r\n\r\n\t\t// if attacker is on power-up tile\r\n\t\tif (fromTile.getTileType().equals(\"PowerUp\")) {\r\n\t\t\tif (fromTile.getPiece().getLEAGUE() == League.SHARK && fromTile.getTer().territoryName().equals(\"Shark\")) {\r\n\t\t\t\tfromTile.getPiece().setPower(fromTile.getPiece().getPower() + 1);\r\n\t\t\t}\r\n\r\n\t\t\tif (fromTile.getPiece().getLEAGUE() == League.EAGLE && fromTile.getTer().territoryName().equals(\"Eagle\")) {\r\n\t\t\t\tfromTile.getPiece().setPower(fromTile.getPiece().getPower() + 1);\r\n\t\t\t} else if (fromTile.getTer().territoryName().equals(\"Neutral\")) {\r\n\t\t\t\tfromTile.getPiece().setPower(fromTile.getPiece().getPower() + 1);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t// if the defender is on power-up tile\r\n\t\tif (tile.getTileType().equals(\"PowerUp\")) {\r\n\t\t\tif (tile.getPiece().getLEAGUE() == League.SHARK && tile.getTer().territoryName().equals(\"Shark\")) {\r\n\t\t\t\ttile.getPiece().setPower(tile.getPiece().getPower() + 1);\r\n\t\t\t}\r\n\r\n\t\t\tif (tile.getPiece().getLEAGUE() == League.EAGLE && tile.getTer().territoryName().equals(\"Eagle\")) {\r\n\t\t\t\ttile.getPiece().setPower(tile.getPiece().getPower() + 1);\r\n\t\t\t} else if (tile.getTer().territoryName().equals(\"Neutral\")) {\r\n\t\t\t\ttile.getPiece().setPower(tile.getPiece().getPower() + 1);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tif (fromTile.getPiece().getPower() >= tile.getPiece().getPower()) {\r\n\t\t\tif (tile.getPiece().getTYPE() == PieceType.FLAG) {\r\n\t\t\t\tfromTile.getPiece().setHasEnemyFlag(true);\r\n\t\t\t\tUtilities.infoAlert(\"Enemy Flag Captured!\", \"Get that piece with the flag back to your territory quickly!\");\r\n\t\t\t} else {\r\n\t\t\t\tif (tile.getPiece().getHasEnemyFlag() == true) {\r\n\t\t\t\t\tUtilities.infoAlert(\"Flag Recaptured!\", \"Enemy piece carrying your flag has been killed.\\nYour flag has respawned in your territory.\");\r\n\r\n\t\t\t\t\t// generate the dropped flag at its original position\r\n\t\t\t\t\t// or generate the dropped flag on first available tile on first or last row\r\n\t\t\t\t\t// if the default position has a piece on it\r\n\t\t\t\t\tif (tile.getPiece().getLEAGUE() == League.EAGLE) {\r\n\t\t\t\t\t\tif (getBoard().getTiles()[size - 1][(size / 2) - 1].getPiece() == null) {\r\n\t\t\t\t\t\t\tgetBoard().getTiles()[size - 1][(size / 2) - 1].setPiece(new SharkFlag());\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tfor (int sharkCol = 0; sharkCol < getBoard().getTiles().length; sharkCol++) {\r\n\t\t\t\t\t\t\t\tif (getBoard().getTiles()[size - 1][sharkCol].getPiece() == null) {\r\n\t\t\t\t\t\t\t\t\tgetBoard().getTiles()[size - 1][sharkCol].setPiece(new SharkFlag());\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (getBoard().getTiles()[0][size / 2].getPiece() == null) {\r\n\t\t\t\t\t\t\tgetBoard().getTiles()[0][size / 2].setPiece(new EagleFlag());\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tfor (int eagleCol = 0; eagleCol < getBoard().getTiles().length; eagleCol++) {\r\n\t\t\t\t\t\t\t\tif (getBoard().getTiles()[0][eagleCol].getPiece() == null) {\r\n\t\t\t\t\t\t\t\t\tgetBoard().getTiles()[0][eagleCol].setPiece(new EagleFlag());\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn movePiece(fromTile);\r\n\t\t} else {\r\n\t\t\tUtilities.infoAlert(\"Invalid action\", \"Enemy power level higher at level \" + tile.getPiece().getPower()\r\n\t\t\t\t\t+ \". \" + \"\\nYour current piece is not able to defeat it and has cowered back in fear.\");\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Test\n public void testSetTile()\n {\n try\n {\n Square s = new Square();\n\n s.setTile(Tile.E); // Add a tile\n\n assertEquals(Tile.E, s.getTile()); // Check the tile is now on the square\n assertTrue(s.isOccupied()); // Check the status is now true\n }\n catch(Exception ex)\n {\n fail(\"No exception should be thrown when setting a Tile onto the square.\");\n }\n }", "public void toggleEnable();", "public void act() \r\n {\n if(getOneIntersectingObject(Player.class)!=null)\r\n {\r\n if(MenuWorld.gamemode == 1)\r\n //marcheaza regenerarea labirintului(trecere la nivelul urmator in Modul Contra Timp)\r\n TAworld.shouldRegen=true;\r\n else\r\n { \r\n //reseteaza variabilele care tin de modul de joc\r\n MenuWorld.gamemode=-1;\r\n MenuWorld.isPlaying=false;\r\n for(int i=0;i<4;i++)\r\n ItemCounter.gems_taken[i]=0;\r\n \r\n //arata fereastra de castig \r\n PMworld.shouldShowVictoryWindow=true;\r\n }\r\n \r\n }\r\n \r\n }", "public void setStartConditions() {\r\n\t\tplayer1.relocate(0, 0);\r\n\t\tgamemap.setPlayerLocation(1, 1);\r\n\t\tgamemap.setEnemyLocation(20, 10);\r\n\t\tenemy1.relocate(19*46, 9*85);\r\n\t\tportal1.relocate(9*46, 9*85);\r\n\t\tportal2.relocate(9*46, 0*85);\r\n\t\tspikes1.relocate(5*46,0*85);\r\n\t\tspikes2.relocate(5*46,1*85);\r\n\t\tspikes3.relocate(5*46,2*85);\r\n\t\tspikes4.relocate(5*46,7*85);\r\n\t\tspikes5.relocate(5*46,8*85);\r\n\t\tspikes6.relocate(5*46,9*85);\r\n\t\tspikes7.relocate(10*46,2*85);\r\n\t\tspikes8.relocate(10*46,3*85);\r\n\t\tspikes9.relocate(10*46,4*85);\r\n\t\tspikes10.relocate(10*46,5*85);\r\n\t\tspikes11.relocate(10*46,6*85);\r\n\t\tspikes12.relocate(10*46,7*85);\r\n\t\tspikes13.relocate(15*46,0*85);\r\n\t\tspikes14.relocate(15*46,1*85);\r\n\t\tspikes15.relocate(15*46,2*85);\r\n\t\tspikes16.relocate(15*46,7*85);\r\n\t\tspikes16.relocate(15*46,8*85);\r\n\t\tspikes17.relocate(15*46,9*85);\r\n\t\tRandom randomObj = new Random();\r\n\t\tint randomX = randomObj.nextInt(20);\r\n\t\tint randomY = randomObj.nextInt(10);\r\n\t\tcoins1.relocate(randomX*46, randomY*85);\r\n\t\tgamemap.setLootLocation(randomX + 1, randomY + 1);\r\n\t\t//coins1.relocate(10*46,5*85);\r\n\t\t//gamemap.setLootLocation(11, 6);\r\n\t}", "private synchronized void doSetWiperTiles()\n {\n // Setup tiling paths\n if((bWiperAvailable) && (bNetworkPvdEnabled != true))\n {\n // create the XPS instance, passing in our Context\n if (Config.LOGV) Log.v(TAG,\"Wiper Setting Tiles\");\n\n if((null==szUsername) ||(null==szRealm))\n {\n Log.e(TAG,\"Username /Realm not set\");\n bWiperAvailable = false;\n }\n }\n else\n {\n if(Config.LOGD) Log.d(TAG,\"Skip Tile Setup\");\n }\n }", "private void revealAround() {\n if (xTile - 1 >= 0 && !References.GetMainTileActorMap()[xTile - 1][yTile].isRevealed()) {\n References.GetMainTileActorMap()[xTile - 1][yTile].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile - 1][yTile].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile - 1][yTile].setRevealed(true);\n }\n }\n if (yTile - 1 >= 0 && !References.GetMainTileActorMap()[xTile][yTile - 1].isRevealed()) {\n References.GetMainTileActorMap()[xTile][yTile - 1].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile][yTile - 1].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile][yTile - 1].setRevealed(true);\n }\n }\n if (xTile + 1 < Parameters.NUM_X_TILES && !References.GetMainTileActorMap()[xTile + 1][yTile].isRevealed()) {\n References.GetMainTileActorMap()[xTile + 1][yTile].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile + 1][yTile].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile + 1][yTile].setRevealed(true);\n }\n }\n if (yTile + 1 < Parameters.NUM_Y_TILES && !References.GetMainTileActorMap()[xTile][yTile + 1].isRevealed()) {\n References.GetMainTileActorMap()[xTile][yTile + 1].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile][yTile + 1].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile][yTile + 1].setRevealed(true);\n }\n }\n }", "@SideOnly(Side.CLIENT)\n boolean needsRenderUpdate(World world, BlockPos pos, IBlockState state, T tile);", "public void enableChoice(int x, int y, int value)\n {\n _cells[x][y].enableValue(value);\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\r\n\t\tString[][] level = generate(m.getWordListModel());\r\n\t\r\n\t\tfor(int x = 0; x < 6; x++){\r\n\t\t\tfor(int y = 0; y < 6; y++){\r\n\t\t\t\tif(level[x][y] == \"!\"){\r\n\t\t\t\t\tTile tile = m.getBoard().tiles[x][y];\r\n\t\t\t\t\ttile.setLetter(\"!\");\r\n\t\t\t\t\ttile.setEnabled(false);\r\n\t\t\t\t} else if(level[x][y] != \"_\"){\r\n\t\t\t\t\tTile tile = m.getBoard().tiles[x][y];\r\n\t\t\t\t\ttile.setLetter(level[x][y]);\r\n\t\t\t\t\ttile.setEnabled(true);\r\n\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tm.getBoard().tiles[x][y].setLetter(\"_\");\r\n\t\t\t\t\tm.getBoard().tiles[x][y].setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tbuilder.refreshBoard();\r\n\t}", "public void setAdjacent()\r\n {\n \t\r\n adjacentTiles = new Tile[6];\r\n \r\n \r\n //Driver.map[VERT][HOR]\r\n \r\n if(verticalPos < Driver.map.length && horizontalPos > 1) //topleft\r\n {\r\n \ttopLeft = Driver.map[verticalPos + 1][horizontalPos - 1];\r\n }\r\n else\r\n {\r\n \ttopLeft = null;\r\n }\r\n \r\n if(verticalPos < Driver.map.length - 2) //top\r\n {\r\n \ttop = Driver.map[verticalPos + 2][horizontalPos];\r\n }\r\n else\r\n {\r\n \ttop = null;\r\n }\r\n \r\n if(verticalPos < Driver.map.length && horizontalPos < Driver.map[0].length) //topright\r\n {\r\n \ttopRight = Driver.map[verticalPos + 1][horizontalPos + 1];\r\n }\r\n else\r\n {\r\n \ttopRight = null;\r\n }\r\n \r\n if(verticalPos > 1 && horizontalPos < Driver.map[0].length) //bottomright\r\n {\r\n \tbottomRight = Driver.map[verticalPos - 1][horizontalPos + 1];\r\n }\r\n else\r\n {\r\n \tbottomRight = null;\r\n }\r\n \r\n if(verticalPos > 2) //bottom\r\n {\r\n \tbottom = Driver.map[verticalPos - 2][horizontalPos];\r\n }\r\n else\r\n {\r\n \tbottom = null;\r\n }\r\n \r\n if(verticalPos > 1 && horizontalPos > 1) //botttomLeft\r\n {\r\n \tbottomLeft = Driver.map[verticalPos - 1][horizontalPos - 1];\r\n }\r\n else\r\n {\r\n \tbottomLeft = null;\r\n }\r\n \t\r\n \r\n adjacentTiles[0] = topLeft;\r\n adjacentTiles[1] = top;\r\n adjacentTiles[2] = topRight;\r\n adjacentTiles[3] = bottomRight;\r\n adjacentTiles[4] = bottom;\r\n adjacentTiles[5] = bottomLeft;\r\n \r\n \r\n// System.out.print(\"main tile \" + getHor() + \", \" + getVert() + \" \");\r\n// for(int i = 0; i < adjacentTiles.length; i++)\r\n// {\r\n// \tif( adjacentTiles[i] != null)\r\n// \t\tSystem.out.print(adjacentTiles[i].getHor() + \", \" + adjacentTiles[i].getVert() + \" | \");\r\n// \telse\r\n// \t\tSystem.out.print(\"null \");\r\n// }\r\n// System.out.println();\r\n \r\n }", "void enableMod();", "public void checkPowerups(final Integer tile){\n if(powerup_location.contains(tile)){\n Integer randomPowerup = returnRandom(0,4);\n switch (randomPowerup){\n case(0):\n showTimedAlertDialog(\"Powerup Picked!\", \"+HEALTH\", 3);\n if(hp<3){\n hp = hp +1;\n DrawHP();\n }\n Lejos.makeSound_Powerup_hp();\n break;\n case(1):\n showTimedAlertDialog(\"Powerup Picked!\", \"+BOMBS\", 3);\n if(bombs<3){\n bombs = bombs+1;\n DrawBombs();\n }\n Lejos.makeSound_Powerup_bomb();\n break;\n case(2):\n showTimedAlertDialog(\"Powerup Picked!\", \"CONFUSION\", 3);\n powerup_confusion = true;\n ImageView img_confusion = findImageButton(\"confusion_container\");\n img_confusion.setImageDrawable(getResources().getDrawable(R.drawable.confusion));\n Lejos.makeSound_Powerup_confusion();\n break;\n case(3):\n showTimedAlertDialog(\"Powerup Picked!\", \"GOD MODE\", 3);\n powerup_godmode = true;\n ImageView img_god = findImageButton(\"godmode_container\");\n img_god.setImageDrawable(getResources().getDrawable(R.drawable.godmode));\n Lejos.makeSound_Powerup_godmode();\n break;\n }\n powerup_location.remove(tile);\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n MultiplayerManager.getInstance().SendMessage(\"powerup_remove \" + tile.toString());\n }\n }, 1000);\n }\n }", "protected void setTile( Tile[] tiles, int x, int y, Tile tile ) {\n tiles[ (y * getHeightInTiles()) + x ] = tile;\n }", "private void setSeen(boolean value)\n\t{\n\t\tfor (int x = 0; x < width; x++)\n\t\t{\n\t\t\tfor (int y = 0; y < height; y++)\n\t\t\t{\n\t\t\t\ttiles[x][y].setSeen(value);\n\t\t\t}\n\t\t}\t\t\t\t\n\t}", "private void toggleGraveyardHandler() {\n ((ChessPanel) this.getParent()).getGraveyard(1).setVisible(\n !((ChessPanel) this.getParent()).getGraveyard(1).isVisible());\n ((ChessPanel) this.getParent()).getGraveyard(2).setVisible(\n !((ChessPanel) this.getParent()).getGraveyard(2).isVisible());\n }", "private void updateTileState(int tileState, Tile tile) {\r\n CharSequence name = \"LTE\";\r\n switch (tileState){\r\n case Tile.STATE_ACTIVE:\r\n name = name + \" on\";\r\n break;\r\n case Tile.STATE_INACTIVE:\r\n name = name + \" off\";\r\n break;\r\n }\r\n\r\n Icon icon = Icon.createWithResource(getApplicationContext(), R.drawable.lte_text);\r\n tile.setIcon(icon);\r\n tile.setLabel(name);\r\n tile.setState(tileState);\r\n tile.updateTile();\r\n }", "protected abstract void setEnable(E entry, boolean enable)\n\t\t\tthrows ALEException;", "public void placePowerStation() {\n this.powerStation = true;\n\n }", "public void enable()\n\t{\n\t\tplayButton.setEnabled(true);\n\t\tpassButton.setEnabled(true);\n\t\tbigTwoPanel.setEnabled(true);\n\t}", "private boolean checkTileExists(int x, int y, int zoom) {\n \t int minZoom = 12;\n \t int maxZoom = 16;\n\n \t if ((zoom < minZoom || zoom > maxZoom)) {\n \t return false;\n \t }\n\n \t return true;\n \t }", "@Override\n public void act(int intX, int intY){\n int distanceX, distanceY;\n distanceX = Math.abs(getX() - intX);\n distanceY = Math.abs(getY() - intY);\n //Is player in range of hider?\n if(distanceX == 2 || distanceY == 2){\n //debugging tool\n //System.out.println(\"Hider is activated!\");\n actSwitch();\n }\n if(checkSwitch()){\n //Hiders gonna start hiding\n setVisible(); \n }\n //Debugging tool\n //System.out.println(\"Hider coordinates are x:\" + getX() + \" y:\" + getY());\n }", "public void updateGameMode (MouseEvent e)\n { \n if ((e.getX() >= 512 && e.getX() <= 836) && (e.getY() >= 161 && e.getY() <=520))\n sprite = 2;\n else if ((e.getX() >= 62 && e.getX() <= 386) && (e.getY() >= 161 && e.getY() <=520))\n sprite = 1;\n else \n sprite = 0;\n }", "@Override\n public void interact(Object obj) {\n // TODO: Cave Code - Add additional Agility to the player while on this Tile\n }", "public InaccessibleTile(int x, int y) {\n super(true, true, true, true, x, y);\n }", "@SuppressLint(\"SetTextI18n\")\n public void tileClicked(View view) {\n\n if (!gameOver) {\n TextView textView = findViewById(R.id.textView2);\n textView.setText(\"\");\n\n // determines row and column of checked box\n int id = view.getId();\n int row;\n int column;\n\n if (id == R.id.imageButton1) {\n row = 0;\n column = 0;\n } else if (id == R.id.imageButton2) {\n row = 1;\n column = 0;\n } else if (id == R.id.imageButton3) {\n row = 2;\n column = 0;\n } else if (id == R.id.imageButton4) {\n row = 0;\n column = 1;\n } else if (id == R.id.imageButton5) {\n row = 1;\n column = 1;\n } else if (id == R.id.imageButton6) {\n row = 2;\n column = 1;\n } else if (id == R.id.imageButton7) {\n row = 0;\n column = 2;\n } else if (id == R.id.imageButton8) {\n row = 1;\n column = 2;\n } else {\n row = 2;\n column = 2;\n }\n\n // changes box to user's tile (i.e. cross or circle)\n Tile tile = game.draw(row, column);\n\n // checks whether board has three of the same tiles in a row\n GameState gamestate = game.check(row, column, tile);\n\n // changes UI to user's tile (i.e. cross or circle)\n ImageButton button = findViewById(id);\n switch (tile) {\n case CROSS:\n button.setBackgroundResource(R.drawable.cross);\n break;\n case CIRCLE:\n button.setBackgroundResource(R.drawable.circle);\n break;\n }\n\n // returns statement if one of the player's has won the game\n if (gamestate == GameState.PLAYER_ONE) {\n if (playersCount == 2) {\n textView.setText(player1 + \" wins!\");\n gameOver = true;\n } else {\n textView.setText(\"Game won!\");\n gameOver = true;\n }\n } else if (gamestate == GameState.PLAYER_TWO) {\n if (playersCount == 2) {\n textView.setText(player2 + \" wins!\");\n gameOver = true;\n } else {\n textView.setText(\"Game won!\");\n gameOver = true;\n }\n }\n }\n }", "@Override\n\tprotected void updateTiles() {\n\n\t\tfinal byte tileId = getPlanetType().mainTileId;\n\n\t\tfor (int i = 0; i < tiles.length; i++) {\n\t\t\t// if (random.NextDouble() > 0.95f)\n\t\t\t// tiles[i] = 0;\n\t\t\t// else\n\t\t\ttiles[i] = tileId;\n\t\t}\n\t}", "public void setBoardEnabled(boolean flag) {\r\n\t\tfor (int i = 0; i < order.length; i++) {\r\n\t\t\tChessBoardBlock block = board.get(order[i]);\r\n\t\t\tblock.setEnabled(flag);\r\n//\t\t\tblock.setBorderPainted(flag);\r\n\t\t}\r\n\t}", "public void setTileStatus(int x, int y, TileStatus ts) throws IndexOutOfBoundsException{\n if(x < 0 || y < 0 || x >= grid.length || y >= grid[0].length) {\n throw new IndexOutOfBoundsException(\"Il n'existe pas de tuile à la position (\"+x+\",\"+y+\")\");\n }\n grid[x][y].setStatus(ts);\n }", "public void markTileButton(Tile tilebutton) \t{\n\t\tif(tileadded && playerpanel.getPlayer().getType()==Player.HUMAN) {\n\t\t\tunhighlight();\n\t\t\ttilebutton.markAdded(); }}", "public void setToPlaceTowerState() {\n for (int i = 0; i < cells.size(); i++) {\n if (cells.get(i) == CellState.Grass) {\n cells.set(i, CellState.ToPlaceTower);\n } else if (cells.get(i) == CellState.Chosen) {\n cells.set(i, CellState.Tower);\n }\n }\n }", "public void addEditedTile(GroundTile tile) {\n this.editedTiles.add(tile);\n }", "@Override\n\tpublic void openProgrammerGUI(MachineCrafterTileEntity tile) {\n\t\t\n\t}", "public void mousePressed(MouseEvent e) {\r\n\t\tPoint position = e.getPoint();// gets coordinates of the click\r\n\t\tif (position.x < BOARD_WIDTH && position.y < BOARD_WIDTH && !running) {// determines if the click is within the bounds of the game space\r\n\t\t\tint x = (int)Math.floor(position.x / SIZE_TILES);// gets the x tile value\r\n\t\t\tint y = (int)Math.floor(position.y / SIZE_TILES);// gets the y tile value\r\n\t\t\tPoint point = new Point(position.x - position.x % SIZE_TILES, position.y - position.y % SIZE_TILES);// gets the uper left coordinate of the tile\r\n\t\t\tif (!nodes[x * WIDTH_TILES + y].isOccupied() && !antHillAdded) {// checks if an ant needs to be added\r\n\t\t\t\taddAnt(x * WIDTH_TILES + y, x * WIDTH_TILES + y);// calls the add ant method\r\n\t\t\t\tnodes[x * WIDTH_TILES + y] = new Node(point, new ImageIcon(\"antHill.png\").getImage(), true, \"antHill\");// adds the antHill at specified node\r\n\t\t\t\tantHillAdded = true;// marks anthill flag as created\r\n\t\t\t} else if (nodes[x * WIDTH_TILES + y].isOccupied()) {// allows additional ants to be added to the colony\r\n\t\t\t\taddAnt(x * WIDTH_TILES + y, x * WIDTH_TILES + y);// calls addAnt method\r\n\t\t\t}// if (anthill)\r\n\t\t}// if (within bounds)\r\n\t}", "void setTileChanged(@Nonnull Location location);", "public void setTileX(int x) {\n\t\ttileX = x;\n\t}", "@Override\n\tpublic boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)\n\t{\n\t\tUnsaga.debug(\"アクチベートされてます\");\n\n\t\tTileEntityChestUnsaga var10 = (TileEntityChestUnsaga)par1World.getTileEntity(par2, par3, par4);\n\n\t\tif(var10 == null){\n\t\t\tUnsaga.debug(\"タイルエンチチーがとれない\");\n\t\t\treturn true;\n\t\t}\n\n\t\tif(var10.hasItemSet){\n\t\t\tchestFunc(par1World, par2, par3, par4, par5EntityPlayer, par6, par7, par8, par9);\n\t\t\treturn false;\n\t\t}\n\n\t\tif(!var10.getWorldObj().isRemote){\n\t\t\tUnsaga.debug(\"同期します\");\n\t\t\tint chestlevel = 0;\n\t\t\tif(!var10.hasSetChestLevel()){\n\t\t\t\tvar10.initChestLevel(par1World);\n\t\t\t}\n\t\t\tchestlevel = var10.getChestLevel();\n\t\t\tPacketSyncChest ps = new PacketSyncChest(new XYZPos(par2,par3,par4),chestlevel);\n\t\t\tUnsaga.packetPipeline.sendTo(ps, (EntityPlayerMP) par5EntityPlayer);\n\t\t\tUnsaga.debug(\"パケット送ります\");\n\t\t\tPacketGuiOpen pg = new PacketGuiOpen(Unsaga.guiNumber.chest,new XYZPos(par2,par3,par4));\n\t\t\tUnsaga.packetPipeline.sendToServer(pg);\n\t\t\t//PacketDispatcher.sendPacketToPlayer(PacketHandler.getChestSyncPacket(chestlevel, par2, par3, par4,false,var10.trapOccured,var10.unlocked,var10.defused,var10.magicLock,var10.hasItemSet), (Player) par5EntityPlayer);\n\t\t\t//PacketDispatcher.sendPacketToServer(PacketHandler.getChestGuiPacket(par2,par3,par4));\n\n\t\t}\n\t\tif(var10.getWorldObj().isRemote){\n\n\t\t}\n\n\n\t\t\n\t\t\n\t\t\n\t\t\n//\t\tboolean chestopen = var10.touchChest(par5EntityPlayer);\n//\n//\t\tif(chestopen){\n//\t\t\tvar10.setItemsToChest(par1World.rand);\n//\t\t\tchestFunc(par1World, par2, par3, par4, par5EntityPlayer, par6, par7, par8, par9);\n//\t\t}\n\t\treturn false;\n\t}", "public void enable(){\r\n\t\tthis.activ = true;\r\n\t}", "@Override\r\n\tpublic boolean canMove(int x, int y, Tile[][] tiles) {\r\n\t\treturn false;\r\n\t}", "void placeTile(Tile tile, int x, int y, SurfaceEntityType type, Building building) {\r\n\t\tfor (int a = x; a < x + tile.width; a++) {\r\n\t\t\tfor (int b = y; b > y - tile.height; b--) {\r\n\t\t\t\tSurfaceEntity se = new SurfaceEntity();\r\n\t\t\t\tse.type = type;\r\n\t\t\t\tse.virtualRow = y - b;\r\n\t\t\t\tse.virtualColumn = a - x;\r\n\t\t\t\tse.tile = tile;\r\n\t\t\t\tse.tile.alpha = alpha;\r\n\t\t\t\tse.building = building;\r\n\t\t\t\tif (type != SurfaceEntityType.BASE) {\r\n\t\t\t\t\trenderer.surface.buildingmap.put(Location.of(a, b), se);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trenderer.surface.basemap.put(Location.of(a, b), se);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void setAllAvailable() {\r\n for (int large = 0; large < 9; large++) {\r\n for (int small = 0; small < 9; small++) {\r\n Tile tile = mSmallTiles[large][small];\r\n if (tile.getOwner() == Tile.Owner.NEITHER)\r\n addAvailable(tile);\r\n }\r\n }\r\n }", "public boolean hasTile(GroundTile tile) {\n return this.editedTiles.contains(tile);\n }" ]
[ "0.67957735", "0.6781629", "0.6631062", "0.6550416", "0.6388072", "0.6306163", "0.62689954", "0.61748314", "0.61582565", "0.6146869", "0.6096568", "0.6081019", "0.6062224", "0.602495", "0.6022396", "0.5958714", "0.5931876", "0.58964574", "0.58524626", "0.5826975", "0.5821148", "0.58025974", "0.57552326", "0.5748548", "0.57463586", "0.57321995", "0.5730316", "0.5718204", "0.56919646", "0.56843066", "0.56842035", "0.5676109", "0.56711733", "0.56571484", "0.56546223", "0.56468916", "0.56464267", "0.5644169", "0.5634417", "0.56212574", "0.55959046", "0.55896", "0.55817693", "0.5571211", "0.55529386", "0.5547676", "0.55434406", "0.55411357", "0.55357605", "0.5533983", "0.5523856", "0.5522563", "0.5521168", "0.55187416", "0.5516802", "0.55135894", "0.5499174", "0.54985964", "0.54982895", "0.5495458", "0.54927397", "0.5476941", "0.5473084", "0.5463798", "0.54485506", "0.54435", "0.5440042", "0.54382616", "0.5427364", "0.5425984", "0.5423007", "0.5413928", "0.54057246", "0.5404929", "0.5404889", "0.5397592", "0.53965175", "0.5377081", "0.537674", "0.53757614", "0.53706014", "0.5365619", "0.5363624", "0.5362107", "0.5353002", "0.53520834", "0.5350211", "0.5347989", "0.5346007", "0.53414893", "0.5327219", "0.5320527", "0.5314155", "0.53130275", "0.53107226", "0.5308092", "0.5302092", "0.52821034", "0.5280588", "0.5276678", "0.5276023" ]
0.0
-1
This method will attempt to register a user If the username already exists, it should respond by saying that the username is already taken Above currently doesn't work
@PostMapping("/register") public ControllerResponse registerUser(@RequestBody User user, HttpSession sess) { ControllerResponse cr = new ControllerResponse(); String response = ""; User checkUser = userService.getUserByUsername(user.getUsername()); if (checkUser != null) { response = "Username already taken"; cr.setResponse(response); return cr; } if (user != null) { user.setRoles("Associate"); user.setBatchID("Pending"); userService.makeUser(user); sess.setAttribute("user", user); response = "registered"; cr.setResponse(response); return cr; } //TODO: Add check to see if user already exists. return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addUser(Username username) throws UserAlreadyExistsException;", "public void checkUsernameExist() {\n\n try {\n BLUser bluser = new BLUser();\n User user = new User();\n\n ResultSet rs = bluser.selectUserIdFromUsername(txt_username.getText());\n\n user.setUsername(txt_username.getText());\n bluser.setUser(user);\n\n if (bluser.checkUsernameExist()) {\n \n populateDataOnTable();\n }// end if\n else {\n JOptionPane.showMessageDialog(rootPane, \"Invalid username!\");\n }// end else \n\n }// end try\n catch (Exception ex) {\n JOptionPane.showMessageDialog(null, ex.getMessage(), \"Exception\", JOptionPane.INFORMATION_MESSAGE);\n }//end catch\n }", "private final static void onRegister(TextField username, TextField email, PasswordField password, PasswordField passwordAgain)\n\t{\n\t\t// TODO no password = passwordAgain check\n\t\t// TODO check if username exists\n\t\t// TODO check if email exists\n\n\t\tint id = ProfileManipulation.getHighestId(\"Profile\", true);\n\t\tProfileManipulation.registerUser(id, username.getText(), email.getText(),\n\t\t\t\tpassword.getText());\n\t\tPartylize.setUsername(username.getText());\n\t\tPartylize.showMainScene();\n\t}", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }", "private void registerUser() {\n\n // Get register name\n EditText mRegisterNameField = (EditText) findViewById(R.id.register_name_field);\n String nickname = mRegisterNameField.getText().toString();\n\n // Get register email\n EditText mRegisterEmailField = (EditText) findViewById(R.id.register_email_field);\n String email = mRegisterEmailField.getText().toString();\n\n // Get register password\n EditText mRegisterPasswordField = (EditText) findViewById(R.id.register_password_field);\n String password = mRegisterPasswordField.getText().toString();\n\n AccountCredentials credentials = new AccountCredentials(email, password);\n credentials.setNickname(nickname);\n\n if (DataHolder.getInstance().isAnonymous()) {\n credentials.setOldUsername(DataHolder.getInstance().getUser().getUsername());\n }\n\n sendRegistrationRequest(credentials);\n }", "@Override\n\t\t\t\t\tpublic void onFail() {\n\t\t\t\t\t\tToast.makeText(RegisterActivity.this, \"Username already exists!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}", "public boolean register(String u_Name, String u_pw, String f_name){\n List<User> userList = userDao.getUserFromUsername(u_Name);\n //1.check if userName is used\n if (userList.size() != 0){ \n return false;\n }\n //2.create user and add to the DB\n User user = new User(u_Name, u_pw, f_name);\n userDao.addUser(user);\n //3.return true\n return true;\n }", "@Test\n public void testCreateUserWithExistingUsername() {\n final String username = \"michael.pickelbauer@iaeste.at\";\n final CreateUserRequest request1 = new CreateUserRequest(username, \"Michael\", \"Pickelbauer\");\n final CreateUserRequest request2 = new CreateUserRequest(username, \"Hugo\", \"Mayer\");\n\n // Now let's create the two user accounts\n final CreateUserResponse response1 = administration.createUser(token, request1);\n final CreateUserResponse response2 = administration.createUser(token, request2);\n\n // The first request should work like a charm\n assertThat(response1, is(not(nullValue())));\n assertThat(response1.isOk(), is(true));\n\n // The second request should fail, as we already have a user with this\n // username in the system\n assertThat(response2, is(not(nullValue())));\n assertThat(response2.isOk(), is(false));\n assertThat(response2.getError(), is(IWSErrors.USER_ACCOUNT_EXISTS));\n assertThat(response2.getMessage(), is(\"An account for the user with username \" + username + \" already exists.\"));\n }", "User register(String firstName, String lastName, String username, String email) throws UserNotFoundException, EmailExistException, UsernameExistsException, MessagingException;", "private void userNameErrorMessage(boolean exists, String userName){\n if(exists){\n System.out.println(\"\\nUserName: \" + userName + \" Already Exists In Database!\\n\");\n }\n }", "public void registerUser(String username, String password)\n {\n if(!spaceExists.spaceExists(SpaceUtils.getSpace()))\n {\n spaceExists.getSpaceExistsWarning(loginForm,\n \"\");\n }\n // check text fields are not blank\n if(StringUtils.isNotBlank(username) &&\n StringUtils.isNotBlank(password))\n {\n // Check length of password\n if(password.length() >= 6 &&\n password.length() <= 25)\n {\n // check username length\n if(username.length() >= 3 &&\n username.length() <= 20)\n {\n // continue\n String confirmDialogResponse = confirmPassword();\n\n// System.out.println(\"Dialog: \" + confirmDialogResponse);\n// System.out.println(\"Password: \"+password);\n if(password.equals(confirmDialogResponse))\n {\n // passwords match\n // save user to space\n try\n {\n // create new entry\n // encrypt password\n UserEntry user = new UserEntry();\n user.setUsername(username);\n user.setID(UUID.randomUUID());\n user.setSalt(CipherUtils.getSalt(30));\n user.setPassword(\n CipherUtils.generateSecurePassword(\n password, user.getSalt()));\n\n if(user.getSecureUsername().length() > 3)\n {\n // there are at least 3 non-special characters\n // create user\n if(userUtils.createUser(user) != null)\n {\n\n JOptionPane.showMessageDialog(loginForm,\n \"Welcome \" + user.getUsername() + \"!\");\n\n // remove loginForm\n loginForm.setVisible(false);\n loginForm.dispose();\n // Lease is renewed at every login\n userUtils.renewUserLease(user);\n\n // Debug:\n// UserEntry debug = (UserEntry) space.readIfExists(user, null, 3000);\n// System.out.println(\"User: \" + debug.getUsername() +\" Successfully added!\");\n// System.out.println(\"Main Form Created!\");\n\n // Create MainForm\n new MainForm(user);\n }\n else\n {\n // user already exists\n JOptionPane.showMessageDialog(loginForm,\n user.getUsername() + \" is taken.\");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Username must have at least 3 non-special characters. \");\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Passwords did not match!\");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Username must be 3 - 20 characters. \");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Password must be 6 - 25 characters. \");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"A username and password are required.\");\n }\n }", "void register() {\n if (registerView.getFirstName().length() == 0 || registerView.getLastName().length() == 0 || registerView.getUsername().length() == 0 || registerView.getPassword().length() == 0) {\n IDialog invalidRegistrationDialog\n = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Fields must be non-empty!\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n } else {\n if (userController.registerUser(registerView.getFirstName(), registerView.getLastName(), registerView.getUsername(), registerView.getPassword()) != null) {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.MAIN_MENU));\n } else {\n IDialog invalidRegistrationDialog = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Username is already taken\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n }\n }\n }", "public void checkUsernameAvailability(final Context context, final UsernameValidityListener listener) {\n if (getLoginRestClient() != null) {\n // Trigger a fake registration (without password) to know whether the user name is available or not.\n RegistrationParams params = new RegistrationParams();\n params.username = mUsername;\n\n // Note: We do not pass sessionId here, this is not necessary.\n\n register(context, params, new InternalRegistrationListener() {\n @Override\n public void onRegistrationSuccess() {\n // The registration could not succeed without password.\n // Keep calling listener (the error case) as a fallback,\n listener.onUsernameAvailabilityChecked(false);\n }\n\n @Override\n public void onRegistrationFailed(String message) {\n listener.onUsernameAvailabilityChecked(!TextUtils.equals(MatrixError.USER_IN_USE, message));\n }\n\n @Override\n public void onResourceLimitExceeded(MatrixError e) {\n // Should not happen, consider user is available, registration will fail later on\n listener.onUsernameAvailabilityChecked(true);\n }\n });\n }\n }", "public boolean registerNewUser(String un, String pw, String fn, String ln, String sq, String sa, int age) {\n\n boolean success;\n\n if (isUsernameExist(un)) {\n success = false;\n }\n else {\n // encrypting input password\n SHAEncryption sha = new SHAEncryption();\n String shaPW = sha.getSHA(pw);\n\n // accessing registeredUser table (collection)\n MongoCollection<Document> collRU = db.getCollection(\"registeredUser\");\n\n // creating new user document based on the input from UI\n Document newUser = new Document(\"username\", un)\n .append(\"password\", shaPW)\n .append(\"firstName\", fn)\n .append(\"lastName\", ln)\n .append(\"age\", age)\n .append(\"secureQ\", sq)\n .append(\"secureA\", sa.toLowerCase())\n .append(\"status\", \"\")\n .append(\"hidefriends\",false)\n .append(\"hideposts\",false)\n .append(\"hideage\",false)\n .append(\"hidestatus\",false);\n\n // insert newUser into registeredUser collection\n collRU.insertOne(newUser);\n System.out.println(\"Username \" + un + \" is registered!\");\n success = true;\n \n // create followList for new user\n db.getCollection(\"followList\").insertOne(\n new Document(\"username\", un).append(\"following\", new ArrayList<String>()));\n }\n\n return success;\n }", "@Test\n\tvoid repeatedUsernameTest() throws Exception {\n\t\tUser userObj = new User();\n\t\tuserObj.setName(\"Siva Murugan\");\n\t\tuserObj.setEmail(\"valid@gmail.com\");\n\t\tuserObj.setGender(\"M\");\n\t\tuserObj.setMobileNumber(9878909878L);\n\t\tuserObj.setRole(\"C\");\n\t\tuserObj.setUsername(\"sivanew\");\n\t\tuserObj.setPassword(\"Siva123@\");\n\t\tString userJson = new ObjectMapper().writeValueAsString(userObj);\n\t\twhen(userService.registerUser(any(User.class))).thenThrow(new UsernameAlreadyExistException(\"E_UR01\"));\n\t\tmockMvc.perform(post(\"/vegapp/v1/users/register\").contentType(MediaType.APPLICATION_JSON).content(userJson))\n\t\t\t\t.andExpect(status().isConflict()).andExpect(jsonPath(\"$.errorMessage\").value(\"E_UR01\"));\n\t}", "private static ErrorType handleAddUser(String username) {\n\t\tif (VersionControlDb.addUser(username) != null) {\n\t\t\treturn ErrorType.SUCCESS;\n\t\t}\n\t\telse {\n\t\t\treturn ErrorType.USERNAME_ALREADY_EXISTS;\n\t\t}\n\t}", "public String register() {\r\n\t\tif (password.equals(passwordConfirm)) {\r\n\t\t\tUser newUser = new User(username, password);\r\n\t\t\t\r\n\t\t\tif (dataManager.addUser(newUser)) {\r\n\t\t\t\tFacesMessage message = new FacesMessage(\"User has been registered successfully.\");\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null, message);\r\n\t\t\t\tlogger.info(\"New user has been registered.\");\r\n\t\t\t\treturn \"login.xhtml\";\r\n\t\t\t\t\r\n\t\t\t}\t\t\t\r\n\t\t\tFacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR, \"\", \"A user with the same username already exists.\");\r\n\t\t\tFacesContext.getCurrentInstance().addMessage(\"registration_form:username\", message);\t\t\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tFacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR, \"\", \"Password confirmation is incorrect.\");\r\n\t\t\tFacesContext.getCurrentInstance().addMessage(\"registration_form:password_confirm\", message);\t\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public static boolean checkRegisteredUsername(String username){\n \tboolean found = false;\n \ttry {\n\t\t\tfound = DBHandler.isUsernameTaken(username, c); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \treturn found;\n }", "public void userExists(String newUsername)\n\t\tthrows DuplicateUsernameException{\n\t\tfor(User user: getUserSet()){\n\t\t\tif(user.getUsername().equals(newUsername)){\n\t\t\t\tthrow new DuplicateUsernameException(newUsername);\n\t\t\t}\n\t\t}\n\t}", "private void register(String username, String password) {\n User u = null;\n try {\n u = userDao.loadByLogin(username, password);\n } catch (Exception ignored) {}\n if (u == null) {\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"tmp_username\", username);\n editor.putString(\"tmp_password\", password);\n editor.commit();\n Intent intent = new Intent(LoginActivity.this, InfoActivity.class);\n startActivity(intent);\n } else {\n try {\n Toast.makeText(getApplicationContext(), \"Register Failed\", Toast.LENGTH_SHORT).show();\n } catch (Exception e) {\n Looper.prepare();\n Toast.makeText(getApplicationContext(), \"Register Failed\", Toast.LENGTH_SHORT).show();\n Looper.loop();\n }\n }\n }", "private void registerUserOnServer() throws IOException {\r\n\t\tdataSending.sendMessage(Server.REGISTER+\" \"+userName, Long.toString(userModel.ID));\r\n\t}", "private boolean checkExistingUsername(String username) {\n boolean existingUsername = false;\n User user = userFacade.getUserByUsername(username);\n if (user != null) {\n existingUsername = true;\n }\n return existingUsername;\n }", "boolean isUserExists(RegisterData data) throws DuplicateUserException;", "private void register(UserAuthenticationMessage uaMessage) {\n\t\tinitialize();\n\t\tUser newUser = uaMessage.getUser();\n\t\tHashMap<String, Boolean> dbInfo = DatabaseRequests.registerNewUser(newUser);\n\t\tcreateRegistrationAnswer(dbInfo.get(MIDs.EMAIL_EXISTS), dbInfo.get(MIDs.USER_EXISTS), dbInfo.get(MIDs.AUTHENTICATE));\n\t}", "private void attemptRegister() {\n\n // Reinicia los errores de los EditText\n mEditEmail.setError(null);\n mEditFirstName.setError(null);\n mEditLastName.setError(null);\n mEditPassword.setError(null);\n mEditPasswordConfirm.setError(null);\n\n // Obtiene los valores ingresados por el usuario\n String email = Utils.checkEditTextForEmpty(getContext(),mEditEmail);\n String firstName = Utils.checkEditTextForEmpty(getContext(),mEditFirstName);\n String lastName = Utils.checkEditTextForEmpty(getContext(),mEditLastName);\n String password = Utils.checkEditTextForEmpty(getContext(),mEditPassword);\n String passwordConfirm = Utils.checkEditTextForEmpty(getContext(),mEditPasswordConfirm);\n\n //Revisa si hay valor vacío\n if (email == null || firstName == null || lastName == null || password == null || passwordConfirm == null) {\n return;\n }\n\n // Valida el correo\n if (!email.contains(\"@\")) {\n mEditEmail.setError(getString(R.string.error_invalid_email));\n mEditEmail.requestFocus();\n return;\n }\n\n // Valida la contraseña\n if (password.length() < 3) {\n mEditPassword.setError(getString(R.string.error_invalid_password));\n mEditPassword.requestFocus();\n return;\n }\n\n //Valida que las contraseñas hagan match\n if (!password.equals(passwordConfirm)) {\n mEditPasswordConfirm.setError(getString(R.string.error_invalid_password_confirmation));\n mEditPasswordConfirm.requestFocus();\n return;\n }\n\n // Intenta crear la cuenta\n Toast.makeText(getContext(), \"Bienvenido\", Toast.LENGTH_LONG).show();\n }", "public ResponseEntity<User> createUser(User user) {\n List<User> users=getAllUsers();\n boolean usernameIsUsed=false;\n\n\n for(User myUser : users){\n\n\n String username= myUser.getUsername();\n\n if(username.equals(user.getUsername())){\n usernameIsUsed=true;\n return ResponseEntity.badRequest().build();\n }\n\n\n }\n if(!usernameIsUsed){\n myUserDetailsService.addUser(user);\n return ResponseEntity.ok(user);\n }\n\n return null;\n }", "@RequestMapping(value = \"register\", method = RequestMethod.POST)\n public String register(@ModelAttribute @Valid RegisterForm registerForm, Errors errors, HttpServletRequest request, Model model) {\n\n if (errors.hasErrors()) {\n model.addAttribute(\"title\", \"Register to RandNums\");\n model.addAttribute(\"sessionActive\", isSessionActive(request.getSession()));\n return \"login/register\";\n }\n\n User existingUser = userDao.findByUsername(registerForm.getUsername());\n\n if (existingUser != null) {\n errors.rejectValue(\"username\", \"username.alreadyexists\", \"A user with that username already exists\");\n model.addAttribute(\"title\", \"Register\");\n model.addAttribute(\"sessionActive\", isSessionActive(request.getSession()));\n return \"login/register\";\n }\n\n User newUser = new User(registerForm.getUsername(), registerForm.getEmail(), registerForm.getPassword());\n\n userDao.save(newUser);\n setUserInSession(request.getSession(), newUser);\n\n return \"redirect:/home\";\n }", "@Override\n public void onRegistrationSuccess() {\n listener.onUsernameAvailabilityChecked(false);\n }", "public String checkUsername() {\n String username = \"\"; // Create username\n boolean isOK = true; // Condition loop\n\n while (isOK) {\n username = checkEmpty(\"Account\"); // Call method to check input of username\n boolean isExist = false; // Check exist username\n for (Account acc : accounts) {\n // If username is exist, print out error\n if (username.equals(acc.getUsername())) {\n System.out.println(\"This account has already existed\");\n System.out.print(\"Try another account: \");\n isExist = true;\n }\n }\n // If username not exist then return username\n if (!isExist) {\n return username;\n }\n }\n return username; // Return username\n }", "private void registerUser(final String firstName, final String lastName, final String email, final String password, final String reEnterPassword) {\n\n if (validRegister(firstName, lastName, email, password, reEnterPassword)){\n mSignUpPresenter.registerUser(NetworkUtils.getInstance(this), email, password, firstName, lastName);\n }\n\n }", "Boolean registerNewUser(User user);", "private boolean checkUsername(String newUsername, Label label)\n {\n label.setText(\"\");\n\n if(newUsername.length() == 0){\n label.setText(\"Please choose a username \");\n return false;\n }\n for(Account account : getListOfAccounts()){\n if(newUsername.equals(account.getUsername())){\n label.setText(\"This field is already taken by another account. Please choose another username\");\n return false;\n }\n }\n return true;\n }", "@Override\r\n\tpublic Boolean userExist(String username) {\n\t\treturn null;\r\n\t}", "public void onSignUpClick() {\n\t\tString uid = regview.getUsername();\n\t\tString pw = regview.getPassword();\n\t\tString na = regview.getName();\n\t\tString em = regview.getEmail();\n\t\tString text = \"\";\n\t\tif(uid.equals(\"\") || pw.equals(\"\") || na.equals(\"\")|| em.equals(\"\")){\n\t\t\ttext = \"Please fill out all fields!\";\n\t\t} else if(regview.findUser(uid)!=User.NULL_USER){\n\t\t\ttext = \"The username already exsit, please try another one!\";\n\t\t} else {\n\t\t\tregview.addUser(new User(uid,pw,na,em));\n\t\t\tregview.goLoginPage();\n\t\t}\n\t\tregview.setRegisterText(text);\n\t}", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "public boolean userNameExist(String username);", "@Override\n\tpublic boolean registerUtente(Utente user) {\n\t\tif(!userExists(user)) {\n\t\t\tDB db = getDB();\n\t\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\t\tlong hash = (long) user.getUsername().hashCode();\n\t\t\tusers.put(hash, user);\n\t\t\tdb.commit();\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\t\n\t}", "public boolean registerNewUser(String szUserName, String szTelephone,\n\t\t\tString szEmail, String szPassword) throws Exception {\n\t\t// INFO\n\t\tplay.Logger.info(\"<BUISNESS_LOGIC> Register new user : \");\n\t\tplay.Logger.info(\"============================\");\n\t\tplay.Logger.info(\"For : =>>\");\n\t\tplay.Logger.info(\"User name : \" + szUserName);\n\t\tplay.Logger.info(\"Telephone : \" + szTelephone);\n\t\tplay.Logger.info(\"Email : \" + szEmail);\n\t\tplay.Logger.info(\"Password : \" + szPassword);\n\t\tplay.Logger.info(\"============================\");\n\t\tboolean isRegitred = false;\n\t\tif (setterDB.registerNewUser(szUserName, szTelephone, szEmail, szPassword)) {\n\t\t\tisRegitred = true;\n\t\t}\n\t\treturn isRegitred;\n\t}", "private boolean checkNameExistAdd(String userName) {\n\n\t\tUser user = this.userDAO.getUserByName(userName);\n\t\tif (null != user) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "boolean isUserExists(Username username);", "public Boolean isUsernameExist(String username);", "private void checkifUsernameExists(final String username) {\r\n Log.d(TAG, \"checkifUsernameExists: Checking if\" + username + \"Alredy Exists\");\r\n\r\n DatabaseReference reference=FirebaseDatabase.getInstance().getReference();\r\n Query query=reference.child(getString(R.string.dbname_users))\r\n .orderByChild(getString(R.string.field_username))\r\n .equalTo(username);\r\n query.addListenerForSingleValueEvent(new ValueEventListener() {\r\n @Override\r\n public void onDataChange(DataSnapshot dataSnapshot) {\r\n\r\n for(DataSnapshot singleSnapshot:dataSnapshot.getChildren())\r\n {\r\n if(singleSnapshot.exists())\r\n {\r\n Log.d(TAG, \"checkIfUsernameExists: FOUND A MATCH \"+singleSnapshot.getValue(User.class));\r\n append=myRef.push().getKey().substring(3,10);\r\n Log.d(TAG, \"onDataChange: username alredy exists,appending random string to name\"+append);\r\n }\r\n }\r\n String mUsername;\r\n mUsername = username + append;\r\n\r\n //add new user account settings to the database\r\n firebaseMethods.addNewUser(email,mUsername,\"\",\"\",\"\");\r\n Toast.makeText(mContext,\"Signup succesfull : sending Verification Email\",Toast.LENGTH_SHORT).show();\r\n mAuth.signOut();//Log out\r\n\r\n }\r\n\r\n @Override\r\n public void onCancelled(DatabaseError databaseError) {\r\n\r\n }\r\n });\r\n\r\n }", "private void register() {\r\n if (mName.getText().length() == 0) {\r\n mName.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mEmail.getText().length() == 0) {\r\n mEmail.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() == 0) {\r\n mPassword.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() < 6) {\r\n mPassword.setError(\"password must have at least 6 characters\");\r\n return;\r\n }\r\n\r\n\r\n final String email = mEmail.getText().toString();\r\n final String password = mPassword.getText().toString();\r\n final String name = mName.getText().toString();\r\n\r\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password).addOnCompleteListener(getActivity(), new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n if (!task.isSuccessful()) {\r\n Snackbar.make(view.findViewById(R.id.layout), \"sign up error\", Snackbar.LENGTH_SHORT).show();\r\n } else {\r\n String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();\r\n\r\n //Saves the user's info in the database\r\n Map<String, Object> mNewUserMap = new HashMap<>();\r\n mNewUserMap.put(\"email\", email);\r\n mNewUserMap.put(\"name\", name);\r\n\r\n FirebaseDatabase.getInstance().getReference().child(\"users\").child(uid).updateChildren(mNewUserMap);\r\n }\r\n }\r\n });\r\n\r\n }", "@POST\n @Path(\"/users/register\")\n public Response register(\n @Context HttpServletRequest request \n ,@Context HttpServletResponse response\n ,@Context ServletContext servletContext\n ,String raw\n ){\n try{\n log.debug(\"/register called\");\n// String raw=IOUtils.toString(request.getInputStream());\n mjson.Json x=mjson.Json.read(raw);\n \n Database2 db=Database2.get();\n for (mjson.Json user:x.asJsonList()){\n String username=user.at(\"username\").asString();\n \n if (db.getUsers().containsKey(username))\n db.getUsers().remove(username); // remove so we can overwrite the user details\n \n Map<String, String> userInfo=new HashMap<String, String>();\n for(Entry<String, Object> e:user.asMap().entrySet())\n userInfo.put(e.getKey(), (String)e.getValue());\n \n userInfo.put(\"level\", LevelsUtil.get().getBaseLevel().getRight());\n userInfo.put(\"levelChanged\", new SimpleDateFormat(\"yyyy-MM-dd\").format(new Date()));// nextLevel.getRight());\n \n db.getUsers().put(username, userInfo);\n log.debug(\"New User Registered (via API): \"+Json.newObjectMapper(true).writeValueAsString(userInfo));\n db.getScoreCards().put(username, new HashMap<String, Integer>());\n \n db.addEvent(\"New User Registered (via API)\", username, \"\");\n }\n \n db.save();\n return Response.status(200).entity(\"{\\\"status\\\":\\\"DONE\\\"}\").build();\n }catch(IOException e){\n e.printStackTrace();\n return Response.status(500).entity(\"{\\\"status\\\":\\\"ERROR\\\",\\\"message\\\":\\\"\"+e.getMessage()+\"\\\"}\").build(); \n }\n \n }", "public String registration() {\n if (name != null) {\n int createdUsers = DBUtils.addUser(name, password, email);\n if (createdUsers > 0) {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/index?faces-redirect=true\";\n }\n }\n return \"/pages/register.xhtml?faces-redirect=true\";\n }", "boolean isUsernameExist(String username);", "@Test\n\tpublic void registerUserTest2() throws Exception {\n\t\tSignUpRequest signUpRequest = new SignUpRequest(\"Marko\", \"Troskot\", \"MTro\", \"marko@gotmail.com\", \"pass123\", \"pass123\");\n\n\t\tMockito.when(userService.existsByUsername(ArgumentMatchers.anyString())).thenReturn(true);\n\n\t\tmockMvc.perform(post(\"/api/auth/signup\").contentType(MediaType.APPLICATION_JSON).content(objectMapper.writeValueAsString(signUpRequest)).characterEncoding(\"UTF-8\"))\n\t\t\t\t.andDo(print()).andExpect(status().is(400)).andExpect(status().reason(usernameTaken));\n\t}", "private void attemptRegister() {\n if (mRegisterTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n mRePasswordView.setError(null);\n mNameView.setError(null);\n mSurnameView.setError(null);\n mUsernameView.setError(null);\n\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n String rePassword = mRePasswordView.getText().toString();\n String name = mNameView.getText().toString();\n String surname = mSurnameView.getText().toString();\n String username = mUsernameView.getText().toString();\n\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) &&!isPasswordValid(password, rePassword)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n } else if (!TextUtils.isEmpty(rePassword) &&!isPasswordMatch(password, rePassword)) {\n mRePasswordView.setError(getString(R.string.error_incorrect_password));\n focusView = mRePasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (TextUtils.isEmpty(name)) {\n mNameView.setError(getString(R.string.error_field_required));\n focusView = mNameView;\n cancel = true;\n }\n\n if (TextUtils.isEmpty(surname)) {\n mSurnameView.setError(getString(R.string.error_field_required));\n focusView = mSurnameView;\n cancel = true;\n }\n\n if (TextUtils.isEmpty(username)) {\n mUsernameView.setError(getString(R.string.error_field_required));\n focusView = mUsernameView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n String deviceId = Settings.Secure.getString(getApplicationContext().getContentResolver(),\n Settings.Secure.ANDROID_ID);\n\n if(deviceId == null)\n deviceId = \"oddDevice\";\n Log.d(\"Custom\" , deviceId);\n String gender = (String)mGender.getSelectedItem();\n String device = deviceId;\n mRegisterTask = new RegisterTask(email, password, name, surname, username, gender, device );\n\n mRegisterTask.execute((Void) null);\n }\n }", "public boolean checkUserName(TextField userName) {\n String userNameSQL = \"SELECT * FROM user WHERE user_name = ? \";\n ResultSet rsUser;\n boolean username_exists = false;\n\n\n try {\n\n PreparedStatement userPST = connection.prepareStatement(userNameSQL);\n userPST.setString(1, userName.getText());\n rsUser = userPST.executeQuery();\n\n if (rsUser.next()) {\n username_exists = true;\n outputText.setStyle(\"-fx-text-fill: #d33232\");\n outputText.setText(\"Username Already Exists\");\n }\n\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n\n return username_exists;\n\n }", "private void attemptRegister() {\n progressGenerator = new ProgressGenerator();\n\n // Reset errors.\n inputEmail.setError(null);\n inputPasswd.setError(null);\n\n // Store values at the time of the login attempt.\n String email = inputEmail.getText().toString();\n String password = inputPasswd.getText().toString();\n String confirmPassword = inputConfirmPasswd.getText().toString();\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n inputEmail.setError(getString(R.string.error_field_required));\n inputEmail.requestFocus();\n shake();\n return;\n } else if (!isEmailValid(email)) {\n inputEmail.setError(getString(R.string.error_invalid_email));\n inputEmail.requestFocus();\n shake();\n return;\n }\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password) || !isPasswordValid(password)) {\n inputPasswd.setError(getString(R.string.error_invalid_password));\n inputPasswd.requestFocus();\n shake();\n return;\n }\n\n // Check if passwords match\n if (!confirmPassword.equals(password)) {\n inputConfirmPasswd.setError(getString(R.string.error_password_does_not_match));\n inputConfirmPasswd.requestFocus();\n shake();\n return;\n }\n\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n isRegistering = true;\n btnRegister.requestFocus();\n\n progressGenerator.start(btnRegister);\n btnRegister.setEnabled(false);\n inputEmail.setEnabled(false);\n inputPasswd.setEnabled(false);\n inputConfirmPasswd.setEnabled(false);\n\n LoginAgent.getInstance().registerInBackground(email, password);\n }", "@RequestMapping(value = \"register_new_customer\", method = { RequestMethod.POST })\n\tpublic void registerNewUser(@RequestParam(\"username\") String username, @RequestParam(\"password\") String password,\n\t\t\t\t\t\t\t\t@RequestParam(\"firstName\") String firstName, @RequestParam(\"lastName\") String lastName,\n\t\t\t\t\t\t\t\tHttpServletResponse response) {\n\t\tSystem.out.println(username + \" \" + password + \" \" + lastName + \" \" + firstName);\n\n\t\ttry {\n\t\t\t// In case the user already exist, show error to the user\n\t\t\tif (isExistUser(username)) {\n\t\t\t\tHttpStatus status = HttpStatus.CONFLICT;\n\t\t\t\tresponse.setStatus(status.value());\n\t\t\t} else {\n\t\t\t\t// Create Mongo client\n\t\t\t\tMongoClient mongoClient = new MongoClient(\"localhost\", 27017);\n\t\t\t\tMongoDatabase db = mongoClient.getDatabase(\"projectDB\");\n\n\t\t\t\t// Create Users collection\n\t\t\t\tMongoCollection<Document> collection = db.getCollection(\"USERS\");\n\n\t\t\t\t// Create user document and add to users collection\n\t\t\t\tDocument document = new Document(\"username\", username).append(\"password\", password)\n\t\t\t\t\t\t.append(\"firstName\", firstName).append(\"lastName\", lastName)\n\t\t\t\t\t\t.append(\"RegistrationDate\", new Date());\n\t\t\t\tcollection.insertOne(document);\n\t\t\t\tSystem.out.println(\"Document inserted successfully\");\n\n\t\t\t\t//Close DB connection and send OK message to the user\n\t\t\t\tmongoClient.close();\n\t\t\t\tHttpStatus status = HttpStatus.OK;\n\t\t\t\tresponse.setStatus(status.value());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\tHttpStatus status = HttpStatus.CONFLICT;\n\t\t\tresponse.setStatus(status.value());\n\t\t}\n\n\t}", "public boolean existsUser(String username);", "public boolean createUser() {\r\n\t\tboolean signupSuccess = false;\r\n\t\t/**\r\n\t\t*\tSince connecting to database (DbConnection()) and retrieving data (fetchSelectAllUsers())\r\n\t\t* throw SQLException and throwing an exception from multiple levels again and again is not\r\n\t\t*\ta good way, so its is needed to catch the exception here.\r\n\t\t*/\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tCreate a connection to the database\r\n\t\t\t*/\r\n\t\t\tDbConnection signupConn = new DbConnection();\r\n\t\t\t/**\r\n\t\t\t*\tinsert data into table\r\n\t\t\t*/\r\n\t\t\tsignupSuccess = signupConn.executeInsertIntoUsers(uName, password, fullName, phone, email);\r\n\r\n\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSystem.out.println(\"**************Error Connecting to the Database**************\");\r\n\t\t\tSqlExcep.printStackTrace();\r\n\t\t} catch (ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\t//validateConn.closeDbConnection();\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t\treturn signupSuccess;\r\n\t}", "@Override\r\n\tpublic boolean registerSuperUser(String username, String password, String firstName, String lastName) {\n\t\tSuperUser tempSuperUser = new SuperUser(username, password, firstName, lastName);\r\n\t\t\r\n\t\treturn sudao.createSuperUser(tempSuperUser);\r\n\t}", "@PostMapping(\"/signup\")\n public ResponseEntity<?> registerUser(@Valid @RequestBody SignupRequest signupRequest) {\n System.out.println(\"Creating User \" + signupRequest);\n\n if (userAccountDetailsService.isUserExistByUsername(signupRequest.getUsername())) {\n System.out.println(\"A User with username: \" + signupRequest.getUsername() + \" already exist\");\n return new ResponseEntity<Void>(HttpStatus.CONFLICT);\n }\n\n UserAccount userAccount = new UserAccount();\n userAccount.setName(signupRequest.getName());\n userAccount.setUsername(signupRequest.getUsername());\n userAccount.setAge(signupRequest.getAge());\n userAccount.setPassword(passwordEncoder.encode(signupRequest.getPassword()));\n\n Set<String> roles = signupRequest.getRole();\n Set<Authorities> authorities = new HashSet<>();\n for(String role: roles) {\n Authorities authority = new Authorities();\n authority.setAuthority(role);\n authority.setUserAccount(userAccount);\n authorities.add(authority);\n }\n userAccount.setAuthorities(authorities);\n\n userAccountDetailsService.saveUser(userAccount);\n\n return new ResponseEntity<Void>(HttpStatus.CREATED);\n }", "@Test\n public void testUserCanBeRegistered() {\n assert username.length() > 3 && username.length() < 16;\n registerUser(username, password);\n assertNotNull(userService.getUser(username));\n }", "public boolean validateUsernameExist(String username) {\n return userRepository.findUsername(username);\n }", "public AppUser register(AppUser newUser) {\n\n if (!isUserValid(newUser)) {\n System.out.println(\"Invalid user data provided!\");\n throw new InvalidRequestException(\"Invalid user data provided!\");\n }\n\n if (userRepo.findUserByUsername(newUser.getUsername()) != null) {\n System.out.println(\"Provided username is already taken!\");\n throw new ResourcePersistenceException(\"Provided username is already taken!\");\n }\n\n if (userRepo.findUserByEmail(newUser.getEmail()) != null) {\n System.out.println(\"Provided username is already taken!\");\n throw new ResourcePersistenceException(\"Provided username is already taken!\");\n }\n\n return userRepo.save(newUser);\n\n }", "@Override\n public User signUpUser(String name, String username, String password, String email) throws UsernameExistsException {\n User u = new User(name, username, password, email);\n if (userDataMapper.getUserByUserName(username) != null)\n throw new UsernameExistsException();\n userDataMapper.add(u);\n return u;\n }", "boolean createAccount(String username,String email,String password){\n boolean isEmailExist = checkEmailExist(email);\n boolean isnewUser = false;\n if(isEmailExist){\n System.out.println(\"email already exists\");\n }\n else{\n if(email !=\"\" && email !=null && username !=\"\" && username !=null && password !=\"\" && password !=null){\n try{\n stmt = con.prepareStatement(\"INSERT INTO users(name,email,password) VALUES(?,?,?)\");\n stmt.setString(1,username);\n stmt.setString(2,email);\n stmt.setString(3,password);\n stmt.executeUpdate();\n isnewUser = true;\n }\n catch(Exception e){\n e.printStackTrace();\n }\n finally{\n closeConnection();\n }\n }\n else{\n System.out.println(\"Please check the value\");\n }\n }\n return isnewUser;\n }", "boolean register(String nickname, String password) {\n try {\n User user = new User(nickname, password);\n return this.append(user);\n } catch (IllegalArgumentException e) {\n return false;\n }\n }", "@Override\n\tpublic boolean register(User user) {\n\t\tboolean flag = false;\n\t\tList<User> list = this.userDao.findAll(\"and userName = ?\", user.getUserName());\n\t\t//System.out.println(list.size());\n\t\tif(list.size() <= 0){\n\t\t\tthis.userDao.register(user);\n\t\t\tflag = true;\n\t\t}\n\t\treturn flag;\n\t}", "Boolean checkUserExists(String userName) throws AppException;", "private void register(String username,String password){\n\n }", "@Test(expected = UserAlreadyExists.class)\n public void registryUserExists() throws Exception {\n\n User user_expected = new User();\n user_expected.setId(1L);\n user_expected.setName(\"nametest\");\n user_expected.setLast_name(\"lastnametest\");\n user_expected.setUsername(\"usernametest\");\n user_expected.setPassword(\"a7574a42198b7d7eee2c037703a0b95558f195457908d6975e681e2055fd5eb9\");\n\n given(userRepository.findByUsername(anyString())).willReturn(Optional.of(user_expected));\n\n User user_saved = userServiceImpl.registryUser(this.user);\n\n }", "private void attemptRegistration() {\n emailView.setError(null);\n passwordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = emailView.getText().toString();\n String password = passwordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password) || !isPasswordValid(password)) {\n passwordView.setError(getString(R.string.error_invalid_password));\n focusView = passwordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n emailView.setError(getString(R.string.error_field_required));\n focusView = emailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n emailView.setError(getString(R.string.error_invalid_email));\n focusView = emailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n createFirebaseUser();\n\n }\n }", "void ensureUserCreationAllowed(String email, String userName) throws BadRequestException, ConflictException, ServerException;", "public void register(User user) {\n\t\tboolean exists = false ;\n\t\tfor ( User currentUser : users )\n\t\t\tif ( currentUser.getId().equals(user.getId()) )\n\t\t\t\texists = true ;\n\t\tif ( !exists ) {\n\t\t\taddUser(user) ;\n\t\t\tSystem.out.println(\"[USER CREATED]\") ;\n\t\t\tSystem.out.println() ;\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"[INVALID ACTION] User Already Exists\") ;\n\t\t\tSystem.out.println() ;\n\t\t}\n\t}", "public boolean registerUser(String username, String password) throws SQLException {\n String user_row = String.format(\"INSERT INTO %s (%s, %s) VALUES (?, ?)\",\n table_users.name, table_users.cols.username, table_users.cols.hash_pw);\n //Encrypt password\n String salt = BCrypt.gensalt(FHALF_LENGTH, new SecureRandom());\n StringBuilder hash_pw = new StringBuilder(BCrypt.hashpw(password, salt));\n\n //Move second half of salt to end of string\n String lHalf = hash_pw.substring(FHALF_LENGTH, SALT_LENGTH);\n hash_pw.replace(FHALF_LENGTH, SALT_LENGTH, \"\");\n hash_pw.append(lHalf);\n\n //Set parameters\n PreparedStatement prepStmnt = con.prepareStatement(user_row);\n prepStmnt.setString(1, username);\n prepStmnt.setString(2, hash_pw.toString());\n int user_cols_changed = prepStmnt.executeUpdate();\n \n //Retrieve user id (FUCK)\n String retrieve = String.format(\"SELECT * FROM %s WHERE %s = ?\", table_users.name, table_users.cols.username);\n PreparedStatement stmnt = con.prepareStatement(retrieve);\n stmnt.setString(1, username);\n ResultSet curr_user = stmnt.executeQuery();\n curr_user.next();\n int id = curr_user.getInt(table_users.cols.id);\n \n //Insert row for user avatar info\n String avatar_row = String.format(\"INSERT INTO %s (%s) VALUES (?)\", table_avatars.name, table_avatars.cols.id);\n PreparedStatement avatar = con.prepareStatement(avatar_row);\n avatar.setInt(1, id);\n int avatar_cols_changed = avatar.executeUpdate();\n \n return user_cols_changed != 0 && avatar_cols_changed != 0;\n }", "@Override\n\tpublic boolean user_register_samenametest(Map<String, Object> reqs) {\n\t\tString sql=\"select userName from tp_users where userName=:userName\";\n\t\tif(joaSimpleDao.count(sql, reqs)==1 )\n\t\t{\t\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\t\n\t}", "public void register(View view) {\n if(radioGroup.getCheckedRadioButtonId() == -1){\n Snackbar.make(getCurrentFocus(),\"Please select one of the Options: Student or Professor\",Snackbar.LENGTH_LONG).show();\n return;\n }\n if (usn.getText().toString().trim().equals(\"\")){\n usn.setError(\"This field cannot be empty\");\n return;\n } else if (password.getText().toString().trim().equals(\"\")){\n password.setError(\"This field cannot be empty\");\n return;\n } else if(password.getText().toString().trim().length() < 8){\n password.setError(\"Password too short.\");\n return;\n } else if(confirmPassword.getText().toString().trim().equals(\"\")){\n confirmPassword.setError(\"This field cannot be empty\");\n return;\n } else if(!(password.getText().toString().trim()\n .equals(confirmPassword.getText().toString().trim()))){\n password.setError(\"Passwords do not match\");\n confirmPassword.setError(\"Passwords do not match\");\n return;\n }\n progressBar.setVisibility(View.VISIBLE);\n mAuth.signInAnonymously().addOnSuccessListener(authResult -> myRef.child(usn.getText().toString().trim()).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n try {\n String username = dataSnapshot.child(\"emailId\").getValue().toString();\n String password = confirmPassword.getText().toString().trim();\n System.out.println(username);\n mAuth.createUserWithEmailAndPassword(username,password)\n .addOnCompleteListener(RegisterActivity.this,task -> {\n Log.d(\"TAG\",\"Created User:\"+task.isSuccessful());\n if(!task.isSuccessful()){\n Toast.makeText(RegisterActivity.this, \"Error occurred.\" +\n \" Could not create user. Please \" +\n \"check your internet connection\", Toast.LENGTH_LONG).show();\n return;\n }\n else {\n startActivity(new Intent(RegisterActivity.this,LoginActivity.class));\n finish();\n }\n });\n\n }catch (NullPointerException e){\n usn.setError(\"Invalid USN. Please check your input or contact\" +\n \" your department for help\");\n progressBar.setVisibility(View.INVISIBLE);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n }))\n .addOnFailureListener(e -> {\n progressBar.setVisibility(View.INVISIBLE);\n Snackbar.make(view,\"Something went wrong.Please check if you have an internet connection or that the details\" +\n \"entered are valid\",Snackbar.LENGTH_LONG).show();\n });\n }", "public static void registerAccount(User user, String username, String password) {\n logMessage(LOGLEVEL_NORMAL, \"Handling account registration from \" + user.getNick() + \".\");\n // Query to check if the username already exists \n\n byte[] salt;\n byte encPassword[];\n try {\n salt = PasswordEncryptionService.generateSalt();\n encPassword = PasswordEncryptionService.getEncryptedPassword(password, salt);\n } catch (NoSuchAlgorithmException | InvalidKeySpecException ex) {\n java.util.logging.Logger.getLogger(MySQL.class.getName()).log(Level.SEVERE, null, ex);\n return;\n }\n String sender = user.getNick();\n\n String checkQuery = \"SELECT `username` FROM \" + mysql_db + \".`login` WHERE `username` = ?\";\n\n // Query to add entry to database\n String executeQuery = \"INSERT INTO \" + mysql_db + \".`login` ( `username`, `password`, `salt`, `level`, `activated`, `server_limit`, `remember_token` ) VALUES ( ?, ?, ?, 1, 1, 4, null )\";\n try (Connection con = getConnection(); PreparedStatement cs = con.prepareStatement(checkQuery); PreparedStatement xs = con.prepareStatement(executeQuery)) {\n // Query and check if see if the username exists\n cs.setString(1, username);\n ResultSet r = cs.executeQuery();\n\n // The username already exists!\n if (r.next()) {\n bot.blockingIRCMessage(sender, \"Account already exists!\");\n } else {\n // Store username, encrypted password and salt\n xs.setString(1, username);\n xs.setBytes(2, encPassword);\n xs.setBytes(3, salt);\n if (xs.executeUpdate() == 1) {\n bot.blockingIRCMessage(sender, \"Account created! Your username is \" + username + \" and your password is \" + password);\n } else {\n bot.blockingIRCMessage(sender, \"There was an error registering your account.\");\n }\n }\n } catch (SQLException e) {\n logMessage(LOGLEVEL_IMPORTANT, \"ERROR: SQL_ERROR in 'registerAccount()'\");\n\n bot.blockingIRCMessage(sender, \"There was an error registering your account.\");\n }\n }", "private void registerUser(){\r\n String E = Email.getText().toString().trim();\r\n String P = Password.getText().toString().trim();\r\n\r\n //if email is empty then give error\r\n if(E.isEmpty()){\r\n Email.setError(\"Email is required\");\r\n Email.requestFocus();\r\n return;\r\n }\r\n\r\n //if email is not an email format give error\r\n if(!Patterns.EMAIL_ADDRESS.matcher(E).matches()){\r\n Email.setError(\"Please enter a valid email\");\r\n Email.requestFocus();\r\n return;\r\n }\r\n //if password is empty then give error\r\n if(P.isEmpty()){\r\n Password.setError(\"Password is required\");\r\n Password.requestFocus();\r\n return;\r\n }\r\n //if password is less then 6 characters, give error.\r\n if(P.length()< 6){\r\n Password.setError(\"Minimum Password length has to be 6 or more characters\");\r\n Password.requestFocus();\r\n return;\r\n }\r\n //Calls the firebase method to create a new user.\r\n mAuth.createUserWithEmailAndPassword(E, P).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n if(task.isSuccessful()){\r\n Toast.makeText(getApplicationContext(),\"User register Sucessfully\",Toast.LENGTH_SHORT).show();\r\n }\r\n }\r\n });\r\n }", "void registerNewUser(String login, String name, String password, String matchingPassword,\n String email);", "void handle_signup(LinkedList<Object> args) {\n try {\n String user = (String) args.get(1);\n String passwd = (String) args.get(2);\n\n PreparedStatement pst =\n con.prepareStatement(\"SELECT id FROM users WHERE username=?\");\n pst.setString(1, user);\n rsl = pst.executeQuery();\n if(rsl.next()) { //查询到结果表明该用户已经存在\n args.set(1, \"no\");\n args.set(2, \"该用户名已经注册\");\n return;\n }\n pst = con.prepareStatement(\"INSERT INTO users\" +\n \"(username, password) VALUES (?,?)\");\n pst.setString(1, user);\n pst.setString(2, passwd);\n pst.executeUpdate();\n args.set(1, \"yes\");\n System.out.println(\"New user signup:\" + user);\n } catch (Exception e) {\n e.printStackTrace();\n args.set(1, \"no\");\n args.set(2, e.toString());\n }\n }", "public static String createUsername() {\r\n\t\tboolean complete = false;\r\n\t\tString username = \"\";\r\n\t\t\r\n\t\twhile(complete == false) {\r\n\t\t\tSystem.out.println(\"Please type a username (no spaces):\");\r\n\t\t\tusername = scan.nextLine();\r\n\t\t\t//us.checkExit(username);\r\n\t\t\t\r\n\t\t\tif(us.checkUniqueUsername(username) == false) {\r\n\t\t\t\tSystem.out.println(\"Username is taken, try again, partner.\");\r\n\t\t\t\tcontinue;\r\n\t\t\t} else if(username.contains(\" \")) {\r\n\t\t\t\tSystem.out.println(\"Invalid username - contains space(s)\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tcomplete = true;\r\n\t\t}//While1\r\n\t\t\r\n\t\treturn username;\r\n\t}", "public void add (User u) throws InvalidUsernameException{\n\t\tfor (User users: realm.getUsers()){\n\t\t\tif(u.getIdentifier().equalsIgnoreCase(users.getIdentifier()))\n\t\t\t\tthrow new InvalidUsernameException(\"Username Duplicato:\" + u.getIdentifier());\n\t\t\t}\n\t\trealm.getUsers().add(u);\n\n\t}", "@Test\n public void testRegisterUser() throws AuthenticationException, IllegalAccessException {\n facade.registerUser(\"fiske\", \"JuiceIsLoose123/\");\n assertEquals(\"fiske\", facade.getVeryfiedUser(\"fiske\", \"JuiceIsLoose123/\").getUserName(), \"Expects user exist after register\");\n }", "@FXML protected void handleSignUpButtonAction() {\n \tboolean bexit = false;\n \tif(passwordField.getText().equals(passwordField2.getText()))\n \t{\n \t\t\n \t\tString signUpUsername = username.getText();\n \t\tString signUpPassword = passwordField.getText();\n \t\t\n if(username.getText().toString().length() >= 6 && passwordField.getText().toString().length() >= 6)\n {\n\t \t\tUser user = new User(signUpUsername, \"Unknown\", null, \"Unknown\", signUpPassword);\n\t \t\t\n\t \t\ttry {\n\t\t\t\t\tuser = client.createUser(user);\n\t \t\t\n\t \t\t} catch (WebApplicationException e) {\n\t \t\t\tLOGGER.log(Level.SEVERE, e.toString(), e);\n\t \t\t\tif (e.getResponse().getStatus() == 409) {\n\t \t\t\t\tactiontarget.setText(\"Sign up error: Username already exists\");\n\t \t\t\t} else {\n\t \t\t\t\t\n\t \t\t\t}\n\t \t\t\t\n\t \t\t} catch (JsonProcessingException e) {\n\t \t\t\tLOGGER.log(Level.SEVERE, e.toString(), e);\n\t\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLOGGER.log(Level.SEVERE, e.toString(), e);\n\t\t\t\t}\n\t \t\t\n\t \t\t// Go back to Login view\n\t \t\t\n\t \t\tLoginVistaNavigator.loadVista(LoginVistaNavigator.LOGIN);\n }\n else\n {\n \tactiontarget.setText(\"username/password \\nlength must be 6 number\");\n }\n \t}\n \telse\n \t{\n \t\tactiontarget.setText(\"password not consistent.\");\n \t}\n }", "private boolean checkUsername() {\n if(getUsername.getText().compareTo(\"\") != 0) { return true; }\n else {\n errorMessage.setText(\"Please enter a username.\");\n return false;\n }\n }", "private boolean IsUserExist(){\n SignupUser user =roomDB.dao().GetUserData(et_user.getText().toString());\n if(user!=null){\n if(!user.getEmail().isEmpty()){\n Toast.makeText(this, \"User is already registered!\", Toast.LENGTH_SHORT).show();\n return true;\n }\n\n }\n return false;\n }", "public boolean register(String name, Date birthday, int phone, String username, String password) {\n\t\tif (!userCatalog.isUser(username)) {\n\t\t\tUsuario user = new Usuario(name, birthday, phone, username, password);\n\t\t\tif (userCatalog.addUser(user))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "void checkUserName() {\n usernameChecked = false;\n signInUpController.checkUserName(userNameText.getText().toString(), new OnTaskListeners.Bool() {\n @Override\n public void onSuccess(Boolean result) {\n usernameChecked = true;\n if (result)\n uniqueUsername = false;\n else\n uniqueUsername = true;\n\n\n }\n });\n }", "private void logic_for_username() {\n userID = SCUtils.getUniqueID(getApplicationContext());\n databaseRef.child(\"users\").child(userID).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override public void onDataChange(DataSnapshot dataSnapshot) {\n progressBar.setVisibility(View.GONE);\n if (!dataSnapshot.exists()) {\n show_alert_username();\n } else {\n username = dataSnapshot.getValue(String.class);\n Snackbar.make(findViewById(android.R.id.content), \"Logged in as \" + username, Snackbar.LENGTH_SHORT).show();\n }\n }\n\n @Override public void onCancelled(DatabaseError databaseError) {\n Log.w(\"!!!\", \"username:onCancelled\", databaseError.toException());\n }\n });\n }", "@RequestMapping(value = { \"/new\" }, method = RequestMethod.POST)\r\n public String saveUser(@Valid User user, BindingResult result,\r\n ModelMap model) {\r\n if (result.hasErrors()) {\r\n return \"registration\";\r\n }\r\n\r\n // Preferred way to achieve uniqueness of field [loginID] should be implementing custom @Unique annotation\r\n // and applying it on field [loginID] of Model class [User].Below mentioned peace of code [if block] is\r\n // to demonstrate that you can fill custom errors outside the validation\r\n // framework as well while still using internationalised messages.\r\n\r\n if(!service.isLoginIDUnique(user.getId(), user.getLoginID())){\r\n FieldError loginIDError =new FieldError(\"user\",\"loginID\",messageSource.getMessage(\"non.unique.loginID\", new String[]{user.getLoginID()}, Locale.getDefault()));\r\n result.addError(loginIDError);\r\n return \"registration\";\r\n }\r\n\r\n service.saveUser(user);\r\n model.addAttribute(\"success\", \"user \" + user.getLoginID() + \" registered successfully\");\r\n return \"success\";\r\n }", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "public void RegisterUser() {\n try {\n reg = new Registration();\n reg.setFirstName(FName);\n reg.setLastName(LName);\n reg.setCompanyName(CompanyName);\n reg.setEmail(Email);\n reg.setMobile(mobile);\n ValidateRegistration validator = new ValidateRegistration();\n boolean legitmail = validator.validateEmail(reg);\n if ( legitmail == false ) {\n System.out.println(\"Not a legitimate Email\");\n FacesContext c = FacesContext.getCurrentInstance();\n FacesMessage m = new FacesMessage(\"Invalid Email\", \"The email provided is not correct\");\n c.addMessage(null, m);\n } else {\n FacesContext c = FacesContext.getCurrentInstance();\n c.getApplication().getNavigationHandler().handleNavigation(c, null, \"mainpage.xhtml\");\n }\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "private void register() {\n RegisterModel registerModel = new RegisterModel(edtEmail.getText().toString(),\n edtPaswd.getText().toString(),\n edtDisplayName.getText().toString());\n\n Response.Listener<RegisterApiResponse> responseListener = new Response.Listener<RegisterApiResponse>() {\n @Override\n public void onResponse(RegisterApiResponse response) {\n if (response.isSuccess()) login();\n }\n };\n\n Response.ErrorListener errorListener = new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n progressDialog.cancel();\n if (error != null) {\n String errorMsg = \"An error occurred\";\n String err = (error.getMessage() == null) ? errorMsg : error.getMessage();\n Log.d(TAG, err);\n error.printStackTrace();\n\n if (err.matches(AppConstants.CONNECTION_ERROR) || err.matches(AppConstants.TIMEOUT_ERROR)) {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(RegisterActivity.this);\n alertDialog.setTitle(getString(R.string.error_title_signup));\n alertDialog.setMessage(getString(R.string.error_message_network)).setCancelable(false)\n .setPositiveButton(getString(R.string.dialog_ok), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n alertDialog.show();\n } else if (err.matches(\".*Duplicate entry .* for key 'name_UNIQUE'.*\")) {\n edtDisplayName.setError(\"username taken\");\n edtDisplayName.requestFocus();\n } else if (err.matches(\".*The email has already been taken.*\")) {\n edtEmail.setError(\"email taken\");\n edtEmail.requestFocus();\n } else {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(RegisterActivity.this);\n alertDialog.setTitle(getString(R.string.error_title_signup));\n alertDialog.setMessage(getString(R.string.error_message_network)).setCancelable(false)\n .setPositiveButton(getString(R.string.dialog_ok), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n alertDialog.show();\n }\n }\n }\n };\n\n\n progressDialog.setMessage(getString(R.string.progress_dialog_message_login));\n RegistrationRequests registerRequest =\n RegistrationRequests.register(this, registerModel, responseListener, errorListener);\n VolleyRequest.getInstance(this.getApplicationContext()).addToRequestQueue(registerRequest);\n progressDialog.show();\n }", "@Override\n\tpublic boolean registeringUser(UserDetails userDetails) {\n\t\tfor (UserDetails ud : Repository.USER_DETAILS) {\n\t\t\tif ((ud.getEmailId()).equalsIgnoreCase(userDetails.getEmailId())) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tRepository.USER_DETAILS.add(userDetails);\n\t\treturn true;\n\t}", "public void validateUserName(FacesContext context, UIComponent validate, Object value){\n\t\tcheckHibernateAnnotations(context, validate, value);\t\t\t\t\n\t\tString username=(String)value;\n\t\tif (!isUsernameAvailable(username)) {\n\t\t\tFacesMessage msg = new FacesMessage(\"ice username already taken\");\n\t\t\tcontext.addMessage(validate.getClientId(context), msg);\n\t\t\tusernameValid=false;\n\t\t}else usernameValid=true;\n\t}", "String registerUser(User user);", "public boolean checkUsername(String user) {\n\n }", "private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}", "void signUpAttempt(String email, String password, String firstName, String lastName);", "public boolean createNewUser(String username){\n boolean isCreated=false;\n try{\n\n database = dbH.getWritableDatabase();\n dbH.openDataBase();\n database.execSQL(\"INSERT INTO CurrentUser (Username) VALUES ('\" + username + \"');\");\n isCreated=true;\n dbH.close();\n }\n catch (SQLException e){\n }\n return isCreated;\n }", "public void attemptRegister() throws IOException, ClassNotFoundException {\n\t\t// Reset errors.\n\t\t//mEmailView.setError(null);\n\t\t//mPasswordView.setError(null);\n\n\t\t// Reset errors.\n\t\tmFullNameView.setError(null);\t\t\n\t\tmEmailView.setError(null);\n\t\tmPasswordView.setError(null);\n\t\tLog.d(\"Rafa\",\"En el register .... \");\n\t\t\n\t\t// Store values at the time of the login attempt.\n\t\tmFullName = mFullNameView.getText().toString();\n\t\tmEmail = mEmailView.getText().toString();\n\t\tmPassword = mPasswordView.getText().toString();\n\n\t\tboolean cancel = false;\n\t\tView focusView = null;\n\n\t\tLog.d(\"Rafa\",\"En el register ... FullName \");\t\t\n\t\t// Check for a valid password.\n\t\tif (TextUtils.isEmpty(mFullName)) {\n\t\t\tmFullNameView.setError(getString(R.string.error_field_required));\n\t\t\tfocusView = mFullNameView;\n\t\t\tcancel = true;\n\t\t} else if (mFullName.length() < 4) {\n\t\t\tmFullNameView.setError(getString(R.string.error_invalid_password));\n\t\t\tfocusView = mFullNameView;\n\t\t\tcancel = true;\n\t\t}\n\n\t\tLog.d(\"Rafa\",\"En el register ... Email \");\t\t\n\t\t// Check for a valid email address.\n\t\tif (TextUtils.isEmpty(mEmail)) {\n\t\t\tmEmailView.setError(getString(R.string.error_field_required));\n\t\t\tfocusView = mEmailView;\n\t\t\tcancel = true;\n/*\t\t} else if (!mEmail.contains(\"preventa\")) {\n\t\t\tmEmailView.setError(getString(R.string.error_invalid_email));\n\t\t\tfocusView = mEmailView;\n\t\t\tcancel = true;\n*/\t\t\t\n\t\t}\t\t\n\t\t\n\t\tLog.d(\"Rafa\",\"En el register ... Password \");\n\t\t// Check for a valid password.\n\t\tif (TextUtils.isEmpty(mPassword)) {\n\t\t\tmPasswordView.setError(getString(R.string.error_field_required));\n\t\t\tfocusView = mPasswordView;\n\t\t\tcancel = true;\n\t\t} else if (mPassword.length() < 4) {\n\t\t\tmPasswordView.setError(getString(R.string.error_invalid_password));\n\t\t\tfocusView = mPasswordView;\n\t\t\tcancel = true;\n\t\t}\n\n\t\t\n\t\tLog.d(\"Rafa\",\"pasa x aquí ... \" + mFullName + \"-\" + mEmail + \"-\" + mPassword);\n\t\t\n\t\tClass.forName(\"org.postgresql.Driver\");\n\t\tString url;\n\t\turl = \"jdbc:postgresql://192.168.4.20:5432/\" +\n\t\t\t\t\"curso\" +\n\t\t\t\t\"?sslfactory=org.postgresql.ssl.NonValidatingFactory\"; // +\n\t\t\t\t//\"&ssl=true\";\n\t\t\n\t\tConnection conn;\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(url,\"postgres\",\"\");\n\t\t\tPreparedStatement is = conn.prepareStatement(\n\t\t\t\t\t\"INSERT INTO registro (nombre_completo, ecorreo, password) VALUES (?, ?, ?);\");\n\t\t\t\n\t\t\tis.setString(1,mFullName);\n\t\t\tis.setString(2,mEmail);\n\t\t\tis.setString(3,mPassword);\n\t\t\t\n\t\t\tint rows = is.executeUpdate();\n\t\t\tis.close();\n\t\t\t\n\t\t\tLog.d(\"Rafa\",\"rows <\" + rows + \">\");\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tLog.d(\"Rafa\",\"SQLException \" + e.getErrorCode() + \"-\" + e.getCause() + \"-\" + e.getLocalizedMessage() + \"-\" + e.getMessage() );\t\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t\t\n\t\tif (cancel) {\n\t\t\t// There was an error; don't attempt login and focus the first\n\t\t\t// form field with an error.\n\t\t\tfocusView.requestFocus();\n\t\t} else {\n\t\t\t// Show a progress spinner, and kick off a background task to\n\t\t\t// perform the user login attempt.\n\t\t\t//mLoginStatusMessageView.setText(R.string.login_progress_signing_in);\n\t\t\tToast.makeText(getApplicationContext(), \"Registrando:\" + mFullName + \"-\" + mEmail + \"-\" + mPassword , Toast.LENGTH_LONG).show();\t\t\t\n\t\t}\n\t}" ]
[ "0.7306077", "0.7289922", "0.7271935", "0.72608507", "0.7203289", "0.7172631", "0.71630937", "0.7146348", "0.71456695", "0.71432495", "0.71395624", "0.7063931", "0.7057244", "0.7016946", "0.6967993", "0.68778265", "0.68603426", "0.6819788", "0.6814395", "0.68035287", "0.6802352", "0.6798725", "0.6765864", "0.6762591", "0.675417", "0.6750528", "0.6735982", "0.67169076", "0.67147315", "0.67095566", "0.6705523", "0.6692191", "0.66863817", "0.66848403", "0.668257", "0.6677961", "0.66730666", "0.66651523", "0.66597533", "0.66569626", "0.6656129", "0.66541857", "0.6645028", "0.664394", "0.6619743", "0.6618767", "0.6590592", "0.65761286", "0.65683615", "0.65649974", "0.6558337", "0.6540105", "0.65361655", "0.6535708", "0.653442", "0.653365", "0.6529108", "0.6528967", "0.6505315", "0.65048313", "0.6502883", "0.6502602", "0.6499704", "0.64993256", "0.6497773", "0.64940625", "0.6490427", "0.6489321", "0.6470129", "0.64641756", "0.6460144", "0.64531565", "0.64505213", "0.6443114", "0.6431478", "0.6429982", "0.64272904", "0.642264", "0.6411382", "0.6410641", "0.64094096", "0.63993514", "0.6396998", "0.63940156", "0.638914", "0.638051", "0.638051", "0.638051", "0.638051", "0.638051", "0.638051", "0.6378583", "0.63779896", "0.63776344", "0.6371387", "0.63686985", "0.63638663", "0.6360241", "0.63487405", "0.63441", "0.63385874" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { EditText emailText = (EditText)findViewById(R.id.reg_email); EditText firstNameText = (EditText)findViewById(R.id.reg_first_name); EditText lastNameText = (EditText)findViewById(R.id.reg_last_name); EditText userNameText = (EditText)findViewById(R.id.reg_username); EditText passwordText = (EditText)findViewById(R.id.reg_password); EditText phoneNumberText = (EditText)findViewById(R.id.reg_phone); register(firstNameText.getText().toString(), lastNameText.getText().toString(), userNameText.getText().toString(), passwordText.getText().toString(), emailText.getText().toString(), phoneNumberText.getText().toString()); }
{ "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
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.register, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.7904451", "0.78051436", "0.7766031", "0.77275425", "0.76321447", "0.7622237", "0.7584132", "0.7530231", "0.74875915", "0.7457484", "0.7457484", "0.7438372", "0.74221927", "0.7403421", "0.73915446", "0.738672", "0.7378976", "0.73701847", "0.7362139", "0.73556066", "0.7345311", "0.7341246", "0.7329451", "0.73279107", "0.7325488", "0.7318634", "0.73164856", "0.7313308", "0.7303783", "0.7303783", "0.7301652", "0.7297955", "0.7292932", "0.7286313", "0.72830737", "0.7280859", "0.727834", "0.72597456", "0.72596186", "0.72596186", "0.72596186", "0.7259111", "0.7249526", "0.72248167", "0.7219158", "0.72167176", "0.7204139", "0.72014624", "0.71993005", "0.71924645", "0.71849", "0.71768457", "0.7168308", "0.71671957", "0.71536094", "0.715337", "0.71353173", "0.713472", "0.713472", "0.71290565", "0.7129024", "0.7123704", "0.7122923", "0.7122913", "0.7121943", "0.71171355", "0.71171355", "0.71171355", "0.71171355", "0.7116945", "0.711672", "0.71161616", "0.71146005", "0.71121126", "0.7109434", "0.7108666", "0.71054304", "0.70990217", "0.7097671", "0.7095598", "0.709356", "0.709356", "0.70860773", "0.7082932", "0.7080972", "0.7080077", "0.7073454", "0.7068142", "0.70615613", "0.70599645", "0.70596546", "0.7051331", "0.70375246", "0.70375246", "0.7035565", "0.70352775", "0.70352775", "0.7031692", "0.7030686", "0.7029318", "0.70186836" ]
0.0
-1
TODO Autogenerated method stub
@Override public void updateisdel(String[] ids, String oper) { modelDao.updateisdel(ids, oper); }
{ "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 Pager findByPager(Pager pager,HashMap<String, String> map, String id) { return modelDao.findByPager(pager,map,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
This is the default constructor (do not remove)
public DetailVORowImpl() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "private Instantiation(){}", "public PSRelation()\n {\n }", "defaultConstructor(){}", "public Orbiter() {\n }", "public Pitonyak_09_02() {\r\n }", "public CSSTidier() {\n\t}", "public CyanSus() {\n\n }", "public Tbdtokhaihq3() {\n super();\n }", "public Chauffeur() {\r\n\t}", "public Generic(){\n\t\tthis(null);\n\t}", "public Coche() {\n super();\n }", "public Anschrift() {\r\n }", "public Pasien() {\r\n }", "private Rekenhulp()\n\t{\n\t}", "public Aanbieder() {\r\n\t\t}", "public SgaexpedbultoImpl()\n {\n }", "public Lanceur() {\n\t}", "public Chick() {\n\t}", "private Default()\n {}", "public Cohete() {\n\n\t}", "void DefaultConstructor(){}", "public Node(){\n\n\t\t}", "private Node() {\n\n }", "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private TMCourse() {\n\t}", "public Tbdcongvan36() {\n super();\n }", "public Mitarbeit() {\r\n }", "public Waschbecken() {\n this(0, 0);\n }", "public Clade() {}", "public Trening() {\n }", "public AntrianPasien() {\r\n\r\n }", "public Curso() {\r\n }", "public Factory() {\n\t\tsuper();\n\t}", "public _355() {\n\n }", "public Ov_Chipkaart() {\n\t\t\n\t}", "public mapper3c() { super(); }", "public Phl() {\n }", "public Mannschaft() {\n }", "public Parser()\n {\n //nothing to do\n }", "public Basic() {}", "protected GraphNode() {\n }", "protected GraphNode() {\n }", "protected Betaling()\r\n\t{\r\n\t\t\r\n\t}", "protected Asignatura()\r\n\t{}", "public SimOI() {\n super();\n }", "public SlanjePoruke() {\n }", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "public Supercar() {\r\n\t\t\r\n\t}", "@Override public void init()\n\t\t{\n\t\t}", "public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }", "private Converter()\n\t{\n\t\tsuper();\n\t}", "public TTau() {}", "public Vector() {\n construct();\n }", "public Zeffit()\n {\n // TODO: initialize instance variable(s)\n }", "public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}", "public Node() {\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 Demo() {\n\t\t\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "public Soil()\n\t{\n\n\t}", "public ChaCha()\n\t{\n\t\tsuper();\n\t}", "protected SimpleMatrix() {}", "public RngObject() {\n\t\t\n\t}", "public Node(){\n this(9);\n }", "public Achterbahn() {\n }", "public lo() {}", "public Catelog() {\n super();\n }", "public D() {}", "public JSFOla() {\n }", "public Node() {\r\n\t}", "public Node() {\r\n\t}", "@Override\r\n\tpublic void init() {}", "public EnsembleLettre() {\n\t\t\n\t}", "public Data() {\n }", "public Data() {\n }", "O() { super(null); }", "protected DenseMatrix()\n\t{\n\t}", "public Tigre() {\r\n }", "public Libro() {\r\n }", "public Implementor(){}", "public Self__1() {\n }", "public Rol() {}", "public Node() {\n\t}", "public Boop() {\n\t\tsuper();\n\t}", "public Odontologo() {\n }", "@Override\n public void init() {}", "public BasicLineParser() {\n/* 99 */ this(null);\n/* */ }", "public Person(){\r\n\t\tsuper();\r\n\t}", "public Goodsinfo() {\n super();\n }", "public ListElement()\n\t{\n\t\tthis(null, null, null); //invokes constructor with 3 arguments\n\t}", "public Data() {}", "public DetArqueoRunt () {\r\n\r\n }", "public AirAndPollen() {\n\n\t}", "protected GeometricObject() \n\t{\n\t\tdateCreated = new java.util.Date();\n\t}", "protected Tile() {\n super();\n }", "public Alojamiento() {\r\n\t}", "public Data() {\n \n }" ]
[ "0.83146733", "0.803775", "0.74150604", "0.7394629", "0.73675823", "0.7337131", "0.7284446", "0.72702533", "0.72196317", "0.72176874", "0.7197573", "0.7195276", "0.7182226", "0.718221", "0.7171106", "0.7168691", "0.716326", "0.71600175", "0.71342796", "0.7129816", "0.71239024", "0.711572", "0.71033776", "0.7093083", "0.70859474", "0.7085025", "0.7084637", "0.7080243", "0.70706815", "0.7059633", "0.70462894", "0.70412403", "0.704019", "0.7028491", "0.7002264", "0.6999924", "0.6988279", "0.6976047", "0.6966092", "0.6965402", "0.6963714", "0.6963059", "0.69626474", "0.6961323", "0.6956434", "0.6956434", "0.6954784", "0.69536924", "0.69445366", "0.69436055", "0.6927781", "0.69217896", "0.69185936", "0.6918216", "0.69181055", "0.6916767", "0.6914838", "0.690937", "0.6909325", "0.6905848", "0.6905108", "0.6902667", "0.69003046", "0.6892177", "0.68821055", "0.68814725", "0.6873857", "0.68706995", "0.68675005", "0.6863014", "0.68587875", "0.68564993", "0.6854694", "0.6852503", "0.6852503", "0.684913", "0.68440354", "0.6839183", "0.6839183", "0.68378645", "0.6837358", "0.68352085", "0.6831231", "0.68278307", "0.6827438", "0.6823478", "0.68231875", "0.68227994", "0.6820148", "0.68162376", "0.6814618", "0.68131065", "0.68107474", "0.6810481", "0.680701", "0.68042696", "0.68035", "0.67956126", "0.67956007", "0.67940694", "0.6789698" ]
0.0
-1
Gets the attribute value for the calculated attribute FolioFlete
public String getFolioFlete() { return (String) getAttributeInternal(FOLIOFLETE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getFlete(){\n return localFlete;\n }", "public Float getFloatAttribute();", "public Number getFee() {\n return (Number) getAttributeInternal(FEE);\n }", "public Number getAlto()\n {\n return (Number)getAttributeInternal(ALTO);\n }", "public String getAttribute_value() {\n return attribute_value;\n }", "final public float getFloatAttr() {\r\n\t\t\tif(mName.length() == 0)\r\n\t\t\t\treturn -1;\r\n\t\t\tif(mSaveAttr == null)\r\n\t\t\t\treturn getAttr(mName).Value;\r\n\t\t\treturn mSaveAttr.Value;\r\n\t\t}", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public double getF();", "public int getFila(){\n\t\treturn fila;\n\t}", "Attribute getAttribute();", "public int getF() {\n\t\treturn f;\n\t}", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\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 int getFila() {\n\t\treturn fila;\n\t}", "public Double getDoubleAttribute();", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public int getValueOfBonus() {\n return valueOfBonus;\n }", "public int dameFila() {\n return this.fila;\n }", "java.lang.String getAttribute();", "public static float getFloatProperty(OWLIndividual owlIndi, String property, OWLOntology onto, OWLDataFactory factory){\n\t\tfloat f = -5;\n\t\tOWLLiteral o = null;\n\t\ttry{\n\t\t\tOWLDataProperty p = factory.getOWLDataProperty(IRI.create(Settings.uri+property));\n\t\t\to = owlIndi.getDataPropertyValues(p, onto).iterator().next();\n\t\t\tf = Float.parseFloat(o.getLiteral());\n\t\t}catch(Exception e){}\n\t\tif (f!=-5){\n\t\t\treturn f;\n\t\t}else{\n\t\t\treturn 0.0f;\n\t\t}\n\t}", "public float getValue()\n\t{\n\t\treturn this.value;\n\t}", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Attrib getAttrib() {\r\n return attrib;\r\n }", "public static Forca get_f(){\n\t\treturn f;\n\t}", "public String getAttrVal() {\n return attrVal;\n }", "public int obtenerFila() {\n\t\treturn fila;\n\t}", "public Double getFat() {\n return product.getFat() * weight / 100;\n }", "@Override\n\tpublic IAttributeValue value() { return value; }", "public String getValue() {\n return super.getAttributeValue();\n }", "public FactAttribute[] getAttribute() {\r\n return localAttribute;\r\n }", "public double value(){\n\t return (double) this.f;\n }", "float getValue();", "float getValue();", "float getValue();", "public float getValue() {\n\t\treturn value;\n\t}", "public int getFee()\n {\n return fee;\n }", "public Number getFoliosintramo() {\n return (Number) getAttributeInternal(FOLIOSINTRAMO);\n }", "public int getAttribute() {\n return Attribute;\n }", "public float getValue() {\n return value;\n }", "int getFeatureValue();", "public Float getFloat(String attr) {\n return (Float) super.get(attr);\n }", "public int getFilial();", "Object getAttribute(int attribute);", "public float getValue() {\n return value_;\n }", "@Override\n\tpublic double value(final Attribute att) {\n\t\treturn 0;\n\t}", "String getAttribute();", "public java.lang.String getAttributeValue() {\r\n return localAttributeValue;\r\n }", "public double getValue(){\n return value;\n }", "public BigDecimal getsaleamt() {\n return (BigDecimal) getAttributeInternal(SALEAMT);\n }", "public double getFee() {\n\t\treturn fee;\n\t}", "public float getValue() {\n return value_;\n }", "public Float getValue() {\n\t\treturn value;\n\t}", "public Float getValue() {\n\t\treturn value;\n\t}", "public final String getFederationAttribute() {\n\t\treturn JsUtils.getNativePropertyString(this, \"federationAttribute\");\n\t}", "public Number getValue() {\n return (Number) getAttributeInternal(VALUE);\n }", "public double getValueOfEDFA() {\n\t\treturn valueOfEDFA;\n\t}", "final public float getFloatAttr(final String name) {\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\treturn attr.Value;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public Vector3f getAttenuation() {\r\n\t\treturn this.attenuation;\r\n \t}", "public final float getValue() {\r\n\t\treturn value;\r\n\t}", "public String attribute() {\n return this.attribute;\n }", "public double getFeIF() {\n return _avTable.getDouble(ATTR_FE_IF, 0.0);\n }", "public double getValue()\n\t{\n\t\treturn ifD1.getValue();// X100 lux\n\t}", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public static double featureValue(Attribute attrib, Object feature) {\n switch (attrib.type()) {\n case Attribute.NOMINAL:\n classCheck(attrib, feature, String.class);\n int idx = attrib.indexOfValue((String)feature);\n if (idx == -1) {\n onIllegalArg(attrib, feature);\n }\n return (double)idx;\n case Attribute.NUMERIC:\n if (feature instanceof Number) {\n return (Double)feature;\n } else if (feature instanceof String) {\n try {\n return Double.valueOf((String) feature).doubleValue();\n } catch (NumberFormatException e) {\n // fall through to throw\n }\n }\n onIllegalArg(attrib, feature);\n case Attribute.STRING:\n classCheck(attrib, feature, String.class);\n return attrib.addStringValue((String)feature);\n case Attribute.DATE:\n classCheck(attrib, feature, String.class);\n try {\n return attrib.parseDate((String)feature);\n } catch (ParseException e) {\n onIllegalArg(attrib, feature);\n }\n case Attribute.RELATIONAL:\n classCheck(attrib, feature, String.class);\n try {\n ArffReader arff = new ArffReader(new StringReader((String) feature), attrib.relation(), 0);\n return attrib.addRelation(arff.getData());\n } catch (Exception e) {\n onIllegalArg(attrib, feature);\n }\n default:\n onIllegalArg(attrib, feature);\n }\n return -1; // can't get here, infact.\n }", "public double calFee() {\n return weight * FEE + GiftBox.this.price;\n }", "public double getBonus(){\r\n return bonus;\r\n }", "public BigDecimal getFagentgathrate() {\n return fagentgathrate;\n }", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public double getFrecuencia() {\r\n return frecuencia;\r\n }", "public String getattribut() \n\t{\n\t\treturn attribut;\n\t}", "@Override\n\tpublic FareDetailParam getData() {\n\t\tFareDetailParam fd = new FareDetailParam();\n\t\tfd.setFylx(fylx.getFieldValue());\n\t\tfd.setFylxLike(fylx.getFieldText());\n\t\tfd.setJe(je.getFieldValue());\n\t\t\n\t\treturn fd;\n\t}", "public long getFee() {\n return fee_;\n }", "public double getFat() {\n\t\treturn fat;\n\t}", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "protected abstract float getValue(Entity e,FloatTrait t);", "public int getFECHACRREVAL() {\n return fechacrreval;\n }", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "double getBasedOnValue();", "private double getValue() {\n return value;\n }", "Integer getBusinessValue();", "public double getValue() {\r\n return this.value;\r\n }", "public double getValue()\n {\n return this.value;\n }", "public double getValue() {\n return this.value;\n }", "public double getValue() {\n return this.value;\n }", "public String getAttrValue() {\r\n\t\treturn attrValue;\r\n\t}", "public GenericAttribute getAttribute () {\n return attribute;\n }", "public BigDecimal getFee() {\n return fee;\n }", "public String getAttribute1() {\n return attribute1;\n }", "BigDecimal getFare();", "public BigDecimal getFee() {\r\n return fee;\r\n }", "public FactAttributes getAttributes() {\r\n return localAttributes;\r\n }", "public double getValue() {\n\t\treturn this.value; \n\t}", "public float getValue()\r\n {\r\n return getSemanticObject().getFloatProperty(swps_floatValue);\r\n }", "public String getAttr() {\n return attr;\n }", "public BigDecimal getAgencyFee() {\r\n return agencyFee;\r\n }", "public double getValue() {\n return value_;\n }", "public double getValue() {\n return value;\n }", "public double getValue() {\n return value;\n }", "public double getValue() {\n return value;\n }", "public double getValue();" ]
[ "0.6747532", "0.6635323", "0.6597812", "0.64036167", "0.6366776", "0.621101", "0.61499745", "0.6135287", "0.6102001", "0.60775226", "0.6074515", "0.60513705", "0.6048798", "0.6048798", "0.6018123", "0.5979433", "0.5968102", "0.59655064", "0.59460807", "0.59404624", "0.5914117", "0.58882767", "0.58882374", "0.5882598", "0.58773345", "0.58517814", "0.5846426", "0.58450824", "0.58425254", "0.584089", "0.5829749", "0.5823905", "0.5823905", "0.5823905", "0.58211625", "0.58073443", "0.57951486", "0.5790768", "0.5788456", "0.578258", "0.5773553", "0.5771491", "0.5763187", "0.5761515", "0.5747581", "0.57361096", "0.5721495", "0.57183194", "0.57067055", "0.5706145", "0.57027507", "0.56976694", "0.56976694", "0.5691736", "0.5679942", "0.5674311", "0.56713295", "0.56616485", "0.5661042", "0.5660777", "0.56574965", "0.56529397", "0.56455076", "0.5643977", "0.56429785", "0.5640368", "0.563992", "0.5626985", "0.56263137", "0.5623725", "0.5622142", "0.561817", "0.56160986", "0.561546", "0.5610442", "0.5610195", "0.56100816", "0.5606333", "0.5604526", "0.5603858", "0.5600888", "0.5600834", "0.55977315", "0.55977315", "0.5596615", "0.55945873", "0.55926526", "0.55904454", "0.5587726", "0.5585682", "0.5578314", "0.556798", "0.5567963", "0.55672973", "0.55672747", "0.55671686", "0.5565877", "0.5565877", "0.5565877", "0.5563889" ]
0.618503
6
Sets value as the attribute value for the calculated attribute FolioFlete
public void setFolioFlete(String value) { setAttributeInternal(FOLIOFLETE, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFlete(double param){\n \n this.localFlete=param;\n \n\n }", "public void setF(){\n\t\tf=calculateF();\n\t}", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "final public void setAttr(final String name, final float value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Value = value;\r\n\t\t}\r\n\t}", "public abstract void setValue(double fltValue);", "protected abstract void setValue(Entity e,FloatTrait t,float value);", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "void setInternal(ATTRIBUTES attribute, Object iValue);", "public static void addFloatData(OWLIndividual owlIndi, float value, String property, OWLOntology onto, OWLDataFactory factory, OWLOntologyManager manager){\n\t\tOWLDataProperty p = factory.getOWLDataProperty(IRI.create(Settings.uri+property));\n\t\tOWLLiteral owlc = factory.getOWLLiteral(Float.toString(value), factory.getOWLDatatype(xsdFloat));\n\t manager.applyChange(new AddAxiom(onto, factory.getOWLDataPropertyAssertionAxiom(p, owlIndi, owlc)));\n\t}", "@Override\n public void setAttribute(boolean f)\n {\n checkState();\n attribute = f;\n }", "public void setFeIF(double value) {\n _avTable.set(ATTR_FE_IF, value);\n }", "void setInt(int attributeValue);", "public void processDefinitionAttribute(String name, String value) {\n\t\tcurrentDefinition.setAttribute(name, value);\n\t}", "public void setMontoFacturado(double param){\n \n this.localMontoFacturado=param;\n \n\n }", "public void setFee(Number value) {\n setAttributeInternal(FEE, value);\n }", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "public double getFlete(){\n return localFlete;\n }", "@Override\n\tpublic void setAttribute(String name, Object value) {\n super.setAttribute(name, value);\n Enumeration<Figure> k = figures();\n while (k.hasMoreElements())\n k.nextElement().setAttribute(name, value);\n }", "public void setValue ( Float value ) {\r\n\t\tgetStateHelper().put(PropertyKeys.value, value);\r\n\t\thandleAttribute(\"value\", value);\r\n\t}", "public void setValue(float value) {\n this.value = value;\n }", "public void setMontoFacturadoSinDescuento(double param){\n \n this.localMontoFacturadoSinDescuento=param;\n \n\n }", "public void setAlto(Number value)\n {\n setAttributeInternal(ALTO, value);\n }", "@Override\n public void setValue(int index, Object value)\n {\n if (index == 1)\n {\n super.setValue(index, value); \n }\n else if (index == 2)\n {\n if (m_Scaler != 0)\n {\n try\n { \n m_Value = ((Number)value).doubleValue() * getScaler();\n }\n catch (Exception ex)\n {\n //Sometimes scaler is set for wrong Object type.\n setValue(value);\n }\n }\n else\n {\n setValue(value);\n }\n }\n else if (index == 3)\n { \n //Set default values.\n if (value == null)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n if (Array.getLength(value) != 2)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n m_Scaler = ((Number)Array.get(value, 0)).intValue();\n m_Unit = (((Number)Array.get(value, 1)).intValue() & 0xFF);\n }\n }\n }\n else\n {\n throw new IllegalArgumentException(\"GetValue failed. Invalid attribute index.\");\n }\n }", "public void setValue(double newV) { // assuming REST API update at instantiation - must be a Set method to prevent access to a variable directly\n this.Value=newV;\n }", "public Builder setA(float value) {\n bitField0_ |= 0x00000001;\n a_ = value;\n onChanged();\n return this;\n }", "public void setAttributes(FactAttributes param) {\r\n localAttributesTracker = true;\r\n\r\n this.localAttributes = param;\r\n\r\n\r\n }", "public void setFaceValue(double f){\n\t\tface = f ;\n\t}", "FloatAttribute(String name, float value) {\r\n super(name);\r\n this.value = value;\r\n }", "public void setValue(double value) {\n this.value = value; \n }", "public Float getFloatAttribute();", "public void setValue(A value) {this.value = value; }", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "private void setValue(double value) {\n this.value = value;\n }", "public Builder setFee(long value) {\n \n fee_ = value;\n onChanged();\n return this;\n }", "public void setMontoCatalogoEstimado(double param){\n \n this.localMontoCatalogoEstimado=param;\n \n\n }", "final public void setAttr(final String name, final Vector2 value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name)) {\r\n\t\t\t\tif(value == null)\r\n\t\t\t\t\tattr.Vector = null;\r\n\t\t\t\telse\r\n\t\t\t\t\tattr.Vector = value.clone();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setFxValue(int parametre) {\n this.fxValue = parametre;\n }", "public void setValue(float value) {\n\t\tthis.value = value;\n\t\tthis.rawValue=Float.toString(value);\n\t}", "public void setfVal(float value){\n this.fVal = value;\n }", "void setValue(double value);", "public Builder setAmountF(\n io.lightcone.data.types.Amount.Builder builderForValue) {\n if (amountFBuilder_ == null) {\n amountF_ = builderForValue.build();\n onChanged();\n } else {\n amountFBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public void setValue(Float value) {\n\t\tthis.value = value;\n\t}", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "public void setFilial(int filial);", "public void setValue(Object value) { this.value = value; }", "public void setValue(double newvalue){\n value = newvalue;\n }", "public void setAttrib(String name, String value);", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "public void setAmount(double amount) {\nloanAmount = amount;\n}", "public Builder setValue(float value) {\n bitField0_ |= 0x00000002;\n value_ = value;\n onChanged();\n return this;\n }", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "public final void setFuel(int f) {\n fuel = f;\n }", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "public void setValue(double value) {\n this.value = value;\n }", "public void setValue(double value) {\n this.value = value;\n }", "public void setValue(double value) {\n this.value = value;\n }", "public void set(double val);", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\r\n\t\tsuper.setAttribute(name, value, objectList);\r\n\t\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\r\n\t\t\tif (name.equals(\"x\"))\t\t{ m_pos.setX(val); }\r\n\t\t\tif (name.equals(\"y\"))\t\t{ m_pos.setY(val); }\r\n\t\t\tif (name.equals(\"radius\")) \t{ m_r=val; }\t\t\r\n\t\t\r\n\t\t}\r\n\t\tcatch (Exception e) {}\r\n\t\r\n\t}", "public void setA(double value) {\n this.a = value;\n }", "public void set(int index, double value) {\n\t\tattrs.set(index, value);\n\t}", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "public void setValue(Entity value) {\r\n\t\t\tthis.value = value;\r\n\t\t}", "void setIVA(float iva);", "public void setValue(Object o){\n \tthis.value = o;\n }", "public void setFe(int value) {\n this.fe = value;\n }", "public void setMontoDescuento(double param){\n \n this.localMontoDescuento=param;\n \n\n }", "public void setMontoEstimado(double param){\n \n this.localMontoEstimado=param;\n \n\n }", "@RdfProperty(\"http://www.coadunation.net/schema/rdf/1.0/base#IdValue\")\n public abstract void setValue(String value);", "public void setValue (double value) {\n\t\tthis.value = value;\n\t}", "public void setFxUfTasaCosto(double value) {\r\n this.fxUfTasaCosto = value;\r\n }", "public void setFeIF(String value) {\n setFeIF(Format.toDouble(value));\n }", "public void setValue(float val)\n\t{\n\t\tthis.value = val;\n\t}", "public void setValue(double value) {\r\n\t\tthis.value = value;\r\n\t}", "public final void setValue(final float value) {\r\n\t\tthis.value = value;\r\n\t}", "void setMonto(double monto);", "void setMonto(double monto);", "String attributeToSetter(String name);", "public DynamicPart value(float value) {\n this.value = value;\n return this;\n }", "void setValue(Endpoint endpoint, double value) {\n endpoint.setValue(this, value);\n }", "public void setF(boolean f) {\n\tthis.f = f;\n }", "public void setMontoPedidoRechazado(double param){\n \n this.localMontoPedidoRechazado=param;\n \n\n }", "public void setValue(float value)\r\n {\r\n getSemanticObject().setFloatProperty(swps_floatValue, value);\r\n }", "void setValueExpression(String attributeName, ValueExpression valueExpression);", "void setFoil (Foil foil) {\n current_part.foil = foil;\n }", "public abstract void setValue(ELContext context, Object value);", "public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "public void setFECHACRREVAL(int value) {\n this.fechacrreval = value;\n }", "public Builder setF(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n f_ = value;\n onChanged();\n return this;\n }", "public void setValue(double value) {\n\t\tthis.value = value;\n\t}", "public void setValue(Value value) {\n this.value = value;\n }", "public T set(String name, Object value)\n\t\t\tthrows TablesawException\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tif (value instanceof String)\n\t\t\t\t{\n\t\t\t\tm_intHelper.setAttribute(m_project, m_antObject, name, (String)value);\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tMethod m = m_intHelper.getAttributeMethod(name);\n\t\t\t\tm.invoke(m_antObject, value);\n\t\t\t\t}\n\t\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t\t{\n\t\t\t// TODO: add better error\n\t\t\tthrow new TablesawException(iae);\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new TablesawException(\"Error setting attribute '\"+name+\"' on '\"+m_elementName+\"'\", e);\n\t\t\t}\n\t\t\n\t\treturn ((T)this);\n\t\t}", "public void _setValue(float val)\r\n {\r\n if (valueClass.equals(Float.class))\r\n {\r\n setValue((int) (val * 100));\r\n } else\r\n {\r\n setValue((int) val);\r\n }\r\n }", "void setAttribute( String attrName, Object value ) throws FileSystemException;", "public void setAttribute(FactAttribute[] param) {\r\n\r\n validateAttribute(param);\r\n\r\n localAttributeTracker = true;\r\n\r\n this.localAttribute = param;\r\n }", "public void set(String value){\n switch (field){\n case 0:\n nomComplet = value;\n break;\n case 1:\n rv1 = value;\n break;\n case 2:\n dateDispo = LocalDate.parse(value,formatter);\n break;\n case 3:\n competencePrincipale = value;\n break;\n case 4:\n exp = Double.parseDouble(value);\n break;\n case 5:\n trancheExp = value;\n break;\n case 6:\n ecole = value;\n break;\n case 7:\n classeEcole = value;\n break;\n case 8:\n fonctions = value;\n break;\n case 9:\n dateRV1 = LocalDate.parse(value,formatter);\n case 10:\n rv2 = value;\n break;\n case 11:\n metiers = value;\n break;\n case 12:\n originePiste = value;\n break;\n }\n field++;\n }", "public abstract double set\r\n ( DataID dID // input\r\n , double value // input\r\n );", "public void setVega(double value) {\r\n this.vega = value;\r\n }" ]
[ "0.668509", "0.6310765", "0.6289836", "0.62666243", "0.61472756", "0.61427987", "0.59914654", "0.5954621", "0.5914365", "0.5901699", "0.58685607", "0.58615863", "0.5857106", "0.58225507", "0.5794826", "0.577518", "0.57348406", "0.5688418", "0.56843996", "0.5675299", "0.5673999", "0.5671641", "0.5665014", "0.5659493", "0.56510735", "0.5644783", "0.56347775", "0.56295025", "0.56199014", "0.56153685", "0.56031144", "0.55971795", "0.5586902", "0.55863684", "0.55862814", "0.55469334", "0.55367875", "0.55268556", "0.5525169", "0.55248725", "0.55003166", "0.549478", "0.5488919", "0.5465645", "0.5464439", "0.54592067", "0.54561776", "0.5448737", "0.54454577", "0.5430524", "0.54227227", "0.542253", "0.5419122", "0.53981066", "0.53916115", "0.5390423", "0.5390423", "0.5390423", "0.53868973", "0.5383889", "0.53790635", "0.5377222", "0.53764015", "0.53762776", "0.53673434", "0.5357693", "0.53407705", "0.5338489", "0.5322525", "0.532227", "0.5318872", "0.5310622", "0.5309378", "0.5307249", "0.53025293", "0.5300028", "0.5299074", "0.5299074", "0.5295663", "0.52830017", "0.52782226", "0.5276014", "0.52741957", "0.52679455", "0.5265805", "0.52636385", "0.52563334", "0.52557135", "0.52526504", "0.5250119", "0.52440727", "0.5241693", "0.5241224", "0.52407265", "0.52399987", "0.5238629", "0.5233887", "0.5231192", "0.52263016", "0.5218837" ]
0.5561418
35
Gets the attribute value for the calculated attribute Transport
public String getTransport() { return (String) getAttributeInternal(TRANSPORT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getValueOfTransceiver() {\n\t\treturn valueOfTransceiver;\n\t}", "public double getTransportPrice() {\n return transportPrice;\n }", "public Number getAmount() {\n return (Number) getAttributeInternal(AMOUNT);\n }", "public Number getTramo() {\n return (Number) getAttributeInternal(TRAMO);\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "java.lang.String getAttribute();", "public String getAttribute_value() {\n return attribute_value;\n }", "public GenericAttribute getAttribute () {\n return attribute;\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public Integer getIdTransport() {\r\n return idTransport;\r\n }", "public Number getValue() {\n return (Number) getAttributeInternal(VALUE);\n }", "double getValue(Endpoint endpoint) {\n return endpoint.getValue(this);\n }", "public Number getAlto()\n {\n return (Number)getAttributeInternal(ALTO);\n }", "public int getTransportista(){\n return this.transportista;\n }", "public int getAttribute() {\n return Attribute;\n }", "String getAttribute();", "public Number getRentAmount() {\n return (Number) getAttributeInternal(RENTAMOUNT);\n }", "Attribute getAttribute();", "public java.math.BigDecimal getAz_ant() throws java.rmi.RemoteException;", "public int getAmount()\n {\n return this.transactionValue;\n }", "public Transport getTransport() {\n return transport;\n }", "public BigDecimal getsaleamt() {\n return (BigDecimal) getAttributeInternal(SALEAMT);\n }", "public Number getFee() {\n return (Number) getAttributeInternal(FEE);\n }", "Object getAttribute(int attribute);", "public String getTransactionAttribute() {\n\treturn this.transactionAttribute;\n }", "public Number getTallaId() {\n return (Number)getAttributeInternal(TALLAID);\n }", "public String getAttribute() {\n return attribute;\n }", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public String getTaxCalculated()\n\t{\n\t\twaitForVisibility(taxCalculated);\n\t\treturn taxCalculated.getText();\n\t}", "public Number getPrice() {\n return (Number)getAttributeInternal(PRICE);\n }", "private double getValue() {\n return value;\n }", "public double get(int index) {\n\t\treturn attrs.getQuick(index);\n\t}", "public String getValue() {\n return super.getAttributeValue();\n }", "public double getValue() {\r\n return this.value;\r\n }", "public int getVehiclePerformance() {\n return itemAttribute;\n }", "public double getValue() {\n return this.value;\n }", "public double getValue() {\n return this.value;\n }", "public double getValue() {\n\t\treturn this.value; \n\t}", "public double getValue() {\n\t\treturn this.value;\n\t}", "public String getAttribute3() {\n return attribute3;\n }", "public double getValue()\n {\n return this.value;\n }", "public double getValue() {\n return value;\n }", "public double getValue() {\n return value;\n }", "public double getValue() {\n return value;\n }", "public Double getDoubleAttribute();", "public double getValue() {\n return this._value;\n }", "public double getValue(){\n return value;\n }", "public Number getCost()\r\n {\r\n return (m_cost);\r\n }", "public double getValue() {\n\t\treturn value;\n\t}", "public double getValue() {\n\t\treturn value;\n\t}", "public double getValue() {\n\t\treturn value;\n\t}", "public java.lang.String getAttributeValue() {\r\n return localAttributeValue;\r\n }", "public String getAttrVal() {\n return attrVal;\n }", "public double getValue() {\n return value_;\n }", "public final String getPerunDestinationAttribute() {\n\t\treturn JsUtils.getNativePropertyString(this, \"perunDestinationAttribute\");\n\t}", "@Override\n\tpublic double getValue() {\n\t\treturn value;\n\t}", "public double getValue() {\n return value_;\n }", "public FactAttribute[] getAttribute() {\r\n return localAttribute;\r\n }", "public double getAttribute(ExtendedStatistic statistic) {\n try {\n return cacheStatisticManager.getAttribute(statistic);\n } catch (ExtendedStatisticNotFoundException e) {\n log.unableToGetStatistic(statistic, e);\n }\n return 0;\n }", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "com.google.protobuf.ByteString getAttributeBytes();", "public AXValue getValue() {\n return value;\n }", "public String getDeliveryTerm() {\n return (String)getAttributeInternal(DELIVERYTERM);\n }", "public double getValue() {\r\n\t\treturn value;\r\n\t}", "public Transmission getTransmission() {\n return transmission;\n }", "@java.lang.Override\n public long getAmount() {\n return instance.getAmount();\n }", "double getValue() {\n return mValue;\n }", "public double getTax(){\n\n return this.tax;\n }", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Attrib getAttrib() {\r\n return attrib;\r\n }", "public String getValue() {\n return getMethodValue(\"value\");\n }", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public float getCost() {\r\n\t\treturn this.cost.floatValue();\r\n\t}", "public Vector3f getAttenuation() {\r\n\t\treturn this.attenuation;\r\n \t}", "public double getTaxedCost()\n\t{\n\t\treturn taxedCost;\n\t}", "public String getCost() {\n\t\tString t = doc.get(\"cost\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}", "@Override\n public double getValue()\n {\n return value;\n }", "public String attribute() {\n return this.attribute;\n }", "public Number getPriceVal() {\n return (Number)getAttributeInternal(PRICEVAL);\n }", "public Float getFloatAttribute();", "public int cost() {\n\t\treturn value;\n\t}", "Pair<String, String> getAdditionalAttribute();", "public String getAttr() {\n return attr;\n }", "@Override\n public Number getValue() {\n return tcpStatWrapper.query().get(entry.getKey());\n }", "public double getValue() {\n\t\treturn(value);\n\t}", "public Number getActualCost()\r\n {\r\n return (m_actualCost);\r\n }", "double get();", "public double getValue() {\n\t\treturn sensorval;\n\t}", "public Integer getCost() {\n return cost;\n }", "public double getTargetArea() {\n NetworkTableEntry ta = m_table.getEntry(\"ta\");\n double a = ta.getDouble(0.0);\n return a;\n }", "public int getAtt(){ \r\n return att;\r\n }", "@Override\n\tpublic float value() {\n\t\treturn currnet().value();\n\t}", "@Override\n public int getCost() {\n\n\n //return cost converted to int\n return (int) cost;\n }", "public String getProductAttrValue() {\n return (String)getAttributeInternal(PRODUCTATTRVALUE);\n }", "public double getCost() {\r\n return cost;\r\n }", "@Override\r\n\tpublic double getVET() {\r\n\t\treturn getTMB() * getFatorAtividadeFisica();\r\n\t}", "public double get(CANTalon talon) {\n\t\treturn talon.get();\n\t}", "public double getTax() {\n return tax_;\n }", "public Double getTax();", "@VTID(14)\r\n double getValue();" ]
[ "0.6413344", "0.6334029", "0.6074805", "0.59135634", "0.5849497", "0.5846343", "0.57762367", "0.5773685", "0.5726492", "0.56964856", "0.569321", "0.5692613", "0.56909835", "0.5677956", "0.56612706", "0.56580424", "0.562997", "0.56242293", "0.56019497", "0.5583779", "0.5576654", "0.5559825", "0.5532632", "0.5517754", "0.5500692", "0.548749", "0.54726267", "0.54688853", "0.54663104", "0.5447618", "0.54448664", "0.54390603", "0.5429873", "0.54152346", "0.5409514", "0.5404474", "0.5404474", "0.54040396", "0.5396605", "0.53925157", "0.5389907", "0.5385576", "0.5385576", "0.5385576", "0.538277", "0.53802633", "0.5378031", "0.53707075", "0.53681296", "0.53681296", "0.53681296", "0.5366609", "0.5362741", "0.53597724", "0.53546214", "0.53528076", "0.5350192", "0.5344602", "0.5343445", "0.53429943", "0.53429943", "0.53429645", "0.5338046", "0.53367805", "0.53359354", "0.533348", "0.5332265", "0.5309962", "0.530856", "0.53070086", "0.5305762", "0.52941525", "0.52929765", "0.52838695", "0.5283431", "0.5272828", "0.52665734", "0.5261991", "0.52562475", "0.52503955", "0.5245699", "0.52396786", "0.523928", "0.52327776", "0.5232069", "0.5225401", "0.52251023", "0.5222583", "0.52198917", "0.5219522", "0.52132916", "0.5212517", "0.5211085", "0.52091074", "0.52067995", "0.52032316", "0.52003866", "0.51999336", "0.51917905", "0.5190612" ]
0.6271275
2
Sets value as the attribute value for the calculated attribute Transport
public void setTransport(String value) { setAttributeInternal(TRANSPORT, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTransportPrice(double value) {\n this.transportPrice = value;\n }", "void setValue(Endpoint endpoint, double value) {\n endpoint.setValue(this, value);\n }", "protected abstract void setValue(Entity e,FloatTrait t,float value);", "public T set(String name, Object value)\n\t\t\tthrows TablesawException\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tif (value instanceof String)\n\t\t\t\t{\n\t\t\t\tm_intHelper.setAttribute(m_project, m_antObject, name, (String)value);\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tMethod m = m_intHelper.getAttributeMethod(name);\n\t\t\t\tm.invoke(m_antObject, value);\n\t\t\t\t}\n\t\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t\t{\n\t\t\t// TODO: add better error\n\t\t\tthrow new TablesawException(iae);\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new TablesawException(\"Error setting attribute '\"+name+\"' on '\"+m_elementName+\"'\", e);\n\t\t\t}\n\t\t\n\t\treturn ((T)this);\n\t\t}", "public void setMontoCatalogoEstimado(double param){\n \n this.localMontoCatalogoEstimado=param;\n \n\n }", "public EdgeNeon setAmount(double value) throws ParameterOutOfRangeException\n {\n\t\tif(value > 100.00 || value < 0.00)\n\t {\n\t throw new ParameterOutOfRangeException(value, 0.00, 100.00);\n\t }\n\n m_Amount = value;\n setProperty(\"amount\", value);\n return this;\n }", "void setInternal(ATTRIBUTES attribute, Object iValue);", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public void setMontoEstimado(double param){\n \n this.localMontoEstimado=param;\n \n\n }", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "public void setValue(double newV) { // assuming REST API update at instantiation - must be a Set method to prevent access to a variable directly\n this.Value=newV;\n }", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "public void setValue(Entity value) {\r\n\t\t\tthis.value = value;\r\n\t\t}", "private void setValue(double value) {\n this.value = value;\n }", "@Override\n public void setValue(int index, Object value)\n {\n if (index == 1)\n {\n super.setValue(index, value); \n }\n else if (index == 2)\n {\n if (m_Scaler != 0)\n {\n try\n { \n m_Value = ((Number)value).doubleValue() * getScaler();\n }\n catch (Exception ex)\n {\n //Sometimes scaler is set for wrong Object type.\n setValue(value);\n }\n }\n else\n {\n setValue(value);\n }\n }\n else if (index == 3)\n { \n //Set default values.\n if (value == null)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n if (Array.getLength(value) != 2)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n m_Scaler = ((Number)Array.get(value, 0)).intValue();\n m_Unit = (((Number)Array.get(value, 1)).intValue() & 0xFF);\n }\n }\n }\n else\n {\n throw new IllegalArgumentException(\"GetValue failed. Invalid attribute index.\");\n }\n }", "public void setValue(double value) {\n this.value = value; \n }", "public void setCost(double value) {\n this.cost = value;\n }", "void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}", "public void setMontoPedidoRechazado(double param){\n \n this.localMontoPedidoRechazado=param;\n \n\n }", "final public void setAttr(final String name, final float value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Value = value;\r\n\t\t}\r\n\t}", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}", "public void set(int index, double value) {\n\t\tattrs.set(index, value);\n\t}", "protected void setValue(T value) {\r\n this.value = value;\r\n }", "public void set(double val);", "public void setTransportista(int transportista){\n this.transportista = transportista;\n }", "void setCost(double cost);", "public void setValueOfTransceiver(double valueOfTransceiver) {\n\t\tthis.valueOfTransceiver = valueOfTransceiver;\n\t}", "public void setBetrag(double betrag) throws RemoteException;", "public void setAmount(double value) {\n this.amount = value;\n }", "public void setAmount(double value) {\n this.amount = value;\n }", "void setProperty(String attribute, String value);", "public void setValue(T value) {\n this.value = value;\n }", "public void setTramo(Number value) {\n setAttributeInternal(TRAMO, value);\n }", "@Override\n public void set(T value) throws Exception {\n _curator.setData().forPath(_zkPath, toZkBytes(value));\n }", "public double getTransportPrice() {\n return transportPrice;\n }", "void setInt(int attributeValue);", "public abstract void setValue(T value);", "public void setMontoDescuento(double param){\n \n this.localMontoDescuento=param;\n \n\n }", "public void setValue(T value) \n\t{\n\t\tthis.value = value;\n\t}", "public void setAlto(Number value)\n {\n setAttributeInternal(ALTO, value);\n }", "double setCost(double cost);", "public void setValue(double value) {\n this.value = value;\n }", "public void setValue(double value) {\n this.value = value;\n }", "public void setValue(double value) {\n this.value = value;\n }", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "public void setTransport(Transport transport) {\n this.transport = transport;\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t\ttry {\n\t\t\t\tchanging = true;\n\t\t\t\telement.setAttributeNS(namespaceURI, localName, value);\n\t\t\t} finally {\n\t\t\t\tchanging = false;\n\t\t\t}\n\t\t}", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\r\n\t\tsuper.setAttribute(name, value, objectList);\r\n\t\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\r\n\t\t\tif (name.equals(\"x\"))\t\t{ m_pos.setX(val); }\r\n\t\t\tif (name.equals(\"y\"))\t\t{ m_pos.setY(val); }\r\n\t\t\tif (name.equals(\"radius\")) \t{ m_r=val; }\t\t\r\n\t\t\r\n\t\t}\r\n\t\tcatch (Exception e) {}\r\n\t\r\n\t}", "public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\n }", "public void setValue(T value) {\n\t\tthis.value = value;\n\t}", "public void setValue(T value) {\n\t\tthis.value = value;\n\t}", "public void setTargetValue(int idx, Object value);", "protected abstract void setContextAttribute(String name, Object value);", "public void setValue(Object value) { this.value = value; }", "public void setValue (double value) {\n\t\tthis.value = value;\n\t}", "public void setTaxAmount(double value) {\n this.taxAmount = value;\n }", "public void setData(T val) {\r\n\t\tthis.val = val;\r\n\t}", "public void setAmount(double value) {\r\n\t\tthis.amount = value;\r\n\t}", "public void setMontoSolicitado(double param){\n \n this.localMontoSolicitado=param;\n \n\n }", "public void setValue(double value) {\r\n\t\tthis.value = value;\r\n\t}", "void setValue(T value);", "void setValue(T value);", "void setValue(double value);", "public Builder setTax(double value) {\n \n tax_ = value;\n onChanged();\n return this;\n }", "public void setTcCliente(double value) {\r\n this.tcCliente = value;\r\n }", "public void setFlete(double param){\n \n this.localFlete=param;\n \n\n }", "public abstract void setValue(double fltValue);", "public void setValue(double value) {\n\t\tthis.value = value;\n\t}", "public void setEntityValue(String name, NodeList value, boolean local) {\n ActiveEntity binding = getEntityBinding(name, local);\n if (binding != null) {\n binding.setValueNodes(this, value);\n } else {\n if (entities == null && (local || nameContext == null))\n\tentities = new BasicEntityTable();\n Tagset ts = this.getTopContext().getTagset();\n getEntities().setBinding(name, ts.createActiveEntity(name, value));\n } \n }", "public void setTax(Double tax);", "public void set(int value) {\n\t\ttem = value;\n\t\tSystem.out.println(\"\\tAir conditioner is set to \" + tem +\" degrees\");\n\t}", "protected void setCost(double cost) \r\n\t{\tthis.cost = cost;\t}", "public setAttribute_result(setAttribute_result other) {\n if (other.isSetSuccess()) {\n this.success = new SetAttributeTResponse(other.success);\n }\n if (other.isSetE()) {\n this.e = new alluxio.thrift.AlluxioTException(other.e);\n }\n }", "public void setA(double value) {\n this.a = value;\n }", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "double setEstimatedCost(double cost);", "public void setMontoFacturado(double param){\n \n this.localMontoFacturado=param;\n \n\n }", "public void setIdTransport(Integer idTransport) {\r\n this.idTransport = idTransport;\r\n }", "public void setValue(double newvalue){\n value = newvalue;\n }", "private void assingTempProperty(UUID uuid){\n TraversalDescription tempTraversal = this.database.traversalDescription()\n .depthFirst()\n .uniqueness(Uniqueness.RELATIONSHIP_GLOBAL);\n String uuidString = \"flw-\"+uuid.toString();\n Transaction tx = database.beginTx();\n try {\n for(Relationship r : tempTraversal.traverse(this.nSource)\n .relationships()){\n if (r.hasProperty(\"weight\"))\n r.setProperty(uuidString,Double.parseDouble((String)r.getProperty(\"weight\")) * 1.0);\n }\n tx.success();\n } catch (Exception e) {\n System.err.println(\"MaximumFlow.assingTempProperty: \" + e);\n tx.failure();\n } finally {\n tx.close();\n }\n }", "public void setMontoFacturadoSinDescuento(double param){\n \n this.localMontoFacturadoSinDescuento=param;\n \n\n }", "public void setValue(A value) {this.value = value; }", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "public void changeTaxRate (double value) {\n this.taxRate = value;\n }", "protected void f_set(Long eID, int flowValue) {\n\t\tincreaseAccess(); // Zugriff auf den Graphen\n\t\tgraph.setValE(eID, flowAttr, flowValue);\n\t}", "void setValueExpression(String attributeName, ValueExpression valueExpression);", "public void set(V value) {\n Rules.checkAttributeValue(value);\n checkType(value);\n this.value = value;\n isSleeping = false;\n notifyObservers();\n }", "public TmDistributeValueRecord() {\n super(TmDistributeValue.TM_DISTRIBUTE_VALUE);\n }", "public void setsaleamt(BigDecimal value) {\n setAttributeInternal(SALEAMT, value);\n }", "public void setAttribute15(String value)\n {\n setAttributeInternal(ATTRIBUTE15, value);\n }", "void setMonto(double monto);", "void setMonto(double monto);", "public void setTransmission(Transmission transmission) {\n this.transmission = transmission;\n }", "@Override\n\tprotected void setValue(String name, TipiValue tv) {\n\t}", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "public void setAmount(Number value) {\n setAttributeInternal(AMOUNT, value);\n }", "public abstract void setProperty(String property, Object value)\n throws SOAPException;", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "public abstract BaseQuantityDt setSystem(String theUri);" ]
[ "0.6482954", "0.608997", "0.56714904", "0.56407493", "0.5611057", "0.55906147", "0.5564543", "0.5555647", "0.5526744", "0.55180913", "0.55024505", "0.54803634", "0.5478468", "0.5473995", "0.5470967", "0.54650074", "0.5448895", "0.54322785", "0.5415791", "0.5409914", "0.5408208", "0.5407199", "0.5405997", "0.5395332", "0.5394149", "0.5391939", "0.5385643", "0.5375914", "0.5364552", "0.5363224", "0.5353827", "0.53368425", "0.5335516", "0.53348583", "0.5333489", "0.53093284", "0.5307759", "0.53071976", "0.5303278", "0.52943575", "0.5291443", "0.5285949", "0.5285949", "0.5285949", "0.52809167", "0.5278609", "0.52556866", "0.5254034", "0.5250469", "0.5245002", "0.52438885", "0.52438885", "0.5240263", "0.5240043", "0.5236035", "0.5226252", "0.52258134", "0.52235407", "0.52233446", "0.52197593", "0.52091044", "0.5198611", "0.5198611", "0.51907724", "0.5180541", "0.5165369", "0.51643974", "0.51527584", "0.5150697", "0.51479167", "0.51373535", "0.51364857", "0.5134986", "0.5132408", "0.5131181", "0.5130473", "0.51277864", "0.51243246", "0.5123001", "0.511255", "0.5111162", "0.5104707", "0.51001227", "0.50943", "0.5087617", "0.5084008", "0.5078659", "0.5073724", "0.5073217", "0.5066536", "0.5065818", "0.5057977", "0.5057977", "0.5057735", "0.5053007", "0.5051881", "0.5049656", "0.50483876", "0.5045382", "0.5045301" ]
0.6279899
1
Gets the attribute value for the calculated attribute Foliosintramo
public Number getFoliosintramo() { return (Number) getAttributeInternal(FOLIOSINTRAMO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Number getAlto()\n {\n return (Number)getAttributeInternal(ALTO);\n }", "public Number getTramo() {\n return (Number) getAttributeInternal(TRAMO);\n }", "public Float getFloatAttribute();", "public double getFlete(){\n return localFlete;\n }", "public java.lang.Double getValorIof() {\n return valorIof;\n }", "public int getFila(){\n\t\treturn fila;\n\t}", "public double getValue()\n\t{\n\t\treturn ifD1.getValue();// X100 lux\n\t}", "public java.lang.Double getValorCalculadoIof() {\n return valorCalculadoIof;\n }", "public double getMontoFacturado(){\n return localMontoFacturado;\n }", "public int getFila() {\r\n\t\treturn fila;\r\n\t}", "public int getFila() {\r\n\t\treturn fila;\r\n\t}", "public double getMontoCatalogoEstimado(){\n return localMontoCatalogoEstimado;\n }", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public int getFila() {\n\t\treturn fila;\n\t}", "public int getFilial();", "public double getPreco();", "public double getPreco();", "public Number getIdbultoOri()\n {\n return (Number)getAttributeInternal(IDBULTOORI);\n }", "public int obtenerFila() {\n\t\treturn fila;\n\t}", "float getIva();", "public Number getFee() {\n return (Number) getAttributeInternal(FEE);\n }", "public String getAttribute_value() {\n return attribute_value;\n }", "@Override\n\tpublic double value(final Attribute att) {\n\t\treturn 0;\n\t}", "public double getFeIF() {\n return _avTable.getDouble(ATTR_FE_IF, 0.0);\n }", "public int dameFila() {\n return this.fila;\n }", "public double getF();", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public double getMontoFacturadoSinDescuento(){\n return localMontoFacturadoSinDescuento;\n }", "public Double getDoubleAttribute();", "public abstract double getPreis();", "public static float getFloatProperty(OWLIndividual owlIndi, String property, OWLOntology onto, OWLDataFactory factory){\n\t\tfloat f = -5;\n\t\tOWLLiteral o = null;\n\t\ttry{\n\t\t\tOWLDataProperty p = factory.getOWLDataProperty(IRI.create(Settings.uri+property));\n\t\t\to = owlIndi.getDataPropertyValues(p, onto).iterator().next();\n\t\t\tf = Float.parseFloat(o.getLiteral());\n\t\t}catch(Exception e){}\n\t\tif (f!=-5){\n\t\t\treturn f;\n\t\t}else{\n\t\t\treturn 0.0f;\n\t\t}\n\t}", "public double getIntAnual() {\n return intAnual;\n }", "Object getAttribute(int attribute);", "Integer getBusinessValue();", "public float getSalario() {\r\n return salario;\r\n }", "float getValue();", "float getValue();", "float getValue();", "public final String getFci() {\n return String.valueOf(fci);\n }", "public double getMontoSolicitado(){\n return localMontoSolicitado;\n }", "public double getRisultato() {\r\n return risultato;\r\n }", "public double getValue();", "public Float getFloat(String attr) {\n return (Float) super.get(attr);\n }", "public Integer getIntegerAttribute();", "@Basic @Immutable\n\tprotected double getAxi() {\n\t\treturn this.axi;\n\t}", "public org.omg.uml.foundation.core.Attribute getAttribute();", "double getBasedOnValue();", "public double getValue(){\n return value;\n }", "public java.lang.Double getTaxaCalculada() {\n return taxaCalculada;\n }", "public double getFxUfTasaCosto() {\r\n return fxUfTasaCosto;\r\n }", "public double getFrecuencia() {\r\n return frecuencia;\r\n }", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Attrib getAttrib() {\r\n return attrib;\r\n }", "public int getIva() {\n\t\treturn producto.getIva();\n\t}", "Attribute getAttribute();", "double getValue();", "double getValue();", "double getValue();", "public Float getIhoatts() {\r\n return ihoatts;\r\n }", "public double value(){\n\t return (double) this.f;\n }", "public int getValue()\n {\n return mi_value;\n }", "public int getValue()\n {\n return mi_value;\n }", "public int getAttribute() {\n return Attribute;\n }", "public double get(int index) {\n\t\treturn attrs.getQuick(index);\n\t}", "public double getA();", "@VTID(14)\r\n double getValue();", "int getFeatureValue();", "@Override\r\n\tpublic Integer getPropensity_fiscalprd_decile() {\n\t\treturn super.getPropensity_fiscalprd_decile();\r\n\t}", "double getDiametro(){\n return raggio * 2;\n }", "public double getMontoEstimado(){\n return localMontoEstimado;\n }", "public double portataMassicaFumi( ){\r\n\t\treturn portatamassica;\r\n\t}", "public double getPreco(){\n return pagamento.getPreco();\n }", "public double getFinancialAid() {\r\n return financialAid;\r\n }", "public double promedioAlum(){\n setProm((getC1() + getC2() + getC3() + getC4()) / 4);\n return getProm();\n }", "final public float getFloatAttr() {\r\n\t\t\tif(mName.length() == 0)\r\n\t\t\t\treturn -1;\r\n\t\t\tif(mSaveAttr == null)\r\n\t\t\t\treturn getAttr(mName).Value;\r\n\t\t\treturn mSaveAttr.Value;\r\n\t\t}", "java.lang.String getAttribute();", "public Number getAncho()\n {\n return (Number)getAttributeInternal(ANCHO);\n }", "public BigDecimal getsaleamt() {\n return (BigDecimal) getAttributeInternal(SALEAMT);\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public float getValue()\n\t{\n\t\treturn this.value;\n\t}", "public java.lang.Integer getCargo_fijo() {\n return cargo_fijo;\n }", "private double getValue() {\n return value;\n }", "public double getBonificacao() {\n\t\tSystem.out.println(\"Chamando o metodo de bonificacao do gerente\");\n\t\treturn super.getBonificacao() + super.salario;\n\t}", "public String getattribut() \n\t{\n\t\treturn attribut;\n\t}", "float getA();", "public double getPromedio() {\r\n return promedio;\r\n }", "public Number getValue() {\n return (Number) getAttributeInternal(VALUE);\n }", "public static double featureValue(Attribute attrib, Object feature) {\n switch (attrib.type()) {\n case Attribute.NOMINAL:\n classCheck(attrib, feature, String.class);\n int idx = attrib.indexOfValue((String)feature);\n if (idx == -1) {\n onIllegalArg(attrib, feature);\n }\n return (double)idx;\n case Attribute.NUMERIC:\n if (feature instanceof Number) {\n return (Double)feature;\n } else if (feature instanceof String) {\n try {\n return Double.valueOf((String) feature).doubleValue();\n } catch (NumberFormatException e) {\n // fall through to throw\n }\n }\n onIllegalArg(attrib, feature);\n case Attribute.STRING:\n classCheck(attrib, feature, String.class);\n return attrib.addStringValue((String)feature);\n case Attribute.DATE:\n classCheck(attrib, feature, String.class);\n try {\n return attrib.parseDate((String)feature);\n } catch (ParseException e) {\n onIllegalArg(attrib, feature);\n }\n case Attribute.RELATIONAL:\n classCheck(attrib, feature, String.class);\n try {\n ArffReader arff = new ArffReader(new StringReader((String) feature), attrib.relation(), 0);\n return attrib.addRelation(arff.getData());\n } catch (Exception e) {\n onIllegalArg(attrib, feature);\n }\n default:\n onIllegalArg(attrib, feature);\n }\n return -1; // can't get here, infact.\n }", "@Override\n\tpublic double getValue() {\n\t\treturn value;\n\t}", "public float getA() {\r\n return a;\r\n }", "public int getValueOfBonus() {\n return valueOfBonus;\n }", "public Double getAmmonia() {\n return ammonia;\n }", "public int getF() {\n\t\treturn f;\n\t}", "public float getValue() {\n\t\treturn value;\n\t}", "@Override\r\n\tpublic Integer getPropensity_fund_decile() {\n\t\treturn super.getPropensity_fund_decile();\r\n\t}", "public double getValue()\n {\n return this.value;\n }", "public double getMontoDescuento(){\n return localMontoDescuento;\n }", "public String getTaxCalculated()\n\t{\n\t\twaitForVisibility(taxCalculated);\n\t\treturn taxCalculated.getText();\n\t}", "public FactAttribute[] getAttribute() {\r\n return localAttribute;\r\n }", "public float getA() {\n return a;\n }", "public double getValue() {\n\t\treturn(value);\n\t}" ]
[ "0.63849926", "0.61889225", "0.6056739", "0.60390526", "0.6017256", "0.5985915", "0.59618485", "0.59456253", "0.59376657", "0.58963686", "0.58963686", "0.5892949", "0.5873423", "0.585227", "0.5828158", "0.5809395", "0.5809395", "0.58065027", "0.58061004", "0.58050185", "0.5798963", "0.57932884", "0.57857454", "0.578029", "0.5773025", "0.5766933", "0.5765396", "0.5764817", "0.57484376", "0.5747099", "0.57296574", "0.5718071", "0.5714353", "0.57110363", "0.5697778", "0.56859446", "0.56859446", "0.56859446", "0.56718385", "0.5662932", "0.56562525", "0.5655358", "0.565237", "0.563458", "0.5626069", "0.56232804", "0.56231266", "0.5622368", "0.56214637", "0.5615631", "0.5613475", "0.56128645", "0.56049573", "0.56009996", "0.558561", "0.558561", "0.558561", "0.5581904", "0.5575045", "0.5574608", "0.5574608", "0.55694205", "0.5563999", "0.556313", "0.5559945", "0.55595756", "0.5556565", "0.55514234", "0.5551048", "0.55503106", "0.5546533", "0.55421454", "0.5540285", "0.553268", "0.55308425", "0.552887", "0.5523044", "0.5522339", "0.55185694", "0.5516709", "0.5514917", "0.55064017", "0.5502937", "0.5499116", "0.5498206", "0.54901934", "0.5490137", "0.54895777", "0.54805094", "0.5479169", "0.54780835", "0.5477187", "0.5468748", "0.54686415", "0.5461559", "0.545938", "0.5455791", "0.54531074", "0.54525334", "0.5448132" ]
0.72211856
0
Sets value as the attribute value for the calculated attribute Foliosintramo
public void setFoliosintramo(Number value) { setAttributeInternal(FOLIOSINTRAMO, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFlete(double param){\n \n this.localFlete=param;\n \n\n }", "public void setMontoFacturado(double param){\n \n this.localMontoFacturado=param;\n \n\n }", "public void setMontoCatalogoEstimado(double param){\n \n this.localMontoCatalogoEstimado=param;\n \n\n }", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public void setMontoFacturadoSinDescuento(double param){\n \n this.localMontoFacturadoSinDescuento=param;\n \n\n }", "void setInt(int attributeValue);", "public void setF(){\n\t\tf=calculateF();\n\t}", "@Override\n public void setValue(int index, Object value)\n {\n if (index == 1)\n {\n super.setValue(index, value); \n }\n else if (index == 2)\n {\n if (m_Scaler != 0)\n {\n try\n { \n m_Value = ((Number)value).doubleValue() * getScaler();\n }\n catch (Exception ex)\n {\n //Sometimes scaler is set for wrong Object type.\n setValue(value);\n }\n }\n else\n {\n setValue(value);\n }\n }\n else if (index == 3)\n { \n //Set default values.\n if (value == null)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n if (Array.getLength(value) != 2)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n m_Scaler = ((Number)Array.get(value, 0)).intValue();\n m_Unit = (((Number)Array.get(value, 1)).intValue() & 0xFF);\n }\n }\n }\n else\n {\n throw new IllegalArgumentException(\"GetValue failed. Invalid attribute index.\");\n }\n }", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "public void setFeIF(double value) {\n _avTable.set(ATTR_FE_IF, value);\n }", "public void setFxValue(int parametre) {\n this.fxValue = parametre;\n }", "public abstract void setValue(double fltValue);", "public void setMontoEstimado(double param){\n \n this.localMontoEstimado=param;\n \n\n }", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}", "void setMonto(double monto);", "void setMonto(double monto);", "protected abstract void setValue(Entity e,FloatTrait t,float value);", "public void setMontoSolicitado(double param){\n \n this.localMontoSolicitado=param;\n \n\n }", "void setInternal(ATTRIBUTES attribute, Object iValue);", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "public static void addFloatData(OWLIndividual owlIndi, float value, String property, OWLOntology onto, OWLDataFactory factory, OWLOntologyManager manager){\n\t\tOWLDataProperty p = factory.getOWLDataProperty(IRI.create(Settings.uri+property));\n\t\tOWLLiteral owlc = factory.getOWLLiteral(Float.toString(value), factory.getOWLDatatype(xsdFloat));\n\t manager.applyChange(new AddAxiom(onto, factory.getOWLDataPropertyAssertionAxiom(p, owlIndi, owlc)));\n\t}", "final public void setAttr(final String name, final float value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Value = value;\r\n\t\t}\r\n\t}", "public void setMontoDescuento(double param){\n \n this.localMontoDescuento=param;\n \n\n }", "public void setPreco(Double preco);", "public void setMontoPedidoRechazado(double param){\n \n this.localMontoPedidoRechazado=param;\n \n\n }", "public void setAlto(Number value)\n {\n setAttributeInternal(ALTO, value);\n }", "void setIVA(float iva);", "void setSalario(double salario);", "void xsetMonto(org.apache.xmlbeans.XmlDouble monto);", "void xsetMonto(org.apache.xmlbeans.XmlDouble monto);", "public void setO(double value) {\n this.o = value;\n }", "@Override\n\tpublic void setAttribute(String name, Object value) {\n super.setAttribute(name, value);\n Enumeration<Figure> k = figures();\n while (k.hasMoreElements())\n k.nextElement().setAttribute(name, value);\n }", "public void setTramo(Number value) {\n setAttributeInternal(TRAMO, value);\n }", "void xsetValue(gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type.Value value);", "void setValue(double value);", "public void setA(double value) {\n this.a = value;\n }", "public void setFeIF(String value) {\n setFeIF(Format.toDouble(value));\n }", "void setDiscount(float sconto);", "private void setValue(double value) {\n this.value = value;\n }", "public Number getFoliosintramo() {\n return (Number) getAttributeInternal(FOLIOSINTRAMO);\n }", "public void setFilial(int filial);", "public void setValue(int value)\n {\n // we have assumed value 1 for X and 10 for O\n this.value = value;\n }", "public void setOcjena(double value) {\r\n this.ocjena = value;\r\n }", "public void setIznos(double value) {\n this.iznos = value;\n }", "public void setValue(double value) {\n this.value = value; \n }", "@Override\n public void setAttribute(boolean f)\n {\n checkState();\n attribute = f;\n }", "public void setIdbultoOri(Number value)\n {\n setAttributeInternal(IDBULTOORI, value);\n }", "public void setValorIof(java.lang.Double valorIof) {\n this.valorIof = valorIof;\n }", "public void setFxUfTasaCosto(double value) {\r\n this.fxUfTasaCosto = value;\r\n }", "public void setValue(A value) {this.value = value; }", "void setValueExpression(String attributeName, ValueExpression valueExpression);", "public void setValue(double newV) { // assuming REST API update at instantiation - must be a Set method to prevent access to a variable directly\n this.Value=newV;\n }", "public void setAmount(double amount) {\nloanAmount = amount;\n}", "public void setValue(double newvalue){\n value = newvalue;\n }", "public void setIhoatts(Float ihoatts) {\r\n this.ihoatts = ihoatts;\r\n }", "public abstract void setAcma_valor(java.lang.String newAcma_valor);", "public void setValue(Object o){\n \tthis.value = o;\n }", "public void setValorCalculo(ValoresCalculo valorCalculo)\r\n/* 93: */ {\r\n/* 94:111 */ this.valorCalculo = valorCalculo;\r\n/* 95: */ }", "@Override\r\n\tpublic void salarioNovo(double salario) {\n\t\tthis.valor=salario;\r\n\r\n\t\t\r\n\t}", "public void set(String value){\n switch (field){\n case 0:\n nomComplet = value;\n break;\n case 1:\n rv1 = value;\n break;\n case 2:\n dateDispo = LocalDate.parse(value,formatter);\n break;\n case 3:\n competencePrincipale = value;\n break;\n case 4:\n exp = Double.parseDouble(value);\n break;\n case 5:\n trancheExp = value;\n break;\n case 6:\n ecole = value;\n break;\n case 7:\n classeEcole = value;\n break;\n case 8:\n fonctions = value;\n break;\n case 9:\n dateRV1 = LocalDate.parse(value,formatter);\n case 10:\n rv2 = value;\n break;\n case 11:\n metiers = value;\n break;\n case 12:\n originePiste = value;\n break;\n }\n field++;\n }", "public void setValue(float value) {\n this.value = value;\n }", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "public void setPreco(Float preco) { this.preco = preco; }", "public void setConvertedProductQty (BigDecimal ConvertedProductQty)\n{\nset_Value (\"ConvertedProductQty\", ConvertedProductQty);\n}", "public void setIntensity(int i) {\n this.intensity = i ;\n }", "public void setFxUfTasaMargen(double value) {\r\n this.fxUfTasaMargen = value;\r\n }", "public void setFe(int value) {\n this.fe = value;\n }", "public void set(int index, double value) {\n\t\tattrs.set(index, value);\n\t}", "public void attrito(){\n yCord[0]+=4;\n yCord[1]+=4;\n yCord[2]+=4;\n //e riaggiorna i propulsori (che siano attivati o no) ricalcolandoli sulla base delle coordinate dell'astronave, cambiate\n aggiornaPropulsori();\n \n }", "public void setFila(int fila) {\r\n\t\tthis.fila = fila;\r\n\t}", "public void setA(double a){\n this.a=a;\n }", "public void set(double val);", "@Override\n\tpublic double value(final Attribute att) {\n\t\treturn 0;\n\t}", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "public void setConvertedSplitQty (BigDecimal ConvertedSplitQty)\n{\nset_Value (\"ConvertedSplitQty\", ConvertedSplitQty);\n}", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "void xsetSalario(org.apache.xmlbeans.XmlDouble salario);", "public void setConvertedShrinkQty (BigDecimal ConvertedShrinkQty)\n{\nset_Value (\"ConvertedShrinkQty\", ConvertedShrinkQty);\n}", "public void setPoistumisaika(double poistumisaika) {\n\t\tthis.poistumisaika = poistumisaika + ThreadLocalRandom.current().nextDouble(1, 10);\n\t}", "public void setAOA(float AOA);", "public abstract double set\r\n ( DataID dID // input\r\n , double value // input\r\n );", "public void setFECHACRREVAL(int value) {\n this.fechacrreval = value;\n }", "public void setNumFilhos(int numFilhos){ \n this.numFilhos = numFilhos;\n }", "public void setOhoatts(Float ohoatts) {\r\n this.ohoatts = ohoatts;\r\n }", "public void setLow(double value){low = value;}", "public void setDmaValue(int value);", "public void setValue ( Float value ) {\r\n\t\tgetStateHelper().put(PropertyKeys.value, value);\r\n\t\thandleAttribute(\"value\", value);\r\n\t}", "public Float getFloatAttribute();", "protected void sequence_Attribute(ISerializationContext context, Attribute semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getAttribute_MathOp()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getAttribute_MathOp()));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getAttributeAccess().getMathOpMathOperationParserRuleCall_0(), semanticObject.getMathOp());\n\t\tfeeder.finish();\n\t}", "public void cal_AdjustedFuelMoist(){\r\n\tADFM=0.9*FFM+0.5+9.5*Math.exp(-BUO/50);\r\n}", "public void setValue(double value) {\n this.value = value;\n }", "public void setValue(double value) {\n this.value = value;\n }", "public void setValue(double value) {\n this.value = value;\n }", "public void set(int index, float value) {\r\n RangeCheck(index);\r\n elementData[index] = value;\r\n }", "public void setCijena(double value) {\r\n this.cijena = value;\r\n }", "public void setValue(float value) {\n\t\tthis.value = value;\n\t\tthis.rawValue=Float.toString(value);\n\t}", "public static void attribute(String name, double value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public void setShrinkQty (BigDecimal ShrinkQty)\n{\nset_Value (\"ShrinkQty\", ShrinkQty);\n}", "public double getFlete(){\n return localFlete;\n }", "public abstract void setMontant(Double unMontant);" ]
[ "0.6238009", "0.61664414", "0.6088886", "0.60438436", "0.6013924", "0.60039186", "0.59898037", "0.5966033", "0.5958802", "0.594994", "0.59386736", "0.5934027", "0.5869101", "0.586101", "0.5848199", "0.5848199", "0.5843005", "0.5807593", "0.5784918", "0.5718144", "0.56766367", "0.5655131", "0.5650114", "0.5640276", "0.5639854", "0.56264627", "0.5624171", "0.5606148", "0.56035185", "0.56035185", "0.5601101", "0.5582237", "0.5574789", "0.5551962", "0.55314374", "0.551443", "0.5491336", "0.5483698", "0.5482195", "0.5473251", "0.54564625", "0.5449371", "0.5444547", "0.5443398", "0.5425939", "0.5424987", "0.5423854", "0.5423375", "0.54138494", "0.5355483", "0.5343049", "0.53384024", "0.5328437", "0.53253496", "0.53188586", "0.53185284", "0.53122455", "0.5305576", "0.53046864", "0.53025967", "0.5301694", "0.5301281", "0.53005", "0.5293609", "0.52927256", "0.5289565", "0.52893525", "0.5289272", "0.5288909", "0.52777284", "0.5273222", "0.52705485", "0.5270337", "0.52649176", "0.52530265", "0.5240705", "0.524004", "0.5232637", "0.5232573", "0.5225187", "0.52197176", "0.52185535", "0.521533", "0.521386", "0.5211539", "0.52112925", "0.5205761", "0.5202249", "0.51995003", "0.51897675", "0.51879966", "0.51879966", "0.51879966", "0.5184803", "0.5179259", "0.51783663", "0.5176679", "0.5175413", "0.51727676", "0.51717067" ]
0.6519102
0
Gets the attribute value for the calculated attribute Tramo
public Number getTramo() { return (Number) getAttributeInternal(TRAMO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Number getAlto()\n {\n return (Number)getAttributeInternal(ALTO);\n }", "public Number getTallaId() {\n return (Number)getAttributeInternal(TALLAID);\n }", "public String getMasechta() {\r\n\t\treturn masechtosBavli[masechtaNumber];\r\n\t}", "public float getTaux() {\r\n\treturn this.taux;\r\n}", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "double getTempo();", "public double getT() {\r\n\t\treturn t;\t\r\n\t\t}", "public String getMasechtaTransliterated() {\r\n\t\treturn masechtosBavliTransliterated[masechtaNumber];\r\n\t}", "public Double getDoubleAttribute();", "public abstract Double getMontant();", "@Override\n\tpublic java.lang.String getMoTa() {\n\t\treturn _keHoachKiemDemNuoc.getMoTa();\n\t}", "public Number getAncho()\n {\n return (Number)getAttributeInternal(ANCHO);\n }", "public double getTaxa() {\n\t\treturn taxa;\n\t}", "public double get(CANTalon talon) {\n\t\treturn talon.get();\n\t}", "public double getMtm() {\r\n return mtm;\r\n }", "private double getValMorp ( cell c, morphogen m) {\t\t\r\n\t\tif ( m.equals(morphogen.a))\r\n\t\t\treturn c.getVal1();\r\n\t\telse\r\n\t\t\treturn c.getVal2();\r\n\t}", "public Double getTVA()\n {\n return (20.0/100.0);\n }", "public int get_thema() {\n\t\treturn this.thema;\n\t}", "public int getTilaa() {\r\n return maara - matkustajia;\r\n }", "public BigDecimal getTermlvl() {\r\n return (BigDecimal) getAttributeInternal(TERMLVL);\r\n }", "public double getAStat() {\n\t\treturn aStatM;\n\t}", "public Double getAmmonia() {\n return ammonia;\n }", "double getValue();", "double getValue();", "double getValue();", "public String getAttribute_value() {\n return attribute_value;\n }", "@VTID(14)\r\n double getValue();", "public double getValue(){\n return value;\n }", "public double getValue();", "public java.lang.Double getTaxaCalculada() {\n return taxaCalculada;\n }", "public BigDecimal getsaleamt() {\n return (BigDecimal) getAttributeInternal(SALEAMT);\n }", "Attribute getAttribute();", "public Number getFoliosintramo() {\n return (Number) getAttributeInternal(FOLIOSINTRAMO);\n }", "public double get(int index) {\n\t\treturn attrs.getQuick(index);\n\t}", "public int getTON() {\r\n return ton;\r\n }", "public String getTaxCalculated()\n\t{\n\t\twaitForVisibility(taxCalculated);\n\t\treturn taxCalculated.getText();\n\t}", "public void setTramo(Number value) {\n setAttributeInternal(TRAMO, value);\n }", "double getAxon();", "protected int getTreinAantal(){\r\n return treinaantal;\r\n }", "@Override\r\n\tpublic double getVET() {\r\n\t\treturn getTMB() * getFatorAtividadeFisica();\r\n\t}", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public GenericAttribute getAttribute () {\n return attribute;\n }", "public double getMontant() {\n\t\treturn montant;\n\t}", "public java.lang.Double getMontoAnulacion() {\r\n return montoAnulacion;\r\n }", "java.lang.String getAttribute();", "@AutoEscape\n\tpublic String getMoTa();", "public double calcularTarifa(){\n\t\treturn TARIFA_BASE * 1.2;\n\t}", "public BigDecimal getTrxAmt();", "public double get_yMas()\r\n {\r\n return yMas;\r\n }", "public double getValue() {\n return value;\n }", "public double getValue() {\n return value;\n }", "public double getValue() {\n return value;\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public double var() {\n\t\tint n = this.getAttCount();\n\t\tif (n < 2) return Constants.UNUSED;\n\n\t\tdouble mean = mean();\n\t\tdouble sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble v = this.getValueAsReal(i);\n\t\t\tdouble deviation = v - mean;\n\t\t\tsum += deviation * deviation;\n\t\t}\n\t\treturn sum / (double)(n - 1);\n\t}", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public String getAttribute3() {\n return attribute3;\n }", "private double getValue() {\n return value;\n }", "public double getValue() {\n\t\treturn(value);\n\t}", "public double getValueOfTransceiver() {\n\t\treturn valueOfTransceiver;\n\t}", "public double getTargetArea() {\n return getDouble(\"ta\");\n }", "public double getBaseMtm() {\r\n return baseMtm;\r\n }", "public double getRisultato() {\r\n return risultato;\r\n }", "@Override\r\n\tpublic double getTMB() {\r\n\t\tif (isAdultoJovem()) {\r\n\t\t\treturn 15.3 * anamnese.getPesoUsual() + 679;\r\n\t\t}\r\n\t\tif (isAdulto()) {\r\n\t\t\treturn 11.6 * anamnese.getPesoUsual() + 879;\r\n\t\t}\r\n\t\tif (isIdoso()) {\r\n\t\t\treturn 13.5 * anamnese.getPesoUsual() + 487;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public double getValue()\n {\n return this.value;\n }", "String getAttribute();", "public double getValue() {\n\t\treturn value;\n\t}", "public double getValue() {\n\t\treturn value;\n\t}", "public double getValue() {\n\t\treturn value;\n\t}", "public double getValue() {\r\n return this.value;\r\n }", "public double getPreco();", "public double getPreco();", "@Override\n\tpublic double getValue() {\n\t\treturn value;\n\t}", "public double getValue() {\n return value_;\n }", "String getCADENA_TRAMA();", "public double getValue() {\n return value_;\n }", "public double getValue() {\n return this.value;\n }", "public double getValue() {\n return this.value;\n }", "public Arma obtenerArma() {\n\t\treturn arma;\n\t}", "@Override\n\tpublic double value(final Attribute att) {\n\t\treturn 0;\n\t}", "public double getA();", "public double getValue() {\n\t\treturn this.value; \n\t}", "public double getValue() {\r\n\t\treturn value;\r\n\t}", "public double mleVar() {\n\t\tint n = this.getAttCount();\n\t\tif (n == 0) return Constants.UNUSED;\n\n\t\tdouble mean = mean();\n\t\tdouble sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble v = this.getValueAsReal(i);\n\t\t\tdouble deviation = v - mean;\n\t\t\tsum += deviation * deviation;\n\t\t}\n\t\treturn sum / (double)n;\n\t}", "public double getAttribute(ExtendedStatistic statistic) {\n try {\n return cacheStatisticManager.getAttribute(statistic);\n } catch (ExtendedStatisticNotFoundException e) {\n log.unableToGetStatistic(statistic, e);\n }\n return 0;\n }", "public Prestamo getPrestamo() {\r\n return prestamo;\r\n }", "public double GetMashTemperature() {\n\t\treturn msc.GetMashTemperature();\n\t}", "public double getMontantOp() {\n return montantOp;\n }", "public double getCena() {\r\n\t\treturn cena;\r\n\t}", "public double getValue() {\n\t\treturn this.value;\n\t}", "public String getattribut() \n\t{\n\t\treturn attribut;\n\t}", "public double getTaxValue() {\n\t\treturn TaxCalculatorUtil.getTaxValue(getConfiguredPrice(),getPromotionValue(), getCouponDiscountValue(), getTaxRate(), getTaxationType());\n\t}", "@Override\r\n\tpublic double getPesoTeorico() {\r\n\r\n\t\treturn anamnese.getAltura() * anamnese.getAltura() * 22.0;\r\n\t}", "double getBasedOnValue();", "public BigDecimal getACCRUAL_AMT() {\r\n return ACCRUAL_AMT;\r\n }", "public double getValue()\r\n\t{\r\n\t\treturn (double) value;\r\n\t}", "public double getA() {\n return a;\n }", "public AXValue getValue() {\n return value;\n }", "public abstract double getPreis();", "Double getValue();", "public String GetMTAAmount() throws Exception {\n\t\tString mtaAmountToChk = \"\";\n\t\ttry {\n\n\t\t\tWaitUtils.waitForElementPresent(driver, btnDashboard, \"Get Quote page has not loaded\");\n\t\t\tWaitUtils.waitForElementPresent(driver, MTAamt_GetPage, \"MTA amount field was not found on dashboard page\");\n\t\t\tString mtaAmt = MTAamt_GetPage.getText();\n\t\t\tif (mtaAmt != null) {\n\t\t\t\tmtaAmountToChk = mtaAmt.split(\"£\")[1];\n\n\t\t\t}\n\n\t\t\treturn mtaAmountToChk;\n\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tthrow new Exception(\"Unable to fetch the MTA amount,Premium values could be zero or null\" + e);\n\t\t}\n\t}" ]
[ "0.6336105", "0.6330413", "0.6169207", "0.61126244", "0.59663105", "0.59569275", "0.59124106", "0.5901806", "0.5886002", "0.5877504", "0.5867347", "0.5862642", "0.58583003", "0.5851258", "0.5836886", "0.5834421", "0.5822851", "0.5813336", "0.5807723", "0.5794775", "0.57656276", "0.5762164", "0.5755843", "0.5755843", "0.5755843", "0.574966", "0.57470644", "0.5743092", "0.5740814", "0.5733159", "0.5731906", "0.5720794", "0.5709642", "0.5703004", "0.570212", "0.56988406", "0.5687382", "0.5686187", "0.56858706", "0.5684037", "0.56763625", "0.5669921", "0.56603724", "0.565343", "0.5637057", "0.56341153", "0.563144", "0.5625339", "0.56026846", "0.5601705", "0.5601705", "0.5601705", "0.5598979", "0.5585028", "0.5581217", "0.55806106", "0.55759645", "0.55719954", "0.5565738", "0.55578655", "0.5550216", "0.554987", "0.55493945", "0.5540534", "0.5537964", "0.5537724", "0.5537724", "0.5537724", "0.5537539", "0.553333", "0.553333", "0.5532442", "0.5531221", "0.55255586", "0.55240834", "0.552186", "0.552186", "0.5519947", "0.5519083", "0.5515297", "0.551319", "0.5512414", "0.55107486", "0.5510302", "0.5505948", "0.5498324", "0.54954475", "0.5487122", "0.5485763", "0.5479602", "0.5468005", "0.5467446", "0.5465941", "0.5462998", "0.54606134", "0.54556227", "0.5455178", "0.5449625", "0.5448573", "0.54417974" ]
0.81152433
0
Sets value as the attribute value for the calculated attribute Tramo
public void setTramo(Number value) { setAttributeInternal(TRAMO, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Number getTramo() {\n return (Number) getAttributeInternal(TRAMO);\n }", "public void setMtm(double value) {\r\n this.mtm = value;\r\n }", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public void setAlto(Number value)\n {\n setAttributeInternal(ALTO, value);\n }", "protected abstract void setValue(Entity e,FloatTrait t,float value);", "public abstract void setMontant(Double unMontant);", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "public void setTaux(final float newTaux) {\r\n\tthis.taux = newTaux;\r\n}", "@Override\n public void setValue(int index, Object value)\n {\n if (index == 1)\n {\n super.setValue(index, value); \n }\n else if (index == 2)\n {\n if (m_Scaler != 0)\n {\n try\n { \n m_Value = ((Number)value).doubleValue() * getScaler();\n }\n catch (Exception ex)\n {\n //Sometimes scaler is set for wrong Object type.\n setValue(value);\n }\n }\n else\n {\n setValue(value);\n }\n }\n else if (index == 3)\n { \n //Set default values.\n if (value == null)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n if (Array.getLength(value) != 2)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n m_Scaler = ((Number)Array.get(value, 0)).intValue();\n m_Unit = (((Number)Array.get(value, 1)).intValue() & 0xFF);\n }\n }\n }\n else\n {\n throw new IllegalArgumentException(\"GetValue failed. Invalid attribute index.\");\n }\n }", "public void setTON(int value) {\r\n this.ton = value;\r\n }", "public void setA(double value) {\n this.a = value;\n }", "public void setValue(double value) {\n this.value = value; \n }", "private void setValue(double value) {\n this.value = value;\n }", "void setValue(double value);", "public void setFxUfTasaMargen(double value) {\r\n this.fxUfTasaMargen = value;\r\n }", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}", "void setMonto(double monto);", "void setMonto(double monto);", "public baconhep.TTau.Builder setEta(float value) {\n validate(fields()[1], value);\n this.eta = value;\n fieldSetFlags()[1] = true;\n return this; \n }", "public void setBaseMtm(double value) {\r\n this.baseMtm = value;\r\n }", "public void setTallaId(Number value) {\n setAttributeInternal(TALLAID, value);\n }", "public void setMoTa(String moTa);", "@Override\n\tpublic void setMontant(double s) {\n\t\t\n\t}", "Neuron setAxon(double newValue);", "public void setFlete(double param){\n \n this.localFlete=param;\n \n\n }", "public void setMontoEstimado(double param){\n \n this.localMontoEstimado=param;\n \n\n }", "public void setMontoCatalogoEstimado(double param){\n \n this.localMontoCatalogoEstimado=param;\n \n\n }", "public void set(int index, double value) {\n\t\tattrs.set(index, value);\n\t}", "public T set(String name, Object value)\n\t\t\tthrows TablesawException\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tif (value instanceof String)\n\t\t\t\t{\n\t\t\t\tm_intHelper.setAttribute(m_project, m_antObject, name, (String)value);\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tMethod m = m_intHelper.getAttributeMethod(name);\n\t\t\t\tm.invoke(m_antObject, value);\n\t\t\t\t}\n\t\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t\t{\n\t\t\t// TODO: add better error\n\t\t\tthrow new TablesawException(iae);\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new TablesawException(\"Error setting attribute '\"+name+\"' on '\"+m_elementName+\"'\", e);\n\t\t\t}\n\t\t\n\t\treturn ((T)this);\n\t\t}", "public void setValue(double value) {\n this.value = value;\n }", "public void setValue(double value) {\n this.value = value;\n }", "public void setValue(double value) {\n this.value = value;\n }", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "protected void sequence_Attribute(ISerializationContext context, Attribute semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getAttribute_MathOp()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getAttribute_MathOp()));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getAttributeAccess().getMathOpMathOperationParserRuleCall_0(), semanticObject.getMathOp());\n\t\tfeeder.finish();\n\t}", "void xsetValue(gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type.Value value);", "final public void setAttr(final String name, final float value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Value = value;\r\n\t\t}\r\n\t}", "public void setsaleamt(BigDecimal value) {\n setAttributeInternal(SALEAMT, value);\n }", "public void set(double val);", "public void setA(double a){\n this.a=a;\n }", "public void setTrxAmt (BigDecimal TrxAmt);", "public void setValue(double newvalue){\n value = newvalue;\n }", "public void setMontoSolicitado(double param){\n \n this.localMontoSolicitado=param;\n \n\n }", "void setValue(T value) throws YangException;", "void setInt(int attributeValue);", "public void setPreco(Double preco);", "public void setMontoFacturado(double param){\n \n this.localMontoFacturado=param;\n \n\n }", "public baconhep.TTau.Builder setM(float value) {\n validate(fields()[3], value);\n this.m = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "public void setValue (double value) {\n\t\tthis.value = value;\n\t}", "public abstract void setValue(double fltValue);", "public void setAttrib(String name, String value);", "void xsetMonto(org.apache.xmlbeans.XmlDouble monto);", "void xsetMonto(org.apache.xmlbeans.XmlDouble monto);", "void setInternal(ATTRIBUTES attribute, Object iValue);", "public void setUnit () {\n\t\tdouble f = factor;\n\t\t/* Transform the value as a part of Unit */\n\t\tif (Double.isNaN(value)) return;\n\t\tif ((mksa&_log) != 0) {\n\t\t\tif ((mksa&_mag) != 0) value *= -2.5;\n\t\t\tfactor *= AstroMath.dexp(value);\n\t\t\tvalue = 0;\n\t\t}\n\t\telse {\n\t\t\tfactor *= value;\n\t\t\tvalue = 1.;\n\t\t}\n\t\t// Transform also the symbol\n\t\tif (f != factor) {\n\t\t\tif (symbol == null) symbol = edf(factor);\n\t\t\telse symbol = edf(factor) + toExpr(symbol);\n\t\t}\n\t}", "public void setTheta(double value) {\r\n this.theta = value;\r\n }", "public void setValue(double value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setO(double value) {\n this.o = value;\n }", "public void setProcenatOtkazivanje(double value) {\n this.procenatOtkazivanje = value;\n }", "public void setEta(java.lang.Float value) {\n this.eta = value;\n }", "public static void attribute(String name, double value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}", "public void setMontoDescuento(double param){\n \n this.localMontoDescuento=param;\n \n\n }", "void setValue(T value);", "void setValue(T value);", "public void set(int value) {\n\t\ttem = value;\n\t\tSystem.out.println(\"\\tAir conditioner is set to \" + tem +\" degrees\");\n\t}", "public void setValue(double value) {\n\t\tthis.value = value;\n\t}", "public Builder setTax(double value) {\n \n tax_ = value;\n onChanged();\n return this;\n }", "public abstract void setAcma_valor(java.lang.String newAcma_valor);", "public void setMontoFacturadoSinDescuento(double param){\n \n this.localMontoFacturadoSinDescuento=param;\n \n\n }", "public void setTermlvl(BigDecimal value) {\r\n setAttributeInternal(TERMLVL, value);\r\n }", "@Override\n\tprotected void setValue(String name, TipiValue tv) {\n\t}", "public void setFxUfTasaCosto(double value) {\r\n this.fxUfTasaCosto = value;\r\n }", "public abstract void setValue(T value);", "public void setMontoPedidoRechazado(double param){\n \n this.localMontoPedidoRechazado=param;\n \n\n }", "public void setVega(double value) {\r\n this.vega = value;\r\n }", "public void setTcCosto(double value) {\r\n this.tcCosto = value;\r\n }", "void setIVA(float iva);", "public void setAtmo(boolean value) {\n this.atmo = value;\n }", "public float getTaux() {\r\n\treturn this.taux;\r\n}", "public void setTrueAnamoly(double value) {\n this.trueAnamoly = value;\n }", "public void setValue(A value) {this.value = value; }", "@Override\n public void set(double value)\n {\n final String funcName = \"set\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"value=%f\", value);\n }\n\n if (!TrcUtil.inRange(value, -1.0, 1.0))\n {\n throw new IllegalArgumentException(\"Value must be in the range of -1.0 to 1.0.\");\n }\n\n if (softLowerLimitEnabled && value < 0.0 && getPosition() <= softLowerLimit\n || softUpperLimitEnabled && value > 0.0 && getPosition() >= softUpperLimit)\n {\n value = 0.0;\n }\n\n if (maxVelocity == 0.0)\n {\n currPower = value;\n }\n // else\n // {\n // controlMode = ControlMode.Velocity;\n // value *= maxVelocity;\n // value = TrcUtil.round(value); // Velocity mode is in sensor units/100ms, and sensor units are in integers.\n // }\n motor.set(value);\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"! (value=%f)\", value);\n }\n }", "public void setAmmonia(Double ammonia) {\n this.ammonia = ammonia;\n }", "public void setORM_TUtu(orm.TU value) {\r\n\t\tthis.TUtu = value;\r\n\t}", "void setSalario(double salario);", "public void setTomato(double countNo) {\n tomato = countNo;\r\n }", "public void setValue(T value) \n\t{\n\t\tthis.value = value;\n\t}", "public void attrito(){\n yCord[0]+=4;\n yCord[1]+=4;\n yCord[2]+=4;\n //e riaggiorna i propulsori (che siano attivati o no) ricalcolandoli sulla base delle coordinate dell'astronave, cambiate\n aggiornaPropulsori();\n \n }", "public void setValue(T value) {\n this.value = value;\n }", "protected void func_110147_ax()\n {\n super.applyEntityAttributes();\n this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(16.0D);\n this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.20000000298023224D);\n }", "public void setTax(Double tax);", "public void setFoliosintramo(Number value) {\n setAttributeInternal(FOLIOSINTRAMO, value);\n }", "public void setCurrentQtr(Number value) {\r\n setAttributeInternal(CURRENTQTR, value);\r\n }", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\r\n\t\tsuper.setAttribute(name, value, objectList);\r\n\t\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\r\n\t\t\tif (name.equals(\"x\"))\t\t{ m_pos.setX(val); }\r\n\t\t\tif (name.equals(\"y\"))\t\t{ m_pos.setY(val); }\r\n\t\t\tif (name.equals(\"radius\")) \t{ m_r=val; }\t\t\r\n\t\t\r\n\t\t}\r\n\t\tcatch (Exception e) {}\r\n\t\r\n\t}", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "public void setTaxAmount(double value) {\n this.taxAmount = value;\n }", "public void setValor(Double valor) {\n this.valor = valor;\n }", "public\t\tvoid\t\tsetNormalizedValue(double value)\n\t\t{\n\t\tif (value > 1.0)\n\t\t\tvalue = 1.0;\n\t\telse if (value < 0.0)\n\t\t\tvalue = 0.0;\n\n\t\tthis.value = value;\n\t\taddNormalizedTick(value);\n\t\tsetValueDisplay(\"\" + (minimumValue + value * (maximumValue - minimumValue)));\n\t\tdispatchAction(Mi_VALUE_CHANGED_ACTION);\n\t\t}", "public void setInfluence(float val) {\n influence = val;\n }", "public void changeTaxRate (double value) {\n this.taxRate = value;\n }" ]
[ "0.63084567", "0.6111019", "0.6056065", "0.594669", "0.5924046", "0.5876625", "0.585237", "0.5813141", "0.57946116", "0.57667994", "0.57540286", "0.57253975", "0.57076174", "0.5700056", "0.56746167", "0.56657386", "0.5652886", "0.5652886", "0.5634037", "0.56322426", "0.5610247", "0.55793095", "0.5547118", "0.55423015", "0.55304766", "0.55223256", "0.55182517", "0.5515421", "0.551388", "0.55020005", "0.55020005", "0.55020005", "0.550002", "0.5499046", "0.5498158", "0.5490744", "0.54703635", "0.5467219", "0.54635197", "0.5447462", "0.5442244", "0.544167", "0.5435821", "0.5423433", "0.5417385", "0.54162806", "0.5407804", "0.54038644", "0.5403166", "0.54005766", "0.539756", "0.539756", "0.5395654", "0.53925985", "0.5390218", "0.5358929", "0.5355217", "0.53311193", "0.5327238", "0.53121287", "0.5311834", "0.53105974", "0.5306143", "0.5306143", "0.5299787", "0.5297842", "0.5279904", "0.52761924", "0.5274196", "0.5269383", "0.5267589", "0.5263841", "0.5260407", "0.5247067", "0.5240184", "0.5236292", "0.523428", "0.52308357", "0.52257735", "0.5225569", "0.52200466", "0.5218721", "0.52134436", "0.5212231", "0.5210521", "0.5210249", "0.5207739", "0.5198166", "0.5195799", "0.5192997", "0.51873165", "0.5185316", "0.5169591", "0.51600325", "0.51599693", "0.5155786", "0.5152401", "0.5152342", "0.5150837", "0.513714" ]
0.7580508
0
Gets the attribute value for the calculated attribute Fee
public Number getFee() { return (Number) getAttributeInternal(FEE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BigDecimal getFee() {\n return fee;\n }", "public BigDecimal getFee() {\r\n return fee;\r\n }", "public BigDecimal getFee() {\n return fee;\n }", "public double getFee() {\n\t\treturn fee;\n\t}", "public int getFee()\n {\n return fee;\n }", "public String getFee() {\n\t\treturn fee;\n\t}", "public long getFee() {\n return fee_;\n }", "public long getFee() {\n return fee_;\n }", "public AmountType getFee() {\n\t return this.fee;\n\t}", "public double calFee() {\n return weight * FEE + GiftBox.this.price;\n }", "public BigDecimal getTotalFee() {\n return totalFee;\n }", "public int getFee(){return 0;}", "public abstract double getComplianceFee();", "public BigDecimal getsaleamt() {\n return (BigDecimal) getAttributeInternal(SALEAMT);\n }", "public double getFees(){\n\t\treturn (this.getPassengerFacilityFee() + this.get911SecurityFee());\n\t}", "public BigDecimal getAgencyFee() {\r\n return agencyFee;\r\n }", "public double totalFee(){\n return (this.creditHours*this.feePerCreditHour)-this.scholarshipAmount+((this.healthInsurancePerAnnum*4)/12);\n }", "public String getFeeCode() {\r\n return feeCode;\r\n }", "public String getFeeDescription() {\n return feeDescription;\n }", "public BigDecimal getAdvisorFee() {\r\n return advisorFee;\r\n }", "private double getFee(int ISBN) {\r\n\t\t/* Query to get the fee */\r\n\t\tdouble price = db.findPrice(ISBN);\r\n\t\tSystem.out.println(\"price that you're charging: \" + price / 2);\r\n\t\treturn (price / 2);\r\n\t}", "public double getTotalFactoringFee() {\n return totalFactoringFee;\n }", "public BigDecimal getEstimatedFees() {\n return estimatedFees;\n }", "public nc.itf.crd.webservice.izyhtwebservice.FeeAccrDataDocument.FeeAccrData getFeeAccrData()\n {\n synchronized (monitor())\n {\n check_orphaned();\n nc.itf.crd.webservice.izyhtwebservice.FeeAccrDataDocument.FeeAccrData target = null;\n target = (nc.itf.crd.webservice.izyhtwebservice.FeeAccrDataDocument.FeeAccrData)get_store().find_element_user(FEEACCRDATA$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "@Override\r\n public double purchaseFee(){\r\n return fee;\r\n }", "public int getDeliveryFee()\n {\n return deliveryFee;\n }", "public Double getTotalBuyFee() {\r\n return totalBuyFee;\r\n }", "public BigDecimal getMonthFee() {\r\n return monthFee;\r\n }", "public BigDecimal getTixianFee() {\r\n return tixianFee;\r\n }", "public BigDecimal getGuaranteeFee() {\r\n return guaranteeFee;\r\n }", "public BigDecimal getwPrFee() {\n return wPrFee;\n }", "public Float getDeliveryfee() {\n return deliveryfee;\n }", "public BigDecimal\tgetOrderFee();", "public Number getAmount() {\n return (Number) getAttributeInternal(AMOUNT);\n }", "@Override\n\tpublic double getAdditionalFee() {\n\t\t\n\t\treturn 0;\n\t}", "public abstract double getLateFee(int daysLate);", "public BigDecimal getFC_AMOUNT() {\r\n return FC_AMOUNT;\r\n }", "@Schema(description = \"The type of fee. For more information about Selling on Amazon fees, see [Selling on Amazon Fee Schedule](https://sellercentral.amazon.com/gp/help/200336920) on Seller Central. For more information about Fulfillment by Amazon fees, see [FBA features, services and fees](https://sellercentral.amazon.com/gp/help/201074400) on Seller Central.\")\n public String getFeeType() {\n return feeType;\n }", "public BigDecimal getLBR_TaxReliefAmt();", "public double getServiceFee() {\r\n\t\treturn 0.00;\r\n\t}", "public BigDecimal getRechargeFee() {\n return rechargeFee;\n }", "public BigDecimal getBigDecimalAttribute();", "@Override\n\tpublic double getAdditionalFee() {\n\t\treturn 0.0;\n\t}", "public BigDecimal getFagentgathrate() {\n return fagentgathrate;\n }", "public BigDecimal getLBR_TaxDeferralAmt();", "public Float getFloatAttribute();", "public BigDecimal getLBR_DIFAL_TaxAmtFCPUFDest();", "public double tuitionFee(){\n return this.creditHours*this.feePerCreditHour;\n }", "public String getFeeReason() {\n return feeReason;\n }", "public java.math.BigDecimal getAz_ant() throws java.rmi.RemoteException;", "public int getValueOfBonus() {\n return valueOfBonus;\n }", "public Number getAlto()\n {\n return (Number)getAttributeInternal(ALTO);\n }", "public double getFrecuencia() {\r\n return frecuencia;\r\n }", "public Double getFat() {\n return product.getFat() * weight / 100;\n }", "BigDecimal getFare();", "@Override\n\tpublic double getRentalFee() {\n\t\treturn 10;\n\t}", "public double getContestFee() {\r\n return contestFee;\r\n }", "public String getAttribute_value() {\n return attribute_value;\n }", "double getPaid();", "public BigDecimal getRevenueFee() {\r\n return revenueFee;\r\n }", "public double getValueOfEDFA() {\n\t\treturn valueOfEDFA;\n\t}", "public abstract double calculateFee(int aWidth);", "@Override\n\tpublic double getBalanta() {\n\t\treturn this.balanta;\n\t}", "public BigDecimal getFchargerebate() {\n return fchargerebate;\n }", "public BigDecimal getCalculateAmt() {\n return calculateAmt;\n }", "double getPaidAmount();", "public double FullfagetPrice()\n {\n double futlfaget = totalpris + fragt;\n return futlfaget;\n\n }", "@Override\n\tpublic Integer getPayTotalFee() {\n\t\treturn getRealRegFee() + getRealTreatFee();\n\t}", "float getAmount();", "public BigDecimal getMarkProfit() {\r\n return markProfit;\r\n }", "public double getCEMENTAmount();", "final public float getFloatAttr() {\r\n\t\t\tif(mName.length() == 0)\r\n\t\t\t\treturn -1;\r\n\t\t\tif(mSaveAttr == null)\r\n\t\t\t\treturn getAttr(mName).Value;\r\n\t\t\treturn mSaveAttr.Value;\r\n\t\t}", "public BigDecimal getLBR_DIFAL_TaxAmtICMSUFDest();", "Money getDiscountValue();", "public BigDecimal getLBR_TaxAmtCredit();", "public void setFee(String fee) {\n\t\tthis.fee = fee;\n\t}", "public PriceToEstimateFees getPriceToEstimateFees() {\n return priceToEstimateFees;\n }", "public BigDecimal getCHARGE_AMOUNT() {\r\n return CHARGE_AMOUNT;\r\n }", "public BigDecimal getLBR_ICMSST_TaxAmtUFDes();", "public int getEntryFee() {\n\t\treturn entryFee;\n\t}", "public io.lightcone.data.types.Amount getAmountF() {\n if (amountFBuilder_ == null) {\n return amountF_ == null ? io.lightcone.data.types.Amount.getDefaultInstance() : amountF_;\n } else {\n return amountFBuilder_.getMessage();\n }\n }", "public void setFee(BigDecimal fee) {\r\n this.fee = fee;\r\n }", "public Double getTax();", "public void setFee(int fee)\n {\n this.fee = fee;\n }", "public double getBonus(){\r\n return bonus;\r\n }", "public double getPeluangFK(){\n return fakultas[0];\n }", "public Integer getFeeNameUid() {\n return feeNameUid;\n }", "public Character getAdjustmentFeeFlag() {\n return adjustmentFeeFlag;\n }", "public BigDecimal getFdeliverypricerate() {\n return fdeliverypricerate;\n }", "public Double getDoubleAttribute();", "public BigDecimal getEL_AMOUNT() {\r\n return EL_AMOUNT;\r\n }", "public BigDecimal getLBR_TaxAmt();", "public void setFee(BigDecimal fee) {\n this.fee = fee;\n }", "public BigDecimal getLBR_ICMSST_TaxAmtUFSen();", "public BigDecimal getAgencyProfit() {\r\n return agencyProfit;\r\n }", "public BigDecimal getsalehdrseq() {\n return (BigDecimal) getAttributeInternal(SALEHDRSEQ);\n }", "public String getTaxCalculated()\n\t{\n\t\twaitForVisibility(taxCalculated);\n\t\treturn taxCalculated.getText();\n\t}", "public BigDecimal getLBR_DIFAL_TaxRateFCPUFDest();", "public float getValue()\n\t{\n\t\treturn this.value;\n\t}", "public BigDecimal getFcontractid() {\n return fcontractid;\n }" ]
[ "0.73172367", "0.7313013", "0.7287763", "0.7271854", "0.7237126", "0.71675956", "0.7161881", "0.71039134", "0.70276767", "0.6775643", "0.6693983", "0.667632", "0.66582215", "0.65831697", "0.6581549", "0.64811647", "0.6445793", "0.6429452", "0.6393943", "0.6360177", "0.62726486", "0.62119174", "0.6186372", "0.613767", "0.6132564", "0.61073303", "0.610488", "0.6102319", "0.6094963", "0.6081283", "0.60801375", "0.6057084", "0.6053586", "0.60280365", "0.5961542", "0.5932929", "0.5931634", "0.5876423", "0.5874643", "0.5860681", "0.58593196", "0.58391064", "0.5816653", "0.5815062", "0.58144915", "0.5810439", "0.58102334", "0.5806757", "0.5803377", "0.5793149", "0.5781394", "0.5771794", "0.5756042", "0.57535785", "0.5748699", "0.57468385", "0.57206917", "0.5717731", "0.57033175", "0.56986797", "0.5691947", "0.5690628", "0.568428", "0.56794286", "0.5676645", "0.5674365", "0.5671763", "0.5667339", "0.5663762", "0.56577027", "0.5656604", "0.563708", "0.56358576", "0.5634461", "0.5615989", "0.5615571", "0.56152374", "0.560851", "0.56070507", "0.5585025", "0.5584851", "0.5582793", "0.5577944", "0.5577534", "0.55772537", "0.55720407", "0.5571388", "0.5561857", "0.5553261", "0.55449647", "0.553767", "0.5533658", "0.55287415", "0.55248785", "0.55239433", "0.5518103", "0.5517992", "0.5517889", "0.55170715", "0.55149156" ]
0.78432286
0
Sets value as the attribute value for the calculated attribute Fee
public void setFee(Number value) { setAttributeInternal(FEE, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFee(int fee)\n {\n this.fee = fee;\n }", "public void setFee(BigDecimal fee) {\r\n this.fee = fee;\r\n }", "public void setFee(BigDecimal fee) {\n this.fee = fee;\n }", "public void setFee(AmountType fee) {\n\t this.fee = fee;\n\t}", "public Builder setFee(long value) {\n \n fee_ = value;\n onChanged();\n return this;\n }", "public void setFee(String fee) {\n\t\tthis.fee = fee;\n\t}", "public BigDecimal getFee() {\r\n return fee;\r\n }", "public BigDecimal getFee() {\n return fee;\n }", "public BigDecimal getFee() {\n return fee;\n }", "public double getFee() {\n\t\treturn fee;\n\t}", "public long getFee() {\n return fee_;\n }", "public int getFee(){return 0;}", "public void setsaleamt(BigDecimal value) {\n setAttributeInternal(SALEAMT, value);\n }", "public int getFee()\n {\n return fee;\n }", "public Number getFee() {\n return (Number) getAttributeInternal(FEE);\n }", "public long getFee() {\n return fee_;\n }", "public String getFee() {\n\t\treturn fee;\n\t}", "public AmountType getFee() {\n\t return this.fee;\n\t}", "@Override\r\n public double purchaseFee(){\r\n return fee;\r\n }", "public double calFee() {\n return weight * FEE + GiftBox.this.price;\n }", "public synchronized void applyFee() {\r\n balance -= FEE;\r\n }", "public void setFeeAccrData(nc.itf.crd.webservice.izyhtwebservice.FeeAccrDataDocument.FeeAccrData feeAccrData)\n {\n synchronized (monitor())\n {\n check_orphaned();\n nc.itf.crd.webservice.izyhtwebservice.FeeAccrDataDocument.FeeAccrData target = null;\n target = (nc.itf.crd.webservice.izyhtwebservice.FeeAccrDataDocument.FeeAccrData)get_store().find_element_user(FEEACCRDATA$0, 0);\n if (target == null)\n {\n target = (nc.itf.crd.webservice.izyhtwebservice.FeeAccrDataDocument.FeeAccrData)get_store().add_element_user(FEEACCRDATA$0);\n }\n target.set(feeAccrData);\n }\n }", "public void setAfford(BigDecimal afford)\n {\n this.afford = afford;\n }", "public BigDecimal getTotalFee() {\n return totalFee;\n }", "public void setAmount(double value) {\n this.amount = value;\n }", "public void setAgencyFee(BigDecimal agencyFee) {\r\n this.agencyFee = agencyFee;\r\n }", "public void setAmount(double amount) {\nloanAmount = amount;\n}", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public void setAmount(double value) {\n this.amount = value;\n }", "public void updateStudentFees(double fees){\n feesPaid+=fees;\n school.updateMoneyEarned(feesPaid);\n }", "protected abstract void setValue(Entity e,FloatTrait t,float value);", "public void setValue(BigDecimal value) { this.m_value = value; }", "public abstract void setValue(double fltValue);", "public void setCost (BigDecimal Cost)\n{\nif (Cost == null) throw new IllegalArgumentException (\"Cost is mandatory\");\nset_Value (\"Cost\", Cost);\n}", "public void payFees(int fees) {\n feesPaid += fees;\n School.updateTotalMoneyEarned(feesPaid);\n }", "final public void setAttr(final String name, final float value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Value = value;\r\n\t\t}\r\n\t}", "public Builder setAmountF(io.lightcone.data.types.Amount value) {\n if (amountFBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n amountF_ = value;\n onChanged();\n } else {\n amountFBuilder_.setMessage(value);\n }\n\n return this;\n }", "public void setTixianFee(BigDecimal tixianFee) {\r\n this.tixianFee = tixianFee;\r\n }", "void setTax(BigDecimal tax);", "public void setAdvisorFee(BigDecimal advisorFee) {\r\n this.advisorFee = advisorFee;\r\n }", "public void setMontoFacturado(double param){\n \n this.localMontoFacturado=param;\n \n\n }", "public String getFeeCode() {\r\n return feeCode;\r\n }", "public EdgeNeon setAmount(double value) throws ParameterOutOfRangeException\n {\n\t\tif(value > 100.00 || value < 0.00)\n\t {\n\t throw new ParameterOutOfRangeException(value, 0.00, 100.00);\n\t }\n\n m_Amount = value;\n setProperty(\"amount\", value);\n return this;\n }", "void setValue(BigDecimal value);", "public Builder clearFee() {\n \n fee_ = 0L;\n onChanged();\n return this;\n }", "public void setEstimatedFees(BigDecimal aEstimatedFees) {\n estimatedFees = aEstimatedFees;\n }", "public void setF(){\n\t\tf=calculateF();\n\t}", "public void setAmount(double value) {\r\n\t\tthis.amount = value;\r\n\t}", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "public void setFeePerCreditHour(double feePerCreditHour) {\n this.feePerCreditHour = feePerCreditHour;\n }", "public BigDecimal getAdvisorFee() {\r\n return advisorFee;\r\n }", "public void setTotalFee(BigDecimal totalFee) {\n this.totalFee = totalFee;\n }", "public void setMontoFacturadoSinDescuento(double param){\n \n this.localMontoFacturadoSinDescuento=param;\n \n\n }", "public void setDeliveryFee(int deliveryFee)\n {\n this.deliveryFee = deliveryFee;\n }", "public void setFlete(double param){\n \n this.localFlete=param;\n \n\n }", "@Override\n\tpublic void calculateAndUpdateBalance() {\n\n\t\tbalance -= fee;\n\n\t}", "public BigDecimal getAgencyFee() {\r\n return agencyFee;\r\n }", "private void setTotalValueAndNet(){\n\t\tBigDecimal currentPrice = getCurrentPrice(); //getCurrentPrice() is synchronized already\n\t\tsynchronized(this){\n\t\t\t//If quantity == 0, then there's no total value or net\n\t\t\tif(quantityOfShares > 0){\n\t\t\t\ttotalValue = currentPrice.multiply(new BigDecimal(quantityOfShares));\n\t\t\t\tnet = totalValue.subtract(principle);\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttotalValue = new BigDecimal(0);\n\t\t\t\tnet = new BigDecimal(0);\n\t\t\t}\n\t\t}\n\t}", "public void setDeliveryfee(Float deliveryfee) {\n this.deliveryfee = deliveryfee;\n }", "public void setTax(Double tax);", "public String getFeeDescription() {\n return feeDescription;\n }", "void setIncome(double amount);", "void setValue(Endpoint endpoint, double value) {\n endpoint.setValue(this, value);\n }", "public abstract double getComplianceFee();", "public BigDecimal getTixianFee() {\r\n return tixianFee;\r\n }", "public Builder setAmountF(\n io.lightcone.data.types.Amount.Builder builderForValue) {\n if (amountFBuilder_ == null) {\n amountF_ = builderForValue.build();\n onChanged();\n } else {\n amountFBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "void setAmount(ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount amount);", "public double totalFee(){\n return (this.creditHours*this.feePerCreditHour)-this.scholarshipAmount+((this.healthInsurancePerAnnum*4)/12);\n }", "public void setPassenger(int p, int fee)\n\t{\n\t\tsizePass = p;\n\t\tcountPass += p;\n\t\tpassengerfee = fee;\n\t\ttotpassengerfee += p * fee;\n\t}", "double setCost(double cost);", "void setCost(double cost);", "public BigDecimal getMonthFee() {\r\n return monthFee;\r\n }", "public abstract BaseQuantityDt setValue(BigDecimal theValue);", "public void setTotalFactoringFee(double totalFactoringFee) {\n this.totalFactoringFee = totalFactoringFee;\n }", "public void setValue(double value) {\n this.value = value; \n }", "public void setCost(double value) {\n this.cost = value;\n }", "public void changeTaxRate (double value) {\n this.taxRate = value;\n }", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "public void setValue(float value) {\n this.value = value;\n }", "public void setwPrFee(BigDecimal wPrFee) {\n this.wPrFee = wPrFee;\n }", "private void setValue(double value) {\n this.value = value;\n }", "public void setAlto(Number value)\n {\n setAttributeInternal(ALTO, value);\n }", "public void setContestFee(double contestFee) {\r\n this.contestFee = contestFee;\r\n }", "void setBalance(double value);", "public Builder setPaid(double value) {\n \n paid_ = value;\n onChanged();\n return this;\n }", "public void setMonthFee(BigDecimal monthFee) {\r\n this.monthFee = monthFee;\r\n }", "public void setLBR_TaxReliefAmt (BigDecimal LBR_TaxReliefAmt);", "public void setAmount(BigDecimal value) {\n this.amount = value;\n }", "public void setFeIF(double value) {\n _avTable.set(ATTR_FE_IF, value);\n }", "void setValue(double value);", "public void setRate(double annualRate) {\nmonthlyInterestRate = annualRate / 100.0 / MONTHS;\n}", "public FeeDetail add(FeeDetail f) {\r\n\t\t\r\n\t\tthis.fee += f.fee;\r\n\t\tthis.feeVat += f.feeVat;\r\n\t\treturn this;\r\n\t}", "public void setFeeList(List<FeeComponent> feeList) {\r\n this.feeList = feeList;\r\n }", "public void setMontoEstimado(double param){\n \n this.localMontoEstimado=param;\n \n\n }", "public BigDecimal getEstimatedFees() {\n return estimatedFees;\n }", "public abstract double calculateFee(int aWidth);", "@Override\n public void setValue(int index, Object value)\n {\n if (index == 1)\n {\n super.setValue(index, value); \n }\n else if (index == 2)\n {\n if (m_Scaler != 0)\n {\n try\n { \n m_Value = ((Number)value).doubleValue() * getScaler();\n }\n catch (Exception ex)\n {\n //Sometimes scaler is set for wrong Object type.\n setValue(value);\n }\n }\n else\n {\n setValue(value);\n }\n }\n else if (index == 3)\n { \n //Set default values.\n if (value == null)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n if (Array.getLength(value) != 2)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n m_Scaler = ((Number)Array.get(value, 0)).intValue();\n m_Unit = (((Number)Array.get(value, 1)).intValue() & 0xFF);\n }\n }\n }\n else\n {\n throw new IllegalArgumentException(\"GetValue failed. Invalid attribute index.\");\n }\n }", "public void setLBR_TaxDeferralAmt (BigDecimal LBR_TaxDeferralAmt);", "@Override\n public double calcSalesFee() {\n return getCost() + getSalesPurchase();\n }", "public void setNewMember(double value) {\n }" ]
[ "0.7284254", "0.71829444", "0.7145015", "0.7059909", "0.69707835", "0.6762925", "0.66358185", "0.6593952", "0.6553972", "0.6401962", "0.6296132", "0.6280298", "0.627573", "0.6261971", "0.6257432", "0.624391", "0.6220187", "0.620109", "0.61779165", "0.6119938", "0.59811896", "0.5903903", "0.5830484", "0.5822907", "0.57997483", "0.5794302", "0.5788473", "0.57502556", "0.5742268", "0.5741017", "0.5721803", "0.5697913", "0.5681073", "0.567148", "0.56679463", "0.5659353", "0.5649935", "0.5637038", "0.5616666", "0.561245", "0.56097645", "0.55951416", "0.55891055", "0.5586218", "0.558536", "0.5576032", "0.5563892", "0.5563879", "0.55633485", "0.5555558", "0.55534506", "0.55528015", "0.5552772", "0.55461633", "0.5544371", "0.5541001", "0.55263954", "0.5496553", "0.549588", "0.54895097", "0.54892254", "0.5488837", "0.548665", "0.5481464", "0.547763", "0.54759", "0.5475762", "0.5472669", "0.5465766", "0.54602885", "0.54565734", "0.54516125", "0.54390913", "0.54378974", "0.5437394", "0.5436808", "0.5433101", "0.54160225", "0.5408616", "0.5404452", "0.54014504", "0.5400958", "0.5399911", "0.53939307", "0.53881145", "0.53850734", "0.53817827", "0.5380057", "0.5379495", "0.5366923", "0.53656274", "0.5364153", "0.5362429", "0.5356601", "0.53560585", "0.53545445", "0.5353662", "0.53529423", "0.5352286", "0.5350881" ]
0.7605664
0
Gets the attribute value for the calculated attribute IvaFlag
public String getIvaFlag() { return (String) getAttributeInternal(IVAFLAG); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getIvaMFlag() {\n return (String) getAttributeInternal(IVAMFLAG);\n }", "public IVA getIva() {\n return iva;\n }", "int getFeatureValue();", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Attrib getAttrib() {\r\n return attrib;\r\n }", "float getIva();", "public Integer getFLAG() {\n return FLAG;\n }", "public String getAttrVal() {\n return attrVal;\n }", "int getFlagImage() {\n return this.flagImage;\n }", "protected abstract T getNormalFlagValue();", "public String getActiveFlag() {\n return (String) getAttributeInternal(ACTIVEFLAG);\n }", "public String getActiveflag() {\n return (String)getAttributeInternal(ACTIVEFLAG);\n }", "public String getAttribute_value() {\n return attribute_value;\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public final String getValueAttribute() {\n String value = getAttributeValue(\"value\");\n if( value == ATTRIBUTE_NOT_DEFINED && this instanceof HtmlCheckBoxInput ) {\n value = \"on\";\n }\n return value;\n }", "public void setIvaFlag(String value) {\n setAttributeInternal(IVAFLAG, value);\n }", "public int getFlag()\n {\n return flag;\n }", "int getFlag();", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public int getValueOfBonus() {\n return valueOfBonus;\n }", "private static int getFlagValue (Shape shape)\r\n {\r\n switch (shape) {\r\n case FLAG_1:\r\n case FLAG_1_UP:\r\n return 1;\r\n\r\n case FLAG_2:\r\n case FLAG_2_UP:\r\n return 2;\r\n\r\n case FLAG_3:\r\n case FLAG_3_UP:\r\n return 3;\r\n\r\n case FLAG_4:\r\n case FLAG_4_UP:\r\n return 4;\r\n\r\n case FLAG_5:\r\n case FLAG_5_UP:\r\n return 5;\r\n }\r\n\r\n logger.error(\"Illegal flag shape: {}\", shape);\r\n\r\n return 0;\r\n }", "public String getApprovedFlag() {\r\n return (String) getAttributeInternal(APPROVEDFLAG);\r\n }", "public int getAttribute() {\n return Attribute;\n }", "@Override\n\tpublic IAttributeValue value() { return value; }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "Attribute getAttribute();", "@Generated\n @Selector(\"attenuationValue\")\n public native byte attenuationValue();", "public ByteArrayAttribute getValue() {\n return value;\n }", "public Integer getIntegerAttribute();", "@Override\n public ImageDescriptor getFlagImageDescriptor() {\n ImageDescriptor descriptor = AwsToolkitCore.getDefault().getImageRegistry()\n .getDescriptor(AwsToolkitCore.IMAGE_FLAG_PREFIX + id);\n if ( descriptor == null ) {\n descriptor = AwsToolkitCore.getDefault().getImageRegistry().getDescriptor(AwsToolkitCore.IMAGE_AWS_ICON);\n }\n return descriptor;\n }", "public void setIvaMFlag(String value) {\n setAttributeInternal(IVAMFLAG, value);\n }", "public int getValue()\n {\n return mi_value;\n }", "public int getValue()\n {\n return mi_value;\n }", "int getAssetValue();", "public String getIntAttribute8() {\n return (String) getAttributeInternal(INTATTRIBUTE8);\n }", "public double getFeIF() {\n return _avTable.getDouble(ATTR_FE_IF, 0.0);\n }", "public String getFlaginfo() {\n return flaginfo;\n }", "@Override\n public Image getFlagImage() {\n Image image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_FLAG_PREFIX + id);\n if ( image == null ) {\n image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_AWS_ICON);\n }\n return image;\n }", "@Basic @Immutable\n\tprotected double getAxi() {\n\t\treturn this.axi;\n\t}", "@Override\n\tpublic double value(final Attribute att) {\n\t\treturn 0;\n\t}", "public int getAtt(){ \r\n return att;\r\n }", "private static int SCARD_ATTR_VALUE(int iClass, int iTag)\n {\n return (iClass << 16) | iTag;\n }", "public java.lang.Double getValorIof() {\n return valorIof;\n }", "public int getIva() {\n\t\treturn producto.getIva();\n\t}", "int getConditionValue();", "String getFlag() {\n return String.format(\"-T%d\", this.value);\n }", "public int getAlphaInfoValue() {\n return instance.getAlphaInfoValue();\n }", "public String getAttr() {\n return attr;\n }", "com.google.protobuf.ByteString getAttributeBytes();", "Object getAttribute(int attribute);", "public Byte getByteAttribute();", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 20);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 12);\n\t\t}\n\t}", "public String getIntAttribute14() {\n return (String) getAttributeInternal(INTATTRIBUTE14);\n }", "@Override\n public int getFlag() {\n return flag_;\n }", "public String getAttrValue() {\r\n\t\treturn attrValue;\r\n\t}", "public String getattribut() \n\t{\n\t\treturn attribut;\n\t}", "public String getIntAttribute3() {\n return (String) getAttributeInternal(INTATTRIBUTE3);\n }", "@DISPID(1001) //= 0x3e9. The runtime will prefer the VTID if present\n @VTID(10)\n ms.html.ISVGAngle animVal();", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t}\n\t}", "public double getIntensity() {\n return iIntensity;\n }", "public RecordFlagEnum getFlag();", "public Number getAlto()\n {\n return (Number)getAttributeInternal(ALTO);\n }", "public String getQualFlag() {\r\n return (String) getAttributeInternal(QUALFLAG);\r\n }", "@Override\n public OptionalInt getValence() {\n return IndigoUtil.valueOrEmpty(atom.explicitValence());\n }", "public Byte getAuditFlag() {\n return auditFlag;\n }", "public byte getAttributeLevel(byte i)\r\n\t{\r\n\t\tswitch(i)\r\n\t\t{\r\n\t\tcase INTELLIGENCE:\r\n\t\t\treturn intelligence;\r\n\t\tcase CUNNING:\r\n\t\t\treturn cunning;\r\n\t\tcase STRENGTH:\r\n\t\t\treturn strength;\r\n\t\tcase AGILITY:\r\n\t\t\treturn agility;\r\n\t\tcase PERCEPTION:\r\n\t\t\treturn perception;\r\n\t\tcase HONOR:\r\n\t\t\treturn honor;\r\n\t\tcase SPEED:\r\n\t\t\treturn speed;\r\n\t\tcase LOYALTY:\r\n\t\t\treturn loyalty;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "private int getIntensity()\t\t\t\n\t{\n\t\treturn intensity;\n\t}", "public String getAttr8() {\n return attr8;\n }", "java.lang.String getAttribute();", "public Number getIdexped()\n {\n return (Number)getAttributeInternal(IDEXPED);\n }", "@Override\n public int getFlag() {\n return flag_;\n }", "public String getIntAttribute6() {\n return (String) getAttributeInternal(INTATTRIBUTE6);\n }", "public Instruction getValue() {\n return this.val;\n }", "public java.lang.Double getValorCalculadoIof() {\n return valorCalculadoIof;\n }", "public String getIsFlag() {\r\n return isFlag;\r\n }", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type.Value.Enum getValue();", "public int getNiveauIA() {\n\t\treturn niveauIA;\r\n\t}", "public String getATTR_ID() {\n return ATTR_ID;\n }", "public Boolean getFlag() {\n return flag;\n }", "public String getIntAttribute11() {\n return (String) getAttributeInternal(INTATTRIBUTE11);\n }", "public int getAtt() {\n\t\treturn att;\n\t}", "public int getMyFaceValue(){\r\n return myFaceValue;\r\n }", "public String getShowFlag() {\r\n return (String) getAttributeInternal(SHOWFLAG);\r\n }", "public int getFlvValue() {\n return flvValue;\n }", "public Vector3f getAttenuation() {\r\n\t\treturn this.attenuation;\r\n \t}", "public String getIntAttribute9() {\n return (String) getAttributeInternal(INTATTRIBUTE9);\n }", "public Integer getdocverificationflag() {\n return (Integer) getAttributeInternal(DOCVERIFICATIONFLAG);\n }", "public short getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t} else {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t}\n\t}", "int getOperationValue();", "String getAttribute();", "public String getIntAttribute12() {\n return (String) getAttributeInternal(INTATTRIBUTE12);\n }", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public Number getValue() {\n return (Number) getAttributeInternal(VALUE);\n }", "public String getIntAttribute4() {\n return (String) getAttributeInternal(INTATTRIBUTE4);\n }", "public boolean getFlag(){\n\t\treturn flag;\n\t}", "public AXValue getValue() {\n return value;\n }", "public String getValue() {\n return super.getAttributeValue();\n }", "public int getFlags() {\n Object value = library.getObject(entries, FLAGS);\n if (value instanceof Number) {\n return ((Number) value).intValue();\n }\n return 0;\n }", "public String getIntAttribute13() {\n return (String) getAttributeInternal(INTATTRIBUTE13);\n }", "public int getValue()\n {\n try\n {\n return (Integer) AlphaComposite.class.getField(name).get(null);\n }\n catch (Exception e)\n {\n return -1;\n }\n }" ]
[ "0.7346441", "0.62994456", "0.6270024", "0.6226881", "0.6146714", "0.60910493", "0.6056461", "0.6055804", "0.60223746", "0.60115457", "0.5973949", "0.59676516", "0.59613025", "0.5940697", "0.5931903", "0.5883315", "0.58454096", "0.5841635", "0.5825007", "0.5797861", "0.5785197", "0.57607335", "0.5747771", "0.5744538", "0.57147187", "0.5692935", "0.56854403", "0.56830823", "0.56717026", "0.56593424", "0.5648638", "0.56341946", "0.56341946", "0.56322825", "0.5631298", "0.5629641", "0.5580421", "0.5577669", "0.55714315", "0.555404", "0.5543066", "0.554267", "0.5529046", "0.55280584", "0.55274945", "0.55260193", "0.5508853", "0.5504794", "0.54949117", "0.5494293", "0.54908144", "0.54872406", "0.5486301", "0.5481527", "0.5481067", "0.5478967", "0.54640144", "0.5462585", "0.54596394", "0.5458845", "0.5442889", "0.54421294", "0.5429072", "0.5420788", "0.5416992", "0.5409115", "0.5407525", "0.54066503", "0.5402898", "0.53965425", "0.5394207", "0.53931624", "0.53917557", "0.5388068", "0.53866494", "0.53751594", "0.53689903", "0.536875", "0.53686744", "0.53681535", "0.53669953", "0.53649276", "0.5363773", "0.5352084", "0.5343644", "0.53420186", "0.53275996", "0.53246975", "0.53236246", "0.5320037", "0.53160137", "0.5303893", "0.5302349", "0.5300961", "0.529044", "0.52863365", "0.52826995", "0.5281091", "0.52794355", "0.52791804" ]
0.8065654
0
Sets value as the attribute value for the calculated attribute IvaFlag
public void setIvaFlag(String value) { setAttributeInternal(IVAFLAG, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIvaMFlag(String value) {\n setAttributeInternal(IVAMFLAG, value);\n }", "void setInternal(ATTRIBUTES attribute, Object iValue);", "void setInt(int attributeValue);", "void setIVA(float iva);", "public String getIvaFlag() {\n return (String) getAttributeInternal(IVAFLAG);\n }", "protected void setFlag() {\n flag = flagVal;\n }", "protected void setFlag() {\n flag = flagVal;\n }", "public void setInterFlag(int index, boolean value){\r\n\t\tif (index < 0 || index >= this.interVec.length)\r\n\t\t\t;\r\n\t\telse\r\n\t\t\tthis.interVec[index] = value;\r\n\t}", "public void setFlag( int flag )\n {\n value |= 1 << flag;\n setBit( flag );\n }", "public void setFlag(Integer flag) { this.flag = flag; }", "public void setFeIF(double value) {\n _avTable.set(ATTR_FE_IF, value);\n }", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "public void setAttrib(String name, String value);", "final public void setAttr(final String name, final Vector2 value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name)) {\r\n\t\t\t\tif(value == null)\r\n\t\t\t\t\tattr.Vector = null;\r\n\t\t\t\telse\r\n\t\t\t\t\tattr.Vector = value.clone();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void setAttribute(boolean f)\n {\n checkState();\n attribute = f;\n }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public void setAugment(boolean aValue);", "public Value.Builder setAktif(boolean value) {\n validate(fields()[6], value);\n this.aktif = value;\n fieldSetFlags()[6] = true;\n return this;\n }", "public void setAttVCA(int att){\n\t\t\n\t\tsuper.setAttVCA((att == 0)? 1 : att );\n\t}", "@Override\r\n\t\tpublic void setAO(int address, int value) throws IOServiceException {\n\r\n\t\t}", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "private void setAlphaInfoValue(int value) {\n alphaInfo_ = value;\n }", "public void setIva(int iva) {\n\t\tproducto.setIva(iva);\n\t}", "public Value setAttributes(Value from) {\n checkNotUnknown();\n from.checkNotUnknown();\n Value r = new Value(this);\n r.flags &= ~ATTR;\n r.flags |= from.flags & ATTR;\n return canonicalize(r);\n }", "final public void setAttr(final String name, final float value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Value = value;\r\n\t\t}\r\n\t}", "public static void attribute(String name, boolean value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public String getIvaMFlag() {\n return (String) getAttributeInternal(IVAMFLAG);\n }", "public void setFlag( int flag )\n {\n value |= 1 << ( MAX_SIZE - 1 - flag );\n }", "void editAssetValue(int newVal);", "private void setIva(IVA iva) throws IvaInvalidoException {\n if (iva == null) {\n throw new IvaInvalidoException(\"El IVA debe ser válido.\");\n }\n this.iva = iva;\n }", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "public void setI(boolean i) {\n\tthis.i = i;\n }", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "public void setCValue(V value);", "void setValue(Adjustable adj, int v);", "public void ativa() {\n this.ativada = true;\n }", "public void setVega(double value) {\r\n this.vega = value;\r\n }", "public static void attribute(String name, int value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public Builder setFlag(int value) {\n bitField0_ |= 0x00000400;\n flag_ = value;\n onChanged();\n return this;\n }", "public void setAttrVal(String attrVal) {\n this.attrVal = attrVal;\n }", "public void setDmaValue(int value);", "public void setAA(boolean value) {\n this.AA = value;\n }", "@DISPID(1001) //= 0x3e9. The runtime will prefer the VTID if present\n @VTID(9)\n void animVal(\n ms.html.ISVGAngle p);", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "public void set(AttributeDefinition attribute, Object value)\n throws UnknownAttributeException, ModificationNotPermitedException\n {\n if(builtinAttributes.containsKey(attribute.getName()))\n {\n throw new IllegalArgumentException(\"builtin attribute \"+attribute.getName()+\n \"cannot be modified with set method\"); \n }\n else\n {\n throw new UnknownAttributeException(\"not a builtin attribute\");\n }\n }", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "public void giveFlag(Flag f)\r\n\t{\r\n\t\thasFlag = true;\r\n\t\tflag = f;\r\n\t}", "public void setValue(Instruction val) {\n this.val = checkNotNull(val, \"val\");\n }", "public void setFlag(RecordFlagEnum flag);", "@Override\n public void setValue(int index, Object value)\n {\n if (index == 1)\n {\n super.setValue(index, value); \n }\n else if (index == 2)\n {\n if (m_Scaler != 0)\n {\n try\n { \n m_Value = ((Number)value).doubleValue() * getScaler();\n }\n catch (Exception ex)\n {\n //Sometimes scaler is set for wrong Object type.\n setValue(value);\n }\n }\n else\n {\n setValue(value);\n }\n }\n else if (index == 3)\n { \n //Set default values.\n if (value == null)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n if (Array.getLength(value) != 2)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n m_Scaler = ((Number)Array.get(value, 0)).intValue();\n m_Unit = (((Number)Array.get(value, 1)).intValue() & 0xFF);\n }\n }\n }\n else\n {\n throw new IllegalArgumentException(\"GetValue failed. Invalid attribute index.\");\n }\n }", "public void setIntensity(int i) {\n this.intensity = i ;\n }", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "public IotaImpl(IotaEnum iotaEnum, Integer value) {\n _iotaEnum = iotaEnum ;\n _value = value ;\n }", "public void setActiveflag(String value) {\n setAttributeInternal(ACTIVEFLAG, value);\n }", "public void setActiveFlag(String value) {\n setAttributeInternal(ACTIVEFLAG, value);\n }", "public void setAttrib(gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Attrib attrib) {\r\n this.attrib = attrib;\r\n }", "public void setIntensity(double aIntensity) {\n iIntensity = aIntensity;\n }", "void setFlag(long flag, boolean val) {\n\t\tif (val)\r\n\t\t\tflags = flags | flag;\r\n\t\telse\r\n\t\t\tflags = flags & ~flag;\r\n\t}", "void setElementValue(SetElementValue cmd);", "void setBinaryFileAttribute(boolean flag);", "public Builder setA(float value) {\n bitField0_ |= 0x00000001;\n a_ = value;\n onChanged();\n return this;\n }", "public void setAOA(float AOA);", "void setValue(V value);", "public void setFlag(int which, boolean value) {\n if (value) {\n flags |= (1 << which); // set flag\n } else {\n flags &= ~(1 << which); // clear flag\n }\n }", "public void setInternalAttributes(final int value) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c66dec57-e94d-47cc-bad0-17c4cbe2e595\");\n internalAttributes = value;\n }", "int attrib_int(int i, int v) {\n if (i < maxpos) {\n AllPos[i] = v;\n } else {\n int[] temp = new int[maxpos];\n int j;\n for (j = 0; j < maxpos; j++) temp[j] = AllPos[j];\n AllPos = new int[maxpos + increasepos];\n for (j = 0; j < maxpos; j++) AllPos[j] = temp[j];\n maxpos = maxpos + increase;\n AllPos[i] = v;\n }\n return (0);\n }", "@Generated\n @Selector(\"setAttributes:\")\n public native void setAttributes(@NUInt long value);", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "public void setAI ( boolean ai ) {\n\t\ttry {\n\t\t\tinvoke ( \"setAI\" , new Class[] { boolean.class } , ai );\n\t\t} catch ( NoSuchMethodException e ) {\n\t\t\thandleOptional ( ).ifPresent ( handle -> EntityReflection.setAI ( handle , ai ) );\n\t\t}\n\t}", "public void setFlag(int flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 20, flag);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 12, flag);\n\t\t}\n\t}", "public void setValue(AXValue value) {\n this.value = value;\n }", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "public void setFlag(Drawable flag){\n ImageView mFlagImageView = findViewById(R.id.guesshint_image_flag);\n mFlagImageView.setImageDrawable(flag);\n }", "public void setValue(A value) {this.value = value; }", "void setValue(byte value) {\n this.value = value;\n blockDrawables.get(selected).setValue(value);\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t\ttry {\n\t\t\t\tchanging = true;\n\t\t\t\telement.setAttributeNS(namespaceURI, localName, value);\n\t\t\t} finally {\n\t\t\t\tchanging = false;\n\t\t\t}\n\t\t}", "public void setValue(boolean value) {\n this.value = value;\n }", "private void updateChildesValues(int value){\n\n for (int i = 0; i < mDataSize; i++) {\n\n if(((value >> i) & 1) == 1){\n mChildTags.get(i).setValue(true);}\n else {mChildTags.get(i).setValue(false);}\n }\n }", "public Builder setAlphaInfoValue(int value) {\n copyOnWrite();\n instance.setAlphaInfoValue(value);\n return this;\n }", "public void setI(long value) {\n this.i = value;\n }", "public void ativa()\n\t{\n\t\tativado = true;\n\t}", "public final native void setFlags(int value) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.flags = value;\n }-*/;", "public void attribute(String name, int value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(Integer.toString(value));\r\n this.writer.write('\"');\r\n }", "public void setFLAG(Integer FLAG) {\n this.FLAG = FLAG;\n }", "void xsetValue(gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type.Value value);", "public void setAtmo(boolean value) {\n this.atmo = value;\n }", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "AdditionalAttributes setAttribute(String name, Object value, boolean force);", "public V setValue(V value);", "public GraphAttribute(V value) {\n Rules.checkAttributeValue(value);\n this.value = value;\n this.valueClass = value.getClass();\n }", "public void setFlag(int flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 4, flag);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 4, flag);\n\t\t}\n\t}", "public void setValue(int value)\n {\n // we have assumed value 1 for X and 10 for O\n this.value = value;\n }", "public void setInfluence(float val) {\n influence = val;\n }", "public void mo25061a(int i) {\n this.f14804f = i;\n }", "public void setProcessed (boolean Processed)\n{\nset_Value (\"Processed\", new Boolean(Processed));\n}", "public void setFlags(int nRun, int nFlags, float fConfidence);", "void setValue(gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type.Value.Enum value);" ]
[ "0.7132007", "0.6475647", "0.63024765", "0.62224925", "0.61258715", "0.60530657", "0.60530657", "0.6052097", "0.5995486", "0.59838325", "0.5980601", "0.590083", "0.5882095", "0.58492905", "0.58055633", "0.58003664", "0.58003664", "0.5761632", "0.5761522", "0.5750574", "0.5736462", "0.5736347", "0.5734862", "0.57205504", "0.5715406", "0.5685996", "0.56496644", "0.5631968", "0.56112975", "0.5608134", "0.5575797", "0.5570347", "0.5558156", "0.5512281", "0.55114657", "0.5488069", "0.54695785", "0.546885", "0.54659784", "0.54640216", "0.54638577", "0.54612434", "0.54610735", "0.5448282", "0.54401404", "0.543589", "0.54357857", "0.54313636", "0.5413273", "0.54056555", "0.5398339", "0.53817225", "0.5353479", "0.5346654", "0.5341379", "0.53381586", "0.53371423", "0.5318883", "0.53152865", "0.5312997", "0.52982956", "0.52943456", "0.52942705", "0.5284942", "0.5271845", "0.5264301", "0.52610415", "0.52596366", "0.52482337", "0.52462184", "0.52388775", "0.52385783", "0.5237925", "0.5234682", "0.5233737", "0.5228228", "0.52260524", "0.52219266", "0.5219855", "0.5214523", "0.52125216", "0.5212467", "0.52115667", "0.52096826", "0.52072835", "0.5203035", "0.5200636", "0.5200598", "0.5197055", "0.5195326", "0.51940894", "0.5193867", "0.51916397", "0.5186264", "0.518361", "0.51826894", "0.5181945", "0.51811713", "0.5174817", "0.5171873" ]
0.761407
0
Gets the attribute value for the calculated attribute RetentionFlag
public String getRetentionFlag() { return (String) getAttributeInternal(RETENTIONFLAG); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRetentionMFlag() {\n return (String) getAttributeInternal(RETENTIONMFLAG);\n }", "public Retention getRetention() {\n return retention;\n }", "public String getAttrVal() {\n return attrVal;\n }", "public String getAvailableForRentFlag() {\n return (String) getAttributeInternal(AVAILABLEFORRENTFLAG);\n }", "com.google.protobuf.ByteString getAttributeBytes();", "public String getAttr() {\n return attr;\n }", "java.lang.String getAttribute();", "public String getQualFlag() {\r\n return (String) getAttributeInternal(QUALFLAG);\r\n }", "public String getIvaFlag() {\n return (String) getAttributeInternal(IVAFLAG);\n }", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Attrib getAttrib() {\r\n return attrib;\r\n }", "public java.lang.String getAttributeValue() {\r\n return localAttributeValue;\r\n }", "public long getExposureAmount() {\n\t\treturn exposureAmount;\n\t}", "public Byte getAuditFlag() {\n return auditFlag;\n }", "public AttrCheck getAttrchk()\n {\n return this.attrchk;\n }", "public void setRetentionMFlag(String value) {\n setAttributeInternal(RETENTIONMFLAG, value);\n }", "public double getReading() {\r\n\t\tresult = clicks;\r\n\t\tif(metric) result *= 0.2;\r\n\t\telse result *= 0.01;\r\n\t\treturn result;\r\n\t\t\r\n\t}", "public int getAtt(){ \r\n return att;\r\n }", "Attribute getAttribute();", "@Generated\n @Selector(\"attenuationValue\")\n public native byte attenuationValue();", "public String getAttrValue() {\r\n\t\treturn attrValue;\r\n\t}", "public void setRetentionFlag(String value) {\n setAttributeInternal(RETENTIONFLAG, value);\n }", "public int getAttribute() {\n return Attribute;\n }", "public int getFlag()\n {\n return flag;\n }", "public final long getRetentionExpiryDateTime() {\n\t return m_retainUntil;\n\t}", "@GET\r\n\t@Path(\"/imageattribs\")\r\n\t@Produces(MediaType.APPLICATION_JSON)\r\n\tpublic ImageAttribute getAttribute() {\r\n\t\tString directoryPath = ROOT_PATH_ON_MAC + \"/\" + AuxiliaryHelper.loadServerProperties().getProperty(\"image.folder\") + \"/\" ;\r\n\t\tFile folder = new File(directoryPath);\r\n\t\tFile[] files = folder.listFiles();\r\n\t\tString name = \"\";\r\n\t\tlong space = 0l;\r\n\t\tif(files.length > 0) {\r\n\t\t\tname = files[0].getName();\r\n\t\t\tspace = files[0].getTotalSpace();\r\n\t\t}\r\n\t\tImageAttribute imageAttribute = new ImageAttribute();\r\n\t\timageAttribute.setName(name);\r\n\t\timageAttribute.setSize(space);\r\n\t\treturn imageAttribute;\r\n\r\n\t}", "public Integer getdocverificationflag() {\n return (Integer) getAttributeInternal(DOCVERIFICATIONFLAG);\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public String getApprovedFlag() {\r\n return (String) getAttributeInternal(APPROVEDFLAG);\r\n }", "public Number getValue() {\n return (Number) getAttributeInternal(VALUE);\n }", "final public float getFloatAttr() {\r\n\t\t\tif(mName.length() == 0)\r\n\t\t\t\treturn -1;\r\n\t\t\tif(mSaveAttr == null)\r\n\t\t\t\treturn getAttr(mName).Value;\r\n\t\t\treturn mSaveAttr.Value;\r\n\t\t}", "public Number getLargo()\n {\n return (Number)getAttributeInternal(LARGO);\n }", "String getAttribute();", "public RetentionPolicy retentionPolicy() {\n return this.retentionPolicy;\n }", "public RetentionPolicy retentionPolicy() {\n return this.retentionPolicy;\n }", "public Vector3f getAttenuation() {\r\n\t\treturn this.attenuation;\r\n \t}", "public String getIvaMFlag() {\n return (String) getAttributeInternal(IVAMFLAG);\n }", "public double getReading() {\n return this.getDataRef().get();\n }", "public String getIncreasedExposureMax( ) {\n\t\treturn this.increasedExposureMax;\n\t}", "public YangUInt32 getFileRetentionPeriodValue() throws JNCException {\n return (YangUInt32)getValue(\"file-retention-period\");\n }", "protected abstract T getNormalFlagValue();", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public ITaskExprType getAttributeMatchExpression()\n\t{\n\t\treturn attrMatchExpr;\n\t}", "private byte attributes() {\n return (byte) buffer.getShort(ATTRIBUTES_OFFSET);\n }", "public Integer getRenwalGrace() {\n return (Integer) getAttributeInternal(RENWALGRACE);\n }", "public Long get_cachesuccessfulrevalidationrate() throws Exception {\n\t\treturn this.cachesuccessfulrevalidationrate;\n\t}", "public String getOnHoldFlag()\n {\n return (String)getAttributeInternal(ONHOLDFLAG);\n }", "public String getMatchingAttributeValue()\n\t{\n\t\treturn this.matchingAttributeValue;\n\t}", "public Number getRentAmount() {\n return (Number) getAttributeInternal(RENTAMOUNT);\n }", "public Character getRentalFlag() {\n return rentalFlag;\n }", "public Attraction getCurrentAttractionInScope() {\n return currentAttractionInScope;\n }", "public boolean getRetained() {\n return retained;\n }", "String getSpareFlag();", "public double getParseRating() {\n return getDouble(KEY_RATING);\n }", "public int get () { return rating; }", "public String getAttribute_value() {\n return attribute_value;\n }", "@NonNull\n String getNecessaryAttribute();", "public Number getIdexped()\n {\n return (Number)getAttributeInternal(IDEXPED);\n }", "public int getReviewValue()\n {\n \treturn m_nReviewValue;\n }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "String getFlag() {\n return String.format(\"-T%d\", this.value);\n }", "public Integer getAttrId() {\n return attrId;\n }", "public String getChangedflag() {\n return (String) getAttributeInternal(CHANGEDFLAG);\n }", "public Number getAmount() {\n return (Number) getAttributeInternal(AMOUNT);\n }", "public ByteArrayAttribute getValue() {\n return value;\n }", "int getAnnotationSentimentValue();", "@Override\n public int getFlag() {\n return flag_;\n }", "public Integer getRetentionPeriod()\n {\n return retentionPeriod;\n }", "int getFlagImage() {\n return this.flagImage;\n }", "public Integer softDeleteRetentionInDays() {\n return this.softDeleteRetentionInDays;\n }", "@Nonnull\n public final synchronized String getAttributeValue() {\n return attributeValue;\n }", "int getLikelihoodValue();", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public Float getMark() {\n return mark;\n }", "public int getAtt() {\n\t\treturn att;\n\t}", "public double getRe() {\r\n return re;\r\n }", "public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }", "public Integer getRepeatedAtt() {\r\n return repeatedAtt;\r\n }", "public long getValue();", "public long getValue() {\n return value_;\n }", "public long getValue()\n {\n return itsValue;\n }", "public String getRemarks() {\r\n return (String) getAttributeInternal(REMARKS);\r\n }", "@Override\n public int getFlag() {\n return flag_;\n }", "String getReviewrate();", "public int getFinalMark()\n {\n return finalMark;\n }", "int getAssetValue();", "public long getValue() {\n return value_;\n }", "public Long get_cachestoreablemissesrate() throws Exception {\n\t\treturn this.cachestoreablemissesrate;\n\t}", "public double getRe() {\n return re;\n }", "public double getRe() {\n\t\treturn re;\n\t}", "public int getSeekerRating() {\n return getIntegerProperty(\"Rating\");\n }", "public String getattribut() \n\t{\n\t\treturn attribut;\n\t}", "public int getTempDmg(){\r\n return tDmg;\r\n }", "public long getEstimatedTimeAtNextMark() {\n return estimatedTimeAtNextMark;\n }", "public BigDecimal getArtificialRechargeMoney() {\n return artificialRechargeMoney;\n }", "public Value restrictToAttributes() {\n Value r = new Value(this);\n r.num = null;\n r.str = null;\n r.var = null;\n r.flags &= ATTR | ABSENT | UNKNOWN;\n if (!isUnknown() && isMaybePresent())\n r.flags |= UNDEF; // just a dummy value, to satisfy the representation invariant for PRESENT\n r.excluded_strings = r.included_strings = null;\n return canonicalize(r);\n }", "public String getActiveFlag() {\n return (String) getAttributeInternal(ACTIVEFLAG);\n }", "public String getATTR_ID() {\n return ATTR_ID;\n }" ]
[ "0.70407534", "0.63947046", "0.5843009", "0.5693831", "0.5607084", "0.5585888", "0.5570912", "0.5514252", "0.5456494", "0.54342484", "0.5401362", "0.54009265", "0.5396167", "0.5394495", "0.53153336", "0.53118175", "0.5285654", "0.52754074", "0.5266522", "0.5242613", "0.5240289", "0.5238082", "0.52325535", "0.5227022", "0.5224287", "0.5223414", "0.5217493", "0.52130693", "0.5202231", "0.5182121", "0.5179797", "0.5178528", "0.5170821", "0.5170821", "0.5169657", "0.51637614", "0.51509774", "0.5141577", "0.51368463", "0.5125506", "0.51199275", "0.5119298", "0.51188105", "0.51111376", "0.5094837", "0.50893503", "0.5087035", "0.5087029", "0.5082674", "0.50773734", "0.5073236", "0.5069253", "0.5067791", "0.50557584", "0.5052571", "0.5050259", "0.50474244", "0.50442874", "0.5044252", "0.5039018", "0.50331867", "0.50295544", "0.5024972", "0.5023879", "0.50208366", "0.5010319", "0.500751", "0.5006578", "0.4996636", "0.4996547", "0.4991506", "0.49851495", "0.4984477", "0.498362", "0.4977129", "0.49696827", "0.49696827", "0.49696827", "0.49696827", "0.49633354", "0.49511614", "0.494136", "0.49381104", "0.49375463", "0.4937214", "0.49367145", "0.4936341", "0.4934609", "0.49272525", "0.49254802", "0.4925042", "0.49239627", "0.49223888", "0.4921123", "0.4915864", "0.49123162", "0.49056813", "0.49045128", "0.4901726", "0.49000737" ]
0.7312753
0
Sets value as the attribute value for the calculated attribute RetentionFlag
public void setRetentionFlag(String value) { setAttributeInternal(RETENTIONFLAG, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRetentionMFlag(String value) {\n setAttributeInternal(RETENTIONMFLAG, value);\n }", "public String getRetentionFlag() {\n return (String) getAttributeInternal(RETENTIONFLAG);\n }", "public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\n }", "protected void setFlag() {\n flag = flagVal;\n }", "protected void setFlag() {\n flag = flagVal;\n }", "public String getRetentionMFlag() {\n return (String) getAttributeInternal(RETENTIONMFLAG);\n }", "public void setRenovated(int value) {\n this.renovated = value;\n }", "final public void setAttr(final String name, final float value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Value = value;\r\n\t\t}\r\n\t}", "public void setAttrVal(String attrVal) {\n this.attrVal = attrVal;\n }", "public Retention getRetention() {\n return retention;\n }", "@Generated\n @Selector(\"setAttributes:\")\n public native void setAttributes(@NUInt long value);", "public void setFlag(Integer flag) { this.flag = flag; }", "AttributeReport setUsed(boolean used){\n this.used = used;\n this.versionsSinceLeftUnused = -1;\n return this;\n }", "public void setFlag( int flag )\n {\n value |= 1 << ( MAX_SIZE - 1 - flag );\n }", "public void setAttributes(FactAttributes param) {\r\n localAttributesTracker = true;\r\n\r\n this.localAttributes = param;\r\n\r\n\r\n }", "public void setDecayRate(double newDecayRate ){\n\n decayRate= newDecayRate;\n}", "public void setRentalFlag(Character aRentalFlag) {\n rentalFlag = aRentalFlag;\n }", "public synchronized void attributeReward(int reward) {\n attributeReward = true;\n this.reward = reward;\n }", "public void giveFlag(Flag f)\r\n\t{\r\n\t\thasFlag = true;\r\n\t\tflag = f;\r\n\t}", "public void setUsageWeighted(boolean aUsageWeighted) {\n usageWeighted = aUsageWeighted; \n }", "public void setRatingType(typekey.APDExposureRatingType value);", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "void setInt(int attributeValue);", "@Override\n\t\tprotected void resetAttribute() {\n\t\t}", "public Builder setMark(int value) {\n \n mark_ = value;\n onChanged();\n return this;\n }", "public void setOnHoldFlag(String value)\n {\n // Valid values are null, Y and N\n\n if ((value != null) && (!(\"\".equals(value.trim()))))\n { \n if (!((\"Y\".equals(value)) || (\"N\".equals(value))))\n {\n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"OnHoldFlag\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_ONHOLD_INVALID\"); // Message name\n\n }\n }\n\n setAttributeInternal(ONHOLDFLAG, value);\n \n }", "public void setExternalAttributes(final long value) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"8f4b22cd-9e75-4a38-9e27-30ba1da16ade\");\n externalAttributes = value;\n }", "public void setAvailableForRentFlag(String value) {\n setAttributeInternal(AVAILABLEFORRENTFLAG, value);\n }", "final public void setAttr(final String name, final Vector2 value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name)) {\r\n\t\t\t\tif(value == null)\r\n\t\t\t\t\tattr.Vector = null;\r\n\t\t\t\telse\r\n\t\t\t\t\tattr.Vector = value.clone();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "public Value setAttributes(boolean dontenum, boolean dontdelete, boolean readonly) {\n checkNotUnknown();\n Value r = new Value(this);\n r.flags &= ~ATTR;\n if (dontdelete)\n r.flags |= ATTR_DONTDELETE;\n else\n r.flags |= ATTR_NOTDONTDELETE;\n if (readonly)\n r.flags |= ATTR_READONLY;\n else\n r.flags |= ATTR_NOTREADONLY;\n if (dontenum)\n r.flags |= ATTR_DONTENUM;\n else\n r.flags |= ATTR_NOTDONTENUM;\n return canonicalize(r);\n }", "void setBinaryFileAttribute(boolean flag);", "public com.dj.model.avro.LargeObjectAvro.Builder setVar20(java.lang.Boolean value) {\n validate(fields()[21], value);\n this.var20 = value;\n fieldSetFlags()[21] = true;\n return this;\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t\ttry {\n\t\t\t\tchanging = true;\n\t\t\t\telement.setAttributeNS(namespaceURI, localName, value);\n\t\t\t} finally {\n\t\t\t\tchanging = false;\n\t\t\t}\n\t\t}", "public Value setAttributes(Value from) {\n checkNotUnknown();\n from.checkNotUnknown();\n Value r = new Value(this);\n r.flags &= ~ATTR;\n r.flags |= from.flags & ATTR;\n return canonicalize(r);\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "public void changeMark() {\n marked = !marked;\n }", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "public void setFlag( int flag )\n {\n value |= 1 << flag;\n setBit( flag );\n }", "public void setRetained(boolean retained) {\n this.retained = retained;\n }", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "void setFlag(long flag, boolean val) {\n\t\tif (val)\r\n\t\t\tflags = flags | flag;\r\n\t\telse\r\n\t\t\tflags = flags & ~flag;\r\n\t}", "void setAttributes(String attributeName, String attributeValue,\n ResultCapture<Void> extractor);", "@Override\n public void setAttribute(boolean f)\n {\n checkState();\n attribute = f;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder setVar203(java.lang.Float value) {\n validate(fields()[204], value);\n this.var203 = value;\n fieldSetFlags()[204] = true;\n return this;\n }", "public void setAugment(boolean aValue);", "@Test\n public void testSetRating() {\n final double delta = 0.0;\n final double expectedRating1 = 70.0;\n final double expectedRating2 = 65.0;\n final double expectedRating3 = 85.5;\n movie1.setRating(expectedRating1);\n movie2.setRating(expectedRating2);\n movie3.setRating(expectedRating1);\n movie4.setRating(expectedRating3);\n movie1.setRating(expectedRating2);\n assertEquals(expectedRating2, movie1.getRating(), delta);\n assertEquals(expectedRating2, movie2.getRating(), delta);\n assertEquals(expectedRating1, movie3.getRating(), delta);\n assertEquals(expectedRating3, movie4.getRating(), delta);\n }", "public void setFlag(RecordFlagEnum flag);", "@Test\n public void testSetResearched() {\n VirusAttribute virusAttribute = new VirusAttribute(\"att\", \"desc\", 30);\n virusAttribute.setResearched(true);\n boolean result = virusAttribute.isResearched();\n assertTrue(result);\n }", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "@Override\n\t\tprotected void resetAttribute() {\n\t\t\tsuper.resetAttribute();\n\t\t\tmissing = false;\n\t\t\tmalformed = false;\n\t\t}", "public void mark()\n {\n mark = true;\n }", "public void setComplete(boolean param){\n \n // setting primitive attribute tracker to true\n localCompleteTracker =\n true;\n \n this.localComplete=param;\n \n\n }", "public DeployAttributeValueStatus() {\r\n\t\tsetMarkerType(IDeployMarker.MARKER_ID);\r\n\t}", "public void setClaim(boolean a){\n isClaimed= a;\n \n}", "public void setDataRetentionPeriodUnitOfMeasure(com.exacttarget.wsdl.partnerapi.RecurrenceTypeEnum.Enum dataRetentionPeriodUnitOfMeasure)\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(DATARETENTIONPERIODUNITOFMEASURE$28, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DATARETENTIONPERIODUNITOFMEASURE$28);\n }\n target.setEnumValue(dataRetentionPeriodUnitOfMeasure);\n }\n }", "void set(long newValue);", "public static void attribute(String name, long value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public void setreadFlag(Boolean value) {\r\n setAttributeInternal(READFLAG, value);\r\n }", "public void setFlag(Drawable flag){\n ImageView mFlagImageView = findViewById(R.id.guesshint_image_flag);\n mFlagImageView.setImageDrawable(flag);\n }", "public void setAnnounced(Boolean newValue);", "public void setFlag(Boolean flag) {\n this.flag = flag;\n }", "public void setQualFlag(String value) {\r\n setAttributeInternal(QUALFLAG, value);\r\n }", "public void setFlags(int nRun, int nFlags, float fConfidence);", "private void setRefuse(boolean value) {\n \n refuse_ = value;\n }", "public int setInactiveForNoRebill();", "void setInternal(ATTRIBUTES attribute, Object iValue);", "@Override\r\n\tpublic void addAttr(String name, String value) {\n\t}", "private void writeAttribute(LoggingProperties props, IHDF5Writer writer, String path) {\n writer.float64().setAttr(path, \"startDepth\", props.getStartDepth());\r\n writer.float64().setAttr(path, \"endDepth\", props.getEndDepth());\r\n writer.float64().setAttr(path, \"depthLevel\", props.getDepthLevel());\r\n writer.float64().setAttr(path, \"dataType\", props.getDataType());\r\n }", "public void setRating(int rating);", "public void setMark(int v, int val){\r\n\t\tMark[v]=val;\r\n\t}", "public Value.Builder setAktif(boolean value) {\n validate(fields()[6], value);\n this.aktif = value;\n fieldSetFlags()[6] = true;\n return this;\n }", "public Builder setSetAttribute(\n alluxio.proto.journal.File.SetAttributeEntry.Builder builderForValue) {\n if (setAttributeBuilder_ == null) {\n setAttribute_ = builderForValue.build();\n onChanged();\n } else {\n setAttributeBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x08000000;\n return this;\n }", "public void setHotOrNotRating(int rating) {\r\n this.rating += rating;\r\n ratingCount++;\r\n }", "private void setRetiredValue(java.lang.Long value) {\n __getInternalInterface().setFieldValue(RETIREDVALUE_PROP.get(), value);\n }", "public void setInfluence(float val) {\n influence = val;\n }", "public void setAttrib(String name, String value);", "@Override\n\tpublic void attrAdded(Attr node, String newv) {\n\t\tif (!changing && baseVal != null) {\n\t\t\tbaseVal.invalidate();\n\t\t}\n\t\tfireBaseAttributeListeners();\n\t\tif (!hasAnimVal) {\n\t\t\tfireAnimatedAttributeListeners();\n\t\t}\n\t}", "public void changeValue(ValueHolder newValue) {\r\n value = ((AttrObject) newValue).getValue();\r\n\tuserInfo = ((AttrObject) newValue).getUserInfo();\r\n\tnotifyFromAttr(); \r\n }", "public final void setRetentionExpiryDateTime(long expires) {\n\t m_retainUntil = expires;\n\t}", "public com.dj.model.avro.LargeObjectAvro.Builder setVar209(java.lang.Boolean value) {\n validate(fields()[210], value);\n this.var209 = value;\n fieldSetFlags()[210] = true;\n return this;\n }", "public void setInternalAttributes(final int value) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c66dec57-e94d-47cc-bad0-17c4cbe2e595\");\n internalAttributes = value;\n }", "public void xsetEffdatedOnly(org.apache.xmlbeans.XmlBoolean effdatedOnly)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlBoolean target = null;\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(EFFDATEDONLY$20);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(EFFDATEDONLY$20);\r\n }\r\n target.set(effdatedOnly);\r\n }\r\n }", "public Value setNotDontDelete() {\n checkNotUnknown();\n if (isNotDontDelete())\n return this;\n Value r = new Value(this);\n r.flags &= ~ATTR_DONTDELETE_ANY;\n r.flags |= ATTR_NOTDONTDELETE;\n return canonicalize(r);\n }", "private void setMetadata(org.chromium.components.paint_preview.common.proto.PaintPreview.MetadataProto value) {\n value.getClass();\n metadata_ = value;\n bitField0_ |= 0x00000002;\n }", "@Override\n protected void visitHtmlAttributeValueNode(HtmlAttributeValueNode node) {\n pushState(HtmlContext.HTML_NORMAL_ATTR_VALUE);\n super.visitHtmlAttributeValueNode(node);\n popState();\n }", "public String getAttrVal() {\n return attrVal;\n }", "protected void postResistivity(int rVal) { resistivity = rVal; }", "public com.dj.model.avro.LargeObjectAvro.Builder setVar246(java.lang.Double value) {\n validate(fields()[247], value);\n this.var246 = value;\n fieldSetFlags()[247] = true;\n return this;\n }", "public Builder setRating(double value) {\n \n rating_ = value;\n onChanged();\n return this;\n }", "public Value restrictToAttributes() {\n Value r = new Value(this);\n r.num = null;\n r.str = null;\n r.var = null;\n r.flags &= ATTR | ABSENT | UNKNOWN;\n if (!isUnknown() && isMaybePresent())\n r.flags |= UNDEF; // just a dummy value, to satisfy the representation invariant for PRESENT\n r.excluded_strings = r.included_strings = null;\n return canonicalize(r);\n }", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public void setAchieved(Boolean newValue);", "private void replaceMarker(String layer, String attributeName, String attributeValue, Feature f) {\n DescribedMarker marker = getDefaultMarker();\n\n if (marker != null) {\n setMarkerProperties(layer, attributeName, attributeValue, attributeValue, marker, f);\n }\n }", "public void setClaim(boolean a,AbstAnt ant){\n isClaimed= a;\n claimer= ant;\n}", "public void setAttrib(gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Attrib attrib) {\r\n this.attrib = attrib;\r\n }", "public void setRating(Integer value)\n\t{\n\t}", "public void setEffdatedOnly(boolean effdatedOnly)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EFFDATEDONLY$20);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(EFFDATEDONLY$20);\r\n }\r\n target.setBooleanValue(effdatedOnly);\r\n }\r\n }", "public void setOldCardinalityNum(int param){\n \n // setting primitive attribute tracker to true\n localOldCardinalityNumTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localOldCardinalityNum=param;\n \n\n }", "public void setIvaFlag(String value) {\n setAttributeInternal(IVAFLAG, value);\n }" ]
[ "0.66643804", "0.57927", "0.55413026", "0.55058527", "0.55058527", "0.5502855", "0.54587394", "0.54128253", "0.5364545", "0.52391636", "0.52181625", "0.51988703", "0.51926625", "0.51777303", "0.5150378", "0.51484483", "0.51218516", "0.51010484", "0.50977623", "0.5093814", "0.509209", "0.5088245", "0.5081162", "0.5073424", "0.5067931", "0.5044857", "0.50397325", "0.5038507", "0.5036667", "0.50138813", "0.5006234", "0.497889", "0.49739105", "0.4972024", "0.49626336", "0.49551657", "0.4945282", "0.49373615", "0.4922662", "0.49163857", "0.49161187", "0.49085683", "0.4900853", "0.4899625", "0.4899422", "0.48947024", "0.48945242", "0.48861974", "0.48725092", "0.48510075", "0.48489293", "0.48453638", "0.4834624", "0.4819429", "0.47937188", "0.47872865", "0.47842088", "0.47790864", "0.47737566", "0.4765066", "0.47643238", "0.47632688", "0.47617927", "0.4750543", "0.47477785", "0.4742902", "0.4740683", "0.47404483", "0.47384277", "0.47314987", "0.4730339", "0.4725973", "0.4724042", "0.4716671", "0.47166142", "0.47166118", "0.4703386", "0.47024563", "0.46942937", "0.46903527", "0.46866715", "0.46862638", "0.46759403", "0.46729672", "0.46702072", "0.46687087", "0.46637958", "0.4663468", "0.4663457", "0.46612278", "0.46586993", "0.46573532", "0.4655353", "0.46501487", "0.46426564", "0.4638909", "0.46375814", "0.46369368", "0.4630729", "0.46294492" ]
0.68836266
0
Gets the attribute value for the calculated attribute IvaMFlag
public String getIvaMFlag() { return (String) getAttributeInternal(IVAMFLAG); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getIvaFlag() {\n return (String) getAttributeInternal(IVAFLAG);\n }", "public void setIvaMFlag(String value) {\n setAttributeInternal(IVAMFLAG, value);\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public String getRetentionMFlag() {\n return (String) getAttributeInternal(RETENTIONMFLAG);\n }", "private double getMMI() {\n\t\tdouble pgv, pga;\n\t\tString S = \".getMMI()\";\n\n\t\t// get PGA\n\t\tcoeffBJF = (BJF_1997_AttenRelCoefficients) coefficientsBJF.get(PGA_Param.NAME);\n\t\tcoeffSM = (BJF_1997_AttenRelCoefficients) coefficientsSM.get(PGA_Param.NAME);\n\t\tdouble b_pga = getRockMean();\n\t\tpga = b_pga + Math.log(getAmpFactor(PGA_Param.NAME));\n\t\t// Convert to linear domain\n\t\tpga = Math.exp(pga);\n\n\t\tif (D) {\n\t\t\tSystem.out.println(C + S + \" pga = \" + (float) pga);\n\t\t}\n\n\t\t// get PGV\n\t\tcoeffBJF = (BJF_1997_AttenRelCoefficients) coefficientsBJF.get(PGV_Param.NAME);\n\t\tcoeffSM = (BJF_1997_AttenRelCoefficients) coefficientsSM.get(PGV_Param.NAME);\n\t\tdouble b_pgv = getRockMean();\n\t\tpgv = b_pgv + Math.log(getAmpFactor(PGV_Param.NAME));\n\t\t// Convert to linear domain (what's needed below)\n\t\tpgv = Math.exp(pgv);\n\n\t\tif (D) {\n\t\t\tSystem.out.println(\" pgv = \" + (float) pgv);\n\t\t}\n\n\t\treturn Wald_MMI_Calc.getMMI(pga, pgv);\n\n\t}", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Attrib getAttrib() {\r\n return attrib;\r\n }", "public int getValue()\n {\n return mi_value;\n }", "public int getValue()\n {\n return mi_value;\n }", "public String getAttribute_value() {\n return attribute_value;\n }", "protected abstract T getNormalFlagValue();", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public Integer getFLAG() {\n return FLAG;\n }", "public String getAttrVal() {\n return attrVal;\n }", "public String getIntAttribute12() {\n return (String) getAttributeInternal(INTATTRIBUTE12);\n }", "public final String getValueAttribute() {\n String value = getAttributeValue(\"value\");\n if( value == ATTRIBUTE_NOT_DEFINED && this instanceof HtmlCheckBoxInput ) {\n value = \"on\";\n }\n return value;\n }", "int getFeatureValue();", "public String getIntAttribute13() {\n return (String) getAttributeInternal(INTATTRIBUTE13);\n }", "public String getApprovedFlag() {\r\n return (String) getAttributeInternal(APPROVEDFLAG);\r\n }", "public double getM() {\r\n return m;\r\n }", "public String getIntAttribute14() {\n return (String) getAttributeInternal(INTATTRIBUTE14);\n }", "int getFlagImage() {\n return this.flagImage;\n }", "public String getIntAttribute11() {\n return (String) getAttributeInternal(INTATTRIBUTE11);\n }", "public int getAtt(){ \r\n return att;\r\n }", "public IVA getIva() {\n return iva;\n }", "Integer getEmisoraActual(boolean AM){\n return AM ? this.emisoraAMActual : this.emisoraFMActual; \n }", "public String getATTR_ID() {\n return ATTR_ID;\n }", "@Generated\n @Selector(\"attenuationValue\")\n public native byte attenuationValue();", "public int getValueOfBonus() {\n return valueOfBonus;\n }", "public String getActiveflag() {\n return (String)getAttributeInternal(ACTIVEFLAG);\n }", "public double getAStat() {\n\t\treturn aStatM;\n\t}", "float getIva();", "public String getActiveFlag() {\n return (String) getAttributeInternal(ACTIVEFLAG);\n }", "public int getAttribute() {\n return Attribute;\n }", "public String getattribut() \n\t{\n\t\treturn attribut;\n\t}", "public double getFeIF() {\n return _avTable.getDouble(ATTR_FE_IF, 0.0);\n }", "public String getFlaginfo() {\n return flaginfo;\n }", "int getMPValue();", "public int getDmaValue();", "public String getMn010() {\n return mn010;\n }", "public String getAttr() {\n return attr;\n }", "public int GetM()\r\n\t{\r\n\t\treturn M;\r\n\t}", "Attribute getAttribute();", "public int getM() {\n return m_;\n }", "public int getAtt() {\n\t\treturn att;\n\t}", "private double getValMorp ( cell c, morphogen m) {\t\t\r\n\t\tif ( m.equals(morphogen.a))\r\n\t\t\treturn c.getVal1();\r\n\t\telse\r\n\t\t\treturn c.getVal2();\r\n\t}", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "com.google.protobuf.ByteString getAttributeBytes();", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type.Value.Enum getValue();", "public String getIntAttribute8() {\n return (String) getAttributeInternal(INTATTRIBUTE8);\n }", "public String getAttrValue() {\r\n\t\treturn attrValue;\r\n\t}", "public String getAttr12() {\n return attr12;\n }", "public int getFlag()\n {\n return flag;\n }", "public int getMzActivated() {\n return mzActivated;\n }", "public String getAttr8() {\n return attr8;\n }", "public String getIntAttribute3() {\n return (String) getAttributeInternal(INTATTRIBUTE3);\n }", "public int mo5156a() {\n int i = this.f3127d;\n return i != -1 ? i : AudioAttributesCompat.m3774a(false, this.f3126c, this.f3124a);\n }", "public String getQualFlag() {\r\n return (String) getAttributeInternal(QUALFLAG);\r\n }", "public ByteArrayAttribute getValue() {\n return value;\n }", "public String getAttr11() {\n return attr11;\n }", "public int getM() {\n return m_;\n }", "public String getIntAttribute6() {\n return (String) getAttributeInternal(INTATTRIBUTE6);\n }", "int getFlag();", "@Override\n\tpublic double value(final Attribute att) {\n\t\treturn 0;\n\t}", "public double mleVar() {\n\t\tint n = this.getAttCount();\n\t\tif (n == 0) return Constants.UNUSED;\n\n\t\tdouble mean = mean();\n\t\tdouble sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble v = this.getValueAsReal(i);\n\t\t\tdouble deviation = v - mean;\n\t\t\tsum += deviation * deviation;\n\t\t}\n\t\treturn sum / (double)n;\n\t}", "public String getShowFlag() {\r\n return (String) getAttributeInternal(SHOWFLAG);\r\n }", "public Double getAmmonia() {\n return ammonia;\n }", "public Integer getIntegerAttribute();", "public int mo23310ma() {\n return ((Integer) this.f13965a.mo23249a(C7196pb.f13711Jb)).intValue();\n }", "int getConditionValue();", "java.lang.String getAttribute();", "public java.lang.Double getValorIof() {\n return valorIof;\n }", "int getAssetValue();", "public Vector3f getAttenuation() {\r\n\t\treturn this.attenuation;\r\n \t}", "@Override\n\tpublic int getMC() {\n\t\treturn MC;\n\t}", "@Override\n\tpublic IAttributeValue value() { return value; }", "private static int SCARD_ATTR_VALUE(int iClass, int iTag)\n {\n return (iClass << 16) | iTag;\n }", "String getFlag() {\n return String.format(\"-T%d\", this.value);\n }", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public String getAttrCode() {\r\n\t\treturn attrCode;\r\n\t}", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public Integer getAttrId() {\n return attrId;\n }", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 20);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 12);\n\t\t}\n\t}", "public YangString getMobilityEventsMmeValue() throws JNCException {\n return (YangString)getValue(\"mobility-events-mme\");\n }", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type.Value xgetValue();", "public String getBm() {\n return bm;\n }", "public String getBm() {\n return bm;\n }", "public String getIntAttribute4() {\n return (String) getAttributeInternal(INTATTRIBUTE4);\n }", "public String getAttribute12()\n {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "@Override\r\n\tpublic double getIMC() throws Exception{\r\n\t\tdouble imc = getAnamnese().getPesoUsual()\r\n\t\t/ (anamnese.getAltura() * anamnese.getAltura());\r\n\t\tif(imc <=0 ){\r\n\t\t\tthrow new Exception(\"valor invalido\");\r\n\t\t}\r\n\t\r\n\t\treturn imc;\r\n\t}", "public java.lang.Float getM() {\n return m;\n }", "public Number getAncho()\n {\n return (Number)getAttributeInternal(ANCHO);\n }", "public String getIntAttribute9() {\n return (String) getAttributeInternal(INTATTRIBUTE9);\n }", "public int getM () {\n\t\treturn M;\n\t}", "public String getAttribute11()\n {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public int mo25006a() {\n int i = this.f16512l;\n if (i == -1) {\n return -1;\n }\n int i2 = this.f16513m;\n if (i2 == -1) {\n return -1;\n }\n return i * i2;\n }", "public void setIvaFlag(String value) {\n setAttributeInternal(IVAFLAG, value);\n }", "public String getMiNo() {\r\n return miNo;\r\n }", "public Map<String, Set<String>> getMapAttrValue() {\n\t\treturn mapAttrValue;\n\t}", "public int mo3822m() {\n return this.f1470as;\n }" ]
[ "0.7165604", "0.66059417", "0.61540973", "0.59817255", "0.5913091", "0.5772234", "0.5762462", "0.5762462", "0.5737408", "0.5731495", "0.5720454", "0.56427735", "0.564155", "0.5607701", "0.559908", "0.5585125", "0.5531162", "0.55145", "0.54527396", "0.5448555", "0.5445546", "0.5439159", "0.543238", "0.5431876", "0.5424739", "0.5423619", "0.5406972", "0.5406589", "0.53758305", "0.5370973", "0.5355901", "0.5353669", "0.5341187", "0.5336282", "0.5330465", "0.53304297", "0.53253156", "0.53149736", "0.5312073", "0.53106856", "0.5294515", "0.5287412", "0.528566", "0.5269207", "0.5264629", "0.52561224", "0.52516425", "0.5248635", "0.5248108", "0.52264947", "0.52208835", "0.52180463", "0.5214881", "0.52146435", "0.5208007", "0.52057654", "0.5197674", "0.51947194", "0.51945716", "0.51909685", "0.5184785", "0.5181951", "0.51809096", "0.51683664", "0.5157638", "0.5151298", "0.51490974", "0.51395226", "0.5137943", "0.5134015", "0.51338553", "0.51304346", "0.5128146", "0.51268697", "0.5123181", "0.51214457", "0.5121255", "0.5119446", "0.51169693", "0.5108269", "0.51040053", "0.50993764", "0.5086476", "0.5083349", "0.50812733", "0.5077379", "0.5077379", "0.5076966", "0.507662", "0.5075956", "0.50731725", "0.50727266", "0.5071587", "0.5070932", "0.5068651", "0.5063486", "0.5062486", "0.5062032", "0.5059963", "0.5057037" ]
0.82825685
0
Sets value as the attribute value for the calculated attribute IvaMFlag
public void setIvaMFlag(String value) { setAttributeInternal(IVAMFLAG, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIvaFlag(String value) {\n setAttributeInternal(IVAFLAG, value);\n }", "public String getIvaMFlag() {\n return (String) getAttributeInternal(IVAMFLAG);\n }", "void setInternal(ATTRIBUTES attribute, Object iValue);", "void setInt(int attributeValue);", "void setIVA(float iva);", "public baconhep.TTau.Builder setM(float value) {\n validate(fields()[3], value);\n this.m = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "final public void setAttr(final String name, final float value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Value = value;\r\n\t\t}\r\n\t}", "public Value setAttributes(Value from) {\n checkNotUnknown();\n from.checkNotUnknown();\n Value r = new Value(this);\n r.flags &= ~ATTR;\n r.flags |= from.flags & ATTR;\n return canonicalize(r);\n }", "@Override\n public void setAttribute(boolean f)\n {\n checkState();\n attribute = f;\n }", "public void setDmaValue(int value);", "final public void setAttr(final String name, final Vector2 value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name)) {\r\n\t\t\t\tif(value == null)\r\n\t\t\t\t\tattr.Vector = null;\r\n\t\t\t\telse\r\n\t\t\t\t\tattr.Vector = value.clone();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setAttrib(String name, String value);", "public void setAtmo(boolean value) {\n this.atmo = value;\n }", "public void setAttVCA(int att){\n\t\t\n\t\tsuper.setAttVCA((att == 0)? 1 : att );\n\t}", "public void setM(boolean m) {\n\tthis.m = m;\n }", "public void setFeIF(double value) {\n _avTable.set(ATTR_FE_IF, value);\n }", "public void setFlag( int flag )\n {\n value |= 1 << flag;\n setBit( flag );\n }", "protected void setFlag() {\n flag = flagVal;\n }", "protected void setFlag() {\n flag = flagVal;\n }", "public void updateIM() {\n\t\tScalarIMR imr = imrGuiBean.getSelectedIMR_Instance();\n//\t\timtGuiBean.setIM(imr,imr.getSupportedIntensityMeasuresIterator()) ;\n\t}", "public String getIvaFlag() {\n return (String) getAttributeInternal(IVAFLAG);\n }", "public void setInterFlag(int index, boolean value){\r\n\t\tif (index < 0 || index >= this.interVec.length)\r\n\t\t\t;\r\n\t\telse\r\n\t\t\tthis.interVec[index] = value;\r\n\t}", "@Override\r\n\t\tpublic void setAO(int address, int value) throws IOServiceException {\n\r\n\t\t}", "public void setRetentionMFlag(String value) {\n setAttributeInternal(RETENTIONMFLAG, value);\n }", "public Builder setM(int value) {\n \n m_ = value;\n onChanged();\n return this;\n }", "@Override\r\n\t\tpublic void writeAttribute(Element melelement,Measurement m) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void writeAttribute(Element melelement,Measurement m) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void writeAttribute(Element melelement,Measurement m) {\n\t\t}", "public void setM(java.lang.Float value) {\n this.m = value;\n }", "public static void attribute(String name, boolean value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "public void setAugment(boolean aValue);", "public final void setIdentity() {\n \t\n this.m00 = 1.0F;\n this.m01 = 0.0F;\n this.m02 = 0.0F;\n this.m10 = 0.0F;\n this.m11 = 1.0F;\n this.m12 = 0.0F;\n this.m20 = 0.0F;\n this.m21 = 0.0F;\n this.m22 = 1.0F;\n }", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "public Value.Builder setAktif(boolean value) {\n validate(fields()[6], value);\n this.aktif = value;\n fieldSetFlags()[6] = true;\n return this;\n }", "public void mo25061a(int i) {\n this.f14804f = i;\n }", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "public void setFlag(Integer flag) { this.flag = flag; }", "public void setFlag( int flag )\n {\n value |= 1 << ( MAX_SIZE - 1 - flag );\n }", "public void setOnHoldFlag(String value)\n {\n // Valid values are null, Y and N\n\n if ((value != null) && (!(\"\".equals(value.trim()))))\n { \n if (!((\"Y\".equals(value)) || (\"N\".equals(value))))\n {\n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"OnHoldFlag\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_ONHOLD_INVALID\"); // Message name\n\n }\n }\n\n setAttributeInternal(ONHOLDFLAG, value);\n \n }", "void xsetValue(gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type.Value value);", "public void mo25063b(int i) {\n this.f14803e = i;\n }", "public static void attribute(String name, int value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public void setAttribute(java.lang.String attrName, java.lang.String value) {\n\t\ttry {\n\t\t\tGovSteamFV4_primitive_builder attrEnum = GovSteamFV4_primitive_builder.valueOf(attrName);\n\t\t\tupdateAttributeInArray(attrEnum, attrEnum.construct(value));\n\t\t\tSystem.out.println(\"Updated GovSteamFV4, setting \" + attrName + \" to: \" + value);\n\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t{\n\t\t\tsuper.setAttribute(attrName, value);\n\t\t}\n\t}", "public void mo2143a(int i) {\n this.f12263d = i;\n }", "public void mo25071f(int i) {\n this.f14802d = i;\n }", "@Override\r\n\t\tpublic void parseAttribute(Attributes atr,Measurement m) {\n\t\t}", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "private void m13817a(int i) {\n this.f11303c = i;\n this.f11304d = 0;\n }", "@Override // X.AbstractC0131Ob\n public final void A03(mm mmVar, Boolean bool) throws IOException {\n String obj;\n if (bool == null) {\n obj = \"null\";\n } else {\n obj = bool.toString();\n }\n mmVar.A0G(obj);\n }", "public void setAOA(float AOA);", "private void setAlphaInfoValue(int value) {\n alphaInfo_ = value;\n }", "public void setCValue(V value);", "public void mo3805e(int i) {\n this.f1470as = i;\n }", "public void setAtt(int att){\r\n this.att = att;\r\n }", "void setElementValue(SetElementValue cmd);", "public void gxlAttrValueChanged(GXLAttrValueModificationEvent e) {\n\t}", "public void setAttrib(gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Attrib attrib) {\r\n this.attrib = attrib;\r\n }", "public void mo2146c(int i) {\n this.f12261b = i;\n }", "void setValue(gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type.Value.Enum value);", "public Value.Builder setJamMulai(long value) {\n validate(fields()[2], value);\n this.jam_mulai = value;\n fieldSetFlags()[2] = true;\n return this;\n }", "public void setI(boolean i) {\n\tthis.i = i;\n }", "public static <T> void setValue(PmAttr<T> attr, T value) {\n assertEnabled(attr);\n attr.setValue(value);\n assertNoMessagesInSubTree(attr);\n assertEquals(value, attr.getValue());\n }", "public void updateImcState(int value) {\n }", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "public void set(AttributeDefinition attribute, Object value)\n throws UnknownAttributeException, ModificationNotPermitedException\n {\n if(builtinAttributes.containsKey(attribute.getName()))\n {\n throw new IllegalArgumentException(\"builtin attribute \"+attribute.getName()+\n \"cannot be modified with set method\"); \n }\n else\n {\n throw new UnknownAttributeException(\"not a builtin attribute\");\n }\n }", "public void mo12390a(int i) {\n m20839a(\"filter_setting\", this.f17341k.f17235g[i], this.f17334d);\n }", "public Builder setFlag(int value) {\n bitField0_ |= 0x00000400;\n flag_ = value;\n onChanged();\n return this;\n }", "AdditionalAttributes setAttribute(String name, Object value, boolean force);", "void editAssetValue(int newVal);", "public void setVega(double value) {\r\n this.vega = value;\r\n }", "@Generated\n @Selector(\"setAttributes:\")\n public native void setAttributes(@NUInt long value);", "public Builder setI12(int value) {\n bitField0_ |= 0x00000800;\n i12_ = value;\n onChanged();\n return this;\n }", "public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\n }", "public void mo13871a(int i) {\n this.f5075a = i;\n }", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "public void setMissingValueCode(double mv);", "public void setApprovedFlag(String value) {\r\n setAttributeInternal(APPROVEDFLAG, value);\r\n }", "@Override\n public void setValue(int index, Object value)\n {\n if (index == 1)\n {\n super.setValue(index, value); \n }\n else if (index == 2)\n {\n if (m_Scaler != 0)\n {\n try\n { \n m_Value = ((Number)value).doubleValue() * getScaler();\n }\n catch (Exception ex)\n {\n //Sometimes scaler is set for wrong Object type.\n setValue(value);\n }\n }\n else\n {\n setValue(value);\n }\n }\n else if (index == 3)\n { \n //Set default values.\n if (value == null)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n if (Array.getLength(value) != 2)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n m_Scaler = ((Number)Array.get(value, 0)).intValue();\n m_Unit = (((Number)Array.get(value, 1)).intValue() & 0xFF);\n }\n }\n }\n else\n {\n throw new IllegalArgumentException(\"GetValue failed. Invalid attribute index.\");\n }\n }", "public void setAmmunition(boolean value) {\r\n this.ammunition = value;\r\n }", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "public void mo1513c(int i) {\n this.f1293d0 = true;\n this.f1295f0 = i;\n }", "public static void setImei(Object imei) {\n\t\t\n\t}", "static void setIdentityM(float[] sm, int smOffset) {\n for (int i = 0; i < 16; i++) {\n sm[smOffset + i] = 0;\n }\n for (int i = 0; i < 16; i += 5) {\n sm[smOffset + i] = 1.0f;\n }\n }", "void setAttributes(String attributeName, String attributeValue);", "public void mo13878c(int i) {\n this.f5081g = i;\n }", "public void ativa() {\n this.ativada = true;\n }", "public void giveFlag(Flag f)\r\n\t{\r\n\t\thasFlag = true;\r\n\t\tflag = f;\r\n\t}", "@Override\r\n\t\tpublic void writeAttribute(Element melement,Measurement m) {\n\t\t\tmelement.setAttribute(\"BoardingStop\", m.getAttribute(Measurement.transitBoardingStopAtrributeName).toString());\r\n\t\t\tmelement.setAttribute(\"AlightingStop\", m.getAttribute(Measurement.transitAlightingStopAttributeName).toString());\r\n\t\t\tmelement.setAttribute(\"Mode\", m.getAttribute(Measurement.transitModeAttributeName).toString());\r\n\t\t\t\r\n\t\t\tif(!m.getAttribute(Measurement.transitModeAttributeName).toString().equals(\"train\")) {\r\n\t\t\t\tmelement.setAttribute(\"LineId\", m.getAttribute(Measurement.transitLineAttributeName).toString());\r\n\t\t\t\tmelement.setAttribute(\"RouteId\", m.getAttribute(Measurement.transitRouteAttributeName).toString());\r\n\t\t\t}\r\n\t\t}", "public void setActiveflag(String value) {\n setAttributeInternal(ACTIVEFLAG, value);\n }", "public void setIva(int iva) {\n\t\tproducto.setIva(iva);\n\t}", "public static void attribute(String name, long value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public void attribute(String name, int value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(Integer.toString(value));\r\n this.writer.write('\"');\r\n }", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}" ]
[ "0.67624533", "0.659225", "0.6033842", "0.5888682", "0.5656453", "0.5655915", "0.5650034", "0.5635873", "0.56261164", "0.5600065", "0.5599243", "0.5596833", "0.55852395", "0.55718017", "0.5525797", "0.5487804", "0.5437374", "0.54219013", "0.54219013", "0.54115486", "0.5408222", "0.538871", "0.5386006", "0.53705746", "0.53687274", "0.5360888", "0.5360888", "0.5345445", "0.53379726", "0.5332335", "0.5327572", "0.53218275", "0.53054076", "0.53051054", "0.5303336", "0.52860093", "0.52808917", "0.52806914", "0.5266529", "0.52536076", "0.52291596", "0.52154094", "0.5214845", "0.52136695", "0.52013856", "0.5191419", "0.51776433", "0.5175448", "0.517211", "0.5136062", "0.51326525", "0.5121234", "0.51068693", "0.5104372", "0.51001483", "0.5096792", "0.50928354", "0.5088003", "0.50828654", "0.5070295", "0.50687546", "0.5068298", "0.50594324", "0.50590134", "0.5056965", "0.50500625", "0.5047409", "0.50445575", "0.5043577", "0.5040691", "0.50402725", "0.50302213", "0.50205517", "0.50174624", "0.50170225", "0.50142366", "0.50073206", "0.50064975", "0.49887395", "0.49857777", "0.4985096", "0.49806562", "0.4978707", "0.4972843", "0.4968973", "0.4962131", "0.49594158", "0.4953292", "0.4951525", "0.4943792", "0.4933767", "0.49336323", "0.4932469", "0.49310344", "0.49310035", "0.49283785", "0.49269444", "0.49269444", "0.49234802", "0.4923003" ]
0.7992392
0
Gets the attribute value for the calculated attribute RetentionMFlag
public String getRetentionMFlag() { return (String) getAttributeInternal(RETENTIONMFLAG); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRetentionFlag() {\n return (String) getAttributeInternal(RETENTIONFLAG);\n }", "public String getAttrVal() {\n return attrVal;\n }", "java.lang.String getAttribute();", "public String getIvaMFlag() {\n return (String) getAttributeInternal(IVAMFLAG);\n }", "public String getAttr() {\n return attr;\n }", "public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }", "public String getAvailableForRentFlag() {\n return (String) getAttributeInternal(AVAILABLEFORRENTFLAG);\n }", "public String getRemarks() {\r\n return (String) getAttributeInternal(REMARKS);\r\n }", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public String getRemarks() {\n return (String) getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\n return (String) getAttributeInternal(REMARKS);\n }", "public String getQualFlag() {\r\n return (String) getAttributeInternal(QUALFLAG);\r\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public ITaskExprType getAttributeMatchExpression()\n\t{\n\t\treturn attrMatchExpr;\n\t}", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Attrib getAttrib() {\r\n return attrib;\r\n }", "public String getTerms_Modifier_Check() {\n return (String) getAttributeInternal(TERMS_MODIFIER_CHECK);\n }", "int getAnnotationSentimentValue();", "public int getAtt(){ \r\n return att;\r\n }", "public String getattribut() \n\t{\n\t\treturn attribut;\n\t}", "protected abstract T getNormalFlagValue();", "public AttrCheck getAttrchk()\n {\n return this.attrchk;\n }", "com.google.protobuf.ByteString getAttributeBytes();", "public Retention getRetention() {\n return retention;\n }", "String getAttribute();", "public String getApprovedFlag() {\r\n return (String) getAttributeInternal(APPROVEDFLAG);\r\n }", "public Integer getdocverificationflag() {\n return (Integer) getAttributeInternal(DOCVERIFICATIONFLAG);\n }", "Attribute getAttribute();", "public String getATTR_ID() {\n return ATTR_ID;\n }", "public long getMentionID() {\n return _getLongValueNc(wrapGetIntCatchException(_FH_mentionID));\n }", "@NonNull\n String getNecessaryAttribute();", "public void setRetentionMFlag(String value) {\n setAttributeInternal(RETENTIONMFLAG, value);\n }", "public String getAttrValue() {\r\n\t\treturn attrValue;\r\n\t}", "public String getAttribute_value() {\n return attribute_value;\n }", "public java.lang.String getMent() {\n java.lang.Object ref = ment_;\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 ment_ = s;\n }\n return s;\n }\n }", "Pair<String, String> getAdditionalAttribute();", "public java.lang.String getMent() {\n java.lang.Object ref = ment_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n ment_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public int getAtt() {\n\t\treturn att;\n\t}", "String getFlag() {\n return String.format(\"-T%d\", this.value);\n }", "public String getLable () {\n return getString(ATTRIBUTE_LABEL);\n }", "public Number getRentAmount() {\n return (Number) getAttributeInternal(RENTAMOUNT);\n }", "public Integer getIdAttraction() {\r\n return idAttraction;\r\n }", "int getLikelihoodValue();", "public java.lang.String getAttributeValue() {\r\n return localAttributeValue;\r\n }", "java.lang.String getMent();", "final public float getFloatAttr() {\r\n\t\t\tif(mName.length() == 0)\r\n\t\t\t\treturn -1;\r\n\t\t\tif(mSaveAttr == null)\r\n\t\t\t\treturn getAttr(mName).Value;\r\n\t\t\treturn mSaveAttr.Value;\r\n\t\t}", "public Integer getAttrId() {\n return attrId;\n }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public String getAttr3() {\n return attr3;\n }", "public String getAttr3() {\n return attr3;\n }", "public String getMentionName() {\n return _getStringValueNc(wrapGetIntCatchException(_FH_mentionName));\n }", "public int getAttribute() {\n return Attribute;\n }", "public String getIvaFlag() {\n return (String) getAttributeInternal(IVAFLAG);\n }", "public String getNeedsAttentionDisplay() {\n if (needsAttention.booleanValue()) {\n return NEEDS_ATTN_YES;\n }\n return NEEDS_ATTN_NO;\n }", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public double getParseRating() {\n return getDouble(KEY_RATING);\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public String getAttr12() {\n return attr12;\n }", "public Integer getRepeatedAtt() {\r\n return repeatedAtt;\r\n }", "public String getMatchingAttributeValue()\n\t{\n\t\treturn this.matchingAttributeValue;\n\t}", "public String getRelativeflag() {\n return (String)getAttributeInternal(RELATIVEFLAG);\n }", "com.google.cloud.datalabeling.v1beta1.AnnotationValue getAnnotationValue();", "public Number getAmount() {\n return (Number) getAttributeInternal(AMOUNT);\n }", "public String getAttribute3() {\n return attribute3;\n }", "public String getChangedflag() {\n return (String) getAttributeInternal(CHANGEDFLAG);\n }", "public Value restrictToAttributes() {\n Value r = new Value(this);\n r.num = null;\n r.str = null;\n r.var = null;\n r.flags &= ATTR | ABSENT | UNKNOWN;\n if (!isUnknown() && isMaybePresent())\n r.flags |= UNDEF; // just a dummy value, to satisfy the representation invariant for PRESENT\n r.excluded_strings = r.included_strings = null;\n return canonicalize(r);\n }", "public Vector3f getAttenuation() {\r\n\t\treturn this.attenuation;\r\n \t}", "public Number getValue() {\n return (Number) getAttributeInternal(VALUE);\n }", "public Integer getAttentionId() {\n return attentionId;\n }", "public int getReviewValue()\n {\n \treturn m_nReviewValue;\n }", "public Character getRentalFlag() {\n return rentalFlag;\n }", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public double mleVar() {\n\t\tint n = this.getAttCount();\n\t\tif (n == 0) return Constants.UNUSED;\n\n\t\tdouble mean = mean();\n\t\tdouble sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble v = this.getValueAsReal(i);\n\t\t\tdouble deviation = v - mean;\n\t\t\tsum += deviation * deviation;\n\t\t}\n\t\treturn sum / (double)n;\n\t}", "public int getValueOfBonus() {\n return valueOfBonus;\n }", "public String getIncreasedExposureMax( ) {\n\t\treturn this.increasedExposureMax;\n\t}", "public Integer getAttendStar() {\n return attendStar;\n }", "public Float getMark() {\n return mark;\n }", "public float getNoOfNegativeReviewsMohan(){\n return mohanNegative;\n }", "public final String getValueAttribute() {\n String value = getAttributeValue(\"value\");\n if( value == ATTRIBUTE_NOT_DEFINED && this instanceof HtmlCheckBoxInput ) {\n value = \"on\";\n }\n return value;\n }", "@Override\n public OptionalInt getValence() {\n return IndigoUtil.valueOrEmpty(atom.explicitValence());\n }", "@Override\n\tpublic Object getAttrVal(String attrName) {\n\t\treturn null;\n\t}", "public String getAttribute() {\n return attribute;\n }", "public Integer getRemarkPro() {\n return remarkPro;\n }", "public double getAchievedMarksMax(){\n return achievedMarks\n .stream()\n .mapToDouble(AchievedMark::getMark)\n .max()\n .orElse(0);\n }", "public String getActiveFlag() {\n return (String) getAttributeInternal(ACTIVEFLAG);\n }", "public long getBonusAmount() {\r\n return bonusAmount;\r\n }", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "java.lang.String getPredicted();", "public double getM() {\r\n return m;\r\n }", "public String getReadWriteAttribute();", "public Byte getAuditFlag() {\n return auditFlag;\n }", "public String getAttr14() {\n return attr14;\n }", "@Nonnull\n public final synchronized String getAttributeValue() {\n return attributeValue;\n }", "public String getAttr9() {\n return attr9;\n }", "public Number getMemArtId() {\n return (Number) getAttributeInternal(MEMARTID);\n }", "public String getLocalFlag() {\n return (String)getAttributeInternal(LOCALFLAG);\n }", "public String getLocalFlag() {\n return (String) getAttributeInternal(LOCALFLAG);\n }" ]
[ "0.66191626", "0.5889398", "0.58862764", "0.5870781", "0.5779623", "0.5729197", "0.5729197", "0.5729197", "0.5729197", "0.57253075", "0.5719719", "0.56630224", "0.5656785", "0.5656785", "0.56427944", "0.5638087", "0.56172156", "0.5592801", "0.55912197", "0.5571683", "0.5568677", "0.55671537", "0.5554765", "0.5552885", "0.55364245", "0.55010015", "0.5479322", "0.5466586", "0.5461345", "0.54553896", "0.54551226", "0.5432863", "0.5432607", "0.54057974", "0.5387681", "0.5365965", "0.53575015", "0.5356972", "0.53319734", "0.53278947", "0.5298327", "0.52791387", "0.5263035", "0.5245054", "0.5239972", "0.5231417", "0.5228183", "0.5225769", "0.5225381", "0.5218078", "0.5210889", "0.5210889", "0.5210846", "0.5204605", "0.51975435", "0.518263", "0.51729447", "0.51721656", "0.515299", "0.5151118", "0.51503646", "0.51463675", "0.5137812", "0.51328224", "0.51247406", "0.51207983", "0.5117896", "0.51116955", "0.51065063", "0.51059", "0.5104617", "0.51042265", "0.51037055", "0.51008755", "0.5086834", "0.5086816", "0.5079493", "0.50736773", "0.5072641", "0.5065965", "0.5052273", "0.5051966", "0.5049062", "0.5045634", "0.5037464", "0.5035156", "0.5025444", "0.5024989", "0.5021894", "0.5021894", "0.5020519", "0.50158066", "0.501269", "0.50099957", "0.5009665", "0.5009562", "0.50095564", "0.5005117", "0.49977875", "0.49977145" ]
0.7345994
0
Sets value as the attribute value for the calculated attribute RetentionMFlag
public void setRetentionMFlag(String value) { setAttributeInternal(RETENTIONMFLAG, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRetentionFlag(String value) {\n setAttributeInternal(RETENTIONFLAG, value);\n }", "public String getRetentionMFlag() {\n return (String) getAttributeInternal(RETENTIONMFLAG);\n }", "public void setMentionID(long v) {\n _setLongValueNfc(wrapGetIntCatchException(_FH_mentionID), v);\n }", "public synchronized void attributeReward(int reward) {\n attributeReward = true;\n this.reward = reward;\n }", "final public void setAttr(final String name, final float value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Value = value;\r\n\t\t}\r\n\t}", "public void setRenovated(int value) {\n this.renovated = value;\n }", "public Builder setMent(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n ment_ = value;\n onChanged();\n return this;\n }", "public void setIvaMFlag(String value) {\n setAttributeInternal(IVAMFLAG, value);\n }", "public void setAttrVal(String attrVal) {\n this.attrVal = attrVal;\n }", "public void setRemarks(String value) {\r\n setAttributeInternal(REMARKS, value);\r\n }", "public String getRetentionFlag() {\n return (String) getAttributeInternal(RETENTIONFLAG);\n }", "public void changeMark() {\n marked = !marked;\n }", "public void setMentionName(String v) {\n _setStringValueNfc(wrapGetIntCatchException(_FH_mentionName), v);\n }", "public void setAttrib(String name, String value);", "protected void setFlag() {\n flag = flagVal;\n }", "protected void setFlag() {\n flag = flagVal;\n }", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "@Generated\n @Selector(\"setAttributes:\")\n public native void setAttributes(@NUInt long value);", "public void setOnHoldFlag(String value)\n {\n // Valid values are null, Y and N\n\n if ((value != null) && (!(\"\".equals(value.trim()))))\n { \n if (!((\"Y\".equals(value)) || (\"N\".equals(value))))\n {\n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"OnHoldFlag\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_ONHOLD_INVALID\"); // Message name\n\n }\n }\n\n setAttributeInternal(ONHOLDFLAG, value);\n \n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setMailReadflag(int v) \n {\n \n if (this.mailReadflag != v)\n {\n this.mailReadflag = v;\n setModified(true);\n }\n \n \n }", "public com.babbler.ws.io.avro.model.BabbleValue.Builder setMentions(java.util.List<java.lang.String> value) {\n validate(fields()[5], value);\n this.mentions = value;\n fieldSetFlags()[5] = true;\n return this;\n }", "public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\n }", "public Builder setMark(int value) {\n \n mark_ = value;\n onChanged();\n return this;\n }", "public Value setAttributes(boolean dontenum, boolean dontdelete, boolean readonly) {\n checkNotUnknown();\n Value r = new Value(this);\n r.flags &= ~ATTR;\n if (dontdelete)\n r.flags |= ATTR_DONTDELETE;\n else\n r.flags |= ATTR_NOTDONTDELETE;\n if (readonly)\n r.flags |= ATTR_READONLY;\n else\n r.flags |= ATTR_NOTREADONLY;\n if (dontenum)\n r.flags |= ATTR_DONTENUM;\n else\n r.flags |= ATTR_NOTDONTENUM;\n return canonicalize(r);\n }", "public void setClaim(boolean a){\n isClaimed= a;\n \n}", "public Value setAttributes(Value from) {\n checkNotUnknown();\n from.checkNotUnknown();\n Value r = new Value(this);\n r.flags &= ~ATTR;\n r.flags |= from.flags & ATTR;\n return canonicalize(r);\n }", "public void setM(boolean m) {\n\tthis.m = m;\n }", "public void setMark\n (int r, int c,\n Mark mark);", "public baconhep.TTau.Builder setM(float value) {\n validate(fields()[3], value);\n this.m = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "public void setAvailableForRentFlag(String value) {\n setAttributeInternal(AVAILABLEFORRENTFLAG, value);\n }", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "public void giveFlag(Flag f)\r\n\t{\r\n\t\thasFlag = true;\r\n\t\tflag = f;\r\n\t}", "final public void setAttr(final String name, final Vector2 value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name)) {\r\n\t\t\t\tif(value == null)\r\n\t\t\t\t\tattr.Vector = null;\r\n\t\t\t\telse\r\n\t\t\t\t\tattr.Vector = value.clone();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setClaim(boolean a,AbstAnt ant){\n isClaimed= a;\n claimer= ant;\n}", "public void setRentalFlag(Character aRentalFlag) {\n rentalFlag = aRentalFlag;\n }", "@Override\r\n\tpublic void addAttr(String name, String value) {\n\t}", "public void setAugment(boolean aValue);", "AdditionalAttributes setAttribute(String name, Object value, boolean force);", "void setInt(int attributeValue);", "public void setModifierFlag(int flag) {\n\t\tthis.modifier = flag;\n\t}", "public void setreadFlag(Boolean value) {\r\n setAttributeInternal(READFLAG, value);\r\n }", "@Override\n public void setAttribute(boolean f)\n {\n checkState();\n attribute = f;\n }", "public Value restrictToAttributes() {\n Value r = new Value(this);\n r.num = null;\n r.str = null;\n r.var = null;\n r.flags &= ATTR | ABSENT | UNKNOWN;\n if (!isUnknown() && isMaybePresent())\n r.flags |= UNDEF; // just a dummy value, to satisfy the representation invariant for PRESENT\n r.excluded_strings = r.included_strings = null;\n return canonicalize(r);\n }", "public Builder setMentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n ment_ = value;\n onChanged();\n return this;\n }", "public void changeMutable() {\n\t\tmutable = !mutable;\n\t}", "public void setAchieved(Boolean newValue);", "public void setQualFlag(String value) {\r\n setAttributeInternal(QUALFLAG, value);\r\n }", "void setMortgaged(boolean mortgaged);", "public void setAttrib(gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Attrib attrib) {\r\n this.attrib = attrib;\r\n }", "public void setMark(int v, int val){\r\n\t\tMark[v]=val;\r\n\t}", "@POST(\"/attractions/{attractionId}/favorite\")\n Call<Void> markFavoriteAttraction(\n @Path(\"attractionId\") int attractionId,\n @Header(\"Authorization\") String bearer\n );", "public String getAttrVal() {\n return attrVal;\n }", "public Builder setM(int value) {\n \n m_ = value;\n onChanged();\n return this;\n }", "@Override\n\t\tprotected void resetAttribute() {\n\t\t\tsuper.resetAttribute();\n\t\t\tmissing = false;\n\t\t\tmalformed = false;\n\t\t}", "public void setFlag(Drawable flag){\n ImageView mFlagImageView = findViewById(R.id.guesshint_image_flag);\n mFlagImageView.setImageDrawable(flag);\n }", "public void setAttributes(FactAttributes param) {\r\n localAttributesTracker = true;\r\n\r\n this.localAttributes = param;\r\n\r\n\r\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t\ttry {\n\t\t\t\tchanging = true;\n\t\t\t\telement.setAttributeNS(namespaceURI, localName, value);\n\t\t\t} finally {\n\t\t\t\tchanging = false;\n\t\t\t}\n\t\t}", "public void setContactRole(typekey.APDExposureContactRole value);", "void setMetadataValue(String name, String value) throws IOException;", "public Value.Builder setAktif(boolean value) {\n validate(fields()[6], value);\n this.aktif = value;\n fieldSetFlags()[6] = true;\n return this;\n }", "String attributeToSetter(String name);", "protected void attributeModified(MutationEvent evt) throws MelodyException {\r\n\t\tsuper.attributeModified(evt);\r\n\t\t// the target element\r\n\t\tElement t = (Element) evt.getTarget();\r\n\t\tDUNID tdunid = DUNIDDocHelper.getDUNID(t);\r\n\t\t// Modify the DUNIDDoc\r\n\t\tElement tori = getOwnerDUNIDDoc(t).getElement(tdunid);\r\n\t\ttori.setAttribute(evt.getAttrName(), evt.getNewValue());\r\n\t\t// Modify the targets descriptor\r\n\t\tif (!areTargetsFiltersDefined()) {\r\n\t\t\t/*\r\n\t\t\t * If there is no targets filters defined, there's no need to modify\r\n\t\t\t * the targets descriptor.\r\n\t\t\t */\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttori = getTargetsDescriptor().getElement(tdunid);\r\n\t\tif (tori != null) { // target node is in the targets descriptor\r\n\t\t\ttori.setAttribute(evt.getAttrName(), evt.getNewValue());\r\n\t\t}\r\n\t}", "@Test\n public void testSetResearched() {\n VirusAttribute virusAttribute = new VirusAttribute(\"att\", \"desc\", 30);\n virusAttribute.setResearched(true);\n boolean result = virusAttribute.isResearched();\n assertTrue(result);\n }", "public Builder setSetAttribute(alluxio.proto.journal.File.SetAttributeEntry value) {\n if (setAttributeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n setAttribute_ = value;\n onChanged();\n } else {\n setAttributeBuilder_.setMessage(value);\n }\n bitField0_ |= 0x08000000;\n return this;\n }", "@Override\n protected void visitHtmlAttributeValueNode(HtmlAttributeValueNode node) {\n pushState(HtmlContext.HTML_NORMAL_ATTR_VALUE);\n super.visitHtmlAttributeValueNode(node);\n popState();\n }", "public void setComplete(boolean param){\n \n // setting primitive attribute tracker to true\n localCompleteTracker =\n true;\n \n this.localComplete=param;\n \n\n }", "@Override\n\t\tprotected void resetAttribute() {\n\t\t}", "void setAttributes(String attributeName, String attributeValue);", "public void setProbMut (float value) {\r\n mut_prob= value;\r\n }", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "public abstract void set(M newValue);", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "@Override\n\tpublic void onStyleAttributeValue(Tokenizer tokenizer, String key, String value) {\n\t\t\n\t}", "public void changeAttrName() {\r\n }", "public void mark()\n {\n mark = true;\n }", "public void setAnnounced(Boolean newValue);", "public void setFlag(Integer flag) { this.flag = flag; }", "protected abstract T getNormalFlagValue();", "@Override\n\tpublic void attrAdded(Attr node, String newv) {\n\t\tif (!changing && baseVal != null) {\n\t\t\tbaseVal.invalidate();\n\t\t}\n\t\tfireBaseAttributeListeners();\n\t\tif (!hasAnimVal) {\n\t\t\tfireAnimatedAttributeListeners();\n\t\t}\n\t}", "private void setMetadata(org.chromium.components.paint_preview.common.proto.PaintPreview.MetadataProto value) {\n value.getClass();\n metadata_ = value;\n bitField0_ |= 0x00000002;\n }", "public void setdocverificationflag(Integer value) {\n setAttributeInternal(DOCVERIFICATIONFLAG, value);\n }", "void setAttributes(String attributeName, String attributeValue,\n ResultCapture<Void> extractor);", "public Builder setSetAttribute(\n alluxio.proto.journal.File.SetAttributeEntry.Builder builderForValue) {\n if (setAttributeBuilder_ == null) {\n setAttribute_ = builderForValue.build();\n onChanged();\n } else {\n setAttributeBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x08000000;\n return this;\n }", "public static void set_AttributeDecl(String multiplicity, String v) throws RuntimeException\n {\n read_if_needed_();\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaAttributeDeclCmd, multiplicity, v);\n UmlCom.check();\n \n _attr_decl[UmlSettings.multiplicity_column(multiplicity)] = v;\n }", "public void setFlags(int nRun, int nFlags, float fConfidence);", "public Builder setIfMetagenerationMatch(long value) {\n\n ifMetagenerationMatch_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "public void setRemark(String remark)\n/* */ {\n/* 267 */ this.remark = remark;\n/* */ }", "public int setKeff(String keff) {\r\n return setAttribute(MEConstants.keff, keff);\r\n }", "@Override\r\n\t\tpublic void parseAttribute(Attributes atr,Measurement m) {\n\t\t}", "public void set_return(boolean param){\n \n // setting primitive attribute tracker to true\n \n if (false) {\n local_returnTracker = false;\n \n } else {\n local_returnTracker = true;\n }\n \n this.local_return=param;\n \n\n }", "public void changeAttributeAnnotation(String className, String attrName, String AnnotationName, String value) {\n \n projectData.changeAttributeAnnotation(className, attrName, AnnotationName, value);\n }", "private void replaceMarker(String layer, String attributeName, String attributeValue, Feature f) {\n DescribedMarker marker = getDefaultMarker();\n\n if (marker != null) {\n setMarkerProperties(layer, attributeName, attributeValue, attributeValue, marker, f);\n }\n }" ]
[ "0.59281635", "0.5897415", "0.55713475", "0.5293523", "0.5250641", "0.5226585", "0.5216251", "0.52048874", "0.5181578", "0.51777136", "0.51698667", "0.5142415", "0.5138693", "0.51132303", "0.51051164", "0.51051164", "0.51019955", "0.5092623", "0.50910854", "0.5090303", "0.5090303", "0.5090303", "0.5090303", "0.5090303", "0.5090303", "0.50887334", "0.5072672", "0.5060714", "0.5059903", "0.5030029", "0.5022452", "0.50205415", "0.50095654", "0.4999539", "0.49936548", "0.49905604", "0.49811307", "0.4974949", "0.49500698", "0.4940101", "0.49283168", "0.4926398", "0.491827", "0.49179617", "0.49007353", "0.48770627", "0.48685813", "0.486229", "0.48477167", "0.4845375", "0.4842327", "0.4832909", "0.4832006", "0.4812024", "0.4801781", "0.47943717", "0.47908407", "0.47837827", "0.47793192", "0.47749498", "0.4768001", "0.47621062", "0.47619596", "0.47589776", "0.47549087", "0.47546285", "0.47540224", "0.4750974", "0.4746279", "0.47383413", "0.47371376", "0.47366634", "0.4735222", "0.47342828", "0.47325853", "0.47300714", "0.47204393", "0.4717791", "0.47048706", "0.47034097", "0.47027186", "0.47008342", "0.46931443", "0.46818542", "0.46810085", "0.46751136", "0.4671269", "0.46684062", "0.4666938", "0.4664278", "0.46610466", "0.46595356", "0.4657993", "0.4657399", "0.4656493", "0.4654097", "0.46534064", "0.4653405", "0.465086", "0.46445155" ]
0.67856616
0
Gets the attribute value for the calculated attribute Currency
public String getCurrency() { return (String) getAttributeInternal(CURRENCY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Currency getCurrency();", "Currency getCurrency();", "public String getCurrency() {\n return this.currency;\n }", "public java.lang.String getCurrency()\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(CURRENCY$10, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "com.google.ads.googleads.v6.resources.CurrencyConstant getCurrencyConstant();", "public String getCurrency()\n\t{\n\t\treturn this.currency;\n\t}", "public String getCurrency()\r\n {\r\n return currency;\r\n }", "public String getCurrencyCd() {\n return (String) getAttributeInternal(CURRENCYCD);\n }", "public String getCurrency() {\r\n return currency;\r\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "protected String getCurrency() {\n return currency;\n }", "public BigDecimal getCURRENCY() {\r\n return CURRENCY;\r\n }", "public java.lang.String getCurrency() {\r\n return currency;\r\n }", "public Object getCurrency() {\n\t\treturn null;\n\t}", "String getTradeCurrency();", "public java.lang.String getCurrency() {\n return currency;\n }", "public Currency getCurrency() {\n return currencyCode;\n }", "@Override\npublic Currency getCurrency() {\n\treturn balance.getCurrency();\n}", "public CurrencyUnit getCurrency() {\r\n return currency;\r\n }", "@Override\n public Currency getCurrency() {\n return currency;\n }", "@Override\n\tpublic String getCurrency(){\n\t\treturn MARLAY_CURR;\n\t}", "public java.math.BigDecimal getValue_Foreign_Currency() {\r\n return value_Foreign_Currency;\r\n }", "public String getUserCurrency() {\n return sessionData.getUserCurrency();\n }", "String getSettlementCurrency();", "Money getDiscountValue();", "public de.htwg_konstanz.ebus.framework.wholesaler.vo.Currency getCurrency () {\r\n\t\treturn currency;\r\n\t}", "public String getCurrencyCode()\r\n {\r\n return (m_currencyCode);\r\n }", "public Pokemon.Currency getCurrency() {\n if (currencyBuilder_ == null) {\n return currency_;\n } else {\n return currencyBuilder_.getMessage();\n }\n }", "public java.math.BigDecimal getValue_Local_Currency() {\r\n return value_Local_Currency;\r\n }", "public BigDecimal getCurrency1() {\n\treturn currency1;\n}", "com.google.protobuf.StringValue getCurrencyCode();", "public ArmCurrency getPrice() {\n return (getPrice(true));\n }", "public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }", "public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }", "public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }", "public BigDecimal getBigDecimalAttribute();", "public java.lang.String getChargecurrency() {\n\treturn chargecurrency;\n}", "public BigDecimal getPrice() {\n return (BigDecimal)getAttributeInternal(PRICE);\n }", "public CurrencyVO getCurrency() {\n\treturn currency;\n}", "public java.lang.String payCurrency()\n\t{\n\t\treturn _lsPeriod.get (_lsPeriod.size() - 1).payCurrency();\n\t}", "public java.lang.Integer getBasecurrency() {\n\treturn basecurrency;\n}", "public Currency getCurrency1() {\n return _underlyingForex.getCurrency1();\n }", "public Currency getCurrency() {\n return _index.getIborIndex().getCurrency();\n }", "public double getCEMENTAmount();", "public Currency getCurrency() {\n return _iborIndex.getCurrency();\n }", "public String getAccountCurrencyCode() {\r\n return accountCurrencyCode;\r\n }", "Money getItemValue();", "BigDecimal getValue();", "Uom getCurrencyUom();", "@Override\n public String getCurrency() {\n return currency != null ? currency : App.getContext().getString(R.string.example_currency);\n }", "public org.apache.xmlbeans.XmlString xgetCurrency()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CURRENCY$10, 0);\n return target;\n }\n }", "public Pokemon.Currency getCurrency() {\n return currency_;\n }", "public String getCurrencyPair() {\n return _ccyPair;\n }", "public BigDecimal getPayAmt();", "BigDecimal getDiscount();", "public String getCurrencyCode() {\n return mCurrencyCode;\n }", "public String getCurrencyCode() {\n return currencyCode;\n }", "public String getCurrency1() {\r\n\t\treturn currency1;\r\n\t}", "public Number getAmount() {\n return (Number) getAttributeInternal(AMOUNT);\n }", "public Number getPrice() {\n return (Number)getAttributeInternal(PRICE);\n }", "BigDecimal getAmount();", "public java.lang.String couponCurrency()\n\t{\n\t\treturn _lsPeriod.get (_lsPeriod.size() - 1).couponCurrency();\n\t}", "public java.lang.String getReceiveCurrency() {\r\n return receiveCurrency;\r\n }", "public java.lang.String getReceiveCurrency() {\r\n return receiveCurrency;\r\n }", "public String getCurrencyID() {\n return currencyID;\n }", "public BigDecimal getCurrency2() {\n\treturn currency2;\n}", "public String getIsCurrency() {\n return this.isCurrency;\n }", "@Override\n\tpublic Currency getCurrency() {\n\t\treturn null;\n\t}", "public abstract String getCurrencyType();", "public java.lang.String getIndicativeReceiveCurrency() {\r\n return indicativeReceiveCurrency;\r\n }", "public String getCurrencyid() {\n return currencyid;\n }", "@Override\n public Currency getCurrency() {\n return _index.getCurrency();\n }", "com.google.ads.googleads.v6.resources.CurrencyConstantOrBuilder getCurrencyConstantOrBuilder();", "public String getSalaryCurrency() {\n \treturn salaryCurrency;\n }", "public BigDecimal getLBR_TaxRateCredit();", "public java.math.BigDecimal getBigDecimal(String attr) {\n return (java.math.BigDecimal) super.get(attr);\n }", "public Pair<Currency, Currency> getCurrencyPair() {\n return _currencyPair;\n }", "public Pair<Currency, Currency> getCurrencyPair() {\n return _currencyPair;\n }", "public String getCurrencyID() {\n return currencyID;\n }", "public BigDecimal getLBR_TaxAmtCredit();", "public BigDecimal getPriceActual();", "public String getSplitCurrency() {\r\n\treturn fxndf.getSplitCurrency();\r\n }", "@Override\n @Nullable\n public Currency getCurrency(String key) {\n return currencies.get(key);\n }", "public String getPaymentCurrency() {\n return _paymentCurrency;\n }", "public double getMarketValue()\n {\n return this.totalShares * super.getCurrentPrice();\n }", "public BigDecimal getsaleamt() {\n return (BigDecimal) getAttributeInternal(SALEAMT);\n }", "public String get_currency_name() {\n\t\treturn name;\r\n\t}", "public BigDecimal getCHARGE_AMOUNT() {\r\n return CHARGE_AMOUNT;\r\n }", "public BigDecimal getCredit() {\n return credit;\n }", "public BigDecimal getCV_AMOUNT() {\r\n return CV_AMOUNT;\r\n }", "public int getAsCents(){\n return (dollars*100 + cents);\n }", "public Number getPriceVal() {\n return (Number)getAttributeInternal(PRICEVAL);\n }", "public Currency getCurrency2() {\n return _underlyingForex.getCurrency2();\n }", "Uom getOrigCurrencyUom();", "public String getSettlementCurrency() {\n Object ref = settlementCurrency_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n settlementCurrency_ = s;\n }\n return s;\n }\n }", "public String getSettlementCurrency() {\n Object ref = settlementCurrency_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n settlementCurrency_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "BigDecimal getPrice();" ]
[ "0.723407", "0.7222535", "0.72070473", "0.71776193", "0.7164205", "0.71330106", "0.71049297", "0.7097106", "0.7055961", "0.6995554", "0.6995554", "0.6995554", "0.6995554", "0.69912326", "0.6962403", "0.6959364", "0.6956381", "0.6890113", "0.6873862", "0.6865802", "0.6807302", "0.6794554", "0.67764026", "0.6761022", "0.67544615", "0.6737772", "0.67205274", "0.67191255", "0.6696874", "0.6693825", "0.6683073", "0.66314256", "0.66016906", "0.6568003", "0.6562878", "0.65520924", "0.65520924", "0.65520924", "0.6522658", "0.65183824", "0.64917415", "0.6478058", "0.6475307", "0.6454777", "0.6452204", "0.6441139", "0.6436306", "0.64245284", "0.6421202", "0.64195174", "0.6414814", "0.6407817", "0.6390905", "0.63520133", "0.6344503", "0.6328775", "0.631563", "0.6306023", "0.6306011", "0.62586814", "0.62516004", "0.62515074", "0.6248696", "0.6239477", "0.6229844", "0.6228281", "0.6228281", "0.6217878", "0.62138057", "0.6209983", "0.61803055", "0.61672205", "0.6166034", "0.6156433", "0.61530423", "0.61503124", "0.6136634", "0.61327684", "0.6117485", "0.6115872", "0.6115872", "0.6108608", "0.61048585", "0.61024886", "0.6100283", "0.6093163", "0.60863596", "0.6084804", "0.60817176", "0.6073357", "0.60670054", "0.6021342", "0.60162944", "0.60059506", "0.6003245", "0.5998067", "0.5995865", "0.599339", "0.59915406", "0.5985379" ]
0.7759404
0
Sets value as the attribute value for the calculated attribute Currency
public void setCurrency(String value) { setAttributeInternal(CURRENCY, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setCurrency(Currency currency);", "public void setCurrency(Currency usd) {\n\t\t\n\t}", "public void setCurrency1(BigDecimal newCurrency1) {\n\tcurrency1 = newCurrency1;\n}", "public void setCurrency(CurrencyVO newCurrency) {\n\tcurrency = newCurrency;\n}", "public void setCurrency(CurrencyUnit currency) {\r\n this.currency = currency;\r\n }", "public abstract void setCurrencyType(String currencyType);", "void setValue(BigDecimal value);", "public String getCurrency() {\n return this.currency;\n }", "void setEditTransactionCurrency(String currency);", "public void setCURRENCY(BigDecimal CURRENCY) {\r\n this.CURRENCY = CURRENCY;\r\n }", "public void setValue(BigDecimal value) { this.m_value = value; }", "public void setCurrency(java.lang.String currency)\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(CURRENCY$10, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CURRENCY$10);\n }\n target.setStringValue(currency);\n }\n }", "public void setC_Currency_ID (int C_Currency_ID);", "public void setCurrencyID(String value) {\n this.currencyID = value;\n }", "public void setCurrencyCd(String value) {\n setAttributeInternal(CURRENCYCD, value);\n }", "public String getCurrency() {\r\n return currency;\r\n }", "public Currency(String country,double value, double valueUSD){\n this.country = country;\n this.value = value;\n this.valueUSD = valueUSD;\n}", "public String getCurrency()\r\n {\r\n return currency;\r\n }", "@Override\n public Currency getCurrency() {\n return currency;\n }", "protected void setCurrency(String currency) {\n this.currency = currency;\n }", "protected String getCurrency() {\n return currency;\n }", "public void setCurrency2(BigDecimal newCurrency2) {\n\tcurrency2 = newCurrency2;\n}", "public void setConvertedProductQty (BigDecimal ConvertedProductQty)\n{\nset_Value (\"ConvertedProductQty\", ConvertedProductQty);\n}", "public BigDecimal getCURRENCY() {\r\n return CURRENCY;\r\n }", "void setDiscount(BigDecimal discount);", "public Builder setCurrencyID(String value) {\n validate(fields()[10], value);\n this.currencyID = value;\n fieldSetFlags()[10] = true;\n return this; \n }", "void setAddTransactionCurrency(String currency);", "public void setAmount(double value) {\n this.amount = value;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "@Override\n\tpublic String getCurrency(){\n\t\treturn MARLAY_CURR;\n\t}", "public void setCurrency(String currency) {\n this.currency = currency;\n }", "public void setCurrency(String currency) {\n this.currency = currency;\n }", "public void setAmount(BigDecimal value) {\n this.amount = value;\n }", "public void setValue_Local_Currency(java.math.BigDecimal value_Local_Currency) {\r\n this.value_Local_Currency = value_Local_Currency;\r\n }", "public void setConvertedSplitQty (BigDecimal ConvertedSplitQty)\n{\nset_Value (\"ConvertedSplitQty\", ConvertedSplitQty);\n}", "public void setPrice(BigDecimal value) {\n setAttributeInternal(PRICE, value);\n }", "public void setAmount(double value) {\n this.amount = value;\n }", "public void setPriceActual (BigDecimal PriceActual);", "public void setConvertedShrinkQty (BigDecimal ConvertedShrinkQty)\n{\nset_Value (\"ConvertedShrinkQty\", ConvertedShrinkQty);\n}", "public abstract BaseQuantityDt setValue(BigDecimal theValue);", "public void setValue_Foreign_Currency(java.math.BigDecimal value_Foreign_Currency) {\r\n this.value_Foreign_Currency = value_Foreign_Currency;\r\n }", "public String getCurrency()\n\t{\n\t\treturn this.currency;\n\t}", "public void xsetCurrency(org.apache.xmlbeans.XmlString currency)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CURRENCY$10, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(CURRENCY$10);\n }\n target.set(currency);\n }\n }", "public String getCurrency() {\n return (String) getAttributeInternal(CURRENCY);\n }", "Currency getCurrency();", "void setAmount(ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount amount);", "public void setCost (BigDecimal Cost)\n{\nif (Cost == null) throw new IllegalArgumentException (\"Cost is mandatory\");\nset_Value (\"Cost\", Cost);\n}", "void setBalance(double value);", "public Currency getCurrency();", "public BigDecimal getCurrency1() {\n\treturn currency1;\n}", "public CurrencyUnit getCurrency() {\r\n return currency;\r\n }", "public Currency getCurrency() {\n return currencyCode;\n }", "public Object getCurrency() {\n\t\treturn null;\n\t}", "public void setCurrentCash(double value) {\r\n this.currentCash = value;\r\n }", "public void setAmount(double value) {\r\n\t\tthis.amount = value;\r\n\t}", "public void setsaleamt(BigDecimal value) {\n setAttributeInternal(SALEAMT, value);\n }", "public static void updateCurrency(SQLiteDatabase db, String column, double value){\n final String SQL_UPDATE =\n \"UPDATE \" + ClickerContract.UserData.TABLE_NAME + \" SET \" +\n column + \" = \" + String.valueOf(value) + \" WHERE \" +\n ClickerContract.UserData._ID + \" = 1;\";\n db.execSQL(SQL_UPDATE);\n }", "public void setShrinkQty (BigDecimal ShrinkQty)\n{\nset_Value (\"ShrinkQty\", ShrinkQty);\n}", "public Builder setSettlementCurrency(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00020000;\n settlementCurrency_ = value;\n onChanged();\n return this;\n }", "public void setUserCurrency(String userCurrency) {\n sessionData.setUserCurrency(userCurrency);\n }", "public void setPayAmt (BigDecimal PayAmt);", "void setIncome(double amount);", "public void setCurrency(java.lang.String currency) {\r\n this.currency = currency;\r\n }", "@SkipValidation\n public String setUpCurrency() {\n if ((currency != null) && (currency.getHcmoCurrencyId() != null)) {\n currency = currencyService.getCurrency(currency.getHcmoCurrencyId());\n }\n return SUCCESS;\n }", "public void setRate(double annualRate) {\nmonthlyInterestRate = annualRate / 100.0 / MONTHS;\n}", "public void setSalaryCurrency(String cur) {\n \tthis.salaryCurrency = cur;\n }", "public void changeDiscountRate (double value) {\n this.discountRate = value;\n }", "public void setCurrency( String phone )\r\n {\r\n currency = phone;\r\n }", "@Override\n public void setValue(BigDecimal value) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }", "public abstract void setDiscountRate(double discountRate);", "public void setAmount(int moneyOption);", "public Builder setCurrency(Pokemon.Currency value) {\n if (currencyBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n currency_ = value;\n onChanged();\n } else {\n currencyBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000400;\n return this;\n }", "@Override\npublic Currency getCurrency() {\n\treturn balance.getCurrency();\n}", "public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }", "public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }", "public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }", "public void setCurrency(java.lang.String currency) {\n this.currency = currency;\n }", "public void setC(double value) {\n this.c = value;\n }", "public void setAmount(Number value) {\n setAttributeInternal(AMOUNT, value);\n }", "public java.lang.String getCurrency() {\r\n return currency;\r\n }", "public void setMontoCatalogoEstimado(double param){\n \n this.localMontoCatalogoEstimado=param;\n \n\n }", "public void setPriceEntered (BigDecimal PriceEntered);", "public java.math.BigDecimal getValue_Local_Currency() {\r\n return value_Local_Currency;\r\n }", "@Test\n public void testSetCurrency() {\n CurrencyUnit cu = Waehrung.of(\"XXX\");\n factory.setCurrency(cu);\n Geldbetrag geldbetrag = factory.create();\n assertEquals(cu, geldbetrag.getCurrency());\n }", "public Coin(double value, String currency)\n\t{\n\t\tthis.value = value;\n\t\tthis.currency = currency;\n\t}", "public java.math.BigDecimal getValue_Foreign_Currency() {\r\n return value_Foreign_Currency;\r\n }", "public void setCurrency (de.htwg_konstanz.ebus.framework.wholesaler.vo.Currency currency) {\r\n\t\tthis.currency = currency;\r\n\t}", "Money getDiscountValue();", "public void setPrice(Number value) {\n setAttributeInternal(PRICE, value);\n }", "public void setLBR_TaxRateCredit (BigDecimal LBR_TaxRateCredit);", "public void setAmount(int C_Currency_ID, BigDecimal payAmt) {\n if (C_Currency_ID == 0) {\n C_Currency_ID = MClient.get(getCtx()).getC_Currency_ID();\n }\n setC_Currency_ID(C_Currency_ID);\n setPayAmt(payAmt);\n }", "public Builder setTradeCurrency(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00010000;\n tradeCurrency_ = value;\n onChanged();\n return this;\n }", "String getSettlementCurrency();", "void setTax(BigDecimal tax);", "public void setLBR_TaxAmtCredit (BigDecimal LBR_TaxAmtCredit);", "public void setCurrencyRate(String currencyCode, BigDecimal value)\n {\n currencyRates.put(currencyCode, value);\n }", "public Builder setCurrency(\n Pokemon.Currency.Builder builderForValue) {\n if (currencyBuilder_ == null) {\n currency_ = builderForValue.build();\n onChanged();\n } else {\n currencyBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000400;\n return this;\n }" ]
[ "0.7284098", "0.6687431", "0.66760486", "0.6606093", "0.65886384", "0.6557294", "0.64813364", "0.6479039", "0.6466469", "0.6444136", "0.6395163", "0.63865143", "0.6374314", "0.63659644", "0.63039804", "0.62767357", "0.6263451", "0.62532604", "0.6249836", "0.6245206", "0.6241938", "0.62288517", "0.62234706", "0.6220937", "0.62190175", "0.6214951", "0.62099564", "0.61900914", "0.6169944", "0.6169944", "0.6169944", "0.6169944", "0.6159004", "0.61393917", "0.61393917", "0.6133134", "0.6127423", "0.61222917", "0.61018616", "0.610052", "0.60736966", "0.60697174", "0.6058934", "0.6054427", "0.60529554", "0.60356617", "0.6034958", "0.60306776", "0.6022305", "0.5995355", "0.5991242", "0.59885395", "0.59602123", "0.5957457", "0.5954366", "0.59540117", "0.59383464", "0.5922571", "0.5919135", "0.59116024", "0.59089744", "0.590834", "0.58981603", "0.5869126", "0.5863393", "0.5858925", "0.58549225", "0.58322793", "0.58199584", "0.5809394", "0.5799484", "0.57993406", "0.5779402", "0.57763034", "0.577617", "0.5775937", "0.5774124", "0.5774124", "0.5774124", "0.57594544", "0.57575405", "0.5753022", "0.57479775", "0.5743721", "0.5735238", "0.5724733", "0.5721857", "0.57216144", "0.5718926", "0.5710385", "0.5707018", "0.57065815", "0.57063717", "0.5704124", "0.5698136", "0.5694089", "0.56914306", "0.5689819", "0.56894046", "0.5670879" ]
0.71954846
1
Gets the attribute value for the calculated attribute Provider
public String getProvider() { return (String) getAttributeInternal(PROVIDER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public String getAttribute_value() {\n return attribute_value;\n }", "Attribute getAttribute();", "java.lang.String getAttribute();", "Object getAttribute(int attribute);", "String attributeToGetter(String name);", "public org.omg.uml.foundation.core.Attribute getAttribute();", "@Override\n\tpublic IAttributeValue value() { return value; }", "String getAttribute();", "public java.lang.String getAttributeValue() {\r\n return localAttributeValue;\r\n }", "public String getValue() {\n return super.getAttributeValue();\n }", "public GenericAttribute getAttribute () {\n return attribute;\n }", "public BigDecimal getsaleamt() {\n return (BigDecimal) getAttributeInternal(SALEAMT);\n }", "public int getAttribute() {\n return Attribute;\n }", "public String getAttribute() {\n return attribute;\n }", "@Nonnull\n public final synchronized String getAttributeValue() {\n return attributeValue;\n }", "public Double getDoubleAttribute();", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "private String getAttributeValue(final Attribute attribute) {\n\t List<String> values = this.getAttributeValues(attribute);\n\t if (values.size()>0) {\n\t return values.get(0);\n\t } else {\n\t return \"\";\n\t }\n\t}", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "Pair<String, String> getAdditionalAttribute();", "public double getAttribute(ExtendedStatistic statistic) {\n try {\n return cacheStatisticManager.getAttribute(statistic);\n } catch (ExtendedStatisticNotFoundException e) {\n log.unableToGetStatistic(statistic, e);\n }\n return 0;\n }", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "public Number getValue() {\n return (Number) getAttributeInternal(VALUE);\n }", "public Number getAmount() {\n return (Number) getAttributeInternal(AMOUNT);\n }", "public String getAttribute(final String attributeLocator);", "public Attribute fetchAttribute(String key, String value);", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public String getProductAttrValue() {\n return (String)getAttributeInternal(PRODUCTATTRVALUE);\n }", "public String getAttrVal() {\n return attrVal;\n }", "ValueExpression getValueExpression(String attributeName);", "public String attribute() {\n return this.attribute;\n }", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public String getValue() {\n return getMethodValue(\"value\");\n }", "public String getAttributeValue(By locator, String attributeName) {\n \t\t\t\n \t\t\tWebElement element = driver.findElement(locator);\n \t\t\tString attributeValue = element.getAttribute(attributeName);\n \t\t\treturn attributeValue;\n \t\t}", "private double getAttributeProbability(String attribute, int attributeIndex) {\n\t\tDouble value; // store value of raw data\n\t\tif (attribute.chars().allMatch(Character::isDigit) || attribute.contains(\".\")) {\n\t\t\tvalue = Double.valueOf(attribute);\n\t\t} else {\n\t\t\tvalue = (double) attribute.hashCode();\n\t\t} // end if-else\n\n\n\t\tdouble totalSelectedAttribute = 0;\n\t\tfor (Bin bin : attribBins.get(attributeIndex)) {\n\t\t\tif (bin.binContains(value)) {\n\t\t\t\ttotalSelectedAttribute = bin.getFreq();\n\t\t\t\tbreak;\n\t\t\t} // end if\n\t\t} // end for\n\n\t\tint totalAttributes = 0;\n\t\tfor (int i = 0; i < dc.getDataFold().size(); i++) {\n\t\t\tif (i == testingFold) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\ttotalAttributes += dc.getDataFold().get(i).size();\n\t\t\t} // end if-else\n\t\t} // end for\n\t\treturn totalSelectedAttribute / totalAttributes;\n\t}", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Attrib getAttrib() {\r\n return attrib;\r\n }", "public String getValue(int index)\n {\n if (index < 0 || index >= attributesList.size())\n {\n return null;\n }\n return ((Attribute) attributesList.get(index)).value;\n }", "public double get(int index) {\n\t\treturn attrs.getQuick(index);\n\t}", "public String getAttributeValue(Node node, String attributeName) throws Exception;", "public Number getPrice() {\n return (Number)getAttributeInternal(PRICE);\n }", "public Number getAlto()\n {\n return (Number)getAttributeInternal(ALTO);\n }", "public String getAttrValue() {\r\n\t\treturn attrValue;\r\n\t}", "public CsdlExpression getValue() {\n return value;\n }", "public String getValue() throws SdpParseException {\n\t\tNameValue nameValue = getAttribute();\n\t\tif (nameValue == null)\n\t\t\treturn null;\n\t\telse {\n\t\t\tObject value = nameValue.getValue();\n\t\t\tif (value == null)\n\t\t\t\treturn null;\n\t\t\telse if (value instanceof String)\n\t\t\t\treturn (String) value;\n\t\t\telse\n\t\t\t\treturn value.toString();\n\t\t}\n\t}", "@Override\n\tpublic double value(final Attribute att) {\n\t\treturn 0;\n\t}", "public Object getAttribute(String name);", "public FactAttribute[] getAttribute() {\r\n return localAttribute;\r\n }", "public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }", "public Float getFloatAttribute();", "public Object get(AttributeDefinition attribute)\n throws UnknownAttributeException\n {\n if(!builtinAttributes.containsKey(attribute.getName()))\n {\n throw new UnknownAttributeException(attribute.getName()+\n \t\t\" declared in \"+attribute.getDeclaringClass().getName()+\n \t\t\" is not a builtin attribute \");\n }\n Method method = (Method)builtinAttributes.get(attribute.getName());\n try\n {\n return method.invoke(this, new Object[0]);\n }\n catch(Exception e)\n {\n throw new BackendException(\"failed to invoke method for builtin attribute \"+\n attribute.getName(), e);\n }\n }", "public String getAttr() {\n return attr;\n }", "public String getAttribute(String name);", "protected IValue readValueForAttribute(String type, Attribute<? extends IValue> a, ResultSet r) throws SQLException {\n\t\tfinal String colName = getAttributeColNameForType(type, a);\n\t\tswitch (a.getValueSpace().getType()) {\n\t\tcase Integer:\n\t\t\tint valueInd = r.getInt(colName);\n\t\t\treturn a.getValueSpace().getValue(Integer.toString(valueInd));\n\t\tcase Continue:\n\t\t\tdouble valueDouble = r.getDouble(colName);\n\t\t\treturn a.getValueSpace().getValue(Double.toString(valueDouble));\n\t\tcase Nominal:\n\t\tcase Range:\n\t\tcase Order:\n\t\t\tString valueStr = r.getString(colName);\n\t\t\treturn a.getValueSpace().getValue(valueStr);\n\t\tcase Boolean:\n\t\t\tif (r.getBoolean(colName)) {\n\t\t\t\treturn ((BinarySpace)a.getValueSpace()).valueTrue;\n\t\t\t} else {\n\t\t\t\treturn ((BinarySpace)a.getValueSpace()).valueFalse;\n\t\t\t}\n\t\tdefault :\n\t\t\tthrow new RuntimeException(\"unknown entity type \"+a.getValueSpace().getType());\n\t\t}\n\t}", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public Number getPriceVal() {\n return (Number)getAttributeInternal(PRICEVAL);\n }", "public final String getValueAttribute() {\n String value = getAttributeValue(\"value\");\n if( value == ATTRIBUTE_NOT_DEFINED && this instanceof HtmlCheckBoxInput ) {\n value = \"on\";\n }\n return value;\n }", "public static String getUserAttribute(String username, String attribute) {\n String attributeValue = null;\n\n try {\n DirectoryManager directoryManager = (DirectoryManager) appContext.getBean(\"directoryManager\");\n User user = directoryManager.getUserByUsername(username);\n\n if (user != null) {\n //convert first character to upper case\n char firstChar = attribute.charAt(0);\n firstChar = Character.toUpperCase(firstChar);\n attribute = firstChar + attribute.substring(1, attribute.length());\n\n Method method = User.class.getDeclaredMethod(\"get\" + attribute, new Class[]{});\n String returnResult = (String) method.invoke(user, new Object[]{});\n if (returnResult == null || attribute.equals(\"Password\")) {\n returnResult = \"\";\n }\n\n attributeValue = returnResult;\n }\n } catch (Exception e) {\n LogUtil.error(WorkflowUtil.class.getName(), e, \"Error retrieving user attribute \" + attribute);\n }\n return attributeValue;\n }", "public ITaskExprType getAttributeMatchExpression()\n\t{\n\t\treturn attrMatchExpr;\n\t}", "public Number getAncho()\n {\n return (Number)getAttributeInternal(ANCHO);\n }", "private double getValue() {\n return value;\n }", "double getBasedOnValue();", "public BigDecimal getBigDecimalAttribute();", "public Integer getIntegerAttribute();", "Object getAttribute(String key);", "Object getAttribute(String key);", "public double getValue(){\n return value;\n }", "public String getAttribute1() {\n return attribute1;\n }", "private String getAttributeValue(String type, Seeding seed){\n \tif (type.equals(\"vegetable\"))\n \t\treturn seed.vegetable;\n \telse if (type.equals(\"unit\"))\n \t\treturn seed.unit;\n \telse \n \t\tthrow new RuntimeException(\"valueList.getAttributeValue-ERROR: type not allowed: \" + type);\n }", "public double getA();", "public interface AttrValue {\n\n /**\n * 执行属性规则\n *\n * @return 返回Map以attrName为Key属性值正确的格式为value\n */\n Object getAttrValue(Map<String, Object> attrValueContext, String empId) throws Exception;\n\n /**\n * 获取属性的排序\n *\n * @return 排序值越小越靠前\n */\n int getOrder();\n\n}", "public java.lang.Object getCachedAttributeValue(Symbol attrName, java.lang.Object defaultValue);", "public String getattribut() \n\t{\n\t\treturn attribut;\n\t}", "@Override\n\t\tprotected String getValueAsString() {\n\t\t\tAttr attr = element.getAttributeNodeNS(namespaceURI, localName);\n\t\t\tif (attr == null) {\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\treturn attr.getValue();\n\t\t}", "public final Object getAttribute(String attribute) {\r\n\t\tfor (String key:annotations.keySet()) {\r\n\t\t\tAnnotationDefinition defn = annotations.get(key);\r\n\t\t\tif (defn.getParams() != null && defn.getParams().containsKey(attribute))\r\n\t\t\t\treturn defn.getParams().get(attribute);\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "public String getMatchingAttributeValue()\n\t{\n\t\treturn this.matchingAttributeValue;\n\t}", "public HbAttributeInternal getAttribute(String name);", "String getAttributeStringValue(Object attr);", "public Object getAttribute(Object key) {\n return getAttributes().get(key);\n }", "@NonNull\n String getNecessaryAttribute();", "public Object getAttribute(String attribute_name) \n throws AttributeNotFoundException,\n MBeanException,\n ReflectionException {\n if (attribute_name == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"Attribute name cannot be null\"), \n \"Cannot invoke a getter of \" + dClassName + \" with null attribute name\");\n }\n\n attribute_name = RunTimeSingleton.decode(attribute_name, \"US-ASCII\"); // HtmlAdapter made from info/admin -> info%2Fadmin\n // \"logging/org.xmlBlaster.engine.RequestBroker\"\n if (attribute_name.startsWith(\"logging/\"))\n attribute_name = attribute_name.substring(8); // \"org.xmlBlaster.engine.RequestBroker\"\n\n try {\n Level level = this.glob.getLogLevel(attribute_name);\n return level.toString();\n }\n catch (ServiceManagerException e) {\n if (attribute_name == null || attribute_name.length() == 0 || \"logging/\".equals(attribute_name)) return Level.INFO.toString();\n throw(new AttributeNotFoundException(\"Cannot find '\" + attribute_name + \"' attribute in \" + dClassName));\n }\n }", "public String getAttributeValueByName(String name) {\n\t\tif(attributes!=null) {\n\t\t\treturn attributes.get(name);\n\t\t}\n\t\treturn null;\n\t}", "public synchronized Object getAttribute(String key) {\n return attributes.get(key);\n }", "protected String getAttribute(String chave) throws AtributosException {\r\n\t\tif (tag == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t\tString attributeValue = tag.getAttributeValue(chave);\r\n\r\n\t\tif (attributeValue == null || attributeValue.trim().equals(\"\")) {\r\n\t\t\tattributeValue = getDefaultValue(chave);\r\n\t\t}\r\n\r\n\t\treturn attributeValue;\r\n\t}", "public double getValue() {\n return value_;\n }", "public String getStringAttribute();", "Expression getValue();", "Expression getValue();", "public Object getProperty(String attName);", "public String getAttributeDisplay() {\r\n\t\treturn String.valueOf(this.getAttributeValue());\r\n\t}", "public double getValue() {\r\n return this.value;\r\n }", "protected ProbeValue getAttribute(String name) {\n if (values != null) {\n return values.get(name);\n } else {\n return null;\n }\n }", "public double getValue() {\n return value_;\n }", "public double getValue()\n {\n return this.value;\n }", "public double getValue() {\n return this.value;\n }" ]
[ "0.6609853", "0.65487534", "0.63483924", "0.6307477", "0.62408847", "0.6209477", "0.6191876", "0.6106911", "0.6081701", "0.60712665", "0.6047997", "0.60439277", "0.6022889", "0.60061795", "0.5961395", "0.59566706", "0.59456325", "0.5895187", "0.5881233", "0.58811", "0.5881085", "0.58560807", "0.5837113", "0.5802179", "0.5802179", "0.5802172", "0.5798648", "0.577849", "0.57507056", "0.57392436", "0.5726832", "0.5719524", "0.57147586", "0.5697629", "0.5663352", "0.56547636", "0.56547636", "0.56547636", "0.5651681", "0.56481665", "0.56454444", "0.5645254", "0.5640864", "0.56302106", "0.56218576", "0.5614231", "0.561413", "0.56033915", "0.56005394", "0.55980575", "0.5579372", "0.55691487", "0.5567087", "0.55466825", "0.5525998", "0.5516529", "0.55114", "0.5490296", "0.5485983", "0.5485081", "0.54833084", "0.54818064", "0.54790133", "0.547672", "0.54754966", "0.5475488", "0.54745054", "0.5471738", "0.5470018", "0.54674447", "0.54674447", "0.5456611", "0.5452227", "0.54516673", "0.5445637", "0.5438362", "0.5437468", "0.5434776", "0.5421197", "0.5416315", "0.5415149", "0.5409637", "0.54084975", "0.54007816", "0.5396573", "0.53953725", "0.539415", "0.5391566", "0.5388471", "0.53882027", "0.5385268", "0.53823894", "0.53823894", "0.53773504", "0.5376203", "0.5370294", "0.53652906", "0.53591996", "0.5350576", "0.5346957" ]
0.557262
51
Sets value as the attribute value for the calculated attribute Provider
public void setProvider(String value) { setAttributeInternal(PROVIDER, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "void setInternal(ATTRIBUTES attribute, Object iValue);", "protected abstract void setContextAttribute(String name, Object value);", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "void setInt(int attributeValue);", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\n }", "void setValueExpression(String attributeName, ValueExpression valueExpression);", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "String attributeToSetter(String name);", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "public void setValue(A value) {this.value = value; }", "@Override\n public void setValue(int index, Object value)\n {\n if (index == 1)\n {\n super.setValue(index, value); \n }\n else if (index == 2)\n {\n if (m_Scaler != 0)\n {\n try\n { \n m_Value = ((Number)value).doubleValue() * getScaler();\n }\n catch (Exception ex)\n {\n //Sometimes scaler is set for wrong Object type.\n setValue(value);\n }\n }\n else\n {\n setValue(value);\n }\n }\n else if (index == 3)\n { \n //Set default values.\n if (value == null)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n if (Array.getLength(value) != 2)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n m_Scaler = ((Number)Array.get(value, 0)).intValue();\n m_Unit = (((Number)Array.get(value, 1)).intValue() & 0xFF);\n }\n }\n }\n else\n {\n throw new IllegalArgumentException(\"GetValue failed. Invalid attribute index.\");\n }\n }", "void setAttributes(String attributeName, String attributeValue,\n ResultCapture<Void> extractor);", "void setAttributes(String attributeName, String attributeValue);", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "void setProperty(String attribute, String value);", "public void setAttrib(String name, String value);", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "final public void setAttr(final String name, final float value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Value = value;\r\n\t\t}\r\n\t}", "public abstract void setValue(ELContext context, Object value);", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t\ttry {\n\t\t\t\tchanging = true;\n\t\t\t\telement.setAttributeNS(namespaceURI, localName, value);\n\t\t\t} finally {\n\t\t\t\tchanging = false;\n\t\t\t}\n\t\t}", "public void set(AttributeDefinition attribute, Object value)\n throws UnknownAttributeException, ModificationNotPermitedException\n {\n if(builtinAttributes.containsKey(attribute.getName()))\n {\n throw new IllegalArgumentException(\"builtin attribute \"+attribute.getName()+\n \"cannot be modified with set method\"); \n }\n else\n {\n throw new UnknownAttributeException(\"not a builtin attribute\");\n }\n }", "public void setAttribute(String name, Object value);", "public T set(String name, Object value)\n\t\t\tthrows TablesawException\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tif (value instanceof String)\n\t\t\t\t{\n\t\t\t\tm_intHelper.setAttribute(m_project, m_antObject, name, (String)value);\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tMethod m = m_intHelper.getAttributeMethod(name);\n\t\t\t\tm.invoke(m_antObject, value);\n\t\t\t\t}\n\t\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t\t{\n\t\t\t// TODO: add better error\n\t\t\tthrow new TablesawException(iae);\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new TablesawException(\"Error setting attribute '\"+name+\"' on '\"+m_elementName+\"'\", e);\n\t\t\t}\n\t\t\n\t\treturn ((T)this);\n\t\t}", "public EdmAttribute setupAttribute(String val) {\n EdmAttribute a = new EdmAttribute(val);\n return a;\n }", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "@Override\n\tpublic IAttributeValue value() { return value; }", "public void setValue(double newV) { // assuming REST API update at instantiation - must be a Set method to prevent access to a variable directly\n this.Value=newV;\n }", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "void setString(String attributeValue);", "public void set(String attribute, Object value) {\r\n\t\tput(attribute, value);\r\n\t}", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case EMPLOYEEPERSONID:\n setEmployeePersonId((Number)value);\n return;\n case CODECOMBINATIONID:\n setCodeCombinationId((Number)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }", "public void processDefinitionAttribute(String name, String value) {\n\t\tcurrentDefinition.setAttribute(name, value);\n\t}", "public void setValue(double newvalue){\n value = newvalue;\n }", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "public void setAmount(double amount) {\nloanAmount = amount;\n}", "public void setA(double value) {\n this.a = value;\n }", "void setValue(double value);", "public abstract void setValue(Context c, Object v) throws PropertyException;", "public void setValue(Object value) { this.value = value; }", "public void setAttrVal(String attrVal) {\n this.attrVal = attrVal;\n }", "private void setValue(double value) {\n this.value = value;\n }", "public void set(int index, double value) {\n\t\tattrs.set(index, value);\n\t}", "public static void attribute(String name, double value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public void setValue(double value) {\n this.value = value; \n }", "public void setAttribute(FactAttribute[] param) {\r\n\r\n validateAttribute(param);\r\n\r\n localAttributeTracker = true;\r\n\r\n this.localAttribute = param;\r\n }", "@Override\n\tpublic void setAttribute(String name, Object value) {\n super.setAttribute(name, value);\n Enumeration<Figure> k = figures();\n while (k.hasMoreElements())\n k.nextElement().setAttribute(name, value);\n }", "@Override\n public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException {\n\n }", "public void setValue(final String value) {\n super.setAttributeValue(value);\n }", "@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}", "@Override\n protected void visitHtmlAttributeValueNode(HtmlAttributeValueNode node) {\n pushState(HtmlContext.HTML_NORMAL_ATTR_VALUE);\n super.visitHtmlAttributeValueNode(node);\n popState();\n }", "public abstract void setValue(double fltValue);", "public void attribute(int nameCode, CharSequence value) throws XPathException {\r\n if (depthOfHole == 0) {\r\n nextReceiver.attribute(nameCode, value);\r\n }\r\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception\n {\n switch (index) {\n case SUPPLIERID:\n setSupplierId((Number)value);\n return;\n case NAME:\n setName((String)value);\n return;\n case ONHOLDFLAG:\n setOnHoldFlag((String)value);\n return;\n case STARTDATE:\n setStartDate((Date)value);\n return;\n case ENDDATE:\n setEndDate((Date)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case ATTRIBUTECATEGORY:\n setAttributeCategory((String)value);\n return;\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case ATTRIBUTE6:\n setAttribute6((String)value);\n return;\n case ATTRIBUTE7:\n setAttribute7((String)value);\n return;\n case ATTRIBUTE8:\n setAttribute8((String)value);\n return;\n case ATTRIBUTE9:\n setAttribute9((String)value);\n return;\n case ATTRIBUTE10:\n setAttribute10((String)value);\n return;\n case ATTRIBUTE11:\n setAttribute11((String)value);\n return;\n case ATTRIBUTE12:\n setAttribute12((String)value);\n return;\n case ATTRIBUTE13:\n setAttribute13((String)value);\n return;\n case ATTRIBUTE14:\n setAttribute14((String)value);\n return;\n case ATTRIBUTE15:\n setAttribute15((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "void updateAttribute(final AuthValues authToken, final UUID garId, final Attribute attribute) throws WorkflowException;", "public void setAttributes(FactAttributes param) {\r\n localAttributesTracker = true;\r\n\r\n this.localAttributes = param;\r\n\r\n\r\n }", "protected void populateAttributeValue(final AttributeValue value, final Attribute attribute, final String localizedAttributeKey) {\n\t\tvalue.setAttribute(attribute);\n\t\tvalue.setAttributeType(attribute.getAttributeType());\n\t\tvalue.setLocalizedAttributeKey(localizedAttributeKey);\n\t}", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}", "public abstract void setValue(ELContext context,\n Object base,\n Object property,\n Object value);", "AdditionalAttributes setAttribute(String name, Object value, boolean force);", "@Override\r\n\tpublic void addAttr(String name, String value) {\n\t}", "public void set(double val);", "public void setProductAttrValue(String value) {\n setAttributeInternal(PRODUCTATTRVALUE, value);\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case INVOICESTATUS:\n setInvoiceStatus((String)value);\n return;\n case CHECKBOX:\n setCheckBox((Boolean)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "void setAttribute(String key, Object value)\n throws ProcessingException;", "public static ItemStack setAttribute(ItemStack item, double value, EquipmentSlot slot, Attribute attribute) {\n ItemMeta meta = item.getItemMeta();\n\n String name = \"generic.\" + String.valueOf(attribute);\n AttributeModifier mod = new AttributeModifier(UUID.randomUUID(), name, value, AttributeModifier.Operation.ADD_NUMBER, slot);\n meta.addAttributeModifier(attribute, mod);\n item.setItemMeta(meta);\n\n return item;\n }", "public String getAttribute_value() {\n return attribute_value;\n }", "public void changeValue(ValueHolder newValue) {\r\n value = ((AttrObject) newValue).getValue();\r\n\tuserInfo = ((AttrObject) newValue).getUserInfo();\r\n\tnotifyFromAttr(); \r\n }", "public Attribute setValue(String value) {\n Attribute result = null;\n if (!\"\".equals(value)) {\n result = super.setValue(value);\n } else {\n this.detach();\n }\n return result;\n }" ]
[ "0.671279", "0.65509194", "0.6514773", "0.6342347", "0.6265424", "0.6259558", "0.62526584", "0.6240303", "0.62084943", "0.6128865", "0.6117386", "0.6053545", "0.5991617", "0.5988565", "0.59343666", "0.5929174", "0.59157056", "0.5913522", "0.589976", "0.58851826", "0.5884064", "0.5866362", "0.5866362", "0.58606195", "0.5828266", "0.58280116", "0.5803735", "0.5797419", "0.57422084", "0.5714619", "0.5705254", "0.5695808", "0.5687939", "0.5687939", "0.5687939", "0.5687939", "0.5684033", "0.5684033", "0.5684033", "0.5684033", "0.5684033", "0.5684033", "0.5684033", "0.5684033", "0.5684033", "0.5684033", "0.5684033", "0.5684033", "0.5684033", "0.5684033", "0.56777865", "0.5676778", "0.56754524", "0.56754524", "0.5668755", "0.56587416", "0.5658423", "0.5645268", "0.5627198", "0.5627198", "0.5618994", "0.55975163", "0.5593559", "0.55854166", "0.55812025", "0.55800194", "0.55740184", "0.55675375", "0.5563532", "0.5560234", "0.5556643", "0.55484015", "0.5547031", "0.5538248", "0.5520292", "0.55125856", "0.551172", "0.5511197", "0.5508956", "0.55050445", "0.54948044", "0.54944915", "0.548152", "0.54733443", "0.5472753", "0.54706967", "0.54637086", "0.54630107", "0.54570585", "0.5455239", "0.54540616", "0.5444243", "0.54350984", "0.54313385", "0.54305273", "0.5429435", "0.5424646", "0.5397996", "0.53967327", "0.53947383" ]
0.55203956
74
getAttrInvokeAccessor: generated method. Do not modify.
protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception { switch (index) { case FOLIOFLETE: return getFolioFlete(); case TRANSPORT: return getTransport(); case FOLIOSINTRAMO: return getFoliosintramo(); case TRAMO: return getTramo(); case FEE: return getFee(); case IVAFLAG: return getIvaFlag(); case RETENTIONFLAG: return getRetentionFlag(); case IVAMFLAG: return getIvaMFlag(); case RETENTIONMFLAG: return getRetentionMFlag(); case CURRENCY: return getCurrency(); case PROVIDER: return getProvider(); case INVOICESTATUS: return getInvoiceStatus(); case CHECKBOX: return getCheckBox(); default: return super.getAttrInvokeAccessor(index, attrDef); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE10:\n return getAttribute10();\n case ATTRIBUTE2:\n return getAttribute2();\n case ATTRIBUTE3:\n return getAttribute3();\n case ATTRIBUTE4:\n return getAttribute4();\n case ATTRIBUTE5:\n return getAttribute5();\n case ATTRIBUTE6:\n return getAttribute6();\n case ATTRIBUTE7:\n return getAttribute7();\n case ATTRIBUTE8:\n return getAttribute8();\n case ATTRIBUTE9:\n return getAttribute9();\n case CODE:\n return getCode();\n case COUNTRYCODE:\n return getCountryCode();\n case COUNTRYDESCRIPTION:\n return getCountryDescription();\n case CREATEDBY:\n return getCreatedBy();\n case CREATIONDATE:\n return getCreationDate();\n case DESCRIPTION:\n return getDescription();\n case LASTUPDATEDBY:\n return getLastUpdatedBy();\n case LASTUPDATEDATE:\n return getLastUpdateDate();\n case LASTUPDATELOGIN:\n return getLastUpdateLogin();\n case LOADDATE:\n return getLoadDate();\n case ORIDESTID:\n return getOridestId();\n case ROWID:\n return getRowID();\n case STATECODE:\n return getStateCode();\n case STATEDESCRIPTION:\n return getStateDescription();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case SEQUENCENO:\n return getSequenceNo();\n case LINENUMBER:\n return getLineNumber();\n case COUNTRY:\n return getCountry();\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE2:\n return getAttribute2();\n case ATTRIBUTE3:\n return getAttribute3();\n case ATTRIBUTE4:\n return getAttribute4();\n case ATTRIBUTE5:\n return getAttribute5();\n case LASTUPDATEDATE:\n return getLastUpdateDate();\n case LASTUPDATEDBY:\n return getLastUpdatedBy();\n case LASTUPDATELOGIN:\n return getLastUpdateLogin();\n case CREATEDBY:\n return getCreatedBy();\n case CREATIONDATE:\n return getCreationDate();\n case ITEMKEY:\n return getItemKey();\n case ROWID:\n return getRowID();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\r\n }\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\r\n }\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case TALLANBR:\n return getTallaNbr();\n case INVENTORYCOD:\n return getInventoryCod();\n case NPCOD:\n return getNpCod();\n case TALLAID:\n return getTallaId();\n case DOTAID:\n return getDotaId();\n case DESCRIPTION:\n return getDescription();\n case INVENTORYITEMID:\n return getInventoryItemId();\n case ORGANIZATIONID:\n return getOrganizationId();\n case OPERAND:\n return getOperand();\n case ARITHMETICOPERATOR:\n return getArithmeticOperator();\n case PRODUCTATTRVALUE:\n return getProductAttrValue();\n case LISTHEADERID:\n return getListHeaderId();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef)\n throws Exception {\n switch (index)\n {\n case QCIDSEQ:\n return getQcIdseq();\n case VERSION:\n return getVersion();\n case QTLNAME:\n return getQtlName();\n case CONTEIDSEQ:\n return getConteIdseq();\n case ASLNAME:\n return getAslName();\n case PREFERREDNAME:\n return getPreferredName();\n case PREFERREDDEFINITION:\n return getPreferredDefinition();\n case DEIDSEQ:\n return getDeIdseq();\n case LONGNAME:\n return getLongName();\n case PMODIDSEQ:\n return getPModIdseq();\n case QRIDSEQ:\n return getQrIdseq();\n case PQCIDSEQ:\n return getPQcIdseq();\n case CQCIDSEQ:\n return getCQcIdseq();\n case DISPLAYORDER:\n return getDisplayOrder();\n case RLNAME:\n return getRlName();\n case FORMVALIDVALUES:\n return getFormValidValues();\n case QUESTIONFORMVVRECS:\n return getQuestionFormVVRecs();\n case MODULE:\n return getModule();\n case CONTEXT:\n return getContext();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception\n {\n switch (index) {\n case SUPPLIERID:\n return getSupplierId();\n case NAME:\n return getName();\n case ONHOLDFLAG:\n return getOnHoldFlag();\n case STARTDATE:\n return getStartDate();\n case ENDDATE:\n return getEndDate();\n case LASTUPDATEDATE:\n return getLastUpdateDate();\n case LASTUPDATEDBY:\n return getLastUpdatedBy();\n case CREATIONDATE:\n return getCreationDate();\n case CREATEDBY:\n return getCreatedBy();\n case LASTUPDATELOGIN:\n return getLastUpdateLogin();\n case ATTRIBUTECATEGORY:\n return getAttributeCategory();\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE2:\n return getAttribute2();\n case ATTRIBUTE3:\n return getAttribute3();\n case ATTRIBUTE4:\n return getAttribute4();\n case ATTRIBUTE5:\n return getAttribute5();\n case ATTRIBUTE6:\n return getAttribute6();\n case ATTRIBUTE7:\n return getAttribute7();\n case ATTRIBUTE8:\n return getAttribute8();\n case ATTRIBUTE9:\n return getAttribute9();\n case ATTRIBUTE10:\n return getAttribute10();\n case ATTRIBUTE11:\n return getAttribute11();\n case ATTRIBUTE12:\n return getAttribute12();\n case ATTRIBUTE13:\n return getAttribute13();\n case ATTRIBUTE14:\n return getAttribute14();\n case ATTRIBUTE15:\n return getAttribute15();\n case SUPPLIERSITEEO:\n return getSupplierSiteEO();\n case PURCHASEORDERHEADEREO:\n return getPurchaseOrderHeaderEO();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case PERSONID:\n return getPersonId();\n case EMPLOYEENUMBER:\n return getEmployeeNumber();\n case EMAILADDRESS:\n return getEmailAddress();\n case FULLNAME:\n return getFullName();\n case LASTNAME:\n return getLastName();\n case FIRSTNAME:\n return getFirstName();\n case WORKTELEPHONE:\n return getWorkTelephone();\n case EMPLOYEEPERSONID:\n return getEmployeePersonId();\n case CODECOMBINATIONID:\n return getCodeCombinationId();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception\n {\n switch (index)\n {\n case IDEXPED:\n return getIdexped();\n case IDBULTO:\n return getIdbulto();\n case IDBULTOORI:\n return getIdbultoOri();\n case LARGO:\n return getLargo();\n case ANCHO:\n return getAncho();\n case ALTO:\n return getAlto();\n case CREATEDBY:\n return getCreatedby();\n case CREATEDON:\n return getCreatedon();\n case IDTIPOBULTO:\n return getIdtipobulto();\n case MODIFIEDBY:\n return getModifiedby();\n case MODIFIEDON:\n return getModifiedon();\n case PESOCONT:\n return getPesocont();\n case SGAEXPEDLBULTO:\n return getSgaexpedlbulto();\n case SGAEXPEDLBULTO1:\n return getSgaexpedlbulto1();\n case SGAEXPED:\n return getSgaexped();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case SEQUENCENO:\n setSequenceNo((Number)value);\n return;\n case LINENUMBER:\n setLineNumber((Number)value);\n return;\n case COUNTRY:\n setCountry((String)value);\n return;\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case ITEMKEY:\n setItemKey((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception\n {\n switch (index) {\n case SUPPLIERID:\n setSupplierId((Number)value);\n return;\n case NAME:\n setName((String)value);\n return;\n case ONHOLDFLAG:\n setOnHoldFlag((String)value);\n return;\n case STARTDATE:\n setStartDate((Date)value);\n return;\n case ENDDATE:\n setEndDate((Date)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case ATTRIBUTECATEGORY:\n setAttributeCategory((String)value);\n return;\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case ATTRIBUTE6:\n setAttribute6((String)value);\n return;\n case ATTRIBUTE7:\n setAttribute7((String)value);\n return;\n case ATTRIBUTE8:\n setAttribute8((String)value);\n return;\n case ATTRIBUTE9:\n setAttribute9((String)value);\n return;\n case ATTRIBUTE10:\n setAttribute10((String)value);\n return;\n case ATTRIBUTE11:\n setAttribute11((String)value);\n return;\n case ATTRIBUTE12:\n setAttribute12((String)value);\n return;\n case ATTRIBUTE13:\n setAttribute13((String)value);\n return;\n case ATTRIBUTE14:\n setAttribute14((String)value);\n return;\n case ATTRIBUTE15:\n setAttribute15((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE10:\n setAttribute10((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case ATTRIBUTE6:\n setAttribute6((String)value);\n return;\n case ATTRIBUTE7:\n setAttribute7((String)value);\n return;\n case ATTRIBUTE8:\n setAttribute8((String)value);\n return;\n case ATTRIBUTE9:\n setAttribute9((String)value);\n return;\n case CODE:\n setCode((String)value);\n return;\n case COUNTRYCODE:\n setCountryCode((String)value);\n return;\n case COUNTRYDESCRIPTION:\n setCountryDescription((String)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case DESCRIPTION:\n setDescription((String)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case LOADDATE:\n setLoadDate((Date)value);\n return;\n case ORIDESTID:\n setOridestId((Number)value);\n return;\n case STATECODE:\n setStateCode((String)value);\n return;\n case STATEDESCRIPTION:\n setStateDescription((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(\n int index, Object value, AttributeDefImpl attrDef)\n throws Exception {\n switch (index)\n {\n case VERSION:\n setVersion((Number)value);\n return;\n case QTLNAME:\n setQtlName((String)value);\n return;\n case CONTEIDSEQ:\n setConteIdseq((String)value);\n return;\n case ASLNAME:\n setAslName((String)value);\n return;\n case PREFERREDNAME:\n setPreferredName((String)value);\n return;\n case PREFERREDDEFINITION:\n setPreferredDefinition((String)value);\n return;\n case DEIDSEQ:\n setDeIdseq((String)value);\n return;\n case LONGNAME:\n setLongName((String)value);\n return;\n case PMODIDSEQ:\n setPModIdseq((String)value);\n return;\n case QRIDSEQ:\n setQrIdseq((String)value);\n return;\n case PQCIDSEQ:\n setPQcIdseq((String)value);\n return;\n case CQCIDSEQ:\n setCQcIdseq((String)value);\n return;\n case DISPLAYORDER:\n setDisplayOrder((Number)value);\n return;\n case RLNAME:\n setRlName((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }", "protected Object getAttrInvokeAccessor(int index, \r\n AttributeDefImpl attrDef) throws Exception {\r\n switch (index) {\r\n case SRCID:\r\n return getSrcId();\r\n case SRCLASTNAME:\r\n return getSrcLastName();\r\n case SRCFIRSTNAME:\r\n return getSrcFirstName();\r\n case SRCCOURTESYTITLE:\r\n return getSrcCourtesyTitle();\r\n case SRCJOBTITLE:\r\n return getSrcJobTitle();\r\n case SRCJOBDESCRIPTION:\r\n return getSrcJobDescription();\r\n case SRCCOMPANY:\r\n return getSrcCompany();\r\n case SRCADDRESS1:\r\n return getSrcAddress1();\r\n case SRCADDRESS2:\r\n return getSrcAddress2();\r\n case SRCADDRESS3:\r\n return getSrcAddress3();\r\n case SRCCITY:\r\n return getSrcCity();\r\n case SRCSTATE:\r\n return getSrcState();\r\n case SRCZIP:\r\n return getSrcZip();\r\n case SRCCTRYID:\r\n return getSrcCtryId();\r\n case SRCTMZID:\r\n return getSrcTmzId();\r\n case SRCEMAIL:\r\n return getSrcEmail();\r\n case SRCPHONE:\r\n return getSrcPhone();\r\n case SRCPHONEEXT:\r\n return getSrcPhoneExt();\r\n case SRCCELLPHONE:\r\n return getSrcCellPhone();\r\n case SRCFAX:\r\n return getSrcFax();\r\n case SRCSTATUS:\r\n return getSrcStatus();\r\n case SRCEXCLUSIVESOURCEYN:\r\n return getSrcExclusiveSourceYn();\r\n case SRCDONTCONTACTYN:\r\n return getSrcDontContactYn();\r\n case SRCCOMPANYTYPE:\r\n return getSrcCompanyType();\r\n case SRCAREAOFEXPERTISE:\r\n return getSrcAreaOfExpertise();\r\n case SRCINDUSTRYSECTOR:\r\n return getSrcIndustrySector();\r\n case SRCINDUSTRYVIEW:\r\n return getSrcIndustryView();\r\n case SRCVENDORS:\r\n return getSrcVendors();\r\n case SRCCOMPANYSIZE:\r\n return getSrcCompanySize();\r\n case SRCDISTRIBUTIONPREFERENCE:\r\n return getSrcDistributionPreference();\r\n case SRCDISTRIBUTIONNOTES:\r\n return getSrcDistributionNotes();\r\n case SRCSPECIALREQUESTS:\r\n return getSrcSpecialRequests();\r\n case SRCREPORTERSNOTES:\r\n return getSrcReportersNotes();\r\n case SRCQUALITYRATING:\r\n return getSrcQualityRating();\r\n case SRCMODIFIEDDATE:\r\n return getSrcModifiedDate();\r\n case SRCMODIFIEDBY:\r\n return getSrcModifiedBy();\r\n case SRCSUFFIXTITLE:\r\n return getSrcSuffixTitle();\r\n case SRCINFORMEDOFWEBSITE:\r\n return getSrcInformedOfWebsite();\r\n case SRCOFFEREDREPORT:\r\n return getSrcOfferedReport();\r\n case BaWaWEBREPORTSOURCESRVIEW:\r\n return getOtlReportSourcesRView();\r\n default:\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }\r\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case EMPLOYEEPERSONID:\n setEmployeePersonId((Number)value);\n return;\n case CODECOMBINATIONID:\n setCodeCombinationId((Number)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \r\n AttributeDefImpl attrDef) throws Exception {\r\n switch (index) {\r\n default:\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n return;\r\n }\r\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception\n {\n switch (index)\n {\n case IDEXPED:\n setIdexped((Number)value);\n return;\n case IDBULTO:\n setIdbulto((Number)value);\n return;\n case IDBULTOORI:\n setIdbultoOri((Number)value);\n return;\n case LARGO:\n setLargo((Number)value);\n return;\n case ANCHO:\n setAncho((Number)value);\n return;\n case ALTO:\n setAlto((Number)value);\n return;\n case IDTIPOBULTO:\n setIdtipobulto((String)value);\n return;\n case PESOCONT:\n setPesocont((Number)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case INVOICESTATUS:\n setInvoiceStatus((String)value);\n return;\n case CHECKBOX:\n setCheckBox((Boolean)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "String attributeToGetter(String name);", "Attribute getAttribute();", "public String getElementAttribute(int row, int attr);", "public String getAttributeName() {\n/* 85 */ return this.attributeName;\n/* */ }", "public abstract int getBootstrapMethodAttrIndex();", "public String getAttribute(final String attributeLocator);", "protected abstract MethodDescription accessorMethod();", "RakudoObject get_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name);", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public String[] getElementAnnotation(int index, String attr);", "public Object getProperty(String attName);", "Object getAttribute(int attribute);", "java.lang.String getAttribute();", "String getAttribute();", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public TLAttribute getAttribute(String attributeName);", "public Object getAttribute(String name);", "@Override\n\tpublic Nearby_attractionVO read_attraction(int bno, int rno) throws Exception {\n\t\treturn dao.read_attraction(bno,rno);\n\t}", "public String getElementAttribute(int row, int attr, int chromosome);", "public abstract IAccessor getAccessor(IContext context);", "public Object getAttribute(Object key);", "Object getAttribute( String attrName ) throws FileSystemException;", "public Object get(String aName) { return _attrMap.get(aName); }", "Object getAttribute(String key);", "Object getAttribute(String key);", "public String getAttr() {\n return attr;\n }", "protected StateVariableAccessor findOutputArgumentAccessor(StateVariable stateVariable, String getterName, boolean multipleArguments) throws LocalServiceBindingException {\n/* 214 */ boolean isVoid = getMethod().getReturnType().equals(void.class);\n/* */ \n/* 216 */ if (isVoid) {\n/* */ \n/* 218 */ if (getterName != null && getterName.length() > 0) {\n/* 219 */ log.finer(\"Action method is void, will use getter method named: \" + getterName);\n/* */ \n/* */ \n/* 222 */ Method getter = Reflections.getMethod(getMethod().getDeclaringClass(), getterName);\n/* 223 */ if (getter == null) {\n/* 224 */ throw new LocalServiceBindingException(\"Declared getter method '\" + getterName + \"' not found on: \" + \n/* 225 */ getMethod().getDeclaringClass());\n/* */ }\n/* */ \n/* 228 */ validateType(stateVariable, getter.getReturnType());\n/* */ \n/* 230 */ return (StateVariableAccessor)new GetterStateVariableAccessor(getter);\n/* */ } \n/* */ \n/* 233 */ log.finer(\"Action method is void, trying to find existing accessor of related: \" + stateVariable);\n/* 234 */ return getStateVariables().get(stateVariable);\n/* */ } \n/* */ \n/* */ \n/* 238 */ if (getterName != null && getterName.length() > 0) {\n/* 239 */ log.finer(\"Action method is not void, will use getter method on returned instance: \" + getterName);\n/* */ \n/* */ \n/* 242 */ Method getter = Reflections.getMethod(getMethod().getReturnType(), getterName);\n/* 243 */ if (getter == null) {\n/* 244 */ throw new LocalServiceBindingException(\"Declared getter method '\" + getterName + \"' not found on return type: \" + \n/* 245 */ getMethod().getReturnType());\n/* */ }\n/* */ \n/* 248 */ validateType(stateVariable, getter.getReturnType());\n/* */ \n/* 250 */ return (StateVariableAccessor)new GetterStateVariableAccessor(getter);\n/* */ } \n/* 252 */ if (!multipleArguments) {\n/* 253 */ log.finer(\"Action method is not void, will use the returned instance: \" + getMethod().getReturnType());\n/* 254 */ validateType(stateVariable, getMethod().getReturnType());\n/* */ } \n/* */ \n/* 257 */ return null;\n/* */ }", "default Attribute getAttribute(AttributeName attributeName) {return (Attribute) attributeName;}", "public java.lang.Object getCachedAttributeValue(Symbol attrName, java.lang.Object defaultValue);", "@Override\n public byte[][] invoke(Object sender, int index, Object parameters)\n {\n if (index == 1)\n {\n setValue(null);\n }\n else\n {\n throw new IllegalArgumentException(\"Invoke failed. Invalid attribute index.\");\n }\n return null;\n }", "public native final String attr(final String name)\n\t/*-{\n\t\treturn this.attr(name);\n\t}-*/;", "public String getAttribute(String name);", "@Override\n public ConfigurationNode getAttribute(int index)\n {\n return attributes.getNode(index);\n }", "public org.python.Object __getattribute__(java.lang.String name);", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public String getAttribute(final String elementLocator, final String attributeName);", "@Override\n\tpublic void reflectWith(AttributeReflector reflector) {\n\n\t}", "Attributes getAttributes();", "public HbAttributeInternal getAttribute(String name);", "@Override\n\tpublic Object getAttrVal(String attrName) {\n\t\treturn null;\n\t}", "private Method getPrivateMethodFromAtrManager(String methodName, Class<?>... argClasses) throws Exception {\n\t\tMethod method = AttributesManagerBlImpl.class.getDeclaredMethod(methodName, argClasses);\n\t\tmethod.setAccessible(true);\n\t\treturn method;\n\t}" ]
[ "0.723702", "0.718321", "0.7098436", "0.7098436", "0.7098436", "0.7098436", "0.7098436", "0.7098436", "0.7098436", "0.7098436", "0.7098436", "0.7098436", "0.7098436", "0.7098436", "0.7098436", "0.7098436", "0.70857316", "0.70857316", "0.70857316", "0.70857316", "0.70702", "0.70702", "0.702586", "0.7025006", "0.7020218", "0.70144564", "0.70079035", "0.6567853", "0.64829445", "0.6413709", "0.63747954", "0.6362678", "0.6362204", "0.6362204", "0.6359211", "0.6343148", "0.63422734", "0.63407874", "0.63407874", "0.63407874", "0.63407874", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.63291883", "0.62416804", "0.6131552", "0.5927194", "0.59203357", "0.559029", "0.5522276", "0.5495368", "0.54881567", "0.5482167", "0.5459301", "0.5458827", "0.5439436", "0.54188025", "0.5411281", "0.5382608", "0.5376998", "0.53597766", "0.53597766", "0.53597766", "0.53452504", "0.53448254", "0.5292662", "0.5287966", "0.5285153", "0.5282186", "0.52626264", "0.5255156", "0.5247857", "0.5247857", "0.5242066", "0.524112", "0.5238678", "0.52271324", "0.5224818", "0.52139264", "0.5154305", "0.5133398", "0.51180154", "0.51123434", "0.51043886", "0.5095859", "0.50812244", "0.5075527", "0.50564134", "0.504841" ]
0.69236135
27
setAttrInvokeAccessor: generated method. Do not modify.
protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception { switch (index) { case INVOICESTATUS: setInvoiceStatus((String)value); return; case CHECKBOX: setCheckBox((Boolean)value); return; default: super.setAttrInvokeAccessor(index, value, attrDef); return; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case SEQUENCENO:\n setSequenceNo((Number)value);\n return;\n case LINENUMBER:\n setLineNumber((Number)value);\n return;\n case COUNTRY:\n setCountry((String)value);\n return;\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case ITEMKEY:\n setItemKey((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception\n {\n switch (index) {\n case SUPPLIERID:\n setSupplierId((Number)value);\n return;\n case NAME:\n setName((String)value);\n return;\n case ONHOLDFLAG:\n setOnHoldFlag((String)value);\n return;\n case STARTDATE:\n setStartDate((Date)value);\n return;\n case ENDDATE:\n setEndDate((Date)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case ATTRIBUTECATEGORY:\n setAttributeCategory((String)value);\n return;\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case ATTRIBUTE6:\n setAttribute6((String)value);\n return;\n case ATTRIBUTE7:\n setAttribute7((String)value);\n return;\n case ATTRIBUTE8:\n setAttribute8((String)value);\n return;\n case ATTRIBUTE9:\n setAttribute9((String)value);\n return;\n case ATTRIBUTE10:\n setAttribute10((String)value);\n return;\n case ATTRIBUTE11:\n setAttribute11((String)value);\n return;\n case ATTRIBUTE12:\n setAttribute12((String)value);\n return;\n case ATTRIBUTE13:\n setAttribute13((String)value);\n return;\n case ATTRIBUTE14:\n setAttribute14((String)value);\n return;\n case ATTRIBUTE15:\n setAttribute15((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \r\n AttributeDefImpl attrDef) throws Exception {\r\n switch (index) {\r\n default:\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n return;\r\n }\r\n }", "protected void setAttrInvokeAccessor(\n int index, Object value, AttributeDefImpl attrDef)\n throws Exception {\n switch (index)\n {\n case VERSION:\n setVersion((Number)value);\n return;\n case QTLNAME:\n setQtlName((String)value);\n return;\n case CONTEIDSEQ:\n setConteIdseq((String)value);\n return;\n case ASLNAME:\n setAslName((String)value);\n return;\n case PREFERREDNAME:\n setPreferredName((String)value);\n return;\n case PREFERREDDEFINITION:\n setPreferredDefinition((String)value);\n return;\n case DEIDSEQ:\n setDeIdseq((String)value);\n return;\n case LONGNAME:\n setLongName((String)value);\n return;\n case PMODIDSEQ:\n setPModIdseq((String)value);\n return;\n case QRIDSEQ:\n setQrIdseq((String)value);\n return;\n case PQCIDSEQ:\n setPQcIdseq((String)value);\n return;\n case CQCIDSEQ:\n setCQcIdseq((String)value);\n return;\n case DISPLAYORDER:\n setDisplayOrder((Number)value);\n return;\n case RLNAME:\n setRlName((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception\n {\n switch (index)\n {\n case IDEXPED:\n setIdexped((Number)value);\n return;\n case IDBULTO:\n setIdbulto((Number)value);\n return;\n case IDBULTOORI:\n setIdbultoOri((Number)value);\n return;\n case LARGO:\n setLargo((Number)value);\n return;\n case ANCHO:\n setAncho((Number)value);\n return;\n case ALTO:\n setAlto((Number)value);\n return;\n case IDTIPOBULTO:\n setIdtipobulto((String)value);\n return;\n case PESOCONT:\n setPesocont((Number)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE10:\n setAttribute10((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case ATTRIBUTE6:\n setAttribute6((String)value);\n return;\n case ATTRIBUTE7:\n setAttribute7((String)value);\n return;\n case ATTRIBUTE8:\n setAttribute8((String)value);\n return;\n case ATTRIBUTE9:\n setAttribute9((String)value);\n return;\n case CODE:\n setCode((String)value);\n return;\n case COUNTRYCODE:\n setCountryCode((String)value);\n return;\n case COUNTRYDESCRIPTION:\n setCountryDescription((String)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case DESCRIPTION:\n setDescription((String)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case LOADDATE:\n setLoadDate((Date)value);\n return;\n case ORIDESTID:\n setOridestId((Number)value);\n return;\n case STATECODE:\n setStateCode((String)value);\n return;\n case STATEDESCRIPTION:\n setStateDescription((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case EMPLOYEEPERSONID:\n setEmployeePersonId((Number)value);\n return;\n case CODECOMBINATIONID:\n setCodeCombinationId((Number)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception\n {\n switch (index)\n {\n case IDEXPED:\n return getIdexped();\n case IDBULTO:\n return getIdbulto();\n case IDBULTOORI:\n return getIdbultoOri();\n case LARGO:\n return getLargo();\n case ANCHO:\n return getAncho();\n case ALTO:\n return getAlto();\n case CREATEDBY:\n return getCreatedby();\n case CREATEDON:\n return getCreatedon();\n case IDTIPOBULTO:\n return getIdtipobulto();\n case MODIFIEDBY:\n return getModifiedby();\n case MODIFIEDON:\n return getModifiedon();\n case PESOCONT:\n return getPesocont();\n case SGAEXPEDLBULTO:\n return getSgaexpedlbulto();\n case SGAEXPEDLBULTO1:\n return getSgaexpedlbulto1();\n case SGAEXPED:\n return getSgaexped();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE10:\n return getAttribute10();\n case ATTRIBUTE2:\n return getAttribute2();\n case ATTRIBUTE3:\n return getAttribute3();\n case ATTRIBUTE4:\n return getAttribute4();\n case ATTRIBUTE5:\n return getAttribute5();\n case ATTRIBUTE6:\n return getAttribute6();\n case ATTRIBUTE7:\n return getAttribute7();\n case ATTRIBUTE8:\n return getAttribute8();\n case ATTRIBUTE9:\n return getAttribute9();\n case CODE:\n return getCode();\n case COUNTRYCODE:\n return getCountryCode();\n case COUNTRYDESCRIPTION:\n return getCountryDescription();\n case CREATEDBY:\n return getCreatedBy();\n case CREATIONDATE:\n return getCreationDate();\n case DESCRIPTION:\n return getDescription();\n case LASTUPDATEDBY:\n return getLastUpdatedBy();\n case LASTUPDATEDATE:\n return getLastUpdateDate();\n case LASTUPDATELOGIN:\n return getLastUpdateLogin();\n case LOADDATE:\n return getLoadDate();\n case ORIDESTID:\n return getOridestId();\n case ROWID:\n return getRowID();\n case STATECODE:\n return getStateCode();\n case STATEDESCRIPTION:\n return getStateDescription();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case SEQUENCENO:\n return getSequenceNo();\n case LINENUMBER:\n return getLineNumber();\n case COUNTRY:\n return getCountry();\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE2:\n return getAttribute2();\n case ATTRIBUTE3:\n return getAttribute3();\n case ATTRIBUTE4:\n return getAttribute4();\n case ATTRIBUTE5:\n return getAttribute5();\n case LASTUPDATEDATE:\n return getLastUpdateDate();\n case LASTUPDATEDBY:\n return getLastUpdatedBy();\n case LASTUPDATELOGIN:\n return getLastUpdateLogin();\n case CREATEDBY:\n return getCreatedBy();\n case CREATIONDATE:\n return getCreationDate();\n case ITEMKEY:\n return getItemKey();\n case ROWID:\n return getRowID();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\r\n }\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\r\n }\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case FOLIOFLETE:\n return getFolioFlete();\n case TRANSPORT:\n return getTransport();\n case FOLIOSINTRAMO:\n return getFoliosintramo();\n case TRAMO:\n return getTramo();\n case FEE:\n return getFee();\n case IVAFLAG:\n return getIvaFlag();\n case RETENTIONFLAG:\n return getRetentionFlag();\n case IVAMFLAG:\n return getIvaMFlag();\n case RETENTIONMFLAG:\n return getRetentionMFlag();\n case CURRENCY:\n return getCurrency();\n case PROVIDER:\n return getProvider();\n case INVOICESTATUS:\n return getInvoiceStatus();\n case CHECKBOX:\n return getCheckBox();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception\n {\n switch (index) {\n case SUPPLIERID:\n return getSupplierId();\n case NAME:\n return getName();\n case ONHOLDFLAG:\n return getOnHoldFlag();\n case STARTDATE:\n return getStartDate();\n case ENDDATE:\n return getEndDate();\n case LASTUPDATEDATE:\n return getLastUpdateDate();\n case LASTUPDATEDBY:\n return getLastUpdatedBy();\n case CREATIONDATE:\n return getCreationDate();\n case CREATEDBY:\n return getCreatedBy();\n case LASTUPDATELOGIN:\n return getLastUpdateLogin();\n case ATTRIBUTECATEGORY:\n return getAttributeCategory();\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE2:\n return getAttribute2();\n case ATTRIBUTE3:\n return getAttribute3();\n case ATTRIBUTE4:\n return getAttribute4();\n case ATTRIBUTE5:\n return getAttribute5();\n case ATTRIBUTE6:\n return getAttribute6();\n case ATTRIBUTE7:\n return getAttribute7();\n case ATTRIBUTE8:\n return getAttribute8();\n case ATTRIBUTE9:\n return getAttribute9();\n case ATTRIBUTE10:\n return getAttribute10();\n case ATTRIBUTE11:\n return getAttribute11();\n case ATTRIBUTE12:\n return getAttribute12();\n case ATTRIBUTE13:\n return getAttribute13();\n case ATTRIBUTE14:\n return getAttribute14();\n case ATTRIBUTE15:\n return getAttribute15();\n case SUPPLIERSITEEO:\n return getSupplierSiteEO();\n case PURCHASEORDERHEADEREO:\n return getPurchaseOrderHeaderEO();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case PERSONID:\n return getPersonId();\n case EMPLOYEENUMBER:\n return getEmployeeNumber();\n case EMAILADDRESS:\n return getEmailAddress();\n case FULLNAME:\n return getFullName();\n case LASTNAME:\n return getLastName();\n case FIRSTNAME:\n return getFirstName();\n case WORKTELEPHONE:\n return getWorkTelephone();\n case EMPLOYEEPERSONID:\n return getEmployeePersonId();\n case CODECOMBINATIONID:\n return getCodeCombinationId();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef)\n throws Exception {\n switch (index)\n {\n case QCIDSEQ:\n return getQcIdseq();\n case VERSION:\n return getVersion();\n case QTLNAME:\n return getQtlName();\n case CONTEIDSEQ:\n return getConteIdseq();\n case ASLNAME:\n return getAslName();\n case PREFERREDNAME:\n return getPreferredName();\n case PREFERREDDEFINITION:\n return getPreferredDefinition();\n case DEIDSEQ:\n return getDeIdseq();\n case LONGNAME:\n return getLongName();\n case PMODIDSEQ:\n return getPModIdseq();\n case QRIDSEQ:\n return getQrIdseq();\n case PQCIDSEQ:\n return getPQcIdseq();\n case CQCIDSEQ:\n return getCQcIdseq();\n case DISPLAYORDER:\n return getDisplayOrder();\n case RLNAME:\n return getRlName();\n case FORMVALIDVALUES:\n return getFormValidValues();\n case QUESTIONFORMVVRECS:\n return getQuestionFormVVRecs();\n case MODULE:\n return getModule();\n case CONTEXT:\n return getContext();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case TALLANBR:\n return getTallaNbr();\n case INVENTORYCOD:\n return getInventoryCod();\n case NPCOD:\n return getNpCod();\n case TALLAID:\n return getTallaId();\n case DOTAID:\n return getDotaId();\n case DESCRIPTION:\n return getDescription();\n case INVENTORYITEMID:\n return getInventoryItemId();\n case ORGANIZATIONID:\n return getOrganizationId();\n case OPERAND:\n return getOperand();\n case ARITHMETICOPERATOR:\n return getArithmeticOperator();\n case PRODUCTATTRVALUE:\n return getProductAttrValue();\n case LISTHEADERID:\n return getListHeaderId();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \r\n AttributeDefImpl attrDef) throws Exception {\r\n switch (index) {\r\n case SRCID:\r\n return getSrcId();\r\n case SRCLASTNAME:\r\n return getSrcLastName();\r\n case SRCFIRSTNAME:\r\n return getSrcFirstName();\r\n case SRCCOURTESYTITLE:\r\n return getSrcCourtesyTitle();\r\n case SRCJOBTITLE:\r\n return getSrcJobTitle();\r\n case SRCJOBDESCRIPTION:\r\n return getSrcJobDescription();\r\n case SRCCOMPANY:\r\n return getSrcCompany();\r\n case SRCADDRESS1:\r\n return getSrcAddress1();\r\n case SRCADDRESS2:\r\n return getSrcAddress2();\r\n case SRCADDRESS3:\r\n return getSrcAddress3();\r\n case SRCCITY:\r\n return getSrcCity();\r\n case SRCSTATE:\r\n return getSrcState();\r\n case SRCZIP:\r\n return getSrcZip();\r\n case SRCCTRYID:\r\n return getSrcCtryId();\r\n case SRCTMZID:\r\n return getSrcTmzId();\r\n case SRCEMAIL:\r\n return getSrcEmail();\r\n case SRCPHONE:\r\n return getSrcPhone();\r\n case SRCPHONEEXT:\r\n return getSrcPhoneExt();\r\n case SRCCELLPHONE:\r\n return getSrcCellPhone();\r\n case SRCFAX:\r\n return getSrcFax();\r\n case SRCSTATUS:\r\n return getSrcStatus();\r\n case SRCEXCLUSIVESOURCEYN:\r\n return getSrcExclusiveSourceYn();\r\n case SRCDONTCONTACTYN:\r\n return getSrcDontContactYn();\r\n case SRCCOMPANYTYPE:\r\n return getSrcCompanyType();\r\n case SRCAREAOFEXPERTISE:\r\n return getSrcAreaOfExpertise();\r\n case SRCINDUSTRYSECTOR:\r\n return getSrcIndustrySector();\r\n case SRCINDUSTRYVIEW:\r\n return getSrcIndustryView();\r\n case SRCVENDORS:\r\n return getSrcVendors();\r\n case SRCCOMPANYSIZE:\r\n return getSrcCompanySize();\r\n case SRCDISTRIBUTIONPREFERENCE:\r\n return getSrcDistributionPreference();\r\n case SRCDISTRIBUTIONNOTES:\r\n return getSrcDistributionNotes();\r\n case SRCSPECIALREQUESTS:\r\n return getSrcSpecialRequests();\r\n case SRCREPORTERSNOTES:\r\n return getSrcReportersNotes();\r\n case SRCQUALITYRATING:\r\n return getSrcQualityRating();\r\n case SRCMODIFIEDDATE:\r\n return getSrcModifiedDate();\r\n case SRCMODIFIEDBY:\r\n return getSrcModifiedBy();\r\n case SRCSUFFIXTITLE:\r\n return getSrcSuffixTitle();\r\n case SRCINFORMEDOFWEBSITE:\r\n return getSrcInformedOfWebsite();\r\n case SRCOFFEREDREPORT:\r\n return getSrcOfferedReport();\r\n case BaWaWEBREPORTSOURCESRVIEW:\r\n return getOtlReportSourcesRView();\r\n default:\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }\r\n }", "private void addAccessor(ThreadContext context, String internedName, Visibility visibility, boolean readable, boolean writeable) {\n assert internedName == internedName.intern() : internedName + \" is not interned\";\n \n final Ruby runtime = context.getRuntime();\n \n if (visibility == PRIVATE) {\n //FIXME warning\n } else if (visibility == MODULE_FUNCTION) {\n visibility = PRIVATE;\n // FIXME warning\n }\n final String variableName = (\"@\" + internedName).intern();\n if (readable) {\n addMethod(internedName, new JavaMethodZero(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) {\n IRubyObject variable = (IRubyObject)verifyAccessor(self.getMetaClass().getRealClass()).get(self);\n \n return variable == null ? runtime.getNil() : variable;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForRead(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n if (writeable) {\n internedName = (internedName + \"=\").intern();\n addMethod(internedName, new JavaMethodOne(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg1) {\n verifyAccessor(self.getMetaClass().getRealClass()).set(self, arg1);\n return arg1;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForWrite(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n }", "protected abstract MethodDescription accessorMethod();", "String attributeToSetter(String name);", "@Override\n\tpublic void reflectWith(AttributeReflector reflector) {\n\n\t}", "@Override\r\n\tpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\t\tMethod realObjMethod = routerObj.getClass().getMethod(method.getName(), method.getParameterTypes());\r\n\t\tif (realObjMethod.getName().startsWith(RouterProxyFactory.METHOD_PREFIX_SET)){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}\r\n\t\t\r\n\t\treturn realObjMethod.invoke(routerObj, args);\r\n\t}", "@FameProperty(name = \"accessors\", derived = true)\n public Collection<TWithAccesses> getAccessors() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "public abstract IAccessor getAccessor(IContext context);", "String attributeToGetter(String name);", "@Override\n public byte[][] invoke(Object sender, int index, Object parameters)\n {\n if (index == 1)\n {\n setValue(null);\n }\n else\n {\n throw new IllegalArgumentException(\"Invoke failed. Invalid attribute index.\");\n }\n return null;\n }", "void setInternal(ATTRIBUTES attribute, Object iValue);", "protected abstract Actor getAccessor();", "private Method getPrivateMethodFromAtrManager(String methodName, Class<?>... argClasses) throws Exception {\n\t\tMethod method = AttributesManagerBlImpl.class.getDeclaredMethod(methodName, argClasses);\n\t\tmethod.setAccessible(true);\n\t\treturn method;\n\t}", "protected StateVariableAccessor findOutputArgumentAccessor(StateVariable stateVariable, String getterName, boolean multipleArguments) throws LocalServiceBindingException {\n/* 214 */ boolean isVoid = getMethod().getReturnType().equals(void.class);\n/* */ \n/* 216 */ if (isVoid) {\n/* */ \n/* 218 */ if (getterName != null && getterName.length() > 0) {\n/* 219 */ log.finer(\"Action method is void, will use getter method named: \" + getterName);\n/* */ \n/* */ \n/* 222 */ Method getter = Reflections.getMethod(getMethod().getDeclaringClass(), getterName);\n/* 223 */ if (getter == null) {\n/* 224 */ throw new LocalServiceBindingException(\"Declared getter method '\" + getterName + \"' not found on: \" + \n/* 225 */ getMethod().getDeclaringClass());\n/* */ }\n/* */ \n/* 228 */ validateType(stateVariable, getter.getReturnType());\n/* */ \n/* 230 */ return (StateVariableAccessor)new GetterStateVariableAccessor(getter);\n/* */ } \n/* */ \n/* 233 */ log.finer(\"Action method is void, trying to find existing accessor of related: \" + stateVariable);\n/* 234 */ return getStateVariables().get(stateVariable);\n/* */ } \n/* */ \n/* */ \n/* 238 */ if (getterName != null && getterName.length() > 0) {\n/* 239 */ log.finer(\"Action method is not void, will use getter method on returned instance: \" + getterName);\n/* */ \n/* */ \n/* 242 */ Method getter = Reflections.getMethod(getMethod().getReturnType(), getterName);\n/* 243 */ if (getter == null) {\n/* 244 */ throw new LocalServiceBindingException(\"Declared getter method '\" + getterName + \"' not found on return type: \" + \n/* 245 */ getMethod().getReturnType());\n/* */ }\n/* */ \n/* 248 */ validateType(stateVariable, getter.getReturnType());\n/* */ \n/* 250 */ return (StateVariableAccessor)new GetterStateVariableAccessor(getter);\n/* */ } \n/* 252 */ if (!multipleArguments) {\n/* 253 */ log.finer(\"Action method is not void, will use the returned instance: \" + getMethod().getReturnType());\n/* 254 */ validateType(stateVariable, getMethod().getReturnType());\n/* */ } \n/* */ \n/* 257 */ return null;\n/* */ }", "private void addAttribute(XmlAttribute xa, Method method, Object[] args) {\n/* 147 */ assert xa != null;\n/* */ \n/* 149 */ checkStartTag();\n/* */ \n/* 151 */ String localName = xa.value();\n/* 152 */ if (xa.value().length() == 0) {\n/* 153 */ localName = method.getName();\n/* */ }\n/* 155 */ _attribute(xa.ns(), localName, args);\n/* */ }", "void setAttributes(String attributeName, String attributeValue,\n ResultCapture<Void> extractor);", "void setProperty(String attribute, String value);", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "@Override\n\tpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\t\tmethodInvocation.invoke();\n\t\treturn method.invoke(bean, args);\n\t}", "public void changeAttrName() {\r\n }", "private void invokeAnnotatedMethod(String optionName, final T targetInstance, final String value) throws ReflectiveOperationException {\n final Method method = annotatedMethods.get(optionName);\r\n if (getAnnotation(method).flag()) {\r\n //Flag, so treat as 'true'\r\n method.invoke(targetInstance, true);\r\n } else {\r\n /*\r\n * Convert the given option value (a string) to the\r\n * required basic type (as determined by the methods\r\n * argument type)\r\n */\r\n final Class<?> parameterType = method.getParameterTypes()[0];\r\n final Object valueObject;\r\n if (this.propertyEditors.containsKey(parameterType)) {\r\n valueObject = this.propertyEditors.get(parameterType).getObject(value);\r\n } else {\r\n valueObject = Utils.stringToType(parameterType, value);\r\n }\r\n //Invoke the method on the Object instance using the converted value\r\n method.invoke(targetInstance, valueObject);\r\n }\r\n }", "void bind_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name, RakudoObject value);", "public final d invoke() {\n return a.a(this.receiver$0, this.$additionalAnnotations);\n }", "public GetterSetterInliner(CodeAttrInfoEditor codeAttrInfoEditor,\n boolean allowAccessModification)\n {\n this.codeAttrInfoEditor = codeAttrInfoEditor;\n this.allowAccessModification = allowAccessModification;\n }", "public boolean isPropertyAccessorMethod(Method paramMethod, Class paramClass) {\n/* 225 */ String str1 = paramMethod.getName();\n/* 226 */ Class<?> clazz = paramMethod.getReturnType();\n/* 227 */ Class[] arrayOfClass1 = paramMethod.getParameterTypes();\n/* 228 */ Class[] arrayOfClass2 = paramMethod.getExceptionTypes();\n/* 229 */ String str2 = null;\n/* */ \n/* 231 */ if (str1.startsWith(\"get\")) {\n/* */ \n/* 233 */ if (arrayOfClass1.length == 0 && clazz != void.class && \n/* 234 */ !readHasCorrespondingIsProperty(paramMethod, paramClass)) {\n/* 235 */ str2 = \"get\";\n/* */ }\n/* */ }\n/* 238 */ else if (str1.startsWith(\"set\")) {\n/* */ \n/* 240 */ if (clazz == void.class && arrayOfClass1.length == 1 && (\n/* 241 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"get\") || \n/* 242 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"is\"))) {\n/* 243 */ str2 = \"set\";\n/* */ \n/* */ }\n/* */ }\n/* 247 */ else if (str1.startsWith(\"is\") && \n/* 248 */ arrayOfClass1.length == 0 && clazz == boolean.class && \n/* 249 */ !isHasCorrespondingReadProperty(paramMethod, paramClass)) {\n/* 250 */ str2 = \"is\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 255 */ if (str2 != null && (\n/* 256 */ !validPropertyExceptions(paramMethod) || str1\n/* 257 */ .length() <= str2.length())) {\n/* 258 */ str2 = null;\n/* */ }\n/* */ \n/* */ \n/* 262 */ return (str2 != null);\n/* */ }", "JApiModifier<AccessModifier> getAccessModifier();", "@Override\n public Object invoke(Object o, Method method, Object[] objects) throws Throwable {\n\n String name = method.getName();\n\n try {\n Method proxyMethod = proxyObject.getClass().getMethod(method.getName(), method.getParameterTypes());\n return proxyMethod.invoke( proxyObject, objects );\n }\n catch (NoSuchMethodException e) {\n\n if ( proxyObject instanceof ProxyAccessor ) {\n ProxyAccessor access = (ProxyAccessor) proxyObject;\n\n if (( name.startsWith(\"get\") || name.startsWith(\"is\"))\n && objects == null) {\n return access._getValueByName(getField(name));\n }\n else if (name.startsWith(\"set\")\n && objects != null && objects.length==1) {\n access._setValueByName(getField(name), objects[0]);\n return null;\n }\n }\n\n throw e;\n }\n }", "public abstract int getBootstrapMethodAttrIndex();", "public T set(String name, Object value)\n\t\t\tthrows TablesawException\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tif (value instanceof String)\n\t\t\t\t{\n\t\t\t\tm_intHelper.setAttribute(m_project, m_antObject, name, (String)value);\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tMethod m = m_intHelper.getAttributeMethod(name);\n\t\t\t\tm.invoke(m_antObject, value);\n\t\t\t\t}\n\t\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t\t{\n\t\t\t// TODO: add better error\n\t\t\tthrow new TablesawException(iae);\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new TablesawException(\"Error setting attribute '\"+name+\"' on '\"+m_elementName+\"'\", e);\n\t\t\t}\n\t\t\n\t\treturn ((T)this);\n\t\t}", "private void setBeanReflect(DeployBeanDescriptor<?> desc) {\n // Set the BeanReflectGetter and BeanReflectSetter that typically\n // use generated code. NB: Due to Bug 166 so now doing this for\n // abstract classes as well.\n BeanPropertiesReader reflectProps = new BeanPropertiesReader(desc.getBeanType());\n desc.setProperties(reflectProps.getProperties());\n for (DeployBeanProperty prop : desc.propertiesAll()) {\n String propName = prop.getName();\n Integer pos = reflectProps.getPropertyIndex(propName);\n if (pos == null) {\n if (isPersistentField(prop)) {\n throw new IllegalStateException(\n \"If you are running in an IDE with enhancement plugin try a Build -> Rebuild Project to recompile and enhance all entity beans. \" +\n \"Error - property \" + propName + \" not found in \" + reflectProps + \" for type \" + desc.getBeanType());\n }\n } else {\n final int propertyIndex = pos;\n prop.setPropertyIndex(propertyIndex);\n prop.setGetter(beanPropertyAccess.getGetter(propertyIndex));\n prop.setSetter(beanPropertyAccess.getSetter(propertyIndex));\n if (prop.isAggregation()) {\n prop.setAggregationPrefix(DetermineAggPath.manyPath(prop.getRawAggregation(), desc));\n }\n }\n }\n }", "@SuppressWarnings(\"unchecked\")\n private <T> T valueAttributeFromObject(final Object ob, final String methodName) {\n try {\n return (T) ob.getClass().getMethod(methodName).invoke(ob);\n } catch (final Exception e) {\n FeatureEditorPlugin.instance().log(IStatus.ERROR,\n \"Could not invoke method \" + methodName + \" on object \" + ob);\n return null;\n }\n }", "public final ae invoke() {\n return this.this$0.boA().aY(this.this$0.getName(), this.this$0.RX());\n }", "boolean isAccessed (ClassMember attr) {\r\n if (accessed_attributes == null) {\r\n accessed_attributes = new java.util.Vector ();\r\n } else if (accessed_attributes.contains (attr)) {\r\n return true;\r\n } \r\n\r\n accessed_attributes.addElement (attr);\r\n return false;\r\n }", "RakudoObject get_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name);", "public native final <T> Selection attr(final String name, String value)\n\t/*-{\n\t\treturn this.attr(name, value);\n\t}-*/;", "void generateSetter(MethodSpec.Builder method, SetterParam param);", "@Test\npublic void testCalTransactionUTF() throws Exception { \n//TODO: Test goes here... \n/* \ntry { \n Method method = ResultService.getClass().getMethod(\"calTransactionUTF\", int.class, int.class, int.class, EstimationTransactionData.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/ \n}", "@Override\n\tpublic void outAMethodCallExpr(AMethodCallExpr node){\n\t\tString methodName = node.getId().getText();\n\t\tType targetType = nodeTypes.get(node.getTarget());\n\t\tboxIt(targetType); \n\t\tClassAttributes targetClass = topLevelSymbolTable.get(targetType.getTypeName());\n\t\tMethodAttributes methodAttributes = targetClass.getMethod(methodName);\n\t\tif (!(node.getTarget() instanceof ASuperExpr)){\n\t\t\til.append(fi.createInvoke(targetType.getTypeName(), methodName, getBecelType(methodAttributes.getReturnType()), getBecelType(methodAttributes.getParameterTypes()) , Constants.INVOKEVIRTUAL));\n\t\t}\n\t\telse {\n\t\t\til.append(fi.createInvoke(targetType.getTypeName(), methodName, getBecelType(methodAttributes.getReturnType()), getBecelType(methodAttributes.getParameterTypes()), Constants.INVOKESPECIAL)); \n\t\t}\n\t\tunboxIt(methodAttributes.getReturnType()); \n\t}", "public abstract Object invoke(T target , Method method , Object[] args) throws Throwable;", "private void invoke(Method m, Object instance, Object... args) throws Throwable {\n if (!Modifier.isPublic(m.getModifiers())) {\n try {\n if (!m.isAccessible()) {\n m.setAccessible(true);\n }\n } catch (SecurityException e) {\n throw new RuntimeException(\"There is a non-public method that needs to be called. This requires \" +\n \"ReflectPermission('suppressAccessChecks'). Don't run with the security manager or \" +\n \" add this permission to the runner. Offending method: \" + m.toGenericString());\n }\n }\n \n try {\n m.invoke(instance, args);\n } catch (InvocationTargetException e) {\n throw e.getCause();\n }\n }", "private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}", "@Override\npublic void setAttributes() {\n\t\n}", "public final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke methodToInvoke, Object obj, Object obj2) {\n switch (methodToInvoke) {\n case NEW_MUTABLE_INSTANCE:\n return new DocumentMask();\n case IS_INITIALIZED:\n return DEFAULT_INSTANCE;\n case MAKE_IMMUTABLE:\n this.fieldPaths_.makeImmutable();\n return null;\n case NEW_BUILDER:\n return new Builder();\n case VISIT:\n this.fieldPaths_ = ((GeneratedMessageLite.Visitor) obj).visitList(this.fieldPaths_, ((DocumentMask) obj2).fieldPaths_);\n GeneratedMessageLite.MergeFromVisitor mergeFromVisitor = GeneratedMessageLite.MergeFromVisitor.INSTANCE;\n return this;\n case MERGE_FROM_STREAM:\n CodedInputStream codedInputStream = (CodedInputStream) obj;\n ExtensionRegistryLite extensionRegistryLite = (ExtensionRegistryLite) obj2;\n boolean z = false;\n while (!z) {\n try {\n int readTag = codedInputStream.readTag();\n if (readTag != 0) {\n if (readTag == 10) {\n String readStringRequireUtf8 = codedInputStream.readStringRequireUtf8();\n if (!this.fieldPaths_.isModifiable()) {\n this.fieldPaths_ = GeneratedMessageLite.mutableCopy(this.fieldPaths_);\n }\n this.fieldPaths_.add(readStringRequireUtf8);\n } else if (!codedInputStream.skipField(readTag)) {\n }\n }\n z = true;\n } catch (InvalidProtocolBufferException e) {\n throw new RuntimeException(e.setUnfinishedMessage(this));\n } catch (IOException e2) {\n throw new RuntimeException(new InvalidProtocolBufferException(e2.getMessage()).setUnfinishedMessage(this));\n }\n }\n break;\n case GET_DEFAULT_INSTANCE:\n break;\n case GET_PARSER:\n if (PARSER == null) {\n synchronized (DocumentMask.class) {\n if (PARSER == null) {\n PARSER = new GeneratedMessageLite.DefaultInstanceBasedParser(DEFAULT_INSTANCE);\n }\n }\n }\n return PARSER;\n default:\n throw new UnsupportedOperationException();\n }\n return DEFAULT_INSTANCE;\n }", "private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}" ]
[ "0.7711966", "0.763835", "0.7624488", "0.7622952", "0.75823784", "0.7534446", "0.7522457", "0.75204605", "0.75204605", "0.7520005", "0.74888957", "0.74888957", "0.74888957", "0.74888957", "0.74888957", "0.74888957", "0.74888957", "0.74888957", "0.74888957", "0.74888957", "0.74888957", "0.74888957", "0.74888957", "0.74888957", "0.74730784", "0.74730784", "0.74730784", "0.74730784", "0.6898091", "0.6873392", "0.6825343", "0.68186456", "0.68186456", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6806754", "0.6790498", "0.6790498", "0.6790498", "0.6790498", "0.6762033", "0.6758134", "0.67450684", "0.6742692", "0.6638562", "0.5947354", "0.54887295", "0.54313165", "0.5426898", "0.5277073", "0.5270484", "0.52279174", "0.51635927", "0.5141223", "0.51273334", "0.51012295", "0.5076963", "0.507399", "0.502108", "0.49868187", "0.4974914", "0.49643454", "0.49309835", "0.49220434", "0.48790437", "0.48562992", "0.48553044", "0.4834955", "0.48190534", "0.48152646", "0.48061427", "0.47833195", "0.47419906", "0.47405952", "0.47397232", "0.4738975", "0.4737335", "0.4731811", "0.47152573", "0.46980536", "0.4648918", "0.46485272", "0.46449244", "0.46422318", "0.46392238", "0.46314105", "0.46261498", "0.4605881", "0.45964468" ]
0.7324199
28
Gets the attribute value for the calculated attribute CheckBox
public Boolean getCheckBox() { return (Boolean) getAttributeInternal(CHECKBOX); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String getValueAttribute() {\n String value = getAttributeValue(\"value\");\n if( value == ATTRIBUTE_NOT_DEFINED && this instanceof HtmlCheckBoxInput ) {\n value = \"on\";\n }\n return value;\n }", "public final String getCheckedAttribute() {\n return getAttributeValue(\"checked\");\n }", "public AttrCheck getAttrchk()\n {\n return this.attrchk;\n }", "public Object getCheckedValue();", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public Boolean getBooleanAttribute();", "public boolean getValue() {\n\t\treturn _checked;\n\t}", "CheckBox getCk();", "public String getAttribute_value() {\n return attribute_value;\n }", "public String getAttrVal() {\n return attrVal;\n }", "public String getCheckBoxText() {\r\n\t\tcheckBox = driver.findElement(checkBoxSelector);\r\n\t\treturn checkBox.getText();\r\n\t\t\r\n\t}", "String booleanAttributeToGetter(String arg0);", "public String getValue() {\n return super.getAttributeValue();\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public String getAttrValue() {\r\n\t\treturn attrValue;\r\n\t}", "public ByteArrayAttribute getValue() {\n return value;\n }", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "Attribute getAttribute();", "@NonNull\n String getNecessaryAttribute();", "@Override\n\tpublic IAttributeValue value() { return value; }", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "private CheckBox getCheckbox_recommended() {\n\t\treturn checkbox_recommended;\n\t}", "int getConditionValue();", "public Boolean getValue() {\n\t\treturn b;\n\t}", "public String getText() {\n // declaring local variables\n String returnValue = \"VALUE\";\n\n if (isStubbed()) {\n log(\"=== This checkbox's locator is currently stubbed out. Returning value '\" + returnValue + \"' ===\");\n } else {\n // If a locator for this checkbox was given\n if(labelLocator != null) {\n returnValue = new Text(labelLocator).getText();\n } else {\n returnValue = getWebElement().getText();\n\n if (returnValue.isEmpty()) {\n // getting the web element with the default timeout and then get its parent which has the label associated\n // with the check box\n returnValue = getWebElement().findElement(By.xpath(\"../label\")).getText();\n }\n }\n }\n\n return returnValue;\n }", "public Boolean getValue() {\n return this.value;\n }", "public Boolean getValue() {\n return this.value;\n }", "public Boolean getValue() {\n return this.value;\n }", "public ArrayList<String> getValue() {\n\n\t\tArrayList<String> value = new ArrayList<String>();\n\t\tfor (int row = 0; row < field.getRowCount(); row++) {\n\t\t\tString id = field.getText(row, 1);\n\t\t\tCheckBox cb = (CheckBox) field.getWidget(row, 2);\n\t\t\tif (cb.getValue()) {value.add(id);}\n\t\t}\n\t\treturn value;\n\t}", "public Boolean getBoolean(String attr) {\n return (Boolean) super.get(attr);\n }", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "java.lang.String getAttribute();", "public Integer getChecked() {\n return checked;\n }", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Attrib getAttrib() {\r\n return attrib;\r\n }", "boolean getIsChecked();", "public String getAttr() {\n return attr;\n }", "public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }", "public Boolean getValue() {\n return value;\n }", "String getAttribute();", "public abstract Object getDecisionValue();", "public Integer getIntegerAttribute();", "public boolean getValue() {\r\n\t\treturn this.value;\r\n\t}", "public String getValue_click_ActivateCoupon_Button(){\r\n\t\treturn click_ActivateCoupon_Button.getAttribute(\"value\");\r\n\t}", "public String getIvaFlag() {\n return (String) getAttributeInternal(IVAFLAG);\n }", "@Nonnull\n public final synchronized String getAttributeValue() {\n return attributeValue;\n }", "public int countTrueCheckBox() {\r\n\t\tint ret = 0;\r\n\t\tif(attributs != null) {\r\n\t\t\tfor(AttributDescribe item : attributs) {\r\n\t\t\t\tif(item.getPk() == true) {\r\n\t\t\t\t\tret++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "public TCheckSumValue getCheckSumValue() {\n\n\t\treturn checkSumValue;\n\t}", "CheckboxInfo getCheckboxInfo(int row);", "public ArrayList<JCheckBox> getCheckBox() {\n\t\treturn check;\n\t}", "public boolean getValue();", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public Boolean value() {\n return this.value;\n }", "public Boolean value() {\n return this.value;\n }", "public Boolean value() {\n return this.value;\n }", "public String attribute() {\n return this.attribute;\n }", "@Override\n public boolean isAttribute()\n {\n return attribute;\n }", "public int getAttribute() {\n return Attribute;\n }", "public String getAttrEventValue() {\r\n\t\treturn attrEventValue;\r\n\t}", "public java.lang.String getAttributeValue() {\r\n return localAttributeValue;\r\n }", "public String getCaption() {\n\t return checkBox.getText();\n\t }", "public String getProductAttrValue() {\n return (String)getAttributeInternal(PRODUCTATTRVALUE);\n }", "boolean isAttribute();", "public final boolean hasAttribute ()\r\n {\r\n return _value.hasAttribute();\r\n }", "public int getTrueValue()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************ Start getTrueValue Method ***************/\n\n // Return true value\n return trueValue;\n\n }", "public String getCssValue_click_ActivateCoupon_Button(String attribute) {\r\n\t\treturn click_ActivateCoupon_Button.getCssValue(attribute);\r\n\t}", "public Boolean getValue() {\n/* 60 */ return Boolean.valueOf(this.val);\n/* */ }", "@Override\n\t\tprotected String getValueAsString() {\n\t\t\tAttr attr = element.getAttributeNodeNS(namespaceURI, localName);\n\t\t\tif (attr == null) {\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\treturn attr.getValue();\n\t\t}", "public CsdlExpression getValue() {\n return value;\n }", "public String getCssValue_click_Digital_coupons_button(String attribute) {\r\n\t\treturn click_Digital_coupons_button.getCssValue(attribute);\r\n\t}", "boolean getValue();", "protected abstract T getNormalFlagValue();", "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 int getValueOfBonus() {\n return valueOfBonus;\n }", "protected Boolean geBoolValue() {\n return boolValue;\n }", "public String getIndicatorValue(WebElement element){\n wait.until(ExpectedConditions.visibilityOf(element));\n return element.getAttribute(\"value\");\n }", "@FxThread\n private @NotNull CheckBox getApplyLightingTransformCheckBox() {\n return notNull(applyLightingTransformCheckBox);\n }", "String getAttributeStringValue(Object attr);", "public String getAttribute3() {\n return attribute3;\n }", "public String getValueProperty() {\r\n return getAttributeAsString(\"valueProperty\");\r\n }", "public Number getAncho()\n {\n return (Number)getAttributeInternal(ANCHO);\n }", "public String asText() {\n return getValueAttribute();\n }", "public SimpleBooleanProperty checkedProperty()\n\t{\n\t\treturn this.checked;\n\t}", "@Kroll.getProperty @Kroll.method\n\tpublic boolean getSpecified() {\n\t\tif (attr.getOwnerElement() == null) {\n\t\t\treturn true;\n\t\t}\n\t\treturn attr.getSpecified();\n\t}", "public static boolean attribute_arg_value(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"attribute_arg_value\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, ATTRIBUTE_ARG_VALUE, \"<attribute arg value>\");\n r = attribute_arg_value_scalar(b, l + 1);\n if (!r) r = attribute_arg_value_array(b, l + 1);\n if (!r) r = model_function(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public String getAttribute() {\n return attribute;\n }", "public GenericAttribute getAttribute () {\n return attribute;\n }", "public String getAttributeValue(final String name) {\n return getAttributeValue(name, \"\");\n }", "public String getValue_click_Digital_coupons_button(){\r\n\t\treturn click_Digital_coupons_button.getAttribute(\"value\");\r\n\t}", "public String getValue(int index)\n {\n if (index < 0 || index >= attributesList.size())\n {\n return null;\n }\n return ((Attribute) attributesList.get(index)).value;\n }", "public String getActiveFlag() {\n return (String) getAttributeInternal(ACTIVEFLAG);\n }", "public String getCssValue_txt_Pick_Up_Text(String attribute) {\r\n\t\treturn txt_Pick_Up_Text.getCssValue(attribute);\r\n\t}", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "Pair<String, String> getAdditionalAttribute();", "@Test\n\tpublic void test_TCM__boolean_getBooleanValue() {\n\t\tfinal Attribute attribute = new Attribute(\"test\", \"true\");\n\t\ttry {\n\t\t\tassertTrue(\"incorrect boolean true value\", attribute.getBooleanValue());\n\n attribute.setValue(\"false\");\n\t\t\tassertTrue(\"incorrect boolean false value\", !attribute.getBooleanValue());\n\n attribute.setValue(\"TRUE\");\n\t\t\tassertTrue(\"incorrect boolean TRUE value\", attribute.getBooleanValue());\n\n attribute.setValue(\"FALSE\");\n\t\t\tassertTrue(\"incorrect boolean FALSE value\", !attribute.getBooleanValue());\n\n attribute.setValue(\"On\");\n\t\t\tassertTrue(\"incorrect boolean TRUE value\", attribute.getBooleanValue());\n\n attribute.setValue(\"Yes\");\n\t\t\tassertTrue(\"incorrect boolean TRUE value\", attribute.getBooleanValue());\n\n attribute.setValue(\"1\");\n\t\t\tassertTrue(\"incorrect boolean TRUE value\", attribute.getBooleanValue());\n\n attribute.setValue(\"OfF\");\n\t\t\tassertTrue(\"incorrect boolean FALSE value\", !attribute.getBooleanValue());\n\n attribute.setValue(\"0\");\n\t\t\tassertTrue(\"incorrect boolean FALSE value\", !attribute.getBooleanValue());\n\n attribute.setValue(\"No\");\n\t\t\tassertTrue(\"incorrect boolean FALSE value\", !attribute.getBooleanValue());\n\n\t\t} catch (DataConversionException e) {\n\t\t\tfail(\"couldn't convert boolean value\");\n\t\t}\n\n\t\ttry {\n attribute.setValue(\"foo\");\n\t\t\tassertTrue(\"incorrectly returned boolean from non boolean value\", attribute.getBooleanValue());\n\n\t\t} catch (DataConversionException e) {\n\t\t\t// good\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Expected DataConversionException, but got \" + e.getClass().getName());\n\t\t}\n\n\n\t}", "private double calculateTotal() {\n Log.d(\"Method\", \"calculateTotal()\");\n\n double extras = 0;\n CheckBox cb = (CheckBox) findViewById(R.id.whipped_checkbox_view);\n\n if (cb.isChecked()) {\n extras = coffeeCount * 0.75;\n }\n return (coffeeCount * coffeePrice) + extras;\n }", "@Override\n public String getText() {\n return getWrappedElement().getAttribute(\"value\");\n }", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "ValueExpression getValueExpression(String attributeName);", "public String getAttr6() {\n return attr6;\n }" ]
[ "0.7262029", "0.6870093", "0.66453844", "0.65899795", "0.62061644", "0.61278415", "0.60690516", "0.59898305", "0.5972663", "0.58708984", "0.5741377", "0.5731243", "0.57036906", "0.5691416", "0.5683586", "0.5620427", "0.5574158", "0.55649143", "0.55536664", "0.55462706", "0.55362797", "0.55236334", "0.55129635", "0.5478215", "0.54740435", "0.547369", "0.547369", "0.547369", "0.54475117", "0.5441417", "0.54398906", "0.5425047", "0.5412862", "0.5401889", "0.53799915", "0.53782225", "0.5358258", "0.5342439", "0.53368795", "0.5329713", "0.53161377", "0.5315056", "0.5311558", "0.5294837", "0.52905625", "0.52787054", "0.5273264", "0.5264653", "0.525258", "0.52384037", "0.5223496", "0.520558", "0.520558", "0.520558", "0.51914793", "0.5183473", "0.5180408", "0.51728386", "0.5159119", "0.51416326", "0.51406157", "0.51402473", "0.5140024", "0.51223373", "0.51223046", "0.51107013", "0.5107512", "0.5104687", "0.50918454", "0.5085772", "0.5082939", "0.50733674", "0.5064529", "0.5058466", "0.505791", "0.50567186", "0.50564843", "0.50534743", "0.5051521", "0.50509775", "0.50456375", "0.5042728", "0.50408435", "0.5036379", "0.5028356", "0.5025696", "0.5019327", "0.50083905", "0.50051266", "0.5001303", "0.4995819", "0.49922848", "0.49921808", "0.49909413", "0.49889928", "0.49870571", "0.49730518", "0.49730518", "0.49704602", "0.4969991" ]
0.66544396
2
Sets value as the attribute value for the calculated attribute CheckBox
public void setCheckBox(Boolean value) { setAttributeInternal(CHECKBOX, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String getValueAttribute() {\n String value = getAttributeValue(\"value\");\n if( value == ATTRIBUTE_NOT_DEFINED && this instanceof HtmlCheckBoxInput ) {\n value = \"on\";\n }\n return value;\n }", "public void setCheckedValue(Object pValue);", "public ActionChangeCheckBox(String name, Field field, boolean value) {\n\t\tsuper(\"Value (\" + value + \")\");\n\t\tthis.field = field;\n\t\tthis.value = value;\n\t\tthis.oldValue = (boolean) field.getValue();\n\t}", "@Override\n public void setValue(Object value) {\n if (Boolean.valueOf(String.valueOf(value)) != checkboxElement.isSelected()) {\n select();\n }\n }", "@Override\n\tpublic void setValue(V value) {\n\n\t\tif (value != null) {\n\t\t\tvar checkbox = checkboxMap.get(value);\n\t\t\tif (checkbox != null) {\n\t\t\t\tcheckbox.setValueAndHandleChangeCallback(true);\n\t\t\t}\n\t\t}\n\t}", "public void setRequiresTaxCertificate (boolean RequiresTaxCertificate)\n{\nset_Value (COLUMNNAME_RequiresTaxCertificate, Boolean.valueOf(RequiresTaxCertificate));\n}", "public void setValue(boolean value) {\n this.value = value;\n }", "public CheckBox(String name, String value) {\n \t\tsuper();\n \t\tsetName(name);\n \t\tsetContent(value);\n \t\tsetChecked(false);\n \t\tsetInputType(INPUT_TYPE_CHECKBOX);\n \t}", "public void setValue(boolean value) {\n this.value = value;\n }", "public void setCheckedValue(String value) {\n \n boolean checked = true;\n setCheckedValue(value, checked);\n }", "public VirtualCheckBox createCheckBox ();", "protected void changeValue() {\n \tif(value == null)\n \t\tvalue = true;\n \telse if(!value) { \n \t\tif (mode == Mode.THREE_STATE)\n \t\t\tvalue = null;\n \t\telse\n \t\t\tvalue = true;\n \t}else\n \t\tvalue = false;\n \t\n \tsetStyle();\n \t\n \tValueChangeEvent.fire(this, value);\n }", "public void setIsCalculated(Boolean value) {\n this.isCalculated = value;\n }", "public void setValue(ArrayList<String> value) {\n\t\tfor (int row = 0; row < field.getRowCount(); row++) {\n\t\t\tString id = field.getText(row, 1);\n\t\t\tCheckBox cb = (CheckBox) field.getWidget(row, 2);\n\t\t\tif (cb == null) {Window.alert(\"MultilistField setValue null at \" + row);}\n\t\t\tif (value == null) {cb.setValue(false);}\n\t\t\telse {cb.setValue(value.contains(id));}\n\t\t}\n\t\tsuper.setChanged();\n\t}", "public Object getCheckedValue();", "public Value.Builder setAktif(boolean value) {\n validate(fields()[6], value);\n this.aktif = value;\n fieldSetFlags()[6] = true;\n return this;\n }", "protected void doSetValue(Object _value) {\n\t\tthis.value = (Boolean) _value;\n\t}", "public void setChecked(boolean ifChecked) {\n \t\tif (ifChecked) {\n \t\t\tsetMarkupAttributeWithoutValue(\"checked\");\n \t\t}\n \t\telse {\n \t\t\tremoveMarkupAttribute(\"checked\");\n \t\t}\n \t}", "public void setChecked()\n\t{\n\t\tchecked = true;\n\t}", "@Override\n\tpublic boolean doAction() {\n\t\tfield.setValue(value);\n\n\t\tif (checkBox != null)\n\t\t\tcheckBox.setSelected(value);\n\n\t\treturn true;\n\t}", "public Checkbox(boolean initialValue) {\n this();\n setValue(initialValue);\n }", "@Override\n public void setAttribute(boolean f)\n {\n checkState();\n attribute = f;\n }", "public final String getCheckedAttribute() {\n return getAttributeValue(\"checked\");\n }", "public void setProcessed (boolean Processed)\n{\nset_Value (\"Processed\", new Boolean(Processed));\n}", "public void setValue(final boolean updateClient, final String value) {\n super.setAttributeValue(updateClient, value);\n }", "private void setCheckBoxChecked() {\n grupoRespuestasUnoMagnitudes.check(radioChecked[0]);\n grupoRespuestasDosMagnitudes.check(radioChecked[1]);\n grupoRespuestasTresMagnitudes.check(radioChecked[2]);\n grupoRespuestasCuatroMagnitudes.check(radioChecked[3]);\n grupoRespuestasCincoMagnitudes.check(radioChecked[4]);\n grupoRespuestasSeisMagnitudes.check(radioChecked[5]);\n grupoRespuestasSieteMagnitudes.check(radioChecked[6]);\n grupoRespuestasOchoMagnitudes.check(radioChecked[7]);\n grupoRespuestasNueveMagnitudes.check(radioChecked[8]);\n grupoRespuestasDiezMagnitudes.check(radioChecked[9]);\n }", "public void setValue(boolean value)\n {\n if(this.valueBoolean == value)\n {\n return;\n }\n this.valueBoolean = value;\n treeModel.nodeChanged(this.treeNode);\n }", "public static void changeValueNoncompoundAttributeCheckbox(By context, String simpleName, String... values)\n\t{\n\t\tSelenideElement container = findAttributeContainerWebElement(context, simpleName, false);\n\t\tcontainer.findElements(By.cssSelector(\"input[name='\" + simpleName + \"']\")).forEach(e -> {\n\t\t\tif (e.isSelected())\n\t\t\t{\n\t\t\t\te.click();\n\t\t\t}\n\t\t});\n\t\tArrays.asList(values).stream().filter(e -> !\"\".equals(e)).forEach(e -> container\n\t\t\t\t.findElement(By.xpath(\".//input[@name='\" + simpleName + \"'][@value='\" + e + \"']\")).click());\n\t}", "private void setUpCheckBox(final int flag, CheckBox checkBox, LinearLayout llCheckBox) {\n if ((movie.getAvailableExtras() & flag) != 0) {\n checkBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n flagsApplied = flagsApplied ^ flag;\n updatePriceAndSaving();\n }\n });\n } else {\n llCheckBox.setVisibility(View.GONE);\n }\n }", "CheckBox getCk();", "final public void setAttr(final String name, final float value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Value = value;\r\n\t\t}\r\n\t}", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case INVOICESTATUS:\n setInvoiceStatus((String)value);\n return;\n case CHECKBOX:\n setCheckBox((Boolean)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "private void adjustBooleanControl(BooleanControl control, boolean value) {\n \t\tcontrol.setValue(value);\n \t}", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "public void setValue(final String value) {\n super.setAttributeValue(value);\n }", "public void setAttrib(String name, String value);", "public PropertyBoolean(String uid, String value) {\n super(uid, value);\n setFixedValues(new HashSet<Boolean>(Arrays.asList(Boolean.TRUE, Boolean.FALSE)));\n }", "void setInt(int attributeValue);", "@Override\n public void onClick(View v) {\n if(custActiveInactive.isChecked()){\n custHardwareReturned.setChecked(false);\n custHardwareReturned.setEnabled(false);\n custHardwareInstalled.setEnabled(true);\n cust.custActiveInActive = 1;\n }else{\n custHardwareInstalled.setChecked(false);\n custHardwareInstalled.setEnabled(false);\n custHardwareReturned.setEnabled(true);\n cust.custActiveInActive = 0;\n }\n }", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "@JsProperty void setChecked(boolean value);", "public void activate() {\n\t\tif (value == null) {\n\t\t\tvalue = Boolean.TRUE;\n\t\t} else if (value == Boolean.TRUE) {\n\t\t\tvalue = Boolean.FALSE;\n\t\t} else if (value == Boolean.FALSE) {\n\t\t\tvalue = null;\n\t\t}\n\t\tfireApplyEditorValue();\n\t}", "public void setTrueValue(int newValue)\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************ Start setTrueValue Method ***************/\n\n\t// Set true value of card\n trueValue = newValue;\n\n }", "public void setCheckedValue(String value, boolean checked) {\n for (InputCheckbox checkbox : l_campos)\n {\n if (checkbox.getValue().equals(value)) {\n checkbox.setChecked(checked);\n }\n }\n }", "protected void createCheckbox(CompContainer cc, String name, boolean defaultValue)\r\n\t{\r\n\t\t// create label\r\n\t\tcc.label = new JLabel(localer.getBundleText(name));\r\n\t\tcc.label.setName(\"Label-\" + name);\r\n\t\tcc.label.setFont(cc.label.getFont().deriveFont(Font.PLAIN));\r\n\t\t\r\n\t\t// create component\r\n\t\tboolean value = defaultValue;\r\n\t\tString pref = prefMap.get(name);\r\n\t\tif(pref == null || pref.length() == 0)\r\n\t\t\tvalue = defaultValue;\r\n\t\telse if(!prefMap.get(name).equals(String.valueOf(defaultValue)))\r\n\t\t\tvalue = !defaultValue;\r\n\t\tcc.comp = new JCheckBox(\"\", value);\r\n\t\tcc.comp.setName(name);\r\n\t}", "public abstract void setCheck(Boolean check);", "public void setCValueEditable(boolean status);", "public void checkbox(String identifier, boolean value) {\n WebElement input = getCheckbox(identifier);\n boolean current = input.isSelected();\n\n if (value != current) {\n input.click();\n }\n\n if (value) {\n Graphene.waitGui().until().element(input).is().selected();\n } else {\n Graphene.waitGui().until().element(input).is().not().selected();\n }\n }", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "public static void attribute(String name, boolean value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public Builder setIsChulaStudent(boolean value) {\n \n isChulaStudent_ = value;\n onChanged();\n return this;\n }", "public abstract void setInput(boolean value);", "public void toglecheckbox(CheckBox ch){\n\t if(ch.isChecked()){\n\t ch.setText(\"This is my business card\");\n\t isyourcard = \"yes\";\n\t }else{\n\t ch.setText(\"This is not my business card\");\n\t isyourcard = \"no\";\n\t }\n\t }", "void setManualCheck (boolean value);", "void setValue(byte value) {\n this.value = value;\n blockDrawables.get(selected).setValue(value);\n }", "public CheckBox() {\n\t\tthis(false);\n\n\t}", "protected Type applyAttributeValues(Type model, String boundTo, String rowContext, ActionRequest request) {\n // If we're not bound to anything, apply nothing.\n // If our condition isn't met, apply nothing.\n if (boundTo == null || !conditionIsMet(model)) {\n return model;\n }\n\n String name = encodeId(rowContext + boundTo);\n String value = request.getParameter(name);\n\n if (value != null) {\n model.xpathSet(boundTo + \"/value\", request.getParameter(name).trim());\n } else if (value == null && \"checkbox\".equals(getRenderHint())) {\n Attribute attr = model.xpathGet(boundTo, Attribute.class);\n if (attr.isYesornoType()) {\n attr.setValue(\"No\");\n }\n }\n\n return model;\n }", "public Checkbox(String labelText, boolean initialValue) {\n this(labelText);\n setValue(initialValue);\n }", "AdditionalAttributes setAttribute(String name, Object value, boolean force);", "public void setChecked(Integer checked) {\n this.checked = checked;\n }", "public BooleanValue(boolean value) {\r\n\t\tthis.value = value;\r\n\t}", "public BooleanValue(boolean value) {\r\n\t\tthis.value = value;\r\n\t}", "@Override\n\tpublic void setValue(String path, boolean value) {\n\t\tsetValue(path, new Boolean(value));\n\t}", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t\ttry {\n\t\t\t\tchanging = true;\n\t\t\t\telement.setAttributeNS(namespaceURI, localName, value);\n\t\t\t} finally {\n\t\t\t\tchanging = false;\n\t\t\t}\n\t\t}", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdouble temp;\r\n\t\t\t\tif(chkBonus.isChecked())\r\n\t\t\t\t{\r\n\t\t\t\t\ttemp = Double.parseDouble(entity.getF_Price()) + 150000;\r\n\t\t\t\t\ttxtTotal.setText(Helper.formatNumberExcel(String.valueOf(temp)));\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\ttxtTotal.setText(Helper.formatNumberExcel(entity.getF_Price()));\r\n\t\t\t\t}\r\n\t\t\t}", "public void setValueAt(Object value, int row, int col) {\r\n \tswitch(col){\r\n case 0:\r\n \tattributs.get(row).setPk((Boolean)value);\r\n \tbreak;\r\n case 1:\r\n \tSystem.out.println(value);\r\n \tattributs.get(row).setName((String)value);\r\n \tbreak;\r\n case 2:\r\n \tattributs.get(row).setType((String)value);\r\n \tbreak;\r\n case 3:\r\n \tattributs.get(row).setTaille((String)value);\r\n \tbreak;\r\n case 4:\r\n \tattributs.get(row).setNul((Boolean)value);\r\n \tbreak;\r\n case 5:\r\n \tattributs.get(row).setUk((Boolean)value);\r\n \tbreak;\r\n \t\r\n \t}\r\n fireTableCellUpdated(row, col);\r\n }", "@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\tif(isChecked==true)\n\t\t\t\t{\n\t\t\t\t\tvlq=vlq + 5;\n\t\t\t\t\tvalue.setText(String.valueOf(vlq));\n\t\t\t\t}else\n\t\t\t\t\tif(isChecked==false)\n\t\t\t\t\t{\n\t\t\t\t\t\tvlq=vlq-5;\n\t\t\t\t\t\tvalue.setText(String.valueOf(vlq));\n\t\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\tif(isChecked==true)\n\t\t\t\t{\n\t\t\t\t\tvlq=vlq + 5;\n\t\t\t\t\tvalue.setText(String.valueOf(vlq));\n\t\t\t\t}else\n\t\t\t\t\tif(isChecked==false)\n\t\t\t\t\t{\n\t\t\t\t\t\tvlq=vlq-5;\n\t\t\t\t\t\tvalue.setText(String.valueOf(vlq));\n\t\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\tif(isChecked==true)\n\t\t\t\t{\n\t\t\t\t\tvlq=vlq + 5;\n\t\t\t\t\tvalue.setText(String.valueOf(vlq));\n\t\t\t\t}else\n\t\t\t\t\tif(isChecked==false)\n\t\t\t\t\t{\n\t\t\t\t\t\tvlq=vlq-5;\n\t\t\t\t\t\tvalue.setText(String.valueOf(vlq));\n\t\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\tif(isChecked==true)\n\t\t\t\t{\n\t\t\t\t\tvlq=vlq + 5;\n\t\t\t\t\tvalue.setText(String.valueOf(vlq));\n\t\t\t\t}else\n\t\t\t\t\tif(isChecked==false)\n\t\t\t\t\t{\n\t\t\t\t\t\tvlq=vlq-5;\n\t\t\t\t\t\tvalue.setText(String.valueOf(vlq));\n\t\t\t\t\t}\n\t\t\t}", "public DomCheckboxGroup<V> addOption(V value, IDisplayString label, boolean preselected) {\n\n\t\tObjects.requireNonNull(value);\n\t\tObjects.requireNonNull(label);\n\n\t\tif (valueMap.isEmpty()) {\n\t\t\tpreselected = true;\n\t\t}\n\n\t\tvar checkbox = new Checkbox(label, preselected).setDisabled(disabled);\n\t\tif (preselected) {\n\t\t\tunselectOthers(checkbox);\n\t\t}\n\n\t\tvalueMap.put(checkbox, value);\n\t\tcheckboxMap.put(value, checkbox);\n\n\t\tappendChild(checkbox);\n\n\t\treturn this;\n\t}", "void setElementValue(SetElementValue cmd);", "public Builder setIsAxisText(boolean value) {\n \n isAxisText_ = value;\n onChanged();\n return this;\n }", "public Builder setComputeSum(io.dstore.values.BooleanValue value) {\n if (computeSumBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n computeSum_ = value;\n onChanged();\n } else {\n computeSumBuilder_.setMessage(value);\n }\n\n return this;\n }", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "public Boolean getBooleanAttribute();", "void setValueExpression(String attributeName, ValueExpression valueExpression);", "@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}", "public BooleanStateValue( boolean value) {\n\t\tthis( value, false);\n\t}", "public CheckBox() {\n \t\tthis(\"untitled\");\n \t}", "public void configure(T aView) { aView.setText(\"CheckBox\"); }", "public void setAttribute(String name, Object value);", "public Boolean getCheckBox() {\n return (Boolean) getAttributeInternal(CHECKBOX);\n }", "public Builder setComputeSum(\n io.dstore.values.BooleanValue.Builder builderForValue) {\n if (computeSumBuilder_ == null) {\n computeSum_ = builderForValue.build();\n onChanged();\n } else {\n computeSumBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public CheckBox(String name) {\n \t\tthis(name, \"unspecified\");\n \t}", "protected abstract void setContextAttribute(String name, Object value);", "public void onCheckboxClicked(View view) {\n boolean checked = ((CheckBox) view).isChecked();\n\n // Check which checkbox was clicked\n switch (view.getId()) {\n case R.id.cb_cod:\n if (cb_cod.isChecked()) {\n cod = \"1\";\n } else {\n cod = \"0\";\n }\n\n\n break;\n }\n }", "public CheckBoxSettingsRow(SettingsChangeListener settingsChangeListener, String name, String description, boolean startValue) {\n super(name, description);\n\n checkBox = new MyCheckBox();\n checkBox.setSelected(startValue);\n\n super.addInteractionElement(checkBox);\n\n checkBox.addItemListener(createItemListener(settingsChangeListener));\n }", "public T set(String name, Object value)\n\t\t\tthrows TablesawException\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tif (value instanceof String)\n\t\t\t\t{\n\t\t\t\tm_intHelper.setAttribute(m_project, m_antObject, name, (String)value);\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tMethod m = m_intHelper.getAttributeMethod(name);\n\t\t\t\tm.invoke(m_antObject, value);\n\t\t\t\t}\n\t\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t\t{\n\t\t\t// TODO: add better error\n\t\t\tthrow new TablesawException(iae);\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new TablesawException(\"Error setting attribute '\"+name+\"' on '\"+m_elementName+\"'\", e);\n\t\t\t}\n\t\t\n\t\treturn ((T)this);\n\t\t}", "public void setOnHoldFlag(String value)\n {\n // Valid values are null, Y and N\n\n if ((value != null) && (!(\"\".equals(value.trim()))))\n { \n if (!((\"Y\".equals(value)) || (\"N\".equals(value))))\n {\n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"OnHoldFlag\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_ONHOLD_INVALID\"); // Message name\n\n }\n }\n\n setAttributeInternal(ONHOLDFLAG, value);\n \n }", "void setInternal(ATTRIBUTES attribute, Object iValue);", "public void checkbox() {\r\n\t\tcheckBox.click();\r\n\t}", "public TrueValue (){\n }", "public Builder setBoolValue(boolean value) {\n typeCase_ = 2;\n type_ = value;\n onChanged();\n return this;\n }", "public boolean setProperty(String attName, Object value);", "public void setTallied(java.lang.Boolean value);", "@Override\n public void onClick(View view) {\n\n mConditionRef.setValue(mCustomText.getText().toString());\n\n// mConditionRef.setValue(\"Test Text\");\n }" ]
[ "0.64863193", "0.64149284", "0.639763", "0.63365", "0.58852553", "0.5881751", "0.5841065", "0.57895726", "0.5783053", "0.577412", "0.5731538", "0.56809795", "0.56392264", "0.5622018", "0.557923", "0.5578502", "0.55681795", "0.55508804", "0.5538294", "0.5536607", "0.55097055", "0.5499379", "0.54952323", "0.547753", "0.5466791", "0.545516", "0.5434896", "0.5432407", "0.54010284", "0.53923917", "0.5379493", "0.53686225", "0.53631943", "0.53599894", "0.5355658", "0.5345651", "0.5341902", "0.5330556", "0.53283095", "0.53175884", "0.53122157", "0.5312174", "0.5312012", "0.53058934", "0.53019845", "0.53009", "0.5291562", "0.52820915", "0.52808917", "0.5277807", "0.52720124", "0.5256261", "0.52455586", "0.52393866", "0.52387154", "0.52385896", "0.5220065", "0.521659", "0.52106625", "0.51969266", "0.51943177", "0.5184838", "0.5163282", "0.5163282", "0.51418537", "0.513961", "0.5134862", "0.51326746", "0.5121553", "0.5115393", "0.5115393", "0.5115393", "0.5115393", "0.511071", "0.5109678", "0.51042324", "0.510409", "0.5093756", "0.5091189", "0.5083861", "0.5079473", "0.5077205", "0.5075733", "0.5070108", "0.50682145", "0.50663036", "0.5064274", "0.50455946", "0.5043475", "0.5042808", "0.5042375", "0.50418365", "0.50407994", "0.50371516", "0.5036297", "0.50253093", "0.5023708", "0.50154114", "0.5015219", "0.5015109" ]
0.6112794
4
Gets the attribute value for the calculated attribute InvoiceStatus
public String getInvoiceStatus() { return (String) getAttributeInternal(INVOICESTATUS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public InvoiceStatus getInvoiceStatus()\n {\n return INVOICE_STATUS;\n }", "public String toString(){\n return invoiceStatus;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "public String getStatus() {\r\n return (String) getAttributeInternal(STATUS);\r\n }", "public String getStatus() {\n return (String) getAttributeInternal(STATUS);\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "public String getStatus(){\n\n //returns the value of the status field\n return this.status;\n }", "public Integer getStatus() {\n return this.status;\n }", "int getDeliveryStatusValue();", "public String getStatus() {\n return getProperty(Property.STATUS);\n }", "public String getStatus()\r\n {\n return (\"1\".equals(getField(\"ApprovalStatus\")) && \"100\".equals(getField(\"HostRespCode\")) ? \"Approved\" : \"Declined\");\r\n }", "public ReturnStatus getStatus() {\n return (ReturnStatus) get(\"status\");\n }", "public int getStatus()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATUS$12, 0);\n if (target == null)\n {\n return 0;\n }\n return target.getIntValue();\n }\n }", "public Integer getStatus() {\r\n return status;\r\n }", "public Integer getStatus() {\r\n return status;\r\n }", "public String getStatus(){\n\t\t\n\t\treturn this.status;\n\t}", "public void setInvoiceStatus(String value) {\n setAttributeInternal(INVOICESTATUS, value);\n }", "@Schema(example = \"completed\", required = true, description = \"Contract labeling status (completed, processing, failed, cancelled)\")\n public String getStatus() {\n return status;\n }", "public String status() {\n return getString(FhirPropertyNames.PROPERTY_STATUS);\n }", "public String status() {\n return getString(FhirPropertyNames.PROPERTY_STATUS);\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public String status() {\n return getString(FhirPropertyNames.PROPERTY_STATUS);\n }", "public String status() {\n return getString(FhirPropertyNames.PROPERTY_STATUS);\n }", "public java.lang.String getCustomStatus() {\n return customStatus;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }" ]
[ "0.73614174", "0.663154", "0.65022165", "0.65022165", "0.65018946", "0.65018946", "0.65018946", "0.65018946", "0.65018946", "0.65018946", "0.65018946", "0.65018946", "0.6498061", "0.6498061", "0.6498061", "0.6498061", "0.6498029", "0.6498029", "0.6498029", "0.6498029", "0.6498029", "0.6498029", "0.6498029", "0.647865", "0.64744204", "0.64713347", "0.6469529", "0.6469529", "0.6469529", "0.6465158", "0.6465158", "0.6465158", "0.64645594", "0.64645594", "0.64645594", "0.64645594", "0.64645594", "0.64645594", "0.64645594", "0.64601535", "0.6414859", "0.6414859", "0.6414859", "0.6414859", "0.6414859", "0.6414859", "0.6414859", "0.6414859", "0.6414859", "0.6414859", "0.6414859", "0.6414859", "0.6414859", "0.6414859", "0.6414859", "0.6414859", "0.6414859", "0.6414859", "0.6414859", "0.6414859", "0.63690376", "0.6359583", "0.63463104", "0.63244903", "0.62647116", "0.6238036", "0.62316716", "0.6221568", "0.6221568", "0.6211667", "0.61965436", "0.6189444", "0.61883974", "0.61883974", "0.6188329", "0.6188329", "0.6188329", "0.6188329", "0.6188329", "0.6188329", "0.6188329", "0.6188329", "0.6188329", "0.6188329", "0.6188329", "0.6188329", "0.6188329", "0.6188329", "0.6188329", "0.6188329", "0.6188329", "0.6188329", "0.6188329", "0.6188329", "0.6155503", "0.6155503", "0.61446744", "0.6111088", "0.6111088", "0.6111088" ]
0.7958627
0
Sets value as the attribute value for the calculated attribute InvoiceStatus
public void setInvoiceStatus(String value) { setAttributeInternal(INVOICESTATUS, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "InvoiceStatus(String invoiceStatus)\n {\n this.invoiceStatus = invoiceStatus;\n }", "public void setInvoiceStatus(InvoiceStatus invoiceStatus)\n {\n this.invoiceStatus = invoiceStatus;\n }", "@IcalProperty(pindex = PropertyInfoIndex.STATUS,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setStatus(final String val) {\n status = val;\n }", "public InvoiceStatus getInvoiceStatus()\n {\n return INVOICE_STATUS;\n }", "Order setInvoiceApprovedStatus(Order order, User user);", "public String getInvoiceStatus() {\n return (String) getAttributeInternal(INVOICESTATUS);\n }", "Order setInvoiceCreatedStatus(Order order, User user, Date invoiceDate, Date invoiceDueDate);", "@RequestMapping(value = \"/invoiceStatus/{id}\", method = RequestMethod.PUT)\n public Invoice changeInvoiceStatus(@PathVariable int id,\n @RequestParam(value = \"status\") String invoiceStatus) {\n try {\n System.out.println(InvoiceStatus.valueOf(invoiceStatus).toString());\n DatabaseInvoicePostgre.changeInvoiceStatus(id, InvoiceStatus.valueOf(invoiceStatus));\n System.out.println(DatabaseInvoicePostgre.getInvoiceById(id).getInvoiceStatus().toString());\n return DatabaseInvoicePostgre.getInvoiceById(id);\n } catch (Exception e) {\n return null;\n }\n }", "Order setInvoicePaidStatus(Order order, User user);", "public Builder setStatusValue(int value) {\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatusValue(int value) {\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatusValue(int value) {\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatusValue(int value) {\n status_ = value;\n onChanged();\n return this;\n }", "public void setStatus(int value) {\n this.status = value;\n }", "public void setStatus(int value) {\n this.status = value;\n }", "public Builder setStatusValue(int value) {\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatusValue(int value) {\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatusValue(int value) {\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatusValue(int value) {\n\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatusValue(int value) {\n\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatusValue(int value) {\n\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatusValue(int value) {\n\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatusValue(int value) {\n\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatusValue(int value) {\n\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatusValue(int value) {\n\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatusValue(int value) {\n\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatusValue(int value) {\n\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatusValue(int value) {\n\n status_ = value;\n onChanged();\n return this;\n }", "public void setStatus(int status)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATUS$12, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATUS$12);\n }\n target.setIntValue(status);\n }\n }", "public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }", "public Builder setStatusValue(int value) {\n \n status_ = value;\n onChanged();\n return this;\n }", "public void setStatus(String value) {\r\n setAttributeInternal(STATUS, value);\r\n }", "public void setStatus(final String attrStatus) {\r\n this.status = attrStatus;\r\n }", "public final void setStatus(com.mendix.systemwideinterfaces.core.IContext context, xlsreport.proxies.Yes_no status)\r\n\t{\r\n\t\tif (status != null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Status.toString(), status.toString());\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Status.toString(), null);\r\n\t}", "public Builder setStatus(int value) {\n \n status_ = value;\n onChanged();\n return this;\n }", "public String toString(){\n return invoiceStatus;\n }", "@JsonSetter(\"status\")\r\n public void setStatus (String value) { \r\n this.status = value;\r\n }", "@JsonSetter(\"status\")\r\n public void setStatus (String value) { \r\n this.status = value;\r\n }", "public void setStatus(boolean value) {\n this.status = value;\n }", "public void setStatus(boolean value) {\n this.status = value;\n }", "public void setStatus(String value) {\n setAttributeInternal(STATUS, value);\n }", "public Builder setNavigationStatusValue(int value) {\n \n navigationStatus_ = value;\n onChanged();\n return this;\n }", "public void setStatus(BatchStatus value) {\n this.status = value;\n }", "public void setStatusValue(Integer statusValue)\r\n\t{\r\n\t\tstatus = WaterGasMeterStatusEnum.enumForValue(statusValue);\r\n\t}", "public void setStatus(typekey.RateBookStatus value);", "public void setStatus(boolean newstatus){activestatus = newstatus;}", "void setStatusProperty(String property, Double value);", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@Test\n public void testSetStatus() {\n System.out.println(\"setStatus\");\n Member instance = member;\n \n String status = \"APPLIED\";\n instance.setStatus(status);\n \n String expResult = status;\n String result = instance.getStatus();\n \n assertEquals(expResult,result);\n }", "public void setrowStatus(Integer value) {\n setAttributeInternal(ROWSTATUS, value);\n }", "public void setDeliveryStatus(int Id,String status,boolean pending,boolean completed);", "public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "public void xsetStatus(org.apache.xmlbeans.XmlInt status)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlInt target = null;\n target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(STATUS$12, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(STATUS$12);\n }\n target.set(status);\n }\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "void setHasAuditingCompany(ch.crif_online.www.webservices.crifsoapservice.v1_00.AuditingCompanyStatus.Enum hasAuditingCompany);", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "public Builder setStatus(int value) {\n bitField0_ |= 0x00000001;\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatus(int value) {\n bitField0_ |= 0x00000001;\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatus(int value) {\n bitField0_ |= 0x00000001;\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatus(int value) {\n bitField0_ |= 0x00000001;\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatus(int value) {\n bitField0_ |= 0x00000001;\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatus(int value) {\n bitField0_ |= 0x00000001;\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatus(int value) {\n bitField0_ |= 0x00000001;\n status_ = value;\n onChanged();\n return this;\n }", "public Builder setStatus(int value) {\n bitField0_ |= 0x00000001;\n status_ = value;\n onChanged();\n return this;\n }", "public void setrowStatus(Integer value){\n\t}", "public void setStatus(gov.nih.nci.calims2.domain.administration.customerservice.enumeration.BillingInformationStatus \n status) {\n this.status = status;\n }", "public void setStatus(EPPNameVerificationStatus aStatus) {\n\t\tthis.status = aStatus;\n\t}", "public com.autodesk.ws.avro.Call.Builder setStatus(java.lang.CharSequence value) {\n validate(fields()[8], value);\n this.status = value;\n fieldSetFlags()[8] = true;\n return this; \n }", "public void setPaidStatus(int paidStatus) {\n this.paidStatus = paidStatus;\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "@Test\n public void setGetStatus() {\n final CourseType courseType = new CourseType();\n final Integer STATUS = 1;\n courseType.setStatus(STATUS);\n\n assertSame(STATUS, courseType.getStatus());\n }", "public void setEntitystatus(int entitystatus);", "public Builder setStatus(int value) {\n\n status_ = value;\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public void setC_Invoice_ID (int C_Invoice_ID);", "public Builder setRequestStatusValue(int value) {\n requestStatus_ = value;\n bitField0_ |= 0x00000008;\n onChanged();\n return this;\n }", "public void setLBR_ICMS_OwnTaxStatus (String LBR_ICMS_OwnTaxStatus);", "public void setOwnerStatus(String ownerStatus)\n {\n // put your code here\n this.ownerStatus = ownerStatus;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }" ]
[ "0.7091695", "0.6882325", "0.6512114", "0.6499858", "0.647197", "0.64576745", "0.6424461", "0.6235753", "0.6137318", "0.60004234", "0.60004234", "0.60004234", "0.60004234", "0.59825945", "0.59825945", "0.5981757", "0.5981757", "0.5981757", "0.59420955", "0.59420955", "0.59420955", "0.59420955", "0.59420955", "0.59420955", "0.59420955", "0.59413344", "0.59413344", "0.59413344", "0.59383667", "0.59255815", "0.59249276", "0.57705325", "0.57624435", "0.57540625", "0.5739977", "0.5735181", "0.5727503", "0.5727503", "0.57263696", "0.57263696", "0.5710061", "0.56919867", "0.5687567", "0.5673453", "0.56553733", "0.565017", "0.56011426", "0.55922955", "0.55922955", "0.55922955", "0.55922955", "0.55922955", "0.55922955", "0.55922955", "0.5592109", "0.5592109", "0.5592109", "0.55887383", "0.5588473", "0.55724543", "0.55703014", "0.5558129", "0.5558129", "0.5558129", "0.5558129", "0.5558129", "0.5558129", "0.5558129", "0.5558129", "0.55574536", "0.55574536", "0.55440813", "0.55110645", "0.5510674", "0.5499149", "0.54910797", "0.54910797", "0.54910797", "0.54910797", "0.54910797", "0.54910797", "0.54910797", "0.54910797", "0.54878795", "0.54576373", "0.5456785", "0.54500216", "0.54470336", "0.5437759", "0.5437759", "0.54067844", "0.5403022", "0.54021865", "0.5383768", "0.5383369", "0.5382705", "0.53789884", "0.53742695", "0.53742695", "0.53742695" ]
0.776822
0
Processes requests for both HTTP GET and POST methods.
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); /* TODO output your page here. You may use following sample code. */ String ip = getServletContext().getInitParameter("ip"); try { String UserName=request.getParameter("u_username"); String Name = request.getParameter("u_name"); String Admin_pass=request.getParameter("a_password"); String Pass = request.getParameter("u_password"); String Confirm_Pass = request.getParameter("u_repassword"); String Email = request.getParameter("u_email"); String Gender = request.getParameter("u_gender"); String Account=request.getParameter("u_account"); String EMAIL_REGEX = "^[\\w-_\\.+]*[\\w-_\\.]\\@([\\w]+\\.)+[\\w]+[\\w]$"; if(UserName.equals("")||UserName.equals(null)) { RequestDispatcher rs = request.getRequestDispatcher("Registration.jsp"); rs.forward(request, response); out.print("<script>alert('*All fields are mandetory');</script>"); } else if(Name.equals("")||Name.equals(null)) { RequestDispatcher rs = request.getRequestDispatcher("Registration.jsp"); rs.include(request, response); out.print("<script>alert('*All fields are mandetory');</script>"); } else if(!Email.matches(EMAIL_REGEX)) { RequestDispatcher rs = request.getRequestDispatcher("Registration.jsp"); rs.include(request, response); out.print("<script>alert('Invalid Email');</script>"); } else if(!Admin_pass.equals("Admin")) { RequestDispatcher rs = request.getRequestDispatcher("Registration.jsp"); rs.include(request, response); out.print("<script>alert('Invalid Admin Password');</script>"); } else{ RequestDispatcher rs = request.getRequestDispatcher("Registration"); rs.include(request, response); } } catch(IOException | ServletException e) {} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_ALLOWED);\n }\n }", "private void processRequest(HttpServletRequest request, HttpServletResponse response) {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // only POST should be used\n doPost(request, response);\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\nSystem.err.println(\"=====================>>>>>123\");\n\t\tString key=req.getParameter(\"method\");\n\t\tswitch (key) {\n\t\tcase \"1\":\n\t\t\tgetProvinces(req,resp);\n\t\t\tbreak;\n\t\tcase \"2\":\n\t\t\tgetCities(req,resp);\t\t\t\n\t\t\tbreak;\n\t\tcase \"3\":\n\t\t\tgetAreas(req,resp);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t\tdoGet(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t\t\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }" ]
[ "0.7003936", "0.6659079", "0.660391", "0.65091664", "0.6447284", "0.6442771", "0.64409995", "0.6432445", "0.64279187", "0.642484", "0.642484", "0.6420294", "0.6420294", "0.6420294", "0.64183897", "0.6414667", "0.6414667", "0.6400434", "0.6394412", "0.6394412", "0.63928837", "0.63923967", "0.63923967", "0.6390848", "0.6390848", "0.6390848", "0.6390848", "0.638906", "0.638906", "0.63806075", "0.6378598", "0.63784695", "0.6377097", "0.6376562", "0.637075", "0.6363036", "0.6363036", "0.63618815", "0.63553625", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086", "0.6355086" ]
0.0
-1
This represents the work actually carried out by a Task. It's a singlemethod interface so it can be defined with lambda functions, or other objects can implement it. When the action is run, it will receive an object implementing an interface through which it can report progress and errors. Alteratively, TaskAction could have more methods: return a title, heaviness, user details, etc. to be seen by Task, instead of having only one method to make it a functional interface. I'd like to discourage anonymous functions anyway.
public interface TaskAction { /** * This method will define an asynchronous action to take. * The parameter is a simpler interface of Task that only allows progress reporting, to encapsulate actions and * prevent them from seeing or modifying the task hierarchy that triggers and manages them. */ public void action (ProgressListener progressListener) throws Exception; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void task();", "public interface Task {\n void execute() ;\n}", "interface ITask {\r\n\tabstract void Init();\r\n\r\n\tabstract void Run();\r\n\r\n\tabstract void Execute();\r\n\r\n\tabstract void Change(boolean value) throws Exception;\r\n\r\n\tabstract void Change(double value) throws Exception;\r\n\r\n\tabstract boolean IsButton();\r\n}", "public interface Task {\n public void run(Object o);\n}", "public abstract void execute(Task t);", "public interface TaskInterface {\n\n public String getUrl();\n public void resultExecute(String result);\n\n}", "public interface TaskBase {\n\t/**\n\t * @return Returns the name of the task\n\t */\n\tpublic String GetName();\n\n\t/**\n\t * Called upon entering autonomous mode\n\t */\n\tpublic void Initialize();\n\n\t/**\n\t * Called every autonomous update\n\t * \n\t * @return Return task result enum\n\t */\n\tpublic TaskReturnType Run();\n\n}", "public interface Task<T> extends Callable<T> {\n\n String getTaskName();\n void onComplete(T result);\n\n}", "public interface ITaskController {\n\n void showTasks();\n Task addTask();\n boolean removeTask();\n boolean performTask(String path);\n Task takeTask(int taskNum);\n}", "public interface Task<T> {\r\n /**\r\n * run the task.\r\n *\r\n * @return T a generic type.\r\n */\r\n T run();\r\n}", "public interface TaskBase {\n public void executeTask();\n\n}", "public TaskReturnType Run();", "@FunctionalInterface\n public interface ActionToTest {\n\n void exec(Job job, JobContext jContext, TaskAttemptContext tContext,\n ManifestCommitter committer) throws Exception;\n }", "public interface ITask extends PropertyChangeListener{\n\tvoid execute();\n\tvoid interrupt();\n\tboolean toBeRemoved();\n\n\t//Using update tick\n\tboolean updateTick();\n\n\t//Using time\n\t//long getWaittime();\n\t//long getEndtime();\n\n\n}", "public interface ITaskHandler {\n\n\t/**\n\t * It is called in a separate thread to handle the task.\n\t * Parameters are thoes given in the addTask()\n\t * This method should not been called directly.\n\t * \n\t * @param pTaskType\n\t * @param pParam\n\t * @throws IllegalArgumentException\n\t */\n\tvoid handleTask(ITaskType pTaskType, Object pParam) throws IllegalArgumentException;\n}", "public interface TaskCallback extends RunningTaskCallback {\r\n\r\n\r\n /**\r\n * Calling when the task is preparing to start .\r\n */\r\n void onTaskStart();\r\n\r\n @Override\r\n void onTaskRunning(PreTaskResult preTaskResult, int numerator, int denominator);\r\n\r\n /**\r\n * Calling while the task is completed.\r\n *\r\n * @param taskResult TaskResult bean\r\n */\r\n void onTaskCompleted(TaskResult taskResult);\r\n}", "@Override\r\n\tvoid execute(Runnable task);", "public interface Task extends Runnable {\n\n /**\n * Get the task name\n *\n * @return\n */\n public String getTaskName();\n\n /**\n *\n * @return true if the task is in active, else false\n */\n public boolean isActive();\n\n /**\n * @return priority of the task\n */\n public int getPriority();\n\n /**\n *\n * @return the sequence number of the task. If two tasks has same priority,\n * then the task with less sequence number executes first.\n */\n public int getSequenceNumber();\n}", "public interface Task<T> {\n T execute();\n}", "public interface TaskDelegate {\n public void taskComplete(Object object);\n}", "public interface Executor {\n void setTask(Task task);\n Task getTask();\n void startTask();\n}", "public interface RunnableTask {\n ProcessResult run();\n}", "public interface MyActions {\n\n String GET_ROUTINES = \"get-routines\";\n String RENAME_ROUTINE = \"rename-routine\";\n String DELETE_ROUTINE = \"delete-routine\";\n String CREATE_ROUTINE = \"create-routine\";\n String UPDATE_TASKS = \"update-tasks\";\n String GET_TASKS = \"get-tasks\";\n\n String CREATE_TASK = \"create-task\";\n String DELETE_TASK = \"delete-task\";\n void deleteTask(String routine, Task task);\n String UPDATE_TASK = \"update-task\";\n String UPDATE_BREAK_INTERVAL = \"update-break-interval\";\n String GET_BREAK_INTERVAL = \"get-break-interval\";\n String SAVE_HISTORY = \"save-history\"; //save after each task completes\n String GET_HISTORY = \"get-history\";\n String LOGIN = \"login\";\n\n void getRoutines();\n\n void renameRoutine(String oldName, String newName);\n\n void deleteRoutine(String routine);\n\n void createRoutine(String name, int priority);\n\n void updateTask(String routine, Task oldTask, Task newTask, int position);\n\n void updateBreakInterval(String routine, int interval);\n\n void getBreakInterval(String routine);\n\n void getTasks(String routine);\n\n void createTask(String routine, Task task, int priority);\n\n void updateTasks(String routine, List<Task> tasks);\n\n void login(String userEmail);\n\n void saveHistory(String routine, Task task, String date, String time);\n\n void getHistory();\n\n}", "public interface Task {\n\t\t/** Insertion tuples */\n\t\tpublic TupleSet insertions();\n\n\t\t/** Deletion tuples. */\n\t\tpublic TupleSet deletions();\n\n\t\t/** The program name that should evaluate the tuples. */\n\t\tpublic String program();\n\n\t\t/** The name of the table to which the tuples belong. */\n\t\tpublic TableName name();\n\t}", "public interface Executor {\n\n void setAction(Action action);\n boolean execute( Map<String,String> values, MODE mode) throws IOException;\n}", "public interface Action {\n void doSomething();\n}", "public interface GeocoderTaskActions {\n\t\tpublic void taskCompletionResult(List<Address> result);\n\n\t\tpublic void taskInterrupted();\n\t}", "public interface ITask {\n\n String getId();\n boolean isComplete();\n\n}", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public interface TaskCallback {\n\n void onStart();\n\n void onComplete();\n\n void onSuccess();\n\n void onFailure(Exception e);\n }", "@FunctionalInterface\npublic interface TaskWithoutResult {\n\n /**\n * The job that this task will accomplish\n *\n * @return\n */\n void completeJob();\n}", "public interface Task {\n void send(INotificationSideChannel iNotificationSideChannel) throws RemoteException;\n }", "public interface IAction {\n\n /**\n * Executes this action.\n *\n * @param time The current time in the animation\n */\n void execute(double time);\n\n /**\n * Returns a description of this action.\n *\n * @return The description as a String\n */\n String toString();\n\n /**\n * Gets this action's duration.\n *\n * @return The duration\n */\n Posn getDuration();\n\n /**\n * Gets this actions' type.\n *\n * @return The type\n */\n ActionType getType();\n\n /**\n * Gets the name of this action's shape.\n *\n * @return The name\n */\n String getShapeName();\n\n /**\n * Creates the part of the description that most\n * heavily relies on the type of Action this is.\n *\n * @return The description.\n */\n String getDescription();\n\n /**\n * Creates the description needed to be compatible with svg files.\n *\n * @param speed The speed of the animation.\n * @return The SVG description.\n */\n String getSVGDescription(double speed);\n}", "public interface Task {\n\n public void performWork() throws InterruptedException;\n\n}", "public interface Processable<T> {\n /**\n * Return a new instance of a task representing the {@link Processable}.\n * @return new Instance of the Task representing the {@link Processable}\n */\n public abstract Task<T> newTask();\n}", "public interface Actionable {\n void executeAction(Action action);\n}", "public interface Progress {\n\n\t/**\n\t * @return the task name, may be <code>null</code>\n\t */\n\tpublic String getTaskName();\n\n\t/**\n\t * @return the name of the current subtask, may be <code>null</code>\n\t */\n\tpublic String getSubTask();\n\n\t/**\n\t * @return if the progress is indeterminate\n\t */\n\tpublic boolean isIndeterminate();\n\n\t/**\n\t * @return the already worked work units, should be ignored if\n\t * {@link #isIndeterminate()} is <code>true</code>\n\t */\n\tpublic int getWorked();\n\n\t/**\n\t * @return the total work units, should be ignored if\n\t * {@link #isIndeterminate()} is <code>true</code>\n\t */\n\tpublic int getTotalWork();\n\n\t/**\n\t * @return if the job/task is canceled\n\t */\n\tpublic boolean isCanceled();\n\n\t/**\n\t * Cancel the job/task. Behavior on cancel depends on the implementation of\n\t * job/task.\n\t */\n\tpublic void cancel();\n\n}", "public interface TaskItemUserActionsListener {\n void onCompleteChanged(Task task, View v);\n\n void onTaskClicked(Task task);\n}", "@Override\n\tprotected void compute() {\n\t\tSystem.out.println(\"This is an action\");\n\t}", "public interface TaskCallback\n{\n void done();\n}", "public interface Task {\n\n /**\n * Getter for the conversaitonal object concerned with this task.\n * @return the conversational object owning this task\n */\n ConversationalObject getTaskOwner();\n\n /**\n * Stter for the conversaitonal object concerned with this task.\n * @param taskOwner the task owner to set.\n */\n void setTaskOwner(ConversationalObject taskOwner);\n\n /**\n * Getter for the status of this task\n * @return the current status of this task\n */\n TaskStatus getStatus();\n\n /**\n * Setter for the status of this task\n * @param status\n */\n void setStatus(TaskStatus status);\n\n /**\n * Getter for the stage of this task. It is strongly recomended that concrete\n * task classes declare static final string variables to refer to there\n * possible stages.\n * @return The current stage of this task\n */\n String getStage();\n\n /**\n * Getter for the result of this task.\n * @return the result of this task, or {@code null} if the task is not\n * finished.\n */\n TaskResult getResult();\n\n /**\n * Getter for the set of tasks that depend from this task\n * @return The set of dependent tasks (can be null)\n */\n Set<Task> getDependentTasks();\n\n /**\n * Setter for the set of tasks that depend from this task\n * @param dependentTasks the set of dependent tasks to set\n */\n void setDependentTasks(Set<Task> dependentTasks);\n\n /**\n * Getter for the aggregated task this task has generated and is dependent on.\n * @return The aggregated task, if any (can be null)\n */\n Task getAggregatedTask();\n\n /**\n * Setter for the aggregated task this task has generated and is dependent on.\n * @param aggregatedTask the aggregated task to set\n */\n void setAggregatedTask(Task aggregatedTask);\n\n // TODO Other references could be added to extend the tasks model: e.g.\n // (1) subtasks: list of tasks composing this task, i.e. that should be\n // executed\n // in sequence in order to complete this task, and\n // (2) supertask: reversely, task this task is a subtask of.\n\n /**\n * Getter for the set of conversations this task generated and is now\n * dependent on.\n * @return the set of generated conversations\n */\n Set<OnGoingConversation> getGeneratedConversations();\n\n /**\n * Setter for generatedConversations.\n * @param generatedConversations the set of generatedConversations to set\n */\n void setGeneratedConversations(\n Set<OnGoingConversation> generatedConversations);\n\n /**\n * Cuts all references to other objects so that the garbage collector can\n * destroy them after having destroyed this task, if they are not referenced\n * by other objects than this task. Should be executed before removing the\n * last reference to this task (usually before removing this task from the set\n * of tasks of a conversational object)\n */\n void clean();\n\n /**\n * Executes the task. Specific to each concrete task class.\n */\n void execute();\n}", "public interface OnActionFinishedListener<TResult> {\n /* will be called for each Action (which in a Task action chain by continuation) finished its execution\n */\n void Finished(Task task, Action<TResult> lastFinishedAction);\n}", "public interface WorkflowOrchestrator {\n\n <T> Workflow<T> start(WorkflowMeta workflowMeta, Entity<T> entity);\n List<Task> onComplete(Task task, ExecutionContext context);\n List<Task> onFailure(Task task);\n}", "@Override\n public void execute(final Task<T> task) {\n }", "@Override\r\n\tpublic void process(ResultItems arg0, Task arg1) {\n\t\t\r\n\t}", "public abstract TaskResult runTask(TaskKey taskKey) throws JobException;", "public interface IActionCallBack {\n\n /**\n *\n * @param action action\n * @return will be execute this action\n */\n boolean onPreExecute(IAction action);\n\n /**\n *\n * @param action\n * @param result\n */\n void onExecuteDone(IAction action, ActionResult result);\n\n void onExecuteCancel(IAction action);\n\n}", "abstract public void performAction();", "public interface TaskManager {\n\t/**\n\t * @return all the tasks that have to be executed\n\t */\n\tvoid getTasks();\n}", "public interface TaskInterface { // 효율성을 높이기위해 interface 사용\n public String getUrl(); // interface 라서 public을 쓸 필요가 없음\n public void postExecute(String result);\n}", "@Override\n\tpublic void doExecute(Runnable action) {\n\t\t\n\t}", "@SkylarkModule(\n name = \"feedback.action\",\n doc = \"An action that will be executed in a feedback workflow or on_finish hook\",\n category = SkylarkModuleCategory.TOP_LEVEL_TYPE,\n documented = false)\npublic interface Action {\n\n void run(SkylarkContext<?> context) throws ValidationException, RepoException;\n\n String getName();\n\n /** Returns a key-value ist of the options the action was instantiated with. */\n ImmutableSetMultimap<String, String> describe();\n}", "public interface MapTask extends Task {\n\t\n\tpublic void map(MapRunner mapRunner, String toDo);\n}", "public void performAction();", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "void executeStraight(Runnable task);", "interface Action {\n void process(AbstractMessagingService serviceAction,\n Message message);\n\n }", "public interface TaskDelegate {\n /*\n Notifies an activity of an async method's completion\n */\n public void taskCompletionResult(ArrayList<String> result);\n}", "public abstract void submit(Runnable runnable);", "public void doAction(){}", "public Task getTask() { return task; }", "public interface OnTaskClickedListener {\n\n void taskOpened(int taskId);\n}", "public interface JsonTask extends Task {\n}", "public interface IAction {\n public boolean runAction() throws IOException, BrokenBarrierException, InterruptedException;\n}", "public <T> List<T> massExec(Callable<? extends T> task);", "abstract void doTaskOnRun();", "Task createTask();", "Task createTask();", "Task createTask();", "public interface ExecutorService {\n\n\n /**\n * beat 心跳\n * @return\n */\n public ReturnT<String> beat();\n\n\n public ReturnT<String> idleBeat(int jobId);\n\n\n /**\n * kill 掉某个job\n * @param jobId\n * @return\n */\n public ReturnT<String> kill(int jobId);\n\n\n /**\n * 记录掉某个日志\n * @param logDateTim\n * @param logId\n * @param fromLineNum\n * @return\n */\n public ReturnT<LogResult> log(long logDateTim, int logId, int fromLineNum);\n\n\n /**\n * 执行某个任务\n * @param triggerParam\n * @return\n */\n public ReturnT<String> run(TriggerParam triggerParam);\n\n}", "public interface Task<T> {\n public void doHandle(CallBack<T> callback);\n}", "public interface Executor<T> {\n\n void submit(T arg);\n\n}", "public interface TaskCaller extends Callable<Bitmap> {\n\n void onFinish();\n void onError();\n\n}", "protected TaskFlow( ) { }", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract boolean dispatch(final CallRunner callTask) throws InterruptedException;", "public abstract String taskToText();", "public interface CustomTaskInterceptor {\n\n /**\n * This interface implementation should\n * provide results of operations mentioned above.\n */\n interface OnResultListener {\n void onFinished();\n }\n\n void doSomeTask(OnResultListener listener);\n}", "public interface Action {\n\n /** Containing custom action. */\n void action();\n}", "public interface Notification {\n /**\n * Method to generate and draw notification message\n * @param task it's task for notification message\n */\n void notifyMessage(Task task);\n}", "public interface IUploadImageTask {\n public void OnTaskCompleted(UploadImageResult result);\n}", "public interface CallbackTask<R>\n{\n\n R execute() throws Exception;\n\n void onBack(R r);\n\n void onException(Throwable t);\n}", "public Task(){}", "public interface TaskList {\n\n /**\n * Adds the task into the list.\n *\n * @param task the task to be added into the list\n */\n String addTask(Task task);\n\n /**\n * Setter to change the done status of the task.\n */\n String setDone(int index);\n\n /**\n * Delete the task at a specified index.\n */\n String delete(int index);\n\n /**\n * Prints the list.\n */\n String printList();\n\n /**\n * Prints Tasks on the specified date.\n */\n String printListDate(String date);\n\n /**\n * Returns the number of items in the TaskList.\n *\n * @return listCount\n */\n int count();\n\n /**\n * Prints Tasks containing the specified searchString.\n * @param searchString the string to be used for searching\n */\n String printListSearch(String searchString);\n}", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public interface TaskCallback<T> {\n void onFinish(T result);\n}", "public interface Action {\n String execute(HttpServletRequest request);\n}", "public interface CheckStrategy {\n\n boolean check(Task task);\n\n <R> R getResult();\n\n}", "void doWork(AbstractTaskList list);", "@Override\r\n\tpublic void doTask() {\n\t}", "public void executeAction( String actionInfo );", "Callable<E> getTask();", "public interface Action {\n String execute(GameController gameController);\n}", "public interface TaskCallBack {\n\n void notifyTaskTheResultOfcallService(TaskEntity entity);\n}", "@Override\n public Class<? extends Task> taskClass() {\n return AmpoolSourceTask.class;\n }", "public ITask getTask() {\n \t\treturn task;\n \t}", "Future_<V> submit(Callable_<V> task);" ]
[ "0.67986673", "0.6677384", "0.6640244", "0.6588283", "0.6520408", "0.64536476", "0.6436762", "0.6371305", "0.6340543", "0.6331618", "0.62901014", "0.62652045", "0.62623197", "0.6241032", "0.62336445", "0.62223077", "0.62220454", "0.6206032", "0.6185107", "0.6171262", "0.61684483", "0.615458", "0.6149795", "0.6134839", "0.6106708", "0.6083431", "0.605088", "0.60377556", "0.6035268", "0.60286725", "0.60258466", "0.602113", "0.6019129", "0.6010011", "0.5995717", "0.5986873", "0.59356046", "0.5927969", "0.5906303", "0.5888113", "0.58875996", "0.58857197", "0.586207", "0.5831146", "0.5826262", "0.58222985", "0.58157575", "0.58153355", "0.58058286", "0.58028436", "0.5779268", "0.5773372", "0.576497", "0.57236797", "0.5712066", "0.5705954", "0.56906164", "0.5674094", "0.5670333", "0.56674397", "0.5666623", "0.5661689", "0.56611073", "0.5647389", "0.5645079", "0.5638164", "0.56191933", "0.56191933", "0.56191933", "0.5610108", "0.5588653", "0.5582291", "0.55751187", "0.5553199", "0.5552237", "0.5552237", "0.5552237", "0.5552237", "0.554915", "0.55486995", "0.5532594", "0.55272293", "0.5515734", "0.5504431", "0.550256", "0.54977405", "0.54881495", "0.5484432", "0.5481511", "0.5480929", "0.5479719", "0.54754406", "0.5473063", "0.5471865", "0.5469017", "0.5468336", "0.5465591", "0.54646003", "0.54643476", "0.5458138" ]
0.75339556
0
This method will define an asynchronous action to take. The parameter is a simpler interface of Task that only allows progress reporting, to encapsulate actions and prevent them from seeing or modifying the task hierarchy that triggers and manages them.
public void action (ProgressListener progressListener) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TaskAction {\n\n /**\n * This method will define an asynchronous action to take.\n * The parameter is a simpler interface of Task that only allows progress reporting, to encapsulate actions and\n * prevent them from seeing or modifying the task hierarchy that triggers and manages them.\n */\n public void action (ProgressListener progressListener) throws Exception;\n\n}", "public abstract void task();", "public abstract void execute(Task t);", "public interface TaskDelegate {\n /*\n Notifies an activity of an async method's completion\n */\n public void taskCompletionResult(ArrayList<String> result);\n}", "public interface OnActionFinishedListener<TResult> {\n /* will be called for each Action (which in a Task action chain by continuation) finished its execution\n */\n void Finished(Task task, Action<TResult> lastFinishedAction);\n}", "public interface TaskCallback\n{\n void done();\n}", "@Override\r\n\tvoid execute(Runnable task);", "public interface TaskCallback extends RunningTaskCallback {\r\n\r\n\r\n /**\r\n * Calling when the task is preparing to start .\r\n */\r\n void onTaskStart();\r\n\r\n @Override\r\n void onTaskRunning(PreTaskResult preTaskResult, int numerator, int denominator);\r\n\r\n /**\r\n * Calling while the task is completed.\r\n *\r\n * @param taskResult TaskResult bean\r\n */\r\n void onTaskCompleted(TaskResult taskResult);\r\n}", "public interface AsyncTask {\n\n\n /**\n * 这里判断任务是否需要停止,如是否超时\n */\n Boolean needStop();\n\n /**\n * 任务id\n */\n Long getTaskId();\n\n /**\n * 任务类型\n * @see com.pousheng.middle.task.enums.TaskTypeEnum\n */\n String getTaskType();\n\n ThreadPoolExecutor getTaskExecutor();\n\n Response<Long> init();\n\n void preStart();\n\n void start();\n\n void onStop();\n\n void onError(Exception e);\n\n void manualStop();\n\n AsyncTask getTask(TaskDTO task);\n}", "public interface Task<T> extends Callable<T> {\n\n String getTaskName();\n void onComplete(T result);\n\n}", "public interface TaskCallback {\n\n void onStart();\n\n void onComplete();\n\n void onSuccess();\n\n void onFailure(Exception e);\n }", "@Override\n public void execute(final Task<T> task) {\n }", "public interface AsyncResponce {\n\n /// Cette classe permet de realiser une callback dans une Async Task en overidant cette classe\n void ComputeResult(Object result);\n}", "public interface TaskDelegate {\n public void taskComplete(Object object);\n}", "public abstract T await();", "public interface Task {\n void execute() ;\n}", "public interface Task<T> {\n public void doHandle(CallBack<T> callback);\n}", "void Finished(Task task, Action<TResult> lastFinishedAction);", "@Override\n\tpublic void doExecute(Runnable action) {\n\t\t\n\t}", "void startTask( org.openxdata.server.admin.model.TaskDef task, AsyncCallback<java.lang.Boolean> callback );", "public interface IAsyncComplete<T> {\n \n public abstract void onComplete(T result);\n \n}", "@Override\n public void onSuccess(IMqttToken asyncActionToken) {\n }", "@Override\n public void onSuccess(IMqttToken asyncActionToken) {\n }", "public interface IActionCallBack {\n\n /**\n *\n * @param action action\n * @return will be execute this action\n */\n boolean onPreExecute(IAction action);\n\n /**\n *\n * @param action\n * @param result\n */\n void onExecuteDone(IAction action, ActionResult result);\n\n void onExecuteCancel(IAction action);\n\n}", "void saveTask( org.openxdata.server.admin.model.TaskDef task, AsyncCallback<Void> callback );", "public void asyncFire(EventI event);", "void mo54418a(DownloadTask downloadTask);", "public interface Async {\n public void afterExec(JSONObject jsonObject);\n}", "public abstract void task() throws InterruptedException;", "public interface TaskCompleted {\n\tvoid onTaskComplete(String response, String type);\n}", "public interface ITaskHandler {\n\n\t/**\n\t * It is called in a separate thread to handle the task.\n\t * Parameters are thoes given in the addTask()\n\t * This method should not been called directly.\n\t * \n\t * @param pTaskType\n\t * @param pParam\n\t * @throws IllegalArgumentException\n\t */\n\tvoid handleTask(ITaskType pTaskType, Object pParam) throws IllegalArgumentException;\n}", "void executeAsync(long delayMs, Runnable task);", "protected Task<Void> createTask() {\n\n\t\t\treturn new Task<Void>() {\n\n\t\t\t\tprotected Void call() {\n\t\t\t\t\t_button.setDisable(true);\n\t\t\t\t\tTaskScheduler.executeAlgorithm(_digraph);\n\n\t\t\t\t\treturn null;\n\n\n\t\t\t\t}\n\t\t\t};\n\t\t}", "public interface Task<T> {\n T execute();\n}", "public interface TaskBase {\n\t/**\n\t * @return Returns the name of the task\n\t */\n\tpublic String GetName();\n\n\t/**\n\t * Called upon entering autonomous mode\n\t */\n\tpublic void Initialize();\n\n\t/**\n\t * Called every autonomous update\n\t * \n\t * @return Return task result enum\n\t */\n\tpublic TaskReturnType Run();\n\n}", "void actionCompleted(ActionLookupData actionLookupData);", "public void updateTask() {}", "public interface OnAsyncTaskCompleted {\n /**\n * On task completed.\n *\n * @param o the object will be return by the asynctask\n */\n void onTaskCompleted(Object o);\n}", "public interface OnTaskCompleted {\n void onTaskCompleted();\n}", "public interface TaskItemUserActionsListener {\n void onCompleteChanged(Task task, View v);\n\n void onTaskClicked(Task task);\n}", "public TaskReturnType Run();", "@Override\r\n\tpublic void doTask() {\n\t}", "public interface TaskCaller extends Callable<Bitmap> {\n\n void onFinish();\n void onError();\n\n}", "public interface AsyncCallback<T>\n{\n\tpublic void onPreExecute();\n\tpublic void onPostExecute(T arg);\n}", "public interface TaskCallback<T> {\n void onFinish(T result);\n}", "interface ae<TResult> {\n void a(Task<TResult> task);\n}", "@Override\n public void execute(final UserActionRequest inUserActionRequest)\n {\n AsynchronousActionController actionController = (AsynchronousActionController) ctx\n .getBean(\"asyncActionController\");\n\n Object springBean = ctx.getBean(inUserActionRequest.getActionKey());\n\n logger.debug(\"RealTimeExecuter about to performAction...\");\n\n try\n {\n if (springBean instanceof AsyncAction)\n {\n AsyncAction action = (AsyncAction) springBean;\n AsyncActionContext actionContext = new AsyncActionContext(inUserActionRequest.getParams());\n actionContext.setActionId(inUserActionRequest.getActionKey());\n actionController.execute(actionContext, action);\n }\n else if (springBean instanceof TaskHandlerAsyncAction)\n {\n TaskHandlerAsyncAction action = (TaskHandlerAsyncAction) springBean;\n AsyncActionContext actionContext = new AsyncActionContext(inUserActionRequest.getParams());\n actionContext.setActionId(inUserActionRequest.getActionKey());\n actionController.execute(actionContext, action);\n }\n else\n {\n throw new IllegalArgumentException(\"Supplied bean is not an executable async action.\");\n }\n }\n catch (Exception e)\n {\n logger.error(\"exception invoking action \" + inUserActionRequest.getActionKey() + \"Exception is \" + e);\n }\n }", "@Override\n\tpublic void task() {\n\t\tst.subTask();\n System.out.println(\"This is UI Task\");\n\t}", "public abstract void onWait();", "@Override\n public void execute(final Task<T> task, final long wait, final TimeUnit unit) {\n }", "java.util.concurrent.Future<StartExportTaskResult> startExportTaskAsync(StartExportTaskRequest startExportTaskRequest);", "void onTaskCompleted(TaskResult taskResult);", "public abstract Task markAsDone();", "public interface AsyncTaskListener<A extends AsyncTask, R> {\n /**\n * Method called when an AsyncTask reaches completion\n *\n * @param finishedTask The task that reached completion.\n * @param result The result for the task.\n */\n void onTaskFinished(A finishedTask, R result);\n}", "public abstract boolean dispatch(final CallRunner callTask) throws InterruptedException;", "public interface WebCompleteTask {\n public void onComplete(String response, int taskcode);\n}", "java.util.concurrent.Future<StartExportTaskResult> startExportTaskAsync(StartExportTaskRequest startExportTaskRequest,\n com.amazonaws.handlers.AsyncHandler<StartExportTaskRequest, StartExportTaskResult> asyncHandler);", "public interface AsyncTaskListener {\n\n void finishedTask(String joke, Exception e);\n}", "public interface OnTaskCompleted {\n\n void onTaskCompleted(String s);\n}", "abstract void doTaskOnRun();", "@Override\n public void onComplete(@NonNull Task<Void> task) {\n }", "@Override\n public void onComplete(@NonNull Task<Void> task) {\n }", "public <P,R> void executeAsyncTask(AsyncTask<P,R> task, P param, boolean showProgress, boolean lockUI) { }", "public <P,R> void executeAsyncTask(AsyncTask<P,R> task, P param, boolean showProgress, boolean lockUI) { }", "public abstract void doExecute(A a, TaskCompletionSource<ResultT> taskCompletionSource) throws RemoteException;", "@Override\n\tprotected void doAsyncExecute(VoiceMessage requestMessage) {\n\n\t}", "public interface AsyncDelegate {\n\n public void asyncComplete(boolean success);\n\n\n}", "void mo54428b(DownloadTask downloadTask);", "@Override\n public boolean act(Task task) throws RuntimeException {\n return this.subscribe(task);\n }", "<T> AsyncResult<T> startProcess(Callable<T> task);", "public interface OnDownloadAsyncTask {\n void onComplete(Book book);\n }", "void executeStraight(Runnable task);", "abstract public void performAction();", "@Override\r\n public void asyncExecute(String script)\r\n {\n\r\n }", "public abstract void onAsyncRun(View view);", "Task createTask();", "Task createTask();", "Task createTask();", "protected <T> void runBackgroundAction(final AsyncUseCase<BaseDisposableObserver, Observable> asyncUseCase,\n final boolean showProgress, final BackgroundAction<T> backgroundAction,\n final ErrorHandler customErrorHandler) {\n mRetryAction = () -> {\n if (!isViewAttached()) return;\n addDisposable(asyncUseCase.execute(new BaseDisposableObserver<T>() {\n @Override\n protected void onStart() {\n if (showProgress) getView().showProgress(true);\n }\n\n @Override\n public void onNext(T data) {\n startSafeAction(() -> {\n backgroundAction.onComplete(data);\n });\n }\n\n @Override\n public void onError(Throwable e) {\n startSafeAction(() -> {\n getView().showProgress(false);\n super.onError(e);\n });\n }\n\n @Override\n public boolean handleNetworkError(RetrofitException exception) {\n if (customErrorHandler != null && customErrorHandler.handleNetworkError(exception)) {\n return true;\n }\n return mErrorHandler.handleNetworkError(exception);\n }\n\n @Override\n public boolean handleUnauthorizedError(ResponseError error) {\n if (customErrorHandler != null && customErrorHandler.handleUnauthorizedError(error)) {\n return true;\n }\n return mErrorHandler.handleUnauthorizedError(error);\n }\n\n @Override\n public boolean handleNotFoundError(ResponseError error) {\n if (customErrorHandler != null && customErrorHandler.handleNotFoundError(error)) {\n return true;\n }\n return mErrorHandler.handleNotFoundError(error);\n }\n\n @Override\n public boolean handleResponseError(ResponseError error) {\n if (customErrorHandler != null && customErrorHandler.handleResponseError(error)) {\n return true;\n }\n return mErrorHandler.handleResponseError(error);\n }\n\n @Override\n public boolean handleUnknownHttpError(RetrofitException exception) {\n if (customErrorHandler != null && customErrorHandler.handleUnknownHttpError(exception)) {\n return true;\n }\n return mErrorHandler.handleUnknownHttpError(exception);\n }\n\n @Override\n public boolean handleAppError(Throwable throwable) {\n if (customErrorHandler != null && customErrorHandler.handleAppError(throwable)) {\n return true;\n }\n return mErrorHandler.handleAppError(throwable);\n }\n\n @Override\n public boolean handleServerError(RetrofitException exception) {\n if (customErrorHandler != null && customErrorHandler.handleServerError(exception)) {\n return true;\n }\n return mErrorHandler.handleServerError(exception);\n }\n\n @Override\n public void onComplete() {\n }\n }));\n };\n mRetryAction.run();\n }", "public interface IBugReportRpcAsync {\r\n\r\n /**\r\n * Submit a bug report.\r\n * @param bugReport Bug report to submit\r\n * @param callback Callback to be invoked after method call completes\r\n */\r\n void submitBugReport(BugReport bugReport, AsyncCallback<Void> callback);\r\n\r\n}", "public interface TaskBase {\n public void executeTask();\n\n}", "public interface GeocoderTaskActions {\n\t\tpublic void taskCompletionResult(List<Address> result);\n\n\t\tpublic void taskInterrupted();\n\t}", "void onTaskResult(TaskInfo mTaskInfo);", "public interface CallbackTask<R>\n{\n\n R execute() throws Exception;\n\n void onBack(R r);\n\n void onException(Throwable t);\n}", "public interface IUploadImageTask {\n public void OnTaskCompleted(UploadImageResult result);\n}", "private void execEndAction(String action){\n\n if (action.length() == 0) { return; }\n\n if (endTask != null ){\n endTask.interrupt();\n endTask = null;\n }\n RunningTask rt = new RunningTask(this,action.split(\" \"),false);\n endTask = new Thread(rt);\n endTask.start();\n }", "void onTaskComplete(T result);", "public void doAction(){}", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "Future_<V> submit(Callable_<V> task);", "<T> AsyncResult<T> startProcess(Callable<T> task, AsyncCallback<T> callback);", "public interface ActionCompletedReceiver {\n /** Receives a completed action. */\n void actionCompleted(ActionLookupData actionLookupData);\n /** Notes that an action has started, giving the key. */\n void noteActionEvaluationStarted(ActionLookupData actionLookupData, Action action);\n }", "@FunctionalInterface\npublic interface TaskWithoutResult {\n\n /**\n * The job that this task will accomplish\n *\n * @return\n */\n void completeJob();\n}", "interface AsyncTaskCompleteListener<T> {\n\n /**\n * Invoked when the AsyncTask has completed its execution.\n * @param result The resulting object from the AsyncTask.\n */\n void onTaskComplete(T result);\n}", "public interface TaskLoadedCallback {\n void onTaskDone(Object... values);\n}", "public interface TaskLoadedCallback {\n void onTaskDone(Object... values);\n}", "@Override\n public void execute() {\n Task<Void> task = new Task<Void>() {\n @Override\n protected Void call() throws Exception {\n exportData();\n return null;\n }\n\n @Override\n protected void succeeded(){\n callback.onSuccess();\n super.succeeded();\n }\n\n @Override\n protected void failed(){\n callback.onFail(this.getException());\n super.failed();\n }\n };\n new Thread(task).start();\n }", "public interface Task {\n public void run(Object o);\n}", "public interface TaskInterface { // 효율성을 높이기위해 interface 사용\n public String getUrl(); // interface 라서 public을 쓸 필요가 없음\n public void postExecute(String result);\n}", "interface ITask {\r\n\tabstract void Init();\r\n\r\n\tabstract void Run();\r\n\r\n\tabstract void Execute();\r\n\r\n\tabstract void Change(boolean value) throws Exception;\r\n\r\n\tabstract void Change(double value) throws Exception;\r\n\r\n\tabstract boolean IsButton();\r\n}", "void handleTask(ITaskType pTaskType, Object pParam) throws IllegalArgumentException;" ]
[ "0.7990355", "0.64939094", "0.6373701", "0.6274566", "0.62314624", "0.61196667", "0.60955167", "0.60533834", "0.60265493", "0.600362", "0.59797895", "0.5970449", "0.5962053", "0.5929216", "0.592635", "0.58868444", "0.58312845", "0.58270025", "0.5817424", "0.57872945", "0.5770148", "0.57558113", "0.574868", "0.57402664", "0.5739412", "0.57239914", "0.57215536", "0.57134914", "0.5710274", "0.5685963", "0.5670886", "0.5665122", "0.566405", "0.5661851", "0.5660284", "0.5658319", "0.5645329", "0.56358844", "0.56358516", "0.5631481", "0.562333", "0.56224126", "0.56223387", "0.56208485", "0.56190884", "0.5612485", "0.5606515", "0.5602713", "0.55972457", "0.5595633", "0.559385", "0.55912405", "0.5582054", "0.55801654", "0.5579993", "0.55741614", "0.5567986", "0.55632484", "0.55578756", "0.55471116", "0.55403215", "0.55403215", "0.5539947", "0.5539947", "0.55373347", "0.5536007", "0.55329436", "0.5518228", "0.5509411", "0.550899", "0.55013573", "0.54944247", "0.5493209", "0.54924214", "0.5485684", "0.5484517", "0.5484517", "0.5484517", "0.5474849", "0.54724294", "0.54707223", "0.54627866", "0.5457389", "0.5454362", "0.5436303", "0.54334724", "0.5405096", "0.5401104", "0.5398093", "0.53813595", "0.537784", "0.53713906", "0.53673494", "0.5350727", "0.5345811", "0.5345811", "0.5343318", "0.53419584", "0.53353804", "0.53334737", "0.5332025" ]
0.0
-1
Retrieve a list of the component's coupon periods
public java.util.List<org.drip.analytics.cashflow.CompositePeriod> periods() { return _lsPeriod; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Period> getPeriods() throws PeriodNotFoundException;", "public java.util.List<org.drip.analytics.cashflow.CompositePeriod> cashFlowPeriod()\n\t{\n\t\treturn _lsPeriod;\n\t}", "@Override\n @Cacheable(value=AccountingPeriod.CACHE_NAME, key=\"'{getOpenAccountingPeriods}'\")\n public Collection<AccountingPeriod> getOpenAccountingPeriods() {\n HashMap<String,Object> map = new HashMap<String,Object>();\n map.put(OLEConstants.ACCOUNTING_PERIOD_ACTIVE_INDICATOR_FIELD, Boolean.TRUE);\n\n return businessObjectService.findMatchingOrderBy(AccountingPeriod.class, map, OLEPropertyConstants.ACCTING_PERIOD_UNIV_FISCAL_PERIOD_END_DATE, true);\n }", "java.util.List<hr.client.appuser.CouponCenter.AppCoupon> \n getCouponListList();", "List<SalesConciliation> getSalesConciliation(Company company, Date startDate, Date endDate) throws Exception;", "public List<CouponData> getExpiredCouponList() {\n LocalDateTime currentDate = LocalDateTime.now();\n\n Optional<List<CouponData>> couponDataList = couponDataJpaRepository.findExpiredCoupon(currentDate);\n\n couponDataList.orElseThrow(()\n -> new CommonException(CommonResultCode.NO_DATA));\n\n return couponDataList.get();\n }", "public DaysAdjustment getExCouponPeriod() {\n return exCouponPeriod;\n }", "public org.drip.analytics.cashflow.CompositePeriod lastPeriod()\n\t{\n\t\tjava.util.List<org.drip.analytics.cashflow.CompositePeriod> lsCouponPeriod = periods();\n\n\t\treturn lsCouponPeriod.get (lsCouponPeriod.size() - 1);\n\t}", "public List<String> getDistrictEntitlementPeriod() {\n\t\treturn stateEqualMasterDao.getElementValueList(\"DIST_ENTL_CALC_PERIOD\");\n\t}", "public Map<String, List<TimePeriodModel>> getAllTimePeriods();", "private Periodo getPeriodoCorte() {\n String valor = parametrosDao.obtenerTodosParametros().get(\"integrador.periodo.arranque\");\r\n\r\n return Periodo.parse(valor, \"yyyyMM\");\r\n }", "@Override\n\t/** Returns all Coupons of selected Company as an array list */\n\tpublic Collection<Coupon> getCouponsByCompany(int compID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\t\t// Create list object to fill it later with Coupons\n\t\tCollection<Coupon> colCoup = new ArrayList<>();\n\n\t\ttry {\n\t\t\t// Defining SQL string to retrieve Coupons via prepared statement\n\t\t\tString getCouponsByCompanySQL = \"select * from coupon where id in (select couponid from compcoupon where companyid = ?)\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(getCouponsByCompanySQL);\n\t\t\t// Set Company ID variable that method received into prepared\n\t\t\t// statement\n\t\t\tpstmt.setInt(1, compID);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute manipulations\n\t\t\tResultSet resCoup = pstmt.executeQuery();\n\t\t\t// While there is result line in resCoup do lines below\n\t\t\twhile (resCoup.next()) {\n\t\t\t\t// Creating Coupon object to fill it later with data from SQL\n\t\t\t\t// query result and for method to add it to the list and return\n\t\t\t\t// it afterwards\n\t\t\t\tCoupon coupon = new Coupon();\n\t\t\t\t// Set Coupon attributes according to the results in the\n\t\t\t\t// ResultSet\n\t\t\t\tcoupon.setId(resCoup.getInt(\"id\"));\n\t\t\t\tcoupon.setTitle(resCoup.getString(\"title\"));\n\t\t\t\tcoupon.setStart_date(resCoup.getDate(\"start_date\"));\n\t\t\t\tcoupon.setEnd_date(resCoup.getDate(\"end_date\"));\n\t\t\t\tcoupon.setExpired(resCoup.getString(\"expired\"));\n\t\t\t\tcoupon.setType(resCoup.getString(\"type\"));\n\t\t\t\tcoupon.setMessage(resCoup.getString(\"message\"));\n\t\t\t\tcoupon.setPrice(resCoup.getInt(\"price\"));\n\t\t\t\tcoupon.setImage(resCoup.getString(\"image\"));\n\t\t\t\t// Add resulting Coupon to the list\n\t\t\t\tcolCoup.add(coupon);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon retrieval from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon list retrieve has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\n\t\t// Return resulted list of Coupons\n\t\treturn colCoup;\n\t}", "@Override\n\t/**\n\t * Returns all Coupons with end date up to value method received as an array\n\t * list sorted descended\n\t */\n\tpublic Collection<Coupon> getCouponsByDate(Date date, int compID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\t\t// Create list object to fill it later with Coupons\n\t\tCollection<Coupon> colCoup = new ArrayList<>();\n\n\t\ttry {\n\t\t\t// Defining SQL string to retrieve Coupons via prepared statement\n\t\t\tString getCouponsByEndDateSQL = \"select * from coupon where end_date < ? and id in(select couponid from compcoupon where companyid = ?) order by end_date desc\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(getCouponsByEndDateSQL);\n\t\t\t// Set date variable that method received into prepared statement\n\t\t\tpstmt.setDate(1, getSqlDate(date));\n\t\t\tpstmt.setInt(2, compID);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute manipulations\n\t\t\tResultSet resCoup = pstmt.executeQuery();\n\t\t\t// While there is result line in resCoup do lines below\n\t\t\twhile (resCoup.next()) {\n\t\t\t\t// Creating Coupon object to fill it later with data from SQL\n\t\t\t\t// query result and for method to add it to the list and return\n\t\t\t\t// it afterwards\n\t\t\t\tCoupon coupon = new Coupon();\n\t\t\t\t// Set Coupon attributes according to the results in the\n\t\t\t\t// ResultSet\n\t\t\t\tcoupon.setId(resCoup.getInt(\"id\"));\n\t\t\t\tcoupon.setTitle(resCoup.getString(\"title\"));\n\t\t\t\tcoupon.setStart_date(resCoup.getDate(\"start_date\"));\n\t\t\t\tcoupon.setEnd_date(resCoup.getDate(\"end_date\"));\n\t\t\t\tcoupon.setExpired(resCoup.getString(\"expired\"));\n\t\t\t\tcoupon.setType(resCoup.getString(\"type\"));\n\t\t\t\tcoupon.setMessage(resCoup.getString(\"message\"));\n\t\t\t\tcoupon.setPrice(resCoup.getInt(\"price\"));\n\t\t\t\tcoupon.setImage(resCoup.getString(\"image\"));\n\t\t\t\t// Add resulting Coupon to the list\n\t\t\t\tcolCoup.add(coupon);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon retrieval from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon list retrieve has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\n\t\t// Return resulted list of Coupons\n\t\treturn colCoup;\n\t}", "public java.lang.String couponCurrency()\n\t{\n\t\treturn _lsPeriod.get (_lsPeriod.size() - 1).couponCurrency();\n\t}", "@Override\n\tpublic List<BeanCoupon> loadAllSystemCoupons() throws BaseException {\n\t\tList< BeanCoupon > result=new ArrayList<BeanCoupon>();\n\t\t\n\t\tConnection conn=null;\n\t\ttry {\n\t\t\tconn=DBUtil.getConnection();\n\t\t\tString sql=\"select * from coupon where coupon_end_time > now()\";\n\t\t\tjava.sql.PreparedStatement pst=conn.prepareStatement(sql);\n\t\t\tjava.sql.ResultSet rs=pst.executeQuery();\n\t\t\twhile(rs.next()) {\n\t\t\t\tBeanCoupon cp=new BeanCoupon();\n\t\t\t\tcp.setCoupon_id(rs.getString(1));\n\t\t\t\tcp.setCoupon_content(rs.getString(2));\n\t\t\t\tcp.setCoupon_fit_money(rs.getFloat(3));\n\t\t\t\tcp.setCoupon_price(rs.getFloat(4));\n\t\t\t\tcp.setCoupon_start_time(rs.getTimestamp(5));\n\t\t\t\tcp.setCoupon_end_time(rs.getTimestamp(6));\n\t\t\t\tresult.add(cp);\n\t\t\t}\n\t\t\t\n\t\t\treturn result;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DbException(e);\n\t\t}\n\t\tfinally{\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t\t\t\t\n\t}", "@Override\n\t/** Returns all Coupons as an array list */\n\tpublic Collection<Coupon> getAllCoupons() throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\t\t// Create list object to fill it later with Coupons\n\t\tCollection<Coupon> colCoup = new ArrayList<>();\n\n\t\ttry {\n\t\t\t// Defining SQL string to retrieve all Coupons via prepared\n\t\t\t// statement\n\t\t\tString getAllCouponsSQL = \"select * from coupon\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(getAllCouponsSQL);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute manipulations\n\t\t\tResultSet resCoup = pstmt.executeQuery();\n\t\t\t// While there is result line in resCoup do lines below\n\t\t\twhile (resCoup.next()) {\n\t\t\t\t// Creating Coupon object to fill it later with data from SQL\n\t\t\t\t// query result and for method to add it to the list and return\n\t\t\t\t// it afterwards\n\t\t\t\tCoupon coupon = new Coupon();\n\t\t\t\t// Set Coupon attributes according to the results in the\n\t\t\t\t// ResultSet\n\t\t\t\tcoupon.setId(resCoup.getInt(\"id\"));\n\t\t\t\tcoupon.setTitle(resCoup.getString(\"title\"));\n\t\t\t\tcoupon.setStart_date(resCoup.getDate(\"start_date\"));\n\t\t\t\tcoupon.setEnd_date(resCoup.getDate(\"end_date\"));\n\t\t\t\tcoupon.setExpired(resCoup.getString(\"expired\"));\n\t\t\t\tcoupon.setType(resCoup.getString(\"type\"));\n\t\t\t\tcoupon.setMessage(resCoup.getString(\"message\"));\n\t\t\t\tcoupon.setPrice(resCoup.getInt(\"price\"));\n\t\t\t\tcoupon.setImage(resCoup.getString(\"image\"));\n\t\t\t\t// Add resulting Coupon to the list\n\t\t\t\tcolCoup.add(coupon);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon retrieval from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon list retrieve has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\n\t\t// Return resulted list of Coupons\n\t\treturn colCoup;\n\t}", "hr.client.appuser.CouponCenter.AppCoupon getCouponList(int index);", "public List<Map<String, Object>> getSubscriptionsDueForBilling();", "@NoProxy\n public List<BwFreeBusyComponent> getFreeBusyPeriods() {\n return freeBusyPeriods;\n }", "List<Coupon> findByOrderByStartDateDesc();", "PeriodCountCalculator<E> getPeriodCountCalculator();", "public List<GLJournalApprovalVO> getAllPeriod(String ClientId, String FromDate, String ToDate) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n sqlQuery = \" SELECT c_period.c_period_id AS ID,to_char(c_period.startdate,'dd-MM-YYYY'),c_period.name,c_period.periodno FROM c_period WHERE \"\n + \" AD_CLIENT_ID IN (\" + ClientId\n + \") and c_period.startdate>=TO_DATE(?) and c_period.enddate<=TO_DATE(?) order by c_period.startdate \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, FromDate);\n st.setString(2, ToDate);\n log4j.debug(\"period:\" + st.toString());\n rs = st.executeQuery();\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setId(rs.getString(1));\n VO.setStartdate(rs.getString(2));\n VO.setName(rs.getString(3));\n VO.setPeriod(rs.getString(4));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }", "List<ServiceChargeSubscription> getSCPackageList() throws EOTException;", "public Collection<Coupon> getCompanyCoupons() {\n return couponRepo.findCouponsByCompanyID(this.companyID);\n }", "public int getPeriod() {\n return period;\n }", "@Transactional(readOnly = true) \n public List<PtoPeriodDTO> findAll() {\n log.debug(\"Request to get all PtoPeriods\");\n List<PtoPeriodDTO> result = ptoPeriodRepository.findAll().stream()\n .map(ptoPeriodMapper::ptoPeriodToPtoPeriodDTO)\n .collect(Collectors.toCollection(LinkedList::new));\n\n if(result.isEmpty()){\n \tresult.add(initialPtoPeriod());\n }\n \n return result;\n }", "@GetMapping\n public List<Season_Period> findAll(){\n return periodService.findAll();\n }", "public Period getPeriod() {\n return period;\n }", "int getPeriod();", "double getPeriod();", "protected int getNumberOfPeriods()\n {\n return 2;\n }", "List<Consumption> listAll();", "public List<GLJournalApprovalVO> getPeriod(String OrgId, String ClientId, String PeriodId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n sqlQuery = \" SELECT C_PERIOD_ID as id, ((CASE C_PERIOD.isActive WHEN 'N' THEN '**' ELSE '' END) || C_PERIOD.Name) as name FROM C_PERIOD \"\n + \" left join c_year yr on yr.c_year_id = C_PERIOD.c_year_id \"\n + \"\t WHERE C_PERIOD.AD_Org_ID IN (\" + OrgId + \") AND C_PERIOD.AD_Client_ID IN(\"\n + ClientId + \") AND (C_PERIOD.isActive = 'Y' OR C_PERIOD.C_PERIOD_ID = ? )\"\n + \" ORDER BY yr.year , periodno \";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, PeriodId);\n rs = st.executeQuery();\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setPeriod(rs.getString(1));\n VO.setPeriodName(rs.getString(2));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n return list;\n }\n return list;\n }", "public List<Contract> getHealthContracts(){\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(\"SELECT * FROM CONTRACT WHERE SERVICETYPE=1 AND \"\n\t\t\t\t\t+ \"(DATEENDING >= NOW() OR DATEENDING IS NULL)\", new ContractRowMapper());\n\t\t}catch (EmptyResultDataAccessException e){\n\t\t\treturn new ArrayList<Contract>();\n\t\t}\n\t}", "@Override\n\t/** Returns all Coupons of selected type as an array list */\n\tpublic Collection<Coupon> getCouponsByType(String coupType, int compID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\t\t// Create list object to fill it later with Coupons\n\t\tCollection<Coupon> colCoup = new ArrayList<>();\n\n\t\ttry {\n\t\t\t// Defining SQL string to retrieve Coupons via prepared statement\n\t\t\tString getCouponsByTypeSQL = \"select * from coupon where type = ? and id in(select couponid from compcoupon where companyid = ?)\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(getCouponsByTypeSQL);\n\t\t\t// Set Coupon object type to coupType variable that method received\n\t\t\tpstmt.setString(1, coupType);\n\t\t\tpstmt.setInt(2, compID);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute manipulations\n\t\t\tResultSet resCoup = pstmt.executeQuery();\n\t\t\t// While there is result line in resCoup do lines below\n\t\t\twhile (resCoup.next()) {\n\t\t\t\t// Creating Coupon object to fill it later with data from SQL\n\t\t\t\t// query result and for method to add it to the list and return\n\t\t\t\t// it afterwards\n\t\t\t\tCoupon coupon = new Coupon();\n\t\t\t\t// Set Coupon attributes according to the results in the\n\t\t\t\t// ResultSet\n\t\t\t\tcoupon.setId(resCoup.getInt(\"id\"));\n\t\t\t\tcoupon.setTitle(resCoup.getString(\"title\"));\n\t\t\t\tcoupon.setStart_date(resCoup.getDate(\"start_date\"));\n\t\t\t\tcoupon.setEnd_date(resCoup.getDate(\"end_date\"));\n\t\t\t\tcoupon.setExpired(resCoup.getString(\"expired\"));\n\t\t\t\tcoupon.setType(resCoup.getString(\"type\"));\n\t\t\t\tcoupon.setMessage(resCoup.getString(\"message\"));\n\t\t\t\tcoupon.setPrice(resCoup.getInt(\"price\"));\n\t\t\t\tcoupon.setImage(resCoup.getString(\"image\"));\n\t\t\t\t// Add resulting Coupon to the list\n\t\t\t\tcolCoup.add(coupon);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon retrieval from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon list retrieve has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\n\t\t// Return resulted list of Coupons\n\t\treturn colCoup;\n\t}", "public List<CXPFactura> buscarFacturas(Periodo p) {\r\n\t\treturn getFacturaDao().buscarFacturas(p);\r\n\t}", "@Override\n\t/**\n\t * Returns all Coupons with price less than value method received as an\n\t * array list sorted descended\n\t */\n\tpublic Collection<Coupon> getCouponsByPrice(int price, int compID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\t\t// Create list object to fill it later with Coupons\n\t\tCollection<Coupon> colCoup = new ArrayList<>();\n\n\t\ttry {\n\t\t\t// Defining SQL string to retrieve Coupons via prepared statement\n\n\t\t\tString getCouponsByPriceSQL = \"select * from coupon where price < ? and id in(select couponid from compcoupon where companyid = ?) order by price desc\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(getCouponsByPriceSQL);\n\t\t\t// Set price variable that method received into prepared statement\n\t\t\tpstmt.setInt(1, price);\n\t\t\tpstmt.setInt(2, compID);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute manipulations\n\t\t\tResultSet resCoup = pstmt.executeQuery();\n\t\t\t// While there is result line in resCoup do lines below\n\t\t\twhile (resCoup.next()) {\n\t\t\t\t// Creating Coupon object to fill it later with data from SQL\n\t\t\t\t// query result and for method to add it to the list and return\n\t\t\t\t// it afterwards\n\t\t\t\tCoupon coupon = new Coupon();\n\t\t\t\t// Set Coupon attributes according to the results in the\n\t\t\t\t// ResultSet\n\t\t\t\tcoupon.setId(resCoup.getInt(\"id\"));\n\t\t\t\tcoupon.setTitle(resCoup.getString(\"title\"));\n\t\t\t\tcoupon.setStart_date(resCoup.getDate(\"start_date\"));\n\t\t\t\tcoupon.setEnd_date(resCoup.getDate(\"end_date\"));\n\t\t\t\tcoupon.setExpired(resCoup.getString(\"expired\"));\n\t\t\t\tcoupon.setType(resCoup.getString(\"type\"));\n\t\t\t\tcoupon.setMessage(resCoup.getString(\"message\"));\n\t\t\t\tcoupon.setPrice(resCoup.getInt(\"price\"));\n\t\t\t\tcoupon.setImage(resCoup.getString(\"image\"));\n\t\t\t\t// Add resulting Coupon to the list\n\t\t\t\tcolCoup.add(coupon);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon retrieval from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon list retrieve has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\n\t\t// Return resulted list of Coupons\n\t\treturn colCoup;\n\t}", "public String getPeriod() {\n return period;\n }", "public int getPeriod()\r\n\t{\r\n\t\treturn period;\r\n\t}", "private void preenchePeriodo() {\n PeriodoDAO pDAO = new PeriodoDAO();\n for (int i = 0; i < pDAO.listar().size(); i++) {\n cbPeriodo.addItem(pDAO.listar().get(i).getDescricao());\n }\n }", "public Collection<Coupon> getCouponByDate(Date date) throws DbException;", "public org.drip.analytics.cashflow.CompositePeriod firstPeriod()\n\t{\n\t\treturn periods().get (0);\n\t}", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Maps the coupon value to a key-value list of that coupons attributes.\")\n\n public Object getCoupons() {\n return coupons;\n }", "public java.util.List<hr.client.appuser.CouponCenter.AppCoupon> getCouponListList() {\n return couponList_;\n }", "@Override\n\tpublic List<CsclPollsChoice> getCsclPollsChoices(int start, int end) {\n\t\treturn csclPollsChoicePersistence.findAll(start, end);\n\t}", "public java.util.List<hr.client.appuser.CouponCenter.AppCoupon.Builder> \n getCouponListBuilderList() {\n return getCouponListFieldBuilder().getBuilderList();\n }", "List<Coupon> findByEndDateBefore(Date date);", "public Collection<Coupon> getAllPurchasedCoupons() {\r\n\t\treturn db.getCustomer(cust).getCouponHistory();\r\n\t}", "public String getPeriod() {\n return this.period;\n }", "List<ChartBean> returnEmployeeCommunityServicesByDepartmentInstituteCenter();", "public Collection<Coupon> getAllCoupon() throws DbException;", "int getCouponListCount();", "public List getCalendarios(Map criteria);", "public List<Company> getCompanys() {\n\t\treturn companyDao.findAll();\n//\t\treturn companies;\n\t}", "@RequestMapping(path=\"/company/companyStockPrice\")\r\n\t\tpublic List<CompanyStockPrice> getCompanyStockPriceDetails(@RequestBody CompanyPeriodModel companyPeriod){\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tList<CompanyStockPrice> companyStockPriceList = null;\r\n\t\t\tif(companyPeriod.getPeriodicity()>0) {\r\n\t\t\t\t LocalDate currentDate = LocalDate.now();\r\n\t\t\t\t companyPeriod.setPeriodToDate(Date.from(currentDate.atStartOfDay(ZoneId.systemDefault()).toInstant()));\r\n\t\t\t\t companyPeriod.setPeriodFromDate(Date.from(currentDate.minusDays(companyPeriod.getPeriodicity()).atStartOfDay(ZoneId.systemDefault()).toInstant()));\t\r\n\t\t\t}\r\n\t\t\tif(companyPeriod.getCompanyList()!=null && companyPeriod.getPeriodFromDate()!=null && companyPeriod.getPeriodToDate()!=null) {\r\n\t\t\t\t\r\n\t\t\t\tcompanyStockPriceList = companyStockPriceService.getCompanyDetails(companyPeriod);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\treturn companyStockPriceList;\r\n\t\t}", "public Collection<Coupon> getCouponByType(CouponType type) throws DbException;", "public final ArrayList<ProductCoupon> getCouponList() {\n return (ArrayList) this.couponList$delegate.getValue();\n }", "org.hl7.fhir.Period getAppliesPeriod();", "public double getPeriod() {\n return period;\n }", "public List<Company> companies() {\n StandardServiceRegistry registry = new StandardServiceRegistryBuilder().configure().build();\n SessionFactory sessionFactory = null;\n try {\n\n sessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n Session session = sessionFactory.getCurrentSession();\n session.beginTransaction();\n List<Company> listOfCompanies = session.createQuery(\"FROM Company\").getResultList();\n session.getTransaction().commit();\n return listOfCompanies;\n\n } finally {\n if (sessionFactory != null) {\n sessionFactory.close();\n }\n }\n }", "public List<Contract> getCleaningContracts(){\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(\"SELECT * FROM CONTRACT WHERE SERVICETYPE=2 AND\"\n\t\t\t\t\t+ \"(DATEENDING >= NOW() OR DATEENDING IS NULL)\", new ContractRowMapper());\n\t\t}catch (EmptyResultDataAccessException e){\n\t\t\treturn new ArrayList<Contract>();\n\t\t}\n\t}", "public List<HistoriaLaboral> getHistoriasSanciones(Emp emp);", "@Override\n\tpublic List<BeanCoupon> loadAllUserCoupons(BeanUser u) throws BaseException {\n\t\tList< BeanCoupon > result=new ArrayList<BeanCoupon>();\n\t\t\n\t\tConnection conn=null;\n\t\ttry {\n\t\t\n\t\t\tconn=DBUtil.getConnection();\n\t\t\tString sql=\"SELECT * FROM coupon WHERE coupon_id in\"\n\t\t\t\t\t+ \"(SELECT coupon_id FROM user_coupon WHERE user_id=?) \"\n\t\t\t\t\t+ \"and coupon_end_time > now()\";\n\t\t\tjava.sql.PreparedStatement pst=conn.prepareStatement(sql);\n\t\t\tpst.setString(1, u.getUser_id());\n\t\t\tjava.sql.ResultSet rs=pst.executeQuery();\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\tBeanCoupon cp=new BeanCoupon();\n\t\t\t\tcp.setCoupon_id(rs.getString(1));\n\t\t\t\tcp.setCoupon_content(rs.getString(2));\n\t\t\t\tcp.setCoupon_fit_money(rs.getFloat(3));\n\t\t\t\tcp.setCoupon_price(rs.getFloat(4));\n\t\t\t\tcp.setCoupon_start_time(rs.getTimestamp(5));\n\t\t\t\tcp.setCoupon_end_time(rs.getTimestamp(6));\n\t\t\t\tresult.add(cp);\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\tthrow new DbException(e);\n\t\t}\n\t\tfinally{\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t\treturn result;\t\n\t}", "public java.lang.String couponDC()\n\t{\n\t\treturn _lsPeriod.get (0).periods().get (0).couponDC();\n\t}", "public Long getPeriod() {\n return this.Period;\n }", "public List<LookUpDetailJson> getPayCycleList() {\r\n\t\tList<LookUpDetailJson> lookUpDetailJsonList = null;\r\n\t\ttry {\r\n\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\tInteger currentMonth = cal.get(Calendar.MONTH);\r\n\t\t\tList<Integer> monthsRange = new ArrayList<Integer>();\r\n\t\t\tfor (int i = currentMonth, j = 0; j < 3; j++) {\r\n\t\t\t\tmonthsRange.add(i--);\r\n\t\t\t\tif (i < 0) {\r\n\t\t\t\t\ti = 11;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmonthsRange.add(currentMonth + 1);\r\n\r\n\t\t\tList<LookUpDetails> lookUpDetailList = lookUpRepository.getPayCycleList(monthsRange);\r\n\t\t\tif (lookUpDetailList != null && lookUpDetailList.size() > 0) {\r\n\t\t\t\tlookUpDetailJsonList = new ArrayList<LookUpDetailJson>();\r\n\t\t\t\tfor (LookUpDetails lookUpDetails : lookUpDetailList) {\r\n\t\t\t\t\tlookUpDetailJsonList.add(TransformDomainToJson.getLookUpDetailJson(lookUpDetails));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tLOG.error(\"Error at getPayCycleList() in LookUpService:\" + e.getMessage());\r\n\t\t}\r\n\t\treturn lookUpDetailJsonList;\r\n\t}", "public TimePeriod getPeriod();", "public int getChannelPeriod() {\n return channelPeriod;\n }", "public List<HistoriaLaboral> getHistoriasQueAfectanDesignacion(Emp emp);", "public int getConfiguredPeriod() {\n return configuredPeriod;\n }", "public List<CMCourse> getCMCourses(String startsWith) {\r\n\tlong start = System.currentTimeMillis();\r\n\tlog.debug(\"getCMCourses that starts with \" + startsWith);\r\n\tList<CMCourse> cmCourses = new ArrayList<CMCourse>();\r\n\tSet<CourseSet> courseSets = courseManagementService.getCourseSets();\r\n\tSet<CourseOffering> courseOffs = null;\r\n\tSet<Section> sections = null;\r\n\tCourseSet courseSet = null;\r\n\tCourseOffering courseOff = null;\r\n\tString courseOffEid = null;\r\n\tSection courseS = null;\r\n\tif (courseSets == null)\r\n\t return null;\r\n\tList<AcademicSession> acadSessions =\r\n\t\tcourseManagementService.getCurrentAcademicSessions();\r\n\tDate endDate = null;\r\n\tDate startDate = null;\r\n\r\n\tfor (AcademicSession acadSession : acadSessions) {\r\n\r\n\t for (Iterator<CourseSet> cSets = courseSets.iterator(); cSets\r\n\t\t .hasNext();) {\r\n\t\tcourseSet = cSets.next();\r\n\t\tcourseOffs =\r\n\t\t\tcourseManagementService.findCourseOfferings(\r\n\t\t\t\tcourseSet.getEid(), acadSession.getEid());\r\n\t\tfor (Iterator<CourseOffering> cOffs = courseOffs.iterator(); cOffs\r\n\t\t\t.hasNext();) {\r\n\t\t courseOff = cOffs.next();\r\n\t\t courseOffEid = courseOff.getEid();\r\n\t\t sections =\r\n\t\t\t courseManagementService.getSections(courseOffEid);\r\n\t\t if (courseOffEid.startsWith(startsWith)) {\r\n\t\t\tfor (Iterator<Section> cSs = sections.iterator(); cSs\r\n\t\t\t\t.hasNext();) {\r\n\t\t\t courseS = cSs.next();\r\n\t\t\t String courseTitle =\r\n\t\t\t\t courseManagementService.getCanonicalCourse(\r\n\t\t\t\t\t courseOff.getCanonicalCourseEid())\r\n\t\t\t\t\t .getTitle();\r\n\t\t\t String courseSId = courseS.getEid();\r\n\t\t\t String session =\r\n\t\t\t\t courseOff.getAcademicSession().getTitle();\r\n\t\t\t String sigle = courseOff.getCanonicalCourseEid();\r\n\t\t\t String section =\r\n\t\t\t\t (SHARABLE_SECTION.equals(courseSId\r\n\t\t\t\t\t .substring(courseSId.length() - 2,\r\n\t\t\t\t\t\t courseSId.length()))) ? SHARABLE_SECTION\r\n\t\t\t\t\t : courseSId.substring(\r\n\t\t\t\t\t\t courseSId.length() - 3,\r\n\t\t\t\t\t\t courseSId.length());\r\n\r\n\t\t\t String instructorsString = \"\";\r\n\t\t\t int studentNumber = -1;\r\n\t\t\t EnrollmentSet enrollmentSet =\r\n\t\t\t\t courseS.getEnrollmentSet();\r\n\t\t\t if (enrollmentSet != null) {\r\n\t\t\t\t// Retrieve official instructors\r\n\t\t\t\tSet<String> instructors =\r\n\t\t\t\t\tenrollmentSet.getOfficialInstructors();\r\n\t\t\t\tUser user = null;\r\n\t\t\t\tString name = null;\r\n\t\t\t\tfor (String instructor : instructors) {\r\n\t\t\t\t try {\r\n\t\t\t\t\tuser =\r\n\t\t\t\t\t\tuserDirectoryService\r\n\t\t\t\t\t\t\t.getUserByEid(instructor);\r\n\t\t\t\t\tname = user.getDisplayName();\r\n\t\t\t\t\tinstructorsString += name + \" & \";\r\n\t\t\t\t } catch (UserNotDefinedException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\t// retrieve student number\r\n\t\t\t\tSet<Enrollment> enrollments =\r\n\t\t\t\t\tcourseManagementService\r\n\t\t\t\t\t\t.getEnrollments(enrollmentSet\r\n\t\t\t\t\t\t\t.getEid());\r\n\t\t\t\tif (enrollments != null)\r\n\t\t\t\t studentNumber = enrollments.size();\r\n\t\t\t }\r\n\t\t\t if (!instructorsString.equals(\"\"))\r\n\t\t\t\tinstructorsString =\r\n\t\t\t\t\tinstructorsString.substring(0,\r\n\t\t\t\t\t\tinstructorsString.length() - 3);\r\n\r\n\t\t\t CMCourse cmCourse = new CMCourse();\r\n\t\t\t cmCourse.setId(courseS.getEid());\r\n\t\t\t cmCourse.setSession(session);\r\n\t\t\t cmCourse.setName(courseTitle);\r\n\t\t\t cmCourse.setSigle(sigle);\r\n\t\t\t cmCourse.setSection(section);\r\n\t\t\t cmCourse.setInstructor(instructorsString);\r\n\t\t\t cmCourse.setStudentNumber(studentNumber);\r\n\t\t\t cmCourses.add(cmCourse);\r\n\t\t\t}\r\n\t\t }\r\n\t\t}\r\n\t }\r\n\t}\r\n\tlog.debug(\"getCMCourses \" + elapsed(start) + \" for \" + cmCourses.size()\r\n\t\t+ \" courses\");\r\n\treturn cmCourses;\r\n }", "List<Coupon> findByCompanyId(int companyId);", "public java.util.List<hr.client.appuser.CouponCenter.AppCoupon> getCouponListList() {\n if (couponListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(couponList_);\n } else {\n return couponListBuilder_.getMessageList();\n }\n }", "public int getHowManyInPeriod();", "List<CurrencyDTO> getCurrencies();", "public ArrayList<Coupon> getCompanyCoupons() throws SQLException {\r\n\t\tArrayList<Coupon> coupons = couponsDAO.getAllCoupons();\r\n\t\tArrayList<Coupon> coups = new ArrayList<>();\r\n\t\tfor (Coupon coupon : coupons) {\r\n\t\t\tif (companyID == coupon.getCompanyID())\r\n\t\t\t\tcoups.add(coupon);\r\n\t\t}\r\n\t\treturn coups;\r\n\t}", "public DataElementChartResult generateChartDataPeriodWise( List<Date> selStartPeriodList,\n List<Date> selEndPeriodList, List<String> periodNames, List<DataElement> dataElementList,\n List<DataElementCategoryOptionCombo> decocList, OrganisationUnit orgUnit )\n throws Exception\n {\n DataElementChartResult dataElementChartResult;\n\n String[] series = new String[dataElementList.size()];\n String[] categories = new String[selStartPeriodList.size()];\n Double[][] data = new Double[dataElementList.size()][selStartPeriodList.size()];\n String chartTitle = \"OrganisationUnit : \" + orgUnit.getShortName();\n String xAxis_Title = \"Time Line\";\n String yAxis_Title = \"Value\";\n\n int serviceCount = 0;\n\n for ( DataElement dataElement : dataElementList )\n {\n DataElementCategoryOptionCombo decoc;\n\n DataElementCategoryCombo dataElementCategoryCombo = dataElement.getCategoryCombo();\n\n List<DataElementCategoryOptionCombo> optionCombos = new ArrayList<DataElementCategoryOptionCombo>(\n dataElementCategoryCombo.getOptionCombos() );\n\n if ( deSelection.equalsIgnoreCase( OPTIONCOMBO ) )\n {\n decoc = decocList.get( serviceCount );\n\n series[serviceCount] = dataElement.getName() + \" : \" + decoc.getName();\n \n CaseAggregationCondition caseAggregationCondition = caseAggregationConditionService\n .getCaseAggregationCondition( dataElement, decoc );\n\n if ( caseAggregationCondition == null )\n {\n selectedStatus.add( \"no\" );\n }\n else\n {\n selectedStatus.add( \"yes\" );\n }\n\n yseriesList.add( dataElement.getName() + \" : \" + decoc.getName() );\n }\n else\n {\n decoc = dataElementCategoryService.getDefaultDataElementCategoryOptionCombo();\n series[serviceCount] = dataElement.getName();\n\n CaseAggregationCondition caseAggregationCondition = caseAggregationConditionService\n .getCaseAggregationCondition( dataElement, decoc );\n\n if ( caseAggregationCondition == null )\n {\n selectedStatus.add( \"no\" );\n }\n else\n {\n selectedStatus.add( \"yes\" );\n }\n\n yseriesList.add( dataElement.getName() );\n }\n\n int periodCount = 0;\n for ( Date startDate : selStartPeriodList )\n {\n Date endDate = selEndPeriodList.get( periodCount );\n String drillDownPeriodName = periodNames.get( periodCount );\n String tempStartDate = format.formatDate( startDate );\n String tempEndDate = format.formatDate( endDate );\n\n categories[periodCount] = periodNames.get( periodCount );\n //PeriodType periodType = periodService.getPeriodTypeByName( periodTypeLB );\n\n String values = orgUnit.getId() + \":\" + dataElement.getId() + \":\" + decoc.getId() + \":\" + periodTypeLB\n + \":\" + tempStartDate + \":\" + tempEndDate;\n selectedValues.add( values );\n\n String drillDownData = orgUnit.getId() + \":\" + \"0\" + \":\" + dataElement.getId() + \":\" + decoc.getId()\n + \":\" + periodTypeLB + \":\" + tempStartDate + \":\" + tempEndDate + \":\" + drillDownPeriodName + \":\"\n + deSelection + \":\" + aggChecked;\n selectedDrillDownData.add( drillDownData );\n\n Double aggDataValue = 0.0;\n \n if ( deSelection.equalsIgnoreCase( OPTIONCOMBO ) )\n {\n //System.out.println( \" Inside deSelection.equalsIgnoreCase( OPTIONCOMBO ) \" );\n if ( aggDataCB != null )\n {\n Double temp = aggregationService.getAggregatedDataValue( dataElement, decoc, startDate,\n endDate, orgUnit );\n if ( temp != null )\n aggDataValue += temp;\n //aggDataValue = temp;\n }\n else\n {\n Collection<Period> periods = periodService.getPeriodsBetweenDates( startDate, endDate );\n for ( Period period : periods )\n {\n DataValue dataValue = dataValueService.getDataValue( orgUnit, dataElement, period, decoc );\n try\n {\n aggDataValue += Double.parseDouble( dataValue.getValue() );\n }\n catch ( Exception e )\n {\n }\n }\n }\n }\n else\n {\n //System.out.println( \" Inside not deSelection.equalsIgnoreCase( OPTIONCOMBO ) \" );\n Iterator<DataElementCategoryOptionCombo> optionComboIterator = optionCombos.iterator();\n while ( optionComboIterator.hasNext() )\n {\n DataElementCategoryOptionCombo decoc1 = (DataElementCategoryOptionCombo) optionComboIterator.next();\n\n if ( aggDataCB != null )\n {\n Double temp = aggregationService.getAggregatedDataValue( dataElement, decoc1, startDate,\n endDate, orgUnit );\n if ( temp != null )\n aggDataValue += temp;\n //aggDataValue = temp;\n }\n else\n {\n Collection<Period> periods = periodService.getPeriodsBetweenDates( startDate, endDate );\n for ( Period period : periods )\n {\n DataValue dataValue = dataValueService.getDataValue( orgUnit, dataElement, period, decoc1 );\n try\n {\n aggDataValue += Double.parseDouble( dataValue.getValue() );\n }\n catch ( Exception e )\n {\n }\n }\n }\n }\n }\n //System.out.println( \" Data is : \" + aggDataValue );\n data[serviceCount][periodCount] = aggDataValue;\n\n if ( dataElement.getType().equalsIgnoreCase( DataElement.VALUE_TYPE_INT ) )\n {\n if ( dataElement.getNumberType().equalsIgnoreCase( DataElement.VALUE_TYPE_INT ) )\n {\n data[serviceCount][periodCount] = Math.round( data[serviceCount][periodCount]\n * Math.pow( 10, 0 ) )\n / Math.pow( 10, 0 );\n }\n else\n {\n data[serviceCount][periodCount] = Math.round( data[serviceCount][periodCount]\n * Math.pow( 10, 1 ) )\n / Math.pow( 10, 1 );\n }\n }\n periodCount++;\n }\n\n serviceCount++;\n }\n dataElementChartResult = new DataElementChartResult( series, categories, data, chartTitle, xAxis_Title,\n yAxis_Title );\n\n return dataElementChartResult;\n }", "List<Book> getBooksFromPeriod(LocalDate from,LocalDate to);", "java.util.List<hr.client.appuser.CouponCenter.ExchangeRecord> \n getExchangeHistoryListList();", "java.util.List<hr.client.appuser.CouponCenter.StreamCouponHistory> \n getStreamCouponHistoryListList();", "public void loadComboBoxPeriod(){\r\n \r\n java.util.Date d = java.sql.Date.valueOf(java.time.LocalDate.now());\r\n //Para cargar un combobox\r\n String period = \"\";\r\n \r\n switch((int)d.getMonth()){\r\n case 1: case 2: case 3: case 0:\r\n period+=1;\r\n break;\r\n case 4: case 5: case 6: case 7:\r\n period+=2;\r\n break;\r\n case 8: case 9: case 10: case 11:\r\n period+=3;\r\n break;\r\n }\r\n period+=\"-\"+(d.getYear()+1900);\r\n this.cmbPeriod.getItems().add(period);\r\n\r\n \r\n cmbPeriod.getSelectionModel().select(\"Period\");\r\n }", "public interface Period {\n\n\tDate getStart();\n\n\tDate getEnd();\n}", "public java.util.Set<vn.com.phuclocbao.entity.CompanyEntity> getCompanies()\n {\n return companies;\n }", "java.util.List<? extends hr.client.appuser.CouponCenter.AppCouponOrBuilder> \n getCouponListOrBuilderList();", "public List<Integer> getSubscriptionIdsDueForBilling();", "@Nullable String getCollectionPeriod();", "@Updatable\n public Integer getPeriod() {\n return period;\n }", "BigInteger getPeriod();", "public List<Contract> getFoodContracts(){\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(\"SELECT * FROM CONTRACT WHERE SERVICETYPE=0 AND \"\n\t\t\t\t\t+ \"(DATEENDING >= NOW() OR DATEENDING IS NULL)\", new ContractRowMapper());\n\t\t}catch (EmptyResultDataAccessException e){\n\t\t\treturn new ArrayList<Contract>();\n\t\t}\n\t}", "List<Company> getCompanyList() throws DAOException ;", "public ArrayList<poolLocation> getCouponList() {\n\n\t\tLoadingDatabasePoolLocation();\n\n\t\tArrayList<poolLocation> temp_CouponList = new ArrayList<poolLocation>();\n\t\t// remove coupons\n\t\tfor (poolLocation location : POOL_LIST) {\n\t\t\tif ((location.getTitle().equals(coupon1ID)\n\t\t\t\t\t|| location.getTitle().equals(coupon2ID) || location\n\t\t\t\t\t.getTitle().equals(coupon3ID))\n\t\t\t\t\t&& location.getIsCouponUsed() == true)\t\t\t\t\t\t// only show coupons which are bought from the mall\n\t\t\t\ttemp_CouponList.add(location);\n\t\t}\n\n\t\treturn temp_CouponList;\n\t\t// return POOL_LIST;\n\t}", "@GetMapping(\"/sys-coupon-classifies\")\n @Timed\n public List<SysCouponClassify> getAllSysCouponClassifies() {\n log.debug(\"REST request to get all SysCouponClassifies\");\n return sysCouponClassifyService.findAll();\n }", "public List<PeriodoLetivo> listAllActive() {\n EntityManager em = super.entityManager;\n CriteriaBuilder cb = em.getCriteriaBuilder();\n CriteriaQuery<PeriodoLetivo> criteriaQuery = cb.createQuery(this.type);\n Root<PeriodoLetivo> root = criteriaQuery.from(this.type);\n \n Predicate ativeCondition = cb.equal(root.get(PeriodoLetivo.PROP_SITUACAO), SITUACAO_ATIVO);\n \n criteriaQuery.where(ativeCondition);\n \n TypedQuery<PeriodoLetivo> query = em.createQuery(criteriaQuery);\n return query.getResultList();\n }", "public List<Consulta> getPorCPF(String cpf) throws BusinessException;", "public java.util.List<com.google.analytics.data.v1beta.Cohort.Builder> getCohortsBuilderList() {\n return getCohortsFieldBuilder().getBuilderList();\n }", "@Override\r\n\tpublic List<Company> getAllCompanies() {\r\n\t\tString methodName = \"getAllCompanies()\";\r\n\t\tlog.info(className+\",\"+methodName);\r\n\t\treturn companyRepository.findAll();\r\n\t\t\r\n\t}", "@Override\r\n\tpublic Collection getCashFlows() {\n\t\treturn null;\r\n\t}", "private BillingPeriod getBillingPeriod() {\n\t\treturn (BillingPeriod) this.getBean();\n\t}", "public HashMap fetchIncrementPeriod(EmpCredit empCredit){\r\n\t\tHashMap periodMap = new HashMap();\r\n\t\ttry {\r\n\t\t\tString query = \"SELECT HRMS_PROMOTION.PROM_CODE, TO_CHAR(HRMS_PROMOTION.EFFECT_DATE,'MONTH-YYYY') AS PERIOD FROM HRMS_PROMOTION WHERE EMP_CODE=\"\r\n\t\t\t\t+empCredit.getEmpId()+\" AND HRMS_PROMOTION.LOCK_FLAG='Y' ORDER BY HRMS_PROMOTION.PROM_CODE DESC\" ;\r\n\t\t\tObject[][] incPeriodObj = getSqlModel().getSingleResult(query);\r\n\t\t\t\r\n\t\t\tif(incPeriodObj!=null && incPeriodObj.length >0){\r\n\t\t\t\tfor (int i = 0; i < incPeriodObj.length; i++) {\r\n\t\t\t\t\tperiodMap.put(String.valueOf(incPeriodObj[i][0]), String.valueOf(incPeriodObj[i][1]));\r\n\t\r\n\t\t\t\t}\r\n\t\t\tperiodMap = (HashMap<Object, Object>) org.paradyne.lib.Utility.sortMapByValue(periodMap, null, true);\r\n\t\t\t}else{\r\n\t\t\t\tperiodMap.put(\"N/A\",\"N/A\");\r\n\t\t\t}\r\n\t\t\tempCredit.setIncrementHistoryMap(periodMap);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn periodMap;\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}" ]
[ "0.6967028", "0.6634764", "0.64825785", "0.6207029", "0.6080717", "0.5999342", "0.587591", "0.57975477", "0.5792778", "0.5774289", "0.57525873", "0.575136", "0.57135016", "0.5673353", "0.5635308", "0.56221145", "0.5616362", "0.5608999", "0.55991733", "0.5594522", "0.5555981", "0.55498916", "0.5544739", "0.55283576", "0.55153567", "0.550459", "0.54865617", "0.5479266", "0.5478822", "0.5456949", "0.54433084", "0.5439224", "0.54385287", "0.54322153", "0.5397177", "0.5392133", "0.53765893", "0.5368638", "0.5365023", "0.53271973", "0.5313508", "0.53015023", "0.52997285", "0.5289908", "0.5289383", "0.5283586", "0.5271541", "0.52643263", "0.5261424", "0.5258603", "0.52537733", "0.52458787", "0.5245388", "0.5243692", "0.52337885", "0.52232236", "0.5216907", "0.5210798", "0.5205365", "0.51807034", "0.51802117", "0.51619625", "0.51607335", "0.5156165", "0.51490283", "0.5147151", "0.51426", "0.5135252", "0.5125932", "0.5102151", "0.50947636", "0.50939256", "0.5078002", "0.5076111", "0.50746685", "0.5074304", "0.5049115", "0.5048425", "0.5041489", "0.50324595", "0.50315964", "0.5031014", "0.5022167", "0.50109076", "0.5005625", "0.5002806", "0.49986547", "0.4997365", "0.49858332", "0.49801487", "0.49735376", "0.49721852", "0.49657044", "0.49630594", "0.4955945", "0.49528274", "0.49495587", "0.49490187", "0.49433386", "0.49356258" ]
0.68221664
1
Retrieve the Stream Frequency
public int freq() { return _lsPeriod.get (0).freq(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "float getFrequency();", "float getFrequency() throws InterruptedException, ConnectionLostException;", "private float calculateSensorFrequency() {\n if (startTime == 0) {\n startTime = System.nanoTime();\n }\n\n long timestamp = System.nanoTime();\n\n // Find the sample period (between updates) and convert from\n // nanoseconds to seconds. Note that the sensor delivery rates can\n // individually vary by a relatively large time frame, so we use an\n // averaging technique with the number of sensor updates to\n // determine the delivery rate.\n float hz = (count++ / ((timestamp - startTime) / 1000000000.0f));\n\n return hz;\n }", "int getFreq();", "public int getFrequency()\n {\n return this.frequency;\n }", "java.lang.String getFrequency();", "long getMessageFrequency();", "public int getFrequency()\n\t{\n\t\treturn frequency;\n\t}", "public long getFreq() {\n return freq;\n }", "public java.lang.Integer getFrequency() {\n return frequency;\n }", "public int getFreq() {\n return freq_;\n }", "public int getStreamCount() {\n return streamCount;\n }", "public Integer getFrequency() {\n return this.frequency;\n }", "public java.lang.Integer getFrequency() {\n return frequency;\n }", "public int getFrequency_(){\r\n\t\treturn frequency_;\r\n\t}", "public int getFreq() {\n return freq_;\n }", "public int getFreq(){ return frequency;}", "public int getFrequency(){\n return this.frequency;\n }", "public Double getFrequency() {\n return frequency;\n }", "public int getNumStreams()\r\n {\r\n return this.numStreams;\r\n }", "@Override\n public long getFrequencyCount() {\n return count;\n }", "public int getStreamCount()\n {\n return _streams.size();\n }", "public long getMeasFrequencyHz() {\r\n return measFrequencyHz;\r\n }", "public int getFrequency() {\n\t\t\treturn mCurFrequency;\n\t\t}", "public int getNumStreams() {\n return numStreams;\n }", "com.google.protobuf.ByteString\n getFrequencyBytes();", "public Frequency getFreq() {\n\t\treturn this.freq;\n\t}", "public abstract double samplingFrequency();", "public float getFrequency() {\n Integer sR = (Integer)sampleRate.getSelectedItem();\n int intST = sR.intValue();\n int intFPW = framesPerWavelength.getValue();\n\n return (float)intST/(float)intFPW;\n }", "public long getStream();", "@ReactMethod\n public void getFrequency(final Callback callback) {\n WifiInfo info = wifi.getConnectionInfo();\n int frequency = info.getFrequency();\n callback.invoke(frequency);\n }", "private void getFrequency(){\r\n try {\r\n BufferedReader reader = new BufferedReader(new FileReader(IConfig.FREQUENCY_PATH));\r\n String line;\r\n while((line = reader.readLine()) != null){\r\n frequency.put(line.split(\" \")[0], (Double.parseDouble(line.split(\" \")[1])/ IConfig.TOTAL_NEWS));\r\n }\r\n reader.close();\r\n }catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n }", "public java.lang.String getFrequency() {\n java.lang.Object ref = frequency_;\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 frequency_ = s;\n }\n return s;\n }\n }", "public IntegerProperty getReactorFrequency() {\n return this.reactorLine.getCurrentFrequency();\n }", "public double getFPS() {\n\t\treturn frequency;\n\t}", "public java.lang.String getFrequency() {\n java.lang.Object ref = frequency_;\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 if (bs.isValidUtf8()) {\n frequency_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public double getRawFrequency() {\n return rawFrequency;\n }", "int getChannelStatisticsCount();", "public int getRefreshFreq() {\n return m_refreshFrequency;\n }", "public int getClockFrequency() {\n return clockFrequency;\n }", "@Override\n\tpublic Float getFrequency() {\n\t\treturn 3.8f;\n\t}", "public com.google.protobuf.ByteString\n getFrequencyBytes() {\n java.lang.Object ref = frequency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n frequency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "void updateFrequencyCount() {\n //Always increments by 1 so there is no need for a parameter to specify a number\n this.count++;\n }", "public float getFrequency() { \n \treturn mouseJointDef.frequencyHz; \n }", "boolean hasFrequency();", "public com.google.protobuf.ByteString\n getFrequencyBytes() {\n java.lang.Object ref = frequency_;\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 frequency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "long getReceivedEventsCount();", "public double getSynchronizationFrequency() {\n return frequency;\n }", "public int getNostroUpdateFrequency() {\n return nostroUpdateFrequency;\n }", "public jkt.hms.masters.business.MasFrequency getFrequency () {\n\t\treturn frequency;\n\t}", "private static long getClockFrequency(String target) throws IOException, InterruptedException {\n return pi4jSystemInfoConnector.getClockFrequency(target);\r\n }", "public synchronized int activeStreams() {\n return streams.size();\n\n }", "int getChannelsCount();", "public float getSampleRate();", "public void setFrequency(int f){\n this.frequency = f;\n }", "@ComputerMethod\n private Collection<QIOFrequency> getFrequencies() {\n return FrequencyType.QIO.getManagerWrapper().getPublicManager().getFrequencies();\n }", "public float getCountRate() {\n return countMonitor.getRate();\n }", "public boolean hasFrequency() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "public int getFrequency(int height);", "public static Enumeration getUseCounts() \n {\n return frequency.elements();\n }", "public SummaryFrequencyCodeType getFrequency() {\n\t return this.frequency;\n\t}", "public boolean hasFrequency() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public int getSessionUpdateFrequency() {\r\n\t\treturn this.sessionUpdateFrequency;\r\n\t}", "public Boolean liveStreamMetrics() {\n return this.liveStreamMetrics;\n }", "int getStatsCount();", "int getStatsCount();", "int getStatsCount();", "public static Integer countFrequency(String mac){\n\t\tConnect connectServer = new Connect(\"server\", serverDatabase);// OBSERVATION\n\t\tConnection serverConnection = connectServer.getConnection();\n\t\tResultSet rs;\n\t\tint count=0;\n\t\ttry {\n\t\t\tStatement stmtserver = serverConnection.createStatement();\n\t\t\trs = stmtserver.executeQuery(String.format(\"select count(*) from OBSERVATION_CLEAN\\n\" +\n\t\t\t\t\t\"WHERE payload='%s' \\n\" +\n\t\t\t\t\t\"and timeStamp>='2018-01-01 00:00:00' \\n\" +\n\t\t\t\t\t\"and timeStamp<='2018-03-01 00:00:00'\",mac));\n\t\t\twhile (rs.next()) {\n\t\t\t\tcount = rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tconnectServer.close();\n\t\treturn count;\n\t}", "public int nSamples() {\n return samples.nSamples();\n }", "@Override\n\tpublic int showFrequency(String key) {\n\t\tint hashVal = hashFunc(key);\n\t\twhile (hashArray[hashVal] != null) {\n\t\t\tif (hashArray[hashVal].value.equals(key))\n\t\t\t\treturn hashArray[hashVal].frequency;\n\t\t\telse {\n\t\t\t\thashVal++;\n\t\t\t\thashVal = hashVal % size;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "public long getCheckFrequency() {\n return iCheckFrequency;\n }", "public double getRestFrequency(int subsystem) {\n double restFreq = _avTable.getDouble(ATTR_REST_FREQUENCY, subsystem,\n 0.0);\n return restFreq;\n }", "java.lang.String getFrequencyOffset();", "public IntegerProperty getControlFrequency() {\n return this.inputAdjuster.getCurrentFrequency();\n }", "public void setFrequency(java.lang.Integer value) {\n this.frequency = value;\n }", "public java.lang.Integer getSecondsWatched() {\n return seconds_watched;\n }", "public float getExecFreq(){return 0.0f;}", "@Override\r\n\t\t\tpublic long getDocumentFrequency(String term) {\n\t\t\t\treturn 0;\r\n\t\t\t}", "public void setStreamCount(int streamCount) {\n this.streamCount = streamCount;\n }", "public double calculateSkyFrequency() {\n return calculateSkyFrequency(0);\n }", "public long getSampleCount() {\r\n\t\tif (audioFile != null) {\r\n\t\t\treturn audioFile.getEffectiveDurationSamples();\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "boolean hasFreq();", "public java.lang.Integer getSecondsWatched() {\n return seconds_watched;\n }", "private Integer getFrequency(String key) {\n\t\t\n\t\ttry{\n\t\t\tif(key != null && key.trim().length() > 0)\n\t\t\t\tfrequencyMap.put(key.toString().toLowerCase(), WordplayUtil.getCount(key.toString().toLowerCase(), frequencyMap) + 1);\n\t\t\t\n\t\t\treturn WordplayUtil.getCount(key.toString().toLowerCase(), frequencyMap);\n\t\t}catch(Exception e){\n\t\t\t\n\t\t}\n\t\treturn 1;\n\t}", "public int getSensorCount() {\n return sensorCount ;\n }", "int getSampleMs();", "public int getChannelCount();", "public float getEffectiveClockFrequency() {\n return (float) getCpu().getTime() * NANOSECS_IN_MSEC / getUptime();\n }", "@ComputerMethod\n private Collection<TeleporterFrequency> getFrequencies() {\n return FrequencyType.TELEPORTER.getManagerWrapper().getPublicManager().getFrequencies();\n }", "public float getChirpFrequency() {\n return chirpFrequency;\n }", "static int findFrequency(Queue<Integer> q, int k){\n \n // return Collections.frequency(q, k);\n return (int) q.stream().filter(e-> e== k).count();\n }", "int getPayloadCount();", "public void setFrequency(String frequency)\n {\n this.frequency = frequency;\n }", "public int getSampleRate() {\n return 0;\n }", "public int getAttackFrequency() {\r\n\t\treturn attackFrequency;\r\n\t}", "public StartCount() {\n\tint pass = 4;\n\tboolean heard = false;\n\tIterator iter;\n\n\ttry {\n\t \n\t \n\t aif.open();\n\t aif.registerHandler(this, kCOUNT_MESSAGE);\n\t \n\t while (true) {\n\t\tSystem.out.println(\"Start of Epoch\");\n\t\tif (pass++ > 2) {\n\n\t\t countMessage[LEVEL_BYTE] = 0;\n\t\t countMessage[COUNT_BYTE] = 0;\n\t\t countMessage[REMAINING_TIME_LO_BYTE] = 64;\n\t\t aif.sendAM(countMessage, kCOUNT_MESSAGE, (short)0xFFFF);\n\t\t pass = 0;\n\t\t}\n\t\tThread.currentThread().sleep(2000);\n\t\titeration++;\n\t\t//if (epochCount > 0) heard = true;\n\t\titer = counts.values().iterator();\n\t\tepochCount = 0;\n\t\twhile (iter.hasNext()) {\n\t\t CountReport cr = (CountReport)iter.next();\n\t\t if (iteration - cr.iteration > 8) iter.remove();\n\t\t else epochCount += cr.count;\n\t\t}\n\t\tSystem.out.println(\"End of Epoch, Count = \" + epochCount);\n\n\n\n\t }\n\n\t \n\t} catch (Exception e) {\n\t e.printStackTrace();\n\t}\n }", "public int getSampleRate() {\r\n\treturn SAMPLES_IN_SECOND;\r\n}", "public int getAttackFrequency() {\r\n\t\treturn this.attackFrequency;\r\n\t}", "public Frequency() {\n\n }", "public int getEntryCount() {\n return wordFrequency.size();\n }" ]
[ "0.7653853", "0.72524714", "0.72295475", "0.72223896", "0.7167787", "0.70963526", "0.70956445", "0.7091001", "0.7074621", "0.7057579", "0.7031599", "0.7012626", "0.70111793", "0.69964164", "0.69768775", "0.6968704", "0.6885367", "0.6861054", "0.6818751", "0.6770639", "0.6768105", "0.67324996", "0.6652163", "0.66424084", "0.66323984", "0.66196394", "0.6613734", "0.658147", "0.65594995", "0.6417861", "0.64105237", "0.64011776", "0.6377334", "0.63556844", "0.63347083", "0.6329063", "0.6321248", "0.62731093", "0.6271422", "0.62661624", "0.6212698", "0.61801004", "0.6155227", "0.6154906", "0.61470383", "0.6084256", "0.6065338", "0.6064456", "0.6057958", "0.60434604", "0.5993456", "0.5980421", "0.59774405", "0.59327984", "0.59324664", "0.5918", "0.59141576", "0.5899706", "0.5882673", "0.5870773", "0.58684456", "0.5830918", "0.58279884", "0.5819436", "0.5811585", "0.5811585", "0.5811585", "0.57805705", "0.5772554", "0.5768841", "0.576532", "0.57544625", "0.57488626", "0.57323056", "0.57225406", "0.57061565", "0.56967473", "0.5695871", "0.56929386", "0.56826216", "0.56686765", "0.5664691", "0.5658419", "0.5649206", "0.5639857", "0.5639719", "0.56340426", "0.5628002", "0.56244785", "0.56231356", "0.56084496", "0.5607955", "0.5600786", "0.5598875", "0.5592134", "0.55867046", "0.55855215", "0.557824", "0.5573374", "0.55675644" ]
0.67997366
19
Retrieve the Coupon Day Count
public java.lang.String couponDC() { return _lsPeriod.get (0).periods().get (0).couponDC(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int getDayCount(Date date) {\n\t\tString hql = \"select cc.count from cinema_condition cc where cc.date = ?\";\r\n\t\tQuery query = this.getCurrentSession().createQuery(hql);\r\n\t\tquery.setParameter(0, date);\r\n\t\tif(query.uniqueResult()==null){\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tint resutl = (Integer) query.uniqueResult();\r\n\t\treturn resutl;\r\n\t}", "public DayCount getDayCount() {\n return dayCount;\n }", "@Override\n\tpublic int ddayCount(String memberNo) {\n\t\treturn dDao.ddayCount(sqlSession, memberNo);\n\t}", "int getCouponListCount();", "int getNumberDays();", "@Override\n\tpublic int datecount() throws Exception {\n\t\treturn dao.datecount();\n\t}", "public int getSignupByDayCount(int day) {\r\n\t\treturn signupByDayCountList.get(day);\r\n\r\n\t}", "@Override\r\n\tpublic int[] getDayPeople() {\n\t\tint[] result = new int[7];\r\n\t\tDate date = DateUtil.getCurrentDate();\r\n\t\tresult[0] = cinemaConditionDao.getDayCount(date);\r\n\t\tfor(int i=0;i<6;i++){\r\n\t\t\tdate = DateUtil.getDayBefore(date);\r\n\t\t\tresult[i+1] = cinemaConditionDao.getDayCount(date);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public int getNumberOfDays() {\n return numberOfDays;\n }", "int getTotalDepositCount();", "public static int getNumberOfDays() {\n\t\treturn numberOfDays;\n\t}", "public int getDonations()\n\t{\n\t\tint donations=0;\n\t\tString query=\"select count(*) from donations where month(donation_date)=month(curdate())\";\n\t\ttry\n\t\t{\n\t\t\tConnection con=DBInfo.getConn();\t\n\t\t\tPreparedStatement ps=con.prepareStatement(query);\n\t\t\tResultSet res=ps.executeQuery();\n\t\t\twhile(res.next())\n\t\t\t{\n\t\t\t\tdonations=res.getInt(1);\n\t\t\t}\n\t\t\tcon.close();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn donations;\n\t}", "public String getScheduleDaysCount(String prefName){\n return sharedPreferences.getString(prefName, \"7\");\n }", "@Override\n\tpublic List<String> countDate() {\n\t\treturn controlA.countDate();\n\t}", "@Query(value = \"SELECT COUNT(*) FROM customers_coupons\", nativeQuery = true)\n int countAllCouponsPurchased();", "int countByExample(AoD5e466WorkingDayExample example);", "public Integer getDayVisitCount() {\n return dayVisitCount;\n }", "public int daysOverdue(int today);", "int getStreamCouponHistoryListCount();", "public static int getClimbCount(Calendar day, Context mContext) {\n DatabaseHelper handler = new DatabaseHelper(mContext);\n SQLiteDatabase database = handler.getWritableDatabase();\n\n int dayLength = 86400000 - 2;\n\n day.set(Calendar.HOUR, 0);\n day.set(Calendar.MINUTE, 0);\n day.set(Calendar.SECOND, 0);\n day.set(Calendar.MILLISECOND, 1);\n\n long dayStart = day.getTimeInMillis();\n long dayEnd = dayStart + dayLength;\n\n //grade type\n String[] projection = {\n DatabaseContract.CalendarTrackerEntry._ID,\n DatabaseContract.CalendarTrackerEntry.COLUMN_DATE,\n DatabaseContract.CalendarTrackerEntry.COLUMN_ISCLIMB};\n String whereClause = DatabaseContract.CalendarTrackerEntry.COLUMN_ISCLIMB + \"=? AND \" + DatabaseContract.CalendarTrackerEntry.COLUMN_DATE + \" BETWEEN ? AND ?\";\n String[] whereValue = {String.valueOf(DatabaseContract.IS_CLIMB), String.valueOf(dayStart), String.valueOf(dayEnd)};\n\n Cursor cursor = database.query(DatabaseContract.CalendarTrackerEntry.TABLE_NAME,\n projection,\n whereClause,\n whereValue,\n null,\n null,\n null);\n\n int output = cursor.getCount();\n\n try {\n return output;\n } finally {\n cursor.close();\n database.close();\n handler.close();\n }\n }", "public static int getWorkoutClimbCount(Calendar day, Context mContext) {\n DatabaseHelper handler = new DatabaseHelper(mContext);\n SQLiteDatabase database = handler.getWritableDatabase();\n\n int dayLength = 86400000 - 2;\n\n day.set(Calendar.HOUR, 0);\n day.set(Calendar.MINUTE, 0);\n day.set(Calendar.SECOND, 0);\n day.set(Calendar.MILLISECOND, 1);\n\n long dayStart = day.getTimeInMillis();\n long dayEnd = dayStart + dayLength;\n\n //grade type\n String[] projection = {\n DatabaseContract.CalendarTrackerEntry._ID,\n DatabaseContract.CalendarTrackerEntry.COLUMN_DATE,\n DatabaseContract.CalendarTrackerEntry.COLUMN_ISCLIMB};\n String whereClause = DatabaseContract.CalendarTrackerEntry.COLUMN_ISCLIMB + \"=? AND \" + DatabaseContract.CalendarTrackerEntry.COLUMN_DATE + \" BETWEEN ? AND ?\";\n String[] whereValue = {String.valueOf(DatabaseContract.IS_GYMCLIMB), String.valueOf(dayStart), String.valueOf(dayEnd)};\n Cursor cursor = database.query(DatabaseContract.CalendarTrackerEntry.TABLE_NAME,\n projection,\n whereClause,\n whereValue,\n null,\n null,\n null);\n\n int output = cursor.getCount();\n\n try {\n return output;\n } finally {\n cursor.close();\n database.close();\n handler.close();\n }\n }", "@Override\r\n\tpublic int getCount(Date dateStart, Date dateEnd) {\n\t\tString hql = \"select sum(cc.count) from cinema_condition cc where cc.date >= ? and cc.date <= ?\";\r\n\t\tQuery query = this.getCurrentSession().createQuery(hql);\r\n\t\tquery.setParameter(0, dateStart);\r\n\t\tquery.setParameter(1, dateEnd);\r\n\t\tif(query.uniqueResult()==null){\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tint result = ((Long) query.uniqueResult()).intValue();\r\n\t\treturn result;\r\n\t}", "Integer getDaysSpanned();", "public Integer get_count_of_days(String Created_date_String, String Expire_date_String) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yy\", Locale.getDefault());\n\n Date Created_convertedDate = null, Expire_CovertedDate = null, todayWithZeroTime = null;\n try {\n Created_convertedDate = dateFormat.parse(Created_date_String);\n Expire_CovertedDate = dateFormat.parse(Expire_date_String);\n\n Date today = new Date();\n\n todayWithZeroTime = dateFormat.parse(dateFormat.format(today));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n Calendar c_cal = Calendar.getInstance();\n c_cal.setTime(todayWithZeroTime);\n int c_year = c_cal.get(Calendar.YEAR);\n int c_month = c_cal.get(Calendar.MONTH);\n int c_day = c_cal.get(Calendar.DAY_OF_MONTH);\n\n\n Calendar e_cal = Calendar.getInstance();\n e_cal.setTime(Expire_CovertedDate);\n int e_year = e_cal.get(Calendar.YEAR);\n int e_month = e_cal.get(Calendar.MONTH);\n int e_day = e_cal.get(Calendar.DAY_OF_MONTH);\n\n Calendar date1 = Calendar.getInstance();\n Calendar date2 = Calendar.getInstance();\n\n date1.clear();\n date1.set(c_year, c_month, c_day);\n date2.clear();\n date2.set(e_year, e_month, e_day);\n\n long diff = date2.getTimeInMillis() - date1.getTimeInMillis();\n\n long dayCount = diff / (24 * 60 * 60 * 1000);\n\n return (int) dayCount;\n }", "@Query(value = \"SELECT COUNT(*) FROM coupons\", nativeQuery = true)\n int countAllCoupons();", "int getFundsCount();", "int getFundsCount();", "public abstract int daysInMonth(DMYcount DMYcount);", "public double countDailyBudget() {\n return countBalance() / 30;\n }", "int getCazuriCount();", "public static int getWorkoutCount(Calendar day, Context mContext) {\n DatabaseHelper handler = new DatabaseHelper(mContext);\n SQLiteDatabase database = handler.getWritableDatabase();\n int dayLength = 86400000 - 2;\n\n day.set(Calendar.HOUR, 0);\n day.set(Calendar.MINUTE, 0);\n day.set(Calendar.SECOND, 0);\n day.set(Calendar.MILLISECOND, 1);\n\n long dayStart = day.getTimeInMillis();\n long dayEnd = dayStart + dayLength;\n\n //grade type\n String[] projection = {\n DatabaseContract.CalendarTrackerEntry._ID,\n DatabaseContract.CalendarTrackerEntry.COLUMN_DATE,\n DatabaseContract.CalendarTrackerEntry.COLUMN_ISCLIMB};\n String whereClause = DatabaseContract.CalendarTrackerEntry.COLUMN_ISCLIMB + \"=? AND \" + DatabaseContract.CalendarTrackerEntry.COLUMN_DATE + \" BETWEEN ? AND ?\";\n String[] whereValue = {String.valueOf(DatabaseContract.IS_WORKOUT), String.valueOf(dayStart), String.valueOf(dayEnd)};\n\n Cursor cursor = database.query(DatabaseContract.CalendarTrackerEntry.TABLE_NAME,\n projection,\n whereClause,\n whereValue,\n null,\n null,\n null);\n\n int output = cursor.getCount();\n\n try {\n return output;\n } finally {\n cursor.close();\n database.close();\n handler.close();\n }\n }", "public java.lang.Integer getNoOfDays () {\n\t\treturn noOfDays;\n\t}", "public java.lang.Integer getNoOfDays () {\n\t\treturn noOfDays;\n\t}", "public int getUDays() {\n return uDays;\n }", "public int getCalendarCount(){\r\n\t\t//if(_debug) Log.v(_context, \"NotificationViewFlipper.getCalendarCount() CalendarCount: \" + _calendarCount);\r\n\t\treturn _calendarCount;\r\n\t}", "int getInterestsCount();", "public int getNumDaysForComponent(Record record);", "public int getDays(){\r\n\t\treturn days;\r\n\t}", "@JsonIgnore\n\tpublic int getnDaysToFull()\n\t{\n\t\treturn nDaysToFull;\n\t}", "@Override\r\n\tpublic List<AdminCustomLikeCommand> customLikeDayCount() {\n\t\treturn adminCustomChartMapper.customLikeDayCount();\r\n\t}", "private int getNumberOfCoffees() {\n return Integer.parseInt(((TextView)findViewById(R.id.quantity_text_view)).getText().toString());\n }", "int getDonatoriCount();", "public int getDays() {\n return this.days;\n }", "long countByExample(UvStatDayExample example);", "int getDeliveredCount();", "public int getNumberOfDates() {\n return dateList.size();\n }", "public int getTotalDays() {\r\n int totalDays = 0;\r\n for (int d = 0; d < 5; d++) {\r\n for (int h = 0; h < 13; h++) {\r\n if (weekData[d][h] != 0) {\r\n totalDays += 1;\r\n break;\r\n }\r\n }\r\n }\r\n return totalDays;\r\n }", "private int calculateNumberOfDaysOfWeek (DayOfWeek dayOfWeek) {\n LocalDate dateIterator = startDate.with(nextOrSame(dayOfWeek));\n if (dateIterator.isAfter(endDate)) {\n return 0;\n }\n\n int numberOfDayOfWeek = 1;\n\n while (dateIterator.isBefore(endDate)) {\n dateIterator = dateIterator.with(next(dayOfWeek));\n if (dateIterator.isBefore(endDate) || dateIterator.isEqual(endDate)) {\n numberOfDayOfWeek++;\n }\n }\n\n return numberOfDayOfWeek;\n }", "int getDeliveriesCount();", "public int getNumDays() {\n\t\treturn numDays;\n\t}", "public int getTodayCount(){\n\t\tint count = 0;\n\t\tfor ( Task task : m_Tasks ){\n\t\t\tif( task.folder.equals(\"Today\") && !task.done) count++;\n\t\t}\n\t\treturn count;\n\t}", "public int getCantidadCalles();", "@Override\n\tpublic List<?> getNumberOfPatientPerDay() {\n\t\treturn ar.findAppointmentCount();\n\t}", "public int getTotalNumberOfWorkingDays(List<LocalDate> dateList) {\n\n int cont = 0;\n for (LocalDate date : dateList) {\n\n if (dateDiffOfWeekend(date)) {\n\n cont++;\n }\n }\n\n return cont;\n }", "public int getLBR_ProtestDays();", "public int getCoffeeShopCount() {\n String sqlCountQuery = \"SELECT * FROM \" + CoffeeShopDatabase.CoffeeShopTable.TABLE_NAME;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(sqlCountQuery, null);\n cursor.close();\n int count = cursor.getCount();\n return count;\n }", "public Integer getTotalDays()\r\n/* 68: */ {\r\n/* 69:67 */ return this.totalDays;\r\n/* 70: */ }", "@Override\r\n\tpublic List<AdminCustomBookmarkCommand> customBookmarkDayCount() {\n\t\treturn adminCustomChartMapper.customBookmarkDayCount();\r\n\t}", "public static int getCount6(Context context) {\n SharedPreferences prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n int c6= prefs.getInt(saveCounter6, SaveCounter6);\n\n return c6;\n }", "int getEducationsCount();", "public static int countDays(List<MonitoredData> data){\n System.out.println(\"3) How many times has appeared each activity for each day: \");\n long result = 0;\n ArrayList<String> days = new ArrayList<>();\n ArrayList<MonitoredData> dataTrunc = new ArrayList<>();\n for (int i=0; i<data.size(); i++){\n String day = \"\";\n day += data.get(i).getStartTime().charAt(8);\n day += data.get(i).getStartTime().charAt(9);\n days.add(day);\n }\n for (int i=0; i<data.size(); i++){\n dataTrunc.add(data.get(i));\n if (i<days.size()-1){\n if (!days.get(i+1).equals(days.get(i))){\n System.out.println(\" Day \" + days.get(i) + \" ::: \" + countActivitiesWholePeriod(dataTrunc));\n dataTrunc.clear();\n }\n }else{\n System.out.println(\" Day \" + days.get(i) + \" ::: \" + countActivitiesWholePeriod(dataTrunc));\n }\n }\n Stream<String> daysStream = days.stream();\n result = daysStream\n .distinct()\n .count();\n return (int)result;\n }", "int getMessageCounterHistoryDayLimit();", "public int getCouponListCount() {\n return couponList_.size();\n }", "public int getUpDays() {\n return (int)(_uptime / 86400000);\n }", "int getCouponStat();", "public int getLBR_CollectionReturnDays();", "@Query(value = \"SELECT COUNT(*) FROM customers_coupons AS cvc INNER JOIN coupons AS c On cvc.coupons_id = c.id WHERE company_id = ?1\" , nativeQuery = true)\n int countAllCouponsPurchasedByCompany(int companyId);", "public BigDecimal getNO_OF_DAYS() {\r\n return NO_OF_DAYS;\r\n }", "public int activeDays() {return activeDay;}", "public int getIDays() {\n return iDays;\n }", "int getAoisCount();", "public int getDrinkOrderCount() {\n String sqlCountQuery = \"SELECT * FROM \" + CoffeeShopDatabase.DrinkOrderTable.TABLE_NAME;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(sqlCountQuery, null);\n cursor.close();\n int count = cursor.getCount();\n return count;\n }", "String getDayofservice();", "public int getCouponListCount() {\n if (couponListBuilder_ == null) {\n return couponList_.size();\n } else {\n return couponListBuilder_.getCount();\n }\n }", "public long getDays() {\r\n \treturn days;\r\n }", "@LogExceptions\n public int getNumberOfEvents(String date) throws SQLException {\n Connection conn = DatabaseConnection.getConnection();\n int i = 0;\n try(PreparedStatement stmt = \n conn.prepareStatement(SELECT_EVENT_DATE)) \n {\n stmt.setString(1, date);\n try(ResultSet rs = stmt.executeQuery()) {\n while(rs.next()) {\n i++;\n }\n }\n }\n return i;\n }", "public DaysAdjustment getExCouponPeriod() {\n return exCouponPeriod;\n }", "public Integer getOverdueDays() {\n return overdueDays;\n }", "int getTotalCount();", "@Override\n\tpublic int getTotalCount(Integer cate_code) {\n\t\treturn mapper.getTotalCount(cate_code);\n\t}", "public Integer getPresentDays()\r\n/* 48: */ {\r\n/* 49:51 */ return this.presentDays;\r\n/* 50: */ }", "public int getDay()\n {\n return day;\n }", "public int getFulfillmentTimeInDays () {\n return 0;\n }", "int getRefundToCount();", "public int getEDays() {\n return eDays;\n }", "int getActAmountCount();", "public int getNumberOfDays()\r\n {\r\n int mn = theMonthNumber;\r\n if (mn == 1 || mn == 3 || mn == 5 || mn == 7 || mn == 8 || mn == 10 || mn == 12)\r\n {return 31;}\r\n if (mn == 4 || mn == 6 || mn == 9 || mn == 11)\r\n {return 30;}\r\n else\r\n {return 28;}\r\n }", "@java.lang.Override public int getDayValue() {\n return day_;\n }", "public String countIncomes() throws IOException{ \r\n return \"Incomes: \" + getActualSheet().getCellAt(\"B1\").getTextValue() + \"\\n\";\r\n }", "private int getDays() {\n\t\tlong arrival = arrivalDate.toEpochDay();\n\t\tlong departure = departureDate.toEpochDay();\n\t\tint days = (int) Math.abs(arrival - departure);\n\n\t\treturn days;\n\t}", "PeriodCountCalculator<E> getPeriodCountCalculator();", "public int getDay() {\r\n return day;\r\n }", "public double getPer_day(){\n\t\tdouble amount=this.num_of_commits/365;\n\t\treturn amount;\n\t}", "public int getCouponPerYear() {\n return _couponPerYear;\n }", "public static int countDiffDay(Calendar c1, Calendar c2) {\n int returnInt = 0;\n while (!c1.after(c2)) {\n c1.add(Calendar.DAY_OF_MONTH, 1);\n returnInt++;\n }\n\n if (returnInt > 0) {\n returnInt = returnInt - 1;\n }\n\n return (returnInt);\n }", "@java.lang.Override public int getDayValue() {\n return day_;\n }", "@Override\n\tpublic int periodAllcount() throws Exception {\n\t\treturn dao.periodAllcount();\n\t}", "int getPriceCount();", "long getTermDays();", "public Collection<Coupon> getCouponByDate(Date date) throws DbException;", "public int getNumberOfVisibleDays() {\n return config.numberOfVisibleDays;\n }" ]
[ "0.6796941", "0.67334485", "0.633031", "0.6222215", "0.6173996", "0.6110115", "0.6100282", "0.60635173", "0.60360473", "0.5969516", "0.59509015", "0.594148", "0.5935783", "0.58922946", "0.5881258", "0.5869366", "0.58338946", "0.5808522", "0.5790921", "0.5747388", "0.5715478", "0.5690048", "0.56745225", "0.5667295", "0.56575835", "0.5650365", "0.5650365", "0.562796", "0.56210893", "0.56117606", "0.5593874", "0.55681175", "0.55681175", "0.55631965", "0.5535844", "0.55311877", "0.55121017", "0.55091083", "0.5507678", "0.5492122", "0.54802233", "0.54768544", "0.54688525", "0.54680055", "0.545433", "0.5447887", "0.5445718", "0.5437076", "0.5421817", "0.54133904", "0.54111177", "0.5410157", "0.54020983", "0.5395308", "0.5394673", "0.53935295", "0.53922516", "0.5390736", "0.5387398", "0.537903", "0.53659034", "0.53573555", "0.53427935", "0.5330493", "0.5325634", "0.53134286", "0.5307749", "0.52965087", "0.52945846", "0.52878684", "0.5286444", "0.5285979", "0.52853477", "0.52578306", "0.5251679", "0.5248375", "0.52464646", "0.5238355", "0.5224353", "0.52205396", "0.5219747", "0.5216803", "0.5212076", "0.5209652", "0.52026385", "0.5200852", "0.5197799", "0.5195503", "0.519389", "0.5193598", "0.5181299", "0.51723266", "0.5170578", "0.5170573", "0.5170376", "0.5170222", "0.51700974", "0.5167139", "0.51640576", "0.5161603", "0.5157861" ]
0.0
-1
Retrieve the Coupon EOM Adjustment
public boolean couponEOMAdjustment() { return _lsPeriod.get (0).periods().get (0).couponEOMAdjustment(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "EDataType getConductance();", "public EconomyCore getEcon() {\n return economy;\n }", "org.adscale.format.opertb.AmountMessage.Amount getExchangeprice();", "public java.lang.String couponCurrency()\n\t{\n\t\treturn _lsPeriod.get (_lsPeriod.size() - 1).couponCurrency();\n\t}", "public double getCEMENTAmount();", "@WebMethod public Coupon getCoupon(String coupon);", "public double getCouponRate() {\n return _couponRate;\n }", "Uom getCurrencyUom();", "Uom getOrigCurrencyUom();", "BigDecimal getCommission( String officeCode );", "public double getCouponAmount() {\n return _couponAmount;\n }", "public DaysAdjustment getExCouponPeriod() {\n return exCouponPeriod;\n }", "int getCouponStat();", "public CurrencyAmount presentValue(final CouponIborCompounding coupon, final YieldCurveBundle curves) {\n Validate.notNull(coupon, \"Coupon\");\n Validate.notNull(curves, \"Curves\");\n final YieldAndDiscountCurve forwardCurve = curves.getCurve(coupon.getForwardCurveName());\n final YieldAndDiscountCurve discountingCurve = curves.getCurve(coupon.getFundingCurveName());\n final int nbSubPeriod = coupon.getFixingTimes().length;\n double notionalAccrued = coupon.getNotionalAccrued();\n for (int loopsub = 0; loopsub < nbSubPeriod; loopsub++) {\n final double ratioForward = forwardCurve.getDiscountFactor(coupon.getFixingPeriodStartTimes()[loopsub]) / forwardCurve.getDiscountFactor(coupon.getFixingPeriodEndTimes()[loopsub]);\n notionalAccrued *= ratioForward;\n }\n final double df = discountingCurve.getDiscountFactor(coupon.getPaymentTime());\n final double pv = (notionalAccrued - coupon.getNotional()) * df;\n return CurrencyAmount.of(coupon.getCurrency(), pv);\n }", "public double getPrice(){\n\n double price1 = 1/Math.pow(1+interests, payments);\n double finalPrice = coupon * (1-price1) + valueMaturity * price1;\n\n return finalPrice;\n\n }", "java.lang.String getCouponDescription();", "java.lang.String getCouponDescription();", "hr.client.appuser.CouponCenter.TimeRange getExchangeTime();", "public BigDecimal getwPrCouponPrice() {\n return wPrCouponPrice;\n }", "java.lang.String getCouponVendor();", "public double getIncome() throws BankException {\n throw new BankException(\"This account does not support this feature\");\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount getCapitalPayed();", "@Override\r\n\tpublic Double getModel_cash_correlation() {\n\t\treturn super.getModel_cash_correlation();\r\n\t}", "public BigDecimal getExchrate() {\n return exchrate;\n }", "public BigDecimal getArtificialWithdrawMoney() {\n return artificialWithdrawMoney;\n }", "double calculate(Coupon coupon, double payable);", "public EnzymeCommissionNumber getEc() {\n return ec;\n }", "public BigDecimal getBSCA_ProfitPriceLimitEntered();", "public org.adscale.format.opertb.AmountMessage.Amount getExchangeprice() {\n if (exchangepriceBuilder_ == null) {\n return exchangeprice_;\n } else {\n return exchangepriceBuilder_.getMessage();\n }\n }", "@SuppressWarnings(\"rawtypes\")\n private void getPromotionFromAdjustment(List<?> adjustments, List<AppliedPromotion> orderAppliedPromotions, String discountType) throws ClaimableException {\n\n RepositoryItem[] couponItems = null;\n Iterator adjIter = adjustments.iterator();\n\n while (adjIter.hasNext()) {\n PricingAdjustment pricingAdjustment = (PricingAdjustment) adjIter.next();\n if (pricingAdjustment == null) {\n continue;\n }\n\n RepositoryItem promotion = pricingAdjustment.getPricingModel();\n\n if (promotion != null) {\n Boolean isGlobal = (Boolean) promotion.getPropertyValue(GLOBAL);\n if (isGlobal != null && isGlobal.booleanValue()) continue;\n\n String description = (String) promotion.getPropertyValue(DESCRIPTION);\n\n if (StringUtils.isEmpty(description)) {\n description = promotion.getRepositoryId();\n }\n String promoName = (String) promotion.getPropertyValue(PROMO_DISP_NAME);\n if (StringUtils.isEmpty(promoName)) {\n \tpromoName = description;\n }\n String promoShortDesc = (String) promotion.getPropertyValue(PROMO_SHORT_DESC);\n if (StringUtils.isEmpty(promoShortDesc)) {\n \tpromoShortDesc = description;\n }\n \n couponItems = getClaimableTools().getCouponsForPromotion(promotion.getRepositoryId());\n\n AppliedPromotion promo = new AppliedPromotion();\n if (couponItems != null) {\n promo.setCouponCode(couponItems[0].getRepositoryId());\n } else {\n promo.setCouponCode(promotion.getRepositoryId());\n }\n promo.setDescription(description);\n promo.setPromoName(promoName);\n promo.setPromoShortDesc(promoShortDesc);\n promo.setPromoId(promotion.getRepositoryId());\n promo.setDiscountType(discountType);\n // 2564 - Free item shipping promos are really item discounts when they are setup\n // but treated as shipping discount in the UI\n if(discountType.equalsIgnoreCase(\"item\") && pricingAdjustment.getAdjustmentDescription().equalsIgnoreCase(\"Item Free Shipping Discount\")) {\n \tpromo.setItemShipping(true);\n }\n if(couponItems != null) {\n \tif(!isCouponExists(orderAppliedPromotions, couponItems[0].getRepositoryId())) {\n \t\torderAppliedPromotions.add(promo);\n \t}\n } else {\n \torderAppliedPromotions.add(promo);\n }\n }\n }\n\n }", "int getCouponNum();", "public java.lang.Double getCouponPrice () {\r\n\t\treturn couponPrice;\r\n\t}", "java.lang.String getCouponContent();", "java.lang.String getCouponContent();", "@Override\r\n\tpublic int getPayCheque() {\n\t\treturn profit+annuelSalary;\r\n\t\t\r\n\t}", "public BigDecimal getBSCA_ProfitPriceListEntered();", "org.adscale.format.opertb.AmountMessage.Amount getCampaignprice();", "public Money getInterestDue();", "public Coupon getCoupon(int id) throws DbException;", "@SuppressWarnings(\"rawtypes\")\n public double calculateCouponOrderDiscountAdjustments(Order order) {\n double discountAdjustment = 0.0d;\n\n if (order != null) {\n List orderAdjustments = order.getPriceInfo().getAdjustments();\n if (orderAdjustments != null && orderAdjustments.size() > 0) {\n discountAdjustment = getDiscountedAmount(orderAdjustments);\n }\n }\n return discountAdjustment;\n }", "org.adscale.format.opertb.AmountMessage.AmountOrBuilder getExchangepriceOrBuilder();", "int getCouponType();", "public BigDecimal getBSCA_ProfitPriceLimit();", "BigDecimal getOpenPrice();", "public BigDecimal getO_price() {\n return o_price;\n }", "public BigDecimal getCarProfitMoney() {\n return carProfitMoney;\n }", "public BigDecimal getExchangeRate() {\n return exchangeRate;\n }", "public BigDecimal getEXCH_RATE() {\r\n return EXCH_RATE;\r\n }", "public org.adscale.format.opertb.AmountMessage.Amount getExchangeprice() {\n return exchangeprice_;\n }", "String getTradeCurrency();", "@Override\n\tpublic BigDecimal getCosteEjecucion() {\n\t\treturn model.getCosteEjecucion();\n\t}", "public static void extract_money(){\n TOTALCMONEY = TOTALCMONEY - BALANCERETRIEVE; //the total cashier money equals the total cashier money minus the retrieve request\r\n BALANCE = BALANCE - BALANCERETRIEVE; //the user balance equals the account minus the retrieve request\r\n }", "public BigDecimal getArtificialRechargeMoney() {\n return artificialRechargeMoney;\n }", "public float getPayableAmount() {\n /**\n * { var_description }.\n */\n float dscnt = NUM3 * coupon;\n /**\n * { item_description }.\n */\n return (getTotalAmount() * (1f - dscnt)) * NUM5;\n }", "public ExpoEAO getExpoEAO()\n {\n return expoEAO;\n }", "Money getDiscountValue();", "@Override\n public double earnings() {\n return getCommissionRate() * getGrossSales();\n }", "@Override\n public double getHonorario() {\n return super.getHonorario() * 1.05;\n }", "java.lang.String getCouponName();", "java.lang.String getCouponName();", "java.lang.String getCouponName();", "BigDecimal getSumaryTechoCveFuente(BudgetKeyEntity budgetKeyEntity);", "public Employee getPurchaseEmployee() {\n Discount[] txnDiscounts = compositePOSTransaction.getDiscountsArray();\n if (txnDiscounts != null && txnDiscounts.length > 0) {\n for (int i = 0; i < txnDiscounts.length; i++) {\n if (txnDiscounts[i] instanceof CMSEmployeeDiscount) {\n return ((CMSEmployeeDiscount)txnDiscounts[i]).getEmployee();\n }\n }\n }\n return null;\n }", "public double getProfit(){\n return getPrice() * PROFIT_IN_PERCENTS / 100;\n }", "public int getCents()\r\n {\r\n return cents;\r\n }", "public java.math.BigDecimal getIndicativeExchangeRate() {\r\n return indicativeExchangeRate;\r\n }", "public String getwPrCouponNo() {\n return wPrCouponNo;\n }", "public java.lang.String couponDC()\n\t{\n\t\treturn _lsPeriod.get (0).periods().get (0).couponDC();\n\t}", "BigDecimal getPreviousClosePrice();", "int getBonusMoney();", "EDataType getSusceptance();", "ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount getCapital();", "public BigDecimal getOrderMoney() {\n return orderMoney;\n }", "public double getAccrualFactorToNextCoupon() {\n return _factorToNextCoupon;\n }", "public BigDecimal getBSCA_ProfitPriceStdEntered();", "private static EnteType getEnteConcedentePianoRateazione(\r\n\t\t\tit.equitalia.dettagliocartellaavviso.wsdl.PianoRateazioneType typeResponse) {\r\n\t\tEnteType res = new EnteType();\r\n\r\n\t\tres.setDescrizione(typeResponse.getEnteConcedente().getDescrizione());\r\n\t\tres.setCodiceEnte(typeResponse.getEnteConcedente().getCodiceEnte());\r\n\t\tres.setCodiceUfficio(typeResponse.getEnteConcedente().getCodiceUfficio());\r\n\t\tres.setTipoUfficio(typeResponse.getEnteConcedente().getTipoUfficio());\r\n\t\t\r\n\t\treturn res;\r\n\t}", "public Hashtable<String, Double> promoPercChange(){\n\t\tHashtable<String, Double> percChange = new Hashtable<String, Double>();\n\t\tpercChange.put(\"Sales %Chg.\", (this.getSalesByPromo().get(\"Total Sales\")/this.getSalesByPromo().get(\"Total Sales YA\"))-1);\n\t\tpercChange.put(\"Feat %Chg.\", (this.getSalesByPromo().get(\"Feature\")/this.getSalesByPromo().get(\"Feature YA\"))-1);\n\t\tpercChange.put(\"Display %Chg.\", (this.getSalesByPromo().get(\"Display\")/this.getSalesByPromo().get(\"Display YA\"))-1);\n\t\tpercChange.put(\"Quality %Chg.\", (this.getSalesByPromo().get(\"Quality\")/this.getSalesByPromo().get(\"Quality YA\"))-1);\n\t\tpercChange.put(\"Price Disc. %Chg.\", (this.getSalesByPromo().get(\"Price Disc.\")/this.getSalesByPromo().get(\"Price Disc.YA\"))-1);\n\t\treturn percChange;\n\t}", "public double promedioAlum(){\n setProm((getC1() + getC2() + getC3() + getC4()) / 4);\n return getProm();\n }", "@Override\n\tpublic double getPrice() {\n\t\treturn constantPO.getPrice();\n\t}", "public Currency getCurrency1() {\n return _underlyingForex.getCurrency1();\n }", "public BigDecimal getCashMoney() {\n return cashMoney;\n }", "public JingtumCurrency getPay() {\n\t\tif (this.taker_gets == null && order != null){\n\t\t\treturn order.getTaker_gets();\n\t\t}\n\t\treturn taker_gets;\n\t}", "public java.math.BigDecimal getCashOrCheckAmount() {\r\n return cashOrCheckAmount;\r\n }", "BigDecimal getClosePrice();", "private void getCostAndEta() {\n\n GetVehiclesData vehiclesData = RetrofitClientInstance.getRetrofitInstance().create(GetVehiclesData.class);\n getVehicles.getVehiclesData(vehiclesData);\n setCostToLabel(getVehicles.getCost());\n setETAToLabel(getVehicles.getETA());\n\n }", "public double getChange() \n\t{\n\t\treturn purchase.getPayment().getChange();\n\t}", "protected Double getCAProfessionnel() {\n List<Facture> facturesProfessionnel = this.factureProfessionnelList;\n Double ca = 0.0; \n for(Facture f : facturesProfessionnel )\n ca = ca + f.getTotalHT();\n \n return ca ; \n \n }", "public Currency getCurrency();", "public BigDecimal getCpMoney() {\n return cpMoney;\n }", "public BigDecimal getCost() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"Cost\");\nif (bd == null) return Env.ZERO;\nreturn bd;\n}", "public CostoGastoImporLogic getCostoGastoImporLogic()\t{\t\t\r\n\t\treturn costogastoimporLogic;\r\n\t}", "double getMonto();", "double getMonto();", "@Override\r\n\tpublic Double getModel_equity_correlation() {\n\t\treturn super.getModel_equity_correlation();\r\n\t}", "public double getAvgCashUnitPrice() {\n return this.avgCashUnitPrice ;\n }", "com.unitedtote.schema.totelink._2008._06.program.ExchangeWagers xgetExchange();", "public java.math.BigDecimal getOriginalExchangeRate() {\r\n return originalExchangeRate;\r\n }", "public int getCouponNum() {\n return couponNum_;\n }", "public int getCouponType() {\n return couponType_;\n }", "public BigDecimal getBSCA_ProfitPriceList();" ]
[ "0.6462107", "0.62165636", "0.60798365", "0.58884543", "0.58661824", "0.57937336", "0.5742441", "0.57298064", "0.56967545", "0.56778497", "0.56678855", "0.56271493", "0.55971515", "0.55543107", "0.55513716", "0.5535575", "0.5535575", "0.5528929", "0.5507228", "0.54771686", "0.5389661", "0.5382489", "0.53822494", "0.53735816", "0.5373433", "0.53666097", "0.5358048", "0.53439367", "0.5341834", "0.533591", "0.53351164", "0.5328667", "0.53150964", "0.53150964", "0.52882355", "0.5286044", "0.52615607", "0.5252584", "0.5251879", "0.52369237", "0.5228121", "0.52159166", "0.5203666", "0.5190894", "0.51817065", "0.5175775", "0.516342", "0.5160593", "0.51593333", "0.5141957", "0.5103766", "0.5086089", "0.5082938", "0.5065643", "0.5062091", "0.50592023", "0.50565857", "0.5039903", "0.5037698", "0.5037698", "0.5037698", "0.503624", "0.50207394", "0.5017153", "0.5016083", "0.5014955", "0.50121725", "0.5005754", "0.49871653", "0.4978026", "0.49701068", "0.49700582", "0.49698967", "0.49687204", "0.49681795", "0.49667042", "0.49597996", "0.49585748", "0.49569637", "0.49566814", "0.49501204", "0.49437526", "0.49432766", "0.49432325", "0.49414518", "0.49351522", "0.49330813", "0.49295935", "0.49265248", "0.49259004", "0.49230745", "0.4920087", "0.4920087", "0.49187386", "0.49178898", "0.49171996", "0.4914318", "0.491193", "0.49116293", "0.48953277" ]
0.5208969
42
Retrieve the Accrual Day Count
public java.lang.String accrualDC() { return _lsPeriod.get (0).periods().get (0).accrualDC(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DayCount getDayCount() {\n return dayCount;\n }", "@Override\r\n\tpublic int getDayCount(Date date) {\n\t\tString hql = \"select cc.count from cinema_condition cc where cc.date = ?\";\r\n\t\tQuery query = this.getCurrentSession().createQuery(hql);\r\n\t\tquery.setParameter(0, date);\r\n\t\tif(query.uniqueResult()==null){\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tint resutl = (Integer) query.uniqueResult();\r\n\t\treturn resutl;\r\n\t}", "@Override\n\tpublic List<String> countDate() {\n\t\treturn controlA.countDate();\n\t}", "int getNumberDays();", "public Integer getDayVisitCount() {\n return dayVisitCount;\n }", "public Integer getTotalDays()\r\n/* 68: */ {\r\n/* 69:67 */ return this.totalDays;\r\n/* 70: */ }", "@Override\n\tpublic List<?> getNumberOfPatientPerDay() {\n\t\treturn ar.findAppointmentCount();\n\t}", "public int getNumDaysForComponent(Record record);", "@Override\n\tpublic int datecount() throws Exception {\n\t\treturn dao.datecount();\n\t}", "public int activeDays() {return activeDay;}", "@Override\n\tpublic int ddayCount(String memberNo) {\n\t\treturn dDao.ddayCount(sqlSession, memberNo);\n\t}", "public int getTotalDays() {\r\n int totalDays = 0;\r\n for (int d = 0; d < 5; d++) {\r\n for (int h = 0; h < 13; h++) {\r\n if (weekData[d][h] != 0) {\r\n totalDays += 1;\r\n break;\r\n }\r\n }\r\n }\r\n return totalDays;\r\n }", "public int getNumberOfDays() {\n return numberOfDays;\n }", "public static int getNumberOfDays() {\n\t\treturn numberOfDays;\n\t}", "public int getCalendarCount(){\r\n\t\t//if(_debug) Log.v(_context, \"NotificationViewFlipper.getCalendarCount() CalendarCount: \" + _calendarCount);\r\n\t\treturn _calendarCount;\r\n\t}", "long getTermDays();", "public Integer get_count_of_days(String Created_date_String, String Expire_date_String) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yy\", Locale.getDefault());\n\n Date Created_convertedDate = null, Expire_CovertedDate = null, todayWithZeroTime = null;\n try {\n Created_convertedDate = dateFormat.parse(Created_date_String);\n Expire_CovertedDate = dateFormat.parse(Expire_date_String);\n\n Date today = new Date();\n\n todayWithZeroTime = dateFormat.parse(dateFormat.format(today));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n Calendar c_cal = Calendar.getInstance();\n c_cal.setTime(todayWithZeroTime);\n int c_year = c_cal.get(Calendar.YEAR);\n int c_month = c_cal.get(Calendar.MONTH);\n int c_day = c_cal.get(Calendar.DAY_OF_MONTH);\n\n\n Calendar e_cal = Calendar.getInstance();\n e_cal.setTime(Expire_CovertedDate);\n int e_year = e_cal.get(Calendar.YEAR);\n int e_month = e_cal.get(Calendar.MONTH);\n int e_day = e_cal.get(Calendar.DAY_OF_MONTH);\n\n Calendar date1 = Calendar.getInstance();\n Calendar date2 = Calendar.getInstance();\n\n date1.clear();\n date1.set(c_year, c_month, c_day);\n date2.clear();\n date2.set(e_year, e_month, e_day);\n\n long diff = date2.getTimeInMillis() - date1.getTimeInMillis();\n\n long dayCount = diff / (24 * 60 * 60 * 1000);\n\n return (int) dayCount;\n }", "@Override\r\n\tpublic int[] getDayPeople() {\n\t\tint[] result = new int[7];\r\n\t\tDate date = DateUtil.getCurrentDate();\r\n\t\tresult[0] = cinemaConditionDao.getDayCount(date);\r\n\t\tfor(int i=0;i<6;i++){\r\n\t\t\tdate = DateUtil.getDayBefore(date);\r\n\t\t\tresult[i+1] = cinemaConditionDao.getDayCount(date);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public static int countDays(List<MonitoredData> data){\n System.out.println(\"3) How many times has appeared each activity for each day: \");\n long result = 0;\n ArrayList<String> days = new ArrayList<>();\n ArrayList<MonitoredData> dataTrunc = new ArrayList<>();\n for (int i=0; i<data.size(); i++){\n String day = \"\";\n day += data.get(i).getStartTime().charAt(8);\n day += data.get(i).getStartTime().charAt(9);\n days.add(day);\n }\n for (int i=0; i<data.size(); i++){\n dataTrunc.add(data.get(i));\n if (i<days.size()-1){\n if (!days.get(i+1).equals(days.get(i))){\n System.out.println(\" Day \" + days.get(i) + \" ::: \" + countActivitiesWholePeriod(dataTrunc));\n dataTrunc.clear();\n }\n }else{\n System.out.println(\" Day \" + days.get(i) + \" ::: \" + countActivitiesWholePeriod(dataTrunc));\n }\n }\n Stream<String> daysStream = days.stream();\n result = daysStream\n .distinct()\n .count();\n return (int)result;\n }", "@Override\n\tpublic int countByDay(int id, String fecha) {\n\t\treturn controlA.countByDay(id, fecha);\n\t}", "private int getDays() {\n\t\tlong arrival = arrivalDate.toEpochDay();\n\t\tlong departure = departureDate.toEpochDay();\n\t\tint days = (int) Math.abs(arrival - departure);\n\n\t\treturn days;\n\t}", "public int getDays() {\n return this.days;\n }", "public static int \tdayCounter (String duration) {\n\n\t\tlogger.finer(\"Day Counter used\");\n\n\t\tint x = 0 ;\n\t\tif(duration.equalsIgnoreCase(\"DAY\")) {\n\t\t\tx = 1; \n\t\t}\n\t\tif(duration.equalsIgnoreCase(\"WEEK\")) {\n\t\t\tx = 7;\n\t\t}\n\t\tif(duration.equalsIgnoreCase(\"MONTH\")) {\n\t\t\tx = 30;\n\t\t}\n\t\treturn x;\n\t}", "int getTotalDepositCount();", "public java.lang.Integer getNoOfDays () {\n\t\treturn noOfDays;\n\t}", "public java.lang.Integer getNoOfDays () {\n\t\treturn noOfDays;\n\t}", "public abstract int daysInMonth(DMYcount DMYcount);", "public static int getClimbCount(Calendar day, Context mContext) {\n DatabaseHelper handler = new DatabaseHelper(mContext);\n SQLiteDatabase database = handler.getWritableDatabase();\n\n int dayLength = 86400000 - 2;\n\n day.set(Calendar.HOUR, 0);\n day.set(Calendar.MINUTE, 0);\n day.set(Calendar.SECOND, 0);\n day.set(Calendar.MILLISECOND, 1);\n\n long dayStart = day.getTimeInMillis();\n long dayEnd = dayStart + dayLength;\n\n //grade type\n String[] projection = {\n DatabaseContract.CalendarTrackerEntry._ID,\n DatabaseContract.CalendarTrackerEntry.COLUMN_DATE,\n DatabaseContract.CalendarTrackerEntry.COLUMN_ISCLIMB};\n String whereClause = DatabaseContract.CalendarTrackerEntry.COLUMN_ISCLIMB + \"=? AND \" + DatabaseContract.CalendarTrackerEntry.COLUMN_DATE + \" BETWEEN ? AND ?\";\n String[] whereValue = {String.valueOf(DatabaseContract.IS_CLIMB), String.valueOf(dayStart), String.valueOf(dayEnd)};\n\n Cursor cursor = database.query(DatabaseContract.CalendarTrackerEntry.TABLE_NAME,\n projection,\n whereClause,\n whereValue,\n null,\n null,\n null);\n\n int output = cursor.getCount();\n\n try {\n return output;\n } finally {\n cursor.close();\n database.close();\n handler.close();\n }\n }", "public int getDays(){\r\n\t\treturn days;\r\n\t}", "public long getDays() {\r\n \treturn days;\r\n }", "public int getUDays() {\n return uDays;\n }", "public static int countDiffDay(Calendar c1, Calendar c2) {\n int returnInt = 0;\n while (!c1.after(c2)) {\n c1.add(Calendar.DAY_OF_MONTH, 1);\n returnInt++;\n }\n\n if (returnInt > 0) {\n returnInt = returnInt - 1;\n }\n\n return (returnInt);\n }", "public int getNumDays() {\n\t\treturn numDays;\n\t}", "public int calcDays() {\n\t\tint days = day-1;\r\n\t\tdays += ((month-1)*30);\r\n\t\tdays += ((year -2000) * (12*30));\r\n\t\treturn days;\r\n\t}", "public int getIDays() {\n return iDays;\n }", "int getAoisCount();", "public double countDailyBudget() {\n return countBalance() / 30;\n }", "int getTotalCount();", "public int getCurrentDay() {\n return daysPassed;\n }", "public int getCantidadCalles();", "public int getLBR_CollectionReturnDays();", "long countByExample(UvStatDayExample example);", "public int getEDays() {\n return eDays;\n }", "public int days() {\n if (isInfinite()) {\n return 0;\n }\n Period p = new Period(asInterval(), PeriodType.days());\n return p.getDays();\n }", "public int getSignupByDayCount(int day) {\r\n\t\treturn signupByDayCountList.get(day);\r\n\r\n\t}", "Integer getDaysSpanned();", "@Override\r\n\tpublic int getCount(Date dateStart, Date dateEnd) {\n\t\tString hql = \"select sum(cc.count) from cinema_condition cc where cc.date >= ? and cc.date <= ?\";\r\n\t\tQuery query = this.getCurrentSession().createQuery(hql);\r\n\t\tquery.setParameter(0, dateStart);\r\n\t\tquery.setParameter(1, dateEnd);\r\n\t\tif(query.uniqueResult()==null){\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tint result = ((Long) query.uniqueResult()).intValue();\r\n\t\treturn result;\r\n\t}", "@Override\n\tpublic int getTotalCount(Integer cate_code) {\n\t\treturn mapper.getTotalCount(cate_code);\n\t}", "public int getDistinctDays(List<MonitoredData> timeline) {\n return (int) timeline\n .stream()\n .map(\n m -> m.getStart_time().getDayOfYear())\n .distinct()\n .count();\n }", "public static long getDayNumber() {\n return getSecondsSinceEpoch() / SECS_TO_DAYS;\n }", "int countByExample(AoD5e466WorkingDayExample example);", "public static int getWorkoutClimbCount(Calendar day, Context mContext) {\n DatabaseHelper handler = new DatabaseHelper(mContext);\n SQLiteDatabase database = handler.getWritableDatabase();\n\n int dayLength = 86400000 - 2;\n\n day.set(Calendar.HOUR, 0);\n day.set(Calendar.MINUTE, 0);\n day.set(Calendar.SECOND, 0);\n day.set(Calendar.MILLISECOND, 1);\n\n long dayStart = day.getTimeInMillis();\n long dayEnd = dayStart + dayLength;\n\n //grade type\n String[] projection = {\n DatabaseContract.CalendarTrackerEntry._ID,\n DatabaseContract.CalendarTrackerEntry.COLUMN_DATE,\n DatabaseContract.CalendarTrackerEntry.COLUMN_ISCLIMB};\n String whereClause = DatabaseContract.CalendarTrackerEntry.COLUMN_ISCLIMB + \"=? AND \" + DatabaseContract.CalendarTrackerEntry.COLUMN_DATE + \" BETWEEN ? AND ?\";\n String[] whereValue = {String.valueOf(DatabaseContract.IS_GYMCLIMB), String.valueOf(dayStart), String.valueOf(dayEnd)};\n Cursor cursor = database.query(DatabaseContract.CalendarTrackerEntry.TABLE_NAME,\n projection,\n whereClause,\n whereValue,\n null,\n null,\n null);\n\n int output = cursor.getCount();\n\n try {\n return output;\n } finally {\n cursor.close();\n database.close();\n handler.close();\n }\n }", "public int getNumberOfVisibleDays() {\n return config.numberOfVisibleDays;\n }", "public int getNumberOfDays()\n\t{\n\t\treturn m_calendar.getActualMaximum(Calendar.DAY_OF_MONTH);\n\n\t}", "public int getNumberOfDates() {\n return dateList.size();\n }", "double getAgeDays();", "@DISPID(52)\r\n\t// = 0x34. The runtime will prefer the VTID if present\r\n\t@VTID(50)\r\n\tint actualCPUTime_Days();", "@Override\n\tpublic int getDaysSinceLastLogin() {\n\t\tDate now = sabre.getTimeNow();\n\t\tlong timeDiff = now.getTime() - lastLogin.getTime();\n\t\tlong diffDays = TimeUnit.DAYS.convert(timeDiff, TimeUnit.MILLISECONDS);\n\t\treturn (int)diffDays;\n\t}", "public int daysOverdue(int today);", "public double getPer_day(){\n\t\tdouble amount=this.num_of_commits/365;\n\t\treturn amount;\n\t}", "public static int getWorkoutCount(Calendar day, Context mContext) {\n DatabaseHelper handler = new DatabaseHelper(mContext);\n SQLiteDatabase database = handler.getWritableDatabase();\n int dayLength = 86400000 - 2;\n\n day.set(Calendar.HOUR, 0);\n day.set(Calendar.MINUTE, 0);\n day.set(Calendar.SECOND, 0);\n day.set(Calendar.MILLISECOND, 1);\n\n long dayStart = day.getTimeInMillis();\n long dayEnd = dayStart + dayLength;\n\n //grade type\n String[] projection = {\n DatabaseContract.CalendarTrackerEntry._ID,\n DatabaseContract.CalendarTrackerEntry.COLUMN_DATE,\n DatabaseContract.CalendarTrackerEntry.COLUMN_ISCLIMB};\n String whereClause = DatabaseContract.CalendarTrackerEntry.COLUMN_ISCLIMB + \"=? AND \" + DatabaseContract.CalendarTrackerEntry.COLUMN_DATE + \" BETWEEN ? AND ?\";\n String[] whereValue = {String.valueOf(DatabaseContract.IS_WORKOUT), String.valueOf(dayStart), String.valueOf(dayEnd)};\n\n Cursor cursor = database.query(DatabaseContract.CalendarTrackerEntry.TABLE_NAME,\n projection,\n whereClause,\n whereValue,\n null,\n null,\n null);\n\n int output = cursor.getCount();\n\n try {\n return output;\n } finally {\n cursor.close();\n database.close();\n handler.close();\n }\n }", "int getCazuriCount();", "public int getNumberOfDays()\r\n {\r\n int mn = theMonthNumber;\r\n if (mn == 1 || mn == 3 || mn == 5 || mn == 7 || mn == 8 || mn == 10 || mn == 12)\r\n {return 31;}\r\n if (mn == 4 || mn == 6 || mn == 9 || mn == 11)\r\n {return 30;}\r\n else\r\n {return 28;}\r\n }", "public int getNumberOfLastDayEvents() {\n int counter = 0;\n long currentTimeSeconds = getCurrentTimeInSeconds();\n for (int i = 0; i < records.length; i++) {\n synchronized (records[i]) {\n if (currentTimeSeconds - records[i].getLastTimeReset() < SECONDS_IN_DAY) {\n counter += records[i].getCount();\n }\n }\n }\n\n return counter;\n }", "public int getAttendanceCount() {\n return attendanceCount;\n }", "@Override\n public long getTotalDoctors() {\n List<Long> temp=em.createNamedQuery(\"DoctorTb.getTotalDoctors\").getResultList();\n long count=0;\n for(long i:temp)\n {\n count=i;\n }\n return count;\n }", "@JsonIgnore\n\tpublic int getnDaysToFull()\n\t{\n\t\treturn nDaysToFull;\n\t}", "int getActAmountCount();", "@DISPID(67)\r\n\t// = 0x43. The runtime will prefer the VTID if present\r\n\t@VTID(65)\r\n\tint averageCPUTime_Days();", "int getEducationsCount();", "@Override\n\tpublic int periodAllcount() throws Exception {\n\t\treturn dao.periodAllcount();\n\t}", "public BigDecimal getNO_OF_DAYS() {\r\n return NO_OF_DAYS;\r\n }", "public int getUpDays() {\n return (int)(_uptime / 86400000);\n }", "public int getDaysAdded() {\n return daysAdded;\n }", "@java.lang.Override public int getDayValue() {\n return day_;\n }", "public String getScheduleDaysCount(String prefName){\n return sharedPreferences.getString(prefName, \"7\");\n }", "@java.lang.Override public int getDayValue() {\n return day_;\n }", "public int getTodayCount(){\n\t\tint count = 0;\n\t\tfor ( Task task : m_Tasks ){\n\t\t\tif( task.folder.equals(\"Today\") && !task.done) count++;\n\t\t}\n\t\treturn count;\n\t}", "public int getDay()\n {\n return day;\n }", "public DayCount getFixedLegDayCount() {\n return _index.getFixedLegDayCount();\n }", "public Integer getPresentDays()\r\n/* 48: */ {\r\n/* 49:51 */ return this.presentDays;\r\n/* 50: */ }", "public int getDay() {\r\n return day;\r\n }", "private int getEducationalCount(){\n int count = 0;\n\n String whereClause = DbHelper.IS_EDUCATIONAL + \" = ?\";\n String[] whereArgs = new String[]{String.valueOf(true)};\n\n Cursor cursor = mDbHelper.getReadableDatabase().query(DbHelper.TABLE_NAME, null, whereClause, whereArgs, null, null, null);\n\n while(cursor.moveToNext()){\n count++;\n }\n\n return count;\n }", "int getEntryCount();", "public int getCycles();", "private static Long diasRestantes(Certificado certificado) throws NfeException {\r\n\r\n\t\tDate data = DataValidade(certificado);\r\n\t\tif (data == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tlong differenceMilliSeconds = data.getTime() - new Date().getTime();\r\n\t\treturn differenceMilliSeconds / 1000 / 60 / 60 / 24;\r\n\t}", "Long getAllCount();", "public int getLBR_ProtestDays();", "public int[] getDataMsgPerDay() {\n\t\tint[] result = new int[24];\n\t\tint it = 0;\n\t\tfor (LocalTime hour = LocalTime.now().with(LocalTime.MIN); hour\n\t\t\t\t.isBefore(LocalTime.now().with(LocalTime.MAX).minusHours(1)); hour = hour.plusHours(1)) {\n\t\t\tLocalTime hourOfDay = hour;\n\t\t\tcontador = 0;\n\t\t\tcurrentUser.getContacts().forEach(contact -> {\n\t\t\t\tcontador += contact.getMessages().stream()\n\t\t\t\t\t\t.filter(m -> (m.getTime().toLocalTime().getHour() == hourOfDay.getHour())\n\t\t\t\t\t\t\t\t&& (m.getSpeaker() == currentUser.getId()))\n\t\t\t\t\t\t.count();\n\t\t\t});\n\t\t\tresult[it] = contador;\n\t\t\tit++;\n\t\t}\n\t\treturn result;\n\t}", "long getTotalAcceptCount();", "public int getDay() {\n return day;\n }", "@Override\r\n\tpublic List<AdminCustomBookmarkCommand> customBookmarkDayCount() {\n\t\treturn adminCustomChartMapper.customBookmarkDayCount();\r\n\t}", "public static long count(nitro_service service) throws Exception{\n\t\tdnsnsecrec obj = new dnsnsecrec();\n\t\toptions option = new options();\n\t\toption.set_count(true);\n\t\tdnsnsecrec[] response = (dnsnsecrec[])obj.get_resources(service, option);\n\t\tif (response != null) {\n\t\t\treturn response[0].__count;\n\t\t}\n\t\treturn 0;\n\t}", "public static int diasParaFecha(Date fechafin) {\n try {\n System.out.println(\"Fecha = \" + fechafin + \" / \");\n GregorianCalendar fin = new GregorianCalendar();\n fin.setTime(fechafin);\n System.out.println(\"fin=\" + CalendarToString(fin, \"dd/MM/yyyy\"));\n GregorianCalendar hoy = new GregorianCalendar();\n System.out.println(\"hoy=\" + CalendarToString(hoy, \"dd/MM/yyyy\"));\n\n if (fin.get(Calendar.YEAR) == hoy.get(Calendar.YEAR)) {\n System.out.println(\"Valor de Resta simple: \"\n + String.valueOf(fin.get(Calendar.DAY_OF_YEAR)\n - hoy.get(Calendar.DAY_OF_YEAR)));\n return fin.get(Calendar.DAY_OF_YEAR)\n - hoy.get(Calendar.DAY_OF_YEAR);\n } else {\n int diasAnyo = hoy.isLeapYear(hoy.get(Calendar.YEAR)) ? 366\n : 365;\n int rangoAnyos = fin.get(Calendar.YEAR)\n - hoy.get(Calendar.YEAR);\n int rango = (rangoAnyos * diasAnyo)\n + (fin.get(Calendar.DAY_OF_YEAR) - hoy\n .get(Calendar.DAY_OF_YEAR));\n System.out.println(\"dias restantes: \" + rango);\n return rango;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return 0;\n }", "private static int getPreiousNumApis(final int compId, final Date date, final int envId) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.add(Calendar.DATE, -1);\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria ctrStsCrit = session.createCriteria(ApiStatusEntity.class, \"as\");\n\t\tctrStsCrit.add(Restrictions.eq(\"as.component.componentId\",compId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.environment.environmentId\",envId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.statusDate\", new java.sql.Date(cal.getTimeInMillis()) ));\n\t\tctrStsCrit.setMaxResults(1);\n\t\tApiStatusEntity apiSts =(ApiStatusEntity) ctrStsCrit.uniqueResult();\n\t\tint totalApi = 0;\n\t\tif(apiSts != null){\n\t\t\ttotalApi = apiSts.getTotalApi();\n\t\t}\n\t\ttxn.commit();\n\t\treturn totalApi;\n\t}", "private int calculateNumberOfDaysOfWeek (DayOfWeek dayOfWeek) {\n LocalDate dateIterator = startDate.with(nextOrSame(dayOfWeek));\n if (dateIterator.isAfter(endDate)) {\n return 0;\n }\n\n int numberOfDayOfWeek = 1;\n\n while (dateIterator.isBefore(endDate)) {\n dateIterator = dateIterator.with(next(dayOfWeek));\n if (dateIterator.isBefore(endDate) || dateIterator.isEqual(endDate)) {\n numberOfDayOfWeek++;\n }\n }\n\n return numberOfDayOfWeek;\n }", "public int getDay(){\n\t\treturn day;\n\t}", "int getFundsCount();", "int getFundsCount();", "public int getFulfillmentTimeInDays () {\n return 0;\n }" ]
[ "0.714139", "0.68965113", "0.6615449", "0.6601949", "0.64991623", "0.63951826", "0.63634557", "0.6362227", "0.6344246", "0.63236326", "0.6304235", "0.6302182", "0.6266206", "0.62420934", "0.62363154", "0.6220281", "0.6193187", "0.61626434", "0.61436", "0.6133594", "0.6083805", "0.6073596", "0.6064339", "0.6061924", "0.6060566", "0.6060566", "0.60513544", "0.60443014", "0.6039213", "0.6030334", "0.6028413", "0.602062", "0.59840864", "0.59806705", "0.59637815", "0.5949401", "0.5946137", "0.5935214", "0.59295374", "0.59251493", "0.5920387", "0.58854425", "0.5881848", "0.587602", "0.58759123", "0.5873449", "0.5870141", "0.58024365", "0.57827187", "0.57635957", "0.5749291", "0.5741024", "0.57286", "0.571469", "0.569955", "0.56962395", "0.56957173", "0.568712", "0.5679825", "0.56769806", "0.5671866", "0.5670291", "0.5667269", "0.56596303", "0.56572694", "0.56361866", "0.5635689", "0.56264496", "0.5620275", "0.5614219", "0.56116045", "0.5579236", "0.55780745", "0.5574545", "0.5551905", "0.5541025", "0.55405486", "0.5538575", "0.5532178", "0.5508386", "0.5506998", "0.5500657", "0.5499512", "0.54829454", "0.5481912", "0.5480311", "0.54708064", "0.54694736", "0.5454403", "0.5450442", "0.5445572", "0.54392284", "0.54312927", "0.542649", "0.54255986", "0.5419127", "0.54086286", "0.54057246", "0.54057246", "0.54033124" ]
0.56619775
63
Retrieve the Accrual EOM Adjustment
public boolean accrualEOMAdjustment() { return _lsPeriod.get (0).periods().get (0).accrualEOMAdjustment(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EnzymeCommissionNumber getEc() {\n return ec;\n }", "public double getCEMENTAmount();", "public double getEnergia() { return energia; }", "@Override\n public int accion() {\n return this.alcance*2/3*3;\n }", "public double getEccentricityDelta() {\n return eccentricityDelta;\n }", "public BigDecimal getACCRUAL_AMT() {\r\n return ACCRUAL_AMT;\r\n }", "public void cal_AdjustedFuelMoist(){\r\n\tADFM=0.9*FFM+0.5+9.5*Math.exp(-BUO/50);\r\n}", "public double earnings() {\n\t\treturn getCommissionRate()+getGrossSales();\r\n\t}", "public double promedioAlum(){\n setProm((getC1() + getC2() + getC3() + getC4()) / 4);\n return getProm();\n }", "public ExpoEAO getExpoEAO()\n {\n return expoEAO;\n }", "public EstimateIncome(){\n\t\tcalculateSlopesAndIntercepts();\n\t}", "private double calc_E(KeplerElements a) {\n\t\tdouble sqrome2 = Math.sqrt(1.0 - a.e * a.e);\r\n\t\tdouble cta = Math.cos(a.ta);\r\n\t\tdouble sta = Math.sin(a.ta);\r\n\t\tdouble sine0 = (sqrome2 * sta) / (1.0 + a.e * cta);\r\n\t\tdouble cose0 = (a.e + cta) / (1.0 + a.e * cta);\r\n\t\tdouble e0 = Math.atan2(sine0, cose0);\r\n\t\treturn e0;\r\n\r\n\t}", "int getExposureCompensationPref();", "double getAxon();", "public double getEccentricity() {\n return eccentricity;\n }", "public BigDecimal getACC_CY() {\r\n return ACC_CY;\r\n }", "public double getTotalAbsencePercentage() {\n return totalAbsencePercentageProperty.get();\n }", "protected Double getCAProfessionnel() {\n List<Facture> facturesProfessionnel = this.factureProfessionnelList;\n Double ca = 0.0; \n for(Facture f : facturesProfessionnel )\n ca = ca + f.getTotalHT();\n \n return ca ; \n \n }", "float getVacationAccrualRate();", "float getAccY();", "float getAccX();", "public double aire() {\n\t\treturn 0;\n\t}", "public double calcAnnualIncome()\r\n {\r\n return ((hourlyWage * hoursPerWeek * weeksPerYear) * (1 - deductionsRate));\r\n }", "@Override\n public double earnings() {\n return getCommissionRate() * getGrossSales();\n }", "public BigDecimal getADVANCE_INSURANCE_AMT() {\r\n return ADVANCE_INSURANCE_AMT;\r\n }", "@Override\r\n\tpublic Double getModel_equity_correlation() {\n\t\treturn super.getModel_equity_correlation();\r\n\t}", "@Override\n @Column(name = \"PER_DIEM_ADJ\", precision = 19, scale = 2)\n public KualiDecimal getPerDiemAdjustment() {\n return perDiemAdjustment == null?KualiDecimal.ZERO:perDiemAdjustment;\n }", "public java.math.BigDecimal getIndicativeExchangeRate() {\r\n return indicativeExchangeRate;\r\n }", "int getCurEXP();", "int getCurEXP();", "double effective_aoa () {\n if (current_part == strut)\n return current_part.aoa;\n else if (// false && // DEBUG aft problems...\n current_part == stab && stab_aoa_correction) {\n // stab is in downwash from main wing and sees some down stream.\n double wing_Cl0 = 0.4; // very typical, true for Aquila, NACA 3412 63-412 etc\n // the following is from \"General aviation aicraft design, Appendix C1\"\n double wing_Cl = wing.cl;\n double div = Math.PI * wing.span/wing.chord;\n double corrected_aoa = craft_pitch * (1 - 2 * wing_Cl / div) - \n 2 * wing_Cl0 / div - wing.aoa + current_part.aoa;\n // double correction = corrected_aoa - (current_part.aoa + craft_pitch);\n // System.out.println(\"-- correction: \" + correction);\n return Math.min(aoa_max, Math.max(aoa_min, corrected_aoa));\n } else\n return Math.min(aoa_max, Math.max(aoa_min, current_part.aoa + craft_pitch));\n }", "public BigDecimal getEL_AMOUNT() {\r\n return EL_AMOUNT;\r\n }", "public BigDecimal getEXCH_RATE() {\r\n return EXCH_RATE;\r\n }", "public double getEUtilization() {\n return eUtilization;\n }", "EDataType getConductance();", "Measurement getAccumulation();", "public Float getE1() {\r\n return e1;\r\n }", "public int getAODE() {\n return aode;\n }", "public double getMontoCatalogoEstimado(){\n return localMontoCatalogoEstimado;\n }", "public Vector3 getEulerAnglesAcceleration() {\n\t\treturn eulerAnglesAcceleration;\n\t}", "public SimpleDoubleProperty getTotalAbsencePercentageProperty() {\n return totalAbsencePercentageProperty;\n }", "public BigDecimal getExchrate() {\n return exchrate;\n }", "public double empiricalExpectation()\n\t{\n\t\treturn _dblEmpiricalExpectation;\n\t}", "public BigDecimal getEL_PERCENTAGE() {\r\n return EL_PERCENTAGE;\r\n }", "public double estimatedEnergyPerPanel() {\n\t\tif (estimatedEnergyPerPanel < 0) {\n\t\t\treturn estimatedEnergyPerPanel;\n\t\t}\n\t\t// if est. EnergyPerPanel hasn't been found yet, we find it here...\n\t\tdouble wattToKW = .001;\n\t\testimatedEnergyPerPanel = systemCap * wattToKW;\n\t\t// the returned estimated energy will factor in the powerTolerance,\n\t\t// which typically equates to percent loss on the panel\n\t\treturn estimatedEnergyPerPanel -= estimatedEnergyPerPanel\n\t\t\t\t* (.01 * powerTolerance);\n\t}", "@Override\r\n\tpublic Double getModel_cash_correlation() {\n\t\treturn super.getModel_cash_correlation();\r\n\t}", "public BigDecimal getACTUAL_REIMB_PFT_FOR_ACCRUAL() {\r\n return ACTUAL_REIMB_PFT_FOR_ACCRUAL;\r\n }", "public BigDecimal getArtificialRechargeMoney() {\n return artificialRechargeMoney;\n }", "public double getIntAnual() {\n return intAnual;\n }", "public double getAccruedInterest() {\n return _accruedInterest;\n }", "public double getAccruedInterest() {\n return _accruedInterest;\n }", "public int getE() {\n return e_;\n }", "float getVacationAccrued();", "@Override\n public double getHonorario() {\n return super.getHonorario() * 1.05;\n }", "public int getE() {\n return e_;\n }", "@Override\r\n\tpublic double getIMC() throws Exception{\r\n\t\tdouble imc = getAnamnese().getPesoUsual()\r\n\t\t/ (anamnese.getAltura() * anamnese.getAltura());\r\n\t\tif(imc <=0 ){\r\n\t\t\tthrow new Exception(\"valor invalido\");\r\n\t\t}\r\n\t\r\n\t\treturn imc;\r\n\t}", "public float getXAngle(){\n Point project=new Point(0,accel.y,accel.z);\n\n float angl=(float)Math.asin(project.y / project.module())* PreferenceHelper.sensetivity;\n //float angl=(float)Math.acos(accel.z/accel.module())*100f;\n if(Float.isNaN(angl)) angl=0.5f;\n return (float)(Math.rint( toFlowX(angl)/1.0) * 1.0);\n }", "int getEvd();", "public int getEntrenchmentRate() {\n return entrenchmentRate;\n }", "public float getEffet_Influence() {\n\t\treturn effet_Influence;\n\t}", "public java.lang.Float getE() {\n return e;\n }", "public java.lang.String accrualDC()\n\t{\n\t\treturn _lsPeriod.get (0).periods().get (0).accrualDC();\n\t}", "public java.lang.Float getE() {\n return e;\n }", "public double darExcentricidad( )\n {\n return excentricidad;\n }", "public double getExchRate() {\n return _exchRate;\n }", "public double getexpense()\n\t{\n\t\treturn this.expenses;\n\t}", "public int getEstValue(){\r\n return this.estValue;\r\n }", "public abstract double experience();", "public EconomyCore getEcon() {\n return economy;\n }", "public String getAAE100() {\n return AAE100;\n }", "public int getAODC() {\n return aodc;\n }", "public SummitEntityImpl getEmpEO() {\r\n return (SummitEntityImpl)getEntity(1);\r\n }", "@JsonIgnore public Energy getCalories() {\n return (Energy) getValue(\"calories\");\n }", "public BigDecimal getTOTAL_EARNED_PROFIT() {\r\n return TOTAL_EARNED_PROFIT;\r\n }", "public BigDecimal getACTUAL_PROFIT_AMT() {\r\n return ACTUAL_PROFIT_AMT;\r\n }", "public Vector3f getAttenuation() {\r\n\t\treturn this.attenuation;\r\n \t}", "@Override\n\tprotected double calcularImpuestoVehiculo() {\n\t\treturn this.getValor() * 0.003;\n\t}", "public Double getCalories() {\n return product.getCalories() * weight / 100;\n }", "public double getTotalEarnings() {\n return this.totalEarnings;\n }", "public double givenInvestmentIncomeEstimateIncomeGetInterceptAll(){\n\t\treturn formatReturnValue(investmentIncomeFindIncome.getInterceptAll());\n\t}", "public double getInfluence() \r\n\t{ \r\n\t\treturn m_influence; \r\n\t}", "public double getEarnedInterest()\n {\n return startingBalance * (interestRate / 12);\n }", "public Double getAmmonia() {\n return ammonia;\n }", "public double get_Cd (double effaoa) {\n if (current_part.camber < 0) effaoa = -effaoa;\n return current_part.foil.get_Cd(current_part.cl, effaoa, current_part.thickness, current_part.camber, true);\n }", "public java.lang.Double getPercentualCETAnual() {\n return percentualCETAnual;\n }", "public double getCommission(){\r\n return commission;\r\n }", "public float getExp ( ) {\n\t\treturn extract ( handle -> handle.getExp ( ) );\n\t}", "public Number getAlto()\n {\n return (Number)getAttributeInternal(ALTO);\n }", "private double getAngle()\n {\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n return angles.firstAngle;\n }", "public double ElectricCurrent() {\n return OCCwrapJavaJNI.Units_Dimensions_ElectricCurrent(swigCPtr, this);\n }", "long getExpirations();", "public java.math.BigDecimal getAz_ant() throws java.rmi.RemoteException;", "public float getAccY() {\n return accY_;\n }", "public Money getEstCalculatedCADTotal() {\r\n if (this.moneyCADConverter== null)\r\n throw new IllegalStateException(\"This method requires a 'MoneyCADConverter' implementation available\");\r\n //intialize the CalculCAD amount\r\n estCalculatedCADTotal = Money.getCAD(0.00);\r\n for (ListIterator iter = poLineItems.listIterator() ; iter.hasNext() ;) {\r\n PoLineItem linetemp = (PoLineItem)iter.next();\r\n Money lineSubTotal = linetemp.getListPrice().multiply(linetemp.getQuantity());\r\n \r\n if (!lineSubTotal.getCurrency().equals(Currency.getInstance(\"CAD\"))){\r\n //convert into CAD currency\r\n lineSubTotal = moneyCADConverter.convertToCAD(lineSubTotal);\r\n }\r\n estCalculatedCADTotal= estCalculatedCADTotal.add(lineSubTotal);\r\n }\r\n return estCalculatedCADTotal;\r\n }", "public BigDecimal getCOVERING_ACC_CY() {\r\n return COVERING_ACC_CY;\r\n }", "public double getExpLoss()\r\n\t{\treturn this.expLoss;\t}", "public double calcularIncremento(){\n double incremento=0.0;\n \n if (this.edad>=18&&this.edad<50){\n incremento=this.salario*0.05;\n }\n if (this.edad>=50&&this.edad<60){\n incremento=this.salario*0.10;\n }\n if (this.edad>=60){\n incremento=this.salario*0.15;\n }\n return incremento;\n }", "public double getC() {\n return c;\n }", "public double getAngle()\n {\n return (AngleAverage);\n }", "public double totalEarnings() {\n\t\treturn dayEarnings;\n\t}" ]
[ "0.63320774", "0.6169546", "0.60132164", "0.5953288", "0.59056085", "0.58792055", "0.5818049", "0.58066493", "0.5804252", "0.57861686", "0.57843435", "0.5759353", "0.5702983", "0.5702182", "0.56464165", "0.5585478", "0.5555947", "0.555446", "0.55470306", "0.55470246", "0.5514325", "0.54929173", "0.54849064", "0.5478272", "0.54643947", "0.5456298", "0.54316974", "0.54260594", "0.5423807", "0.5423807", "0.54090345", "0.53983283", "0.53796846", "0.53793734", "0.537742", "0.5375832", "0.53729", "0.53624785", "0.5353451", "0.53506064", "0.5341133", "0.53405076", "0.5338134", "0.53205526", "0.5313288", "0.53003496", "0.5278282", "0.52773666", "0.5275552", "0.52737933", "0.52737933", "0.5263093", "0.52589786", "0.525664", "0.5254436", "0.5253331", "0.52475035", "0.52343065", "0.52221507", "0.52118355", "0.51980066", "0.5193789", "0.5192312", "0.5191784", "0.51903534", "0.51878744", "0.51824284", "0.51807165", "0.51757616", "0.51699233", "0.5168535", "0.5164756", "0.5162993", "0.5160027", "0.5157495", "0.5157253", "0.5156352", "0.51540613", "0.5144469", "0.5143928", "0.5142215", "0.51416117", "0.5140664", "0.51334506", "0.51290286", "0.51269215", "0.5126276", "0.5120506", "0.51157147", "0.5113426", "0.51132554", "0.5112239", "0.51118207", "0.5111156", "0.5106391", "0.5103998", "0.51031506", "0.5102487", "0.5098276", "0.5095412" ]
0.5384873
32
Retrieve the Credit Label
public org.drip.state.identifier.EntityCDSLabel creditLabel() { return _lsPeriod.get (0).creditLabel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.microsoft.schemas.xrm._2011.contracts.Label getLabel();", "com.microsoft.schemas.xrm._2011.contracts.Label getDescription();", "public String getLabel() {\n return AsteriskUtlities.toContextIdentifier(username + \"-\" + company);\n }", "String getLabel();", "String getLabel();", "public java.lang.String getLabel();", "public String getLabel() { //gets the label\n\n\t\treturn rawLabel;\n\t}", "java.lang.String getLabel();", "public L getLabel() {\n\t\tcheckRep();\n\t\treturn this.label;\n\t}", "java.lang.String getBankNo();", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public String getLabel();", "Label getLabel();", "Label getLabel();", "Label getLabel();", "com.google.ads.googleads.v6.resources.CustomerLabel getCustomerLabel();", "public String getLabel(){\n return label;\n }", "public String getLabel()\n { \n return label;\n }", "public String getLabel()\n {\n return label;\n }", "public Object getLabel() \n {\n return label;\n }", "com.google.ads.googleads.v6.resources.Label getLabel();", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "private String getLabel(String labelAudit) {\n\t\tString label = null;\n\t\tif(labelForAuditLabel.containsKey(labelAudit)) {\n\t\t\tlabel = labelForAuditLabel.get(labelAudit);\n\t\t\tif(label != null) {\n\t\t\t\tif(label.isEmpty())\n\t\t\t\t\tlabel = null;\n\t\t\t\telse\n\t\t\t\t\tlabel = messageSource.getMessage(label, null, Locale.getDefault());\n\t\t\t\t\t//messageSource.getMessage(\"label.dati_verbale\", values, Locale.getDefault())\n\t\t\t}\n\t\t} else {\n\t\t\t//LOGGER.info(\"label_mancante\");\n\t\t\tLOGGER.info(labelAudit);\n\t\t\tlabel = \"??key \" + labelAudit + \" not found??\";\n\t\t}\n\t\treturn label;\n\t}", "public String getLabel() {\n return label;\n }", "public String getLabel()\n {\n return label;\n }", "public String getLabel() {\r\n return lbl;\r\n }", "public String getLabel(){\n\t\treturn label;\n\t}", "public String getTextAccumulatorLabel() {\r\n\t\tString str = safeGetText(vehicleName.replace(\"Vehicle Name\", \"Accumulater\"), SHORTWAIT);\r\n\t\treturn str;\r\n\t}", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public final String getLabel() {\n\t\treturn _label;\n\t}", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "private String getLabel() {\n return this.label;\n }", "public String getLabel()\n\t{\n\t\treturn label;\n\t}", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel(){\n\t\treturn sAnzeige;\n\t}", "public String getLabel()\n {\n return m_label;\n }", "String getLabel() {\n return label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public int getLabel() {\n\t\treturn label;\n\t}", "public String getLabel() {\n return getElement().getChildren()\n .filter(child -> child.getTag().equals(\"label\")).findFirst()\n .get().getText();\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n\t\treturn this._label;\n\t}", "public String getLabel() {\n\t\treturn myLabel;\n\t}", "public String toString()\n {\n return label;\n }", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public void getCredit(){\n System.out.println(\"Total Credit: \" +\"£\" + getUserMoney());\n }", "public String getJP_BankData_ReferenceNo();", "public String toString() {\n return label;\n }", "@Override\r\n public String showConsumerLoanInfo(Credit credit) {\n return credit.getCredit();\r\n }", "public String getLabel() {\n\t\treturn label;\n\t}", "public Label getLabel() {\n\t\treturn label;\n\t}", "public Label getLabel() {\n\t\treturn label;\n\t}", "public String getLabelText();", "String getFormFieldLabel();", "@Override\n\tpublic String toString() {\n\t\treturn label;\n\t}", "public String getLabel() {\n return _label == null ? name() : _label;\n }", "@Override\r\n\tpublic String getBind_credit_ind() {\n\t\treturn super.getBind_credit_ind();\r\n\t}", "public com.commercetools.api.models.common.LocalizedString getLabel() {\n return this.label;\n }", "public Label getLabel() {\n return this.label;\n }", "public String label() {\n return this.label;\n }", "public java.lang.String getLabel() {\n\t\treturn this.label;\n\t}", "public Label getLabel() {\n\t\treturn this.label;\n\t}", "public double getLabel() {\n\t\treturn label;\n\t}", "public final Label getLabel() {\n return label;\n }", "public T2 getLabel() {\r\n\t\treturn label;\r\n\t}", "String nameLabel();", "public String getLBR_DirectDebitNotice();", "@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 }", "private RLabel getLicenseTypeLabel() {\n if (licenseTypeLabel == null) {\n licenseTypeLabel = new RLabel();\n licenseTypeLabel.setText(\"<%= ivy.cms.co(\\\"/Dialogs/about/licenseType\\\") %>\");\n licenseTypeLabel.setStyleProperties(\"{/insetsTop \\\"2\\\"}\");\n licenseTypeLabel.setName(\"licenseTypeLabel\");\n }\n return licenseTypeLabel;\n }", "public String getLabelText(){\n\t\treturn syncExec(new StringResult() {\t\t\n\t\t\t@Override\n\t\t\tpublic String run() {\n\t\t\t\tControl[] aux = widget.getParent().getChildren();\n\t\t\t\tfor (Control control : aux) {\n\t\t\t\t\tif (control instanceof CLabel){\n\t\t\t\t\t\treturn ((CLabel)control).getText();\n\t\t\t\t\t}\n\t\t\t\t\tif (control instanceof Label){\n\t\t\t\t\t\treturn ((Label)control).getText();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\t}", "DatasetLabel getLabel();", "public final String getLabelCode() {\r\n\t\tString label = this.label;\r\n\t\tif (StringUtil.isEmpty(label))\r\n\t\t\treturn \"\";\r\n\t\tStringBuilder labelCode = new StringBuilder();\r\n\t\tint startIndex = 0;\r\n\t\tfor (int i=0; i<label.length();i++) {\r\n\t\t\tif (label.charAt(i) >= 'A' && label.charAt(i)<= 'Z') {\r\n\t\t\t\tif (startIndex!=0) {\r\n\t\t\t\t\tlabelCode.deleteCharAt(startIndex-1);\r\n\t\t\t\t\tlabelCode.append(\"-\");\r\n\t\t\t\t}\r\n\t\t\t\tlabelCode.append(label.substring(startIndex, i).toLowerCase());\r\n\t\t\t\tstartIndex = i;\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (startIndex<label.length()) {\r\n\t\t\tif (startIndex!=0) {\r\n\t\t\t\tlabelCode.deleteCharAt(startIndex-1);\r\n\t\t\t\tlabelCode.append(\"-\");\r\n\t\t\t}\r\n\t\t\tlabelCode.append(label.substring(startIndex).toLowerCase());\r\n\t\t}\r\n\t\treturn labelCode.toString();\r\n\t}", "public String getLabel() {\n\t\t// just return item text until we get the grade levels straighted out for\n\t\t// comm_core\n\t\treturn this.itemText;\n\t\t/*\n\t\t * if (this.label == null) { if (this.getLevel() == 1) { this.label =\n\t\t * this.itemText; } else if (this.getIsLeafNode()) { this.label = \"[\" +\n\t\t * this.getGradeRange() + \"] \" + this.itemText; } else { this.label =\n\t\t * this.itemText + \" [\" + this.getGradeRange() + \"]\"; } } return this.label;\n\t\t */\n\t}", "public String getJP_BankAccount_Value();", "public String getCreditsAsText()\n {\n return TextUtils.creditStyle( credits );\n }", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Label getLabel() {\r\n return label;\r\n }", "public String getLBR_InterestCode();", "public String label() {\n\t\treturn \"LABEL_\" + (labelCount++);\n\t}", "private RLabel getLicenseSessionLabel() {\n if (licenseSessionLabel == null) {\n licenseSessionLabel = new RLabel();\n licenseSessionLabel.setText(\"<%= ivy.cms.co(\\\"/Dialogs/about/licenseSessionLimit\\\") %>\");\n licenseSessionLabel.setStyleProperties(\"{/insetsTop \\\"2\\\"}\");\n licenseSessionLabel.setName(\"licenseSessionLabel\");\n }\n return licenseSessionLabel;\n }", "private String getLabel(int address) {\n int key = Arrays.binarySearch(addresses, address);\n if (key >= 0) {\n return \"(\" + symbols[key] + \")\";\n }\n return \"\";\n }", "public String getCaseLabelReward() {\n if(reward < 1) {\n return \"$\" + reward;\n }\n if(reward < 1000) {\n return \"$\" + (int) reward;\n }\n int exp = (int) (Math.log(reward) / Math.log(1000));\n return new DecimalFormat(\"$#.#\").format(\n reward / Math.pow(1000, exp)\n ) + \"KMGTPE\".charAt(exp - 1);\n }", "@Override\r\n\tpublic String getBind_ex_credit_ind() {\n\t\treturn super.getBind_ex_credit_ind();\r\n\t}", "public\t\tMiPart\t\tgetLabel()\n\t\t{\n\t\treturn(label);\n\t\t}", "public String getAccountNo();", "public String getLabel() {\n return label == null ? StringUtils.EMPTY : label;\n }" ]
[ "0.74890727", "0.7119316", "0.6645198", "0.6574223", "0.6574223", "0.6564076", "0.65543455", "0.6538905", "0.646888", "0.645213", "0.64074284", "0.64074284", "0.64074284", "0.64074284", "0.6381509", "0.6381509", "0.6381509", "0.6356601", "0.63276196", "0.63254726", "0.63089454", "0.6305938", "0.6295461", "0.62857616", "0.62857616", "0.627183", "0.62717795", "0.6261788", "0.625417", "0.6250214", "0.6245501", "0.62452036", "0.62394804", "0.62394804", "0.62394804", "0.6237523", "0.6237152", "0.6230459", "0.62236613", "0.62203526", "0.6198013", "0.6198013", "0.6198013", "0.6193729", "0.6179698", "0.6173174", "0.6158697", "0.6158697", "0.6158697", "0.6158697", "0.6156602", "0.61535096", "0.6150666", "0.6146303", "0.6143646", "0.614163", "0.61403674", "0.61403674", "0.61403674", "0.61403674", "0.6139745", "0.61353046", "0.6134994", "0.6129982", "0.6124687", "0.6100525", "0.6100525", "0.60964817", "0.60821223", "0.6077314", "0.60762644", "0.60454166", "0.6042175", "0.6034585", "0.6028666", "0.60281277", "0.602618", "0.6023638", "0.60199916", "0.6015114", "0.6008362", "0.6005963", "0.59831816", "0.59738296", "0.5970177", "0.59545875", "0.5952969", "0.5922969", "0.5917504", "0.5910595", "0.59083", "0.59056324", "0.5904156", "0.58965904", "0.58781564", "0.5877296", "0.58723575", "0.58722585", "0.58697563", "0.5867389" ]
0.81339896
0
Retrieve the Floater Label
public org.drip.state.identifier.FloaterLabel floaterLabel() { return _lsPeriod.get (0).floaterLabel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getLabel();", "public double getLabel() {\n\t\treturn label;\n\t}", "java.lang.String getLabel();", "public java.lang.String getLabel();", "String getLabel();", "String getLabel();", "public org.drip.state.identifier.FXLabel fxLabel()\n\t{\n\t\treturn _lsPeriod.get (0).fxLabel();\n\t}", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public String getLabel();", "Label getLabel();", "Label getLabel();", "Label getLabel();", "public String getLabelText();", "public String getLabelName() {\r\n if( this.jlblHolder != null )\r\n return this.jlblHolder.getText();\r\n else\r\n return label;\r\n }", "public String getLabel() {\n return TrackerRes.getString(\"ModelFunctionPanel.Label\"); //$NON-NLS-1$\n }", "public org.drip.state.identifier.OTCFixFloatLabel otcFixFloatLabel()\n\t{\n\t\torg.drip.state.identifier.FloaterLabel floaterLabel = floaterLabel();\n\n\t\treturn null != floaterLabel && floaterLabel instanceof org.drip.state.identifier.OTCFixFloatLabel ?\n\t\t\t(org.drip.state.identifier.OTCFixFloatLabel) floaterLabel : null;\n\t}", "public String getLabel()\n { \n return label;\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel() {\n return _label == null ? name() : _label;\n }", "public String getLabel()\n {\n return label;\n }", "public String getLabel()\n {\n return label;\n }", "public String getLabel() {\r\n return lbl;\r\n }", "DatasetLabel getLabel();", "public String getLabel(){\n return label;\n }", "public String getLabel()\n {\n return m_label;\n }", "public String getLabel() {\n return label;\n }", "private Label createScoreFloatLabel(){\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(\"\"+Math.round(playerInput.gameScore),textStyle);\n text.setFontScale(2f*scale,2f*scale);\n text.setAlignment(Align.center);\n text.setPosition(stage.getViewport().getCamera().viewportWidth * 0.5f,\n stage.getViewport().getCamera().viewportHeight * 0.60f);\n return text;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public Object getLabel() \n {\n return label;\n }", "public String getLabel() {\n\t\treturn myLabel;\n\t}", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\n return label;\n }", "public String getLabel()\n\t{\n\t\treturn label;\n\t}", "public String getLabel(){\n\t\treturn label;\n\t}", "public org.drip.state.identifier.ForwardLabel forwardLabel()\n\t{\n\t\torg.drip.state.identifier.FloaterLabel floaterLabel = floaterLabel();\n\n\t\treturn null != floaterLabel && floaterLabel instanceof org.drip.state.identifier.ForwardLabel ?\n\t\t\t(org.drip.state.identifier.ForwardLabel) floaterLabel : null;\n\t}", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() { //gets the label\n\n\t\treturn rawLabel;\n\t}", "public String getLabel() {\n return getElement().getChildren()\n .filter(child -> child.getTag().equals(\"label\")).findFirst()\n .get().getText();\n }", "String getLabel(Renderer renderer) {\n\t\treturn (renderer != null) ? renderer.getNodeLabel(this) : getLabel();\n\t}", "public String getLabel() {\r\n return layout.label;\r\n }", "public String getLabel() {\n\t\t// just return item text until we get the grade levels straighted out for\n\t\t// comm_core\n\t\treturn this.itemText;\n\t\t/*\n\t\t * if (this.label == null) { if (this.getLevel() == 1) { this.label =\n\t\t * this.itemText; } else if (this.getIsLeafNode()) { this.label = \"[\" +\n\t\t * this.getGradeRange() + \"] \" + this.itemText; } else { this.label =\n\t\t * this.itemText + \" [\" + this.getGradeRange() + \"]\"; } } return this.label;\n\t\t */\n\t}", "public String getLabel() {\r\n\t\tif (label != null)\r\n\t\t\treturn label;\r\n\t\tif (classSimpleName==null)\r\n\t\t\treturn null;\r\n\t\treturn classSimpleName.replace('.', '_');\r\n\t}", "String getLabel() {\n return label;\n }", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "private String getLabel() {\n return this.label;\n }", "public String getLabel() {\n\t\treturn label;\n\t}", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Label getLabel() {\r\n return label;\r\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public Label getLabel() {\n\t\treturn label;\n\t}", "public Label getLabel() {\n\t\treturn label;\n\t}", "default String getLabel() { return ((TensorImpl<?>) this).find(NDFrame.class).map(NDFrame::getLabel).orElse(\"\"); }", "public final String getLabel() {\n\t\treturn _label;\n\t}", "public abstract String getLabel();", "public String getLabel() {\n return label == null ? StringUtils.EMPTY : label;\n }", "public String getLabel() {\n return this.label;\n }", "public abstract String getLabelText();", "public int getLabel() {\n\t\treturn label;\n\t}", "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 }", "public String label() {\n\t\treturn \"LABEL_\" + (labelCount++);\n\t}", "public Label getLabel() {\n return this.label;\n }", "public String getLabel() {\n return name().toLowerCase().replace(\"_\", \"\");\n }", "public String getLabel() {\n\t\treturn this._label;\n\t}", "public Label getLabel() {\n\t\treturn this.label;\n\t}", "public L getLabel() {\n\t\tcheckRep();\n\t\treturn this.label;\n\t}", "protected StickyNoteFigure getLabel() {\n\t\treturn stickyNote;\n\t}", "String nameLabel();", "com.microsoft.schemas.xrm._2011.contracts.Label getLabel();", "public final Label getLabel() {\n return label;\n }", "public Object getLabel() {\n if (this.label != null) {\n return this.label;\n }\n\n return this.getDefaultLabel();\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 }", "public java.lang.String getLabel() {\n\t\treturn this.label;\n\t}", "public String getLabelName() {\n return m_labelName;\n }", "public T2 getLabel() {\r\n\t\treturn label;\r\n\t}", "public\t\tMiPart\t\tgetLabel()\n\t\t{\n\t\treturn(label);\n\t\t}", "com.google.ads.googleads.v6.resources.Label getLabel();", "public String label() {\n return this.label;\n }", "private String getLabel(int aValue) {\n\t\tif (fRadix == radix_Hex) {\n\t\t\treturn Format.toHexString(aValue);\n\t\t} else {\n\t\t\tif (fType == type_Float) {\n\t\t\t\treturn \"\" + (double)aValue;\n\t\t\t} else {\n\t\t\t\treturn \"\" + aValue;\n\t\t\t}\n\t\t}\n\t}", "public String getLabel(){\n\t\treturn sAnzeige;\n\t}", "public DrawStringObject\ngetNumberLabel()\n{\n\tVector labelList = this.getLabelList();\n\tif (labelList == null)\n\t\treturn (null);\n\tif ((labelList.size() <= 0) || (labelList.size() > 2))\n\t\treturn (null);\n\tDrawObject drwObj0 = null;\n\tDrawObject drwObj1 = null;\n\tdrwObj0 = (DrawObject)labelList.elementAt(0);\n\tif (labelList.size() == 2)\n\t\tdrwObj1 = (DrawObject)labelList.elementAt(1);\n\tif ((drwObj1 == null) && (drwObj0 instanceof DrawLineObject))\n\t\treturn (null);\n\tif (drwObj1 == null)\n\t\treturn (null);\n\tif ((drwObj0 instanceof DrawLineObject) && (drwObj1 instanceof DrawStringObject))\n\t{\n\t\ttry\n\t\t{\n\t\t\tint val = Integer.parseInt(((DrawStringObject)drwObj1).getDrawString());\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\treturn (null);\n\t\t}\n\t\treturn ((DrawStringObject)drwObj1);\n\t}\n\tif ((drwObj1 instanceof DrawLineObject) && (drwObj0 instanceof DrawStringObject))\n\t{\n\t\ttry\n\t\t{\n\t\t\tint val = Integer.parseInt(((DrawStringObject)drwObj0).getDrawString());\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\treturn (null);\n\t\t}\n\t\treturn ((DrawStringObject)drwObj0);\n\t}\n\treturn (null);\n}", "public int getEstimated_label() {\r\n\t\treturn estimated_label;\r\n\t}", "public JLabel getLabel() {\n return label;\n }", "String getFormFieldLabel();", "public String getxLabel() {\n return xLabel;\n }", "@Override\n\t\t\tpublic String getLabel() {\n\t\t\t\treturn null;\n\t\t\t}", "public org.drip.state.identifier.FundingLabel fundingLabel()\n\t{\n\t\treturn _lsPeriod.get (0).fundingLabel();\n\t}", "public JLabel getLabel() {\n return this.label;\n }" ]
[ "0.7404111", "0.7171602", "0.7142909", "0.7082574", "0.7047373", "0.7047373", "0.6984798", "0.6916601", "0.6916601", "0.6916601", "0.6916601", "0.6829055", "0.6829055", "0.6829055", "0.68015355", "0.6695824", "0.66602117", "0.66466355", "0.66288865", "0.6620785", "0.6620785", "0.6606571", "0.66014457", "0.65889215", "0.657987", "0.6573458", "0.656912", "0.65665036", "0.6555488", "0.6542298", "0.654044", "0.6536446", "0.6536446", "0.6536446", "0.6526473", "0.6521165", "0.65150553", "0.6512568", "0.6511534", "0.65110767", "0.6509578", "0.6495378", "0.6495378", "0.6495378", "0.64880687", "0.64833236", "0.6473389", "0.64691794", "0.6467835", "0.6458822", "0.6447968", "0.64359975", "0.64359975", "0.64359975", "0.64359975", "0.64150596", "0.63999385", "0.63918334", "0.6390116", "0.6390116", "0.6390116", "0.6390116", "0.6389875", "0.6389875", "0.6375116", "0.6369462", "0.63687795", "0.6361044", "0.6358955", "0.6356091", "0.63517725", "0.6334111", "0.63079387", "0.6305263", "0.6303737", "0.6303627", "0.63014984", "0.62755305", "0.6273432", "0.6269545", "0.6268195", "0.6268038", "0.6266684", "0.6265113", "0.6247972", "0.6224421", "0.62227684", "0.61897045", "0.6175491", "0.61706835", "0.61603856", "0.6155013", "0.61296535", "0.6121774", "0.60999", "0.60990274", "0.6081193", "0.60721093", "0.6060898", "0.604775" ]
0.8097507
0