query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Posting parameters to login url
@Override protected Map<String, String> getParams() { Map<String, String> params = new HashMap<>(); params.put("email", email); params.put("password", password); return params; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void postLoginPage() {\n post(\"/login\", \"application/json\", (req, res) -> {\n HomerAccount loggedInAccount = homerAuth.login(req.body());\n if(loggedInAccount != null) {\n req.session().attribute(\"account\", loggedInAccount);\n res.redirect(\"/team\");\n } else {\n res.redirect(\"/login\");\n }\n return null;\n });\n }", "@POST\n @Path(\"user/login\")\n @Consumes(MediaType.APPLICATION_FORM_URLENCODED)\n public void userLogIn(@FormParam(\"email\") String email, @FormParam(\"password\") String password){\n \n // set the userSession Variable here\n System.out.println(email);\n System.out.println(password);\n \n userSession = 1; // change to the id retrieved from the db search\n \n }", "@FormUrlEncoded\n @POST(\"/linker/login\")\n Call<LoginResponse> login(@FieldMap Map<String, Object> parameters);", "RequestResult loginRequest() throws Exception;", "@org.junit.Test\r\n\tpublic void login() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"LoginServlet?action=login\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"info\", \"jitl\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"info2\", \"admin\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"info3\", \"admin\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t\tSystem.out.println(string);\r\n\t}", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "private void submitForm() {\n // Build list params\n List<NameValuePair> list = new ArrayList<>();\n list.add(new BasicNameValuePair(\"tag\", AppConfig.TAG_LOGIN));\n list.add(new BasicNameValuePair(\"username\", editTextLogin.getText().toString()));\n list.add(new BasicNameValuePair(\"password\", editTextPassword.getText().toString()));\n\n ConnectionTask connectionTask = new ConnectionTask(this, list);\n connectionTask.execute();\n }", "private void login(String username,String password){\n\n }", "void redirectToLogin();", "private void adminLogin() {\n\t\tdriver.get(loginUrl);\r\n\t\t// fill the form\r\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(USERNAME);\r\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(PASSWORD);\r\n\t\t// submit login\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t}", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "public void PreparedPostRequest(String username, String password);", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"tag\", \"login\");\n params.put(\"username\", username);\n\n\n return params;\n }", "public void loginRequest(View view){\n\n callLoginServlet();\n }", "@Override\n\tpublic void login(HttpClient client) throws Exception {\n\t\tHttpPost request = new HttpPost(Html.fromHtml(URL).toString());\n\n\t\t// send password and user name\n\t\tList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(3);\n\t\tnameValuePairs.add(new BasicNameValuePair(\"asdf\", username));\n\t\tnameValuePairs.add(new BasicNameValuePair(\"fdsa\", password));\n\t\tnameValuePairs.add(new BasicNameValuePair(\"submit\", \" Anmelden \"));\n\t\trequest.setEntity(new UrlEncodedFormEntity(nameValuePairs, HTTP.UTF_8));\n\n\t\tHttpResponse response = client.execute(request);\n\t\tprintResponseHeader(response);\n\n\t\tString content = EntityUtils.toString(response.getEntity());\n\n\t\tif (loginFailed(content)) {\n\t\t\tLog.e(TAG, \"login was NOT successful\");\n\t\t\tthrow new Exception(\"login failed, username or password not correct\");\n\t\t}\n\n\t\turl = parseMenu(content);\n\t\tif (DEBUG) Log.v(TAG, url);\n\n\t}", "void login(String user, String password);", "protected void login() {\n\t\t\r\n\t}", "public void doLogin(final String email, final String password) {\n pDialog.setMessage(\"Logging in ...\");\n showDialog();\n\n StringRequest strReq = new StringRequest(Request.Method.POST,\n AppConstants.URL_LOGIN, new Response.Listener<String>() {\n\n @Override\n public void onResponse(String response) {\n Log.d(TAG, \"Login Response: \" + response.toString());\n hideDialog();\n\n try {\n JSONObject jObj = new JSONObject(response);\n String token = jObj.getString(\"accessToken\");\n\n if (token != null) {\n // Save login session\n session.saveAccessToken(token);\n\n // Launch main activity\n Intent intent = new Intent(LoginActivity.this,\n MapsActivity.class);\n startActivity(intent);\n finish();\n } else {\n // Error in login. Get the error message\n Toast.makeText(getApplicationContext(),\n \"Login error\", Toast.LENGTH_LONG).show();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(), \"Json error: \" + e.getMessage(),\n Toast.LENGTH_LONG).show();\n }\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(TAG, \"Login Error: \" + error.getMessage());\n Toast.makeText(getApplicationContext(),\n error.getMessage(), Toast.LENGTH_LONG).show();\n hideDialog();\n }\n }) {\n\n @Override\n protected Map<String, String> getParams() {\n // Posting parameters to login url\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"email\", email);\n params.put(\"password\", password);\n\n return params;\n }\n };\n\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n requestQueue.add(strReq);\n }", "@FormUrlEncoded\n @POST(\"login.php\")\n Call<LoginResponse> loginRequest(@Field(\"username\") String username,\n @Field(\"password\") String password);", "public void sendRequest(View view) {\r\n\t\t\r\n\t\tHttpClient httpClient = new DefaultHttpClient();\r\n\t\tHttpPost httpPost = new HttpPost(\"http://www.example.com/login\");\r\n\t\t\r\n\t\t// add the post parameters to the HttpPost object\r\n\t\tList<NameValuePair> nameValuePair = new ArrayList<NameValuePair>();\r\n\t\tnameValuePair.add(new BasicNameValuePair(\"email\", \"[email protected]\"));\r\n\t\tnameValuePair.add(new BasicNameValuePair(\"password\", \"abcdefgh\"));\r\n\t\t\r\n\t\t// encode the URL post parameters\r\n\t\ttry {\r\n\t\t\thttpPost.setEntity(new UrlEncodedFormEntity(nameValuePair));\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t//e.printStackTrace();\r\n\t\t\tToast.makeText(this, e.getStackTrace().toString(), Toast.LENGTH_SHORT).show();\r\n\t\t}\r\n\t\t\r\n\t\t// get the http response\r\n\t\ttry {\r\n\t\t\tHttpResponse response = httpClient.execute(httpPost);\r\n\t\t\tString responseString = response.toString();\r\n\t\t\t\r\n\t\t} catch (ClientProtocolException e) {\r\n\t\t\t//e.printStackTrace();\r\n\t\t\tToast.makeText(this, e.getStackTrace().toString(), Toast.LENGTH_SHORT).show();\r\n\t\t} catch (IOException e) {\r\n\t\t\t//e.printStackTrace();\r\n\t\t\tToast.makeText(this, e.getStackTrace().toString(), Toast.LENGTH_SHORT).show();\r\n\t\t}\r\n\t}", "protected void doPostLogin(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tout.println(\"Look where we are, it's the login page\");\n\t\t\n\t\t//get parameter Names\n\t\tsetParameters(request);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tKeyspace keyspace = Connection.getKeyspace();\n\t\tStringSerializer se = StringSerializer.get();\n\t\t\n\t\ttry\n\t\t{\n\t\t\t// given Keyspace keyspace and StringSerializer se\n\t\t\tSliceQuery<String, String, String> q = HFactory.createSliceQuery(keyspace, se, se, se);\n\t\t\tq.setColumnFamily(\"Users\") .setKey(displayName).setColumnNames(\"fullname\", \"email\", \"password\");\n\t\t\tQueryResult<ColumnSlice<String, String>> r = q.execute();\n\n\t\t\tfullname = r.get().getColumnByName(\"fullname\").getValue();\n\t\t\temail = r.get().getColumnByName(\"email\").getValue();\n\n\t\t\tif(password.equals(r.get().getColumnByName(\"password\").getValue()))\n\t\t\t{\n\t\t\t\t//LOGGED IN CORRECTLY\n\t\t\t\t\n\t\t\t\tmySexySession.setAttribute(\"displayName\", displayName);\n\t\t\t\tmySexySession.setAttribute(\"fullname\", fullname);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmySexySession.setAttribute(\"message\", \"Incorrect Password.\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\t//catches happen when the key is not found (i.e. user doesn't exist)\n\t\t\tmySexySession.setAttribute(\"message\", \"User does not exist.\");\n\t\t}\n\t\tresponse.sendRedirect(\"/quotes/home\");\n\t}", "protected Response login() {\n return login(\"\");\n }", "private void userLogin(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "protected Response login(String environment) {\n environment = Strings.isNullOrEmpty(environment) ? \"\"\n : \"/\" + environment;\n JsonObject creds = new JsonObject();\n creds.addProperty(\"username\", \"admin\");\n creds.addProperty(\"password\", \"admin\");\n Response resp = post(environment + \"/login\", creds.toString());\n return resp;\n }", "private void loginUser() throws JSONException, UnsupportedEncodingException {\n JSONObject jsonObject = new JSONObject();\n jsonObject.put(\"username\", editUserName.getText().toString());\n jsonObject.put(\"password\", editPassword.getText().toString());\n jsonObject.put(\"DeviceID\", diviceToken);\n jsonObject.put(\"DevicePlatform\", devicePlatform);\n invokeLogin(jsonObject);\n\n\n }", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "private void loginForm(HttpServletRequest req, HttpServletResponse res)\n throws IOException {\n String url = req.getRequestURI();\n String query = req.getQueryString();\n if (query != null) {\n url = url + '?' +query;\n }\n ProtectedRequest target = new ProtectedRequest(url);\n\n // Store in current session\n HttpSession session = req.getSession(true);\n session.setAttribute(AuthSessions.REQUEST_ATTRIBUTE, target);\n\n res.sendRedirect(this.loginForm);\n }", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "Login.Req getLoginReq();", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String email = request.getParameter(\"email\");\n String pass = request.getParameter(\"password\");\n\n Account account = new AccountDAO().login(email, pass);\n if (account != null) {\n //add account to session\n response.getWriter().println(\"Login successfully\");\n request.getSession().setAttribute(\"account\", account);\n response.sendRedirect(\"home\");\n } else {\n// response.getWriter().println(\"Login failed\");\n response.sendRedirect(\"login\");\n }\n }", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "private void loginSubmit(boolean rememberValues)\n\t{\n\t\tif((usernameItem.getValueAsString() == null) || (passwordItem.getValueAsString() == null))\n\t\t\treturn;\n\t\tString local = localItem.getValueAsString();\n\t\tif(local == null)\n\t\t\tlocal = \"\";\n\t\t\n\t\tif (rememberValues) {\n\t\t\tlong cookieLifespan = 1000 * 60 * 60 * 24 * 365; // one year\n\t\t Date expires = new Date(System.currentTimeMillis() + cookieLifespan);\n\t\t \n\t\t Cookies.setCookie(\"bffRememberNameLoc\", \"true\", expires, null, \"/\", false);\n\t\t \n\t\t\tString username = usernameItem.getValueAsString();\n\t\t\tCookies.setCookie(\"bffLastName\", username, expires, null, \"/\", false);\n\t\t\tCookies.setCookie(\"bffLastLocation\", local, expires, null, \"/\", false);\n\t\t} else {\n\t\t\tCookies.removeCookie(\"bffRememberNameLoc\", \"/\");\n\t\t\tCookies.removeCookie(\"bffLastName\", \"/\");\n\t\t\tCookies.removeCookie(\"bffLastLocation\", \"/\");\n\t\t}\n\t\t\n\t\tmyCallbackInterface.performLoginCallback(usernameItem.getValueAsString(), \n\t\t\t\t\t\t\t\t\t\t\t\t passwordItem.getValueAsString(),\n\t\t\t\t\t\t\t\t\t\t\t\t local);\n\t\tdestroy();\n\t}", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "void loginAttempt(String email, String password);", "public void performLogin(View view) {\r\n // Do something in response to button\r\n\r\n Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://dev.m.gatech.edu/login/private?url=gtclicker://loggedin&sessionTransfer=window\"));\r\n startActivity(myIntent);\r\n }", "public static void main(String[] args) {\n\t\tString homeUrl= \"http://localhost/upload/login.php\";\r\n\t\tString loginUrl= \"http://localhost/upload/login.php?\";\r\n\t\tString postData= \"forward=&jumpurl=http%3A%2F%2Flocalhost%2Fupload%2Fthread.php%3Ffid%3D10&step=2&lgt=0&pwuser=admin&pwpwd=admin&hideid=0&cktime=31536000\";\r\n\t\t//String ResponseByLogin= new CommonHandler().sendPost(loginUrl, postData);\r\n\t\tnew HttpRequestor().sendGet(homeUrl);\r\n\t\tSystem.out.println(new HttpRequestor().mycookie);\r\n\t\tnew HttpRequestor().sendPost(loginUrl, postData);\r\n\t\tSystem.out.println(\"==============================\");\r\n\t\tSystem.out.println(new HttpRequestor().mycookie);\r\n\t\t\r\n\r\n\t}", "@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) {\n\n\t\tString id = request.getParameter(\"id\");\n\t\tString pw = request.getParameter(\"pw\");\n\n\t\tMemberDao dao = MemberDao.getInstance();\n\t\tint checkNum = dao.login(id, pw);\n\n\t\trequest.setAttribute(\"checkNum\", checkNum);\n\t\trequest.setAttribute(\"id\", id);\n\t\trequest.setAttribute(\"pw\", pw);\n\n\t}", "@Action(value = \"userAction_login\", results = {\n\t\t\t@Result(name = \"login-error\", location = \"/login.jsp\"),\n\t\t\t@Result(name = \"login-ok\", type = \"redirect\", location = \"/index.jsp\"),\n\t\t\t@Result(name = \"login-params-error\", location = \"/login.jsp\") })\n\t@InputConfig(resultName = \"login-params-error\")\n\tpublic String login() {\n\t\tremoveSessionAttribute(\"key\");\n\t\ttry {\n\t\t\t// 1.获取subject对象\n\t\t\tSubject subject = SecurityUtils.getSubject();\n\t\t\t// 2.获取令牌对象(封装参数数据)\n\t\t\tUsernamePasswordToken token = new UsernamePasswordToken(\n\t\t\t\t\tmodel.getEmail(), model.getPassword());\n\t\t\tsubject.login(token);\n\t\t\treturn \"login-ok\";\n\t\t} catch (AuthenticationException e) {\n\t\t\te.printStackTrace();\n\t\t\tthis.addActionError(this.getText(\"login.emailorpassword.error\"));\n\t\t\treturn \"login-error\";\n\t\t}\n\t}", "@Override\n\t\tprotected String doInBackground(String... params) {\n\t\t\t\n\t\t\tList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(3);\n\t\t\tnameValuePairs.add(new BasicNameValuePair(\"type\",\"login\"));\n\t nameValuePairs.add(new BasicNameValuePair(\"email\",usernameedit.getText().toString()));\n\t nameValuePairs.add(new BasicNameValuePair(\"password\", password.getText().toString()));\n\t\t\t\n\t\t\tString data = request.getDataFromServer(ServerRequest.pathLogin,nameValuePairs);\n\t\t\t//loginLabel.setText(data);\n\t\t\t\n\t\t\treturn data;\n\t\t}", "private void action_login_utente(HttpServletRequest request, HttpServletResponse response) throws IOException{\n //recupero credenziali di login\n String email = SecurityLayer.addSlashes(request.getParameter(\"email\").toLowerCase());\n email = SecurityLayer.sanitizeHTMLOutput(email);\n String password = SecurityLayer.addSlashes(request.getParameter(\"password\"));\n password = SecurityLayer.sanitizeHTMLOutput(password);\n if(!email.isEmpty() && !password.isEmpty()){\n try {\n //recupero utente dal db\n Utente u = ((PollwebDataLayer)request.getAttribute(\"datalayer\")).getUtenteDAO().getUtenteByEmail(email);\n //controllo che l'utente esista\n if(u != null){\n //controllo i parametri\n if(u.getEmail().equalsIgnoreCase(email) && new BasicPasswordEncryptor().checkPassword(password, u.getPassword())){\n //se l'utente esiste ed è lui\n\n request.setAttribute(\"userName\", u.getNome());\n request.setAttribute(\"user_id\", u.getId());\n System.out.println(u.getId());\n\n SecurityLayer.createSession(request, u.getId());\n\n if (request.getParameter(\"referrer\") != null) {\n response.sendRedirect(request.getParameter(\"referrer\"));\n } else {\n response.sendRedirect(\"/home\");\n }\n }else{\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n request.setAttribute(\"error\", \"Credenziali errate\");\n response.sendRedirect(\"/login?error=100\");\n }\n }\n\n }else{\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login&error=102\");\n }\n }\n }catch (DataException ex) {\n //TODO Handle Exception\n\n }\n } else {\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login?error=101\");\n }\n }\n }", "public void login_customer(View view){\n\n final EditText email = (EditText) findViewById(R.id.account_email);\n final EditText password = (EditText) findViewById(R.id.account_password);\n\n RequestParams rp = new RequestParams();\n rp.add(\"customer\", email.getText().toString());\n rp.add(\"password\", password.getText().toString());\n\n error = \"\";\n HttpUtils.put(\"customer-login\", rp, new JsonHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n refreshErrorMessage();\n ((Global) getApplicationContext()).setEmail(email.getText().toString());\n ((Global) getApplicationContext()).setPassword(password.getText().toString());\n try {\n ((Global) getApplicationContext()).setName(response.get(\"name\").toString());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n Intent intent = new Intent(MainActivity.this, DashBoard.class);\n startActivity(intent);\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {\n\n error += \"Wrong combination.\";\n refreshErrorMessage();\n }\n });\n\n }", "@Override\n\tpublic String login_request() {\n\t\treturn null;\n\t}", "public void login(String username, String password) {\n HttpClient httpclient = new DefaultHttpClient();\n HttpPost httppost = new HttpPost(\n \"https://epitech-tiekeo.c9.io/login/check-mobile\");\n\n try {\n // Add your data\n List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();\n nameValuePairs.add(new BasicNameValuePair(\"username\",\n username));\n nameValuePairs.add(new BasicNameValuePair(\"password\",\n password));\n httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\n\n // Execute HTTP Post Request\n HttpResponse response = httpclient.execute(httppost);\n HttpEntity entity = response.getEntity();\n InputStream is = entity.getContent();\n String resp = convertStreamToString(is);\n System.out.println(\"tssttt \"+resp);\n\n } catch (ClientProtocolException e) {\n // TODO Auto-generated catch block\n } catch (IOException e) {\n // TODO Auto-generated catch block\n }\n }", "@Test\n public void bTestLogin(){\n given()\n .param(\"username\", \"playlist\")\n .param(\"password\", \"playlist\")\n .post(\"/login\")\n .then()\n .statusCode(200);\n }", "void loginDone();", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n String login = req.getParameter(\"login\");\n String password = req.getParameter(\"password\");\n if (logic.isExisting(login, password)) {\n HttpSession session = req.getSession();\n session.setAttribute(\"login\", login);\n if (logic.isAdmin(login)) {\n session.setAttribute(\"role\", \"admin\");\n }\n resp.sendRedirect(String.format(\"%s/\", req.getContextPath()));\n } else {\n req.setAttribute(\"error\", \"Credentional is invalid\");\n doGet(req, resp);\n }\n }", "@Override\r\n\tpublic void login() {\n\r\n\t}", "public void login(String login, String password) {\n driver.findElement(By.xpath(\"//input[@id='email']\")).sendKeys(login);\n driver.findElement(By.xpath(\"//input[@id='passwd']\")).sendKeys(password);\n driver.findElement(By.xpath(\"//button[@name='submitLogin']\")).click();\n\n }", "public void authenticate(LoginRequest loginRequest) {\n\n }", "@Override\n\tpublic AdminDTO loginpost(AdminloginDTO login) {\n\t\treturn adao.loginpost(login);\n\t}", "User loginUser(User userLoginRequest, HttpSession httpSession) throws Exception;", "public void loginClick(View view) {\n userID = mUserIDEdit.getText().toString().trim();\n username = mUsernameEdit.getText().toString().trim();\n password = mPasswordEdit.getText().toString().trim();\n if(userID.length() == 0 | username.length() == 0| password.length() == 0){\n Toast.makeText(getApplicationContext(), \"Please Enter Information For All Fields\", Toast.LENGTH_LONG).show();\n return;\n }\n\n progressDialog = new ProgressDialog(LoginActivity.this);\n progressDialog.setTitle(\"Logging In\");\n progressDialog.setMessage(\"Attempting...\");\n progressDialog.show();\n String url = Uri.parse(urlLogin).toString();\n\n StringRequest request = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n //Toast.makeText(getApplicationContext(), \"Post Data: \" + response, Toast.LENGTH_LONG).show();\n progressDialog.dismiss();\n Log.d(\"Text on webpage: \", \"\" + response);\n checkResponse(response);\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n progressDialog.dismiss();\n Toast.makeText(getApplicationContext(), \"Volley error\" + error.toString(), Toast.LENGTH_LONG).show();\n }\n }) {\n @Override\n protected Map<String, String> getParams(){\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"userID\", userID); //give user ID to server\n params.put(\"user\", username);\n params.put(\"pw\", password);\n return params;\n }\n\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n return params;\n }\n };\n mRequestQueue.add(request);\n }", "private void login(final String email, final String password){\n String tag_string_req = \"req_login\";\n progressDialog.setMessage(\"Logging in...\");\n progressDialog.show();\n\n StringRequest strReq = new StringRequest(Request.Method.POST,\n Utils.LOGIN_URL, new Response.Listener<String>() {\n\n @Override\n public void onResponse(String response) {\n Log.d(TAG, \"Login Response: \" + response.toString());\n\n try {\n JSONObject jObj = new JSONObject(response);\n boolean error = jObj.getBoolean(\"error\");\n\n // Check for error node in json\n if (!error) {\n // Now store the user in SQLite\n JSONObject user = jObj.getJSONObject(\"user\");\n String uName = user.getString(\"username\");\n String email = user.getString(\"name\");\n\n // Inserting row in users table\n userInfo.setEmail(email);\n userInfo.setUsername(uName);\n session.setLoggedin(true);\n\n startActivity(new Intent(Login.this, MainActivity.class));\n finish();\n } else {\n // Error in login. Get the error message\n String errorMsg = jObj.getString(\"error_msg\");\n toast(errorMsg);\n }\n } catch (JSONException e) {\n // JSON error\n e.printStackTrace();\n toast(\"Json error: \" + e.getMessage());\n }\n\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(TAG, \"Login Error: \" + error.getMessage());\n toast(\"Unknown Error occurred\");\n progressDialog.hide();\n }\n\n }) {\n\n @Override\n protected Map<String, String> getParams() {\n // Posting parameters to login url\n Map<String, String> params = new HashMap<>();\n params.put(\"email\", email);\n params.put(\"password\", password);\n\n return params;\n }\n\n };\n\n // Adding request to request queue\n // AndroidLoginController.getInstance().addToRequestQueue(strReq, tag_string_req);\n Volley.newRequestQueue(getApplicationContext()).add(strReq);\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n String username = request.getParameter(\"email\");\n\n // Send the response back to the user\n try {\n response.setContentType(\"text/html\");\n PrintWriter writer = response.getWriter();\n response.sendRedirect(\"/login/index.html?username=\"+ username);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static Result login(){\n String username= Form.form().bindFromRequest().get(\"username\");\n String password= Form.form().bindFromRequest().get(\"password\");\n String new_user= Form.form().bindFromRequest().get(\"new_user\");\n if(new_user != null){\n return ok(login.render(username,password));\n } else {\n Skier s=Session.authenticate(username,password);\n if(s==null){\n return badRequest(index.render(\"Invalid Username or Password\"));\n } else {\n login(s);\n return redirect(\"/home\");\n }\n }\n }", "public Single<LoginResponse> requestLogin(Map<String, String> params) {\n return supportAppService.login(params);\n }", "@Override\n protected void doPost(HttpServletRequest req,\n HttpServletResponse resp)\n throws ServletException, IOException {\n\n String requestBody = \"\";\n requestBody = IOUtils.toString(req.getReader());\n String[] usernameAndPassword = requestBody.split(\"&\");\n String username = usernameAndPassword[0].substring(9);\n String password = usernameAndPassword[1].substring(9);\n LoginDAO loginDAO = new LoginDAO();\n JsonCredential credential = loginDAO.login(username,password);\n if(credential == null) {\n // send invalid login response\n log.info(\"LoginServlet, Invalid Username/Password\");\n String invalidLoginURL = String.format(\"%s/\", req.getContextPath());\n resp.setStatus(401);\n }\n else{\n // login user, maybe with a redirect\n String credentialAsString = credential.makeJsonString();\n if(!credentialAsString.equals(\"\")) {\n // encoding prevents issue where Tomcat sees Cookie as invalid\n credentialAsString = URLEncoder.encode(credentialAsString,\"UTF-8\");\n Cookie cookie = new Cookie(\"expenseapp_authenticationcookie\",credentialAsString);\n cookie.setMaxAge(1200000); //roughly 2 weeks before expiration\n if(credential.getPermissionName().equals(\"Employee\")) {\n resp.addCookie(cookie);\n String employeeHomeScreen = String.format(\"%s/employeehomescreen.html\", req.getContextPath());\n resp.sendRedirect(employeeHomeScreen);\n }\n else if(credential.getPermissionName().equals(\"Manager\")) {\n resp.addCookie(cookie);\n String managerHomeScreen = String.format(\"%s/managerhomescreen.html\", req.getContextPath());\n resp.sendRedirect(managerHomeScreen);\n }\n else{\n log.error(\"LoginServlet, Invalid Permission Name - 500 error\");\n resp.setStatus(500);\n String errorUrl = String.format(\"%s/500Error.html\", req.getContextPath());\n req.getRequestDispatcher(errorUrl).forward(req,resp);\n }\n }\n }\n\n }", "String login(Integer userId);", "@Override\n\t\tprotected String doInBackground(Void... params) {\n\t\t\tHttpClient httpclient = new DefaultHttpClient();\n\t\t\tHttpPost httppost = new HttpPost(Constants.URL.LOGIN_AUTHEN);\n\t\t\ttry {\n\t\t\t\t// Add your data\n\n\t\t\t\tList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();\n\t\t\t\tnameValuePairs.add(new BasicNameValuePair(\"username\", account));\n\t\t\t\tnameValuePairs\n\t\t\t\t\t\t.add(new BasicNameValuePair(\"password\", password));\n\t\t\t\thttppost.setEntity(new UrlEncodedFormEntity(nameValuePairs,\n\t\t\t\t\t\t\"UTF-8\"));\n\n\t\t\t\t// Execute HTTP Post Request\n\t\t\t\tHttpResponse response = httpclient.execute(httppost);\n\t\t\t\tint respnseCode = response.getStatusLine().getStatusCode();\n\t\t\t\tif (respnseCode == 200) {\n\t\t\t\t\tHttpEntity entity = response.getEntity();\n\t\t\t\t\treturn parseJson(EntityUtils.toString(entity));\n\t\t\t\t}\n\t\t\t} catch (ClientProtocolException e) {\n\t\t\t} catch (IOException e) {\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "public void process(String uid, String pass) throws IOException\n {\n System.out.println(\"Attempting to login with uid : \" + uid + \", pass : \" + pass + \" at : \" + BASE_URL);\n\n // Get the login HTML document and Cookies\n HttpURLConnection loginHttp = getLoginHttp();\n Document loginDocument = getLoginPage(loginHttp);\n CookieUtils cookieUtils = getLoginCookies(loginHttp);\n\n // Prepare form data\n LoginData loginData = new LoginData(loginDocument, uid, pass);\n String formData = loginData.constructFormBody();\n\n // Submit the login request\n HttpURLConnection signInHttp = getSignInHttp();\n signInHttp.setDoOutput(true);\n signInHttp.setInstanceFollowRedirects(false);\n cookieUtils.saveCookies(signInHttp);\n writeFormBody(signInHttp, formData);\n cookieUtils.loadCookies(signInHttp);\n\n // Assign authentication and get workspace HTML\n HttpURLConnection workspaceUrl = getLoginHttp();\n cookieUtils.saveCookies(workspaceUrl);\n String workspaceHtml = HtmlUtils.downloadPage(workspaceUrl);\n\n System.out.println(workspaceHtml);\n }", "@RequestMapping(method = RequestMethod.POST)\n public ModelAndView doPost(@ModelAttribute(LOGIN_COMMAND) OpenidLoginFormBean_ids data, BindingResult errors, HttpServletRequest request) \n {\n final HttpSession session = request.getSession();\n\tfinal String username; \n\tfinal String password; \n\tString openid = null;\n\tBoolean user_authenticated = false;\n\t\t\n\t\t\n\tusername = data.getUsername(); /* a dict could be more useful ? */\n\tpassword = data.getPassword();\t/* user password is bound to the form backing object */\t\n\t\t\n\t\t\t\t\t\t\n\tif (LOG.isDebugEnabled()) LOG.debug(\"Attempting authentication with user=\"+username+\" password=\"+password);\n\t\t\n\tuser_authenticated = idp.authenticate_ids(username, password);\n\topenid = idp.getOpenid(username);\t\t\n\t\t\n\tif((user_authenticated) && (openid != null)) \n\t{\n\t return setPositiveSessionAuth(session, openid); \n\t} \n\telse \n\t{\n\t // set session-scope authentication flag to FALSE\n\t session.setAttribute(OpenidPars.SESSION_ATTRIBUTE_AUTHENTICATED, Boolean.FALSE);\n\t if (LOG.isDebugEnabled()) LOG.debug(\"Authentication error\");\n\t\t\t\n\t errors.reject(\"error.invalid\", new Object[] {}, \"Invalid OpenID and/or Password combination\");\n\t return new ModelAndView(view);\n\t}\n }", "@Override\n public void onClick(View v) {\n\n String username = etUsername.getText().toString().trim();\n String password = etPassword.getText().toString().trim();\n\n if (username.equalsIgnoreCase(\"\")) {\n Toast.makeText(LoginActivity.this, \"Login failed. Please enter username.\", Toast.LENGTH_LONG).show();\n\n } else if (password.equalsIgnoreCase(\"\")) {\n Toast.makeText(LoginActivity.this, \"Login failed. Please enter password.\", Toast.LENGTH_LONG).show();\n\n } else {\n\n\n // Code for step 1 start\n String url = \"http://10.0.2.2/C302_P09/doLogin.php\";\n HttpRequest request = new HttpRequest(url);\n request.setOnHttpResponseListener(mHttpResponseListener);\n request.setMethod(\"POST\");\n request.addData(\"username\", etUsername.getText().toString().trim());\n request.addData(\"password\", etPassword.getText().toString().trim());\n\n request.execute();\n // Code for step 1 end\n\n }\n }", "@Public\n\t@Get(\"/login\")\n\tpublic void login() {\n\t\tif (userSession.isLogged()) {\n\t\t\tresult.redirectTo(HomeController.class).home();\n\t\t}\n\t}", "@POST\n @Path(\"/data\")\n public String LogInAction(@FormParam( \"name\" )final String name,\n @FormParam( \"pass\" ) final String password )throws IOException {\n\n commandes.CMDUSER(name);\n if(commandes.CMDPASS(password)){\n login = true;\n return \"<?xml version=\\\\\\\"1.0\\\\\\\" encoding=\\\\\\\"UTF-8\\\\\\\"?>\\\"+\\n\" +\n \" \\\"<html xmlns=\\\\\\\"<xmlns />\\\\\\\" xml:lang=\\\\\\\"en\\\\\\\">\\\"+\\n\" +\n \" \\\"<head>\\\" +\\n\" +\n \" \\\"<title>Login OK</title>\\\" +\\n\" +\n \" \\\" </head>\\\" +\\n\" +\n \" \\\"<body><h1>Login ok</h1>\\\" +\"+\n \" <a href='/data/'>Click here</a>\"+\n \"</body>\" +\n \"</html>\";\n }\n return \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\"+\n \"<html xmlns=\\\"<xmlns />\\\" xml:lang=\\\"en\\\">\"+\n \"<head>\" +\n \"<title>Login</title>\" +\n \" </head>\" +\n \"<body>\" +\n \" <form action=\\\"/rest/tp2/ftp/login\\\" method=\\\"GET\\\">\" +\n \"<label for=\\\"name\\\">Login fail !</label>\" +\n \" <br/>\" +\n \"<input type=\\\"submit\\\" value=\\\"Submit\\\" />\" +\n \"</form>\" +\n \"</body>\" +\n \"</html>\";\n }", "public String signIn(String username, String password);", "@Override\n public JsonResponse duringAuthentication(String... params) {\n try {\n final String username = params[0];\n final String password = params[1];\n return RequestHandler.authenticate(this.getApplicationContext(), username, password);\n } catch (IOException e) {\n return null;\n }\n }", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}", "public void ClickLogin()\n\t{\n\t\t\n\t\tbtnLogin.submit();\n\t}", "private void login(){\n\t\tprogress.toggleProgress(true, R.string.pagetext_signing_in);\n\t\tParseUser.logInInBackground(email.split(\"@\")[0], password, new LogInCallback() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(ParseUser user, ParseException e) {\n\t\t\t\tif (e == null) {\n\t\t\t\t\tprogress.toggleProgress(false);\n\t\t\t\t\tIntent intent = new Intent(context, MainActivity.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t// else, incorrect password\n\t\t\t\t\tToast.makeText(context, \n\t\t\t\t\t\t\t\t getString(R.string.parse_login_fail, email), \n\t\t\t\t\t\t\t\t Toast.LENGTH_LONG).show();\t\t\t\t\t\n\t\t\t\t\tLog.e(\"Error Logging into Parse\", \"Details: \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\t\t\n\t\t});\n\t}", "public void login(String username, String password) {\n User user = new User(username, password);\r\n String paramBodyJsonStr = new Gson().toJson(user);\r\n Logger.d(\"paramBodyJsonStr=\" + paramBodyJsonStr);\r\n // handle login\r\n AndroidNetworking.post()\r\n .setContentType(\"application/json; charset=utf-8\")\r\n .setTag(this)\r\n .setUrl(Constants.URL_LOGIN)\r\n .build()\r\n .setApplicationJsonString(paramBodyJsonStr)\r\n .setAnalyticsListener(analyticsListener)\r\n .getAsJSONObject(new JSONObjectRequestListener() {\r\n @Override\r\n public void onResponse(JSONObject result) {\r\n Logger.d(\"response result=\" + result.toString());\r\n Result<LoggedInUser> defultResult = loginRepository.getDataSource().login(username, password);\r\n LoggedInUser data = ((Result.Success<LoggedInUser>) defultResult).getData();\r\n loginResult.setValue(new LoginResult(new LoggedInUserView(data.getDisplayName())));\r\n }\r\n\r\n @Override\r\n public void onError(ANError anError) {\r\n loginResult.setValue(new LoginResult(new Result.Error(anError)));\r\n Logger.d(\"anError=\" + anError.toString());\r\n if (!TextUtils.isEmpty(anError.getErrorDetail())) {\r\n Logger.d(\"getMessage=\" + anError.getMessage() + \" getErrorDetail=\" + anError.getErrorDetail());\r\n }\r\n }\r\n });\r\n\r\n }", "Login(String strLogin)\n {\n \tsetLogin(strLogin);\n }", "public void login(User user);", "public abstract User login(User data);", "private void loginUser(final String email, final String password){\n String cancel_req_tag = \"login\";\n progressDialog.setMessage(\"Logging you in...\");\n showDialog();\n \n Map<String, String> params = new HashMap<>();\n params.put(\"email\", email);\n params.put(\"password\", password);\n \n JSONObject req = new JSONObject(params);\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.POST, URL_FOR_LOGIN, req,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response){\n try{\n boolean error = response.getBoolean(\"error\");\n if(!error){\n Intent intent = new Intent(LoginActivity.this, UserActivity.class);\n String token = response.getString(\"token\");\n saveToken(getApplicationContext(), token);\n hideDialog();\n \n startActivity(intent);\n finish();\n } else {\n String error_msg = response.getString(\"error_msg\");\n Toast.makeText(getApplicationContext(), error_msg,Toast.LENGTH_LONG).show();\n hideDialog();\n }\n \n } catch (JSONException e){\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener(){\n @Override\n public void onErrorResponse(VolleyError error){\n Toast.makeText(getApplicationContext(), \"An error occurred while logging in, please try again.\", Toast.LENGTH_LONG).show();\n error.printStackTrace();\n hideDialog();\n }\n });\n \n AppSingleton.getInstance(getApplicationContext()).addToRequestQueue(jsonObjectRequest, cancel_req_tag);\n }", "@GET(\"/login\")\n Call<LoginResponse> loginRequest(@Path(\"username\") String username\n , @Path(\"password\") String password);", "public void doLogin(String u, String p) {\n final String oldUser = mUser;\n mUser = u;\n LoginRequest request = new LoginRequest(u, p,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String username) {\n //update variables\n mLogin = true;\n //set user to preferences\n mPreferences.setUser(username);\n mSingleton.updateActivityTypes();\n\n //reset drawer to load new user\n restartActivity();\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n // Error handling\n //reset current user to previous state\n mUser = oldUser;\n System.out.println(\"Something went wrong!\");\n error.printStackTrace();\n }\n });\n mSingleton.add(request);\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n String username = request.getParameter(\"Username\");\r\n String password = request.getParameter(\"Password\");\r\n\r\n HttpSession session = request.getSession();\r\n List<User> userList = sql.selectAllUsers();\r\n\r\n Boolean validUser = false;\r\n Boolean IsAdmin = false;\r\n\r\n if (userList != null && userList.isEmpty() == false) {\r\n for (User user : userList) {\r\n if (user.getUsername().equals(username)\r\n && user.getPass().equals(password)) {\r\n LoginHistory newLoginHistory = new LoginHistory(user.getUsersID(),LocalDate.now().toString(),\"test123\");\r\n sql.createLoginHistory(newLoginHistory);\r\n if (user.getUserType().equals(\"Admin\")) {\r\n IsAdmin = true;\r\n break;\r\n }\r\n session.setAttribute(Session.LOGIN_USERNAME, user.getUsername());\r\n System.out.println(user.getUsername());\r\n validUser = true;\r\n break;\r\n }\r\n }\r\n }\r\n if (session.getAttribute(Session.SITE) != null) {\r\n goToSite = session.getAttribute(Session.SITE).toString();\r\n }\r\n\r\n if (validUser && goToSite.equals(\"ProfilePage\")) {\r\n session.setAttribute(\"LoginUsername\", username);\r\n session.setAttribute(Session.SITE, \"\");\r\n response.sendRedirect(\"User/ProfilePage.jsp\");\r\n } else if (validUser && goToSite.equals(\"PurchaseMethod\")) {\r\n session.setAttribute(\"LoginUsername\", username);\r\n session.setAttribute(Session.SITE, \"\");\r\n response.sendRedirect(\"User/PurchaseMethod.jsp\");\r\n } else if (validUser) {\r\n session.setAttribute(\"LoginUsername\", username);\r\n session.setAttribute(Session.SITE, \"\");\r\n response.sendRedirect(\"MainPage.jsp\");\r\n } else if (IsAdmin) {\r\n response.sendRedirect(\"Admin/AdminMainPage.jsp\");\r\n } else {\r\n response.sendRedirect(\"LoginPage.jsp\");\r\n }\r\n } catch (Exception ex) {\r\n Logger.getLogger(LoginServlet.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "public void login(HttpServletRequest req, HttpServletResponse res) throws IOException {\n\n // Client credentials\n Properties p = GlobalSettings.getNode(\"oauth.password-credentials\");\n String clientId = p.getProperty(\"client\");\n String secret = p.getProperty(\"secret\");\n ClientCredentials clientCredentials = new ClientCredentials(clientId, secret);\n\n // User credentials\n String username = req.getParameter(\"username\");\n String password = req.getParameter(\"password\");\n UsernamePassword userCredentials = new UsernamePassword(username, password);\n\n // Create request\n TokenResponse oauth = TokenRequest.newPassword(userCredentials, clientCredentials).post();\n if (oauth.isSuccessful()) {\n PSToken token = oauth.getAccessToken();\n\n // If open id was defined, we can get the member directly\n PSMember member = oauth.getMember();\n if (member == null) {\n member = OAuthUtils.retrieve(token);\n }\n\n if (member != null) {\n OAuthUser user = new OAuthUser(member, token);\n HttpSession session = req.getSession(false);\n String goToURL = this.defaultTarget;\n if (session != null) {\n ProtectedRequest target = (ProtectedRequest)session.getAttribute(AuthSessions.REQUEST_ATTRIBUTE);\n if (target != null) {\n goToURL = target.url();\n session.invalidate();\n }\n }\n session = req.getSession(true);\n session.setAttribute(AuthSessions.USER_ATTRIBUTE, user);\n res.sendRedirect(goToURL);\n } else {\n LOGGER.error(\"Unable to identify user!\");\n res.sendError(HttpServletResponse.SC_FORBIDDEN);\n }\n\n } else {\n LOGGER.error(\"OAuth failed '{}': {}\", oauth.getError(), oauth.getErrorDescription());\n if (oauth.isAvailable()) {\n res.sendError(HttpServletResponse.SC_FORBIDDEN);\n } else {\n res.sendError(HttpServletResponse.SC_BAD_GATEWAY);\n }\n }\n\n }", "@Override\n public void onLoginClick(String user, String pass) {\n this.password = pass;\n enviarJson(user, pass);\n\n }", "@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}", "void loginByFacebook(LoginByFacebookRequest loginByFacebookRequest);", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tresp.setContentType(\"type=text/html; charset=utf-8\");\r\n\t\tPrintWriter out = resp.getWriter();\r\n\t\tString username = req.getParameter(\"username\");\r\n\t\tString password = req.getParameter(\"password\");\r\n\t\tout.print(username+\"===\"+password);\r\n\t\treq.getSession().setAttribute(\"remoteusername\", username);\r\n\t\treq.getSession().setAttribute(\"remotepassword\", password);\r\n\t\t\r\n\t\tCookie c1 = new Cookie(\"cooUserName\", username);\r\n\t\tCookie c2 = new Cookie(\"cooPassword\", password);\r\n\t\tc1.setPath(\"/\");\r\n\t\tc2.setPath(\"/\");\r\n\t\tresp.addCookie(c1);\r\n\t\tresp.addCookie(c2);\r\n\t\tc1.setMaxAge(60 * 60 * 24 * 14);\r\n\t\tc2.setMaxAge(60 * 60 * 24 * 14);\r\n\t\tRequestDispatcher dispatcher = req.getRequestDispatcher(\"/main.jsp\");\r\n\r\n\t\tdispatcher .forward(req, resp);\r\n\t\t//super.doPost(req, resp);\r\n\t}", "@Override\n\tpublic void goToLogin() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void submit(String user, String pass) {\n\t\t\t\tsetUsername(user);\n\t\t\t\tsetPassword(pass);\n\t\t\t\tlogin();\n\t\t\t}", "public AgentDTO login(String login, String senha);", "public static boolean login(Context ctx) {\n\t\t\n\t\tString username = ctx.formParam(\"username\");\n\t\tString password = ctx.formParam(\"password\");\n\t\t\n\t\tSystem.out.println(username);\n\t\tSystem.out.println(password);\n\t\t\n\t\tif(username.equals(\"user\") && password.equals(\"pass\")) {\n\t\t\tctx.res.setStatus(204);\n\t\t\tctx.sessionAttribute(\"user\", new User(\"McBobby\",true));\n\t\t\treturn true;\n\t\t}else {\n\t\t\t\n\t\t\tctx.res.setStatus(400);\n\t\t\tctx.sessionAttribute(\"user\", new User(\"fake\",false));\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t\n//\t\tctx.queryParam(password); /authenticate?password=value\n//\t\tctx.pathParam(password); /authenticate/{password}\n\t}", "public interface LoginService {\n @POST(\"user/login\")\n @FormUrlEncoded\n Call<LoginBean> login(@Field(\"username\") String username, @Field(\"password\") String password);\n\n}", "public void login() {\n String appId = \"404127593399770\";\n String redirectUrl = \"https://www.facebook.com/connect/login_success.html\";\n String loginDialogUrl = facebookClient.getLoginDialogUrl(appId, redirectUrl, scopeBuilder);\n Gdx.net.openURI(loginDialogUrl);\n }", "@Override\n\tpublic void setup(Context context) {\n\t\tlog.debug(\"XXX: try callback to enable authentication\");\n\n final URI uri = context.getPropertyAsURI(\"loginURL\");\n if (uri == null) {\n\t\t\tthrow new IllegalArgumentException(\"loginURL property not defined\");\n }\n\n String loginEmail = context.getString(\"loginEmail\");\n String loginPassword = context.getString(\"loginPassword\");\n if (StringUtils.isBlank(loginEmail) || StringUtils.isBlank(loginPassword)) {\n\t\t\tthrow new IllegalArgumentException(\"loginEmail and loginPassword properties are empty or missing\");\n }\n\n\t\tlog.debug(\"POST auth URL: {}\", uri);\n\t\tHttpPost httppost = new HttpPost(uri);\n\t\thttppost.setHeader(\"Cache-Control\", \"no-cache\");\n\t\tList<NameValuePair> formParams = new ArrayList<NameValuePair>(2);\n\t\tformParams.add(new BasicNameValuePair(\"email\", loginEmail));\n\t\tformParams.add(new BasicNameValuePair(\"id\", loginPassword));\n\t\tfinal HttpResponse response;\n\t\tHttpClient client = null;\n\t\tHttpContext httpContext = localContext;\n\t\ttry {\n\t\t\thttppost.setEntity(new UrlEncodedFormEntity(formParams));\n\t\t\tclient = context.getHttpClient();\n\t\t\tif (httpContext == null) {\n\t\t\t\t// Create a local instance of cookie store\n\t\t\t\tCookieStore cookieStore = new BasicCookieStore();\n\t\t\t\t// Create local HTTP context\n\t\t\t\thttpContext = new BasicHttpContext();\n\t\t\t\t// Bind custom cookie store to the local context\n\t\t\t\thttpContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore);\n\t\t\t}\n\t\t\tresponse = client.execute(httppost, httpContext);\n\t\t\t/*\n\t\t\t <form method='post' action='/auth/developer/callback' noValidate='noValidate'>\n\t\t\t <label for='name'>Name:</label>\n\t\t\t <input type='text' id='name' name='name'/>\n\t\t\t <label for='email'>Email:</label>\n\t\t\t <input type='text' id='email' name='email'/>\n\t\t\t <button type='submit'>Sign In</button> </form>\n\t\t\t */\n\t\t\tif (log.isDebugEnabled() || !checkAuth(response)) {\n ClientHelper.dumpResponse(httppost, response, true);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlog.error(\"\", e);\n\t\t\treturn;\n\t\t} finally {\n\t\t\tif (client != null)\n\t\t\t\tclient.getConnectionManager().shutdown();\n\t\t}\n\n\t\tfinal StatusLine statusLine = response.getStatusLine();\n\t\tif (statusLine != null && statusLine.getStatusCode() == 302) {\n\t\t\t// HTTP/1.1 302 Moved Temporarily\n\t\t\tHeader cookie = response.getFirstHeader(\"Set-Cookie\");\n\t\t\tif (cookie != null) {\n\t\t\t\tlog.debug(\"XXX: set local context\");\n\t\t\t\tthis.localContext = httpContext;\n\t\t\t}\n\t\t\telse log.error(\"Expected Set-Cookie header in response\");\n\t\t\tif (log.isDebugEnabled()) {\n\t\t\t\tHeader location = response.getFirstHeader(\"Location\");\n\t\t\t\tif (location != null) {\n\t\t\t\t\tcheckAuthentication(context, location.getValue());\n\t\t\t\t\t//log.debug(\"XXX: set local context\");\n\t\t\t\t\t//this.localContext = httpContext;\n\t\t\t\t}\n\t\t\t\telse log.error(\"Expected Location header in response\");\n\t\t\t}\n\t\t} else {\n\t\t\tlog.error(\"Expected 302 status code in response\");\n\t\t}\n\t}", "private void attemptLogin(){\n //reset error\n et_email.setError(null);\n et_password.setError(null);\n\n // Store values at the time of the login attempt.\n final String email = et_email.getText().toString();\n final String password = et_password.getText().toString();\n final boolean finish = false;\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 et_password.setError(getString(R.string.error_invalid_password));\n focusView = et_password;\n cancel = true;\n }else if (!isEmailValid(email)) {\n et_email.setError(getString(R.string.error_invalid_email));\n focusView = et_email;\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 JSONObject json = new JSONObject();\n\n try {\n json.put(\"ctrl\", \"login\");\n json.put(\"email\", email);\n json.put(\"password\", password);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n String requete = json.toString();\n Log.v(\"req\", requete);\n HttpQuery login = new HttpQuery(requete, this);\n login.execute();\n }\n\n\n }", "private void performOAuthLogin(View arg) {\n hideKeyboard(arg);\n // Pass the username and password to the OAuth login activity for OAuth login.\n // Once the login is successful, we automatically check in the merchant in the OAuth activity.\n Intent intent = new Intent(LoginScreenActivity.this, OAuthLoginActivity.class);\n intent.putExtra(\"username\", mUsername);\n intent.putExtra(\"password\", mPassword);\n String serverName = mServerName;\n if(null != serverName && serverName.equals(PayPalHereSDK.ControlledSandbox)){\n serverName = PayPalHereSDK.Live;\n }\n intent.putExtra(\"servername\",serverName);\n startActivity(intent);\n\n }", "private void loginHandler(RoutingContext context) {\n JsonObject creds = new JsonObject()\n .put(\"username\", context.getBodyAsJson().getString(\"username\"))\n .put(\"password\", context.getBodyAsJson().getString(\"password\"));\n\n // TODO : Authentication\n context.response().setStatusCode(500).end();\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString userName = request.getParameter(\"adminID\");//取得用户名\n\t\tString password = request.getParameter(\"adminPswd\");//取得密码\n\t\tString returnUri = request.getParameter(\"return_uri\");\n\t\trequest.getSession().setAttribute(\"userID\", userName);\n\t\t\n\t\tDBUtil db = new DBUtil();//构建数据库对象\n\t\tboolean canLogin = db.loginSuccess(userName, password);\n\t\t\n\t\tRequestDispatcher rd = null;\n\t\tif (canLogin) {\n\t\t\trequest.getSession().setAttribute(\"flag\", \"login_success\");\n\t\t\tif (returnUri != null) {\n\t\t\t\trd = request.getRequestDispatcher(returnUri);\n\t\t\t\trd.forward(request, response);\n\t\t\t}else {\n\t\t\t\trd = request.getRequestDispatcher(\"index.jsp\");\n\t\t\t\trd.forward(request, response);\n\t\t\t}\n\t\t}else {\n\t\t\tresponse.sendRedirect(\"back.jsp\");\n\t\t\trequest.getSession().setAttribute(\"flag\", \"login_error\");\n\t\t\trd = request.getRequestDispatcher(\"login.jsp\");\t\t\t\t\n\t\t\trd.forward(request, response);\n\t\t}\n\t}", "@RequestMapping(\"/login.ws\")\n public String loginForm(HttpServletRequest req, Model model) {\n String referer = req.getHeader(\"Referer\");\n String prevPage = (String) req.getSession().getAttribute(\"prevPage\");\n if (prevPage != null) {\n req.getSession().setAttribute(\"prevPage\", referer);\n }\n\n String userId = (String) req.getAttribute(\"userId\");\n model.addAttribute(\"userId\", userId);\n String error = (String) req.getParameter(\"error\");\n if(error != null)\n log.debug(\"error : {}\", error);\n\n return \"auth/login\";\n }", "public void login2() {\n\t\tdriver.findElement(By.cssSelector(\"input[name='userName']\")).sendKeys(\"testing\");\n\t\tdriver.findElement(By.cssSelector(\"input[name='password']\")).sendKeys(\"testing\");\n\t\tdriver.findElement(By.cssSelector(\"input[name='login']\")).click();\n\t\t\n\n\t\n\t\n\t}", "public interface LoginService {\n @FormUrlEncoded @POST(\"user/login\")\n Observable<LoginDataBean>login(\n @FieldMap Map<String, String> params);\n}", "void loginDetails(LoginSuccess loginSuccess);", "public void loginByRetail(RetailLoginData retailLoginData){ // method for login by retail\n if (isSelectedPresent(By.name(\"auth[PHONE]\"))) {\n type(By.name(\"auth[PHONE]\"), retailLoginData.getRetailphone());\n } else if (isSelectedPresent(By.name(\"auth[EMAIL]\"))){\n type(By.name(\"auth[EMAIL]\"), retailLoginData.getRetailemail());\n }\n type(By.name(\"auth[PASSWORD]\"), retailLoginData.getRetailpassword());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n\n }", "@POST\n\t@Path(\"/LoginService\")\n\tpublic String loginService(@FormParam(\"uname\") String uname,\n\t\t\t@FormParam(\"password\") String pass) \n\t{\n\t\tJSONObject object = new JSONObject();\n\t\tUserEntity user = UserEntity.getUser(uname, pass);\n\t\tif (user == null) {\n\t\t\tobject.put(\"Status\", \"Failed\");\n\t\t} else {\n\t\t\tUserEntity.currentUser = user;\n\t\t\tobject.put(\"Status\", \"OK\");\n\t\t\tobject.put(\"name\", user.getName());\n\t\t\tobject.put(\"email\", user.getEmail());\n\t\t\tobject.put(\"password\", user.getPass());\n\t\t}\n\n\t\treturn object.toString();\n\n\t}" ]
[ "0.713196", "0.6724636", "0.66864365", "0.6660524", "0.6596039", "0.6498359", "0.6412473", "0.6291899", "0.6263617", "0.6234136", "0.6226955", "0.6219553", "0.6196751", "0.61942387", "0.6141643", "0.61344206", "0.6127119", "0.60918045", "0.608945", "0.6077584", "0.60701054", "0.60579777", "0.6055761", "0.6035404", "0.60265267", "0.601991", "0.60179734", "0.60129106", "0.6005518", "0.5990482", "0.59872085", "0.59787816", "0.5975253", "0.5961615", "0.59561783", "0.5949859", "0.5931171", "0.5923083", "0.5905125", "0.5900124", "0.58780104", "0.5872817", "0.5850249", "0.58280313", "0.58186173", "0.5811965", "0.5808101", "0.58068216", "0.57947284", "0.5788347", "0.5786816", "0.57825977", "0.577915", "0.5743642", "0.5739145", "0.573749", "0.5734133", "0.5733308", "0.5730658", "0.5715013", "0.56943077", "0.5686687", "0.5686118", "0.56853694", "0.5685105", "0.568015", "0.5679072", "0.56751114", "0.5673225", "0.56664467", "0.5658103", "0.56577516", "0.565704", "0.56549567", "0.56542146", "0.56541073", "0.5649599", "0.5645064", "0.56440306", "0.56433433", "0.5642876", "0.5640622", "0.5635519", "0.563512", "0.56332505", "0.56309587", "0.5630234", "0.56221944", "0.5621316", "0.5621002", "0.5614829", "0.5613151", "0.56092733", "0.5605243", "0.56046456", "0.5602802", "0.56023425", "0.55986667", "0.5597116", "0.55889136", "0.5581577" ]
0.0
-1
Constructs a new track.
public Track(Long id, Short number, String name, Short length, Long albumId) { this.id = id; this.number = number; this.name = name; this.length = length; this.albumId = albumId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Track() {\r\n }", "public Track(){\n\t\tthis.trk = trackGenerator();\n\n\t}", "public TrackStat() {\r\n }", "public Track() {\n locations = new ArrayList<>();\n cars = new ArrayList<>();\n }", "public static Track generateTrack() {\n List<Position> positions = new ArrayList<>();\n DirectionsRoute dr = DirectionsRoute.fromJson(getJsonFromAssets(GlobalContext.getContext(),\"testDirections.json\"));\n positions.add(new Position(48.408880, 9.997507,1587652587));\n positions.add(new Position(48.408980, 9.997807,1587652597));\n Track track = new Track(\"nullacht15\", new Rating(), \"Heimweg\", \"Das ist meine super tolle Strecke\", 1585773516, 25,\n dr, new ArrayList<>(), positions.get(0),positions.get(1),true);\n return track;\n }", "@Override\n\t\tpublic Track build() {\n\t\t\treturn of(\n\t\t\t\t_name,\n\t\t\t\t_comment,\n\t\t\t\t_description,\n\t\t\t\t_source,\n\t\t\t\t_links,\n\t\t\t\t_number,\n\t\t\t\t_type,\n\t\t\t\t_extensions,\n\t\t\t\t_segments\n\t\t\t);\n\t\t}", "public SearchTrack() {\n\t\tsuper();\n\t}", "public MyTrackContainer(){\n\t}", "public SoundTrack(String title, String artist, String language){\n this.artist = artist; // assigns passed variable to instance variable\n this.language = language; // assigns passed variable to instance variable\n this.title = title; // assigns passed variable to instance variable\n }", "public ZbnfSetTrack new_Track(){\n return new ZbnfSetTrack();\n }", "public Track create(Track track) {\n \n // membuat sebuah ContentValues, yang berfungsi\n // untuk memasangkan data dengan nama-nama\n // kolom pada database\n ContentValues values = new ContentValues();\n values.put(HelperTrack.COLUMN_CONNECTION_ID, track.getConnection_id());\n values.put(HelperTrack.COLUMN_ANGKOT_ID, track.getAngkot_id());\n values.put(HelperTrack.COLUMN_PATH, track.getPath());\n \n // mengeksekusi perintah SQL insert data\n // yang akan mengembalikan sebuah insert ID \n long insertId = database.insert(HelperTrack.TABLE_NAME, null,\n values);\n \n // setelah data dimasukkan, memanggil perintah SQL Select \n // menggunakan Cursor untuk melihat apakah data tadi benar2 sudah masuk\n // dengan menyesuaikan ID = insertID \n Cursor cursor = database.query(HelperTrack.TABLE_NAME,\n allColumns, HelperTrack.COLUMN_ID + \" = \" + insertId, null,\n null, null, null);\n \n // pindah ke data paling pertama \n cursor.moveToFirst();\n \n // mengubah objek pada kursor pertama tadi\n // ke dalam objek barang\n Track newTrack = cursorToObject(cursor);\n \n // close cursor\n cursor.close();\n \n // mengembalikan object baru\n return newTrack;\n }", "public TrackPlayer()\n\t{\n\t\tindex = 0;\n\n\t\ttmr = new AnimationTimer() {\n\t\t\t@Override\n\t\t\tpublic void handle(long xxx) {\n\t\t\t\tdouble now = System.currentTimeMillis() * .001;\n\t\t\t\tif (lastUpdate != -1) {\n\t\t\t\t\telapsed += now - lastUpdate;\n\t\t\t\t\tif (elapsed >= 60.0 / ClearComposer.cc.getTempo())\n\t\t\t\t\t{\n\t\t\t\t\t\telapsed = 0;\n\t\t\t\t\t\tplayNotes();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\telapsed = 0;\n\t\t\t\t\tplayNotes();\n\t\t\t\t}\n\t\t\t\tlastUpdate = now;\n\t\t\t}\n\t\t};\n\n\t\ttracks = new ArrayList<>();\n\t}", "public Track(int value) {\r\n\t\tif(value < 0){\r\n\t\t\tthrow new IllegalArgumentException(\"The track's value can't be negative.\");\r\n\t\t}\r\n\t\tthis.value = value;\r\n\t}", "public SongRecord(){\n\t}", "public TrackCoach() {\n\n\t}", "public Song() {}", "public Track(double x1, double y1, double x2, double y2) {\r\n // Store the positions of the tracks end points\r\n this.x1 = x1;\r\n this.y1 = y1;\r\n this.x2 = x2;\r\n this.y2 = y2;\r\n }", "public static UrlTrack createTrack(URI uri) throws IOException {\r\n try {\r\n AudioInputStream stream = AudioSystem.getAudioInputStream(new File(uri));\r\n AudioFormat f = stream.getFormat();\r\n double seconds = stream.getFrameLength() / f.getFrameRate();\r\n return new UrlTrack(uri, 0, seconds, f);\r\n } catch (UnsupportedAudioFileException e) {\r\n throw new IOException(e.getMessage());\r\n }\r\n }", "Track(){\n\t}", "public MusicTrack(TrackType t,String name, String videoURL,String shortURL) {\n\t\tthis.title = name;\n\t\tthis.videoURL = videoURL;\n\t\ttype = t;\n\t\tthis.shortURL = shortURL;\n\t\ttrackID = currentTrackID;\n\t\tcurrentTrackID++;\n\t\tif (shortURL.contains(\"//soundcloud.com/\"))\n\t\t\tisVideo = false;\n\t}", "public CardTrackKey(int argTrackId) {\n\ttrackId = argTrackId;\n}", "void setTrack(String track) {\r\n this.track = track;\r\n }", "private TrackBehaviour() {}", "public Track(String fileName) {\n \t\tsoundFile = new File(fileName);\n \t\tSystem.out.println(\"absolute path: \" + soundFile.getAbsolutePath());\n \t}", "public Track(double x1, double y1, double x2, double y2, double radius) {\r\n // Store the positions of the tracks end points\r\n this.x1 = x1;\r\n this.y1 = y1;\r\n this.x2 = x2;\r\n this.y2 = y2;\r\n\r\n // Store the half circles radius\r\n this.radius = radius;\r\n }", "public Tracklist(Activity context, List<Track> track) {\n super(context, R.layout.layout_track,track);\n\n this.context = context;\n this.track = track;\n }", "TesttrackFactory getTesttrackFactory();", "public Song(String artist, String title) { \r\n\t\tthis.artist = artist;\r\n\t\tthis.title = title;\r\n\t\tthis.minutes = 0;\r\n\t\tthis.seconds = 0;\r\n\t}", "public Song(String t, String alb, String art, String y){\n title = t;\n album = alb;\n artist = art;\n year = y; \n }", "public Song(String title, String artist) {\r\n this.title = title;\r\n this.artist = artist;\r\n }", "public Songs() {\n }", "public Track(Path path, int trackID, TrackType type, TrackProperties properties) {\n\t\tthis.path = path;\n\t\tthis.properties = properties;\n\t\tthis.type = type;\n\t\tthis.trackID = trackID;\n\t}", "@Override\n public Song getSongRepresentation() {\n\n try {\n final Track track = en.uploadTrack(mp3File, true);\n\n // Wait for a predefined period of time in which the track is analyzed\n track.waitForAnalysis(30000);\n\n if (track.getStatus() == Track.AnalysisStatus.COMPLETE) {\n\n final double tempo = track.getTempo();\n final String title = Modulo7Utils.stringAssign(track.getTitle());\n final String artistName = Modulo7Utils.stringAssign(track.getArtistName());\n\n // Gets the time signature\n final int timeSignatureRatio = track.getTimeSignature();\n TimeSignature timeSignature = guessTimeSigntureRatio(timeSignatureRatio);\n\n // Getting the key signature information from the echo nest meta data analysis in integer format\n final int key = track.getKey();\n final int mode = track.getMode();\n\n try {\n keySignature = EchoNestKeySignatureEstimator.estimateKeySignature(key, mode);\n } catch (Modulo7BadKeyException e) {\n logger.error(e.getMessage());\n }\n\n // Gets the duration of the track\n final double duration = track.getDuration();\n\n TrackAnalysis analysis = track.getAnalysis();\n\n Voice voiceOfSong = new Voice();\n\n /**\n * There is no clear distinguishing way of acquiring timbral approximations\n * Hence the only possible approximation I can think of it call the a part of a\n * single voice\n */\n for (final Segment segment : analysis.getSegments()) {\n VoiceInstant songInstant = ChromaAnalysis.getLineInstantFromVector(segment.getPitches(), segment.getDuration());\n voiceOfSong.addVoiceInstant(songInstant);\n }\n if (keySignature == null) {\n return new Song(voiceOfSong, new SongMetadata(artistName, title, (int) tempo), MusicSources.MP3, duration);\n } else {\n if (timeSignature == null) {\n return new Song(voiceOfSong, new SongMetadata(keySignature, artistName, title, (int) tempo),\n MusicSources.MP3, duration);\n } else {\n return new Song(voiceOfSong, new SongMetadata(keySignature, timeSignature, artistName, title,\n (int) tempo), MusicSources.MP3, duration);\n }\n }\n\n } else {\n logger.error(\"Trouble analysing track \" + track.getStatus());\n return null;\n }\n } catch (IOException e) {\n logger.error(\"Trouble uploading file to track analyzer\" + e.getMessage());\n } catch (Modulo7InvalidVoiceInstantSizeException | EchoNestException | Modulo7BadIntervalException | Modulo7BadNoteException e) {\n logger.error(e.getMessage());\n }\n\n // Return null if no song is inferred\n return null;\n }", "public TrackResponse() {\n\t\tsuper();\n\t}", "private Track readTrack(XmlPullParser parser) throws XmlPullParserException, IOException {\n Track.Builder trackBuilder = new Track.Builder();\n\n List<TrackSegment> segments = new ArrayList<>();\n parser.require(XmlPullParser.START_TAG, ns, TAG_TRACK);\n while (loopMustContinue(parser.next())) {\n if (parser.getEventType() != XmlPullParser.START_TAG) {\n continue;\n }\n String name = parser.getName();\n switch (name) {\n case TAG_NAME:\n trackBuilder.setTrackName(readName(parser));\n break;\n case TAG_SEGMENT:\n segments.add(readSegment(parser));\n break;\n case TAG_DESC:\n trackBuilder.setTrackDesc(readDesc(parser));\n break;\n case TAG_CMT:\n trackBuilder.setTrackCmt(readCmt(parser));\n break;\n case TAG_SRC:\n trackBuilder.setTrackSrc(readString(parser, TAG_SRC));\n break;\n case TAG_LINK:\n trackBuilder.setTrackLink(readLink(parser));\n break;\n case TAG_NUMBER:\n trackBuilder.setTrackNumber(readNumber(parser));\n break;\n case TAG_TYPE:\n trackBuilder.setTrackType(readString(parser, TAG_TYPE));\n break;\n default:\n skip(parser);\n break;\n }\n }\n parser.require(XmlPullParser.END_TAG, ns, TAG_TRACK);\n return trackBuilder\n .setTrackSegments(segments)\n .build();\n }", "public Music()\n {\n this(0, \"\", \"\", \"\", \"\", \"\");\n }", "public MyPod()\n {\n color = \"black\";\n memory = 4;\n \n songLibrary[0] = new Song();\n songLibrary[1] = new Song();\n songLibrary[2] = new Song();\n \n \n \n }", "public Hamburg(){\n trackDepartureHolder = TrackHolder.getTrackHolder(8);\n trackArrivalHolder = TrackHolder.getTrackHolder(10);\n scratchTrack = new TrackList<>();\n }", "Song() {\n\t\tmEnsemble = ensemble;\n\t\tmTitle = \"Strawberry Fields\";\n\t\tmYearReleased = 1969;\n\t}", "public MidiTrack(int instrumentId) {\n\t\tnotes = new ArrayList<MidiNote>();\n\t\tthis.instrumentId = instrumentId;\n\t\tthis.initPitchDictionary();\n\t}", "public Track getTrack() {\n\n return track;\n }", "public Song(Song s) {\r\n\t\tthis.title = getTitle();\r\n\t\tthis.artist = getArtist();\r\n\t\tthis.minutes = getMinutes();\r\n\t\tthis.seconds = getSeconds();\r\n\t\ts = new Song(this.title, this.artist, this.minutes, this.seconds);\r\n\t}", "void create(Artist artist);", "public TrackdInputDevice() {\n }", "public MusicModel() {\n this(90000);\n }", "public TrackMetaData(final String id, final String parentId, final String res, final String streamContent, final String albumArtUri, final String title,\n final String upnpClass, final String creator, final String album, final String albumArtist) {\n this.id = id;\n this.parentId = parentId;\n resource = res;\n this.streamContent = streamContent;\n this.albumArtUri = albumArtUri;\n this.title = title;\n this.upnpClass = upnpClass;\n this.creator = creator;\n this.album = album;\n this.albumArtist = albumArtist;\n }", "@PostMapping(\"/newTrack\")\n public Track saveTrack(@RequestBody Track track) {\n Track track1 = trackService.create(track.getId(), track.getName(), track.getLanguage());\n return track1;\n }", "public DBTrack(Context context)\n {\n helper = new HelperTrack(context);\n }", "public HomeworkVoice() {\n super();\n }", "public void setTrackNumber (String number){\n trackNumber = number;\n }", "public void createPlayer() {\n mainHandler = new Handler();\n videoTrackSelectionFactory = new AdaptiveTrackSelection.Factory(bandwidthMeter);\n trackSelector = new DefaultTrackSelector(videoTrackSelectionFactory);\n player = ExoPlayerFactory.newSimpleInstance(this, trackSelector);\n }", "private AudioTrack m18340c(int audioSessionId) {\n AudioTrack audioTrack = new AudioTrack(3, 4000, 4, 2, 2, 0, audioSessionId);\n return audioTrack;\n }", "public Voice() {\n }", "public Value(String trackName,String artistName,String albumInfo,String genre,String path){\n this.musicFile = new MusicFile(trackName,artistName,albumInfo,genre, path);\n }", "public WavPlayer(String track) {\n\t\tthis.wavMusicFile = track;\n\t\t//startSound();\n\n\t}", "public Playlist()\n\t{\n\t\tthis(\"UNTITLED\");\n\t}", "public CultTrack(String name, int numberOfPlayers){\n this.name = name;\n advancements = new int[numberOfPlayers];\n for(int i = 0; i < numberOfPlayers; i++){\n advancements[i] = 0;\n }\n orders = new int[2];\n orders[0] = 1;\n orders[1] = 3;\n }", "public TrackConfidence(byte[] bytes) {\n super(bytes);\n }", "public EventHandle createStartDetect(){\n\n startDetectEventName = name+\"_startDetectEventName\";\n\n startDetectEvent = ECAAgent.getDefaultECAAgent().createPrimitiveEvent(\n startDetectEventName, // Event name\n \"MAKEFITS.Track\", // class Name\n EventModifier.END, // Event Modifier\n \"void startDetect()\", // Method signature\n this); // Instance (track1, track2,...,or trackN)\n return (PrimitiveEventHandle) startDetectEvent;\n }", "public static GenomeAdapter createGenome(TrackAdapter seqTrack) {\n return Genome.createFromTrack((Track)seqTrack);\n }", "public Voice() {\n /* Make the utteranceProcessors a synchronized list to avoid\n * some threading issues.\n */\n utteranceProcessors = Collections.synchronizedList(new ArrayList());\n\tfeatures = new FeatureSetImpl();\n\tfeatureProcessors = new HashMap();\n\n\ttry {\n\t nominalRate = Float.parseFloat(\n\t\t Utilities.getProperty(PROP_PREFIX + \"speakingRate\",\"150\"));\n\t pitch = Float.parseFloat(\n\t\t Utilities.getProperty(PROP_PREFIX + \"pitch\",\"100\"));\n\t range = Float.parseFloat(\n\t\t Utilities.getProperty(PROP_PREFIX + \"range\",\"10\"));\n\t volume = Float.parseFloat(\n\t\t Utilities.getProperty(PROP_PREFIX + \"volume\",\"1.0\"));\n\t} catch (SecurityException se) {\n\t // can't get properties, just use defaults\n\t}\n outputQueue = null;\n audioPlayer = null;\n defaultAudioPlayer = null;\n }", "public TrackDescriptor getTrackDescriptor();", "public Parcel(Track track, Genre genre, boolean isTrack) {\n\n this.track = track;\n this.genre = genre;\n this.isTrack= isTrack;\n }", "public Packet(final long unique) {\r\n\t\ttype = EvidenceType.NONE;\r\n\t\tcommand = EvidenceBuilder.LOG_CREATE;\r\n\t\tid = unique;\r\n\t\tdata = null;\r\n\t}", "public MusicLibrary() {\n\t\tthis.idMap = new HashMap<String, Song>();\n\t\tthis.titleMap = new TreeMap<String, TreeSet<Song>>(new StringComparator());\n\t\tthis.artistMap = new TreeMap<String, TreeSet<Song>>(new StringComparator());\n\t\tthis.tagMap = new TreeMap<String, TreeSet<String>>(new StringComparator());\n\t\t//this.artistList = new ArrayList<>();\n\t}", "public void add_Track(ZbnfSetTrack track){\n addTrack(track.name, track.datapath, track.color_, track.style_, track.nullLine, track.scale, track.offset);\n }", "public Package(String trackNum, String typ, String spec, String mail, float w, int v) {\n trackingNumber = trackNum;\n type = typ;\n specification = spec;\n mailing = mail;\n weight = w;\n volume = v;\n }", "public Song(\n String title,\n String artist,\n String year,\n String genre,\n double heardPercentCS,\n double heardPercentMath,\n double heardPercentEng,\n double heardPercentOther,\n double heardPercentSE,\n double heardPercentNE,\n double heardPercentUS,\n double heardPercentOut,\n double heardPercentMusic,\n double heardPercentSports,\n double heardPercentReading,\n double heardPercentArt,\n double likePercentCS,\n double likePercentMath,\n double likePercentEng,\n double likePercentOther,\n double likePercentSE,\n double likePercentNE,\n double likePercentUS,\n double likePercentOut,\n double likePercentMusic,\n double likePercentSports,\n double likePercentReading,\n double likePercentArt) {\n this.title = title;\n this.artist = artist;\n this.year = year;\n this.genre = genre;\n this.heardPercentCS = heardPercentCS;\n this.heardPercentMath = heardPercentMath;\n this.heardPercentEng = heardPercentEng;\n this.heardPercentOther = heardPercentOther;\n this.heardPercentSE = heardPercentSE;\n this.heardPercentNE = heardPercentNE;\n this.heardPercentUS = heardPercentUS;\n this.heardPercentOut = heardPercentOut;\n this.heardPercentMusic = heardPercentMusic;\n this.heardPercentSports = heardPercentSports;\n this.heardPercentReading = heardPercentReading;\n this.heardPercentArt = heardPercentArt;\n this.likePercentCS = likePercentCS;\n this.likePercentMath = likePercentMath;\n this.likePercentEng = likePercentEng;\n this.likePercentOther = likePercentOther;\n this.likePercentSE = likePercentSE;\n this.likePercentNE = likePercentNE;\n this.likePercentUS = likePercentUS;\n this.likePercentOut = likePercentOut;\n this.likePercentMusic = likePercentMusic;\n this.likePercentSports = likePercentSports;\n this.likePercentReading = likePercentReading;\n this.likePercentArt = likePercentArt;\n }", "public Album() {\n }", "protected MediaCodec createCodec(MediaExtractor media_extractor, int track_index, MediaFormat format) throws IOException, IllegalArgumentException {\n/* 73 */ MediaCodec codec = super.createCodec(media_extractor, track_index, format);\n/* 74 */ if (codec != null) {\n/* 75 */ ByteBuffer[] buffers = codec.getOutputBuffers();\n/* 76 */ int sz = buffers[0].capacity();\n/* 77 */ if (sz <= 0) {\n/* 78 */ sz = this.mAudioInputBufSize;\n/* */ }\n/* 80 */ this.mAudioOutTempBuf = new byte[sz];\n/* */ try {\n/* 82 */ this.mAudioTrack = new AudioTrack(3, this.mAudioSampleRate, (this.mAudioChannels == 1) ? 4 : 12, 2, this.mAudioInputBufSize, 1);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 88 */ this.mAudioTrack.play();\n/* 89 */ } catch (Exception e) {\n/* 90 */ Log.e(this.TAG, \"failed to start audio track playing\", e);\n/* 91 */ if (this.mAudioTrack != null) {\n/* 92 */ this.mAudioTrack.release();\n/* 93 */ this.mAudioTrack = null;\n/* */ } \n/* 95 */ throw e;\n/* */ } \n/* */ } \n/* 98 */ return codec;\n/* */ }", "@Test\n\tpublic void addTrack_Test() throws Exception {\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.mp3 &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showtime &&\n\t\t\t\tConfiguration.playlist \n\t\t\t\t) {\n\t\t\tstart();\n\t\t\tFile file = new File(\"media/note.mp3\");\n\t\t\tgui.addTrack(\"note\",file);\t\n\t\t}\n\t}", "public Track(int id, String gate) {\n this.id = id;\n this.gate = gate;\n inMaintenance = false;\n }", "public CustomAdapterTracks(ArrayList<TopTrack> myDataset, Context context) {\n mDataset = myDataset;\n mContext = context;\n }", "private ModelImpl(int tempo) {\n if (tempo < 50000 || tempo > 250000) {\n throw new IllegalArgumentException(\"Invalid tempo.\");\n }\n this.tempo = tempo;\n this.currentMeasure = DEFAULT_START;\n this.status = Status.Playing;\n this.low = new Note(1, 8, 0, Note.Pitches.C, true, 0, 1);\n this.high = new Note(1, 0, 0, Note.Pitches.A, true, 0, 1);\n this.sheet = new ArrayList<Set<Note>>();\n }", "public Note() {\n }", "public AudioList(){}", "public UnityAnalytics() {}", "void startMusic(AudioTrack newSong);", "public ParkingSpot createSpot() {\n ParkingSpot spot = new ParkingSpot();\n spot.setTime(time);\n spot.setId(id);\n spot.setLongitude(longitude);\n spot.setLatitude(latitude);\n spot.setAccuracy(accuracy);\n return spot;\n }", "public Measurement(Handler handler)\n\t{\n\t\tmHandler = handler;\n\t\tmeasurementArray = new AnalogMeasurement[MAX_MEASUREMENTS];\n\t}", "public AlbumSeriesRecord() {\n super(AlbumSeries.ALBUM_SERIES);\n }", "public static TopTracksFragment newInstance(String artistName, String artistId) {\n TopTracksFragment fragment = new TopTracksFragment();\n Bundle args = new Bundle();\n args.putString(Constants.ARG_ARTIST_NAME_KEY, artistName);\n args.putString(Constants.ARG_ARTIST_ID_KEY, artistId);\n fragment.setArguments(args);\n return fragment;\n }", "public Track getTrack(String track) {\r\n\t\tfor(Track t : tracks) {\r\n\t\t\tif(t.name.equals(track)) {\r\n\t\t\t\treturn t;\r\n\t\t\t}\r\n\t\t}\r\n\t\tTrack ret = new Track(track);\r\n\t\ttracks.add(ret);\r\n\t\treturn ret;\r\n\t}", "public Playlist(String playListName){\n\tgenresList = new Genre[6];\n\tsongList = new Song[30];\n\tthis.playListName = playListName;\n\t}", "public MusicPlayer() {\n\t\t// initialize all instance variables\n\t\tplaylist = new BinaryHeapA(new Song[0]);\n\t\tfavoritelist = new BinaryHeapA(new Song[0]);\n\t\tisPlaylist = true;\n\t\tsortOrder = 0;\n\t\tisPlaying = false;\n\t\tcurrentSongIndex = 0;\n\t\trepeat = true;\n\t\tshuffle = false;\n\t\tshuffleOrder = new ArrayList<Song>();\n\t\tshuffleSongIndex = -1;\n\t}", "public String getTrackNumber (){\n return trackNumber;\n }", "public SongArray(){\n }", "public TrackStat(int nPoints, double length, double startTime,\r\n double elapsedTime, double movingTime, double maxSpeed, double avgSpeed,\r\n double avgMovingSpeed, double maxEle, double minEle, double avgEle) {\r\n this.nPoints = nPoints;\r\n this.startTime = startTime;\r\n this.elapsedTime = elapsedTime;\r\n this.movingTime = movingTime;\r\n this.maxSpeed = maxSpeed;\r\n this.avgSpeed = avgSpeed;\r\n this.avgMovingSpeed = avgMovingSpeed;\r\n this.maxEle = maxEle;\r\n this.minEle = minEle;\r\n this.avgEle = avgEle;\r\n }", "public Video( ) { \n\t\tsuper( );\n\t}", "public CD(String song1, String song2, String song3, String song4, String song5) {\n songs = new ArrayList<>();\n songs.add(song1);\n songs.add(song2);\n songs.add(song3);\n songs.add(song4);\n songs.add(song5);\n currentindex = songs.size();\n }", "@Before\n public void setUp(){\n MockitoAnnotations.initMocks(this);\n track = new Track();\n track.setName(\"Waake\");\n track.setId(101);\n track.setComment(\"Excellent\");\n list = new ArrayList<>();\n\n list.add(track);\n }", "public MusicSheet() {\n Log.w(TAG,\"empty constructor\");\n // vertexArray = new VertexArray(VERTEX_DATA);\n }", "void track();", "public Shot() {\n }", "public GoogleAnalyticsTracker(Tracker tracker) {\n this.tracker = tracker;\n }", "public Note() {\n\t\tsuper();\n\t}", "public VOCSesame () {\n }", "public static TrackerFragment newInstance() {\n TrackerFragment fragment = new TrackerFragment();\n Bundle args = new Bundle();\n // pass arguments for fragment creation to the bundle\n fragment.setArguments(args);\n return fragment;\n }", "static public Tour makeTour() {\r\n Tour t = new Tour();\r\n t.index = null;\r\n return t;\r\n }", "private void setupRecord() {\n\t\tint bufferSize = AudioRecord.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioRecorder = new AudioRecord(MediaRecorder.AudioSource.MIC,\n\t\t\t\tSAMPLE_RATE, AudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, bufferSize);\n\n\t\t// Create AudioTrack object to playback the audio.\n\t\tint iMinBufSize = AudioTrack.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_STEREO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioTracker = new AudioTrack(AudioManager.STREAM_MUSIC, SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, iMinBufSize * 10,\n\t\t\t\tAudioTrack.MODE_STREAM);\n\n\t\taudioTracker.play();\n\t}" ]
[ "0.8092744", "0.78872687", "0.72383404", "0.7121039", "0.7100102", "0.6946366", "0.69116324", "0.68802047", "0.68772566", "0.663207", "0.6522584", "0.6418161", "0.63545054", "0.6343164", "0.6307821", "0.6300843", "0.62717015", "0.6200352", "0.6193028", "0.6176246", "0.61422014", "0.6093946", "0.6077715", "0.6026743", "0.60224605", "0.5975878", "0.5953893", "0.5952531", "0.58773506", "0.58505315", "0.5842093", "0.5770577", "0.5751331", "0.5728544", "0.5724367", "0.5700781", "0.5676309", "0.56748754", "0.5661491", "0.565654", "0.5651931", "0.56468606", "0.56398135", "0.5613483", "0.55801284", "0.55475324", "0.55419195", "0.553193", "0.55261755", "0.5507975", "0.5477423", "0.5466502", "0.54498476", "0.54450333", "0.54308045", "0.5414997", "0.5380986", "0.5380776", "0.5370924", "0.5368279", "0.5360367", "0.5347307", "0.5343797", "0.5332108", "0.5311738", "0.5300327", "0.52907515", "0.526368", "0.5253653", "0.5248672", "0.52424866", "0.5241023", "0.52327096", "0.5229438", "0.5221271", "0.5216434", "0.521569", "0.51990443", "0.5192823", "0.5185927", "0.51853436", "0.51845926", "0.5180103", "0.5176188", "0.5168654", "0.5160334", "0.51472574", "0.5146959", "0.51457816", "0.51411", "0.51378363", "0.51290834", "0.5128742", "0.5128048", "0.5126766", "0.51263154", "0.51209843", "0.5102312", "0.50994754", "0.50974953" ]
0.6480747
11
Gets track length, formatted as hours (if applicable), minutes and seconds separated by a ":".
public String getFormattedLength() { NumberFormat formatter = new DecimalFormat(LENGTH_FORMAT); int hours = length / (60 * 60); int minutes = (length % (60 * 60)) / 60; int seconds = length % 60; StringBuilder sb = new StringBuilder(); if (hours > 0) { sb.append(formatter.format(hours) + ':'); } sb.append(formatter.format(minutes) + ':'); sb.append(formatter.format(seconds)); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String formatTime(long length) {\n\t\tString hms = \"\";\n\t\tif(length < 3600000) {\n\t\t\thms = String.format(\"%02d:%02d\",\n\t\t\t\t\tTimeUnit.MILLISECONDS.toMinutes(length) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(length)),\n\t\t\t\t\tTimeUnit.MILLISECONDS.toSeconds(length) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(length)));\n\t\t} else {\n\t\t\thms = String.format(\"%02d:%02d:%02d\", TimeUnit.MILLISECONDS.toHours(length),\n\t\t\t\t\tTimeUnit.MILLISECONDS.toMinutes(length) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(length)),\n\t\t\t\t\tTimeUnit.MILLISECONDS.toSeconds(length) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(length)));\n\t\t}\n\n\t\treturn hms;\n\t}", "public int getTimeLength() {\r\n return timeLength;\r\n }", "public String duration(){\n long duration =beginTime.getTime()-endTime.getTime();\n long diffMinutes = duration / (60 * 1000) % 60;\n long diffHours = duration / (60 * 60 * 1000);\n if(diffHours ==0)\n return -1*diffMinutes + \" minutes\";\n else\n return \" \"+-1*diffHours+\":\"+ -1*diffMinutes +\"min\";\n }", "public String getTimeInString() {\n int minutes = (time % 3600) / 60;\n int seconds = time % 60;\n String timeString = String.format(\"%02d:%02d\", minutes, seconds);\n\n return timeString;\n }", "public String durationInMinutesAndSeconds( ){\n\t\t\n\t\tString time = \"\";\n\t\t\n\t\tint duration = totalTime();\n\n\t\tint minutes = 0;\n\n\t\tint seconds = 0;\n\n\t\tminutes = (int) (duration/60);\n\n\t\tseconds = (int) (duration- (minutes*60));\n\n\t\ttime = minutes + \":\" + seconds +\"\";\n\t\treturn time;\n\t\t\n\t}", "public static String hoursMinutesSeconds(double t) {\n int hours = (int) t/3600;\n int rem = (int) t - hours*3600;\n int mins = rem / 60;\n int secs = rem - mins*60;\n //return String.format(\"%2d:%02d:%02d\", hours, mins, secs);\n return String.format(\"%d:%02d:%02d\", hours, mins, secs);\n }", "java.lang.String getDuration();", "private Duration getDurationFromTimeView() {\n String text = timeView.getText().toString();\n String[] values = text.split(\":\");\n\n int hours = Integer.parseInt(values[0]);\n int minutes = Integer.parseInt(values[1]);\n int seconds = Integer.parseInt(values[2]);\n\n return Utils.hoursMinutesSecondsToDuration(hours, minutes, seconds);\n }", "public String toString() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // 4\n\t\tString hours = String.format(\"%02d\", this.hours);\n\t\tString minutes = String.format(\"%02d\", this.minutes);\n\t\tString seconds = String.format(\"%05.2f\", this.seconds);\n\n\t\tString time = hours + \":\" + minutes + \":\" + seconds;\n\t\treturn time;\n\t}", "static String timeCount_1(List<String> Arr){\n int timeHH = 0;\n int timeMI = 0;\n int timeSS = 0;\n \n String r_hh = \"\";\n String r_mi = \"\";\n String r_ss = \"\";\n\n for(int i = 0; i < Arr.size(); i++ ){\n \n if (Pattern.matches(\"\\\\d{2}:\\\\d{2}:\\\\d{2}\", Arr.get(i))){\n \n String[] s = Arr.get(i).split(\":\");\n int hh = Integer.parseInt(s[0]);\n int mi = Integer.parseInt(s[1]);\n int ss = Integer.parseInt(s[2]);\n \n timeHH += hh;\n timeMI += mi;\n timeSS += ss;\n \n }\n else{\n continue;\n }\n }\n \n timeMI += timeSS / 60;\n timeSS %= 60;\n \n timeHH += timeMI / 60;\n timeMI %= 60; \n\n \n if (timeHH < 10){\n r_hh = \"0\" + timeHH;\n }\n else{\n r_hh = Integer.toString(timeHH);\n }\n \n if (timeMI < 10){\n r_mi = \"0\" + timeMI;\n }\n else{\n r_mi = Integer.toString(timeMI);\n }\n \n if (timeSS < 10){\n r_ss = \"0\" + timeSS;\n }\n else{\n r_ss = Integer.toString(timeSS);\n }\n \n \n \n String result = r_hh + \":\" + r_mi + \":\" + r_ss;\n //String result = timeHH + \":\" + timeMI + \":\" + timeSS;\n \n return result;\n }", "private String getPlayTimeString() {\n double fltPlayPositionInFrames = (fltPlayPercent/100.0f) * lngTimelineDataAmountInRmsFrames;\n double fltTime = (double)(fltPlayPositionInFrames * fltRmsFramePeriodInMs)/1000.0f;\n return new DecimalFormat(\"000.00\").format(fltTime); // String.format(\"%3.1f\", fltTime);\n }", "private String convertToDuration(Long songDuration){\n long seconds = songDuration/1000;\n long minutes = seconds / 60;\n seconds = seconds % 60;\n return minutes +\":\"+seconds;\n }", "@Override\n public String getSavingsHours() {\n\n final String savingsHrs = getElement(getDriver(), By.className(SAVINGS_HOURS), TINY_TIMEOUT)\n .getText();\n setLogString(\"Savings Hours:\" + savingsHrs, true, CustomLogLevel.HIGH);\n return savingsHrs.substring(savingsHrs.indexOf(\"(\") + 1, savingsHrs.indexOf(\"h\"));\n }", "public String formatTime() {\n if ((myGameTicks / 16) + 1 != myOldGameTicks) {\n myTimeString = \"\";\n myOldGameTicks = (myGameTicks / 16) + 1;\n int smallPart = myOldGameTicks % 60;\n int bigPart = myOldGameTicks / 60;\n myTimeString += bigPart + \":\";\n if (smallPart / 10 < 1) {\n myTimeString += \"0\";\n }\n myTimeString += smallPart;\n }\n return (myTimeString);\n }", "java.lang.String getFlightLegDuration();", "java.lang.String getTransitFlightDuration();", "public String getTime() {\n return String.format(\"%02d\", hours) + \":\" + String.format(\"%02d\", minutes);\n }", "java.lang.String getPlayTime();", "private String getHours() {\n StringBuilder hoursSB = new StringBuilder();\n\n if (hours > 0) {\n hoursSB.append(hours);\n } else {\n hoursSB.append(\"0\");\n }\n\n return hoursSB.toString();\n }", "public int getHours(){\n return (int) totalSeconds/3600;\n }", "private String computeTime(long l_time){\n \tString studyTime = \" \";\n \tlong hours, mins, secs;\n \t\n \tif (l_time > 3600) {\n \t\thours = l_time / 3600;\n \t\tl_time = l_time % 3600;\n \t\tmins = l_time / 60;\n \t\tsecs = l_time % 60;\n \t\tif (hours > 1) {\n \t\t\tstudyTime = Long.toString(hours) + \" hours \" + Long.toString(mins) + \" minutes and \" + Long.toString(secs) + \" seconds\";\n \t\t} else {\n \t\t\tstudyTime = Long.toString(hours) + \" hour \" + Long.toString(mins) + \" minutes and \" + Long.toString(secs) + \" seconds\";\n \t\t}\n \t} else if (l_time > 60 ){\n \t\tmins = l_time / 60;\n \t\tsecs = l_time % 60;\n \t\tif (mins > 1) {\n \t\t\tstudyTime = Long.toString(mins) + \" minutes and \" + Long.toString(secs) + \" seconds\";\n \t\t} else {\n \t\t\tstudyTime = Long.toString(mins) + \" minute and \" + Long.toString(secs) + \" seconds\";\n \t\t}\n \t} else {\n \t\tif (l_time > 1) {\n \t\t\tstudyTime = Long.toString(l_time) + \" seconds\";\n \t\t} else {\n \t\t\tstudyTime = Long.toString(l_time) + \" second\";\n \t\t}\n \t}\n \treturn studyTime;\n }", "private String intTime(long l){\r\n String s=\"\";\r\n s+=(char)(((l/1000)/60)+'0')+\":\"+(char)((((l/1000)%60)/10)+'0')+(char)((((l/1000)%60)%10)+'0'); \r\n return s;\r\n }", "public String getHours();", "public String getElapsedTime() {\n\n long elapsed;\n int mins;\n int secs;\n int millis;\n\n if (running) {\n elapsed = System.currentTimeMillis() - startTime;\n } else {\n elapsed = stopTime - startTime;\n }\n\n mins = (int) (elapsed / 60000);\n secs = (int) (elapsed - mins * 60000) / 1000;\n millis = (int) (elapsed - mins * 60000 - secs * 1000);\n\n //Keeps 3 digits when a second rolls over. Perhaps find a better way of doing this\n return (String.format(\"%02d\", mins) + \":\" + String.format(\"%02d\", secs) + \":\"\n + String.format(\"%03d\", millis));\n }", "public static String time_str(double t) {\n int hours = (int) t/3600;\n int rem = (int) t - hours*3600;\n int mins = rem / 60;\n int secs = rem - mins*60;\n return String.format(\"%02d:%02d:%02d\", hours, mins, secs);\n //return hoursMinutesSeconds(t);\n }", "public String getTime(){\n String mt=\"\";\n String hr=\"\";\n if(minute<10){\n mt=0+(String.valueOf(minute));\n }\n\n else{\n mt=String.valueOf(minute);\n }\n\n if(hour<10){\n hr=0+(String.valueOf(hour));\n }\n else{\n hr=String.valueOf(hour);\n }\n //return hour:minute\n return (hr+\":\"+mt);\n }", "public String gameTimeToText()\n {\n // CALCULATE GAME TIME USING HOURS : MINUTES : SECONDS\n if ((startTime == null) || (endTime == null))\n return \"\";\n long timeInMillis = endTime.getTimeInMillis() - startTime.getTimeInMillis();\n return timeToText(timeInMillis);\n }", "java.lang.String getTransitAirportDuration();", "public static String getDurationString(long seconds) {\n long hours = seconds / 3600;\n long minutes = (seconds % 3600) / 60;\n long secs = seconds % 60;\n if (hours > 0) {\n return twoDigitString(hours) + \":\" + twoDigitString(minutes) + \":\" + twoDigitString(secs);\n }\n return twoDigitString(minutes) + \":\" + twoDigitString(secs);\n }", "public String toString() {\n\t\treturn hours + \"h\" + minutes + \"m\";\n\t}", "public String getWorkinghours() {\n int seconds = workinghours % 60;\n int minutes = (workinghours / 60) % 60;\n int hours = (workinghours / 60) / 60;\n String secs;\n String mins;\n String hourse;\n\n if (seconds < 10) {\n secs = \":0\" + seconds;\n } else {\n secs = \":\" + seconds;\n }\n if (minutes < 10) {\n mins = \":0\" + minutes;\n } else {\n mins = \":\" + minutes;\n }\n if (hours < 10) {\n hourse = \"0\" + hours;\n } else {\n hourse = \"\" + hours;\n }\n return hourse + mins + secs;\n }", "public String elapsedTime() {\n return totalWatch.toString();\n }", "public String getTimeString(){\n StringBuilder sBuilder = new StringBuilder();\n sBuilder.append(hourPicker.getValue())\n .append(':')\n .append(minutePicker.getValue())\n .append(':')\n .append(secondsPicker.getValue())\n .append('.')\n .append(decimalPicker.getValue());\n return sBuilder.toString();\n }", "public int getMillisecondLength() {\n\t\treturn meta.length();\n\t}", "static String timeCount_2(List<String> Arr){\n int timeHH = 0;\n int timeMI = 0;\n int timeSS = 0;\n \n int timeSum_second = 0;\n \n String r_hh = \"\";\n String r_mi = \"\";\n String r_ss = \"\";\n\n for(int i = 0; i < Arr.size(); i++ ){\n \n if (Pattern.matches(\"\\\\d{2}:\\\\d{2}:\\\\d{2}\", Arr.get(i))){\n \n String[] s = Arr.get(i).split(\":\");\n int hh = Integer.parseInt(s[0]);\n int mi = Integer.parseInt(s[1]);\n int ss = Integer.parseInt(s[2]);\n\n timeSum_second += hh*60*60 + mi*60 + ss;\n \n }\n else{\n continue;\n }\n }\n \n timeHH = timeSum_second/60/60;\n timeMI = (timeSum_second%(60*60))/60;\n timeSS = timeSum_second%60;\n \n if (timeHH < 10){\n r_hh = \"0\" + timeHH;\n }\n else{\n r_hh = Integer.toString(timeHH);\n }\n \n if (timeMI < 10){\n r_mi = \"0\" + timeMI;\n }\n else{\n r_mi = Integer.toString(timeMI);\n }\n \n if (timeSS < 10){\n r_ss = \"0\" + timeSS;\n }\n else{\n r_ss = Integer.toString(timeSS);\n }\n \n String result = r_hh + \":\" + r_mi + \":\" + r_ss;\n \n return result;\n }", "public String getNbHeures() {\n long duree=0;\n if (listePlages!=null) {\n for(Iterator<PlageHoraire> iter=listePlages.iterator(); iter.hasNext(); ) {\n PlageHoraire p=iter.next();\n duree+=p.getDateFin().getTimeInMillis()-p.getDateDebut().getTimeInMillis();\n }\n duree=duree/1000/60; // duree en minutes\n }\n return \"\"+(duree/60)+\"h\"+(duree%60);\n }", "static long getHoursPart(Duration d) {\n long u = (d.getSeconds() / 60 / 60) % 24;\n\n return u;\n }", "private String getTimeDifference(long actualTime) {\n\t\tlong seconds = actualTime % (1000 * 60);\n\t\tlong minutes = actualTime / (1000 * 60);\n\n\t\tString result = null;\n\n\t\tif (minutes < 10) {\n\t\t\tresult = \"0\" + minutes + \":\";\n\t\t} else {\n\t\t\tresult = minutes + \":\";\n\t\t}\n\n\t\tif (seconds < 10) {\n\t\t\tresult += \"0\" + seconds;\n\t\t} else {\n\t\t\tString sec = seconds + \"\";\n\t\t\tresult += sec.substring(0, 2);\n\t\t}\n\n\t\treturn result;\n\t}", "private static int computeTime(String time) {\n\t\tint ret = 0;\n\t\tint multiply = 1;\n\t\tint decimals = 1;\n\t\tfor (int i = time.length() - 1; i >= 0; --i) {\n\t\t\tif (time.charAt(i) == ':') {\n\t\t\t\tmultiply *= 60;\n\t\t\t\tdecimals = 1;\n\t\t\t} else {\n\t\t\t\tret += (time.charAt(i) - '0') * multiply * decimals;\n\t\t\t\tdecimals *= 10;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public String displayHours() {\n String hrs=day+\" Hours: \" +getStartHours()+ \" to \"+get_endingHour();\n return hrs;\n }", "public String getDuration() {\n return duration;\n }", "private int toTime(int i) {\n int count = 0;\n\n //hours units\n count += toLeds((i / 6000) % 10);\n //hours tens\n count += toLeds(((i / 6000) % 100) / 10);\n\n //minutes units\n count += toLeds((i / 60) % 10);\n //minutes tens\n count += toLeds(((i / 60) % 100) / 10);\n\n //seconds units\n count += toLeds((i % 60) % 10);\n //seconds tens\n count += toLeds(((i % 60) % 100) / 10);\n\n return count;\n }", "public double getTime() { return duration; }", "public String getlength()\n\t{\n\t\treturn length.getText();\n\t}", "@Override\n\tpublic String toString() {\n\t\tLocalTime lT = LocalTime.of(hour, minute);\n\t\tDateTimeFormatter.ofPattern(\"hh:mm\").format(lT);\n\t\treturn lT.toString() + \" \" + timeType;\n\t}", "public String toUniversalString() {\n return String.format(\"%02d:%02d:%02d\", hour, minutes, seconds);\n\n }", "@Override\n public long getMicrosecondLength() {\n return clip.getMicrosecondLength();\n }", "static String getTime(int time) {\r\n\t\tint hours = time / 60;\r\n\t\tint minutes = time % 60;\r\n\r\n\t\tString ampm;\r\n\t\tif (time >= 720) ampm = \"PM\";\r\n\t\telse ampm = \"AM\";\r\n\r\n\t\treturn (String.format(\"%d:%02d%s\", hours, minutes, ampm));\r\n\t}", "protected int getLength() {\n int length = super.getLength(); //see if it is defined in the ncml\n if (length < 0) {\n double[] t = getTimes();\n if (t != null) length = t.length;\n else length = 0;\n }\n return length;\n }", "long getDuration();", "@Override\r\n\tpublic int connectingTime() {\r\n\t\tint totalTime = 0;\r\n\t\tfor (int i = 0; i < flights.size()-1; i++) {\r\n\t\t\tString time1 = \"\" + flights.get(i).getData().getArrivalTime();\r\n\t\t\tif (time1.length() < 3)\r\n\t\t\t\ttime1 = \"00\" + time1;\r\n\t\t\tif (time1.length() < 4)\r\n\t\t\t\ttime1 = \"0\" + time1;\r\n\t\t\t\r\n\t\t\tString time2 = \"\" + flights.get(i+1).getData().getDepartureTime();\r\n\t\t\tif (time1.length() < 3)\r\n\t\t\t\ttime1 = \"00\" + time1;\r\n\t\t\tif (time2.length() < 4)\r\n\t\t\t\ttime2 = \"0\" + time2;\r\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"HHmm\");\r\n\t\t\tDate date1 = null;\r\n\t\t\tDate date2 = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tdate1 = format.parse(time1);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tdate2 = format.parse(time2);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tlong difference = 0;\r\n\t\t\tdifference = date2.getTime() - date1.getTime();\r\n\t\t\tif(difference < 0) {\r\n\t\t\t\tdifference += 24*60*60*1000;\r\n\t\t\t}\r\n\t\t\ttotalTime += difference;\r\n\t\t}\r\n\t\treturn totalTime;\r\n\t}", "public int getPlayLength()\n\t{\n\t\treturn playbackLength;\n\t}", "public String getListingduration() {\r\n return listingduration;\r\n }", "String formatTime(int time) {\r\n\t\tint h = time / 3600;\r\n\t\ttime %= 3600;\r\n\t\tint m = time / 60;\r\n\t\ttime %= 60;\r\n\t\tint s = time;\r\n\t\treturn String.format(\"%02d:%02d:%02d\", h, m, s);\r\n\t}", "public int getHours() {\r\n return FormatUtils.uint8ToInt(mHours);\r\n }", "private static String timeLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, TIME_STR, TIME);\n }", "private String buildDuration(CalendarEntry entry)\r\n {\r\n StringBuffer duration = new StringBuffer();\r\n duration.append(\"P\");\r\n \r\n long timeDiff = entry.getEnd().getTime() - entry.getStart().getTime();\r\n \r\n int weeks = (int)Math.floor(timeDiff / DURATION_WEEK);\r\n if (weeks > 0)\r\n {\r\n duration.append(weeks);\r\n duration.append(\"W\");\r\n timeDiff -= weeks * DURATION_WEEK;\r\n }\r\n \r\n int days = (int)Math.floor(timeDiff / DURATION_DAY);\r\n if (days > 0)\r\n {\r\n duration.append(days);\r\n duration.append(\"D\");\r\n timeDiff -= days * DURATION_DAY;\r\n }\r\n \r\n duration.append(\"T\");\r\n \r\n int hours = (int)Math.floor(timeDiff / DURATION_HOUR);\r\n if (hours > 0)\r\n {\r\n duration.append(hours);\r\n duration.append(\"H\");\r\n timeDiff -= hours * DURATION_HOUR;\r\n }\r\n \r\n int minutes = (int)Math.floor(timeDiff / DURATION_MINUTE);\r\n if (minutes > 0)\r\n {\r\n duration.append(minutes);\r\n duration.append(\"M\");\r\n timeDiff -= minutes * DURATION_MINUTE;\r\n }\r\n \r\n int seconds = (int)Math.floor(timeDiff / DURATION_SECOND);\r\n if (seconds > 0)\r\n {\r\n duration.append(seconds);\r\n timeDiff -= minutes * DURATION_MINUTE;\r\n }\r\n \r\n return duration.toString();\r\n }", "public void setTimeLength(int timeLength) {\r\n this.timeLength = timeLength;\r\n }", "public String getTime() {\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tString time = dateFormat.format(cal.getTime());\n\t\t\treturn time;\n\t\t}", "private String formatTime(int seconds){\n return String.format(\"%02d:%02d\", seconds / 60, seconds % 60);\n }", "private static int getHours(String time) {\n\t\treturn (Character.getNumericValue(time.charAt(0)) * 10) + Character.getNumericValue(time.charAt(1));\n\t}", "public int length() {\n return (isSupportYear()\n ? mYear.length : 0)\n + (isSupportMonth()\n ? mMonth.length : 0)\n + (isSupportDay()\n ? mDay.length : 0)\n + (isSupportHours()\n ? mHours.length : 0)\n + (isSupportMinutes()\n ? mMinutes.length : 0)\n + (isSupportSeconds()\n ? mSeconds.length : 0);\n }", "public int getMP3FileDuration(String audioNamingDetails, Properties prop) {\r\n\r\n\t\t/*\r\n\t\t * Get file path details, same as was used for creating the target\r\n\t\t * MP3 file\r\n\t\t *\r\n\t\t * Determine OS of underlying system and set file path accordingly\r\n\t\t */\r\n\t\tString filePath = \"\";\r\n\t\tString serverOS = System.getProperty(\"os.name\");\r\n\r\n\t\tif (serverOS.startsWith(\"Windows\")) {\r\n\r\n\t\t\tif (this.debug) {\r\n\t\t\t\tSystem.out.println(\"\\nWindows OS found\");\r\n\t\t\t}\r\n\r\n\t\t\tfilePath = prop.getProperty(\"audioFileStorageWindows\");\r\n\r\n\t\t} else if (serverOS.startsWith(\"Linux\")) {\r\n\t\t\tif (this.debug) {\r\n\t\t\t\tSystem.out.println(\"Linux OS found\");\r\n\t\t\t}\r\n\t\t\tfilePath = prop.getProperty(\"audioFileStorageLinux\");\r\n\r\n\t\t} \r\n\r\n\t\t/*\r\n\t\t * Now access the file and get its duration\r\n\t\t */\r\n\t\tint dur = 0;\r\n\r\n\t\tAudioFile audioFile;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\taudioFile = AudioFileIO.read(new File(filePath + \"/\" + audioNamingDetails));\r\n\t\t\tdur = audioFile.getAudioHeader().getTrackLength();\r\n\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn -1;\r\n\t\t} \r\n\t\t \r\n\t\tif(this.debug) {\r\n\t\t\tprintln(\"\\nPlaying time of \" + audioNamingDetails + \" is \" + dur + \" sec\\n\");\r\n\t\t}\t\r\n\t\t\r\n\t\treturn dur;\r\n\t}", "int getWayLength();", "@Transient\n \tpublic int getDuration() {\n \t\tint duration = (int) (this.endTime.getTime() - this.startTime.getTime());\n \t\treturn duration / 1000;\n \t}", "public long getElapsedHours() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = (System.nanoTime() - startTime);\n\t\t} else {\n\t\t\telapsed = (stopTime - startTime);\n\t\t}\n\t\treturn elapsed / nsPerHh;\n\t}", "public long getSessionDuration(){\n return (currentTime-startTime)/1000;\n }", "public int getLength() { \r\n return audioLength; \r\n }", "public int totalTime(){\n\t\t\n\t\tint time=0;\n\t\t\n\t\n\t\tfor(int i=0; (i<songList.length);i++){\n\t\t\t\n\t\t\tif(songList[i]!=null){\n\t\t\t\n\t\t\ttime+= songList[i].getDuration();\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn time;\n\t\t\n\t}", "public String getTimeString() {\n DateFormat format = new SimpleDateFormat(\"HH:mm\");\n return format.format(mDate);\n }", "public String getDuration() {\n return this.duration;\n }", "private String getMinutesInTime(int time) {\n String hour = String.valueOf(time / 60);\n String minutes = String.valueOf(time % 60);\n\n if(minutes.length() < 2) {\n minutes = \"0\" + minutes;\n }\n\n return hour + \":\" + minutes;\n\n }", "public static String trackDurationConverter(int secondsInput)\r\n {\r\n String result;\r\n if(secondsInput > 0)\r\n {\r\n String tmpSec = \"\"; \r\n int tmpMin = 0;\r\n\r\n String seconds = Integer.toString(secondsInput % 60);\r\n String minutes = Integer.toString((secondsInput/60) % 60);\r\n String hours = Integer.toString((secondsInput/60) / 60);\r\n\r\n seconds = Integer.parseInt(seconds) < 9 ? \"0\"+seconds : seconds;\r\n minutes = Integer.parseInt(minutes) < 9 ? \"0\"+minutes : minutes;\r\n hours = Integer.parseInt(hours) < 9 ? \"0\"+hours : hours;\r\n\r\n if(Integer.parseInt(seconds) <= 30)\r\n {\r\n tmpSec = \"30\";\r\n tmpMin = Integer.parseInt(minutes);\r\n }\r\n else\r\n {\r\n tmpSec = \"00\";\r\n tmpMin = Integer.parseInt(minutes) + 1;\r\n }\r\n String tmpResult = tmpMin < 9 ? \"0\"+Integer.toString(tmpMin) : Integer.toString(tmpMin);\r\n String typeOfTime = tmpResult.equals(\"00\") ? \" sec\" : \" min\";\r\n\r\n result = \"circa \" + tmpResult + \":\" + tmpSec + typeOfTime;\r\n return result;\r\n }\r\n else\r\n {\r\n return result = \"-1\";\r\n }\r\n }", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "public Integer getRecordDuration() {\n return recordDuration;\n }", "private String formatDuration(long remaining) {\n\t\tif (remaining < 1000) {\n\t\t\treturn \"< 1 second\";\n\t\t} else if (remaining < 60000) {\n\t\t\treturn remaining / 1000 + \" seconds\";\n\t\t} else if (remaining < 3600000) {\n\t\t\treturn remaining / 60000 + \" minutes\";\n\t\t} else if (remaining < 86400000) {\n\t\t\treturn remaining / 3600000 + \" hours\";\n\t\t} else {\n\t\t\treturn remaining / 86400000 + \" days\";\n\t\t}\n\t}", "public String getTimeString() {\n // Converts slot to the minute it starts in the day\n int slotTimeMins =\n SlopeManagerApplication.OPENING_TIME * 60 + SESSION_LENGTHS_MINS * getSlot();\n\n Calendar cal = Calendar.getInstance();\n cal.set(Calendar.HOUR_OF_DAY, slotTimeMins/60);\n cal.set(Calendar.MINUTE, slotTimeMins % 60);\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MILLISECOND, 0);\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm\");\n return sdf.format(cal.getTime());\n }", "public int length()\n\t{\n\t\tif ( properties != null && properties.containsKey(\"ogg.length.bytes\") )\n\t\t{\n\t\t\tlengthInMillis = VobisBytes2Millis((Integer)properties.get(\"ogg.length.bytes\"));\n\t\t\tSystem.out.println(\"GOT LENGTH: \"+lengthInMillis);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlengthInMillis = -1;\n\t\t}\n\t\treturn (int)lengthInMillis;\n\t}", "public static double hoursSpent()\r\n {\r\n double howlong = 24.0;\r\n return howlong;\r\n }", "public static long TimeInformationToSeconds(String info){\n\t\tif(info.indexOf(':') > 0){\n\t\t\tString[] data = info.split(\":\");\n\t\t\tlong hours = Long.parseLong(data[0]);\n\t\t\tlong minutes = Long.parseLong(data[1]);\n\t\t\tlong seconds = Long.parseLong(data[2].split(\"[.]\")[0]);\n\t\t\tlong milliseconds = Long.parseLong(data[2].split(\"[.]\")[1]);\n\t\t\treturn (hours * 3600000) + (minutes * 60000) + (seconds * 1000) + milliseconds;\n\t\t}else{\n\t\t\n\t\t/*\n\t\tSystem.out.println(info.substring(0, info.indexOf(\"day\")));\n\t\tSystem.out.println(info.substring(0, info.indexOf(\"day\")));\n\t\tSystem.out.println(info.substring(info.indexOf(\" \"), info.indexOf(\":\")));\n\t\tSystem.out.println(info.substring(info.indexOf(':'), info.lastIndexOf(':')));\n\t\tSystem.out.println(info.substring(info.lastIndexOf(':'), info.indexOf('.')));\n\t\tSystem.out.println(info.substring(info.indexOf('.')));\n/*\t\tlong days = Long.parseLong(info.substring(0, info.indexOf(\"day\")));\n\t\tlong hours = Long.parseLong(info.substring(info.indexOf(\" \"), info.indexOf(\":\")));\n\t\tlong minutes = Long.parseLong(info.substring(info.indexOf(':'), info.lastIndexOf(':')));\n\t\tlong seconds = Long.parseLong(info.substring(info.lastIndexOf(':'), info.indexOf('.')));\n\t\tlong milliseconds = Long.parseLong(info.substring(info.indexOf('.')));\n\t*/\t\n\t\t}\n\t\treturn 1;//(days * 86400000) + (hours * 3600000) + (minutes * 60000) + (seconds * 1000) + milliseconds;\n\t}", "public Duration length() {\n return getObject(Duration.class, FhirPropertyNames.PROPERTY_LENGTH);\n }", "Posn getDuration();", "public static String TimeConverter(long t)\r\n {\r\n int h, m, s, ms;\r\n ms = (int)t;\r\n h = ms / 3600000;\r\n ms = ms % 3600000;\r\n m = ms / 60000;\r\n ms = ms % 60000;\r\n s = ms / 1000;\r\n ms = ms % 1000;\r\n return h + \" :: \" + m + \" :: \" + s + \" :: \" + ms;\r\n }", "public static String formattime(long millis) {\n\t\treturn String.format(\"%02d:%02d:%02d:%03d\", //This formats the time correctly\n\t\t\t\tTimeUnit.MILLISECONDS.toHours(millis),\n\t\t\t TimeUnit.MILLISECONDS.toMinutes(millis) -\n\t\t\t TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(millis)),\n\t\t\t TimeUnit.MILLISECONDS.toSeconds(millis) -\n\t\t\t TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(millis)),\n\t\t\t millis -\n\t\t\t TimeUnit.SECONDS.toMillis(TimeUnit.MILLISECONDS.toSeconds(millis)));\n\t\t\n\t}", "private int totalTime()\n\t{\n\t\t//i'm using this varaible enough that I should write a separate method for it\n\t\tint totalTime = 0;\n\t\tfor(int i = 0; i < saveData.size(); i++)//for each index of saveData\n\t\t{\n\t\t\t//get the start time\n\t\t\tString startTime = saveData.get(i).get(\"startTime\");\n\t\t\t//get the end time\n\t\t\tString endTime = saveData.get(i).get(\"endTime\");\n\t\t\t//****CONTINUE\n\t\t\t//total time in minutes\n\t\t}\n\t}", "@Override\r\n\tpublic int getHH() {\n\t\treturn HH;\r\n\t}", "public static String getTimeString(int t) {\n\t\tint hours = t / 3600;\n\t\tint minutes = (t / 60) % 60;\n\t\tint seconds = t % 60;\n\t\treturn (hours < 10 ? \"0\" : \"\")\n\t\t\t+ hours\n\t\t\t+ (minutes < 10 ? \":0\" : \":\")\n\t\t\t+ minutes\n\t\t\t+ (seconds < 10 ? \":0\" : \":\")\n\t\t\t+ seconds;\n\t}", "public void getSecsDetail( );", "public String getFormattedTimeFromStart() {\r\n if (history.getNumberOfJumpsSoFar() == 0) {\r\n return \"00:00\";\r\n }\r\n\r\n double time = history.getTimeFromStart();\r\n double maxTime = 59.59;\r\n if (time < maxTime) {\r\n return String.format(\"%02d:%02d\", (int) (time % 60), (int) (time * 100 % 100));\r\n } else {\r\n return \"59:59\";\r\n }\r\n }", "public static String formatDuration(Duration duration)\n\t{\n\t\tlong seconds = duration.toMillis() / 1000;\n\t\treturn String.format(\"%02d:%02d:%02d\", seconds / 3600, (seconds % 3600) / 60, (seconds % 60));\n\t}", "public static String getDurationString(long minutes, long seconds) {\n if(minutes>=0 && (seconds >=0 && seconds<=59)){\n// minutes = hours/60;\n// seconds = hours/3600;\n long hours = minutes / 60;\n long remainingMinutes = minutes % 60;\n\n return hours + \" h \" + remainingMinutes + \"m \" + seconds + \"s\";\n }\n else\n\n {\n return \"invalid value\";\n }\n }", "private void updateDuration() {\n duration = ((double) endTimeCalendar.getTime().getTime() - (startTimeCalendar.getTime().getTime())) / (1000 * 60 * 60.0);\n int hour = (int) duration;\n String hourString = dfHour.format(hour);\n int minute = (int) Math.round((duration - hour) * 60);\n String minuteString = dfMinute.format(minute);\n String textToPut = \"duration: \" + hourString + \" hours \" + minuteString + \" minutes\";\n eventDuration.setText(textToPut);\n }", "public String toString(){\r\n String strout = \"\";\r\n strout = String.format(\"%02d:%02d\", this.getMinutes(), this.getSeconds());\r\n return strout;\r\n }", "public int getFullDuration() {\r\n return disc.getDisc().stream()\r\n .mapToInt(Song::getDuration)\r\n .sum();\r\n }", "public String timeToString() {\n\t\tString start = \"\";\n\t\tString hmSep = \":\";\n\t\tString msSep = \":\";\n\t\tif (hour < 10)\n\t\t\tstart = new String(\"0\");\n\t\tif (minute < 10)\n\t\t\thmSep = new String(\":0\");\n\t\tif (second < 10)\n\t\t\tmsSep = new String(\":0\");\n\t\treturn new String(start\n\t\t\t\t+ hour + hmSep\n\t\t\t\t+ minute + msSep\n\t\t\t\t+ second);\n\t}", "public String getDisplayValue()\n {\n\t\t\t\tString time_str;\n\t\t\t\tif (hours.getValue()<12&&minutes.getValue()<10) {\n time_str = \"0\" + hours.getValue()+ \": 0\" + minutes.getValue();\n }\n\t\t\t\tif (hours.getValue()<12) {\n time_str = \"0\" + hours.getValue()+ \": \" + minutes.getValue();\n } else if (minutes.getValue()<10) {\n time_str = hours.getValue()+\": 0\"+ minutes.getValue();\n } else {\n time_str = hours.getValue()+\":\"+ minutes.getValue();\n }\n\t\t\t\treturn time_str;\n }", "public static String formatTime(long timeDiff){\n StringBuilder buf = new StringBuilder();\n long hours = timeDiff / (60*60*1000);\n long rem = (timeDiff % (60*60*1000));\n long minutes = rem / (60*1000);\n rem = rem % (60*1000);\n long seconds = rem / 1000;\n\n if (hours != 0){\n buf.append(hours);\n buf.append(\" hrs, \");\n }\n if (minutes != 0){\n buf.append(minutes);\n buf.append(\" mins, \");\n }\n\n if (seconds != 0) {\n buf.append(seconds);\n buf.append(\" sec\");\n }\n\n if (timeDiff < 1000) {\n buf.append(timeDiff);\n buf.append(\" msec\");\n }\n return buf.toString();\n }", "private static String hhhmmss(double totalseconds)\n {\n final int SECONDS_PER_MINUTE = 60;\n final int SECONDS_PER_HOUR = SECONDS_PER_MINUTE * 60;\n\n int hours = (int) (totalseconds / SECONDS_PER_HOUR);\n int minutes = (int) ((totalseconds % SECONDS_PER_HOUR)) / SECONDS_PER_MINUTE;\n double seconds = totalseconds % SECONDS_PER_MINUTE;\n\n return String.format(\"%d:%02d:%05.2f\", hours, minutes, seconds);\n }", "private static String hhhmmss(double totalseconds)\n {\n final int SECONDS_PER_MINUTE = 60;\n final int SECONDS_PER_HOUR = SECONDS_PER_MINUTE * 60;\n\n int hours = (int) (totalseconds / SECONDS_PER_HOUR);\n int minutes = (int) ((totalseconds % SECONDS_PER_HOUR)) / SECONDS_PER_MINUTE;\n double seconds = totalseconds % SECONDS_PER_MINUTE;\n\n return String.format(\"%d:%02d:%05.2f\", hours, minutes, seconds);\n }", "public static String getDuration( long start, long end )\r\n {\r\n long duration = end - start;\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat( \"HH:mm:ss:SSS\" );\r\n Calendar calendar = Calendar.getInstance( );\r\n calendar.setTimeInMillis( duration );\r\n\r\n return simpleDateFormat.format( calendar.getTime( ) );\r\n }" ]
[ "0.66949123", "0.6641876", "0.6106508", "0.6061078", "0.60103846", "0.60058373", "0.59482586", "0.5805576", "0.58002406", "0.57582355", "0.5755348", "0.57077724", "0.5701102", "0.56776345", "0.56454676", "0.56267446", "0.5623073", "0.56131065", "0.5588295", "0.55812824", "0.55657613", "0.5553158", "0.5536542", "0.55302846", "0.55090725", "0.5508888", "0.5467308", "0.5457079", "0.5456692", "0.54471344", "0.5442433", "0.5434992", "0.54305863", "0.54208934", "0.5416854", "0.5408534", "0.54030824", "0.54004353", "0.5396041", "0.53845793", "0.53756315", "0.5344612", "0.53239244", "0.531959", "0.53142846", "0.5305006", "0.5288668", "0.52815145", "0.5279719", "0.52764255", "0.5271968", "0.52645606", "0.5263687", "0.5261878", "0.52585304", "0.5255811", "0.52520716", "0.5251838", "0.5239655", "0.52375436", "0.5234369", "0.523254", "0.5230796", "0.5224175", "0.5221829", "0.52170765", "0.521605", "0.5209725", "0.5203539", "0.52011675", "0.5197955", "0.51950264", "0.5190837", "0.51871204", "0.5186855", "0.51755565", "0.5174663", "0.51726526", "0.5170834", "0.5163661", "0.5155841", "0.5146648", "0.5141262", "0.51385504", "0.51311296", "0.51277536", "0.5121328", "0.5118768", "0.5116864", "0.51138", "0.5106548", "0.50978565", "0.5096971", "0.5096851", "0.50959915", "0.5093536", "0.50914806", "0.5082358", "0.5082358", "0.50815207" ]
0.73716116
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_DY_ROUTE.DAY
public Date getDay() { return day; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override public app.onepass.apis.DayOfWeek getDay() {\n @SuppressWarnings(\"deprecation\")\n app.onepass.apis.DayOfWeek result = app.onepass.apis.DayOfWeek.valueOf(day_);\n return result == null ? app.onepass.apis.DayOfWeek.UNRECOGNIZED : result;\n }", "@java.lang.Override\n public app.onepass.apis.DayOfWeek getDay() {\n @SuppressWarnings(\"deprecation\")\n app.onepass.apis.DayOfWeek result = app.onepass.apis.DayOfWeek.valueOf(day_);\n return result == null ? app.onepass.apis.DayOfWeek.UNRECOGNIZED : result;\n }", "@java.lang.Override public int getDayValue() {\n return day_;\n }", "private Date getdDay() {\n\t\treturn this.dDay;\r\n\t}", "@java.lang.Override public int getDayValue() {\n return day_;\n }", "public io.dstore.values.StringValue getDay() {\n return day_ == null ? io.dstore.values.StringValue.getDefaultInstance() : day_;\n }", "public java.lang.String getDay()\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(DAY$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public Number getDayDate() {\n return (Number) getAttributeInternal(DAYDATE);\n }", "public int getDay() {\n\t\treturn day;\n\t}", "public int getDay() {\r\n\t\treturn (this.day);\r\n\t}", "public io.dstore.values.StringValue getDay() {\n if (dayBuilder_ == null) {\n return day_ == null ? io.dstore.values.StringValue.getDefaultInstance() : day_;\n } else {\n return dayBuilder_.getMessage();\n }\n }", "public int getDay() {\n\t\treturn this.day;\n\t}", "public int getDay() {\n\t\treturn this.day;\n\t}", "public int getDay() {\n\t\treturn day;\n\t}", "public int getDay() {\n\t\treturn day;\n\t}", "public int getDay() {\n\t\treturn day;\n\t}", "public int getDay(){\n\t\treturn day;\n\t}", "public String getDay() {\n\n\t\treturn day;\n\t}", "public int getDay() {\r\n return day;\r\n }", "public int getDay() {\r\n return FormatUtils.uint8ToInt(mDay);\r\n }", "public int getDay() {\n\treturn day;\n }", "public String getDay() {\n\t\treturn day;\n\t}", "public Integer getDay()\n {\n return this.day;\n }", "public Date getDay() {\n return day;\n }", "public int getDay()\n {\n return day;\n }", "Integer getDay();", "public int getDay() {\n return day;\n }", "public io.dstore.values.TimestampValue getDay() {\n if (dayBuilder_ == null) {\n return day_ == null ? io.dstore.values.TimestampValue.getDefaultInstance() : day_;\n } else {\n return dayBuilder_.getMessage();\n }\n }", "public int getDateDay(int columnIndex) {\n DateDayVector vector = (DateDayVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }", "public String getDay() {\n return this.day;\n }", "public io.dstore.values.TimestampValue getDay() {\n return day_ == null ? io.dstore.values.TimestampValue.getDefaultInstance() : day_;\n }", "String getDayofservice();", "public int GetDay(){\n\t\treturn this.date.get(Calendar.DAY_OF_WEEK);\n\t}", "public int getDay() {\n if (USE_SERIALIZABLE) {\n return childBuilder.getDay();\n } else {\n // @todo Replace with real Builder object if possible\n return convertNullToNOT_SET(childBuilderElement.getAttributeValue(\"day\"));\n }\n }", "public int getDay(){\n\t return this.day;\n }", "public byte getDay() {\n return day;\n }", "public byte getDay() {\n return day;\n }", "public byte getDay() {\n return day;\n }", "public byte getDay() {\n return day;\n }", "public byte getDay() {\r\n return day;\r\n }", "private String getStatusDay(LunarDate date) {\n if (Locale.SIMPLIFIED_CHINESE.equals(Locale.getDefault())\n || Locale.TRADITIONAL_CHINESE.equals(Locale.getDefault())) {\n if (date.holidayIdx != -1) {\n return RenderHelper.getStringFromList(R.array.holiday_array,\n date.holidayIdx);\n }\n if (date.termIdx != -1) {\n return RenderHelper.getStringFromList(R.array.term_array, date.termIdx);\n }\n }\n return getDay(date);\n }", "public byte getDay() {\n return day;\n }", "public double getDayLate() {\n return dayLate;\n }", "public io.dstore.values.StringValueOrBuilder getDayOrBuilder() {\n if (dayBuilder_ != null) {\n return dayBuilder_.getMessageOrBuilder();\n } else {\n return day_ == null ?\n io.dstore.values.StringValue.getDefaultInstance() : day_;\n }\n }", "public java.util.Calendar getDBizDay() {\n return dBizDay;\n }", "Integer getEndDay();", "io.dstore.values.TimestampValue getDay();", "io.dstore.values.StringValue getDay();", "public int getDateDay(String columnName) {\n DateDayVector vector = (DateDayVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }", "public int getDay(){\n String[] dateSplit = this.date.split(\"-\");\n calendar.set(Calendar.DAY_OF_MONTH, Integer.valueOf(dateSplit[2]));\n calendar.set(Calendar.MONTH, Integer.valueOf(dateSplit[1])-1);\n calendar.set(Calendar.YEAR, Integer.valueOf(dateSplit[0]));\n return calendar.get(Calendar.DAY_OF_WEEK);\n }", "public static int calendarDay2Day(int day) {\n switch (day) {\n case Calendar.SUNDAY:\n return RRuleContants.SU;\n case Calendar.MONDAY:\n return RRuleContants.MO;\n case Calendar.TUESDAY:\n return RRuleContants.TU;\n case Calendar.WEDNESDAY:\n return RRuleContants.WE;\n case Calendar.THURSDAY:\n return RRuleContants.TH;\n case Calendar.FRIDAY:\n return RRuleContants.FR;\n case Calendar.SATURDAY:\n return RRuleContants.SA;\n default:\n throw new RuntimeException(\"bad day of week: \" + day);\n }\n }", "public LocalDate getDay(DayOfWeek dayOfWeek) {\n return days.get(dayOfWeek.getValue() - 1);\n }", "public int getDayDistance() {\n\t\treturn dayDistance;\n\t}", "public String getDay(int Day)\n {\n int dayIndex = Day;\n String[] days = {\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"};\n String realDay = days[dayIndex];\n return realDay;\n }", "public DayOfWeekType getDepartureDay() {\n return departureDay;\n }", "public String getDay() {\n return day.getText();\n }", "public java.lang.String getDay() {\r\n return localDay;\r\n }", "public java.lang.String getDay() {\r\n return localDay;\r\n }", "public double getDayTravelDistance() {\n\t\treturn dayTravel;\n\t}", "public int getDay()\n\t{\n\t\treturn this.dayOfMonth;\n\t}", "public static int getTodaysDay() {\t\r\n\t\t\r\n\t\tTime time = new Time();\r\n\t\ttime.setToNow();\r\n\t\treturn time.monthDay;\t\r\n\t\t\r\n\t}", "public final native int getDay() /*-{\n return this.getDay();\n }-*/;", "@GetMapping(\"/rest/day\")\n\tpublic List<Order> getDay() {\n\t\treturn orderService.listDay();\n\t}", "public java.lang.String getDayNumber() {\n return dayNumber;\n }", "public int getSNbrSvcDtlToDay()\r\n {\r\n return this._sNbrSvcDtlToDay;\r\n }", "public DayOfWeek getDay(String dow)\r\n {\r\n int month=Integer.parseInt(dow.substring(0,2));\r\n int date=Integer.parseInt(dow.substring(3,5));\r\n int year=Integer.parseInt(dow.substring(6));\r\n LocalDate ld=LocalDate.of(year,month,date);\r\n DayOfWeek day=ld.getDayOfWeek();\r\n return day;\r\n }", "public int getDayOrNight() {\n return getStat(dayOrNight);\n }", "public int getLBR_ProtestDays();", "Date getEndDay();", "public io.dstore.values.BooleanValue getOrderByDay() {\n if (orderByDayBuilder_ == null) {\n return orderByDay_ == null ? io.dstore.values.BooleanValue.getDefaultInstance() : orderByDay_;\n } else {\n return orderByDayBuilder_.getMessage();\n }\n }", "public Day getDay(int dayNum) {\n\t\tif (dayNum <= days.length) {\n\t\t\treturn days[dayNum - 1];\n\t\t}\n\t\treturn null;\n\t}", "public int getEDays() {\n return eDays;\n }", "public Day[] getDays() {\n\t\treturn days;\n\t}", "public io.dstore.values.StringValueOrBuilder getDayOrBuilder() {\n return getDay();\n }", "public java.lang.Integer getBillCycleDay() {\n return billCycleDay;\n }", "private Day getDay(int day, int month) {\n return mainForm.getDay(day, month);\n }", "public int getDays() {\n return this.days;\n }", "public io.dstore.values.TimestampValueOrBuilder getDayOrBuilder() {\n if (dayBuilder_ != null) {\n return dayBuilder_.getMessageOrBuilder();\n } else {\n return day_ == null ?\n io.dstore.values.TimestampValue.getDefaultInstance() : day_;\n }\n }", "public int getDays(){\r\n\t\treturn days;\r\n\t}", "public io.dstore.values.TimestampValue getToDay() {\n return toDay_ == null ? io.dstore.values.TimestampValue.getDefaultInstance() : toDay_;\n }", "public ArrowBuf getIntervalDay(int columnIndex) {\n IntervalDayVector vector = (IntervalDayVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }", "public int getWeekDay()\n\t{\n\t\tif (m_nType == AT_WEEK_DAY)\n\t\t\treturn ((Integer)m_oData).intValue();\n\t\telse\n\t\t\treturn -1;\n\t}", "public int getIDays() {\n return iDays;\n }", "public int daysBetween(Day day)\n\t{\n\t\tlong millisBetween = Math.abs(this.getDayStart(TimeZoneEx.GMT).getTime() - day.getDayStart(TimeZoneEx.GMT).getTime());\n\t\treturn (int) Math.round((float) millisBetween / (1000F * 60F * 60F * 24F));\n\t}", "public Date getDate(){\n\t\treturn day.date;\n\t}", "@Override\n public int getDate() {\n return this.deadline.getDay();\n }", "public String getPaymentday() {\n return paymentday;\n }", "public long getDays() {\r\n \treturn days;\r\n }", "public Day getDay(int dayVal) {\n int startDay = (dayVal + this.start) % 7; // calculate remainder taking into account start day\n return Day.fromValue(startDay);\n }", "public Day getDay(final int i) {\n if (i > days.size() - 1) {\n return null;\n }\n return days.get(i);\n }", "public java.lang.String getEndDay() {\r\n return localEndDay;\r\n }", "@NotNull(message = \"empty.paymentDay\")\n public PaymentDay getPaymentDay() {\n\n return paymentDay;\n }", "public io.dstore.values.TimestampValue getToDay() {\n if (toDayBuilder_ == null) {\n return toDay_ == null ? io.dstore.values.TimestampValue.getDefaultInstance() : toDay_;\n } else {\n return toDayBuilder_.getMessage();\n }\n }", "public void setDayDOB(int dayDOB) {\n this.dayDOB = dayDOB;\n }", "public void setDayId(String dayId) {\r\n this.dayId = dayId;\r\n }", "public Weekday getDayOfWeek() {\n\n long utcDays = CALSYS.transform(this);\n return Weekday.valueOf(MathUtils.floorModulo(utcDays + 5, 7) + 1);\n\n }" ]
[ "0.6464711", "0.6405233", "0.62588525", "0.62203294", "0.6218275", "0.6204364", "0.61347014", "0.61339104", "0.6111151", "0.6107239", "0.60917217", "0.60898036", "0.60898036", "0.6038457", "0.6038457", "0.6038457", "0.5971196", "0.5971062", "0.59262633", "0.592089", "0.59188026", "0.5910257", "0.59004444", "0.58912724", "0.58904296", "0.5860279", "0.5848357", "0.5806727", "0.57720894", "0.5760667", "0.57298505", "0.5729242", "0.56141764", "0.557317", "0.55722374", "0.5569321", "0.5567314", "0.5567314", "0.5567314", "0.55630493", "0.55515945", "0.5546825", "0.5507237", "0.55050117", "0.5488711", "0.5480569", "0.5462998", "0.54552126", "0.5444617", "0.5443254", "0.54220057", "0.54106027", "0.5410201", "0.54093164", "0.54066473", "0.5392114", "0.53917086", "0.53917086", "0.5366355", "0.53657687", "0.53616107", "0.5355793", "0.53036475", "0.5275878", "0.5270161", "0.52651596", "0.5248783", "0.52285725", "0.5220035", "0.5217514", "0.52031964", "0.51906914", "0.518249", "0.51788753", "0.5165958", "0.51655096", "0.51631606", "0.51544833", "0.5149973", "0.51325184", "0.5131192", "0.51264405", "0.5112772", "0.5099738", "0.50991327", "0.5093722", "0.5091718", "0.50876373", "0.50755984", "0.50647557", "0.50539434", "0.5032371", "0.5031773", "0.50148064", "0.500455", "0.5003715" ]
0.59553885
22
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_ROUTE.DAY
public void setDay(Date day) { this.day = day; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDay(int day) {\r\n this.day = day;\r\n }", "public void setDay(int day)\n {\n this.day = day;\n }", "public void setDay(int day) {\n\t\tthis.day = day;\n\t}", "public void setDay(int day) {\n\t\tthis.day = day;\n\t}", "public void setDay(Date day) {\n this.day = day;\n }", "public void setDay(final int day) {\n\t\tthis.day = day;\n\t}", "public void setDayDate(Number value) {\n setAttributeInternal(DAYDATE, value);\n }", "public void setDay(java.lang.String day)\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(DAY$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DAY$0);\n }\n target.setStringValue(day);\n }\n }", "public void setDayDOB(int dayDOB) {\n this.dayDOB = dayDOB;\n }", "public void setDayLate(double dayLate) {\n this.dayLate = dayLate;\n }", "public void setDay(String day) {\n\n\t\tthis.day = day;\n\t}", "public void setDayId(String dayId) {\r\n this.dayId = dayId;\r\n }", "public void setDay(final short day) {\r\n\t\tthis.day = day;\r\n\t}", "public void setDay(int day) {\n if(day < 1 || day > 31) {\n this.day = 1;\n } else {\n this.day = day;\n }\n\n if(month == 2 && this.day > 29) {\n this.day = 29;\n } else if((month==4 || month==6 || month==8 || month==11) && this.day > 30) {\n this.day = 30;\n }\n }", "public void setDay(byte value) {\n this.day = value;\n }", "public void setDay(byte value) {\n this.day = value;\n }", "public void setDay(byte value) {\n this.day = value;\n }", "public void setDay(byte value) {\n this.day = value;\n }", "public void setDay(java.lang.String param) {\r\n localDayTracker = param != null;\r\n\r\n this.localDay = param;\r\n }", "public void setDay(java.lang.String param) {\r\n localDayTracker = param != null;\r\n\r\n this.localDay = param;\r\n }", "@java.lang.Override public int getDayValue() {\n return day_;\n }", "@java.lang.Override public int getDayValue() {\n return day_;\n }", "public boolean setDay(int newDay) {\n\t\tthis.day = newDay;\n\t\tdeltatIsValid = false;\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType);\n\t\treturn true;\n\t}", "public void setCalendarDay(int day)\n {\n this.currentCalendar.set(Calendar.DAY_OF_MONTH, day);\n }", "public void setDay(byte value) {\n this.day = value;\n }", "public void setDay(byte value) {\r\n this.day = value;\r\n }", "public void setEndDay(java.lang.String param) {\r\n localEndDayTracker = param != null;\r\n\r\n this.localEndDay = param;\r\n }", "public void setDayParam(String dayParam) {\r\n this.dayParam = dayParam;\r\n }", "public void xsetDay(org.apache.xmlbeans.XmlString day)\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(DAY$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DAY$0);\n }\n target.set(day);\n }\n }", "public void setDay(int day) {\r\n if ((day >= 1) && (day <= 31)) {\r\n this.day = day; //Validate day if true set else throws an exception\r\n } else {\r\n throw new IllegalArgumentException(\"Invalid Day!\");\r\n }\r\n\r\n }", "public void setDBizDay(java.util.Calendar dBizDay) {\n this.dBizDay = dBizDay;\n }", "@java.lang.Override public app.onepass.apis.DayOfWeek getDay() {\n @SuppressWarnings(\"deprecation\")\n app.onepass.apis.DayOfWeek result = app.onepass.apis.DayOfWeek.valueOf(day_);\n return result == null ? app.onepass.apis.DayOfWeek.UNRECOGNIZED : result;\n }", "@JsonSetter(\"joiningDay\")\n public void setJoiningDay (Days value) { \n this.joiningDay = value;\n notifyObservers(this.joiningDay);\n }", "public void setDay(int r1) throws java.lang.IllegalArgumentException {\n /*\n // Can't load method instructions: Load method exception: null in method: gov.nist.javax.sip.header.SIPDate.setDay(int):void, dex: in method: gov.nist.javax.sip.header.SIPDate.setDay(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.setDay(int):void\");\n }", "void setDayOrNight(int day) {\n setStat(day, dayOrNight);\n }", "@When(\"^I click on Departure day for the next day$\")\n\tpublic void i_click_on_Departure_day_for_the_next_day() throws Throwable {\n\t\tlp.chooseDepartDate();\n\t}", "public void setDepartureDay(DayOfWeekType departureDay) {\n this.departureDay = departureDay;\n }", "public void setCalDay() {\n\t\tfloat goal_bmr;\n\t\tif(gender==\"male\") {\n\t\t\tgoal_bmr= (float) (10 * (weight+loseGainPerWeek) + 6.25 * height - 5 * age + 5);\n\t\t}\n\t\telse {\n\t\t\tgoal_bmr=(float) (10 * (weight+loseGainPerWeek) + 6.25 * height - 5 * age - 161);\n\t\t}\n\t\tswitch (gymFrequency) {\n\t\tcase 0:calDay = goal_bmr*1.2;\n\t\t\t\tbreak;\n\t\tcase 1:\n\t\tcase 2:\n\t\tcase 3:calDay = goal_bmr*1.375;\n\t\t\t\tbreak;\n\t\tcase 4:\n\t\tcase 5:calDay = goal_bmr*1.55;\n\t\t\n\t\t\t\tbreak;\n\t\tcase 6:\n\t\tcase 7:calDay = goal_bmr*1.725;\n\t\t\t\tbreak;\n\t\t}\n\t}", "public void setDay(int day)\r\n {\n \tif (!(day <= daysInMonth(month) || (day < 1)))\r\n\t\t{\r\n \t\tthrow new IllegalArgumentException(\"Bad day: \" + day);\r\n\t\t}\r\n this.day = day;\r\n }", "@java.lang.Override\n public app.onepass.apis.DayOfWeek getDay() {\n @SuppressWarnings(\"deprecation\")\n app.onepass.apis.DayOfWeek result = app.onepass.apis.DayOfWeek.valueOf(day_);\n return result == null ? app.onepass.apis.DayOfWeek.UNRECOGNIZED : result;\n }", "public void setDay(Day day, int dayNum) {\n\t\tif (dayNum <= days.length) {\n\t\t\tdays[dayNum - 1] = day;\n\t\t}\n\t}", "public void setDay(int day) throws InvalidDateException {\r\n\t\tif (day <= 31 & day >= 1) {\r\n\t\t\tthis.day = day;\r\n\t\t} else {\r\n\t\t\tthrow new InvalidDateException(\"Please enter a realistic day for the date (between 1 and 31) !\");\r\n\t\t}\r\n\t}", "public Builder setDayValue(int value) {\n \n day_ = value;\n onChanged();\n return this;\n }", "public void setMday(int value) {\n this.mday = value;\n }", "private Date getdDay() {\n\t\treturn this.dDay;\r\n\t}", "public void setEDays(int days){\n \teDays = days;\n }", "public Date getDay() {\r\n return day;\r\n }", "public Date getDay() {\r\n return day;\r\n }", "public Date getDay() {\r\n return day;\r\n }", "public Date getDay() {\r\n return day;\r\n }", "public Date getDay() {\r\n return day;\r\n }", "public void setDays(int days) {\n this.days = days;\n }", "private void changeNextDay(){\n\t\tplanet.getClimate().nextDay();\n\t}", "public void setDays(int daysIn){\r\n\t\tdays = daysIn;\r\n\t}", "public int getDay() {\n\t\treturn day;\n\t}", "public Builder setDay(app.onepass.apis.DayOfWeek value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n day_ = value.getNumber();\n onChanged();\n return this;\n }", "public Date getDay() {\n return day;\n }", "public int getDay(){\n\t\treturn day;\n\t}", "public void setPaymentDay(PaymentDay paymentDay) {\n\n this.paymentDay = paymentDay;\n }", "public void setDays(String days) {\n\t\tthis.days = days;\n\t}", "public int getDay() {\n\t\treturn this.day;\n\t}", "public int getDay() {\n\t\treturn this.day;\n\t}", "public void setDate(int month, int day) {\r\n this.month = month;\r\n this.day = day;\r\n }", "public int getDay() {\r\n\t\treturn (this.day);\r\n\t}", "public int getDay() {\n\treturn day;\n }", "private void setDay() {\n Boolean result = false;\n for (int i = 0; i < 7; ++i) {\n if(mAlarmDetails.getRepeatingDay(i))\n result = true;\n mAlarmDetails.setRepeatingDay(i, mAlarmDetails.getRepeatingDay(i));\n }\n if(!result)\n mAlarmDetails.setRepeatingDay((Calendar.getInstance().get(Calendar.DAY_OF_WEEK) - 1), true);\n }", "public int getDay() {\n\t\treturn day;\n\t}", "public int getDay() {\n\t\treturn day;\n\t}", "public int getDay() {\n\t\treturn day;\n\t}", "public void setDY(int DY){\n \tdy = DY;\n }", "public void updateDay(int value)\n {\n this.currentCalendar.add(Calendar.DAY_OF_MONTH, value);\n }", "public void setDay(int year, int month, int day)\n\t{\n\t\t m_calendar.set(year,month-1,day);\n\n\t}", "public int getDay() {\r\n return day;\r\n }", "public void setDayOfWeek(int dayOfWeek) {\n this.dayOfWeek = dayOfWeek;\n }", "public void setUDays(int days){\n \tuDays = days;\n }", "public int getDay(){\n\t return this.day;\n }", "public Number getDayDate() {\n return (Number) getAttributeInternal(DAYDATE);\n }", "public boolean setDay(int newDay, boolean check) {\n\t\tthis.day = newDay;\n\t\tdeltatIsValid = false;\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType); // ->\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// erzeugt\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// JD\n\t\tif (check) {\n\t\t\tdouble oldYear = this.year;\n\t\t\tdouble oldMonth = this.month;\n\t\t\tIDate dt = swe_revjul(this.jd, this.calType); // -> erzeugt neues\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Datum\n\t\t\tthis.year = dt.year;\n\t\t\tthis.month = dt.month;\n\t\t\tthis.day = dt.day;\n\t\t\tthis.hour = dt.hour;\n\t\t\treturn (this.year == oldYear && this.month == oldMonth && this.day == newDay);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n\tpublic int updateDday(Dday d) {\n\t\treturn dDao.updateDday(sqlSession, d);\n\t}", "public int getDay() {\n return day;\n }", "public void seteBirthday(Date eBirthday) {\n this.eBirthday = eBirthday;\n }", "public io.dstore.values.StringValue getDay() {\n return day_ == null ? io.dstore.values.StringValue.getDefaultInstance() : day_;\n }", "abstract public void setServiceAppointment(Date serviceAppointment);", "public void setDay(int year, int month, int day) {\n cal = Calendar.getInstance();\n cal.set(year, month, day);\n }", "public int getDay()\n {\n return day;\n }", "public void setDayOfWeek(final int dayOfWeek) {\n this.dayOfWeek = dayOfWeek;\n }", "public void setDate(int day,int month,int year){\n this.day=day;\n this.month=month;\n this.year=year;\n }", "public void setDistance(int newDayDistance, double newDayTravelDistance) {\n\t\tthis.dayDistance = newDayDistance;\n\t\tthis.dayTravel = newDayTravelDistance;\n\t}", "public void setDayClass(String dayClass) {\r\n this.dayClass = dayClass;\r\n }", "public void unsetDay()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DAY$0, 0);\n }\n }", "public Integer getDay()\n {\n return this.day;\n }", "public void setDayOfWeek(Integer dayOfWeek) {\n this.dayOfWeek = dayOfWeek;\n }", "public void setDy(double newDy) {\n dy = (int) newDy;\n }", "public void setDayOfWeek(DayTemplate dayOfWeek) {\n this.dayOfWeek = dayOfWeek;\n }", "public void setRemittanceDay(Date remittanceDay) {\n this.remittanceDay = remittanceDay;\n }", "public io.dstore.values.StringValue getDay() {\n if (dayBuilder_ == null) {\n return day_ == null ? io.dstore.values.StringValue.getDefaultInstance() : day_;\n } else {\n return dayBuilder_.getMessage();\n }\n }" ]
[ "0.62186754", "0.6171598", "0.6169868", "0.6169868", "0.61531883", "0.6117353", "0.5985611", "0.5921334", "0.58848864", "0.58725846", "0.5838232", "0.5728586", "0.57080203", "0.5675526", "0.5644883", "0.5644883", "0.5644883", "0.5637409", "0.5625471", "0.5625471", "0.56044936", "0.55945003", "0.55915695", "0.55828714", "0.55720854", "0.5557784", "0.5533497", "0.5529624", "0.549792", "0.54837", "0.5482041", "0.5476675", "0.54747164", "0.54614514", "0.5459968", "0.5454756", "0.5453534", "0.54444766", "0.5414772", "0.54083997", "0.5386396", "0.5343037", "0.53420883", "0.5313155", "0.5303084", "0.5278758", "0.5234998", "0.5234998", "0.5234998", "0.5234998", "0.5234998", "0.52296823", "0.52044463", "0.5188473", "0.5171846", "0.51643425", "0.511907", "0.51019454", "0.5083296", "0.5079285", "0.5076435", "0.5076435", "0.5067591", "0.5043017", "0.504005", "0.50374174", "0.50373036", "0.50373036", "0.50373036", "0.5032446", "0.50215405", "0.50174445", "0.49941435", "0.49895006", "0.4986677", "0.49844253", "0.49674374", "0.49644104", "0.49630463", "0.49491513", "0.49390918", "0.49371293", "0.49359816", "0.49266574", "0.49177024", "0.49123192", "0.49121872", "0.4909158", "0.49033362", "0.49027953", "0.48973662", "0.48899582", "0.48883897", "0.48478866", "0.4845456", "0.48394138" ]
0.61970407
5
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_DY_ROUTE.REGION
public String getRegion() { return region; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getREGION()\n {\n \n return __REGION;\n }", "public String getRegionNo() {\n return regionNo;\n }", "public String getRegion() {\n return this.region;\n }", "public String getRegionno() {\n return regionno;\n }", "public String getRegionid() {\n return regionid;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion_id() {\n return region_id;\n }", "java.lang.String getRegionCode();", "public String getRegionId() {\n return regionId;\n }", "public String getRegionId() {\n return regionId;\n }", "public String getRegionId() {\n return regionId;\n }", "public int getRegionValue() {\n return region_;\n }", "public String getRegionId() {\r\n return regionId;\r\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public int getRegionid() {\n return regionid;\n }", "public Long getRegionId() {\n return this.regionId;\n }", "public int getRegionValue() {\n return region_;\n }", "public String getRegion() {\n return region;\n }", "public EnumRegion getRegion()\n {\n return region;\n }", "public int getRegionid() {\n\treturn regionid;\n}", "public long getRegionId() {\r\n return regionId;\r\n }", "java.lang.String getRegionId();", "public TypeOfRegion getRegion();", "public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }", "public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }", "public java.lang.String getPortRegionCode() {\n\t\treturn _tempNoTiceShipMessage.getPortRegionCode();\n\t}", "public String getRegionName() {\n return regionName;\n }", "int getRegionValue();", "public String getRegionName() {\r\n return regionName;\r\n }", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<String> getRegion() {\n\t\treturn getSqlMapClientTemplate().queryForList(\"R_ALARM_LOG.getRegion\");\r\n\t}", "IRegion getRegion();", "Integer getRegionId();", "public java.lang.String getRegionId() {\n java.lang.Object ref = regionId_;\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 regionId_ = s;\n return s;\n }\n }", "public java.lang.String getRegionId() {\n java.lang.Object ref = regionId_;\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 regionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getRegionname() {\n\treturn regionname;\n}", "public NegotiableQuoteAddressRegion getRegion() {\n return (NegotiableQuoteAddressRegion) get(\"region\");\n }", "public Region getRegion() {\n return region;\n }", "public int getC_Region_ID();", "public byte [] getRegionName() {\n return regionName;\n }", "String regionName();", "String regionName();", "String regionName();", "String regionName();", "@AutoEscape\n public String getRegion();", "@Override\n \tpublic SipApplicationRoutingRegion getRegion() {\n \t\treturn null;\n \t}", "@ApiModelProperty(value = \"State/region code of IP address\")\n public String getRegionCode() {\n return regionCode;\n }", "public String getOperateRegion() {\r\n return operateRegion;\r\n }", "public CoordinateRadius getRegion();", "public LocalRegion getRegion() {\n\t\treturn this.region;\n\t}", "kr.pik.message.Profile.HowMe.Region getRegion();", "private int getRegion(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.getRegion(java.lang.String):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.getRegion(java.lang.String):int\");\n }", "public String getRegionFullName() {\n return regionFullName;\n }", "com.google.protobuf.ByteString getRegionCodeBytes();", "@Nullable public abstract URI region();", "@Override\n\tpublic Historic_site_detailVO readRegion_detail(int bno) throws Exception {\n\t\treturn dao.readRegion_detail(bno);\n\t}", "public String getNomregion() {\n return (String) getAttributeInternal(NOMREGION);\n }", "public BigDecimal getBENEF_REGION() {\r\n return BENEF_REGION;\r\n }", "@ApiModelProperty(value = \"State/region of IP address\")\n public String getRegionName() {\n return regionName;\n }", "public String getStaticRegionId() {\n return staticRegionId;\n }", "private Location getRegion() {\n Set<? extends Location> locations = blobStore.listAssignableLocations();\n if (!(swiftRegion == null || \"\".equals(swiftRegion))) {\n for (Location location : locations) {\n if (location.getId().equals(swiftRegion)) {\n return location;\n }\n }\n }\n if (locations.size() != 0) {\n return get(locations, 0);\n } else {\n return null;\n }\n }", "public com.google.protobuf.ByteString\n getRegionIdBytes() {\n java.lang.Object ref = regionId_;\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 regionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public SysRegionVo getSysRegionBytNo(String tNo);", "public com.google.protobuf.ByteString\n getRegionIdBytes() {\n java.lang.Object ref = regionId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n regionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getRegionCodeFk() {\r\n return (String) getAttributeInternal(REGIONCODEFK);\r\n }", "public static java.lang.String getRegion(java.lang.String id) { throw new RuntimeException(\"Stub!\"); }", "java.lang.String getNextHopRegion();", "static String getRegion(Configuration conf, String defaultRegion)\n throws IOException {\n String region = conf.getTrimmed(S3GUARD_DDB_REGION_KEY);\n if (StringUtils.isEmpty(region)) {\n region = defaultRegion;\n }\n try {\n Regions.fromName(region);\n } catch (IllegalArgumentException | NullPointerException e) {\n throw new IOException(\"Invalid region specified: \" + region + \"; \" +\n \"Region can be configured with \" + S3GUARD_DDB_REGION_KEY + \": \" +\n validRegionsString());\n }\n return region;\n }", "public java.util.Enumeration getRegion() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n return ejbRef().getRegion();\n }", "public static String GetRegionInformation(String Region) {\n\t\tString regionString = null;\n\t\tDocument doc;\n\t\tFile Xml = new File(\"Regions.xml\");\n try {\n if (!Xml.exists()) {\n\t\t\tSystem.out.println(\"- Extracting Region.xml...\");\n\n InputStream is = Tools.class.getClass().getResourceAsStream(\n \"/Regions.xml\");\n FileOutputStream out = new FileOutputStream(new File(\n \"Regions.xml\"));\n\n int read;\n byte[] bytes = new byte[1024];\n\n while ((read = is.read(bytes)) != -1) {\n out.write(bytes, 0, read);\n }\n }\n\n\n\t\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory\n\t\t\t\t\t\t.newInstance();\n\t\t\t\tDocumentBuilder dBuilder;\n\n\t\t\t\tdBuilder = dbFactory.newDocumentBuilder();\n\n\t\t\t\tdoc = dBuilder.parse(Xml);\n\t\t\t\tdoc.getDocumentElement().normalize();\n\t\t\t\tNodeList nList = doc.getElementsByTagName(Region);\n\n\t\t\t\tfor (int temp = 0; temp < nList.getLength(); temp++) {\n\t\t\t\t\tNode nNode = nList.item(temp);\n\t\t\t\t\tif (nNode.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\t\tElement eElement = (Element) nNode;\n\t\t\t\t\t\tregionString = eElement.getElementsByTagName(\"Region\")\n\t\t\t\t\t\t\t\t.item(0).getTextContent();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (ParserConfigurationException | SAXException | IOException e) {\n\t\t\t\tlogger.error(e.getClass() + \" \" + e.getMessage());\n\t\t\t\tregionString = null;\n\t\t\t}\n return regionString;\n\t\t}", "public RegionManagementDetails getCompleteRegionDetails(String seasonId);", "public RegionState getRegionForState(String state);", "public String getValidRegionDesc();", "public Regions getRegions () {\n return this.regions;\n }", "public List<String> regions() {\n return this.regions;\n }", "public CustomerAddressQuery regionId() {\n startField(\"region_id\");\n\n return this;\n }", "public BigDecimal getIdregions() {\n return (BigDecimal) getAttributeInternal(IDREGIONS);\n }", "public double regionValue(){\n return counter.regionValue();\n }", "public Object[] getRegionalGISList() {\n return this.getList(AbstractGIS.INQUIRY_REGIONAL_GIS);\n }", "public void setREGION(java.lang.String value)\n {\n if ((__REGION == null) != (value == null) || (value != null && ! value.equals(__REGION)))\n {\n _isDirty = true;\n }\n __REGION = value;\n }", "public void setRegion_id(String region_id) {\n this.region_id = region_id;\n }", "public java.util.List<String> getRegionNames() {\n if (regionNames == null) {\n regionNames = new com.amazonaws.internal.SdkInternalList<String>();\n }\n return regionNames;\n }", "@Schema(description = \"The country or region imposing the tax.\")\n public String getTaxingRegion() {\n return taxingRegion;\n }", "com.google.protobuf.ByteString\n getRegionIdBytes();", "public void setRegion(String region) {\n this.region = region;\n }", "@java.lang.Override\n public com.clarifai.grpc.api.utils.Matrix.MatrixUint64 getRegionLocationMatrix() {\n return regionLocationMatrix_ == null ? com.clarifai.grpc.api.utils.Matrix.MatrixUint64.getDefaultInstance() : regionLocationMatrix_;\n }", "@Delegate\n @Path(\"/projects/{project}/regions/{region}\")\n RegionOperationApi getRegionOperationApi(@PathParam(\"project\") String project, @PathParam(\"region\") String region);", "@Transactional(isolation=Isolation.READ_COMMITTED)\n\t@Override\n\tpublic Historic_siteVO readRegion(int bno) throws Exception {\n\t\tdao.updateViewCnt(bno);\n\t\treturn dao.readRegion(bno);\n\t}", "public Region getCurrentRegion() {\n\n return currentRegion;\n }", "public String getRsv4() {\r\n return rsv4;\r\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }", "public void setRegion(String region) {\r\n this.region = region;\r\n }" ]
[ "0.75035554", "0.6786083", "0.6725835", "0.6698339", "0.66781396", "0.66182584", "0.66182584", "0.6609518", "0.66024256", "0.65906703", "0.65906703", "0.65906703", "0.6568093", "0.65645796", "0.655078", "0.655078", "0.655078", "0.655078", "0.655078", "0.65444475", "0.65182483", "0.65158266", "0.6503588", "0.6443359", "0.6405513", "0.6395755", "0.6344438", "0.6313045", "0.6268138", "0.62600315", "0.6251083", "0.6223076", "0.62119913", "0.6193338", "0.61568815", "0.61350137", "0.6133426", "0.61246246", "0.6078995", "0.60704505", "0.604576", "0.6040901", "0.60220826", "0.6002026", "0.5999947", "0.5999947", "0.5999947", "0.5999947", "0.59934735", "0.5969316", "0.59641", "0.5960769", "0.5954054", "0.59441215", "0.5929447", "0.58603084", "0.584549", "0.58400613", "0.580527", "0.5778039", "0.5774298", "0.5734757", "0.5695317", "0.5694479", "0.56944263", "0.5654658", "0.5646979", "0.5610652", "0.5605598", "0.55750686", "0.5565611", "0.5565592", "0.5495628", "0.5449739", "0.5443071", "0.5424042", "0.54062796", "0.5380583", "0.5340315", "0.5334399", "0.53279334", "0.5326088", "0.5306511", "0.52977145", "0.528247", "0.5273388", "0.52472425", "0.52468646", "0.5225585", "0.52217275", "0.52215004", "0.52118695", "0.5211389", "0.51879776", "0.51868635", "0.51703167", "0.51703167", "0.51703167" ]
0.6531873
22
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_ROUTE.REGION
public void setRegion(String region) { this.region = region; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setREGION(java.lang.String value)\n {\n if ((__REGION == null) != (value == null) || (value != null && ! value.equals(__REGION)))\n {\n _isDirty = true;\n }\n __REGION = value;\n }", "public void setC_Region_ID (int C_Region_ID);", "public void setRegion(String region);", "public void setRegion(EnumRegion region)\n {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public java.lang.String getREGION()\n {\n \n return __REGION;\n }", "public void setRegion(Region region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion_id(String region_id) {\n this.region_id = region_id;\n }", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegionNo(String regionNo) {\n this.regionNo = regionNo == null ? null : regionNo.trim();\n }", "@Generated\n @Selector(\"setRegion:\")\n public native void setRegion(@NotNull UIRegion value);", "public Builder setRegionId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n regionId_ = value;\n onChanged();\n return this;\n }", "public void setRegion(final TypeOfRegion region);", "public void setRegion(CoordinateRadius region);", "public String getRegion_id() {\n return region_id;\n }", "public String getRegionid() {\n return regionid;\n }", "public String getRegionNo() {\n return regionNo;\n }", "public void setRegion(String region) {\n this.region = region == null ? null : region.trim();\n }", "public void setRegion(String region) {\n this.region = region == null ? null : region.trim();\n }", "public void setRegionid(int newRegionid) {\n regionid = newRegionid;\n }", "public String getRegionno() {\n return regionno;\n }", "public void setRegionId(String regionId) {\r\n this.regionId = regionId == null ? null : regionId.trim();\r\n }", "public int getRegionid() {\n return regionid;\n }", "public void setRegionId(long regionId) {\r\n this.regionId = regionId;\r\n }", "public void setRegionId(String regionId) {\n this.regionId = regionId == null ? null : regionId.trim();\n }", "public void setRegionId(String regionId) {\n this.regionId = regionId == null ? null : regionId.trim();\n }", "public void setRegionId(String regionId) {\n this.regionId = regionId == null ? null : regionId.trim();\n }", "public void setRegionno(String regionno) {\n this.regionno = regionno == null ? null : regionno.trim();\n }", "public int getRegionid() {\n\treturn regionid;\n}", "public void setRegionid(String regionid) {\n this.regionid = regionid;\n }", "public String getRegionId() {\r\n return regionId;\r\n }", "public String getRegionId() {\n return regionId;\n }", "public String getRegionId() {\n return regionId;\n }", "public String getRegionId() {\n return regionId;\n }", "public long getRegionId() {\r\n return regionId;\r\n }", "public Long getRegionId() {\n return this.regionId;\n }", "public String getRegion() {\n return this.region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public Builder setRegionValue(int value) {\n region_ = value;\n onChanged();\n return this;\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public int getRegionValue() {\n return region_;\n }", "@Test\n\tpublic void testSetRegionMap() {\n\t\tMap<String, Region> regionMap = new LinkedHashMap<String, Region>();\n\t\tRegion caRegion = new RegionImpl(COUNTRY_CODE_CA,\n\t\t\t\t\t\t\t\t\t\t Arrays.asList(SUB_COUNTRY_CODE_AB, SUB_COUNTRY_CODE_BC));\n\t\tregionMap.put(COUNTRY_CODE_CA, caRegion);\n\n\t\tregionMap.put(COUNTRY_CODE_US, new RegionImpl(\"US\"));\n\n\t\tthis.shippingRegionImpl.setRegionMap(regionMap);\n\t\tassertSame(regionMap, this.shippingRegionImpl.getRegionMap());\n\n\t\t//Check the regionStr\n\t\tString regionString = this.shippingRegionImpl.getRegionStr();\n\t\tassertTrue(regionString.contains(\"[CA(AB,BC)]\"));\n\t\tassertTrue(regionString.contains(\"[US()]\"));\n\t}", "public String getRegion() {\n return region;\n }", "public void setOperateRegion(String operateRegion) {\r\n this.operateRegion = operateRegion == null ? null : operateRegion.trim();\r\n }", "public int getRegionValue() {\n return region_;\n }", "public Builder setRegion(String region) {\n try {\n _locbld.setRegion(region);\n } catch (InvalidLocaleIdentifierException e) {\n throw new IllegalArgumentException(e);\n }\n return this;\n }", "java.lang.String getRegionId();", "@ApiModelProperty(value = \"State/region code of IP address\")\n public String getRegionCode() {\n return regionCode;\n }", "public void setRegionName(String regionName) {\r\n this.regionName = regionName == null ? null : regionName.trim();\r\n }", "public void setRegionid(int newValue) {\n\tthis.regionid = newValue;\n}", "@Override\n \tpublic SipApplicationRoutingRegion getRegion() {\n \t\treturn null;\n \t}", "java.lang.String getRegionCode();", "public void setNomregion(String value) {\n setAttributeInternal(NOMREGION, value);\n }", "public EnumRegion getRegion()\n {\n return region;\n }", "public void setRegionname(java.lang.String newRegionname) {\n\tregionname = newRegionname;\n}", "Integer getRegionId();", "public void setPortRegionCode(java.lang.String portRegionCode) {\n\t\t_tempNoTiceShipMessage.setPortRegionCode(portRegionCode);\n\t}", "public TypeOfRegion getRegion();", "public void setCurrentRegion(Region currentRegion) {\n\n this.currentRegion = currentRegion;\n }", "public String getRegionName() {\r\n return regionName;\r\n }", "@Override\n\t@Transactional\n\t@Scheduled(cron = \"0 0 */4 * * *\")\n\tpublic void updateRegionsStatus() {\n\t\tregionRepository.updateRegionsStatus();\n\t}", "public java.lang.String getPortRegionCode() {\n\t\treturn _tempNoTiceShipMessage.getPortRegionCode();\n\t}", "int getRegionValue();", "public String getRegionName() {\n return regionName;\n }", "public void setRegionFullName(String regionFullName) {\n this.regionFullName = regionFullName == null ? null : regionFullName.trim();\n }", "public void setBENEF_REGION(BigDecimal BENEF_REGION) {\r\n this.BENEF_REGION = BENEF_REGION;\r\n }", "public int getC_Region_ID();", "public void setSR_ID(String SR_ID) {\n\t\tthis.SR_ID = SR_ID == null ? null : SR_ID.trim();\n\t}", "public Region getRegion() {\n return region;\n }", "@Override\n\tpublic Historic_site_detailVO readRegion_detail(int bno) throws Exception {\n\t\treturn dao.readRegion_detail(bno);\n\t}", "public void testGetSetRegion() {\n exp = new Experiment(\"10\");\n GeoLocation location = new GeoLocation(50.0, 40.0);\n exp.setRegion(location);\n assertEquals(\"get/setRegion does not work\", 50.0, exp.getRegion().getLat());\n assertEquals(\"get/setRegion does not work\", 40.0, exp.getRegion().getLon());\n }", "public Builder setRegion(kr.pik.message.Profile.HowMe.Region value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n region_ = value.getNumber();\n onChanged();\n return this;\n }", "public void setRegionCodeFk(String value) {\r\n setAttributeInternal(REGIONCODEFK, value);\r\n }", "public static void setRegion(Long adminId, List<String> ec2RegionList) {\n\n Connection con = null;\n try {\n con = DBUtils.getConn();\n //delete region\n PreparedStatement stmt = con.prepareStatement(\"delete from ec2_region where admin_id=?\");\n stmt.setLong(1, adminId);\n stmt.execute();\n\n //insert new region\n for (String ec2Region : ec2RegionList) {\n stmt = con.prepareStatement(\"insert into ec2_region (admin_id, region) values (?,?)\");\n stmt.setLong(1, adminId);\n stmt.setString(2, ec2Region);\n stmt.execute();\n DBUtils.closeStmt(stmt);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n DBUtils.closeConn(con);\n\n\n }", "public CustomerAddressQuery regionId() {\n startField(\"region_id\");\n\n return this;\n }", "@ApiModelProperty(value = \"State/region of IP address\")\n public String getRegionName() {\n return regionName;\n }", "@AutoEscape\n public String getRegion();", "@Nullable public abstract URI region();", "public Builder setRegion(String region) {\n/* 1601 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public Builder withRegion(final String region) {\n this.region = region;\n return this;\n }", "@Test\n\tpublic void testGetRegionMap() {\n\t\tthis.shippingRegionImpl.setRegionStr(REGION_STR);\n\t\tMap<String, Region> regionMap = this.shippingRegionImpl.getRegionMap();\n\t\tassertEquals(REGION_MAP_SIZE, regionMap.size());\n\t\tassertEquals(COUNTRY_CODE_CA, regionMap.get(COUNTRY_CODE_CA).getCountryCode());\n\t\tList<String> caRegionSubCountryList = regionMap.get(COUNTRY_CODE_CA).getSubCountryCodeList();\n\t\tassertTrue(caRegionSubCountryList.contains(SUB_COUNTRY_CODE_AB));\n\t\tassertTrue(caRegionSubCountryList.contains(SUB_COUNTRY_CODE_BC));\n\t\tassertEquals(COUNTRY_CODE_US, regionMap.get(COUNTRY_CODE_US).getCountryCode());\n\t\tassertEquals(0, regionMap.get(COUNTRY_CODE_US).getSubCountryCodeList().size());\n\t}", "public SysRegionVo getSysRegionBytNo(String tNo);", "IRegion getRegion();", "private int getRegion(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.getRegion(java.lang.String):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.getRegion(java.lang.String):int\");\n }", "@NonNull\n public RegionTriggerBuilder setRegionId(@Nullable String regionId) {\n this.regionId = regionId;\n return this;\n }", "public TrafficRegions withRegions(List<String> regions) {\n this.regions = regions;\n return this;\n }" ]
[ "0.65011066", "0.6269537", "0.6071792", "0.59836155", "0.5973749", "0.59645355", "0.59147644", "0.5897774", "0.5838212", "0.5838212", "0.5838212", "0.5825046", "0.5815249", "0.57671005", "0.576613", "0.5762172", "0.5741845", "0.5738119", "0.5732348", "0.5716405", "0.57005453", "0.56849074", "0.56849074", "0.56774056", "0.5660143", "0.56337774", "0.5629348", "0.5598441", "0.559201", "0.559201", "0.559201", "0.5590467", "0.5526514", "0.5521844", "0.5520509", "0.55022025", "0.55022025", "0.55022025", "0.5416876", "0.54148966", "0.5403053", "0.5399413", "0.5399413", "0.5385258", "0.5317018", "0.5317018", "0.5317018", "0.52789426", "0.52789426", "0.52789426", "0.52789426", "0.52789426", "0.5266803", "0.52467495", "0.52387935", "0.5213867", "0.5212542", "0.5206749", "0.51786137", "0.5176271", "0.5174224", "0.51416934", "0.51188886", "0.5107417", "0.508155", "0.50805366", "0.50802726", "0.49958053", "0.49896264", "0.49416643", "0.4926122", "0.49209583", "0.49131835", "0.49030218", "0.48977375", "0.48952937", "0.48901528", "0.48866218", "0.48864204", "0.4874423", "0.4856855", "0.48567194", "0.48518685", "0.48420525", "0.48222697", "0.4819559", "0.48181653", "0.48058885", "0.47947487", "0.4789307", "0.47845098", "0.4779076", "0.47750112", "0.47727504", "0.47697246", "0.4768431", "0.47676873", "0.47573438" ]
0.59046304
9
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_DY_ROUTE.MSCID
public String getMscid() { return mscid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMscid() {\n return mscid;\n }", "String getRouteID();", "public java.lang.String getMSCD() {\n return MSCD;\n }", "public Long getRouteid() {\n return routeid;\n }", "public String getRouteid() {\r\n return routeid;\r\n }", "public String getWmoId() {\n String wmoID = \"\";\n if (!(stnm == GempakConstants.IMISSD)) {\n wmoID = String.valueOf(stnm / 10);\n }\n return wmoID;\n }", "public String getRoutingNo();", "public int getRouteId() {\n return routeId;\n }", "Integer getCCPID();", "public String getSCRSNo() {\n return sCRSNo;\n }", "public java.lang.String getGPSReceiverDetailsID()\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(GPSRECEIVERDETAILSID$16);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public int getLCO_DIAN_SendSchedule_ID () \n\t{\n\t\tInteger ii = (Integer)get_Value(COLUMNNAME_LCO_DIAN_SendSchedule_ID);\n\t\tif (ii == null)\n\t\t\t return 0;\n\t\treturn ii.intValue();\n\t}", "public org.apache.axis2.databinding.types.soapencoding.String getCSPID(){\n return localCSPID;\n }", "public int getMessageId() {\n return concatenateBytes(binary[MSID_OFFSET],\n binary[MSID_OFFSET+1],\n binary[MSID_OFFSET+2],\n binary[MSID_OFFSET+3]);\n }", "public Long getSmsId() {\n return this.smsId;\n }", "public String getMaternalID();", "public int getM_InOut_ID();", "public String getStopID(String S){\n return js.getBusIDfromSearch(S);\n }", "public String getSystemID()\n/* */ {\n/* 1299 */ return this.systemID;\n/* */ }", "public int getM_Production_ID();", "public int getMcc() {\n return mcc_;\n }", "public int getMcc() {\n return mcc_;\n }", "public int getMcc() {\n return mcc_;\n }", "public int getMcc() {\n return mcc_;\n }", "public java.lang.String getMgCustomerReceiveNumber() {\r\n return mgCustomerReceiveNumber;\r\n }", "public int getLBR_DocLine_ICMS_ID();", "public int getMsisdnId() {\n return msisdnId;\n }", "public void setMscid(String mscid) {\r\n this.mscid = mscid;\r\n }", "public void setMscid(String mscid) {\r\n this.mscid = mscid;\r\n }", "public void setMscid(String mscid) {\r\n this.mscid = mscid;\r\n }", "public void setMscid(String mscid) {\r\n this.mscid = mscid;\r\n }", "public final String mo132052c() {\n MtopConfig aVar = this.f111984a;\n return aVar != null ? aVar.f112130a : \"\";\n }", "public org.apache.axis2.databinding.types.soapencoding.String getCorrelateID(){\n return localCorrelateID;\n }", "public int getM_RequisitionLine_ID() {\n\t\tInteger ii = (Integer) get_Value(\"M_RequisitionLine_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public String getCurSpiceInstID() {\n return mVMStrID;\n }", "public int getRTRNCD() {\n return rtrncd;\n }", "public void setMscid(String mscid) {\n this.mscid = mscid;\n }", "public int getM_Requisition_ID() {\n\t\tInteger ii = (Integer) get_Value(\"M_Requisition_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public SystemMessage getSystemMessage(Integer sID){\n\t\treturn hmSysMsg.get(sID);\n\t}", "public java.lang.String getIDCardNo() {\r\n return localIDCardNo;\r\n }", "public java.lang.String getIDCardNo() {\r\n return localIDCardNo;\r\n }", "public ShareRouteParm getRouteMsg() {\n\t\treturn routeMsg;\n\t}", "public String getSsdsmc() {\n return ssdsmc;\n }", "public Integer getRoutingId() {\n return routingId;\n }", "public String getClId() {\r\n return clId;\r\n }", "public java.lang.String getCrmId() {\n return crmId;\n }", "public String getMcc() {\n return mcc;\n }", "public int getCT_CompLifeCycleModel_ID () \n\t{\n\t\tInteger ii = (Integer)get_Value(COLUMNNAME_CT_CompLifeCycleModel_ID);\n\t\tif (ii == null)\n\t\t\t return 0;\n\t\treturn ii.intValue();\n\t}", "public int getChRoadSegmentId() {\r\n return chRoadSegmentId;\r\n }", "public String getSpmc() {\n return spmc;\n }", "int getRoutingAppID();", "public java.lang.String getGPSAntennaDetailsID()\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(GPSANTENNADETAILSID$14);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public org.apache.axis2.databinding.types.soapencoding.String getLSPID(){\n return localLSPID;\n }", "public int getM_Locator_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Locator_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public String vmmServerId() {\n return this.innerProperties() == null ? null : this.innerProperties().vmmServerId();\n }", "public int getC_UOM_Time_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_UOM_Time_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public int getCLNO() {\n return clno;\n }", "public String getManagementServerSerialNumber() throws VPlexApiException {\n s_logger.info(\"Request for management server serial number for VPlex at {}\", _baseURI);\n return _discoveryMgr.getManagementServerSerialNumber();\n }", "int getRmsCyc();", "public String getMlsNumber() {\n\t\treturn mlsNumber;\n\t}", "private String m29111g() {\n PersistentConfiguration cVar = this.f22554b;\n if (cVar != null) {\n String string = cVar.getString(\"UTDID2\");\n if (!C6804i.m29033a(string) && this.f22552a.mo32716a(string) != null) {\n return string;\n }\n }\n return null;\n }", "public Integer getPRMDocMstseq() {\n return (Integer)getAttributeInternal(PRMDOCMSTSEQ);\n }", "public String getClId() {\r\n\t\treturn clId;\r\n\t}", "public int getM_MovementConfirm_ID();", "public void setMSCD(java.lang.String MSCD) {\n this.MSCD = MSCD;\n }", "public int getC_OrderLine_ID();", "public String getScid() {\n return scid;\n }", "public String getMobileNo() {\n return (String)getAttributeInternal(MOBILENO);\n }", "public java.lang.String getRoute () {\n\t\treturn route;\n\t}", "public int getContrcdId() {\n return contrcdId;\n }", "public String getTransID()\n\t{\n\t\tif(response.containsKey(\"RRNO\")) {\n\t\t\treturn response.get(\"RRNO\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public String getMessageId() {\n\n // Get the message ID\n return this.messageHeader.getMsgId();\n }", "public StrColumn getDatabaseIdCSD() {\n return delegate.getColumn(\"database_id_CSD\", DelegatingStrColumn::new);\n }", "public Number getSystemId() {\n return (Number)getAttributeInternal(SYSTEMID);\n }", "public String getSR_ID() {\n\t\treturn SR_ID;\n\t}", "public int getLBR_DocLine_Details_ID();", "public String getClkid() {\r\n\t\treturn clkid;\r\n\t}", "public Number getSystemId() {\n return (Number) getAttributeInternal(SYSTEMID);\n }", "private String getNvFromMst(String mstPath) {\n\t\tString nv = null;\n\t\tMdbConnection mstMdbConnection;\n\t\ttry {\n\t\t\tmstMdbConnection = new MdbConnection(mstPath);\n\t\t\n\t\t\n\n\t\t\tString query = \"select paramValue from IniParam where paramName ='NuclideVector';\";\n\t\t\tSystem.out.println(query);\n\t\t\tPreparedStatement ps = mstMdbConnection.getInstance().getConnection()\n\t\t\t\t\t.prepareStatement(query);\n\t\t\t// ps.setString(1, \"Nuclide Vector\");\n\t\t\tps.execute();\n\t\t\tResultSet rs = ps.getResultSet();\n\t\t\tif (rs.next())\n\t\t\t\tnv = rs.getString(\"paramValue\");\n\t\t\tmstMdbConnection.closeConnection();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tSystem.out.println(\"getNvFromMst error\");\n\t\t\tmainFrame.showMessage(\"Error in getNV\", e.getMessage());\n\t\t}\n\t\t\n\t\t//System.out.println(\"mstMdbConnection closed in Program\");\n\t\treturn nv;\n\t}", "String getCCSID();", "public String getMsCV() {\n return this.msCV;\n }", "public String getSystemId() { return this.systemId; }", "private long getReserveRecNo() {\n\t\tfinal int selectedRow = this.clientUI.getSelectedRowNo();\n\t\treturn this.model.getRecNo(selectedRow);\n\t}", "public java.lang.String getID_NO() {\r\n return ID_NO;\r\n }", "int getMcc();", "int getMcc();", "long getScheduleID() {return mScheduleID; }", "public String getSOrderID() {\n return sOrderID;\n }", "public int getGateNumber(int mCode)\r\n\t {\r\n\t\t return MRs[mCode].getGateNumber();\r\n\t }", "int getSnId();", "int getSnId();", "int getSnId();", "int getSnId();", "public int getC_OrderLine_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_OrderLine_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public String getSR_SEQ() {\n\t\treturn SR_SEQ;\n\t}", "public java.lang.String getRrNo () {\n\t\treturn rrNo;\n\t}", "public java.lang.String getDSCRLONGD() {\n return DSCRLONGD;\n }" ]
[ "0.6074105", "0.59552485", "0.5828574", "0.57225716", "0.5704592", "0.55239934", "0.5490908", "0.5412172", "0.5362637", "0.535167", "0.5341614", "0.5328171", "0.53188545", "0.53113437", "0.5273387", "0.52711594", "0.5179002", "0.5162984", "0.515801", "0.51456606", "0.5143065", "0.5143065", "0.5139644", "0.5139644", "0.5138403", "0.5127726", "0.5122945", "0.50973254", "0.50973254", "0.50973254", "0.50973254", "0.5090473", "0.50857514", "0.5084528", "0.50734043", "0.5064319", "0.5050242", "0.50440764", "0.5040229", "0.50330114", "0.50330114", "0.5032065", "0.50288445", "0.50279856", "0.50154424", "0.49919844", "0.4975176", "0.4974395", "0.49703526", "0.49626625", "0.49623305", "0.4954134", "0.4949529", "0.4949113", "0.49466336", "0.4945218", "0.49290258", "0.49289364", "0.49284658", "0.49273536", "0.49027503", "0.48936465", "0.48822117", "0.48777807", "0.48710814", "0.4863423", "0.48566237", "0.4854782", "0.48492408", "0.48473975", "0.48473066", "0.4845641", "0.48435622", "0.4834274", "0.48288807", "0.4827526", "0.4826538", "0.48201692", "0.48145828", "0.4807776", "0.48032266", "0.48027608", "0.4794888", "0.47939405", "0.47896242", "0.47896242", "0.4785405", "0.47837082", "0.47796315", "0.47752935", "0.47752935", "0.47752935", "0.47752935", "0.47686973", "0.47686934", "0.47640827", "0.47601452" ]
0.6115859
3
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_ROUTE.MSCID
public void setMscid(String mscid) { this.mscid = mscid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setRoute(String routeID);", "public void setMscid(String mscid) {\n this.mscid = mscid;\n }", "public void setMSCD(java.lang.String MSCD) {\n this.MSCD = MSCD;\n }", "public void setRoutingNo (String RoutingNo);", "public void setLBR_DocLine_ICMS_ID (int LBR_DocLine_ICMS_ID);", "public static void setClID(String clID) {\n CLTRID.clID = clID;\n val = 0;\n }", "public String getMscid() {\r\n return mscid;\r\n }", "public String getMscid() {\r\n return mscid;\r\n }", "public String getMscid() {\r\n return mscid;\r\n }", "public String getMscid() {\r\n return mscid;\r\n }", "public String getMscid() {\n return mscid;\n }", "public void setCSPID(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localCSPID=param;\n \n\n }", "public void setC_OrderLine_ID (int C_OrderLine_ID);", "public void setLBR_DocLine_Details_ID (int LBR_DocLine_Details_ID);", "public void setRouteid(String routeid) {\r\n this.routeid = routeid;\r\n }", "public void setCorrelateID(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localCorrelateID=param;\n \n\n }", "public void setM_Production_ID (int M_Production_ID);", "public void setRouteId(int routeId) {\n this.routeId = routeId;\n }", "public void setMsisdnId(int value) {\n this.msisdnId = value;\n }", "public Gateway setMcc(java.lang.String mcc) {\n return genClient.setOther(mcc, CacheKey.mcc);\n }", "public String getRouteid() {\r\n return routeid;\r\n }", "public void setMsisdn(java.lang.String param){\n localMsisdnTracker = true;\n \n this.localMsisdn=param;\n \n\n }", "public void setRouteid(Long routeid) {\n this.routeid = routeid;\n }", "public void setLSPID(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localLSPID=param;\n \n\n }", "public void updateSCId(int sCid){\n\t\tthis.sCiD = sCid;\n\t}", "public final void setSystemID(java.lang.String systemid)\r\n\t{\r\n\t\tsetSystemID(getContext(), systemid);\r\n\t}", "public Long getRouteid() {\n return routeid;\n }", "public void setRCID(int RCID) {\n this.RCID = RCID;\n }", "public void setSpid(int param){\n localSpidTracker = true;\n \n this.localSpid=param;\n \n\n }", "void setLspId(String lspId);", "public final void setSystemID(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String systemid)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.SystemID.toString(), systemid);\r\n\t}", "public void setCaseID(java.lang.String param){\n \n this.localCaseID=param;\n \n\n }", "private void setMM(int MM) {\n\t\tCMN.MM = MM;\n\t}", "public void setM_InOut_ID (int M_InOut_ID);", "public void setSR_ID(String SR_ID) {\n\t\tthis.SR_ID = SR_ID == null ? null : SR_ID.trim();\n\t}", "public void setRTRNCD(int value) {\n this.rtrncd = value;\n }", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public void setM_MovementConfirm_ID (int M_MovementConfirm_ID);", "public void setRadiologyOrderID(java.lang.String param){\n \n this.localRadiologyOrderID=param;\n \n\n }", "public void setRadiologyOrderID(java.lang.String param){\n \n this.localRadiologyOrderID=param;\n \n\n }", "public java.lang.String getMSCD() {\n return MSCD;\n }", "public void setHC_ManagerTo_ID (int HC_ManagerTo_ID);", "public void setIDCardNo(java.lang.String param) {\r\n localIDCardNoTracker = param != null;\r\n\r\n this.localIDCardNo = param;\r\n }", "public void setIDCardNo(java.lang.String param) {\r\n localIDCardNoTracker = param != null;\r\n\r\n this.localIDCardNo = param;\r\n }", "public void setSdSeminarID(long value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (value != this.m_lSdSeminarID));\n\t\tthis.m_lSdSeminarID=value;\n\t}", "public void setCIDScreenManager(CIDScreenManager cidScreenManager);", "public void setC_UOM_Time_ID(int C_UOM_Time_ID) {\n\t\tif (C_UOM_Time_ID <= 0)\n\t\t\tset_Value(\"C_UOM_Time_ID\", null);\n\t\telse\n\t\t\tset_Value(\"C_UOM_Time_ID\", new Integer(C_UOM_Time_ID));\n\t}", "public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }", "public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }", "void setSOID(java.lang.String soid);", "public void setSpmc(String spmc) {\n this.spmc = spmc;\n }", "public void setScid(String scid) {\n this.scid = scid == null ? null : scid.trim();\n }", "public void setGPSReceiverDetailsID(java.lang.String gpsReceiverDetailsID)\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(GPSRECEIVERDETAILSID$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(GPSRECEIVERDETAILSID$16);\r\n }\r\n target.setStringValue(gpsReceiverDetailsID);\r\n }\r\n }", "public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }", "public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }", "public void setMPC_Order_BOMLine_ID(int MPC_Order_BOMLine_ID) {\n\t\tif (MPC_Order_BOMLine_ID <= 0)\n\t\t\tset_Value(\"MPC_Order_BOMLine_ID\", null);\n\t\telse\n\t\t\tset_Value(\"MPC_Order_BOMLine_ID\", new Integer(MPC_Order_BOMLine_ID));\n\t}", "public void setBoard_id(int Board_id){\n this.Board_id=Board_id;\n }", "public void setRouteMsg(ShareRouteParm routeMsg) {\n\t\tthis.routeMsg = routeMsg;\n\t}", "public void setSWDES(int param) {\r\n this.localSWDES = param;\r\n }", "public void setSpId(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localSpIdTracker = true;\r\n } else {\r\n localSpIdTracker = false;\r\n \r\n }\r\n \r\n this.localSpId=param;\r\n \r\n\r\n }", "public void setC_OrderLine_ID (int C_OrderLine_ID)\n\t{\n\t\tif (C_OrderLine_ID < 1) \n\t\t\tset_Value (COLUMNNAME_C_OrderLine_ID, null);\n\t\telse \n\t\t\tset_Value (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID));\n\t}", "String getRouteID();", "public void setC_UOM_ID(int C_UOM_ID) {\n\t\tif (C_UOM_ID <= 0)\n\t\t\tset_Value(\"C_UOM_ID\", null);\n\t\telse\n\t\t\tset_Value(\"C_UOM_ID\", new Integer(C_UOM_ID));\n\t}", "public void setMachineID(int value) {\n this.machineID = value;\n }", "public void setServiceID(ID sid) {\n\tserviceID = sid;\n }", "private void updPRMST()\n\t{ \n\t\ttry\n\t\t{\n\t\t\tM_strSQLQRY = \"Update CO_PRMST set \";\n\t\t\tM_strSQLQRY += \"PR_CSTQT = PR_CSTQT + \"+strISSQT+\",\";\n\t\t\tM_strSQLQRY += \"PR_TRNFL = '0',\";\n\t\t\tM_strSQLQRY += \"PR_LUSBY = '\"+cl_dat.M_strUSRCD_pbst+\"',\";\n\t\t\tM_strSQLQRY += \"PR_LUPDT = '\"+M_fmtDBDAT.format(M_fmtLCDAT.parse(cl_dat.M_strLOGDT_pbst))+\"'\";\n\t\t\tM_strSQLQRY += \" where pr_prdcd = '\"+strPRDCD+\"'\";\n\t\t\t\n\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\n\t\t\t//System.out.println(\"update COprmt table :\"+M_strSQLQRY);\n\t\t}catch(Exception L_EX)\n\t\t{\n\t\t\tsetMSG(L_EX,\"updPRMST\");\n\t\t}\n\t}", "public void setLCO_DIAN_SendSchedule_ID (int LCO_DIAN_SendSchedule_ID)\n\t{\n\t\tif (LCO_DIAN_SendSchedule_ID < 1) \n\t\t\tset_ValueNoCheck (COLUMNNAME_LCO_DIAN_SendSchedule_ID, null);\n\t\telse \n\t\t\tset_ValueNoCheck (COLUMNNAME_LCO_DIAN_SendSchedule_ID, Integer.valueOf(LCO_DIAN_SendSchedule_ID));\n\t}", "public void setSystemId(int val) {\n systemId = val;\n }", "public void setSsdsmc(String ssdsmc) {\n this.ssdsmc = ssdsmc == null ? null : ssdsmc.trim();\n }", "private void updLCMST(){ \n\t\ttry{\n\t\t\t\tM_strSQLQRY = \"Update FG_LCMST set \";\n\t\t\t\tM_strSQLQRY += \"LC_STKQT = LC_STKQT + \"+strISSQT+\",\";\n\t\t\t\tM_strSQLQRY += \"LC_TRNFL = '0',\";\n\t\t\t\tM_strSQLQRY += \"LC_LUSBY = '\"+cl_dat.M_strUSRCD_pbst+\"',\";\n\t\t\t\tM_strSQLQRY += \"LC_LUPDT = '\"+M_fmtDBDAT.format(M_fmtLCDAT.parse(cl_dat.M_strLOGDT_pbst))+\"'\";\n\t\t\t\tM_strSQLQRY += \" where lc_CMPCD = '\"+cl_dat.M_strCMPCD_pbst+\"' and lc_wrhtp = '\"+strWRHTP+\"'\";\n\t\t\t\tM_strSQLQRY += \" and lc_mnlcd = '\"+strMNLCD+\"'\";\n\t\t\t\t\n\t\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\n\t\t\t\t//System.out.println(M_strSQLQRY);\n\t\t\t\t\n\t\t}catch(Exception L_EX){\n\t\t\tsetMSG(L_EX,\"updLCMST\");\n\t\t}\n\t}", "public void setCLNO(int value) {\n this.clno = value;\n }", "public void setServicioSRI(ServicioSRI servicioSRI)\r\n/* 106: */ {\r\n/* 107:125 */ this.servicioSRI = servicioSRI;\r\n/* 108: */ }", "public void setCardID(java.lang.String param) {\r\n localCardIDTracker = param != null;\r\n\r\n this.localCardID = param;\r\n }", "public void setRoomstid(Long newVal) {\n if ((newVal != null && this.roomstid != null && (newVal.compareTo(this.roomstid) == 0)) || \n (newVal == null && this.roomstid == null && roomstid_is_initialized)) {\n return; \n } \n this.roomstid = newVal; \n roomstid_is_modified = true; \n roomstid_is_initialized = true; \n }", "void setMessageID(long messageID);", "public void setC_Invoice_ID (int C_Invoice_ID);", "public Builder setSysID(int value) {\n bitField0_ |= 0x00002000;\n sysID_ = value;\n onChanged();\n return this;\n }", "public void setASSMBL_CD( String aSSMBL_CD ) {\n ASSMBL_CD = aSSMBL_CD;\n }", "public void setIdCardNo(String idCardNo) {\n\t\tthis.idCardNo = idCardNo;\n\t}", "private void setRoomId(long value) {\n \n roomId_ = value;\n }", "public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }", "public void setSystemId(String systemId);", "public int getRouteId() {\n return routeId;\n }", "public void setIdCardNo(String idCardNo) {\n this.idCardNo = idCardNo;\n }", "public void xsetGPSReceiverDetailsID(org.apache.xmlbeans.XmlIDREF gpsReceiverDetailsID)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlIDREF target = null;\r\n target = (org.apache.xmlbeans.XmlIDREF)get_store().find_attribute_user(GPSRECEIVERDETAILSID$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlIDREF)get_store().add_attribute_user(GPSRECEIVERDETAILSID$16);\r\n }\r\n target.set(gpsReceiverDetailsID);\r\n }\r\n }", "public void setC_Decoris_PreSalesLine_ID (int C_Decoris_PreSalesLine_ID);", "public void setLineID(int lineID)\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(LINEID$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LINEID$2);\n }\n target.setIntValue(lineID);\n }\n }", "public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}", "private MAID(int maID){\n\t\t\n\t\t\n\t\tthis.id = maID;\n\t}", "public void setCT_CompLifeCycleModel_ID (int CT_CompLifeCycleModel_ID)\n\t{\n\t\tif (CT_CompLifeCycleModel_ID < 1) \n\t\t\tset_ValueNoCheck (COLUMNNAME_CT_CompLifeCycleModel_ID, null);\n\t\telse \n\t\t\tset_ValueNoCheck (COLUMNNAME_CT_CompLifeCycleModel_ID, Integer.valueOf(CT_CompLifeCycleModel_ID));\n\t}", "public void setSMNR(java.math.BigInteger SMNR) {\n this.SMNR = SMNR;\n }", "public void setSR_SEQ(String SR_SEQ) {\n\t\tthis.SR_SEQ = SR_SEQ == null ? null : SR_SEQ.trim();\n\t}", "public void setID_NO(java.lang.String ID_NO) {\r\n this.ID_NO = ID_NO;\r\n }", "public void setM_Product_ID (int M_Product_ID);", "public void setM_Product_ID (int M_Product_ID);", "public void setClientNo(DBSequence value) {\n setAttributeInternal(CLIENTNO, value);\n }", "private void setCC(int CC) {\n\t\tCMN.CC = CC;\n\t}" ]
[ "0.61512494", "0.5845098", "0.57169026", "0.5520598", "0.54782385", "0.5476602", "0.53367525", "0.53367525", "0.53367525", "0.53367525", "0.5258821", "0.5221135", "0.5201544", "0.50974107", "0.5076337", "0.5062642", "0.505596", "0.5023938", "0.5015678", "0.5003998", "0.50018215", "0.49967992", "0.4996215", "0.4973857", "0.49619657", "0.49447024", "0.49152878", "0.4901003", "0.48973402", "0.48787814", "0.48757908", "0.4871644", "0.4846748", "0.48411283", "0.48246822", "0.48163092", "0.47688738", "0.47458994", "0.47369853", "0.47369853", "0.47224316", "0.47121063", "0.47016355", "0.47016355", "0.4700115", "0.46987757", "0.46969837", "0.46933207", "0.46933207", "0.46916455", "0.468758", "0.46841872", "0.46826982", "0.4660239", "0.4660239", "0.46362647", "0.46244258", "0.46226338", "0.4618777", "0.46169662", "0.46100807", "0.46081713", "0.46048957", "0.46042448", "0.45885837", "0.45771384", "0.45674893", "0.4563596", "0.45629472", "0.456242", "0.45528743", "0.45465404", "0.45322478", "0.45277664", "0.45231447", "0.45160547", "0.45115393", "0.45069513", "0.45061156", "0.4505301", "0.4505077", "0.45003185", "0.44984517", "0.44948688", "0.4494722", "0.4492086", "0.44918337", "0.44839108", "0.4480376", "0.4461604", "0.44519588", "0.44514957", "0.44482306", "0.44356975", "0.44356975", "0.44317248", "0.44285578" ]
0.59165746
4
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_DY_ROUTE.ROUTEID
public String getRouteid() { return routeid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getRouteID();", "public Long getRouteid() {\n return routeid;\n }", "public int getRouteId() {\n return routeId;\n }", "public Integer getRoutingId() {\n return routingId;\n }", "RouteBean findRouteId(String routeID);", "public String getRoutingNo();", "public int getRtoId() {\n\t\treturn id;\n\t}", "public String getRightRoadId() {\n return rightRoadId;\n }", "public UUID getR_ID()\n\t{\n\t\treturn this.r_id;\n\t}", "public long getRId() {\r\n return rId;\r\n }", "int getRoutingAppID();", "public int getRoutingAppID() {\n return routingAppID_;\n }", "public int getRoutingAppID() {\n return routingAppID_;\n }", "public Integer getRtid() {\r\n\t\treturn rtid;\r\n\t}", "public int getPlanner_ID() {\n\t\tInteger ii = (Integer) get_Value(\"Planner_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public java.lang.String getGPSReceiverDetailsID()\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(GPSRECEIVERDETAILSID$16);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public int getR_id() { return r_id; }", "Route getRouteById(Long id_route) throws RouteNotFoundException;", "private int getRID() throws SQLException {\n\t\tResultSet result = getRidStatement.executeQuery();\n\t\tif (result.next()) {\n\t\t\tint out = result.getInt(1);\n\t\t\tresult.close();\n\t\t\tif (DEBUG) {\n\t\t\t\tSystem.out.println(\"getRID: \"+out+\"\\n\");\n\t\t\t}\n\t\t\treturn out;\n\t\t} else {\n\t\t\tif (DEBUG) {\n\t\t\t\tSystem.out.println(\"getRID: \"+0+\"\\n\");\n\t\t\t}\n\t\t\treturn 0;\n\t\t}\n\t}", "public Integer getReceiveid() {\n return receiveid;\n }", "RouteBean findByID(String routeID);", "public JAXBElement<Long> getDirPartyPostalAddressViewRecId() {\r\n return getCustomer().getDirParty().get(0).getDirPartyPostalAddressView().get(0).getRecId();\r\n }", "public Integer getShapeId(String routeName, int direction, int stopId) {\r\n Integer routeId, shapeID;\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + routeName + \"'\", null);\r\n getData.moveToFirst();\r\n // store the route ID base on the route name\r\n routeId = getData.getInt(0);\r\n // only get the shape ID\r\n final String query = \"select trips.shape_id \" +\r\n \"from trips \" +\r\n \"join calendar on trips.service_id = calendar._id \" +\r\n \"join routes on trips.route_id = routes._id \" +\r\n \"join stop_times on trips._id = stop_times.trip_id \" +\r\n \"join stops on stop_times.stop_id = stops._id \" +\r\n \"where calendar._id in \" + getDayOfTheWeek() +\r\n \" AND routes._id = \" + routeId +\r\n \" AND trips.direction_id = \" + direction +\r\n \" AND stops._id = \" + stopId + \" \";\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n getData.moveToFirst();\r\n shapeID = getData.getInt(0);\r\n\r\n return shapeID;\r\n }", "public java.lang.String getRoute () {\n\t\treturn route;\n\t}", "public java.lang.String getReceiveAgentID() {\r\n return receiveAgentID;\r\n }", "public void setRouteId(int routeId) {\n this.routeId = routeId;\n }", "public Integer getRecId() {\n return recId;\n }", "public Route findRoutById(int id) throws SQLException {\n\t\treturn rDb.findRoutById(id);\n\t}", "public int getRid() {\n\t\treturn Rid;\n\t}", "public void setRouteid(String routeid) {\r\n this.routeid = routeid;\r\n }", "public java.lang.String getRideid() {\n return rideid;\n }", "public Integer getRpfId() {\r\n return rpfId;\r\n }", "public void setRouteid(Long routeid) {\n this.routeid = routeid;\n }", "public java.lang.String getRrNo () {\n\t\treturn rrNo;\n\t}", "public java.lang.String getRideid() {\n return rideid;\n }", "public int getRaterId();", "public org.apache.xmlbeans.XmlIDREF xgetGPSReceiverDetailsID()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlIDREF target = null;\r\n target = (org.apache.xmlbeans.XmlIDREF)get_store().find_attribute_user(GPSRECEIVERDETAILSID$16);\r\n return target;\r\n }\r\n }", "protected int GetID() {\n\t\treturn this.JunctionID;\n\t}", "public JAXBElement<Long> getDirPartyRecId() {\r\n return getCustomer().getDirParty().get(0).getRecId();\r\n }", "public int getLBR_PartnerDFe_ID();", "public java.lang.Integer getPRTNO() {\n return PRTNO;\n }", "public int getLogicalFlightID() {\n return logicalFlightID;\n }", "public com.vmware.converter.HostIpRouteEntry getRoute() {\r\n return route;\r\n }", "long getDestinationId();", "public String getDownRoadId() {\n return downRoadId;\n }", "public StrColumn getRobotId() {\n return delegate.getColumn(\"robot_id\", DelegatingStrColumn::new);\n }", "public long getRouteStepKey() {\n\t\treturn routeStepKey;\n\t}", "public String getRouteType() {\n return routeType;\n }", "TradeRoute(int anId){\n //query database for an existing trade route with the passed ID\n String routeQuery = \"select market_1, market_2, id from trade_routes where id = \"+anId;\n ResultSet theExistingRoute = NRFTW_Trade.dBQuery(routeQuery);\n //if one exists\n //add the start and end points to the object\n //and set the object ID\n try{\n theExistingRoute.next();\n startPoint = theExistingRoute.getString(1);\n endPoint = theExistingRoute.getString(2);\n id = theExistingRoute.getInt(3);\n }catch(SQLException ex){\n System.out.println(ex);\n }\n //if not\n //do nothing\n }", "public int getRTRNCD() {\n return rtrncd;\n }", "RID getRID();", "public Integer getIdTravel() {\r\n return idTravel;\r\n }", "public int getDRAResID() {\n\t\treturn DRAResID;\n\t}", "long getRfIdentifier();", "public int getReceiverid() {\n return receiverid_;\n }", "public String getId() {\n switch (this.getType()) {\n case BGP:\n /*return this.bgpConfig.getNeighbors().get(\n this.bgpConfig.getNeighbors().firstKey()).getLocalAs().toString();*/\n case OSPF:\n return this.vrf.getName();\n case STATIC:\n return this.staticConfig.getNetwork().getStartIp().toString();\n }\n return this.vrf.getName();\n }", "public java.lang.Integer getRestaurantId()\n {\n return restaurantId;\n }", "public int getReceiverid() {\n return receiverid_;\n }", "public String getRoute() {\n return route;\n }", "public String getTransID()\n\t{\n\t\tif(response.containsKey(\"RRNO\")) {\n\t\t\treturn response.get(\"RRNO\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public int getID(){\n\t\treturn this.EDGE_ID;\n\t}", "public int getFlightid() {\r\n\t\treturn flightid;\r\n\t}", "public int getLBR_DocLine_Details_ID();", "void setRoute(String routeID);", "public Integer getRuleId() {\n return (Integer) getAttributeInternal(RULEID);\n }", "int delRouteById(Long id_route) throws RouteNotFoundException;", "public java.lang.String getArrivalPortCode() {\n\t\treturn _tempNoTiceShipMessage.getArrivalPortCode();\n\t}", "public StringWithCustomFacts getRecIdNumber() {\n return recIdNumber;\n }", "public Number getRfrtHeaderIdPk() {\r\n return (Number) getAttributeInternal(RFRTHEADERIDPK);\r\n }", "int getReceiverid();", "public org.apache.axis2.databinding.types.soapencoding.String getCorrelateID(){\n return localCorrelateID;\n }", "public int getM_RequisitionLine_ID() {\n\t\tInteger ii = (Integer) get_Value(\"M_RequisitionLine_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "@Override\n\t@Transactional\n\tpublic Route getRoute(int theId) {\n\t\treturn routeDAO.getRoute(theId);\n\t}", "public int getR_Request_ID();", "public Integer getVehicleId() {\n return vehicleId;\n }", "public short getTargetRouterId() {\n return targetRouterId;\n }", "public Long getRuleID() {\n return this.RuleID;\n }", "public String getRoutePoint() {\n\t\t\treturn routePoint;\n\t\t}", "public int get_flight() {\r\n return this.flight_nr;\r\n }", "public Number getLineId() {\n return (Number)getAttributeInternal(LINEID);\n }", "public Number getLineId() {\n return (Number)getAttributeInternal(LINEID);\n }", "public com.dator.jqtest.dao.model.tables.pojos.Route fetchOneById(Integer value) {\n return fetchOne(Route.ROUTE.ID, value);\n }", "public int getRuleID()\n {\n return schema.getRuleID();\n }", "public Integer getRecapitoId() {\n\t\treturn this.recapitoId;\n\t}", "int delTravelByIdRoute(Long id_route);", "public int getDoorID()\n {\n return id;\n }", "public int getR_RequestType_ID();", "public int getReceiverID(int messageID){\n Message message = allmessage.get(messageID);\n return message.getGetterid();\n }", "String getBusi_id();", "int getTruckid();", "int getTruckid();", "int getTruckid();", "int getTruckid();", "int getTruckid();", "int getTruckid();", "public String getResouceId() {\n return id;\n }", "public String getPaternalID();", "@java.lang.Override\n public long getRfIdentifier() {\n return rfIdentifier_;\n }", "public StrColumn getIprId() {\n return delegate.getColumn(\"ipr_id\", DelegatingStrColumn::new);\n }", "int updRouteById(Route record) throws RouteNotFoundException;" ]
[ "0.7306297", "0.7197513", "0.7122132", "0.6351891", "0.6194145", "0.61213285", "0.5926291", "0.5909822", "0.57622474", "0.57447624", "0.57416177", "0.5740586", "0.5696318", "0.56644046", "0.5624369", "0.5597882", "0.557682", "0.55704594", "0.55681306", "0.55428815", "0.55322605", "0.5512317", "0.5509639", "0.5505897", "0.5495706", "0.54898304", "0.5467677", "0.5466819", "0.5456534", "0.5431004", "0.54261136", "0.5424065", "0.54231834", "0.5412481", "0.5407316", "0.5389358", "0.53793204", "0.5376886", "0.53683966", "0.53290915", "0.5323144", "0.53225917", "0.53211254", "0.5312093", "0.5311472", "0.53043854", "0.52935606", "0.5279396", "0.5262966", "0.52474403", "0.52409154", "0.5238537", "0.5237245", "0.5228536", "0.52270883", "0.5226141", "0.52171135", "0.5208223", "0.52065825", "0.5192089", "0.5161609", "0.51383007", "0.51281226", "0.5126746", "0.51190555", "0.51170385", "0.511382", "0.50921196", "0.50796765", "0.50617135", "0.5060347", "0.5055331", "0.50548756", "0.50538975", "0.50509", "0.5050232", "0.5045724", "0.5034807", "0.5034738", "0.5033917", "0.5033917", "0.50325906", "0.5027991", "0.5014258", "0.50019443", "0.49995342", "0.49984956", "0.49940327", "0.49913266", "0.49860606", "0.49860606", "0.49860606", "0.49860606", "0.49860606", "0.49860606", "0.49792877", "0.4979062", "0.49766973", "0.49763247", "0.49737385" ]
0.7103456
3
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_ROUTE.ROUTEID
public void setRouteid(String routeid) { this.routeid = routeid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setRoute(String routeID);", "public void setRouteId(int routeId) {\n this.routeId = routeId;\n }", "public void setRouteid(Long routeid) {\n this.routeid = routeid;\n }", "public String getRouteid() {\r\n return routeid;\r\n }", "public Long getRouteid() {\n return routeid;\n }", "public int getRouteId() {\n return routeId;\n }", "public void setAlternateRoute(short trainId, TrainRoute r) {\n\t\ttrainRoutes.put(trainId, r);\n\t}", "int updRouteById(Route record) throws RouteNotFoundException;", "public void setRoutingNo (String RoutingNo);", "String getRouteID();", "public void setRId(long value) {\r\n this.rId = value;\r\n }", "public void setRoute(com.vmware.converter.HostIpRouteEntry route) {\r\n this.route = route;\r\n }", "void setRID(RID rid);", "public void setRoutingId(Integer routingId) {\n this.routingId = routingId;\n }", "public void xsetGPSReceiverDetailsID(org.apache.xmlbeans.XmlIDREF gpsReceiverDetailsID)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlIDREF target = null;\r\n target = (org.apache.xmlbeans.XmlIDREF)get_store().find_attribute_user(GPSRECEIVERDETAILSID$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlIDREF)get_store().add_attribute_user(GPSRECEIVERDETAILSID$16);\r\n }\r\n target.set(gpsReceiverDetailsID);\r\n }\r\n }", "public void setRightRoadId(String rightRoadId) {\n this.rightRoadId = rightRoadId == null ? null : rightRoadId.trim();\n }", "public void setGPSReceiverDetailsID(java.lang.String gpsReceiverDetailsID)\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(GPSRECEIVERDETAILSID$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(GPSRECEIVERDETAILSID$16);\r\n }\r\n target.setStringValue(gpsReceiverDetailsID);\r\n }\r\n }", "public void setRoutePoint(AKeyCallPoint routePoint) {\n\t\t\tthis.routePoint = routePoint;\n\t\t}", "public void setRtid(Integer rtid) {\r\n\t\tthis.rtid = rtid;\r\n\t}", "public void setRoute(Route route) {\n this.route = route;\n }", "TradeRoute(int anId){\n //query database for an existing trade route with the passed ID\n String routeQuery = \"select market_1, market_2, id from trade_routes where id = \"+anId;\n ResultSet theExistingRoute = NRFTW_Trade.dBQuery(routeQuery);\n //if one exists\n //add the start and end points to the object\n //and set the object ID\n try{\n theExistingRoute.next();\n startPoint = theExistingRoute.getString(1);\n endPoint = theExistingRoute.getString(2);\n id = theExistingRoute.getInt(3);\n }catch(SQLException ex){\n System.out.println(ex);\n }\n //if not\n //do nothing\n }", "public void setRouteType(String x)\n {\n this.routeType = x;\n }", "public void setRoute (java.lang.String route) {\n\t\tthis.route = route;\n\t}", "public void setLBR_DocLine_Details_ID (int LBR_DocLine_Details_ID);", "public void setRCID(int RCID) {\n this.RCID = RCID;\n }", "public Integer getRoutingId() {\n return routingId;\n }", "public void setRideid(java.lang.String value) {\n this.rideid = value;\n }", "public String getRightRoadId() {\n return rightRoadId;\n }", "void setRoadway(org.landxml.schema.landXML11.RoadwayDocument.Roadway roadway);", "public void setRoutePoint(String routePoint) {\n\t\t\tthis.routePoint = routePoint;\n\t\t}", "public void setReceiveAgentID(java.lang.String receiveAgentID) {\r\n this.receiveAgentID = receiveAgentID;\r\n }", "public void setIdTravel(Integer idTravel) {\r\n this.idTravel = idTravel;\r\n }", "public Builder setRoutingAppID(int value) {\n bitField0_ |= 0x00000004;\n routingAppID_ = value;\n onChanged();\n return this;\n }", "public void setPRTNO(java.lang.Integer PRTNO) {\n this.PRTNO = PRTNO;\n }", "public void setRoute(String route) {\n this.route = route == null ? null : route.trim();\n }", "public void setCorrelateID(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localCorrelateID=param;\n \n\n }", "public void setLineID(int lineID)\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(LINEID$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LINEID$2);\n }\n target.setIntValue(lineID);\n }\n }", "int delTravelByIdRoute(Long id_route);", "public void setRoadwayRef(java.lang.String roadwayRef)\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(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.setStringValue(roadwayRef);\r\n }\r\n }", "public void setRoute(List route) \n {\n this.route = route;\n }", "RouteBean findRouteId(String routeID);", "@Override\n public void setDefaultRoutePortId(String ipAddress, int portId) {\n }", "public void xsetRoadwayPI(org.landxml.schema.landXML11.Station roadwayPI)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.Station)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.set(roadwayPI);\r\n }\r\n }", "public void setLogicalFlightID(int value) {\n this.logicalFlightID = value;\n }", "public void setNode(String procId) {\r\n\t\tif (recordRoute) {\r\n\t\t\tsuper.setNode(procId); //Record route\r\n\t\t} else {\r\n\t\t\t//Just set the processing node.\r\n\t\t\tthis.procNode = procId;\r\n\t\t}\r\n\t}", "public void setRTRNCD(int value) {\n this.rtrncd = value;\n }", "private void showRoutePolyline(String routeId) {\n\t\ttry {\n\n\t\t\tRoute route = getDbHelper().getRoutesDAO().queryForId(routeId);\n\t\t\tshowRoutePolyline(route);\n\n\t\t} catch (SQLException e) {\n\t\t\tlogger.error(e);\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public void setLBR_PartnerDFe_ID (int LBR_PartnerDFe_ID);", "public void setC_OrderLine_ID (int C_OrderLine_ID);", "public void setR_Request_ID (int R_Request_ID);", "public Object setID(int iD)\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setId : \" + \"Agent\");\r\n/* 51 */ \tthis.myID = iD;\r\n/* 52 */ \treturn this;\r\n/* */ }", "public org.mddarr.rides.event.dto.AvroRide.Builder setRideid(java.lang.String value) {\n validate(fields()[0], value);\n this.rideid = value;\n fieldSetFlags()[0] = true;\n return this;\n }", "public void setGPSAntennaDetailsID(java.lang.String gpsAntennaDetailsID)\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(GPSANTENNADETAILSID$14);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(GPSANTENNADETAILSID$14);\r\n }\r\n target.setStringValue(gpsAntennaDetailsID);\r\n }\r\n }", "private void routeToPort(int portId) {\n mLocalActivePath = portId;\n }", "public void setTunnelRail(Rail r, String d) {\n this.tunnelRail = r;\n this.dir = d;\n }", "public void setReceiveid(Integer receiveid) {\n this.receiveid = receiveid;\n }", "public Route findRoutById(int id) throws SQLException {\n\t\treturn rDb.findRoutById(id);\n\t}", "public int getRtoId() {\n\t\treturn id;\n\t}", "public void setSR_ID(String SR_ID) {\n\t\tthis.SR_ID = SR_ID == null ? null : SR_ID.trim();\n\t}", "int delRouteById(Long id_route) throws RouteNotFoundException;", "public void xsetRoadwayRef(org.landxml.schema.landXML11.RoadwayNameRef roadwayRef)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.RoadwayNameRef target = null;\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().find_attribute_user(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.set(roadwayRef);\r\n }\r\n }", "void setID(int val)\n throws RemoteException;", "void setRoute(Shape route);", "Route getRouteById(Long id_route) throws RouteNotFoundException;", "public void setRecId(Integer recId) {\n this.recId = recId;\n }", "public void setRoadwayPI(double roadwayPI)\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.setDoubleValue(roadwayPI);\r\n }\r\n }", "public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }", "RouteBean findByID(String routeID);", "TradeRoute(String aStartPoint, String anEndPoint, int anId){\n startPoint = aStartPoint;\n endPoint = anEndPoint;\n id = anId;\n }", "public void xsetGPSAntennaDetailsID(org.apache.xmlbeans.XmlIDREF gpsAntennaDetailsID)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlIDREF target = null;\r\n target = (org.apache.xmlbeans.XmlIDREF)get_store().find_attribute_user(GPSANTENNADETAILSID$14);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlIDREF)get_store().add_attribute_user(GPSANTENNADETAILSID$14);\r\n }\r\n target.set(gpsAntennaDetailsID);\r\n }\r\n }", "public void setRuleID(Long RuleID) {\n this.RuleID = RuleID;\n }", "int deleteRoute(List<String> routeID);", "void setLspId(String lspId);", "@PostMapping(\"/route/edit\")\n public String editRoutePost(\n @RequestParam(\"routeId\") Integer routeId,\n @RequestParam(\"stationSequence\") String stationSequence) {\n routeService.editRoute(routeId, stationSequence);\n return \"redirect:/admin/route/list\";\n }", "public void setRuleId(Integer value) {\n setAttributeInternal(RULEID, value);\n }", "public void setFrequencyOfRoute(java.math.BigInteger frequencyOfRoute) {\r\n this.frequencyOfRoute = frequencyOfRoute;\r\n }", "public void setR_RequestType_ID (int R_RequestType_ID);", "public void setIdDireccion(String idDireccion) {\r\n\t\tthis.idDireccion = idDireccion;\r\n\t}", "@Transactional\n public void update(RoutersEntity uRouters, String routers_id) throws NoSuchRoutersException {\n var routers = routersRepository.findById(routers_id).get();//2.0.0.M7\n if (routers == null) throw new NoSuchRoutersException();\n //update\n routers.setOfficeId(uRouters.getOfficeId());\n }", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public int getR_id() { return r_id; }", "public void setRentWay(Integer rentWay) {\n this.rentWay = rentWay;\n }", "public void setID(String newID)\r\n {\r\n id=newID;\r\n }", "public void setRpfId(Integer rpfId) {\r\n this.rpfId = rpfId;\r\n }", "public void setRrNo (java.lang.String rrNo) {\n\t\tthis.rrNo = rrNo;\n\t}", "public void setFlightId(long value) {\n\t\tthis.flightId = value;\n\t}", "public void setLocationID(int value) {\n this.locationID = value;\n }", "public void setUpRoadId(String upRoadId) {\n this.upRoadId = upRoadId == null ? null : upRoadId.trim();\n }", "public void setC_OrderLine_ID (int C_OrderLine_ID)\n\t{\n\t\tif (C_OrderLine_ID < 1) \n\t\t\tset_Value (COLUMNNAME_C_OrderLine_ID, null);\n\t\telse \n\t\t\tset_Value (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID));\n\t}", "public void setRadiologyOrderID(java.lang.String param){\n \n this.localRadiologyOrderID=param;\n \n\n }", "public void setRadiologyOrderID(java.lang.String param){\n \n this.localRadiologyOrderID=param;\n \n\n }", "public void setRoomID(int value) {\n this.roomID = value;\n }", "public void setR_Resolution_ID (int R_Resolution_ID);", "public void setRoutingKey(String routingKey) {\n this.routingKey = routingKey;\n }", "public com.dator.jqtest.dao.model.tables.pojos.Route fetchOneById(Integer value) {\n return fetchOne(Route.ROUTE.ID, value);\n }", "private void setRoomId(long value) {\n \n roomId_ = value;\n }", "public void setRouteStepKey(long value) {\n\t\tthis.routeStepKey = value;\n\t}", "public void setDoorKeyID(int keyID)\n {\n this.keyID = keyID;\n }", "public void setIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI(int idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI)\r\n/* 85: */ {\r\n/* 86:118 */ this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI = idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 87: */ }", "boolean updateRoute(RouteBean route);" ]
[ "0.73746276", "0.66372633", "0.64659315", "0.6374197", "0.63156474", "0.6072357", "0.595521", "0.5919734", "0.5918333", "0.5781896", "0.5512816", "0.55027884", "0.5459243", "0.54506314", "0.5436191", "0.54254067", "0.53453267", "0.5342972", "0.52525055", "0.5251348", "0.5250031", "0.521794", "0.51852673", "0.5182273", "0.5165213", "0.5145484", "0.5133755", "0.5130841", "0.51140344", "0.51105857", "0.5103869", "0.5083265", "0.5052561", "0.50486684", "0.5048666", "0.50411135", "0.50286937", "0.50274867", "0.50255156", "0.50197613", "0.50099057", "0.4999477", "0.49967235", "0.49635243", "0.49614835", "0.49562493", "0.49215788", "0.49195117", "0.49040887", "0.48888838", "0.48876584", "0.48801094", "0.48745048", "0.48667926", "0.48667508", "0.4861923", "0.48612395", "0.48515773", "0.48478317", "0.4838726", "0.4837116", "0.48322344", "0.481735", "0.48145038", "0.48114195", "0.47993252", "0.4795363", "0.47939643", "0.4785629", "0.47662118", "0.47621232", "0.47596058", "0.47568932", "0.4743119", "0.47413146", "0.47410595", "0.4739619", "0.4739509", "0.47387594", "0.4737703", "0.47319257", "0.47263706", "0.47263157", "0.47136918", "0.4712405", "0.47054514", "0.4703469", "0.46993244", "0.4699053", "0.4697151", "0.4697151", "0.469349", "0.4689765", "0.46863022", "0.46807757", "0.46774542", "0.46674296", "0.46667448", "0.46631446", "0.46558088" ]
0.6520531
2
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_DY_ROUTE.ROUTENAME
public String getRoutename() { return routename; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRouteName() {\n return routeName;\n }", "public String getRlName() {\n return (String) getAttributeInternal(RLNAME);\n }", "public void setRoutename(String routename) {\r\n this.routename = routename;\r\n }", "public String getRoutingNo();", "public String getName()\n {\n \tif (_nodeVRL==null)\n \t\treturn null;\n \t\n return _nodeVRL.getBasename(); // default= last part of path\n }", "public java.lang.String getRoute () {\n\t\treturn route;\n\t}", "public java.lang.String getResourcename() {\n\treturn resourcename;\n}", "public String getSrsName() {\n\t\treturn this.srsName;\n\t}", "String getRouteID();", "public String getRname() {\n return rname;\n }", "public String getNameofRenter(){\n\n\t\treturn nameofRenter;\n\t}", "String getRouteDest();", "public String getPathName()\n {\n return getString(\"PathName\");\n }", "public String getResidentName() {\n return residentName;\n }", "public java.lang.String getRoadwayRef()\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(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getQualifiedName() {\n if(probe.getHost() != null) {\n return probe.getHost().getName() + \"/\" + getName();\n } else {\n return \"/\" + getName();\n }\n }", "public String getRealName() {\n return this.realName;\n }", "public String getQualifiedName() {\n if (probe.getHost() != null) {\n return probe.getHost().getName() + \"/\" + getName();\n } else {\n return \"/\" + getName();\n }\n }", "java.lang.String getRoutingKey();", "public String getRouteType() {\n return routeType;\n }", "public String getRoute() {\n return route;\n }", "public String getRouteid() {\r\n return routeid;\r\n }", "String getDestinationName();", "public org.landxml.schema.landXML11.RoadwayNameRef xgetRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.RoadwayNameRef target = null;\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().find_attribute_user(ROADWAYREF$16);\r\n return target;\r\n }\r\n }", "public String getName(){\n\t\tif(name==null) return webserviceUrl;\n\t\treturn name;\n\t}", "public String getDestination(){\r\n\t\treturn route.getDestination();\r\n\t}", "private String resolveName()\n {\n\n String forwardName = null;\n\n // trigger\n final EventFacade trigger = this.getTrigger();\n\n if (trigger != null)\n {\n\n forwardName = trigger.getName();\n\n }\n\n // name\n if (forwardName == null)\n {\n\n forwardName = this.getName();\n\n }\n\n // target\n if (forwardName == null)\n {\n\n forwardName = this.getTarget().getName();\n\n }\n\n // else\n if (forwardName == null)\n {\n\n forwardName = \"unknown\";\n\n }\n\n // return\n return forwardName;\n\n }", "public int getNombreLiaison()\t{\r\n \treturn this.routes.size();\r\n }", "@Override\n public String getLName() {\n\n if(this.lName == null){\n\n this.lName = TestDatabase.getInstance().getClientField(token, id, \"lName\");\n }\n\n return lName;\n }", "public String getRouteDest() {\n Object ref = routeDest_;\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 routeDest_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getRealName() {\n return realName;\n }", "public String getRealName() {\n return realName;\n }", "public String getRealName() {\n return realName;\n }", "public String getRouteDest() {\n Object ref = routeDest_;\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 routeDest_ = s;\n }\n return s;\n }\n }", "public java.lang.String getRrNo () {\n\t\treturn rrNo;\n\t}", "public com.vmware.converter.HostIpRouteEntry getRoute() {\r\n return route;\r\n }", "public String getName() {\n int index = getSplitIndex();\n return path.substring(index + 1);\n }", "String getPdpName();", "public void generateRouteNameString(){\n switch(routeName){\n case \"1A\": this.routeNameString = \"College Edinburgh\"; break;\n case \"1B\": this.routeNameString = \"College Edinburgh\"; break;\n case \"2A\": this.routeNameString = \"West Loop\"; break;\n case \"2B\": this.routeNameString = \"West Loop\"; break;\n case \"3A\": this.routeNameString = \"East Loop\"; break;\n case \"3B\": this.routeNameString = \"East Loop\"; break;\n case \"4\": this.routeNameString = \"York\"; break;\n case \"5\": this.routeNameString = \"Gordon\"; break;\n case \"6\": this.routeNameString = \"Harvard Ironwood\"; break;\n case \"7\": this.routeNameString = \"Kortright Downey\"; break;\n case \"8\": this.routeNameString = \"Stone Road Mall\"; break;\n case \"9\": this.routeNameString = \"Waterloo\"; break;\n case \"10\": this.routeNameString = \"Imperial\"; break;\n case \"11\": this.routeNameString = \"Willow West\"; break;\n case \"12\": this.routeNameString = \"General Hospital\"; break;\n case \"13\": this.routeNameString = \"Victoria Rd Rec Centre\"; break;\n case \"14\": this.routeNameString = \"Grange\"; break;\n case \"15\": this.routeNameString = \"University College\"; break;\n case \"16\": this.routeNameString = \"Southgate\"; break;\n case \"20\": this.routeNameString = \"NorthWest Industrial\"; break;\n case \"50\": this.routeNameString = \"Stone Road Express\"; break;\n case \"56\": this.routeNameString = \"Victoria Express\"; break;\n case \"57\": this.routeNameString = \"Harvard Express\"; break;\n case \"58\": this.routeNameString = \"Edinburgh Express\"; break;\n default: this.routeNameString = \"Unknown Route\"; break;\n }\n }", "public org.hl7.fhir.String getName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.String target = null;\n target = (org.hl7.fhir.String)get_store().find_element_user(NAME$8, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public java.lang.String getServicename() {\n\treturn servicename;\n}", "public String getRealname() {\r\n return realname;\r\n }", "public String getRequestName ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"getRequestName\", true);\n $in = _invoke ($out);\n String $result = $in.read_string ();\n return $result;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n return getRequestName ( );\n } finally {\n _releaseReply ($in);\n }\n }", "public org.hl7.fhir.String getName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.String target = null;\n target = (org.hl7.fhir.String)get_store().find_element_user(NAME$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public static final String getRouteName(Microcks microcks) {\n return microcks.getMetadata().getName();\n }", "public String getRealname() {\n return realname;\n }", "public String getRealname() {\n return realname;\n }", "private String printRoute() {\n String r = String.valueOf(this.route.get(0));\n int index = 1;\n while (index < this.route.size()) {\n r = r + \" - \" + this.route.get(index);\n index++;\n }\n return r;\n }", "public String getRoutePoint() {\n\t\t\treturn routePoint;\n\t\t}", "java.lang.String getAgentName();", "public String getName() {\n return (NAME_PREFIX + _applicationId + DELIM + _endpointId);\n }", "public String getReceiveName() {\n return receiveName;\n }", "@Override\n\tpublic String getProcedureName() {\n\t\treturn this.procedureName;\n\t}", "public com.dator.jqtest.dao.model.tables.pojos.Route fetchOneByName(String value) {\n return fetchOne(Route.ROUTE.NAME, value);\n }", "public String getResourceEntryName(int resId) {\n String nativeGetResourceEntryName;\n synchronized (this) {\n ensureValidLocked();\n nativeGetResourceEntryName = nativeGetResourceEntryName(this.mObject, resId);\n }\n return nativeGetResourceEntryName;\n }", "public String getRoutingStatus() {\n return routingStatus;\n }", "public String getResourceName() {\n\treturn this.resrcName;\n }", "public static String getLName(String rfc) {\n\t\tString result = \"\";\n\t\ttry\n\t\t{\n\t\t\tstmt = conn.createStatement();\n\t\t\tquery = \"SELECT LNAME \" + \"FROM CREDIT.CUSTOMER \" + \"WHERE RFC='\" + rfc + \"'\";\n\t\t\trs = stmt.executeQuery(query);\n\t\t\t\n\t\t\twhile (rs.next())\n\t\t\t{\n\t\t\t\tresult = rs.getString(1);\n\t\t\t}\n\t\t\tSystem.out.println(getMethodName(1) + \"\\t\" + result);\n\t\t\t\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public String getActualFromStop() {\r\n if (selectedEntry != null) {\r\n Stop stop = ServiceFunctions.getStopByName(fromStop, selectedEntry.getRun().getRoute().getStops());\r\n return stop.getName();\r\n }\r\n return \"\";\r\n }", "public String getHostName() {\n\t\treturn \"RaspberryHostName\";\n\t}", "public String getPathName() {\n\t\treturn pathName;\n\t}", "public String getReName() {\n return reName;\n }", "public String getName ( ) {\n\t\treturn extract ( handle -> handle.getName ( ) );\n\t}", "protected String get_object_name() {\n\t\treturn this.hostname;\n\t}", "public String getFQN(){\n\t\treturn this.tsApp.getFQN()+\"_\"+this.tsName;\n\t}", "public String getReceiverName() {\n return receiverName;\n }", "public String getReceiverName() {\n return receiverName;\n }", "public String getReal_name() {\n return real_name;\n }", "public java.lang.String getArrivalPortCode() {\n\t\treturn _tempNoTiceShipMessage.getArrivalPortCode();\n\t}", "String getPName();", "public java.lang.String getNAME2()\n {\n \n return __NAME2;\n }", "public String getResourceName(int resId) {\n String nativeGetResourceName;\n synchronized (this) {\n ensureValidLocked();\n nativeGetResourceName = nativeGetResourceName(this.mObject, resId);\n }\n return nativeGetResourceName;\n }", "public String getlName() {\n return lName;\n }", "public String getProcedureName(){\n return this.procedureName;\n }", "public String getNatGatewayName() {\n return this.NatGatewayName;\n }", "public String getRes(){\r\n \r\n String resName = \"\";\r\n return resName;\r\n }", "public String getProcessName() throws RemoteException;", "public RoutingProcess get_Routing_process(char area) {\n if (rprocesses == null) {\n return null;\n }\n return rprocesses.get(area);\n }", "public String getcRouter() {\n return cRouter;\n }", "public YangString getSrvTargetNameValue() throws JNCException {\n return (YangString)getValue(\"srv-target-name\");\n }", "public String getResourceTypeName(int resId) {\n String nativeGetResourceTypeName;\n synchronized (this) {\n ensureValidLocked();\n nativeGetResourceTypeName = nativeGetResourceTypeName(this.mObject, resId);\n }\n return nativeGetResourceTypeName;\n }", "public String resolveDriverNameBinding() {\n Optional<String> driverTypeName = cache.values().stream()\n .map(objectCreationExpr -> objectCreationExpr.getType().getNameAsString())\n .findFirst();\n\n return driverTypeName.orElse(null);\n }", "@Basic\n\t@Column(name = \"RULE_NAME\", nullable = false)\n\tpublic String getRuleName() {\n\t\treturn this.ruleName;\n\t}", "public String getName() {\n\t\treturn JWLC.nativeHandler().wlc_output_get_name(this.to());\n\t}", "java.lang.String getPatStatusCodeName();", "java.lang.String getPatStatusCodeName();", "String getSegmentName();", "public String getName()\n throws RemoteException;", "String getName() throws RemoteException;", "public StringKey getName() {\n return ModelBundle.SHIP_NAME.get(name);\n }", "@Override\n\tpublic String getProcedureName(String procId)\n\t{\n\t\treturn m_models.getProcedureName(procId);\n\t}", "public String getDestinationName() {\n return destinationName;\n }", "public java.lang.String getNAME4()\n {\n \n return __NAME4;\n }", "private static String getRoute(String route){\n\t\tString link = (isLocal ? url_local : url_prod) + route;\n\t\treturn link;\n\t}", "public static String getNetServerHandlerName() {\n \t\treturn getNetServerHandlerClass().getSimpleName();\n \t}", "public String getLName() {\n return LName;\n }", "public String getRecordName();", "public String getVehiclename() {\r\n\t\treturn vehiclename;\r\n\t}", "public String getRemoteName() {\n\t\treturn this.remoteName;\n\t}", "public java.lang.String getReceiveAgentName() {\r\n return receiveAgentName;\r\n }" ]
[ "0.6455259", "0.57472795", "0.5734757", "0.5733035", "0.57065004", "0.5648059", "0.5474865", "0.5439446", "0.54279155", "0.5342594", "0.5312827", "0.51629156", "0.5152143", "0.5129792", "0.5116239", "0.5115338", "0.50941336", "0.508819", "0.50516623", "0.50473946", "0.5027096", "0.50139403", "0.5006027", "0.4967564", "0.49632806", "0.49631116", "0.49490035", "0.49462825", "0.49395165", "0.49333775", "0.49291858", "0.49291858", "0.49291858", "0.48954493", "0.48842272", "0.48781624", "0.48701364", "0.4854332", "0.48199996", "0.48186803", "0.48101556", "0.48062104", "0.48059544", "0.48050004", "0.4803622", "0.48022142", "0.48022142", "0.48002058", "0.4798177", "0.47865832", "0.47846144", "0.47799197", "0.47734988", "0.4762506", "0.47523013", "0.47495273", "0.47485155", "0.47428274", "0.47315726", "0.47315034", "0.47265077", "0.47250068", "0.47243792", "0.47206646", "0.471696", "0.4714077", "0.4714077", "0.47084874", "0.47047538", "0.47044545", "0.46953216", "0.4689597", "0.46785253", "0.46744657", "0.46740338", "0.46709606", "0.4668658", "0.46579853", "0.46551785", "0.46537462", "0.46534586", "0.46418452", "0.4638328", "0.46350187", "0.46341994", "0.46341994", "0.46339077", "0.46328554", "0.46250167", "0.46217033", "0.46156695", "0.4609731", "0.46092728", "0.45989937", "0.45979846", "0.4591201", "0.45898378", "0.45894977", "0.45887268", "0.4588238" ]
0.7138893
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_ROUTE.ROUTENAME
public void setRoutename(String routename) { this.routename = routename; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRoutename() {\r\n return routename;\r\n }", "public void setRoutingNo (String RoutingNo);", "public String getRouteName() {\n return routeName;\n }", "void setRoute(String routeID);", "public RouteInterface setName(String name);", "public void setResourcename(java.lang.String newResourcename) {\n\tresourcename = newResourcename;\n}", "@Override\n\tpublic String updateATourneyName() {\n\t\treturn null;\n\t}", "public void setRouteType(String x)\n {\n this.routeType = x;\n }", "public void setRname(String rname) {\n this.rname = rname == null ? null : rname.trim();\n }", "@SuppressWarnings(\"ucd\")\n public void setPortRouter(int passedPort, PortRouter aPR) {\n synchronized( thePortRouterMap ){\n thePortRouterMap.put( passedPort, aPR );\n }\n }", "public void setSrvTargetNameValue(YangString srvTargetNameValue)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"srv-target-name\",\n srvTargetNameValue,\n childrenNames());\n }", "public void setRoadwayRef(java.lang.String roadwayRef)\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(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.setStringValue(roadwayRef);\r\n }\r\n }", "protected void setResourceName(String resrcName) {\n\tthis.resrcName = resrcName;\n }", "public void setR(String R) {\n\t\tthis.R = R;\r\n\t\tfirePropertyChange(ConstantResourceFactory.P_R,null,R);\r\n\t}", "public void setServicename(java.lang.String newServicename) {\n\tservicename = newServicename;\n}", "public void setName(String rname) {\n name = rname;\n }", "public void setProxyName(java.lang.String newProxyName)\r\n {\r\n System.out.println(\"Name: \" + newProxyName);\r\n proxyName = newProxyName;\r\n }", "public void setSrvTargetNameValue(String srvTargetNameValue)\n throws JNCException {\n setSrvTargetNameValue(new YangString(srvTargetNameValue));\n }", "public void setRoutePoint(String routePoint) {\n\t\t\tthis.routePoint = routePoint;\n\t\t}", "public void setName(String sName) {\n\t\t\tsRuleID = sName;\n\t\t}", "public void setRrNo (java.lang.String rrNo) {\n\t\tthis.rrNo = rrNo;\n\t}", "public void generateRouteNameString(){\n switch(routeName){\n case \"1A\": this.routeNameString = \"College Edinburgh\"; break;\n case \"1B\": this.routeNameString = \"College Edinburgh\"; break;\n case \"2A\": this.routeNameString = \"West Loop\"; break;\n case \"2B\": this.routeNameString = \"West Loop\"; break;\n case \"3A\": this.routeNameString = \"East Loop\"; break;\n case \"3B\": this.routeNameString = \"East Loop\"; break;\n case \"4\": this.routeNameString = \"York\"; break;\n case \"5\": this.routeNameString = \"Gordon\"; break;\n case \"6\": this.routeNameString = \"Harvard Ironwood\"; break;\n case \"7\": this.routeNameString = \"Kortright Downey\"; break;\n case \"8\": this.routeNameString = \"Stone Road Mall\"; break;\n case \"9\": this.routeNameString = \"Waterloo\"; break;\n case \"10\": this.routeNameString = \"Imperial\"; break;\n case \"11\": this.routeNameString = \"Willow West\"; break;\n case \"12\": this.routeNameString = \"General Hospital\"; break;\n case \"13\": this.routeNameString = \"Victoria Rd Rec Centre\"; break;\n case \"14\": this.routeNameString = \"Grange\"; break;\n case \"15\": this.routeNameString = \"University College\"; break;\n case \"16\": this.routeNameString = \"Southgate\"; break;\n case \"20\": this.routeNameString = \"NorthWest Industrial\"; break;\n case \"50\": this.routeNameString = \"Stone Road Express\"; break;\n case \"56\": this.routeNameString = \"Victoria Express\"; break;\n case \"57\": this.routeNameString = \"Harvard Express\"; break;\n case \"58\": this.routeNameString = \"Edinburgh Express\"; break;\n default: this.routeNameString = \"Unknown Route\"; break;\n }\n }", "private void setChangeNameRsp(ChangeName.Rsp value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 16;\n }", "public Gateway setPaymentProcessorName(java.lang.String paymentProcessorName) {\n return genClient.setOther(paymentProcessorName, CacheKey.paymentProcessorName);\n }", "public void setRealName(String realName) {\n this.realName = realName;\n }", "public void setRealName(String realName) {\n this.realName = realName;\n }", "public void xsetRoadwayRef(org.landxml.schema.landXML11.RoadwayNameRef roadwayRef)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.RoadwayNameRef target = null;\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().find_attribute_user(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.set(roadwayRef);\r\n }\r\n }", "public java.lang.String getResourcename() {\n\treturn resourcename;\n}", "public void setName (String name) {\n this.name = name;\n NameRegistrar.register (\"server.\"+name, this);\n }", "public Builder setCurrentRouteSegment(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n currentRouteSegment_ = value;\n onChanged();\n return this;\n }", "public void setRealname(String realname) {\r\n this.realname = realname;\r\n }", "private void setChangeNameRsp(\n ChangeName.Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 16;\n }", "protected void setRealname(final String realname) {\n this.realname = realname;\n }", "public void setRealName(String realName) {\n this.realName = realName == null ? null : realName.trim();\n }", "public void setRealName(String realName) {\n this.realName = realName == null ? null : realName.trim();\n }", "public void setRealName(String realName) {\n this.realName = realName == null ? null : realName.trim();\n }", "public void setZonename(java.lang.String newZonename) {\n\tzonename = newZonename;\n}", "public void setName (String name) {\n\t streetName = name ;\n }", "public void setRealname(String realname) {\n this.realname = realname;\n }", "public void setNameValue(YangString nameValue) throws JNCException {\n setLeafValue(Routing.NAMESPACE,\n \"name\",\n nameValue,\n childrenNames());\n }", "public void setRoute (java.lang.String route) {\n\t\tthis.route = route;\n\t}", "public Builder setRouteDest(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n routeDest_ = value;\n onChanged();\n return this;\n }", "public void setRPH(String RPH) {\n this.RPH = RPH;\n }", "public void setResidentName(String residentName) {\n this.residentName = residentName == null ? null : residentName.trim();\n }", "public void setSrsName(final String srsName) {\n\t\tthis.hasSrsName = true;\n\t\tthis.srsName = srsName;\n\t}", "public void setSNDR(String SNDR) {\n this.SNDR = SNDR;\n }", "public String getRouteid() {\r\n return routeid;\r\n }", "public void setReName(String reName) {\n this.reName = reName == null ? null : reName.trim();\n }", "public com.dator.jqtest.dao.model.tables.pojos.Route fetchOneByName(String value) {\n return fetchOne(Route.ROUTE.NAME, value);\n }", "public void setlName(String lName) {\n this.lName = lName;\n }", "public void setNameofRenter(String usrName) throws Exception{\n\n\t\t/*\n\t\t * Input is invalid if an empty String is passed in.\n\t\t */\n\t\tif(usrName.length() == 0){\n\t\t\tthrow new Exception();\n\t\t}\n\t\tnameofRenter = usrName;\n\t}", "public void setRoutePoint(AKeyCallPoint routePoint) {\n\t\t\tthis.routePoint = routePoint;\n\t\t}", "public void setNode(String procId) {\r\n\t\tif (recordRoute) {\r\n\t\t\tsuper.setNode(procId); //Record route\r\n\t\t} else {\r\n\t\t\t//Just set the processing node.\r\n\t\t\tthis.procNode = procId;\r\n\t\t}\r\n\t}", "public void setBus(String busname){\n this.busname = busname;\n }", "void setLspId(String lspId);", "public void setNameSite(String nameSite){\n this.mFarm.setNameSite(nameSite);\n }", "public void setSR_ID(String SR_ID) {\n\t\tthis.SR_ID = SR_ID == null ? null : SR_ID.trim();\n\t}", "public void setSR_SEQ(String SR_SEQ) {\n\t\tthis.SR_SEQ = SR_SEQ == null ? null : SR_SEQ.trim();\n\t}", "public static void setInternetRadioStationName(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, INTERNETRADIOSTATIONNAME, value);\r\n\t}", "public String getRoutingNo();", "public void setRoutingKey(String routingKey) {\n this.routingKey = routingKey;\n }", "public void setPathname(String s) {this.pathname = s;}", "public void setRoute(com.vmware.converter.HostIpRouteEntry route) {\r\n this.route = route;\r\n }", "private void setChangeNameRelay(ChangeName.RelayToFriend value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 20;\n }", "public void setPRTNO(java.lang.Integer PRTNO) {\n this.PRTNO = PRTNO;\n }", "public void setReal_name(String real_name) {\n this.real_name = real_name;\n }", "public void addSrvTargetName() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"srv-target-name\",\n null,\n childrenNames());\n }", "public String getRname() {\n return rname;\n }", "public void setSrvPortValue(String srvPortValue) throws JNCException {\n setSrvPortValue(new YangUInt32(srvPortValue));\n }", "public void setURI(DsURI aURI) {\n if (m_nameAddress == null) {\n m_nameAddress = new DsSipNameAddress();\n }\n m_nameAddress.setURI(aURI);\n // To, From, Record, Record-Route headers should always have <> brackets.\n // In case of Contact, <> are must if the URI contains ',' | ';' | '?'.\n // That can be checked in the setURI() method of DsSipNameAddress itself.\n // May be we should check for brackets before serialization only.\n // -- if (getHeaderID() != CONTACT) m_nameAddress.setBrackets(true);\n }", "public void setLName(String LName) {\n this.LName = LName;\n }", "public void setInternetRadioStationName(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), INTERNETRADIOSTATIONNAME, value);\r\n\t}", "public void setInternetRadioStationName( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), INTERNETRADIOSTATIONNAME, value);\r\n\t}", "public final void setWindr(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String windr)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Windr.toString(), windr);\n\t}", "public void setReceiveName(String receiveName) {\n this.receiveName = receiveName == null ? null : receiveName.trim();\n }", "public void xsetRoadwayPI(org.landxml.schema.landXML11.Station roadwayPI)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.Station)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.set(roadwayPI);\r\n }\r\n }", "public void setDomainNameValue(YangString domainNameValue)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"domain-name\",\n domainNameValue,\n childrenNames());\n }", "public void rebind(String name, Remote ref) throws RemoteException;", "public void setStationName(org.apache.xmlbeans.XmlAnySimpleType stationName)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlAnySimpleType target = null;\r\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(STATIONNAME$12);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().add_attribute_user(STATIONNAME$12);\r\n }\r\n target.set(stationName);\r\n }\r\n }", "public void setResponseRoutingKey(String responseRoutingKey) {\n\t\tthis.responseRoutingKey = responseRoutingKey;\n\t}", "@PathParam(\"rule\")\n public void setRule(@NotNull(message = \"rule name can't be NULL\")\n final String rle) {\n this.rule = rle;\n }", "public void initRMIBindings() {\n\tString name = null;\n\ttry {\n Configuration configuration=proxy.getConfiguration();\n if (configuration.accessLogViaRMI) {\n SipStack sipStack=proxy.getSipStack();\n Iterator it =sipStack.getListeningPoints();\n ListeningPoint lp = (ListeningPoint) it.next();\n String stackIPAddress = sipStack.getIPAddress();\n name = \"//\" + stackIPAddress + \":\" + 0 + \"/\" +\n sipStack.getStackName()\n + \"/\" + \"test.jainproxy.Registrar\";\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Exporting Registration Table \" + name);\n }\n Naming.rebind(name,this);\n }\n else {\n if (ProxyDebug.debug)\n ProxyDebug.println\n (\"We don't export the registrations because RMI is disabled.\");\n }\n } \n catch (Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Problem trying to export the Registration Table: \" + name);\n }\n\t ex.printStackTrace();\n\t}\n }", "public void setAslName(String value) {\n setAttributeInternal(ASLNAME, value);\n }", "public void setNAME4(java.lang.String value)\n {\n if ((__NAME4 == null) != (value == null) || (value != null && ! value.equals(__NAME4)))\n {\n _isDirty = true;\n }\n __NAME4 = value;\n }", "public void setDPReiheHgVorname(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPReiheHgVorname)));\n\t\tthis.m_sDPReiheHgVorname=value;\n\t}", "public String getRouteType() {\n return routeType;\n }", "public void setR_PnRef(String R_PnRef) {\n super.setR_PnRef(R_PnRef);\n if (R_PnRef != null) {\n setDocumentNo(R_PnRef);\n }\n }", "public void setRealname(String realname) {\n this.realname = realname == null ? null : realname.trim();\n }", "public void setTRS_TYPE(String TRS_TYPE) {\r\n this.TRS_TYPE = TRS_TYPE == null ? null : TRS_TYPE.trim();\r\n }", "public void setRegName(String regName) {\r\n\t\tthis.regName = regName;\r\n\t}", "public void setName(String restaurantName) { // Sets the restaurant's name\n\t\tname = restaurantName;\n\t}", "public java.lang.String getRoute () {\n\t\treturn route;\n\t}", "public void setRoute(String route) {\n this.route = route == null ? null : route.trim();\n }", "public void setName() {\r\n\t\tapplianceName = \"Refrigerator\";\r\n\t}", "String getRouteID();", "public String getRlName() {\n return (String) getAttributeInternal(RLNAME);\n }", "public void setRouteid(String routeid) {\r\n this.routeid = routeid;\r\n }", "public void setDPHgVorname(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPHgVorname)));\n\t\tthis.m_sDPHgVorname=value;\n\t}", "public void setAgentName(String value) {\n setAttributeInternal(AGENTNAME, value);\n }", "public void setBackupServerName(String argName){\n\t backupServerName=argName;\n }" ]
[ "0.62552404", "0.5773068", "0.5400062", "0.53835446", "0.53433925", "0.5310301", "0.50416076", "0.50316244", "0.50277895", "0.49029317", "0.48965123", "0.48423052", "0.4796289", "0.47335187", "0.47317046", "0.47305718", "0.47254148", "0.46964", "0.46870488", "0.46794477", "0.46742484", "0.46595705", "0.46550485", "0.46550032", "0.46476868", "0.46476868", "0.46425912", "0.45976", "0.4558357", "0.4519426", "0.44981837", "0.44866368", "0.44820908", "0.44808504", "0.44808504", "0.44808504", "0.44698614", "0.4467967", "0.44649294", "0.44645613", "0.44529572", "0.44505516", "0.44424853", "0.44412687", "0.44347915", "0.44110882", "0.44108096", "0.4407073", "0.44059077", "0.44015142", "0.4396536", "0.43956596", "0.43947798", "0.43934152", "0.4377614", "0.4374773", "0.43693697", "0.43684042", "0.43645155", "0.43631268", "0.4342415", "0.4340244", "0.4337287", "0.4332312", "0.4328045", "0.43228623", "0.43126675", "0.430508", "0.4304992", "0.43046212", "0.42990428", "0.4289609", "0.42885357", "0.42874113", "0.42851052", "0.42843482", "0.42835596", "0.4278661", "0.42673704", "0.42672452", "0.4264341", "0.4255873", "0.42484388", "0.4245992", "0.4245172", "0.4240287", "0.42396307", "0.42375863", "0.4225283", "0.4220879", "0.42179644", "0.4215692", "0.42150974", "0.42133632", "0.4206901", "0.4202553", "0.41885722", "0.41854948", "0.41821793", "0.4176569" ]
0.6806975
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_DY_ROUTE.DEVICES
public Integer getDevices() { return devices; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();", "public List getDevices() {\n return devices;\n }", "List<DeviceDetails> getDevices();", "public List<ProductModel> getAllDevices() {\n\t\tSystem.out.println(\"\\nNetworkDevServ-getAllDev()\");\r\n\t\treturn deviceData.getAllDevices();\r\n\t}", "@Path(\"device\")\n DeviceAPI devices();", "public final String getDeviceId(){\n return peripheralDeviceId;\n }", "public final String getDevicePort(){\n return peripheralPort;\n }", "public List<Device> getListDevice() {\n\n\t\tList<Device> listDevice = new ArrayList<Device>();\n\n\t\tDevice device = new Device();\n\n\t\tdevice.setName(\"DeviceNorgren\");\n\t\tdevice.setManufacturer(\"Norgren\");\n\t\tdevice.setVersion(\"5.7.3\");\n\t\tdevice.setDescriptionSemantic(\"http://www.loa-cnr.it/ontologies/DUL.owl#isDescribedBy\");\n\n\t\tSensor sensorTemperature = new Sensor();\n\t\tsensorTemperature.setName(\"SensorSiemens\");\n\t\tsensorTemperature.setManufacturer(\"Siemens\");\n\t\tsensorTemperature.setVersion(\"1.2.2\");\n\t\tsensorTemperature.setDescriptionSemantic(\"http://www.loa-cnr.it/ontologies/DUL.owl#isDescribedBy\");\n\t\tsensorTemperature.setMonitor(\"Temperature\");\n\n\t\tSensor sensorPressure = new Sensor();\n\t\tsensorPressure.setName(\"SensorOmron\");\n\t\tsensorPressure.setManufacturer(\"Omron\");\n\t\tsensorPressure.setVersion(\"0.5.2\");\n\t\tsensorPressure.setDescriptionSemantic(\"http://www.loa-cnr.it/ontologies/DUL.owl#isDescribedBy\");\n\t\tsensorPressure.setMonitor(\"Pressure\");\n\n\t\tdevice.getListSensor().add(sensorTemperature);\n\t\tdevice.getListSensor().add(sensorPressure);\n\n\t\tActuator actuadorKey = new Actuator();\n\n\t\tactuadorKey.setName(\"SensorAutonics\");\n\t\tactuadorKey.setManufacturer(\"Autonics\");\n\t\tactuadorKey.setVersion(\"3.1\");\n\t\tactuadorKey.setDescriptionSemantic(\"http://www.loa-cnr.it/ontologies/DUL.owl#isDescribedBy\");\n\t\tactuadorKey.setAction(\"On-Off\");\n\n\t\tdevice.getListActuator().add(actuadorKey);\n\n\t\tlistDevice.add(device);\n\n\t\treturn listDevice;\n\n\t}", "public IDevice[] getDevices() { return devices; }", "public List<String> getAvailableDevices() {\n if (getEcologyDataSync().getData(\"devices\") != null) {\n return new ArrayList<>((Collection<? extends String>) ((Map<?, ?>) getEcologyDataSync().\n getData(\"devices\")).keySet());\n } else {\n return Collections.emptyList();\n }\n }", "public org.hl7.fhir.ResourceReference[] getDeviceArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(DEVICE$12, targetList);\n org.hl7.fhir.ResourceReference[] result = new org.hl7.fhir.ResourceReference[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "public Collection<String> listDevices();", "public abstract List<NADevice> getDevices(Context context);", "java.lang.String getDeviceId();", "public String getDevice() {\r\n return device;\r\n }", "public List<Device> getRunningDevices();", "@Override\n public Object getData() {\n return devices;\n }", "public SmartDevice[] readDevices() {\n SQLiteDatabase db = getReadableDatabase();\n\n // Get data from database\n Cursor cursor = db.query(TABLE_NAME, null, null, null, null, null, null, null);\n if (cursor.getCount() <= 0) // If there is nothing found\n return null;\n\n\n // Go trough data and create class objects\n SmartDevice[] devices = new SmartDevice[cursor.getCount()];\n int i = 0;\n for (cursor.moveToFirst(); !cursor.isAfterLast(); cursor.moveToNext()) {\n devices[i++] = createDevice(cursor);\n }\n\n close();\n return devices;\n }", "public DeviceUserAuthorization[] getDeviceList() {\n return deviceList;\n }", "public static List<String> getDeviceList() {\n\t\tList<String> str = CommandRunner.exec(CMD_GET_DEVICE_ID);\n\t\tList<String> ids = new ArrayList<String>();\n\t\tfor (int i = 1; i < str.size(); i++) {\n\t\t\tString id = str.get(i).split(\" |\\t\")[0].trim();\n\t\t\tif (!id.isEmpty()) {\n\t\t\t\tids.add(id);\n\t\t\t}\n\t\t}\n\t\treturn ids;\n\t}", "public Peripheral[] getDevices() {\r\n\treturn (Peripheral[]) this.deviceList.toArray(new Peripheral[0]);\r\n }", "Reference getDevice();", "Collection<? extends ReflexDevice> getDevices() {\n return processors.values();\n }", "@Override\n public String getDeviceId() {\n return this.strDevId;\n }", "public Integer getDeviceId() {\n return deviceId;\n }", "public Integer getDeviceId() {\n return deviceId;\n }", "public String getDeviceId() {\n return this.DeviceId;\n }", "public RouterType getDeviceType(){\n\t return deviceType;\n }", "public Cursor getDevices(){\n String tabla = devicesContract.deviceEntry.tableName,\n selection = null,\n groupBy = null,\n having = null,\n orderBy = null;\n String[] columnas = null, selectionArgs = null;\n Cursor d = getDevice(tabla,columnas,selection,selectionArgs,groupBy,having,orderBy);\n return d;\n }", "public String getDeviceid() {\n return deviceid;\n }", "Integer getDeviceId();", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllActiveDevicesFast\")\n List<JsonDevice> all();", "public String deviceId() {\n return this.deviceId;\n }", "public String getDeviceName() {\n return this.deviceName;\n }", "public final String getDeviceType(){\n return TYPE;\n }", "@Override\n public List<Object> getDeviceSerialByMcu(String sys_id) {\n return null;\n }", "public final int getDeviceID() {\n return device.getDeviceID();\n }", "public static List<FTDevice> getDevices() throws FTD2XXException {\n return getDevices(false);\n }", "public String getDeviceName(){\n\t return deviceName;\n }", "@SuppressWarnings(\"unchecked\")\n\t@RequestMapping(value = \"/getdevcon\", method = RequestMethod.GET)\n public JSONObject getdevcon(@RequestParam(value=\"sid\", \t\trequired=false) String sid, \n \t\t\t\t\t\t\t@RequestParam(value=\"spid\", \trequired=false) String spid,\n \t\t\t\t\t\t\t@RequestParam(value=\"swid\", \trequired=false) String swid,\n \t\t\t\t\t\t\t@RequestParam(value=\"uid\", \t \trequired=false) String uid,\n \t\t\t\t\t\t\t@RequestParam(value=\"duration\", required=false, defaultValue=\"5m\") String duration) throws IOException {\n \t\n \tJSONArray dev_array = null; \t\n \tJSONObject devlist \t = new JSONObject();\n\t\tdev_array = new JSONArray();\n\t\t\n\t\tDevice dv = getDeviceService().findOneByUid(uid);\n\t\t\n\t\tif (dv != null) {\n\t\t\t\n\t\t\tJSONArray dev_array1 = new JSONArray();\n\t\t\tJSONArray dev_array2 = new JSONArray();\n\t\t\tJSONArray dev_array3 = new JSONArray();\n\t\t\tJSONArray dev_array4 = new JSONArray();\n\t \t\n\t\t\tdev_array1.add (0, \"Mac\");\n\t\t\tdev_array1.add (1, dv.getIos());\n\t\t\tdev_array2.add (0, \"Android\");\n\t\t\tdev_array2.add (1, dv.getAndroid());\n\t\t\tdev_array3.add (0, \"Win\");\n\t\t\tdev_array3.add (1, dv.getWindows());\n\t\t\tdev_array4.add (0, \"Others\");\n\t\t\tdev_array4.add (1, dv.getOthers());\t\t\n\t\t\t\n\t\t\tdev_array.add (0, dev_array1);\n\t\t\tdev_array.add (1, dev_array2);\n\t\t\tdev_array.add (2, dev_array3);\n\t\t\tdev_array.add (3, dev_array4);\t\t\t\n\t\t\t\n\t\t}\n \t\t\t\t\t\n\t\tdevlist.put(\"devicesConnected\", dev_array);\t\n\t\t\n \t//LOG.info(\"Connected Clients\" +devlist.toString());\n \t\n \treturn devlist;\n \t\n }", "public String getDeviceName() {\n return deviceName;\n }", "@GET(\"device\")\n Call<DevicesResponse> getDevice();", "public Device getDevice() {\n\t\treturn this.device;\n\t}", "public static native String JavaGetDeviceSerialList(int Number);", "final int getDeviceNum() {\n return device.getDeviceNum();\n }", "public String getDeviceName() {\n return deviceName;\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getDeviceSensorOutputs/{device}\")\n List<JsonSensorOutput> byDevice(@PathParam(\"device\") int device);", "public final TestDevice[] getDeviceList() {\n return mDevices.toArray(new TestDevice[mDevices.size()]);\n }", "public String getDeviceName(){\n\t\treturn deviceName;\n\t}", "public String getRingerDevice();", "public String getDevice_id() {\r\n\t\treturn device_id;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Device> getAllDevices() {\n\n Query query = em.createQuery(\"SELECT d FROM Device d\");\n List<Device> devices = new ArrayList<Device>();\n devices = query.getResultList();\n return devices;\n }", "public static void getDevicesList()\n {\n MidiDevice.Info[]\taInfos = MidiSystem.getMidiDeviceInfo();\n\t\tfor (int i = 0; i < aInfos.length; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tMidiDevice\tdevice = MidiSystem.getMidiDevice(aInfos[i]);\n\t\t\t\tboolean\t\tbAllowsInput = (device.getMaxTransmitters() != 0);\n\t\t\t\tboolean\t\tbAllowsOutput = (device.getMaxReceivers() != 0);\n\t\t\t\tif (bAllowsInput || bAllowsOutput)\n\t\t\t\t{\n\n\t\t\t\t\tSystem.out.println(i + \"\" + \" \"\n\t\t\t\t\t\t+ (bAllowsInput?\"IN \":\" \")\n\t\t\t\t\t\t+ (bAllowsOutput?\"OUT \":\" \")\n\t\t\t\t\t\t+ aInfos[i].getName() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getVendor() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getVersion() + \", \"\n\t\t\t\t\t\t+ aInfos[i].getDescription());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"\" + i + \" \" + aInfos[i].getName());\n\t\t\t\t\t}\n\n\t\t\t}\n\t\t\tcatch (MidiUnavailableException e)\n\t\t\t{\n\t\t\t\t// device is obviously not available...\n\t\t\t\t// out(e);\n\t\t\t}\n\t\t}\n\t\tif (aInfos.length == 0)\n\t\t{\n\t\t\tSystem.out.println(\"[No devices available]\");\n\t\t}\n\t\t//System.exit(0);\n }", "public short getDeviceType() {\r\n return deviceType;\r\n }", "public List<String> execAdbDevices()\r\n\t{\r\n\t\tList<String> ret_device_id_list = new ArrayList<>();\r\n\t\t\r\n\t\tProcess proc = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tproc = new ProcessBuilder(this.adb_directory, \"devices\").start();\r\n\t\t\tproc.waitFor();\r\n\t\t} catch (IOException ioe)\r\n\t\t{\r\n\t\t\tioe.printStackTrace();\r\n\t\t} catch (InterruptedException ire)\r\n\t\t{\r\n\t\t\tire.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tString devices_result = this.collectResultFromProcess(proc);\r\n\t String[] device_id_list = devices_result.split(\"\\\\r?\\\\n\");\r\n\r\n\t if (device_id_list.length <= 1)\r\n\t {\r\n\t \tSystem.out.println(\"No Devices Attached.\");\r\n\t \treturn ret_device_id_list;\r\n\t }\r\n\t \r\n\t /**\r\n\t * collect the online devices \r\n\t */\r\n\t String str_device_id = null;\r\n\t String[] str_device_id_parts = null;\r\n\t // ignore the first line which is \"List of devices attached\"\r\n\t for (int i = 1; i < device_id_list.length; i++)\r\n\t\t{\r\n\t\t\tstr_device_id = device_id_list[i];\r\n\t\t\tstr_device_id_parts = str_device_id.split(\"\\\\s+\");\r\n\t\t\t// add the online device\r\n\t\t\tif (str_device_id_parts[1].equals(\"device\"))\r\n\t\t\t\tret_device_id_list.add(str_device_id_parts[0]);\r\n\t\t}\r\n\t \r\n\t return ret_device_id_list;\r\n\t}", "public String[] getVideoDevicesList();", "public String getDeviceCode() {\n return deviceCode;\n }", "public int getRunningDevicesCount();", "public List<String> execAdbDevices() {\n System.out.println(\"adb devices\");\n\n List<String> ret_device_id_list = new ArrayList<>();\n Process proc = null;\n try {\n proc = new ProcessBuilder(this.adb_path, \"devices\").start();\n proc.waitFor();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n } catch (InterruptedException ire) {\n ire.printStackTrace();\n }\n\n String devices_result = this.collectResultFromProcess(proc);\n String[] device_id_list = devices_result.split(\"\\\\r?\\\\n\");\n\n if (device_id_list.length <= 1) {\n System.out.println(\"No Devices Attached.\");\n return ret_device_id_list;\n }\n\n /**\n * collect the online devices\n */\n String str_device_id = null;\n String device = null;\n String[] str_device_id_parts = null;\n // ignore the first line which is \"List of devices attached\"\n for (int i = 1; i < device_id_list.length; i++) {\n str_device_id = device_id_list[i];\n str_device_id_parts = str_device_id.split(\"\\\\s+\");\n // add the online device\n if (str_device_id_parts[1].equals(\"device\")) {\n device = str_device_id_parts[0];\n ret_device_id_list.add(device);\n System.out.println(device);\n }\n }\n\n return ret_device_id_list;\n }", "public String getDevice_type() {\r\n\t\treturn device_type;\r\n\t}", "public String getDeviceModel() {\n return deviceModel;\n }", "public Multimap<String, OOCSIDevice> devicesByLocation() {\n\t\tpurgeStaleClients();\n\n\t\tMultimap<String, OOCSIDevice> locationsMappedDevices = MultimapBuilder.hashKeys().linkedListValues().build();\n\t\tclients.values().stream().forEach(\n\t\t od -> od.locations.entrySet().stream().forEach(loc -> locationsMappedDevices.put(loc.getKey(), od)));\n\t\treturn locationsMappedDevices;\n\t}", "public String getDeviceType() {\n return deviceType;\n }", "default public int getControlToDevicePort()\t\t\t\t{ return 2226; }", "public org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList getDevicesForApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);", "String getDeviceName() {\n return deviceName;\n }", "public static String DeviceConnected(){\n StringBuilder outputDC = new StringBuilder();\n String cmd = \"route print\";\n try{\n outputDC.append(getCommand(cmd));\n }\n catch(Throwable se){\n se.printStackTrace();\n }\n return outputDC.toString();\n }", "public static void listDevices()\n\t{\n\t\tfor(SerialPort port : SerialPort.getCommPorts())\n\t\t{\n\t String portName = port.getSystemPortName();\n\t System.out.println(portName);\n\t\t}\n\t}", "public final int getDevice()\n\t{\n\t\treturn address & 0xFF;\n\t}", "public Status getDeviceStatus() {\n return mDeviceStatus;\n }", "public DeviceLocator getDeviceLocator();", "public java.lang.String getDeviceId() {\n java.lang.Object ref = deviceId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n deviceId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "private void listDevices(Context context) {\n\t DeviceList list = new DeviceList();\n\t int result = LibUsb.getDeviceList(context, list);\n\t if(result < 0) throw new LibUsbException(\"Unable to get device list\", result);\n\n\t try\n\t {\n\t for(Device device: list)\n\t {\n\t DeviceDescriptor descriptor = new DeviceDescriptor();\n\t result = LibUsb.getDeviceDescriptor(device, descriptor);\n\t if (result != LibUsb.SUCCESS) throw new LibUsbException(\"Unable to read device descriptor\", result);\n\t System.out.println(\"vendorId=\" + descriptor.idVendor() + \", productId=\" + descriptor.idProduct());\n\t }\n\t }\n\t finally\n\t {\n\t // Ensure the allocated device list is freed\n\t LibUsb.freeDeviceList(list, true);\n\t }\n\t}", "public void getDevicesForApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request,\n io.grpc.stub.StreamObserver<org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList> responseObserver);", "public Device getDevice() {\n\t\tDevice device = new Device();\n\n\t\tdevice.setName(\"DeviceNorgren\");\n\t\tdevice.setManufacturer(\"Norgren\");\n\t\tdevice.setVersion(\"5.7.3\");\n\t\tdevice.setDescriptionSemantic(\"http://www.loa-cnr.it/ontologies/DUL.owl#isDescribedBy\");\n\n\t\tSensor sensorTemperature = new Sensor();\n\t\tsensorTemperature.setName(\"SensorSiemens\");\n\t\tsensorTemperature.setManufacturer(\"Siemens\");\n\t\tsensorTemperature.setVersion(\"1.2.2\");\n\t\tsensorTemperature.setDescriptionSemantic(\"http://www.loa-cnr.it/ontologies/DUL.owl#isDescribedBy\");\n\t\tsensorTemperature.setMonitor(\"Temperature\");\n\n\t\tSensor sensorPressure = new Sensor();\n\t\tsensorPressure.setName(\"SensorOmron\");\n\t\tsensorPressure.setManufacturer(\"Omron\");\n\t\tsensorPressure.setVersion(\"0.5.2\");\n\t\tsensorPressure.setDescriptionSemantic(\"http://www.loa-cnr.it/ontologies/DUL.owl#isDescribedBy\");\n\t\tsensorPressure.setMonitor(\"Pressure\");\n\n\t\tdevice.getListSensor().add(sensorTemperature);\n\t\tdevice.getListSensor().add(sensorPressure);\n\n\t\tActuator actuadorKey = new Actuator();\n\n\t\tactuadorKey.setName(\"SensorAutonics\");\n\t\tactuadorKey.setManufacturer(\"Autonics\");\n\t\tactuadorKey.setVersion(\"3.1\");\n\t\tactuadorKey.setDescriptionSemantic(\"http://www.loa-cnr.it/ontologies/DUL.owl#isDescribedBy\");\n\t\tactuadorKey.setAction(\"On-Off\");\n\n\t\tdevice.getListActuator().add(actuadorKey);\n\n\t\treturn device;\n\n\t}", "public UUID getDeviceUuid() {\n return uuid;\n }", "public java.lang.String getDeviceId() {\n java.lang.Object ref = deviceId_;\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 deviceId_ = s;\n }\n return s;\n }\n }", "public synchronized Hashtable getDevices() {\n Hashtable hashtable;\n hashtable = new Hashtable();\n Enumeration keys = this.deviceList.keys();\n while (keys.hasMoreElements()) {\n Integer num = (Integer) keys.nextElement();\n hashtable.put(num, this.deviceList.get(num));\n }\n return hashtable;\n }", "@Override\n public int getDeviceId() {\n return 0;\n }", "org.hl7.fhir.String getDeviceIdentifier();", "public int getDevicesStartAddress() {\n return devicesStartAddress;\n }", "UUID getDeviceId();", "@GET\n\t@Path(\"types\")\n public Response getDeviceTypes() {\n List<DeviceType> deviceTypes;\n try {\n deviceTypes = DeviceMgtAPIUtils.getDeviceManagementService().getAvailableDeviceTypes();\n return Response.status(Response.Status.OK).entity(deviceTypes).build();\n } catch (DeviceManagementException e) {\n String msg = \"Error occurred while fetching the list of device types.\";\n log.error(msg, e);\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();\n }\n }", "@java.lang.Override\n @java.lang.Deprecated public java.util.List<google.maps.fleetengine.v1.TerminalLocation> getRouteList() {\n return route_;\n }", "private void getDevices(){\n progress.setVisibility(View.VISIBLE);\n\n emptyMessage.setVisibility(View.GONE);\n getListView().setVisibility(View.GONE);\n\n // request device list from the server\n Model.PerformRESTCallTask gd = Model.asynchRequest(this,\n getString(R.string.rest_url) + \"?\"\n + \"authentification_key=\" + MainActivity.authentificationKey + \"&operation=\" + \"getdevices\",\n //Model.GET,\n \"getDevices\");\n tasks.put(\"getDevices\", gd);\n }", "public String getDeviceName() {\n\t\treturn deviceName;\n\t}", "public String getDeviceDescription() {\r\n return deviceDesc;\r\n }", "default public int getCodeToDevicePort()\t\t\t\t{ return 2225; }", "public void getDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request,\n io.grpc.stub.StreamObserver<org.thethingsnetwork.management.proto.HandlerOuterClass.Device> responseObserver);", "public int getNumOfRequiredDevices() {\n return mRequiredDeviceNumber;\n }", "public final String getDeviceKey(){\n return peripheralKey;\n }", "public BigDecimal getDeviceIdentifier() {\n return deviceIdentifier;\n }", "public List<String> getConnectedDevices() {\n if (services.size() == 0) {\n return new ArrayList<String>();\n }\n\n HashSet<String> toRet = new HashSet<String>();\n\n for (String s : services.keySet()) {\n ConnectionService service = services.get(s);\n\n if (service.getState() == ConnectionConstants.STATE_CONNECTED) {\n toRet.add(s);\n }\n }\n\n return new ArrayList<String>(toRet);\n }", "String getDeviceName();", "@ServiceMethod(returns = ReturnType.SINGLE)\n public Device getDevice(String deviceId) {\n return this.serviceClient.getDevice(deviceId);\n }", "DeviceId deviceId();", "DeviceId deviceId();", "public com.google.protobuf.ByteString\n getDeviceIdBytes() {\n java.lang.Object ref = deviceId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n deviceId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Deprecated\r\n\tpublic String readDeviceID(){\r\n\t\treturn mFactoryBurnUtil.readDeviceID();\r\n\t}", "private native void nGetDevices(Vector deviceList);" ]
[ "0.6383009", "0.6168189", "0.58853596", "0.5866482", "0.57320243", "0.5719217", "0.56631744", "0.55982757", "0.559365", "0.5589538", "0.55872923", "0.5577417", "0.55374104", "0.5519232", "0.55131036", "0.5493269", "0.54208565", "0.53805375", "0.5359153", "0.5353797", "0.5343385", "0.53094625", "0.53011787", "0.53003883", "0.52837485", "0.52837485", "0.52829355", "0.52741313", "0.52425915", "0.523956", "0.5239494", "0.52303857", "0.5221951", "0.5219678", "0.52165616", "0.521342", "0.52097684", "0.51940465", "0.51601446", "0.5156756", "0.5142767", "0.51392156", "0.51390225", "0.5132916", "0.51280844", "0.5116571", "0.51008224", "0.50998", "0.5088531", "0.5084329", "0.50837356", "0.50809115", "0.5080633", "0.5080578", "0.50613874", "0.50610435", "0.50592756", "0.505365", "0.5053177", "0.50445735", "0.5040412", "0.5038341", "0.5021589", "0.50192124", "0.50075537", "0.5003152", "0.50013626", "0.500051", "0.4985555", "0.49820304", "0.49504006", "0.49452016", "0.4935453", "0.49183536", "0.4914372", "0.49005532", "0.4895917", "0.4893105", "0.48885775", "0.48859796", "0.488566", "0.4885488", "0.48757887", "0.4871953", "0.48704925", "0.48684153", "0.4866301", "0.4859089", "0.48477957", "0.48441374", "0.48363987", "0.48299068", "0.482838", "0.4827553", "0.48262155", "0.48186183", "0.48186183", "0.48185253", "0.481188", "0.48101282" ]
0.6147089
2
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_ROUTE.DEVICES
public void setDevices(Integer devices) { this.devices = devices; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDevices(Peripheral[] devices) {\r\n\tthis.deviceList.clear();\r\n\tif (devices != null) {\r\n\t int numEl = devices.length;\r\n\t for (int i = 0; i < numEl; i++) {\r\n\t\tthis.deviceList.add(devices[i]);\r\n\t }\r\n\t}\r\n }", "public Config setSubDevices(Set<DeviceCredential> subDevices) {\n this.subDevices = subDevices == null ? new HashSet<>() : new HashSet<>(subDevices);\n return this;\n }", "public void setDeviceName(String dn) {\r\n \tthis.deviceName = dn;\r\n }", "@Path(\"device\")\n DeviceAPI devices();", "public void setDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.Device request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver);", "public final void setDeviceId(String productId){\n peripheralDeviceId = productId;\n }", "public void setDeviceType(String argDeviceType){\n\t argDeviceType=argDeviceType.toUpperCase();\n\t if(argDeviceType.equals(\"CISCO\"))\n\t deviceType=RouterType.CISCO;\n\t else\n\t\t deviceType=RouterType.JUNIPER;\n }", "public void setRingerDevice(String devid);", "abstract protected void setDeviceName(String deviceName);", "public void setDeviceId(Integer deviceId) {\n this.deviceId = deviceId;\n }", "public void setDeviceId(Integer deviceId) {\n this.deviceId = deviceId;\n }", "public com.google.protobuf.Empty setDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.Device request);", "public List getDevices() {\n return devices;\n }", "public void setDeviceList(DeviceUserAuthorization[] deviceList) {\n this.deviceList = deviceList;\n }", "public void setDeviceArray(org.hl7.fhir.ResourceReference[] deviceArray)\n {\n check_orphaned();\n arraySetterHelper(deviceArray, DEVICE$12);\n }", "public void setDeviceId(String DeviceId) {\n this.DeviceId = DeviceId;\n }", "public Integer getDevices() {\r\n return devices;\r\n }", "void setAudioRoute(String device);", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();", "private void setDeviceVendor() {\n addToMobileContext(Parameters.DEVICE_MANUFACTURER, android.os.Build.MANUFACTURER);\n }", "public void setDevice(String device) {\r\n this.device = device;\r\n }", "public final void setDevicePort(String port){\n peripheralPort = port;\n }", "void replaceDevices(Set<String> devices) {\n availableDevices = devices;\n resetSelectedDevice();\n }", "public final String getDeviceId(){\n return peripheralDeviceId;\n }", "public final String getDevicePort(){\n return peripheralPort;\n }", "public void initDevices() {\n for (Device device: deviceList) {\n device.init(getCpu().getTime());\n }\n }", "public void getDevices(final Subscriber<List<Device>> devicesSubscriber) {\n if (smartThingsService==null) {\n devicesSubscriber.onError(new Throwable(\"Please login to SmartThings before trying to get devices\"));\n return;\n }\n Observable.combineLatest(smartThingsService.getSwitchesObservable(), smartThingsService.getLocksObservable(), new Func2<List<Device>, List<Device>, List<Device>>() {\n @Override\n public List<Device> call(List<Device> switches, List<Device> locks) {\n List<Device> devices = new ArrayList<>();\n devices.addAll(switches);\n devices.addAll(locks);\n return devices;\n }\n }).doOnError(new Action1<Throwable>() {\n @Override\n public void call(Throwable throwable) {\n devicesSubscriber.onError(throwable);\n }\n }).doOnCompleted(new Action0() {\n @Override\n public void call() {\n //\n }\n }).subscribe(new Action1<List<Device>>() {\n @Override\n public void call(List<Device> devices) {\n devicesSubscriber.onNext(devices);\n }\n });\n }", "public RouterType getDeviceType(){\n\t return deviceType;\n }", "void setDeviceName(String newDeviceName) {\n deviceName = newDeviceName;\n }", "private void onDeviceList(RequestDeviceList r){\n\t\t//Answer the request with the list of devices from the group\n\t\tgetSender().tell(new ReplyDeviceList(r.requestId, deviceActors.keySet()), getSelf());\n\t}", "public List<ProductModel> getAllDevices() {\n\t\tSystem.out.println(\"\\nNetworkDevServ-getAllDev()\");\r\n\t\treturn deviceData.getAllDevices();\r\n\t}", "public void setDeviceName(String argDeviceName) {\n\t deviceName = argDeviceName;\n }", "public void setDevice(final String device)\n {\n this.device = device;\n }", "public Builder setDeviceId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n deviceId_ = value;\n onChanged();\n return this;\n }", "public void setDevicesStartAddress(int devicesStartAddress) {\n this.devicesStartAddress = devicesStartAddress;\n }", "public void setDeviceModel(DeviceModel deviceModel)\r\n\t{\r\n\t\tthis.deviceModel = deviceModel;\r\n\t}", "public final void setDeviceKey(String key){\n peripheralKey = key;\n }", "public void setDevicesForAttributes(\n @NonNull AudioAttributes attributes, @NonNull ImmutableList<Object> devices) {\n devicesForAttributes.put(attributes, devices);\n }", "@Deprecated\r\n private void setDevices() throws ClassNotFoundException {\n\r\n installedDevices = new Device[deviceName.length];\r\n\r\n for (int i = 0; i < deviceName.length; i++) {\r\n\r\n //Class<?> eine = Class.forName(deviceName[0]);\r\n try {\r\n Constructor<?>[] ctors = Class.forName(deviceName[i]).getDeclaredConstructors();\r\n Constructor<?> ctor = null;\r\n for (Constructor<?> c : ctors) {\r\n if (c.getGenericParameterTypes().length == 0) {\r\n ctor = c;\r\n }\r\n }\r\n ctor.setAccessible(true);\r\n Device device = (Device) ctor.newInstance();\r\n\r\n installedDevices[i] = device;\r\n\r\n } catch (Exception e) {\r\n throw new ClassNotFoundException(\r\n \"Ist abgestuerzt, weil Klasse aus Config nicht existiert oder im falschen ordner sich befindet\"\r\n + e + \".\");\r\n }\r\n\r\n }\r\n\r\n }", "default public int getControlToDevicePort()\t\t\t\t{ return 2226; }", "List<DeviceDetails> getDevices();", "public IDevice[] getDevices() { return devices; }", "public String getDevice() {\r\n return device;\r\n }", "public void setDeviceModel(String deviceModel) {\n this.deviceModel = deviceModel == null ? null : deviceModel.trim();\n }", "@Override\n public int getDeviceId() {\n return 0;\n }", "public void setDeviceName(String deviceName) {\n this.deviceName = deviceName;\n }", "Reference getDevice();", "@Override\n public String getDeviceId() {\n return this.strDevId;\n }", "public void configureDeviceListView(){\n deviceListView = findViewById(R.id.device_listView);\n combinedDeviceList = new ArrayList<>();\n deviceListAdapter = new DeviceListAdapter(this, combinedDeviceList);\n deviceListView.setAdapter(deviceListAdapter);\n }", "public void setDeviceId(com.flexnet.opsembedded.webservices.SimpleQueryType deviceId) {\n this.deviceId = deviceId;\n }", "public void setCaptureDevice(String devid);", "public export.serializers.avro.DeviceInfo.Builder setSerialPort(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.serialPort = value;\n fieldSetFlags()[5] = true;\n return this;\n }", "public final void setVendorId(String vendorId){\n peripheralVendorId = vendorId;\n }", "java.lang.String getDeviceId();", "public void populateVitals() {\n try {\n Statement stmt = con.createStatement();\n\n ResultSet rs = stmt.executeQuery(\"select * from device\");\n while (rs.next()) {\n\n String guid = rs.getString(\"DeviceGUID\");\n int deviceId = rs.getInt(\"DeviceID\");\n int deviceTypeId = rs.getInt(\"DeviceTypeID\");\n int locationId = rs.getInt(\"LocationID\");\n float deviceProblem = rs.getFloat(\"ProblemPercentage\");\n\n String dateService = rs.getString(\"DateOfInitialService\");\n\n Device device = new Device();\n device.setDateOfInitialService(dateService);\n device.setDeviceGUID(guid);\n device.setDeviceID(deviceId);\n device.setDeviceTypeID(deviceTypeId);\n device.setLocationID(locationId);\n device.setProblemPercentage(deviceProblem);\n\n deviceList.add(device);\n\n }\n } catch (SQLException e) {\n log.error(\"Error populating devices\", e);\n }\n\n }", "public void setDeviceDao(IDeviceDao deviceDao) {\r\n \t\tthis.deviceDao = deviceDao;\r\n \t}", "public void setDefaultDevicesForAttributes(@NonNull ImmutableList<Object> devices) {\n defaultDevicesForAttributes = devices;\n }", "public void stopDevice(){\n //Stop the device.\n super.stopDevice();\n }", "@Generated(hash = 1823124035)\n public void __setDaoSession(DaoSession daoSession) {\n this.daoSession = daoSession;\n myDao = daoSession != null ? daoSession.getPartnerDeviceDao() : null;\n }", "public DeviceDescription setIdentifiers(DeviceDescriptionIdentifiers identifiers) {\n this.identifiers = identifiers;\n return this;\n }", "public void setDeviceType(String deviceType) {\n this.deviceType = deviceType;\n }", "public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> setDevice(\n org.thethingsnetwork.management.proto.HandlerOuterClass.Device request);", "public void setDeviceType(com.sforce.soap._2006._04.metadata.DeviceType deviceType) {\r\n this.deviceType = deviceType;\r\n }", "public String getDeviceid() {\n return deviceid;\n }", "@GET(\"device\")\n Call<DevicesResponse> getDevice();", "private void connectDevices() {\n Set<DeviceId> deviceSubjects =\n cfgRegistry.getSubjects(DeviceId.class, Tl1DeviceConfig.class);\n deviceSubjects.forEach(deviceId -> {\n Tl1DeviceConfig config =\n cfgRegistry.getConfig(deviceId, Tl1DeviceConfig.class);\n connectDevice(new DefaultTl1Device(config.ip(), config.port(), config.username(),\n config.password()));\n });\n }", "void updateDeviceEndpointAttributes(@Nonnull final UpdateDeviceEndpointAttributesRequest request);", "@Override\n\tpublic int updateDevice(DeviceBean db) {\n\t\treturn dao.updateDevice(db);\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@RequestMapping(value = \"/getdevcon\", method = RequestMethod.GET)\n public JSONObject getdevcon(@RequestParam(value=\"sid\", \t\trequired=false) String sid, \n \t\t\t\t\t\t\t@RequestParam(value=\"spid\", \trequired=false) String spid,\n \t\t\t\t\t\t\t@RequestParam(value=\"swid\", \trequired=false) String swid,\n \t\t\t\t\t\t\t@RequestParam(value=\"uid\", \t \trequired=false) String uid,\n \t\t\t\t\t\t\t@RequestParam(value=\"duration\", required=false, defaultValue=\"5m\") String duration) throws IOException {\n \t\n \tJSONArray dev_array = null; \t\n \tJSONObject devlist \t = new JSONObject();\n\t\tdev_array = new JSONArray();\n\t\t\n\t\tDevice dv = getDeviceService().findOneByUid(uid);\n\t\t\n\t\tif (dv != null) {\n\t\t\t\n\t\t\tJSONArray dev_array1 = new JSONArray();\n\t\t\tJSONArray dev_array2 = new JSONArray();\n\t\t\tJSONArray dev_array3 = new JSONArray();\n\t\t\tJSONArray dev_array4 = new JSONArray();\n\t \t\n\t\t\tdev_array1.add (0, \"Mac\");\n\t\t\tdev_array1.add (1, dv.getIos());\n\t\t\tdev_array2.add (0, \"Android\");\n\t\t\tdev_array2.add (1, dv.getAndroid());\n\t\t\tdev_array3.add (0, \"Win\");\n\t\t\tdev_array3.add (1, dv.getWindows());\n\t\t\tdev_array4.add (0, \"Others\");\n\t\t\tdev_array4.add (1, dv.getOthers());\t\t\n\t\t\t\n\t\t\tdev_array.add (0, dev_array1);\n\t\t\tdev_array.add (1, dev_array2);\n\t\t\tdev_array.add (2, dev_array3);\n\t\t\tdev_array.add (3, dev_array4);\t\t\t\n\t\t\t\n\t\t}\n \t\t\t\t\t\n\t\tdevlist.put(\"devicesConnected\", dev_array);\t\n\t\t\n \t//LOG.info(\"Connected Clients\" +devlist.toString());\n \t\n \treturn devlist;\n \t\n }", "public void setTargetDevicesToCombo(Combo combo, DialogModel dialogModel,\n\t\t\tint cache, boolean addHardwareDevices) throws Exception, IOException {\n\n\t\tif (addHardwareDevices) {\n\t\t\tConnectionPropertyValue connectionPropertyValue = StartUp\n\t\t\t\t\t.getConnectionProperties();\n\t\t\tString host = connectionPropertyValue.getHost();\n\t\t\tboolean needToUpdate = false;\n\t\n\t\t\tif (cache == 0) {\n\t\t\t\tneedToUpdate = true;\n\t\t\t} else {\n\t\t\t\tcache = cache * 60000;\n\t\t\t\tif (StartUp.lastLoadTime == 0\n\t\t\t\t\t\t|| ((StartUp.lastLoadTime + cache) < System\n\t\t\t\t\t\t\t\t.currentTimeMillis())) {\n\t\t\t\t\tneedToUpdate = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (dialogModel.getTargetDeviceList() == null || needToUpdate) {\n\t\t\t\ttry {\n\t\t\t\t\tdialogModel.setTargetDeviceList(getTargetDevices(dialogModel, cache));\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tLogExceptionHandler.log(ex.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (dialogModel.getTargetDeviceList() != null\n\t\t\t\t\t&& !dialogModel.getTargetDeviceList().isEmpty()) {\n\n\t\t\t\tIterator<TargetDeviceValue> iterator = dialogModel\n\t\t\t\t\t\t.getTargetDeviceList().iterator();\n\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\tTargetDeviceValue targetDeviceValue = (TargetDeviceValue) iterator\n\t\t\t\t\t\t\t.next();\n\n\t\t\t\t\tString hostname = makeHostPartForComboControl(targetDeviceValue\n\t\t\t\t\t\t\t.getProperties());\n\t\t\t\t\tif (host != null) {\n\t\t\t\t\t\tcombo.add(targetDeviceValue.getAlias() + hostname);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tList<ISymbianSDK> targetEmulatorDevicesList = getTargetEmulatorDevices();\n\t\tif (dialogModel.getTargetEmulatorDeviceList() == null) {\n\t\t\tdialogModel.setTargetEmulatorDeviceList(targetEmulatorDevicesList);\n\t\t}\n\t\t\n\t\tif (dialogModel.getTargetEmulatorDeviceList() != null\n\t\t\t\t&& !dialogModel.getTargetEmulatorDeviceList().isEmpty()) {\n\t\t\tIterator<ISymbianSDK> iterator = dialogModel.getTargetEmulatorDeviceList().iterator();\n\t\t\twhile(iterator.hasNext()) {\n\t\t\t\tISymbianSDK symbianSDK = iterator.next();\n\t\t\t\tcombo.add(symbianSDK.getUniqueId() + EMULATOR_DEVICE_POSTFIX);\n\t\t\t}\n\t\t}\n\t\t\t\n\t\tif ((dialogModel.getTargetDeviceList() != null \n\t\t\t\t&& dialogModel.getTargetDeviceList().isEmpty())\n\t\t\t&& (dialogModel.getTargetEmulatorDeviceList() != null\n\t\t\t\t&& dialogModel.getTargetEmulatorDeviceList().isEmpty())\n\t\t\t|| dialogModel.getTargetDeviceList() == null && dialogModel.getTargetEmulatorDeviceList() == null) {\n\t\t\t// Not found target devices\n\t\t\tthrow new Exception(\n\t\t\t\t\tMessages\n\t\t\t\t\t\t\t.getString(\"DialogContentFactory.didNotFindTargetDeviceListException\")); \n\t\t }\n\t}", "@Override\n public void updateDevice() throws RemoteHomeConnectionException, RemoteHomeManagerException {\n String[] statusResponse = m.sendCommandWithAnswer(getDeviceId(), \"sc\").split(\"\\\\|\");\n if (!statusResponse[0].equals(\"1\")) {\n throw new RemoteHomeManagerException(\"This response belongs to different device type: \"+statusResponse[0], RemoteHomeManagerException.WRONG_DEVICE_TYPE);\n }\n if (statusResponse[1].equals(\"c\")) {\n if (statusResponse[2].equals(\"1\")) {\n setCurrentState(true);\n } else {\n setCurrentState(false);\n }\n if (statusResponse[3].equals(\"1\")) {\n setOnWhenAppliedPower(false);\n } else {\n setOnWhenAppliedPower(true);\n }\n if (statusResponse[4].equals(\"1\")) {\n setOnWhenMovementDetected(true);\n } else {\n setOnWhenMovementDetected(false);\n }\n setConfiguredPeriod(Integer.parseInt(statusResponse[5]));\n setCurrentCounter(Integer.parseInt(statusResponse[6]));\n setTimestamp(System.currentTimeMillis());\n }\n statusResponse = m.sendCommandWithAnswer(getDeviceId(), \"sa\").split(\"\\\\|\");\n if (!statusResponse[0].equals(\"1\")) {\n throw new RemoteHomeManagerException(\"This response belongs to different device type: \"+statusResponse[0], RemoteHomeManagerException.WRONG_DEVICE_TYPE);\n }\n if (statusResponse[1].equals(\"a\")) {\n setAlarmStatus(Integer.parseInt(statusResponse[2])); \n if (statusResponse[3].equals(\"1\")) {\n setAlarmSensorCurrentState(true);\n } else {\n setAlarmSensorCurrentState(false);\n } \n setAlarmEnterTimeout(Integer.parseInt(statusResponse[4]));\n setAlarmLeaveTimeout(Integer.parseInt(statusResponse[5]));\n setTimestamp(System.currentTimeMillis());\n\n }\n }", "public void getDevicesForApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request,\n io.grpc.stub.StreamObserver<org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceList> responseObserver);", "void setRoutes(List<RouteType> routes);", "public String getDeviceId() {\n return this.DeviceId;\n }", "@PostMapping(value = \"/detector\")\n\tpublic void setDeviceValue(@RequestBody DeviceValue deviceValue, HttpServletRequest request, HttpServletResponse response) {\n\t\tvar deviceRequest = serviceCore.createDeviceRequest(deviceValue);\n\t\tserviceCore.setDeviceValue(deviceRequest, request, response);\n\t}", "public void Main( String[] Arguments) throws UnsupportedCommOperationException, PortInUseException, IOException\n\t{\n\t\tString Device = \"/dev/cu.usbserial-A1048A6Y\";\n\t\tint BaudRate = 9600;\n\n\t\tif( Arguments.length > 0)\n\t\t{\n\t\t\tDevice = Arguments[ 0];\n\t\t}\n\n\t\tSystem.out.println( \"Available ports: \" + Ports.ports());\n\n\t\tSerialPort UsePort = Ports.openPort( Device);\n\n\t\tUsePort.setFlowControlMode( SerialPort.FLOWCONTROL_NONE);\n\t\tUsePort.setSerialPortParams( BaudRate, SerialPort.DATABITS_8, SerialPort.STOPBITS_1,\n\t\t\t\t\t\t\t\t\t\t\t SerialPort.PARITY_NONE);\n\n\t\twhile( true)\n\t\t{\n\t\t\tUsePort.getOutputStream().write( \"Switches On Off On Off On Off On\\n\".getBytes());\n\t\t\tUsePort.getOutputStream().write( \"Switches Off On Off On Off On Off\\n\".getBytes());\n\t\t}\n\n//\t\tUsePort.close();\n }", "public abstract List<NADevice> getDevices(Context context);", "@Test\n public void updateDeviceTest() throws ApiException {\n String deviceId = null;\n Device device = null;\n // DeviceEnvelope response = api.updateDevice(deviceId, device);\n\n // TODO: test validations\n }", "@Override\r\n\tpublic Device devGetDevice(boolean allProperties) throws RTException {\n\t\treturn null;\r\n\t}", "private void getDevices(){\n progress.setVisibility(View.VISIBLE);\n\n emptyMessage.setVisibility(View.GONE);\n getListView().setVisibility(View.GONE);\n\n // request device list from the server\n Model.PerformRESTCallTask gd = Model.asynchRequest(this,\n getString(R.string.rest_url) + \"?\"\n + \"authentification_key=\" + MainActivity.authentificationKey + \"&operation=\" + \"getdevices\",\n //Model.GET,\n \"getDevices\");\n tasks.put(\"getDevices\", gd);\n }", "public short getDeviceType() {\r\n return deviceType;\r\n }", "private void listDevices(Context context) {\n\t DeviceList list = new DeviceList();\n\t int result = LibUsb.getDeviceList(context, list);\n\t if(result < 0) throw new LibUsbException(\"Unable to get device list\", result);\n\n\t try\n\t {\n\t for(Device device: list)\n\t {\n\t DeviceDescriptor descriptor = new DeviceDescriptor();\n\t result = LibUsb.getDeviceDescriptor(device, descriptor);\n\t if (result != LibUsb.SUCCESS) throw new LibUsbException(\"Unable to read device descriptor\", result);\n\t System.out.println(\"vendorId=\" + descriptor.idVendor() + \", productId=\" + descriptor.idProduct());\n\t }\n\t }\n\t finally\n\t {\n\t // Ensure the allocated device list is freed\n\t LibUsb.freeDeviceList(list, true);\n\t }\n\t}", "public String updateDevice(ProductModel ndm) {\n\t\tdeviceData.editDevice(ndm);\r\n\t\treturn null;\r\n\t}", "@Override\n public void updateModemColumn(String modemTypeName, String DeviceSerial) {\n \n }", "private void setDeviceModel() {\n addToMobileContext(Parameters.DEVICE_MODEL, android.os.Build.MODEL);\n }", "public List<Device> getListDevice() {\n\n\t\tList<Device> listDevice = new ArrayList<Device>();\n\n\t\tDevice device = new Device();\n\n\t\tdevice.setName(\"DeviceNorgren\");\n\t\tdevice.setManufacturer(\"Norgren\");\n\t\tdevice.setVersion(\"5.7.3\");\n\t\tdevice.setDescriptionSemantic(\"http://www.loa-cnr.it/ontologies/DUL.owl#isDescribedBy\");\n\n\t\tSensor sensorTemperature = new Sensor();\n\t\tsensorTemperature.setName(\"SensorSiemens\");\n\t\tsensorTemperature.setManufacturer(\"Siemens\");\n\t\tsensorTemperature.setVersion(\"1.2.2\");\n\t\tsensorTemperature.setDescriptionSemantic(\"http://www.loa-cnr.it/ontologies/DUL.owl#isDescribedBy\");\n\t\tsensorTemperature.setMonitor(\"Temperature\");\n\n\t\tSensor sensorPressure = new Sensor();\n\t\tsensorPressure.setName(\"SensorOmron\");\n\t\tsensorPressure.setManufacturer(\"Omron\");\n\t\tsensorPressure.setVersion(\"0.5.2\");\n\t\tsensorPressure.setDescriptionSemantic(\"http://www.loa-cnr.it/ontologies/DUL.owl#isDescribedBy\");\n\t\tsensorPressure.setMonitor(\"Pressure\");\n\n\t\tdevice.getListSensor().add(sensorTemperature);\n\t\tdevice.getListSensor().add(sensorPressure);\n\n\t\tActuator actuadorKey = new Actuator();\n\n\t\tactuadorKey.setName(\"SensorAutonics\");\n\t\tactuadorKey.setManufacturer(\"Autonics\");\n\t\tactuadorKey.setVersion(\"3.1\");\n\t\tactuadorKey.setDescriptionSemantic(\"http://www.loa-cnr.it/ontologies/DUL.owl#isDescribedBy\");\n\t\tactuadorKey.setAction(\"On-Off\");\n\n\t\tdevice.getListActuator().add(actuadorKey);\n\n\t\tlistDevice.add(device);\n\n\t\treturn listDevice;\n\n\t}", "public void setDeviceName(String deviceName) {\n\t\tthis.deviceName = deviceName;\n\t}", "public String getDeviceName() {\n return this.deviceName;\n }", "public BlueMeshServiceBuilder deviceId( String a_deviceId ){\n deviceId = a_deviceId;\n return this;\n }", "public static void exeededDevices(Boolean is)throws Exception{\n getSessionData().setMaxDevices(is);\n }", "public String getDevice_id() {\r\n\t\treturn device_id;\r\n\t}", "@Override\n public void init() {\n telemetry.addData(\"Status\", \"Initializing\"); //display on the drivers phone that its working\n\n FLM = hardwareMap.get(DcMotor.class, \"FLM\"); //Go into the config and get the device named \"FLM\" and assign it to FLM\n FRM = hardwareMap.get(DcMotor.class, \"FRM\"); //device name doesn't have to be the same as the variable name\n BLM = hardwareMap.get(DcMotor.class, \"BLM\"); //DcMotor.class because that is what the object is\n BRM = hardwareMap.get(DcMotor.class, \"BRM\");\n\n BigSuck = hardwareMap.get(DcMotor.class, \"BigSUCK\");\n SmallSuck = hardwareMap.get(DcMotor.class, \"SmallSUCK\");\n SmallSuck.setDirection(DcMotor.Direction.REVERSE);\n \n UpLift = hardwareMap.get(DcMotor.class, \"LIFT\");\n UpLift.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n UpLift.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n //Make it so we don't have to add flip the sign of the power we are setting to half the motors\n //FRM.setDirection(DcMotor.Direction.REVERSE); //Run the right side of the robot backwards\n FLM.setDirection(DcMotor.Direction.REVERSE);\n BRM.setDirection(DcMotor.Direction.REVERSE); //the right motors are facing differently than the left handed ones\n\n FLM.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n FRM.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n BLM.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n BRM.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n DragArm = hardwareMap.servo.get(\"drag_arm\");\n DragArm.setDirection(Servo.Direction.REVERSE);\n DragArm.setPosition(DragArmRestPosition);\n\n LiftGrab = hardwareMap.servo.get(\"GRAB\");\n LiftGrab.setPosition(LiftGrabRestPosition);\n\n LiftSwivel = hardwareMap.servo.get(\"SWIVEL\");\n LiftSwivel.setPosition(LiftSwivelRestPosition);\n\n Push = hardwareMap.get(Servo.class, \"PUSH\");\n Push.setDirection(Servo.Direction.FORWARD);\n Push.setPosition(PushRestPosition);\n\n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update();\n }", "void onRestoreDevices() {\n synchronized (mConnectedDevices) {\n for (int i = 0; i < mConnectedDevices.size(); i++) {\n DeviceInfo di = mConnectedDevices.valueAt(i);\n AudioSystem.setDeviceConnectionState(\n di.mDeviceType,\n AudioSystem.DEVICE_STATE_AVAILABLE,\n di.mDeviceAddress,\n di.mDeviceName,\n di.mDeviceCodecFormat);\n }\n }\n }", "default public int getCodeToDevicePort()\t\t\t\t{ return 2225; }", "private void setDeviceListAdapter(ArrayList<DeviceEntity> deviceListResponse) {\n\n mControlDeviceRecyclerView.setLayoutManager(new LinearLayoutManager(this));\n mControlDeviceRecyclerView.setNestedScrollingEnabled(false);\n mControlDeviceRecyclerView.setAdapter(new DeviceAdapter(deviceListResponse, this));\n\n }", "Collection<? extends ReflexDevice> getDevices() {\n return processors.values();\n }", "private void syncDisconnectedDeviceId(String deviceId) {\n Map<Object, Object> devicesMap = new HashMap<>((Map<?, ?>) getEcologyDataSync().getData\n (\"devices\"));\n devicesMap.remove(deviceId);\n getEcologyDataSync().setData(\"devices\", devicesMap);\n }", "Builder forDevice(DeviceId deviceId);", "public void updateDevice() throws RemoteHomeConnectionException, RemoteHomeManagerException {\n String statusResponse[] = null;\n try {\n statusResponse = m.sendCommandWithAnswer(parseDeviceIdForMultipleDevice(getDeviceId()), \"l\"+getSubDeviceNumber()+\"s\").split(\"\\\\|\");\n setPowerLost(false);\n if (!statusResponse[0].equals(\"1s\")) {\n throw new RemoteHomeManagerException(\"This response belongs to different device type.\", RemoteHomeManagerException.WRONG_DEVICE_TYPE);\n }\n } catch (RemoteHomeConnectionException e) {\n if (isPowerLost()) {\n return;\n } else {\n throw e;\n }\n }\n if (!statusResponse[1].equals(getSubDeviceNumber())) {\n throw new RemoteHomeManagerException(\"This response belongs to different sub device type.\", RemoteHomeManagerException.WRONG_DEVICE_TYPE);\n }\n parseReceivedData(statusResponse);\n }", "public DeviceUserAuthorization[] getDeviceList() {\n return deviceList;\n }" ]
[ "0.55844355", "0.51087207", "0.50793415", "0.5071979", "0.5062204", "0.5051631", "0.5019705", "0.5016368", "0.49883068", "0.49597815", "0.49597815", "0.49489596", "0.49291307", "0.49129677", "0.48978654", "0.4886157", "0.4880688", "0.4866417", "0.4841906", "0.47700015", "0.4765524", "0.4758489", "0.47546574", "0.47407788", "0.47355604", "0.46948606", "0.46679568", "0.46552807", "0.46472156", "0.4622807", "0.46154326", "0.46140584", "0.46137223", "0.4579333", "0.45721757", "0.45646873", "0.45600072", "0.45546383", "0.45357352", "0.45253083", "0.45102575", "0.4496105", "0.4486192", "0.4480043", "0.44729593", "0.44631717", "0.44491524", "0.4443845", "0.4420321", "0.44155484", "0.44109946", "0.44095767", "0.44047317", "0.4397713", "0.43818367", "0.43726906", "0.4369054", "0.4365964", "0.43647155", "0.4360778", "0.43600088", "0.43558344", "0.43558258", "0.43486255", "0.43444595", "0.4344124", "0.43439898", "0.4337594", "0.43225217", "0.43210208", "0.4318558", "0.43077764", "0.4303629", "0.4300851", "0.42940763", "0.42868403", "0.42831782", "0.4282507", "0.428114", "0.42793626", "0.42793196", "0.427783", "0.42768693", "0.42746508", "0.42698285", "0.4268327", "0.42468864", "0.42443886", "0.4243051", "0.42407024", "0.42356324", "0.42328522", "0.4224681", "0.42244932", "0.42182788", "0.42137444", "0.4202586", "0.420169", "0.42004395", "0.41975114" ]
0.5819421
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_DY_ROUTE.E1
public Float getE1() { return e1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRoutingNo();", "public java.lang.String getRoute () {\n\t\treturn route;\n\t}", "public String getAdr1() {\n return adr1;\n }", "public String getAdr2() {\n return adr2;\n }", "public com.vmware.converter.HostIpRouteEntry getRoute() {\r\n return route;\r\n }", "String getRouteID();", "public String getRouteid() {\r\n return routeid;\r\n }", "public String getRoutePoint() {\n\t\t\treturn routePoint;\n\t\t}", "public String getRouteType() {\n return routeType;\n }", "io.envoyproxy.envoy.type.metadata.v3.MetadataKind.Route getRoute();", "public java.lang.String getRoadwayRef()\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(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getAddr1() {\r\n return addr1;\r\n }", "public String getRoute() {\n return route;\n }", "public Long getRouteid() {\n return routeid;\n }", "public java.lang.String getArrivalPortCode() {\n\t\treturn _tempNoTiceShipMessage.getArrivalPortCode();\n\t}", "public java.lang.Integer getPRTNO2() {\n return PRTNO2;\n }", "public String getDownRoadId() {\n return downRoadId;\n }", "public String getAddr2() {\r\n return addr2;\r\n }", "public int getRouteId() {\n return routeId;\n }", "String getRouteDest();", "public java.lang.String getUDP1() {\n return UDP1;\n }", "public static String parseSingleRoute(ILogicEntityRoute r) {\n\n StringBuilder routeSB = new StringBuilder();\n\n // Add the ResourceDepotReport\n Optional<IResourceDepot> startDepotOpt = r.getCurrentVisitingResource().getResourceDepot();\n\n if (startDepotOpt.isPresent()) {\n routeSB.append(\n \"\\n------- ResourceDepot Report (\" + r.getCurrentVisitingResource().getId() + \")-------\");\n IResourceDepot depot = startDepotOpt.get();\n routeSB.append(\"\\nSTART:\");\n routeSB.append(\"\\n---\");\n routeSB.append(\"\\n\" + PNDReportExtractionExample.parseResourceDepot(depot));\n\n Optional<IResourceDepot> stopDepotOpt = r.getJoinedDetailController().getCurResourceDepot();\n if (stopDepotOpt.isPresent()) {\n IResourceDepot stopDepot = stopDepotOpt.get();\n\n routeSB.append(\"\\n\\nTERMINATION:\");\n routeSB.append(\"\\n---\");\n routeSB.append(\"\\n\" + PNDReportExtractionExample.parseResourceDepot(stopDepot));\n }\n routeSB.append(\"\\n------- ResourceDepot Report END -------\");\n }\n\n // Now add the NodeDepotReports\n List<ILogicRouteElementDetailItem> details =\n r.getRouteElementsDetailController().getAsSortedListByArrival();\n\n details.stream().map(PNDReportExtractionExample::parseNodeDetail).forEach(routeSB::append);\n\n return routeSB.toString();\n }", "public String getDestination(){\r\n\t\treturn route.getDestination();\r\n\t}", "private String printRoute() {\n String r = String.valueOf(this.route.get(0));\n int index = 1;\n while (index < this.route.size()) {\n r = r + \" - \" + this.route.get(index);\n index++;\n }\n return r;\n }", "public java.lang.String getDirection1() {\r\n return direction1;\r\n }", "com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg getReturnFlightLeg();", "public String getAddressLine1() {\n return (String)getAttributeInternal(ADDRESSLINE1);\n }", "public String getRouteDescription() {\n\t\tFlightRoutePersistenceProvider routePersistor = FlightRoutePersistenceProvider.getInstance();\n\t\tByteArrayInputStream inStream;\n\t\tIFlightRoute froute;\n\n\t\tIFlightRouteplanningRemoteService service;\n\t\tBaseServiceProvider provider = MyUI.getProvider();\n\n\t\tString description = \"didnt get description\";\n\t\t// Sends the information to dronology to be saved.\n\t\ttry {\n\t\t\tservice = (IFlightRouteplanningRemoteService) provider.getRemoteManager()\n\t\t\t\t\t.getService(IFlightRouteplanningRemoteService.class);\n\n\t\t\tString id = this.getMainLayout().getControls().getInfoPanel().getHighlightedFRInfoBox().getId();\n\n\t\t\tbyte[] information = service.requestFromServer(id);\n\t\t\tinStream = new ByteArrayInputStream(information);\n\t\t\tfroute = routePersistor.loadItem(inStream);\n\n\t\t\tdescription = froute.getDescription();\n\t\t\tif (description == null) {\n\t\t\t\tdescription = \"No Description\";\n\t\t\t}\n\t\t} catch (DronologyServiceException | RemoteException e1) {\n\t\t\tMyUI.setConnected(false);\n\t\t\te1.printStackTrace();\n\t\t} catch (PersistenceException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\treturn description;\n\t}", "public String getRightRoadId() {\n return rightRoadId;\n }", "public double getRoadwayPI()\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }", "public AKeyCallPoint getRoutePoint() {\n\t\t\treturn routePoint;\n\t\t}", "public java.lang.String getUDP2() {\n return UDP2;\n }", "public Direction getLeaveDirection() {\n if (!carrier.hasTile() || plan.cdst == plan.tdst) return null;\n TransportableAIObject t = getTransportable();\n PathNode path = t.getDeliveryPath(getCarrier(), plan.tdst);\n return (path == null || path.next == null) ? null\n : path.next.getDirection();\n }", "private RoutingEdge extractRoutingEdgeFromRS(ResultSet resultSet) {\n\n\t\tRoutingEdge routingEdge = new RoutingEdge();\n\n\t\ttry {\n\n\t\t\troutingEdge.setId(resultSet.getInt(\"id\"));\n\t\t\t\n\t\t\troutingEdge.setFloorID(resultSet.getInt(\"FloorId\"));\n\t\t\troutingEdge.setSource(resultSet.getInt(\"Source\"));\n\t\t\troutingEdge.setTarget(resultSet.getInt(\"Target\"));\n\t\t\troutingEdge.setWeight(resultSet.getInt(\"Weight\"));\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn routingEdge;\n\t}", "public String getRsv1() {\r\n return rsv1;\r\n }", "java.lang.String getArrivalAirport();", "java.lang.String getDepartureAirport();", "public Route getRoute();", "public String getRouteDest() {\n Object ref = routeDest_;\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 routeDest_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getRoutingStatus() {\n return routingStatus;\n }", "private myPoint getNextRoute(){\n\t\ttry {\n\t\t\treturn this.Route.take();\n\t\t} catch (InterruptedException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public String getAddressLine2() {\n return (String)getAttributeInternal(ADDRESSLINE2);\n }", "public java.lang.String getReceiverAddress2() {\r\n return receiverAddress2;\r\n }", "public java.lang.String getReceiverAddressEnvelopeLevel1() {\n return receiverAddressEnvelopeLevel1;\n }", "public java.lang.String getRrNo () {\n\t\treturn rrNo;\n\t}", "public com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg getReturnFlightLeg() {\n return returnFlightLeg_ == null ? com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg.getDefaultInstance() : returnFlightLeg_;\n }", "public String getRouteDest() {\n Object ref = routeDest_;\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 routeDest_ = s;\n }\n return s;\n }\n }", "public String getRouteName() {\n return routeName;\n }", "public String getDPReihe(){\n\t\treturn this.m_sDPReihe;\n\t}", "org.landxml.schema.landXML11.RoadwayDocument.Roadway getRoadway();", "public String getRsv1() {\n\t\treturn rsv1;\n\t}", "public java.lang.String getReceiverAddressEnvelopeLevel1() {\n return receiverAddressEnvelopeLevel1;\n }", "public java.lang.Integer getPRTNO() {\n return PRTNO;\n }", "public int getRoad(int n1, int n2) {\n return roads[n1][n2];\n }", "public final flipsParser.waypoint_return waypoint() throws RecognitionException {\n flipsParser.waypoint_return retval = new flipsParser.waypoint_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token Identifier515=null;\n flipsParser.geoCoordinate_return geoCoordinate514 = null;\n\n\n CommonTree Identifier515_tree=null;\n RewriteRuleTokenStream stream_Identifier=new RewriteRuleTokenStream(adaptor,\"token Identifier\");\n\n try {\n // flips.g:741:2: ( geoCoordinate | Identifier -> ^( WAYPOINT Identifier ) )\n int alt198=2;\n int LA198_0 = input.LA(1);\n\n if ( ((LA198_0>=FloatingPointLiteral && LA198_0<=HexLiteral)||LA198_0==128||(LA198_0>=340 && LA198_0<=341)) ) {\n alt198=1;\n }\n else if ( (LA198_0==Identifier) ) {\n alt198=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 198, 0, input);\n\n throw nvae;\n }\n switch (alt198) {\n case 1 :\n // flips.g:741:4: geoCoordinate\n {\n root_0 = (CommonTree)adaptor.nil();\n\n pushFollow(FOLLOW_geoCoordinate_in_waypoint4318);\n geoCoordinate514=geoCoordinate();\n\n state._fsp--;\n\n adaptor.addChild(root_0, geoCoordinate514.getTree());\n\n }\n break;\n case 2 :\n // flips.g:742:4: Identifier\n {\n Identifier515=(Token)match(input,Identifier,FOLLOW_Identifier_in_waypoint4323); \n stream_Identifier.add(Identifier515);\n\n\n\n // AST REWRITE\n // elements: Identifier\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 743:2: -> ^( WAYPOINT Identifier )\n {\n // flips.g:743:5: ^( WAYPOINT Identifier )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(WAYPOINT, \"WAYPOINT\"), root_1);\n\n adaptor.addChild(root_1, stream_Identifier.nextNode());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "java.lang.String getDepartureAirportCode();", "public int getRRPP(){\n return RRPP; \n }", "public String getAdresseRue() {\r\n\t\treturn adresseRue;\r\n\t}", "public String getReceived(){\n String rec;\n if (received == Received.ON_TIME){\n rec = \"On Time\";\n }else if(received == Received.LATE){\n rec = \"Late\";\n }else if(received == Received.NO){\n rec = \"NO\";\n }else{\n rec = \"N/A\";\n }\n return rec;\n }", "public org.landxml.schema.landXML11.RoadwayNameRef xgetRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.RoadwayNameRef target = null;\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().find_attribute_user(ROADWAYREF$16);\r\n return target;\r\n }\r\n }", "public int getRTRNCD() {\n return rtrncd;\n }", "public java.lang.String getReceiverAddressEnvelopeLevel2() {\n return receiverAddressEnvelopeLevel2;\n }", "public String LDR(int R,int IX,int I,int Address) {\n\t\t\tint EA=Get_EA(I,IX,Address);\r\n\t\t\tString Information;\r\n\t\t\tInformation=\"\";\r\n\t\t\tif(R==0){\r\n\t\t\t\tthis.R0.Insert(this.Memory.Output(EA), 0);\r\n\t\t\t\tInformation=Information+\"R0<-c(\"+EA+\").\\n\";\r\n\t\t\t\treturn Information;\r\n\t\t\t}\r\n\t\t\telse if(R==1) {\r\n\t\t\t\tthis.R1.Insert(this.Memory.Output(EA), 0);\r\n\t\t\t\tInformation=Information+\"R1<-c(\"+EA+\").\\n\";\r\n\t\t\t\treturn Information;\r\n\t\t\t}\r\n\t\t\telse if(R==2) {\r\n\t\t\t\tthis.R2.Insert(this.Memory.Output(EA), 0);\r\n\t\t\t\tInformation=Information+\"R2<-c(\"+EA+\").\\n\";\r\n\t\t\t\treturn Information;\r\n\t\t\t}\r\n\t\t\telse if(R==3) {\r\n\t\t\t\tthis.R3.Insert(this.Memory.Output(EA), 0);\r\n\t\t\t\tInformation=Information+\"R3<-c(\"+EA+\").\\n\";\r\n\t\t\t\treturn Information;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tInformation=\"Instruction LDR fail .\\n\";\r\n\t\t\t\treturn Information;//fault\r\n\t\t\t}\r\n\t\t}", "@Override\r\n public Route getRoute() {\r\n return this.route;\r\n }", "public java.lang.String getDirection2() {\r\n return direction2;\r\n }", "char getBusLine()\n\t{\n\t\treturn this.BUSline;\n\t\t\n\t}", "public void setRoutingNo (String RoutingNo);", "public java.lang.String getZTEL_NUMBER2()\n {\n \n return __ZTEL_NUMBER2;\n }", "public String getDepartureAirport();", "public BigDecimal getTRS_NO() {\r\n return TRS_NO;\r\n }", "public BigDecimal getTRS_NO() {\r\n return TRS_NO;\r\n }", "public ResourcesOrPoints getReceive1() {\n\t\treturn receive1;\n\t}", "public String getRsv2() {\r\n return rsv2;\r\n }", "public String getArrivalAirport();", "public String getOndaP2() {\r\n return ondaP2;\r\n }", "public String getAddressline1() {\n return addressline1;\n }", "public java.lang.String getReceiverAddressEnvelopeLevel2() {\n return receiverAddressEnvelopeLevel2;\n }", "public Integer getRoutingId() {\n return routingId;\n }", "java.lang.String getArrivalAirportCode();", "public ROLocatorVOImpl getROLocatorVO1() {\n return (ROLocatorVOImpl) findViewObject(\"ROLocatorVO1\");\n }", "@Override\n\tpublic void onGetIndoorRouteResult(IndoorRouteResult arg0) {\n\n\t}", "@JsonIgnore public String getArrivalGate() {\n return (String) getValue(\"arrivalGate\");\n }", "@JsonIgnore public String getDepartureGate() {\n return (String) getValue(\"departureGate\");\n }", "public String getAddressLine1() {\n return addressLine1;\n }", "public int Simulate()\r\n {\r\n return town.planRoute();\r\n }", "public Ipv4AddressAndPrefixLength getNextHopIpv4GwAddr1Value()\n throws JNCException {\n return (Ipv4AddressAndPrefixLength)getValue(\"next-hop-ipv4-gw-addr1\");\n }", "public java.lang.String getReceiverAddress4() {\r\n return receiverAddress4;\r\n }", "public String getAddressline2() {\n return addressline2;\n }", "public String getRoadType() {\n switch(orientation){\n case \"0\": return this.tileType.northernRoadType + this.tileType.easternRoadType + this.tileType.southernRoadType + this.tileType.westernRoadType;\n case \"1\": return this.tileType.westernRoadType + this.tileType.northernRoadType + this.tileType.easternRoadType + this.tileType.southernRoadType;\n case \"2\": return this.tileType.southernRoadType + this.tileType.westernRoadType + this.tileType.northernRoadType + this.tileType.easternRoadType;\n case \"3\": return this.tileType.easternRoadType + this.tileType.southernRoadType + this.tileType.westernRoadType + this.tileType.northernRoadType;\n case \"4\": return this.tileType.northernRoadType + this.tileType.westernRoadType + this.tileType.southernRoadType + this.tileType.easternRoadType;\n case \"5\": return this.tileType.easternRoadType + this.tileType.northernRoadType + this.tileType.westernRoadType + this.tileType.southernRoadType;\n case \"6\": return this.tileType.southernRoadType + this.tileType.easternRoadType + this.tileType.northernRoadType + this.tileType.westernRoadType;\n case \"7\": return this.tileType.westernRoadType + this.tileType.southernRoadType + this.tileType.easternRoadType + this.tileType.northernRoadType;\n default: return null;\n }\n }", "public String getAddressLine2() {\n return addressLine2;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getDirectChargeReturn(){\n return localDirectChargeReturn;\n }", "public void setRouteType(String x)\n {\n this.routeType = x;\n }", "public com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg getReturnFlightLeg() {\n if (returnFlightLegBuilder_ == null) {\n return returnFlightLeg_ == null ? com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg.getDefaultInstance() : returnFlightLeg_;\n } else {\n return returnFlightLegBuilder_.getMessage();\n }\n }", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.RouteInfo getRoute() {\n if (routeBuilder_ == null) {\n if (stepInfoCase_ == 7) {\n return (com.google.cloud.networkmanagement.v1beta1.RouteInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.RouteInfo.getDefaultInstance();\n } else {\n if (stepInfoCase_ == 7) {\n return routeBuilder_.getMessage();\n }\n return com.google.cloud.networkmanagement.v1beta1.RouteInfo.getDefaultInstance();\n }\n }", "public void setAdr1(String adr1) {\n this.adr1 = adr1;\n }", "public Direction right() {\r\n\t\tif (this.direction == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tswitch (this.direction) {\r\n\t\tcase NORTH:\r\n\t\t\tthis.direction = Direction.EAST;\r\n\t\t\tbreak;\r\n\t\tcase WEST:\r\n\t\t\tthis.direction = Direction.NORTH;\r\n\t\t\tbreak;\r\n\t\tcase SOUTH:\r\n\t\t\tthis.direction = Direction.WEST;\r\n\t\t\tbreak;\r\n\t\tcase EAST:\r\n\t\t\tthis.direction = Direction.SOUTH;\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn this.direction;\r\n\t}", "public java.math.BigInteger getFrequencyOfRoute() {\r\n return frequencyOfRoute;\r\n }", "public com.dator.jqtest.dao.model.tables.pojos.Route fetchOneByName(String value) {\n return fetchOne(Route.ROUTE.NAME, value);\n }", "public Direction right() {\r\n\t\tint newDir = this.index + 1;\r\n\r\n\t\tnewDir = (this.index + 1 == 5) ? 1 : newDir;\r\n\t\treturn getEnum(newDir);\r\n\t}", "public Integer getRentWay() {\n return rentWay;\n }", "public String getRsv2() {\n\t\treturn rsv2;\n\t}" ]
[ "0.5871489", "0.5639647", "0.5543593", "0.54798216", "0.5456257", "0.5365619", "0.52869946", "0.5219397", "0.5189297", "0.51848197", "0.5183246", "0.5142865", "0.5132844", "0.5127264", "0.510231", "0.51001734", "0.5088217", "0.5048868", "0.5045852", "0.5037709", "0.50131905", "0.49510148", "0.49476588", "0.49309412", "0.49301064", "0.4919723", "0.4919538", "0.49000758", "0.48952007", "0.48803604", "0.48419032", "0.48243326", "0.48219562", "0.48188585", "0.48110005", "0.48054525", "0.48021653", "0.479601", "0.4794396", "0.47918683", "0.47895876", "0.47892267", "0.4783903", "0.47596347", "0.4751593", "0.47503892", "0.47486156", "0.4747807", "0.47461283", "0.47306833", "0.47249693", "0.4709327", "0.4706165", "0.46937287", "0.46851975", "0.4682892", "0.46698558", "0.4667352", "0.46595612", "0.4658102", "0.46458268", "0.46435404", "0.4643282", "0.46419784", "0.46379197", "0.46289897", "0.46286026", "0.46227288", "0.46221864", "0.46190834", "0.46190834", "0.46154773", "0.46124431", "0.4611339", "0.46097565", "0.46096784", "0.4594433", "0.45926502", "0.45905432", "0.4589178", "0.45876616", "0.4587362", "0.45818", "0.4580031", "0.4578835", "0.45781153", "0.45781118", "0.45768416", "0.45706794", "0.45700964", "0.4568561", "0.45659426", "0.45647717", "0.4563542", "0.4554096", "0.45496202", "0.4546448", "0.45464465", "0.4543767", "0.45431262", "0.45368508" ]
0.0
-1
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_ROUTE.E1
public void setE1(Float e1) { this.e1 = e1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAdr1(String adr1) {\n this.adr1 = adr1;\n }", "void setRoute(String routeID);", "public void setRoutingNo (String RoutingNo);", "public void setAdr2(String adr2) {\n this.adr2 = adr2;\n }", "public void setAddr1(String addr1) {\r\n this.addr1 = addr1;\r\n }", "public void setRouteType(String x)\n {\n this.routeType = x;\n }", "public void setRoute(com.vmware.converter.HostIpRouteEntry route) {\r\n this.route = route;\r\n }", "void setRoadway(org.landxml.schema.landXML11.RoadwayDocument.Roadway roadway);", "public void setRsv1(String rsv1) {\r\n this.rsv1 = rsv1;\r\n }", "public void setRoutePoint(String routePoint) {\n\t\t\tthis.routePoint = routePoint;\n\t\t}", "public void setRsv1(String rsv1) {\n\t\tthis.rsv1 = rsv1 == null ? null : rsv1.trim();\n\t}", "public final void setD1windr(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String d1windr)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.D1windr.toString(), d1windr);\n\t}", "public void setDirectionOfTravel(typekey.DirectionOfTravelPEL value);", "public void setRoutePoint(AKeyCallPoint routePoint) {\n\t\t\tthis.routePoint = routePoint;\n\t\t}", "public void setRoadwayPI(double roadwayPI)\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.setDoubleValue(roadwayPI);\r\n }\r\n }", "public abstract void setAddressLine2(String sValue);", "public abstract void setAddressLine1(String sValue);", "public void setAddr2(String addr2) {\r\n this.addr2 = addr2;\r\n }", "public void setPRTNO2(java.lang.Integer PRTNO2) {\n this.PRTNO2 = PRTNO2;\n }", "public void setRoute (java.lang.String route) {\n\t\tthis.route = route;\n\t}", "public void setNextRoad(CarAcceptor r) {\n\t\tthis.firstRoad = r;\n\t}", "public final void setAddress(java.lang.String r1, android.net.Uri r2, int r3) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.telecom.ConnectionServiceAdapterServant.2.setAddress(java.lang.String, android.net.Uri, int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.2.setAddress(java.lang.String, android.net.Uri, int):void\");\n }", "public void setAlternateRoute(short trainId, TrainRoute r) {\n\t\ttrainRoutes.put(trainId, r);\n\t}", "public void setTunnelRail(Rail r, String d) {\n this.tunnelRail = r;\n this.dir = d;\n }", "private void setS1Rsp(PToP.S1Rsp value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 22;\n }", "@Override\n\tpublic void onReCalculateRouteForTrafficJam() {\n\n\t}", "public String getAdr1() {\n return adr1;\n }", "public void setRoute(List route) \n {\n this.route = route;\n }", "public void setPRTNO(java.lang.Integer PRTNO) {\n this.PRTNO = PRTNO;\n }", "public void xsetRoadwayPI(org.landxml.schema.landXML11.Station roadwayPI)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.Station)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.set(roadwayPI);\r\n }\r\n }", "public void setRoute(Route route) {\n this.route = route;\n }", "public void setRoadwayRef(java.lang.String roadwayRef)\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(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.setStringValue(roadwayRef);\r\n }\r\n }", "@Override\r\n\tpublic void onReCalculateRouteForTrafficJam() {\n\r\n\t}", "public void setRazaP1(Raza razaP1) {\n this.razaP1 = razaP1;\n }", "public void setDialing(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.2.setDialing(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.2.setDialing(java.lang.String):void\");\n }", "public void setRTRNCD(int value) {\n this.rtrncd = value;\n }", "public void setRinging(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.2.setRinging(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.2.setRinging(java.lang.String):void\");\n }", "public void setAddressLine1(String value) {\n setAttributeInternal(ADDRESSLINE1, value);\n }", "public void setDirection1(java.lang.String direction1) {\r\n this.direction1 = direction1;\r\n }", "public void setRoute(String route) {\n this.route = route == null ? null : route.trim();\n }", "static void set_sl_rr(FM_OPL OPL, int slot, int v) {\n OPL_CH CH = OPL.P_CH[slot / 2];\n OPL_SLOT SLOT = CH.SLOT[slot & 1];\n int sl = v >> 4;\n int rr = v & 0x0f;\n\n SLOT.SL = SL_TABLE[sl];\n if (SLOT.evm == ENV_MOD_DR) {\n SLOT.eve = SLOT.SL;\n }\n SLOT.RR = new IntArray(OPL.DR_TABLE, rr << 2);\n SLOT.evsr = SLOT.RR.read(SLOT.ksr);\n if (SLOT.evm == ENV_MOD_RR) {\n SLOT.evs = SLOT.evsr;\n }\n }", "public void setUDP1(java.lang.String UDP1) {\n this.UDP1 = UDP1;\n }", "public void setRouteId(int routeId) {\n this.routeId = routeId;\n }", "int updRouteById(Route record) throws RouteNotFoundException;", "public synchronized void setArrivalExit(ArrivalTerminalExitStub ate) {\n this.ate = ate;\n }", "public final void setD1windr(java.lang.String d1windr)\n\t{\n\t\tsetD1windr(getContext(), d1windr);\n\t}", "private void setS2BRelay(PToP.S2BRelay value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 24;\n }", "public void setAddressLine1(String addressLine1) {\n this.addressLine1 = addressLine1;\n }", "public void setAddressline1(String addressline1) {\n this.addressline1 = addressline1;\n }", "private void setS2Rsp(PToP.S2ARsp value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 23;\n }", "public String getAdr2() {\n return adr2;\n }", "protected void setRoutes(WriteFileResponse response) {\n routes[ response.getSequence() ] = response.getRoutingPath();\n if ( ableToWrite && totalReceived.incrementAndGet() == routes.length )\n {\n unlock();\n }\n }", "private boolean updateRoute(Route rte, Route nuRte) {\n\t\tboolean result = false;\n\t\tLinkInfo nuLink = lnkVec.get(nuRte.outLink);\n\t\tLinkInfo oldLink = lnkVec.get(rte.outLink);\n\t\tif (nuLink.helloState == 0){\n\t\t\tresult = false;\n\t\t}\n\t\t// if the route is invalid, update and return true\n\t\telse if (rte.valid == false){\n\t\t\treplaceExceptPrefix(rte,nuRte);\n\t\t\tresult = true;\n\t\t}\n\t\t//if both routes have same path and link, then timestamp \n\t\t//and cost of rte are updated\n\t\telse if (rte.outLink == nuRte.outLink && \n\t\t\t\trte.path == nuRte.path){\n\t\t\trte.timestamp = nuRte.timestamp;\n\t\t\trte.cost = nuRte.cost;\n\t\t\tresult = true;\n\t\t}\n\t\t//if nuRte has a cost that is less than .9 times the\n\t\t//cost of rte, then all fields in rte except the prefix fields\n\t\t//are replaced with the corresponding fields in nuRte\n\t\telse if (nuRte.cost < (.9 * rte.cost)){\n\t\t\treplaceExceptPrefix (rte, nuRte);\n\t\t\tresult = true;\n\t\t}\n\t\t//else, if nuRte is at least 20 seconds newer than rte\n\t\t//(as indicated by their timestamps), then all fields of\n\t\t//rte except the prefix fields are replaced\n\t\telse if (nuRte.timestamp - rte.timestamp >= 20){\n\t\t\treplaceExceptPrefix (rte, nuRte);\n\t\t\tresult = true;\n\t\t}\n\t\t//else, if the link field for rte refers to a link that is\n\t\t//currently disabled, replace all fields in rte but the\n\t\t//prefix fields\n\t\telse if (oldLink.helloState == 0){\n\t\t\treplaceExceptPrefix(rte, nuRte);\n\t\t\tresult = true;\n\t\t}\n\n\t\treturn result;\t\n\t}", "public void setRsv2(String rsv2) {\r\n this.rsv2 = rsv2;\r\n }", "public void setMethod(String method)\r\n {\r\n routing_method=method;\r\n }", "public void setNextHopIpv4GwAddr1Value(String nextHopIpv4GwAddr1Value)\n throws JNCException {\n setNextHopIpv4GwAddr1Value(new Ipv4AddressAndPrefixLength(nextHopIpv4GwAddr1Value));\n }", "public String getRouteid() {\r\n return routeid;\r\n }", "public String getAddr1() {\r\n return addr1;\r\n }", "public native void setRTOConstant (int RTOconstant);", "public void setReverseAgency(boolean value) {\r\n this.reverseAgency = value;\r\n }", "private void resetRoute() {\n\t\troute = new Route[] {new Route(distanceMatrix)};\n\t\ttotalCost = 0;\n\t}", "@PathParam(\"rule\")\n public void setRule(@NotNull(message = \"rule name can't be NULL\")\n final String rle) {\n this.rule = rle;\n }", "public void setNextHopIpv4GwAddr1Value(Ipv4AddressAndPrefixLength nextHopIpv4GwAddr1Value)\n throws JNCException {\n setLeafValue(Routing.NAMESPACE,\n \"next-hop-ipv4-gw-addr1\",\n nextHopIpv4GwAddr1Value,\n childrenNames());\n }", "public void setAdress(Adress adr) {\r\n // Bouml preserved body begin 00040F82\r\n\t this.adress = adr;\r\n // Bouml preserved body end 00040F82\r\n }", "public void setSide1(String side1) {\n \tthis.side1 = side1;\n }", "@Override\n void setJourney(String line, TransitCard transitCard) {\n SubwayLine subwayLine = SubwaySystem.getSubwayLineByName(line);\n int startIndex = subwayLine.getStationList().indexOf(this.startLocation);\n int endIndex = subwayLine.getStationList().indexOf(this.endLocation);\n if (startIndex < endIndex) {\n while (!subwayLine\n .getStationList()\n .get(startIndex)\n .getNodeName()\n .equals(this.endLocation.getNodeName())) {\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n transitCard.increaseStationReached();\n startIndex++;\n }\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n } else {\n while (!subwayLine\n .getStationList()\n .get(startIndex)\n .getNodeName()\n .equals(this.endLocation.getNodeName())) {\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n transitCard.increaseStationReached();\n startIndex--;\n }\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n }\n double d =\n Distance.getDistance(\n startLocation.getNodeLocation().get(0),\n startLocation.getNodeLocation().get(1),\n endLocation.getNodeLocation().get(0),\n endLocation.getNodeLocation().get(1));\n Administrator.getListOfDays()\n .get(Administrator.getListOfDays().size() - 1)\n .incrementDistance(d);\n Administrator.getListOfDays()\n .get(Administrator.getListOfDays().size() - 1)\n .incrementPassengers();\n }", "public void setRrNo (java.lang.String rrNo) {\n\t\tthis.rrNo = rrNo;\n\t}", "public void setRouteid(String routeid) {\r\n this.routeid = routeid;\r\n }", "public void setSide1(double side1) {\r\n\t\tthis.side1 = side1;\r\n\t}", "public void setRsv2(String rsv2) {\n\t\tthis.rsv2 = rsv2 == null ? null : rsv2.trim();\n\t}", "public void setDownRoadId(String downRoadId) {\n this.downRoadId = downRoadId == null ? null : downRoadId.trim();\n }", "public void xsetRoadwayRef(org.landxml.schema.landXML11.RoadwayNameRef roadwayRef)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.RoadwayNameRef target = null;\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().find_attribute_user(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.set(roadwayRef);\r\n }\r\n }", "public void setRouteid(Long routeid) {\n this.routeid = routeid;\n }", "public void setReRouting() {\r\n\t\tthis.reRouting = true;\r\n\t}", "public void setRentWay(Integer rentWay) {\n this.rentWay = rentWay;\n }", "public void setDY(int DY){\n \tdy = DY;\n }", "@Override\n\t\tpublic void onGetDrivingRouteResult(MKDrivingRouteResult arg0, int arg1) {\n\t\t\t\n\t\t}", "public JSONObject update() throws Exception{\n String urlString;\r\n if(this.targetDirection == -1){\r\n urlString = \"https://ptx.transportdata.tw/MOTC/v2/Bus/EstimatedTimeOfArrival/City/\" + route.getCityName() + \"?$filter=\" + URLEncoder.encode(\"StopUID eq '\" + targetStopUID + \"' \", \"UTF-8\") + \"&$format=JSON\";\r\n }else{\r\n urlString = \"https://ptx.transportdata.tw/MOTC/v2/Bus/EstimatedTimeOfArrival/City/\" + route.getCityName() + \"?$filter=\" + URLEncoder.encode(\"StopUID eq '\" + targetStopUID + \"' and Direction eq '\"+ targetDirection +\"' \", \"UTF-8\") + \"&$format=JSON\";\r\n }\r\n urlString = urlString.replaceAll(\"\\\\+\", \"%20\");\r\n PTXPlatform ptxp = new PTXPlatform(urlString);\r\n \r\n try{\r\n this.stopData = new JSONArray(ptxp.getData()).getJSONObject(0);\r\n }catch(Exception e){\r\n System.out.println(\"Maybe Direction are not using in this route, please set direction to -1.\");\r\n }\r\n return stopFilter(stopData);\r\n }", "public void setDay(int r1) throws java.lang.IllegalArgumentException {\n /*\n // Can't load method instructions: Load method exception: null in method: gov.nist.javax.sip.header.SIPDate.setDay(int):void, dex: in method: gov.nist.javax.sip.header.SIPDate.setDay(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.setDay(int):void\");\n }", "void setRoute(Shape route);", "@POST\n\t@Path(\"/routingComplete\")\n\tpublic Response getB2bAfterRoutingComplete(EFmFmEmployeeTravelRequestPO travelRequestPO) throws ParseException{\t\t\n\t\tIUserMasterBO userMasterBO = (IUserMasterBO) ContextLoader.getContext().getBean(\"IUserMasterBO\");\n\t\tMap<String, Object> responce = new HashMap<String, Object>();\n\t\t\n\t\t \t\t\n\t\t log.info(\"Logged In User IP Adress\"+token.getClientIpAddr(httpRequest));\n\t\t try{\n\t\t \tif(!(userMasterBO.checkTokenValidOrNot(httpRequest.getHeader(\"authenticationToken\"),travelRequestPO.getUserId()))){\n\n\t\t \t\tresponce.put(\"status\", \"invalidRequest\");\n\t\t \t\treturn Response.ok(responce, MediaType.APPLICATION_JSON).build();\n\t\t \t}}catch(Exception e){\n\t\t \t\tlog.info(\"authentication error\"+e);\n\t\t\t\tresponce.put(\"status\", \"invalidRequest\");\n\t\t\t\treturn Response.ok(responce, MediaType.APPLICATION_JSON).build();\n\n\t\t \t}\n\t\t \n\t\t List<EFmFmUserMasterPO> userDetailToken = userMasterBO.getUserDetailFromUserId(travelRequestPO.getUserId());\n\t\t if (!(userDetailToken.isEmpty())) {\n\t\t String jwtToken = \"\";\n\t\t try {\n\t\t JwtTokenGenerator token = new JwtTokenGenerator();\n\t\t jwtToken = token.generateToken();\n\t\t userDetailToken.get(0).setAuthorizationToken(jwtToken);\n\t\t userDetailToken.get(0).setTokenGenerationTime(new Date());\n\t\t userMasterBO.update(userDetailToken.get(0));\n\t\t } catch (Exception e) {\n\t\t log.info(\"error\" + e);\n\t\t }\n\t\t }\n\n ICabRequestBO iCabRequestBO = (ICabRequestBO) ContextLoader.getContext().getBean(\"ICabRequestBO\");\n IAssignRouteBO iAssignRouteBO = (IAssignRouteBO) ContextLoader.getContext().getBean(\"IAssignRouteBO\");\n log.info(\"serviceStart -UserId :\" + travelRequestPO.getUserId());\n DateFormat shiftTimeFormat = new SimpleDateFormat(\"HH:mm:ss\");\n SimpleDateFormat dateformate = new SimpleDateFormat(\"dd-MM-yyyy\");\n DateFormat shiftTimeFormate = new SimpleDateFormat(\"HH:mm\");\n String shiftTime = travelRequestPO.getTime();\n Date shift = shiftTimeFormate.parse(shiftTime);\n java.sql.Time dateShiftTime = new java.sql.Time(shift.getTime());\n Date excutionDate = dateformate.parse(travelRequestPO.getExecutionDate());\n\t\tCalculateDistance calculateDistance = new CalculateDistance();\n List<EFmFmAssignRoutePO> activeRoutes = iAssignRouteBO.getAllRoutesForPrintForParticularShift(excutionDate, excutionDate,\n travelRequestPO.getTripType(), shiftTimeFormat.format(dateShiftTime), travelRequestPO.getCombinedFacility());\n log.info(\"Shift Size\"+activeRoutes.size());\n if (!(activeRoutes.isEmpty())) { \t\n \tfor(EFmFmAssignRoutePO assignRoute:activeRoutes){\n \t\ttry{\n\t\t\t\tList<EFmFmEmployeeTripDetailPO> employeeTripDetailPO = null;\n \t\t\t\tStringBuffer empWayPoints = new StringBuffer();\n \t\t\t\tif (assignRoute.getTripType().equalsIgnoreCase(\"PICKUP\")) {\n\t\t\t\t\temployeeTripDetailPO = iCabRequestBO.getParticularTripAllEmployees(assignRoute.getAssignRouteId());\n\t\t\t\t} else {\n\t\t\t\t\temployeeTripDetailPO = iCabRequestBO.getDropTripAllSortedEmployees(assignRoute.getAssignRouteId());\n\t\t\t\t}\n\n \t\t\t\tif (!(employeeTripDetailPO.isEmpty())) {\n\t\t\t\t\tfor (EFmFmEmployeeTripDetailPO employeeTripDetail : employeeTripDetailPO) {\n\t\t\t \tempWayPoints.append(employeeTripDetail.geteFmFmEmployeeTravelRequest().getEfmFmUserMaster().getLatitudeLongitude()+\"|\"); \n\t\t\t\t\t}\n \t\t\t\t} \n \t\t\t\tString plannedETAAndDistance =\"\";\n \t\t\t\tif (assignRoute.getTripType().equalsIgnoreCase(\"PICKUP\")) {\n \t\t\t\t\tplannedETAAndDistance= calculateDistance.getPlannedDistanceaAndETAForRoute(\n \t \t\t\t\tassignRoute.geteFmFmClientBranchPO().getLatitudeLongitude(),\n \t \t\t\t\tassignRoute.geteFmFmClientBranchPO().getLatitudeLongitude(), empWayPoints.toString().replaceAll(\"\\\\s+\",\"\"));\t\t \t\t\n \t\t\t\t}\n\n \t\t\t\telse{\n \t\t\t\t\tplannedETAAndDistance= calculateDistance.getPlannedDistanceaAndETAForRoute(\n \t \t\t\t\tassignRoute.geteFmFmClientBranchPO().getLatitudeLongitude(),\n \t \t\t\t\temployeeTripDetailPO.get(employeeTripDetailPO.size()-1).geteFmFmEmployeeTravelRequest().getEfmFmUserMaster().getLatitudeLongitude(), empWayPoints.toString().replaceAll(\"\\\\s+\",\"\"));\t\t \t\t\t\n \t\t\t\t}\n \t\t\t\t\n \t\tlog.info(\"plannedETAAndDistance\"+plannedETAAndDistance+\" \"+empWayPoints.toString().replaceAll(\"\\\\s+\",\"\")+\"assignRoute Id\"+assignRoute.getAssignRouteId());\n try{\n \t\tassignRoute.setPlannedTravelledDistance(Math.round(Double.parseDouble(plannedETAAndDistance.split(\"-\")[0])+(assignRoute.geteFmFmClientBranchPO().getAddingGeoFenceDistanceIntrip())));\n assignRoute.setPlannedDistance(Math.round(Double.parseDouble(plannedETAAndDistance.split(\"-\")[0])+(assignRoute.geteFmFmClientBranchPO().getAddingGeoFenceDistanceIntrip())));\n assignRoute.setPlannedTime(Math.round(Long.parseLong(plannedETAAndDistance.split(\"-\")[1])));\t\t\n }catch(Exception e){\n \tlog.info(\"plannedETAAndDistance\"+plannedETAAndDistance+\" \"+empWayPoints.toString().replaceAll(\"\\\\s+\",\"\")+\"assignRoute Id\"+assignRoute.getAssignRouteId());\n log.info(\"Error\"+e);\n \n }\n assignRoute.setPlannedReadFlg(\"N\");\t\n assignRoute.setRoutingCompletionStatus(\"completed\");\n assignRoute.setScheduleReadFlg(\"Y\"); \n \t\t\t\tif (assignRoute.getTripType().equalsIgnoreCase(\"DROP\")) {\n \t\t\t\t\ttry{\n \t\t\t\t\t\tif(assignRoute.getIsBackTwoBack().equalsIgnoreCase(\"N\")){\n \t\t\t\t\t\t//Back to back check any pickup is there with this route end drop location. \n \t\t\t\t List<EFmFmAssignRoutePO> b2bPickupDetails=iAssignRouteBO.getBackToBackTripDetailFromTripTypeANdShiftTime(\"PICKUP\", assignRoute.getShiftTime(),assignRoute.getCombinedFacility());\t\t\t\t\t\n \t\t\t\t log.info(\"b2bDetails\"+b2bPickupDetails.size());\n \t\t\t \tif(!(b2bPickupDetails.isEmpty())){\n \t\t\t\t\t\tfor (EFmFmAssignRoutePO assignPickupRoute : b2bPickupDetails) {\n \t \t\t\t\t List<EFmFmAssignRoutePO> b2bPickupDetailsAlreadyDone=iAssignRouteBO.getBackToBackTripDetailFromb2bId(assignPickupRoute.getAssignRouteId(), \"DROP\",assignRoute.getCombinedFacility());\t\t\t\t\n \t\t\t\t\t\t\tif(b2bPickupDetailsAlreadyDone.isEmpty()){\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t//get first pickup employee\n \t\t\t\t \tList<EFmFmEmployeeTripDetailPO> employeeTripData = iCabRequestBO.getParticularTripAllEmployees(assignPickupRoute.getAssignRouteId()); \t\t\t\t \t\n \t\t\t\t \tif(!(employeeTripData.isEmpty())){\n \t\t\t\t\t \tString lastDropLattilongi=employeeTripDetailPO.get(employeeTripDetailPO.size()-1).geteFmFmEmployeeTravelRequest().getEfmFmUserMaster().getLatitudeLongitude();\t\t\t\t\t \t \t\n \t\t\t\t\t \tString firstPickupLattilongi=employeeTripData.get(0).geteFmFmEmployeeTravelRequest().getEfmFmUserMaster().getLatitudeLongitude(); \t\n \t\t\t\t\t \tlog.info(\"lastDropLattilongi\"+lastDropLattilongi);\n \t\t\t\t\t \tlog.info(\"firstPickupLattilongi\"+firstPickupLattilongi);\n \t\t\t\t\t \tCalculateDistance empDistance=new CalculateDistance();\n \t\t\t\t\t \tif(assignRoute.geteFmFmClientBranchPO().getSelectedB2bType().equalsIgnoreCase(\"distance\") && (empDistance.employeeDistanceCalculation(lastDropLattilongi, firstPickupLattilongi) < (assignRoute.geteFmFmClientBranchPO().getB2bByTravelDistanceInKM()))){\t\t \t\t\n \t\t\t\t\t \t\t//Current Drop B2B route Assign route Date\n \t\t\t\t\t \t\tString currentDropRouteAssignDate=dateFormat.format(assignRoute.getTripAssignDate());\n \t\t\t\t\t \t\tDate currentDropRouteDate=dateFormat.parse(currentDropRouteAssignDate);\n \t\t\t\t\t \t\tlong totalCurrentDropAssignDateAndShiftTime=getDisableTime(assignRoute.getShiftTime().getHours(), assignRoute.getShiftTime().getMinutes(), currentDropRouteDate);\t \t\t\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\t//Drop Route Complete Time\n \t\t\t\t\t \t\tlong totalRouteTime=totalCurrentDropAssignDateAndShiftTime+TimeUnit.SECONDS.toMillis(assignRoute.getPlannedTime());\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\t//Total time for Drop back2back trip\n \t\t\t\t\t \t\tlong totalB2bTimeForCuurentDrop=totalRouteTime+(TimeUnit.HOURS.toMillis(assignRoute.geteFmFmClientBranchPO().getDriverWaitingTimeAtLastLocation().getHours())+TimeUnit.MINUTES.toMillis(assignRoute.geteFmFmClientBranchPO().getDriverWaitingTimeAtLastLocation().getMinutes())+TimeUnit.SECONDS.toMillis(assignRoute.geteFmFmClientBranchPO().getDriverWaitingTimeAtLastLocation().getSeconds()));\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\t//Pickup B2B route Assign route Date\n \t\t\t\t\t \t\tString pickupRouteCurrentAssignDate=dateFormat.format(assignPickupRoute.getTripAssignDate());\n \t\t\t\t\t \t\tDate pickupRouteCurrentAssign=dateFormat.parse(pickupRouteCurrentAssignDate);\n \t\t\t\t\t \t\t\t\n \t\t\t\t\t \t\t//Pickup backtoback Route PickUpTime \n \t\t\t\t\t \t\tlong totalAssignDateAndPickUpTime=getDisableTime(employeeTripData.get(0).geteFmFmEmployeeTravelRequest().getPickUpTime().getHours(),employeeTripData.get(0).geteFmFmEmployeeTravelRequest().getPickUpTime().getMinutes(), pickupRouteCurrentAssign);\t \t\t\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\tif((totalRouteTime < totalAssignDateAndPickUpTime) && totalB2bTimeForCuurentDrop > totalAssignDateAndPickUpTime){\t\t \t\t\t\n \t\t\t\t\t \t\t\tassignRoute.setIsBackTwoBack(\"Y\");\n \t\t\t\t\t \t\t\tassignRoute.setBackTwoBackRouteId(assignPickupRoute.getAssignRouteId());\n \t\t\t\t\t \t\t\tiAssignRouteBO.update(assignRoute);\t\t\t\t\t\t\t\n \t\t\t\t\t \t\t\tbreak;\n \t\t\t\t\t \t\t}\n \t\t\t\t\t \t\telse{\n \t\t\t\t\t iAssignRouteBO.update(assignRoute);\n\n \t\t\t\t\t \t\t}\n \t\t\t\t\t \t}\n \t\t\t\t\t \telse if(assignRoute.geteFmFmClientBranchPO().getSelectedB2bType().equalsIgnoreCase(\"time\") && (TimeUnit.SECONDS.toMillis(empDistance.employeeETACalculation(lastDropLattilongi, firstPickupLattilongi)) < (TimeUnit.HOURS.toMillis(assignRoute.geteFmFmClientBranchPO().getB2bByTravelTime().getHours())+TimeUnit.MINUTES.toMillis(assignRoute.geteFmFmClientBranchPO().getB2bByTravelTime().getMinutes())+TimeUnit.SECONDS.toMillis(assignRoute.geteFmFmClientBranchPO().getB2bByTravelTime().getSeconds())))){\t\t \t\t\n \t\t\t\t\t \t\t//Current Drop B2B route Assign route Date\n \t\t\t\t\t \t\tString currentDropRouteAssignDate=dateFormat.format(assignRoute.getTripAssignDate());\n \t\t\t\t\t \t\tDate currentDropRouteDate=dateFormat.parse(currentDropRouteAssignDate);\n \t\t\t\t\t \t\tlong totalCurrentDropAssignDateAndShiftTime=getDisableTime(assignRoute.getShiftTime().getHours(),assignRoute.getShiftTime().getMinutes(), currentDropRouteDate);\t \t\t\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\t//Drop Route Complete Time\n \t\t\t\t\t \t\tlong totalRouteTime=totalCurrentDropAssignDateAndShiftTime+TimeUnit.SECONDS.toMillis(assignRoute.getPlannedTime());\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\t//Total time for Drop back2back trip\n \t\t\t\t\t \t\tlong totalB2bTimeForCuurentDrop=totalRouteTime+(TimeUnit.HOURS.toMillis(assignRoute.geteFmFmClientBranchPO().getDriverWaitingTimeAtLastLocation().getHours())+TimeUnit.MINUTES.toMillis(assignRoute.geteFmFmClientBranchPO().getDriverWaitingTimeAtLastLocation().getMinutes())+TimeUnit.SECONDS.toMillis(assignRoute.geteFmFmClientBranchPO().getDriverWaitingTimeAtLastLocation().getSeconds()));\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\t//Pickup B2B route Assign route Date\n \t\t\t\t\t \t\tString pickupRouteCurrentAssignDate=dateFormat.format(assignPickupRoute.getTripAssignDate());\n \t\t\t\t\t \t\tDate pickupRouteCurrentAssign=dateFormat.parse(pickupRouteCurrentAssignDate);\n \t\t\t\t\t \t\t\t\n \t\t\t\t\t \t\t//Pickup backtoback Route PickUpTime \n \t\t\t\t\t \t\tlong totalAssignDateAndPickUpTime=getDisableTime(employeeTripData.get(0).geteFmFmEmployeeTravelRequest().getPickUpTime().getHours(),employeeTripData.get(0).geteFmFmEmployeeTravelRequest().getPickUpTime().getMinutes(), pickupRouteCurrentAssign);\t \t\t\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\tlog.info(\"totalRouteTime\"+new Date(totalRouteTime));\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\tlog.info(\"totalAssignDateAndPickUpTime\"+new Date(totalAssignDateAndPickUpTime));\n \t\t\t\t\t \t\tlog.info(\"totalB2bTimeForCuurentDrop\"+new Date(totalB2bTimeForCuurentDrop));\n\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\tif((totalRouteTime < totalAssignDateAndPickUpTime) && totalB2bTimeForCuurentDrop > totalAssignDateAndPickUpTime){\t\t \t\t\t\n \t\t\t\t\t \t\t\tassignRoute.setIsBackTwoBack(\"Y\");\n \t\t\t\t\t \t\t\tassignRoute.setBackTwoBackRouteId(assignPickupRoute.getAssignRouteId());\n \t\t\t\t\t \t\t\tiAssignRouteBO.update(assignRoute);\t\t\t\t\t\t\t\n \t\t\t\t\t \t\t\tbreak;\n \t\t\t\t\t \t\t}\t\n \t\t\t\t\t \t\telse{\n \t\t\t\t\t iAssignRouteBO.update(assignRoute);\n\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 iAssignRouteBO.update(assignRoute);\n \t\t\t\t\t \t}\n \t\t\t\t \t}\n \t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\n\t\t\t iAssignRouteBO.update(assignRoute);\n \t\t\t\t\t\t}\n \t\t\t \t\n \t\t\t \telse{\n \t\t\t iAssignRouteBO.update(assignRoute);\n \t\t\t \t}\n \t\t\t \t}\n \t\t\t\t\t\t}catch(Exception e){\n \t\t\t\t\t\t\tlog.info(\"Error\"+e);\n \t\t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse{\n \t iAssignRouteBO.update(assignRoute);\n \t\t\t\t}\n \t }catch(Exception e){\n \t\t log.info(\"error - :\" + e);\n assignRoute.setPlannedReadFlg(\"N\");\t\n assignRoute.setRoutingCompletionStatus(\"completed\");\n assignRoute.setScheduleReadFlg(\"Y\"); \n\t iAssignRouteBO.update(assignRoute);\n } \n \n \t} \n \n }\n\t\t log.info(\"serviceEnd -UserId :\" + travelRequestPO.getUserId());\n\t\treturn Response.ok(\"Success\", MediaType.APPLICATION_JSON).build();\n\t\t\n\t}", "public Builder setRouteDest(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n routeDest_ = value;\n onChanged();\n return this;\n }", "public void radarLostContact() {\n if (status == 1 || status == 18) {\n status = 0;\n flightCode = \"\";\n passengerList = null;\n faultDescription = \"\";\n itinerary = null;\n gateNumber = -1;\n }//END IF\n }", "public void setAddressLine2(String value) {\n setAttributeInternal(ADDRESSLINE2, value);\n }", "public void setAddress2(String address2);", "public String getRoutingNo();", "void setRoadTerrain(org.landxml.schema.landXML11.RoadTerrainType.Enum roadTerrain);", "public void setEndPoint(Point2D p)throws NoninvertibleTransformException{\n if(p == null){ //if given null it removes the point and path.\n end = null;\n fastestPath = null;\n removePointer(\"endPointIcon\");\n closeDirectionList();\n routePanel.getEndAddressField().setForeground(Color.gray);\n routePanel.getEndAddressField().setText(\"Enter end address\");\n return;\n }\n Insets x = getInsets(); //Recalibrate position for precision\n p.setLocation(p.getX(), p.getY() - x.top + x.bottom);\n end = transformPoint(p);\n\n addPointer(new MapPointer(end, \"endPointIcon\".intern()));\n if(end != null && start != null)\n findFastestRoute(start, end);\n repaint();\n }", "public void setdetailsRoute(String[] details) {\r\n\t\tfor (int i = 0; i < details.length; i++) {\r\n\t\t\tdetailsRoute[i] = details[i];\r\n\t\t}\r\n\t\tsetFlightNumber(detailsRoute[0]);\r\n\t\tsetDepartureTime(Integer.parseInt(detailsRoute[1]));\r\n\t\tsetArrivalTime(Integer.parseInt(detailsRoute[3]));\r\n\t\tcalculateFlightDuration();\r\n\t\tsetPrice(Double.parseDouble(detailsRoute[4]));\r\n\r\n\t}", "static void set_ar_dr(FM_OPL OPL, int slot, int v) {\n OPL_CH CH = OPL.P_CH[slot / 2];\n OPL_SLOT SLOT = CH.SLOT[slot & 1];\n int ar = v >> 4;\n int dr = v & 0x0f;\n\n SLOT.AR = ar != 0 ? new IntArray(OPL.AR_TABLE, ar << 2) : new IntArray(RATE_0);\n SLOT.evsa = SLOT.AR.read(SLOT.ksr);\n if (SLOT.evm == ENV_MOD_AR) {\n SLOT.evs = SLOT.evsa;\n }\n\n SLOT.DR = dr != 0 ? new IntArray(OPL.DR_TABLE, dr << 2) : new IntArray(RATE_0);\n SLOT.evsd = SLOT.DR.read(SLOT.ksr);\n if (SLOT.evm == ENV_MOD_DR) {\n SLOT.evs = SLOT.evsd;\n }\n\n }", "public void setR(String R) {\n\t\tthis.R = R;\r\n\t\tfirePropertyChange(ConstantResourceFactory.P_R,null,R);\r\n\t}", "void setRoutes(List<RouteType> routes);", "void xsetRoadTerrain(org.landxml.schema.landXML11.RoadTerrainType roadTerrain);", "Route(String source,String destination,String departingDate,String returningDate)\r\n {\r\n this.Source=source;\r\n this.destination=destination;\r\n this.departingDate=departingDate;\r\n this.returningDate=returningDate;\r\n }", "public final void setD1neerslag(com.mendix.systemwideinterfaces.core.IContext context, java.math.BigDecimal d1neerslag)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.D1neerslag.toString(), d1neerslag);\n\t}", "public void setDPReihe(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPReihe)));\n\t\tthis.m_sDPReihe=value;\n\t}", "public void setAddressLine2(String addressLine2) {\n this.addressLine2 = addressLine2;\n }", "public void switchDirection(String body) {\r\n pcs.firePropertyChange(Constants.PACMAN, null, new SwitchDirectionCmd(body));\r\n }", "public void resetRecordRoute() {\r\n\t\tthis.recordRoute = false;\r\n\t}", "public IRoadSensor setRoadStatus(ERoadStatus s);", "private void setS1Port(int value) {\n \n s1Port_ = value;\n }" ]
[ "0.581332", "0.57594144", "0.56927085", "0.5392346", "0.5260624", "0.52413166", "0.5201904", "0.5022088", "0.5016204", "0.4966355", "0.49558228", "0.49433962", "0.4941574", "0.49201784", "0.48580235", "0.4827901", "0.48217157", "0.48103684", "0.48095757", "0.47929838", "0.47682798", "0.4762229", "0.47524405", "0.47480455", "0.47455242", "0.47358337", "0.47289526", "0.46949676", "0.46933225", "0.46922034", "0.4670234", "0.4667854", "0.4656995", "0.46422794", "0.46255487", "0.46205342", "0.4612116", "0.46042573", "0.46035203", "0.45995176", "0.45979384", "0.45927042", "0.45897552", "0.457932", "0.45670027", "0.45639038", "0.45629057", "0.45591003", "0.45391625", "0.4538257", "0.45178518", "0.45031565", "0.4496467", "0.44880405", "0.44794104", "0.4475662", "0.4473122", "0.4456244", "0.44559312", "0.44558775", "0.44529438", "0.44524327", "0.44500434", "0.4433882", "0.44313973", "0.44297704", "0.44283175", "0.441841", "0.44165412", "0.43958977", "0.43939704", "0.43930465", "0.43907976", "0.43902302", "0.4389055", "0.43862188", "0.43755195", "0.4370365", "0.43691686", "0.43690732", "0.43671307", "0.4363355", "0.43614495", "0.4348649", "0.43484983", "0.43470466", "0.43451422", "0.43413454", "0.43388888", "0.43344778", "0.43322492", "0.43317273", "0.4330516", "0.43299097", "0.43294287", "0.43250173", "0.43243158", "0.43157795", "0.43137115", "0.43128294", "0.43080512" ]
0.0
-1
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_DY_ROUTE.OTRAFFIC
public Float getOtraffic() { return otraffic; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getTraffic() {\n return traffic;\n }", "public Long getTraffic() {\n\t\treturn traffic;\n\t}", "public Number getTramo() {\n return (Number) getAttributeInternal(TRAMO);\n }", "public Integer getTraffic() {\n return traffic;\n }", "public Integer getTraffic() {\n return traffic;\n }", "org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl getTrafficControl();", "public jkt.hrms.masters.business.EtrTravelreq getTrv () {\n\t\treturn trv;\n\t}", "public String getTrafficType() {\n return this.trafficType;\n }", "@JsonIgnore public String getArrivalTerminal() {\n return (String) getValue(\"arrivalTerminal\");\n }", "@Override\r\n\tpublic double rideFare() {\r\n\t\tdouble trafficRate = 1;\r\n\t\tswitch(this.getTrafficKind()) {\r\n\t\t case Low:\r\n\t\t\ttrafficRate = 1;break;\r\n\t\t\tcase Medium:\r\n\t\t\t\ttrafficRate = 1.1;break;\r\n\t\t\tcase High:\r\n\t\t\t\ttrafficRate = 1.5;break;\r\n\t\t}\r\n\t\tdouble basicRate = 0;\r\n\t\tif (this.getLength() <5) { \r\n\t\t\tbasicRate = 3.3;\r\n\t\t} else if (10 > this.getLength()){\r\n\t\t\tbasicRate = 4.2;\r\n\t\t} else if (this.getLength() <20){\r\n\t\t\tbasicRate = 1.91;\r\n\t\t} else {\r\n\t\t\tbasicRate = 1.5;\r\n\t\t}\r\n\t\t\r\n\t\treturn basicRate * trafficRate * this.getLength();\r\n\t}", "public Float getTraffic() {\r\n return traffic;\r\n }", "public Travel getTravel() {\n return travel;\n }", "public long lastReadThroughput()\r\n/* 189: */ {\r\n/* 190:370 */ return this.lastReadThroughput;\r\n/* 191: */ }", "public Float getItraffic() {\r\n return itraffic;\r\n }", "public Integer getTrip() {\n return trip;\n }", "public int getTotalRouteCost() {\n return totalRouteCost;\n }", "public int getRt() {\n return rt_;\n }", "public String getTrainfo() {\n return trainfo;\n }", "public int getRt() {\n return rt_;\n }", "public Integer getTravelTime() {\n\t\treturn travelTime;\n\t}", "public double getTravelTime() {\n return travelTime;\n }", "public double getTrafficOverLinkBetween(int otherASN) {\n return this.trafficOverNeighbors.get(otherASN);\n }", "public double getTrafficFromEachSuperAS() {\n return this.trafficFromSuperAS;\n }", "public BigDecimal getTRS_NO() {\r\n return TRS_NO;\r\n }", "public BigDecimal getTRS_NO() {\r\n return TRS_NO;\r\n }", "public int getRoadLength() {\n \t\treturn roadLength;\n \t}", "@JsonIgnore public String getDepartureTerminal() {\n return (String) getValue(\"departureTerminal\");\n }", "private double getStopOverTime(Flight flight) {\n return flight.getDepartDateTime().timeDiff(arrivalDateTime);\n }", "public int getTravelTime() {\r\n return travelTime;\r\n }", "public double getOriPrice() {\n return oriPrice;\n }", "static public LnTrafficController findLNController() {\n\t\tList<LocoNetSystemConnectionMemo> list = InstanceManager.getList(LocoNetSystemConnectionMemo.class);\n\t\tif (list.isEmpty()) {\n\t\t\tlog.fatal(\"No Loconet connection was detected\");\n\t\t\treturn null;\n\t\t}\n\t\tif (list.size() == 1) {\n\t\t\treturn list.get(0).getLnTrafficController();\n\t\t}\n\t\tfor (Object memo : list) {\n\t\t\tif (\"L\".equals(((SystemConnectionMemo) memo).getSystemPrefix())) {\n\t\t\t\treturn ((LocoNetSystemConnectionMemo) memo).getLnTrafficController();\n\t\t\t}\n\t\t}\n\t\treturn list.get(0).getLnTrafficController();\n\t}", "public double getTWAP() {\n return twap;\n }", "public double getLoa() {\n\t\treturn _tempNoTiceShipMessage.getLoa();\n\t}", "public String getTRS_TYPE() {\r\n return TRS_TYPE;\r\n }", "public Double getPercentTraffic() {\n return this.percentTraffic;\n }", "public long getLatency() {\n return latency;\n }", "public Long getThroughput() {\n return this.throughput;\n }", "public Long getLineCarriageprice() {\n return lineCarriageprice;\n }", "public double getRoadwayPI()\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }", "public Integer getRentWay() {\n return rentWay;\n }", "public String getTotal_latency() {\n return total_latency;\n }", "int getRt();", "public int get_flight() {\r\n return this.flight_nr;\r\n }", "public int getInflightingRPCCounter() {\n return inflightingRPCCounter.get();\n }", "public int getTriage (){\r\n return triage;\r\n }", "public double getTargetArea() {\n NetworkTableEntry ta = m_table.getEntry(\"ta\");\n double a = ta.getDouble(0.0);\n return a;\n }", "@Override\n\tpublic int[] getVehicleLoad() {\n\t\t\n\t\tint temp[] ={constantPO.getVanLoad(),constantPO.getRailwayLoad(),constantPO.getAirplaneLoad()};\n\t\t\n\t\treturn temp;\n\t}", "public BigDecimal getTotalLatency() {\n return totalLatency;\n }", "public double getRightAcceleration() {\n return rightEnc.getAcceleration();\n }", "public Integer getThroughput() {\n return this.throughput;\n }", "public int getTrafficClass()\r\n/* 135: */ {\r\n/* 136: */ try\r\n/* 137: */ {\r\n/* 138:158 */ return this.javaSocket.getTrafficClass();\r\n/* 139: */ }\r\n/* 140: */ catch (SocketException e)\r\n/* 141: */ {\r\n/* 142:160 */ throw new ChannelException(e);\r\n/* 143: */ }\r\n/* 144: */ }", "public double getValueOfTransceiver() {\n\t\treturn valueOfTransceiver;\n\t}", "public Double latency() {\n return this.latency;\n }", "public final float getCurrentCartSpeedCapOnRail() {\n return currentSpeedRail;\n }", "public Float getBhTraffic() {\r\n return bhTraffic;\r\n }", "public int getTotalTravelTime() {\n return totalTravelTime;\n }", "public java.lang.String getRoadwayRef()\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(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public Long getTotal_latency() {\n return total_latency;\n }", "@AutoEscape\n\tpublic String getLydoTraVe();", "public RouteTimetable getRouteTimetable() {\n return routeTimetable;\n }", "public Long getStateTrac() {\n return stateTrac;\n }", "public BigDecimal getAvgLatency() {\n return avgLatency;\n }", "public double getTruckArrivalTime() {\r\n\t\treturn truckArrivalTime.sample();\r\n\t}", "public int getRssi() {\n return rssi;\n }", "public BigDecimal getTRX_NO() {\r\n return TRX_NO;\r\n }", "java.lang.String getTransitAirport();", "public float getAirspeed() { return Airspeed; }", "public java.lang.String getUnitLOA() {\n\t\treturn _tempNoTiceShipMessage.getUnitLOA();\n\t}", "public int getRssi() {\r\n return rssi;\r\n }", "public final int getOverhead()\n throws DissectionException {\n\n // If the overhead is variable then throw an exception, this is to protect\n // against accidentally doing arithmetic with negative overheads which could\n // cause all sorts of problems.\n if (overheadIsVariable()) {\n throw new DissectionException(\n exceptionLocalizer.format(\"overhead-variable-missing\"));\n }\n\n return overhead;\n }", "public T trip() {\n return trip;\n }", "public String getARo() {\r\n return aRo;\r\n }", "public Integer getAccload() {\r\n return accload;\r\n }", "@Override\r\n\tpublic Trajectory getRightTrajectory() {\n\t\treturn right;\r\n\t}", "public float getSubWC() {\r\n return costs.get(Transports.SUBWAY);\r\n }", "public int getCustomInformationTransferRate();", "public RouterType getDeviceType(){\n\t return deviceType;\n }", "public double getTransportPrice() {\n return transportPrice;\n }", "float getCTR() throws SQLException;", "public String getRoutingNo();", "public Integer getTempo() {\n return this.tempoSpeed;\n }", "public int getCost()\n\t{\n\t\treturn m_nTravelCost;\n\t}", "public java.lang.Integer getPRTNO() {\n return PRTNO;\n }", "public int getVehiclePerformance() {\n return itemAttribute;\n }", "public static double getArea() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ta\").getDouble(0);\n }", "public Long get_cacheresponsebytesrate() throws Exception {\n\t\treturn this.cacheresponsebytesrate;\n\t}", "public String getTransmitRate()\r\n\t{\r\n\t\treturn transmitRate;\r\n\t}", "public String getAvg_latency() {\n return avg_latency;\n }", "public String getPayload() {\n\t\t\t\t\t\treturn payLoad;\r\n\t\t\t\t\t}", "public int getRate() {\r\n return Integer.parseInt(RATES[Rate]);\r\n }", "public java.math.BigInteger getFrequencyOfRoute() {\r\n return frequencyOfRoute;\r\n }", "private String getConnectionAirportFromHtmlElement(FlightHtmlRowsModel model) {\n if (model.getRowInfo1().select(EleSelectors.DIRECT.get()).first().html().equals(\"Direct\")) {\n return null;\n }\n if (!model.getLastRow().select(EleSelectors.STOP_INFO.get()).isEmpty()) {\n String stopInfo = model.getLastRow().select(EleSelectors.STOP_INFO.get()).first().html();\n return removeUnnecessaryInfo(EleSelectors.STOP_INFO, stopInfo);\n }\n if (!model.getLastRow().select(EleSelectors.STOP_INFO2.get()).isEmpty()) {\n String stopInfo = model.getLastRow().select(EleSelectors.STOP_INFO2.get()).first().html();\n return removeUnnecessaryInfo(EleSelectors.STOP_INFO2, stopInfo);\n }\n return null;\n }", "public double getTraverseSpeed() {\n return traverseSpeed;\n }", "public String getTransferTraceInfor(String orderInfo){\n\t\tlog.info(\"微商城接口调用开始,传入参数为:\"+orderInfo);\n\t\ttry{\n\t\t\tJSONObject jsonObj= JSONObject.fromObject(orderInfo);\n\t\t\tString code =jsonObj.getString(\"code\");\n\t\t\tString account=jsonObj.getString(\"account\");\n\t\t\tString passwd=jsonObj.getString(\"passwd\");\n\t\t\tString orderCode=jsonObj.getString(\"orderCode\");\n\t\t\tString sapCode=jsonObj.getString(\"sapCode\");\n\t\t\t\n\t\t\tWebServiceResultBean checkUserResultBean = WebServiceUtils.accountCheck(code, account, passwd);\n\t\t\tif(checkUserResultBean!=null&&!checkUserResultBean.isResult()){\n\t\t\t\tlog.info(checkUserResultBean.getString());\n\t\t\t\treturn checkUserResultBean.getString();\n\t\t\t}\n\t\t\t\n\t\t\tif(orderCode==null||orderCode==\"\"){\n\t\t\t\tcheckUserResultBean.setResult(false);\n\t\t\t\tcheckUserResultBean.setMsg(\"orderCode为空\");\n\t\t\t\tlog.info(checkUserResultBean.getString());\n\t\t\t\treturn checkUserResultBean.getString();\n\t\t\t}\n\t\t\t\n\t\t\tMap parameters = new HashMap();\n\t\t\tparameters.put(\"orderCode\",orderCode);\n\t\t\tparameters.put(\"sapTransferCode\",sapCode);\n\t\t\t\n\t\t\tOperationBean orderOperationBean = OperationConfigRepository.getOperationConfig(\"loadTransferTraceTransfer\");\n\t\t\tResultBean ordeResultBean = this.dbOperator(orderOperationBean, parameters, false);\n\t\t\tif(ordeResultBean==null|ordeResultBean.isSuccess()==false){\n\t\t\t\tJSONObject jsonResult = new JSONObject(); \n\t\t\t\tjsonResult.put(\"result\",false);\n\t\t\t\tjsonResult.put(\"message\",\"操作失败:查询订单和调拨单信息出错\");\n\t\t\t\tlog.info(jsonResult.toString());\n\t\t\t\treturn jsonResult.toString();\n\t\t\t}\n\t\t\t\n\t\t\tCustOrderBean orderBean =(CustOrderBean) ordeResultBean.getListFirstResult(\"orderBean\");\n\t\t\tList<TransferBean> transferBeanList = ordeResultBean.getListResult(\"transferBean\");\n\t\t\t\n\t\t\tif(transferBeanList==null||orderBean==null){\n\t\t\t\tJSONObject jsonResult = new JSONObject(); \n\t\t\t\tjsonResult.put(\"result\",false);\n\t\t\t\tjsonResult.put(\"message\",\"操作失败:查询不到订单或者调拨单数据\");\n\t\t\t\tlog.info(jsonResult.toString());\n\t\t\t\treturn jsonResult.toString();\n\t\t\t}\n\t\t\tString transSapCode=\"\";\n\t\t\tString transferId=\"\";\n\t\t\tString shipId=\"\";\n\t\t\tString customerId=orderBean.getCustomerId()+\"\";\n\t\t\t\n\t\t\tfor(TransferBean transferBean:transferBeanList){\n\t\t\t\ttransSapCode+=\"'\"+transferBean.getSapTransCode()+\"',\";\n\t\t\t\ttransferId+=\"'\"+transferBean.getTransId()+\"',\";\n\t\t\t\tshipId+=\"'\"+transferBean.getShipId()+\"',\";\n\t\t\t\tif(customerId==\"\"&&transferBean.getCustomerId()>0){\n\t\t\t\t\tcustomerId=transferBean.getCustomerId()+\"\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(transSapCode!=null&&transSapCode!=\"\"){\n\t\t\t\ttransSapCode=transSapCode.substring(0,transSapCode.length()-1);\n\t\t\t}\n\t\t\tif(transferId!=null&&transferId!=\"\"){\n\t\t\t\ttransferId=transferId.substring(0,transferId.length()-1);\n\t\t\t}\n\t\t\tif(shipId!=null&&shipId!=\"\"){\n\t\t\t\tshipId=shipId.substring(0,shipId.length()-1);\n\t\t\t}\n\t\t\t\n\t\t\tparameters.put(\"refTransId\", transferId);\n\t\t\tparameters.put(\"refShipId\", shipId);\n\t\t\tparameters.put(\"sapTransferCodes\", transSapCode);\t\t\t\n\t\t\tparameters.put(\"refCustomerId\", customerId);\n\t\t\t\n\t\t\tOperationBean operationBean = OperationConfigRepository.getOperationConfig(\"loadTransferTraceInfo\");\n\t\t\tResultBean resultBean = this.dbOperator(operationBean, parameters, false);\n\t\t\tif(resultBean==null|resultBean.isSuccess()==false){\n\t\t\t\tJSONObject jsonResult = new JSONObject(); \n\t\t\t\tjsonResult.put(\"result\",false);\n\t\t\t\tjsonResult.put(\"message\",\"操作失败:查询排单派送信息出错\");\n\t\t\t\tlog.info(jsonResult.toString());\n\t\t\t\treturn jsonResult.toString();\n\t\t\t}\n\t\t\t\n\t\t\tCustomerBean customerBean =(CustomerBean) resultBean.getListFirstResult(\"customerBean\");\n\t\t\t\n\t\t\tList<TransferDetailBean> tranferDetailBeanList= resultBean.getListResult(\"transDetailList\");\n\t\t\tList<TransportBean> transportBeanList= resultBean.getListResult(\"transportBean\");\n\t\t\tList<ShipBean> shipBeanList= resultBean.getListResult(\"shipBean\");\n\t\t\tList<SendBean> sendBeanList=resultBean.getListResult(\"sendBean\");\n\t\t\tList<SendLocation> sendLocationList=resultBean.getListResult(\"sendLocationBean\");\n\t\t\tList<ParkLogisticsBean> parkLogisticsBeanList=resultBean.getListResult(\"parkLogisticsBean\");\n\t\t\t\n\t\t\tList<CustomerAddrBean> customerAddrList = resultBean.getListResult(\"customerAddrList\");\n\t\t\t\n\t\t\tif(orderBean==null){\n\t\t\t\tJSONObject jsonResult = new JSONObject(); \n\t\t\t\tjsonResult.put(\"result\",false);\n\t\t\t\tjsonResult.put(\"message\",\"操作失败:查询不到订单数据\");\n\t\t\t\tlog.info(jsonResult.toString());\n\t\t\t\treturn jsonResult.toString();\n\t\t\t}\n\t\t\t\n\t\t\tMap<String,TransportBean> tranportMap=new HashMap<String,TransportBean>();\n\t\t\tif(transportBeanList!=null&&transportBeanList.size()>0){\n\t\t\t\tfor(TransportBean transportBean:transportBeanList){\n\t\t\t\t\ttranportMap.put(transportBean.getTransId()+\"\", transportBean);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tMap<String,ShipBean> shipMap=new HashMap<String,ShipBean>();\n\t\t\tif(shipBeanList!=null&&shipBeanList.size()>0){\n\t\t\t\tfor(ShipBean shipBean:shipBeanList){\n\t\t\t\t\tshipMap.put(shipBean.getShipId()+\"\", shipBean);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tMap<String,SendBean> sendBeanMap=new HashMap<String,SendBean>();\n\t\t\tif(sendBeanList!=null&&sendBeanList.size()>0){\n\t\t\t\tfor(SendBean sendBean:sendBeanList){\n\t\t\t\t\tsendBeanMap.put(sendBean.getSendId()+\"\", sendBean);\n\t\t\t\t}\n\t\t\t}\n\t\t\tMap<String,SendLocation> sendLocationMap=new HashMap<String,SendLocation>();\n\t\t\tif(sendLocationList!=null&&sendLocationList.size()>0){\n\t\t\t\tfor(SendLocation sendLocation:sendLocationList){\n\t\t\t\t\tsendLocationMap.put(sendLocation.getTransId()+\"\", sendLocation);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tMap<String,ParkLogisticsBean> parkLogisticsMap=new HashMap<String,ParkLogisticsBean>();\n\t\t\tif(parkLogisticsBeanList!=null&&parkLogisticsBeanList.size()>0){\n\t\t\t\tfor(ParkLogisticsBean parkLogisticsBean:parkLogisticsBeanList){\n\t\t\t\t\tparkLogisticsMap.put(parkLogisticsBean.getSapCode()+\"\", parkLogisticsBean);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tMap<String,List<TransferDetailBean>> transferDetailMap=new HashMap<String,List<TransferDetailBean>>();\n\t\t\tList<TransferDetailBean> detailList=null;\n\t\t\tif(tranferDetailBeanList!=null&&tranferDetailBeanList.size()>0){\n\t\t\t\tfor(TransferDetailBean transDetailBean:tranferDetailBeanList){\n\t\t\t\t\tdetailList=transferDetailMap.get(transDetailBean.getTransId()+\"\");\n\t\t\t\t\tif(detailList==null){\n\t\t\t\t\t\tdetailList= new ArrayList<TransferDetailBean>();\n\t\t\t\t\t}\n\t\t\t\t\tdetailList.add(transDetailBean);\n\t\t\t\t\ttransferDetailMap.put(transDetailBean.getTransId()+\"\", detailList);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tMap<String,CustomerAddrBean> customerAddrBeanMap=new HashMap<String,CustomerAddrBean>();\n\t\t\tif(customerAddrList!=null&&customerAddrList.size()>0){\n\t\t\t\tfor(CustomerAddrBean customerAddrBean:customerAddrList){\n\t\t\t\t\tcustomerAddrBeanMap.put(customerAddrBean.getCaddrId()+\"\", customerAddrBean);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t/*\n\t\t\tString customMsg=\" 客户名称:\"+customerBean.getCustomerName()+\n\t \" 工厂:\"+FactoryRepository.getFactoryName(transDetailBean.getFactoryId()+\"\")+\n\t \" 产品:\"+ProductRepository.getProductName(transDetailBean.getProductId()+\"\")+\n\t \" 配送量:\"+applyTotalTonNum+\n\t \" 配送包数:\"+applyTotalPackNum+\n\t \" 配送地址:\"+addressInfo+customerAddrBean.getCaddrDetail();\n\t\t\t*/\n\t\t\tAreaRepository areaRep=new AreaRepository();\n\t\t\tJSONArray array=new JSONArray();\n\t\t\tfor(TransferBean transferBean:transferBeanList){\n\t\t\t\tJSONObject sendObj = new JSONObject();\n\t\t\t ShipBean shipBean = shipMap.get(transferBean.getShipId()+\"\");\n\t\t\t TransportBean transportBean = tranportMap.get(transferBean.getTransId()+\"\");\n\t\t\t \n\t\t\t ParkLogisticsBean parkLogisticsBean=parkLogisticsMap.get(transferBean.getSapTransCode());\n\t\t\t SendLocation sendLocationBean =sendLocationMap.get(transferBean.getTransId()+\"\");\n\t\t\t \n\t\t\t sendObj.put(\"orderCode\", orderBean.getCorderCode()); //订单编号\n\t\t\t sendObj.put(\"sapCode\", transferBean.getSapTransCode()); //交货单号(虚拟调拨单号)\n\t\t\t\tsendObj.put(\"approveTime\", transferBean.getCreateTime()); //内勤审批时间\n\t\t\t\tsendObj.put(\"shipCreateTime\", shipBean.getCreateTime()); //发货申请创建时间\n\t\t\t\t\n\t\t\t\tif(customerBean!=null){\n\t\t\t\t\tsendObj.put(\"customerCode\",customerBean.getCustomerCode());//客户编码\n\t\t\t\t\tsendObj.put(\"customerName\",customerBean.getCustomerName());//客户名称\n\t\t\t\t}\n\t\t\t\tdetailList=transferDetailMap.get(transferBean.getTransId()+\"\");\n\t\t\t\tif(detailList!=null){\n\t\t\t\t\tTransferDetailBean transDetailBean=detailList.get(0);\n\t\t\t\t\tBigDecimal applyTotalTonNum=new BigDecimal(0);\n\t\t\t \tBigDecimal applyTotalPackNum=new BigDecimal(0);\n\t\t\t \tfor(TransferDetailBean detailBean:detailList){\n\t\t\t \t\tString applyTonNum=detailBean.getApplyTonNum()==null||detailBean.getApplyTonNum()==\"\"?\"0\":detailBean.getApplyTonNum();\n\t\t\t \t\tString applyPackNum=detailBean.getApplyPackNum()==null||detailBean.getApplyPackNum()==\"\"?\"0\":detailBean.getApplyPackNum();\n\t\t\t \t\tapplyTotalTonNum=applyTotalTonNum.add(new BigDecimal(applyTonNum));\n\t\t\t \t\tapplyTotalPackNum=applyTotalPackNum.add(new BigDecimal(applyPackNum));\n\t\t\t \t}\n\t\t\t\t\tsendObj.put(\"factoryName\",FactoryRepository.getFactoryName(transDetailBean.getFactoryId()+\"\"));// 工厂名称\n\t\t\t\t\tsendObj.put(\"productName\",ProductRepository.getProductName(transDetailBean.getProductId()+\"\"));//产品名称\n\t\t\t\t\tsendObj.put(\"applyTotalTonNum\",applyTotalTonNum); //申请吨数\n\t\t\t\t\tsendObj.put(\"applyTotalPackNum\",applyTotalPackNum); //申请包数\n\t\t\t\t\t\n\t\t\t\t\tCustomerAddrBean customerAddrBean = customerAddrBeanMap.get(shipBean.getCaddrId()+\"\");\n\t\t\t\t\tif(customerAddrBean!=null){\n\t\t\t\t\t\tString addressInfo = areaRep.getFullAreaName(customerAddrBean.getAreaId()+\"\", \"\", false);\n\t\t\t\t\t\tsendObj.put(\"address\",addressInfo+customerAddrBean.getCaddrDetail()); //配送地址\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(transportBean!=null){\n\t\t\t\t\tsendObj.put(\"tranferCreateTime\", transportBean.getCreateTime());//.newLine();//物流分配时间\n\t\t\t\t\tSendBean sendBean=sendBeanMap.get(transportBean.getTransportId()+\"\");\n\t\t\t\t\tif(sendBean!=null&&sendBean.getVehicleNo()!=null){\n\t\t\t\t\t\tsendObj.put(\"vehicleNo\", sendBean.getVehicleNo());//.newLine();//运送车牌号\n\t\t\t\t\t}\n\t\t\t\t\tif(transportBean.getTransportStatus()>0){\n\t\t\t\t\t\tString transportDesc=\"\";\n\t\t\t\t\t\tif(\"102\".equals(transportBean.getTransportStatus()+\"\")){\n\t\t\t\t\t\t\ttransportDesc=\"已签收\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ttransportDesc=\"未签收\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsendObj.put(\"transportStatus\",transportBean.getTransportStatus()+\"\");//签收状态\n\t\t\t\t\t\tsendObj.put(\"transportStatusDesc\",transportDesc);//签收状态\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(parkLogisticsBean!=null&&parkLogisticsBean.getParkStatus()!=null){\n\t\t\t\t\tString s=\"\";\n\t\t\t\t\tif(\"1\".equals(parkLogisticsBean.getParkStatus())){\n\t\t\t\t s=\"已到园区,未装运 到园区时间:\"+parkLogisticsBean.getBindingTime();\n\t\t\t\t }else if(\"2\".equals(parkLogisticsBean.getParkStatus())){\n\t\t\t\t s=\"装运完成,已驶离园区 离开时间:\"+parkLogisticsBean.getExitTime();\n\t\t\t\t }else{\n\t\t\t\t \ts=\"未到园区\";\n\t\t\t\t } \n\t\t\t\t\tsendObj.put(\"parkStatus\",parkLogisticsBean.getParkStatus());//园区物流状态\n\t\t\t\t\tsendObj.put(\"parkBindingTime\",parkLogisticsBean.getBindingTime());//园区物流进园区时间\n\t\t\t\t\tsendObj.put(\"parkExitTime\",parkLogisticsBean.getExitTime());//园区物流出园区时间\n\t\t\t\t\tsendObj.put(\"parkStatusDesc\",s);//园区物流状态描述\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(sendLocationBean!=null&&sendLocationBean.getProvince()!=null){\n\t String sendDesc=sendLocationBean.getProvince();\n\t \n\t if(sendLocationBean.getCity()!=null&&sendLocationBean.getCity()!=\"\"){\n\t \tsendDesc += sendLocationBean.getCity();\n\t \tsendObj.put(\"city\",sendLocationBean.getCity());//园区物流配送地址 市\n\t }\n\t if(sendLocationBean.getDistrict()!=null&&sendLocationBean.getDistrict()!=\"\"){\n\t \tsendDesc += sendLocationBean.getDistrict();\n\t \tsendObj.put(\"district\",sendLocationBean.getDistrict());//园区物流配送地址 区\n\t }\n\t if(sendLocationBean.getModifyTime()!=null&&sendLocationBean.getModifyTime()!=\"\"){\n\t \tsendDesc=\"更新时间:\"+sendLocationBean.getModifyTime() ; \n\t\t\t\t }else if(sendLocationBean.getCreateTime()!=null&&sendLocationBean.getCreateTime()!=\"\"){\n\t\t\t\t \tsendDesc=\"更新时间:\"+sendLocationBean.getCreateTime() ;\n\t\t\t\t }\n\t sendObj.put(\"province\",sendLocationBean.getProvince());//园区物流配送地址 省\n\t\t\t\t\tsendObj.put(\"sendDesc\",sendDesc);//园区物流配送地址描述\n\t\t\t\t\tsendObj.put(\"longitude\",sendLocationBean.getLongitude());//经度\n\t\t\t\t\tsendObj.put(\"latitude\",sendLocationBean.getLatitude());//纬度\n\t\t\t\t}\n\t\t\t\tarray.put(sendObj);\n\t\t\t}\n\t\t\t\n\t\t\tJSONObject resultObj = new JSONObject();\n\t\t\tresultObj.put(\"result\",true);\n\t\t\tresultObj.put(\"message\",\"操作成功\");\n\t\t\tresultObj.put(\"transferInfo\",array.toString());\n\t\t\tlog.info(\"调用园区物流结束,返回参数为:\"+resultObj.toString());\n\t\t\treturn resultObj.toString();\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\tJSONObject jsonResult = new JSONObject(); \n\t\tjsonResult.put(\"result\",false);\n\t\tjsonResult.put(\"message\",\"操作失败:发生未知异常\");\n\t\tlog.info(jsonResult.toString());\n\t\treturn jsonResult.toString();\n }", "public String getATR() {\n\t\tif (cardacos3 == null)\n\t\t\treturn null;\n\t\tATR atr = cardacos3.getATR();\n\t\tbyte[] atr_bytes = atr.getBytes();\n\t\tString atr_hex = HelpersFunctions.bytesToHex(atr_bytes);\n\t\treturn atr_hex;\n\t}", "public String getLOAI()\n {\n return this.LOAI;\n }", "public ItineraryLegType journeyLegType() {\n if (walk != null) {\n return ItineraryLegType.WALK;\n } else {\n return ItineraryLegType.BUS;\n }\n }", "public double tradeRate()\n\t{\n\t\treturn _dblTradeRate;\n\t}", "public float getVehicleSpeed() {\n return vehicleSpeed;\n }", "public double getRightRate() {\n return rightEnc.getRate();\n }" ]
[ "0.53703076", "0.5362903", "0.51918083", "0.51601356", "0.51601356", "0.5105155", "0.499696", "0.4976982", "0.491198", "0.48643583", "0.4848205", "0.47997057", "0.4744952", "0.47394222", "0.4732364", "0.47223297", "0.46952462", "0.46781304", "0.46774998", "0.46213374", "0.46108183", "0.46066725", "0.45922533", "0.45916402", "0.45916402", "0.45668915", "0.4565913", "0.45634103", "0.4553132", "0.45449632", "0.4536797", "0.453277", "0.45319512", "0.45232975", "0.4517903", "0.45121023", "0.44830695", "0.44817585", "0.44737595", "0.4473507", "0.4472051", "0.44628212", "0.44572425", "0.44549197", "0.44535434", "0.44487846", "0.4438978", "0.44371396", "0.44362667", "0.4423792", "0.4420709", "0.44161665", "0.44104367", "0.44067803", "0.4403317", "0.43906927", "0.4386041", "0.43845463", "0.43744567", "0.43736303", "0.43585673", "0.43545464", "0.43489742", "0.4347103", "0.43368685", "0.43301773", "0.4327436", "0.43262848", "0.4325818", "0.43143144", "0.4311561", "0.42944747", "0.42896008", "0.42889377", "0.42860803", "0.42841205", "0.42721507", "0.42709896", "0.42617813", "0.4259491", "0.42574444", "0.42515028", "0.4244964", "0.42449462", "0.42425734", "0.42414123", "0.42399195", "0.42284465", "0.42279363", "0.42237", "0.42208433", "0.4219046", "0.4217387", "0.4216984", "0.4213449", "0.42105597", "0.4209309", "0.42083752", "0.42037332", "0.41997623" ]
0.4961844
8
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_ROUTE.OTRAFFIC
public void setOtraffic(Float otraffic) { this.otraffic = otraffic; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setTrafficControl(org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl trafficControl);", "public native void setRTOConstant (int RTOconstant);", "public native void setRTOFactor (double RTOfactor);", "private void setupTurnRoadCharacteristic() {\n turnRoadCharacteristic =\n new BluetoothGattCharacteristic(CHARACT_TURNROAD_UUID,\n BluetoothGattCharacteristic.PROPERTY_READ | BluetoothGattCharacteristic.PROPERTY_WRITE | BluetoothGattCharacteristic.PROPERTY_NOTIFY,\n BluetoothGattCharacteristic.PERMISSION_READ | BluetoothGattCharacteristic.PERMISSION_WRITE);\n\n turnRoadCharacteristic.addDescriptor(\n Peripheral.getClientCharacteristicConfigurationDescriptor());\n\n turnRoadCharacteristic.addDescriptor(\n Peripheral.getCharacteristicUserDescriptionDescriptor(CHARACT_TURNROAD_DESC));\n\n turnRoadCharacteristic.setValue(turnRoadCharacteristic_value);\n }", "void setControlType(org.landxml.schema.landXML11.TrafficControlType.Enum controlType);", "public void setRoadwayPI(double roadwayPI)\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.setDoubleValue(roadwayPI);\r\n }\r\n }", "public IRoadSensor setRoadStatus(ERoadStatus s);", "public void setTraffic(Long traffic) {\n\t\tthis.traffic = traffic;\n\t}", "public void setTramo(Number value) {\n setAttributeInternal(TRAMO, value);\n }", "@Override\n\tpublic void onReCalculateRouteForTrafficJam() {\n\n\t}", "public void setRaio(double raio) {\n this.raio = raio;\n }", "public void setDirectionOfTravel(typekey.DirectionOfTravelPEL value);", "public void setTRS_TYPE(String TRS_TYPE) {\r\n this.TRS_TYPE = TRS_TYPE == null ? null : TRS_TYPE.trim();\r\n }", "@Override\r\n\tpublic double rideFare() {\r\n\t\tdouble trafficRate = 1;\r\n\t\tswitch(this.getTrafficKind()) {\r\n\t\t case Low:\r\n\t\t\ttrafficRate = 1;break;\r\n\t\t\tcase Medium:\r\n\t\t\t\ttrafficRate = 1.1;break;\r\n\t\t\tcase High:\r\n\t\t\t\ttrafficRate = 1.5;break;\r\n\t\t}\r\n\t\tdouble basicRate = 0;\r\n\t\tif (this.getLength() <5) { \r\n\t\t\tbasicRate = 3.3;\r\n\t\t} else if (10 > this.getLength()){\r\n\t\t\tbasicRate = 4.2;\r\n\t\t} else if (this.getLength() <20){\r\n\t\t\tbasicRate = 1.91;\r\n\t\t} else {\r\n\t\t\tbasicRate = 1.5;\r\n\t\t}\r\n\t\t\r\n\t\treturn basicRate * trafficRate * this.getLength();\r\n\t}", "public void addTrafficLight(int roadRef, String whichEnd) {\n roads.get(roadRef - 1).addTrafficLight(whichEnd);\n }", "public void setAlternateRoute(short trainId, TrainRoute r) {\n\t\ttrainRoutes.put(trainId, r);\n\t}", "@Override\r\n\tpublic void onReCalculateRouteForTrafficJam() {\n\r\n\t}", "public native void setMaximumRTO (long RTO);", "public void setOriPrice(double oriPrice) {\n this.oriPrice = oriPrice;\n }", "public void setTraffic(Integer traffic) {\n this.traffic = traffic;\n }", "public void setTraffic(Integer traffic) {\n this.traffic = traffic;\n }", "void setRoadway(org.landxml.schema.landXML11.RoadwayDocument.Roadway roadway);", "@Override\n\tpublic void setVehicleLoad(int van, int railway, int airplane) {\n\t\tconstantPO.setVanLoad(van);\n\t\tconstantPO.setRailwayLoad(railway);\n\t\tconstantPO.setAirplaneLoad(airplane);\n\t}", "public void setTrv (jkt.hrms.masters.business.EtrTravelreq trv) {\n\t\tthis.trv = trv;\n\t}", "public void setReverseAgency(boolean value) {\r\n this.reverseAgency = value;\r\n }", "public JSONObject update() throws Exception{\n String urlString;\r\n if(this.targetDirection == -1){\r\n urlString = \"https://ptx.transportdata.tw/MOTC/v2/Bus/EstimatedTimeOfArrival/City/\" + route.getCityName() + \"?$filter=\" + URLEncoder.encode(\"StopUID eq '\" + targetStopUID + \"' \", \"UTF-8\") + \"&$format=JSON\";\r\n }else{\r\n urlString = \"https://ptx.transportdata.tw/MOTC/v2/Bus/EstimatedTimeOfArrival/City/\" + route.getCityName() + \"?$filter=\" + URLEncoder.encode(\"StopUID eq '\" + targetStopUID + \"' and Direction eq '\"+ targetDirection +\"' \", \"UTF-8\") + \"&$format=JSON\";\r\n }\r\n urlString = urlString.replaceAll(\"\\\\+\", \"%20\");\r\n PTXPlatform ptxp = new PTXPlatform(urlString);\r\n \r\n try{\r\n this.stopData = new JSONArray(ptxp.getData()).getJSONObject(0);\r\n }catch(Exception e){\r\n System.out.println(\"Maybe Direction are not using in this route, please set direction to -1.\");\r\n }\r\n return stopFilter(stopData);\r\n }", "public double getTraffic() {\n return traffic;\n }", "public void setAdvanceTravelPayment(TravelPayment advanceTravelPayment) {\n this.advanceTravelPayment = advanceTravelPayment;\n }", "public void setRentWay(Integer rentWay) {\n this.rentWay = rentWay;\n }", "public final void setAdvanceFilterTRModel(AdvanceFilterTRModel advanceFilterTRModel) {\r\n\t\tthis.advanceFilterTRModel = advanceFilterTRModel;\r\n\t}", "public native void setInitialAssumedRTT (long RTT);", "public void setNextRoad(CarAcceptor r) {\n\t\tthis.firstRoad = r;\n\t}", "public void setPRTNO(java.lang.Integer PRTNO) {\n this.PRTNO = PRTNO;\n }", "public void setTravelTime(final Integer travelTime) {\n\t\tthis.travelTime = travelTime;\n\t}", "public void setTrip(Integer trip) {\n this.trip = trip;\n }", "public void xsetRoadwayPI(org.landxml.schema.landXML11.Station roadwayPI)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.Station)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.set(roadwayPI);\r\n }\r\n }", "org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl getTrafficControl();", "public void setTrip(String trip)\r\n {\r\n this.trip=trip;\r\n }", "public void setRoutingNo (String RoutingNo);", "public void setRoute (JsonObject journey) {\n\t\tsetDate(journey.get(\"date\").getAsString());\n\t\tsetStart(journey.get(\"start\").getAsString());\n\t\tsetDestination(journey.get(\"dest\").getAsString());\n\t setArrivalTime(journey.get(\"arrivalTime\").getAsString());\n\t \t\n\t JsonArray segmentJs = journey.getAsJsonArray(\"segments\");\n\t for (int i = 0; i < segmentJs.size(); i++) {\n\t\t\tSegment segment = new Segment();\n\t\t\tsegment.setSegment(segmentJs.get(i).getAsJsonObject());\n\t\t\tmSegmentList.add(i, segment);\n\t\t}\n\t mSegmentList.trimToSize();\n\t setDepartureTime(segmentJs.get(0).getAsJsonObject());\n\t}", "public void setTravel(Travel travel) {\n this.travel = travel;\n }", "public Long getTraffic() {\n\t\treturn traffic;\n\t}", "private void determinationVATRate(Vehicle vehicle) {\n if (vehicle.getEngineType().name().equals(\"electric\")) {\n vehicle.setVATRate(0);\n } else {\n vehicle.setVATRate(20);\n }\n }", "private void setupEstArrivalTimeCharacteristic() {\n estArrivalTimeCharacteristic =\n new BluetoothGattCharacteristic(CHARACT_ESTARRIVALTIME_UUID,\n BluetoothGattCharacteristic.PROPERTY_READ | BluetoothGattCharacteristic.PROPERTY_WRITE | BluetoothGattCharacteristic.PROPERTY_NOTIFY,\n BluetoothGattCharacteristic.PERMISSION_READ | BluetoothGattCharacteristic.PERMISSION_WRITE);\n\n estArrivalTimeCharacteristic.addDescriptor(\n Peripheral.getClientCharacteristicConfigurationDescriptor());\n\n estArrivalTimeCharacteristic.addDescriptor(\n Peripheral.getCharacteristicUserDescriptionDescriptor(CHARACT_ESTARRIVALTIME_DESC));\n\n estArrivalTimeCharacteristic.setValue(estArrivalTimeCharacteristic_value);\n }", "public native void setMinimumRTO (long RTO);", "public void setThroughput(Long throughput) {\n this.throughput = throughput;\n }", "public void setRefFrameVelocity(double value) {\n _avTable.set(ATTR_RF_VELOCITY, value);\n }", "public void setTravelAdvance(TravelAdvance travelAdvance) {\n this.travelAdvance = travelAdvance;\n }", "void setControlPosition(org.landxml.schema.landXML11.TrafficControlPosition.Enum controlPosition);", "public void setTunnelRail(Rail r, String d) {\n this.tunnelRail = r;\n this.dir = d;\n }", "public Object setintrate(double rate)\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setintrate : \" + \"Agent\");\r\n/* 67 */ \tthis.intrate = rate;\r\n/* 68 */ \tthis.intratep1 = (this.intrate + 1.0D);\r\n/* 69 */ \treturn this;\r\n/* */ }", "private void updateTbtNavigationService() {\n updateNavStateCharacteristic();\n updateTurnIconCharacteristic();\n updateTurnDistanceCharacteristic();\n updateTurnInfoCharacteristic();\n updateTurnRoadCharacteristic();\n updateEstArrivalTimeCharacteristic();\n updateDist2DestCharacteristic();\n updateNotificationCharacteristic();\n updateNavigationCommandCharacteristic();\n }", "public final void setodometer_reading(com.mendix.systemwideinterfaces.core.IContext context, String odometer_reading)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.odometer_reading.toString(), odometer_reading);\n\t}", "private void connectToRendezVous(EndpointAddress addr, RouteAdvertisement routeHint) throws IOException {\r\n\r\n // BT nothing implemented yet\r\n }", "public void setTrafficType(String trafficType) {\n this.trafficType = trafficType;\n }", "void setRoadTerrain(org.landxml.schema.landXML11.RoadTerrainType.Enum roadTerrain);", "@Required\n\tpublic void setTravelRouteFacade(final TravelRouteFacade travelRouteFacade)\n\t{\n\t\tthis.travelRouteFacade = travelRouteFacade;\n\t}", "protected final void operationROR(final int adr) {\r\n writeByte(adr, operationROR(readByte(adr)));\r\n }", "public synchronized void setArrivalExit(ArrivalTerminalExitStub ate) {\n this.ate = ate;\n }", "public void setRoadLength(int roadLength) {\n \t\tif (roadLength > this.roadLength)\n \t\t\tthis.roadLength = roadLength;\n \t}", "public void setThroughput(Integer throughput) {\n this.throughput = throughput;\n }", "public void setTrafficType(TrafficType trafficType) {\n withTrafficType(trafficType);\n }", "public void setTraffic(Float traffic) {\r\n this.traffic = traffic;\r\n }", "public void setTWAP(double value) {\n this.twap = value;\n }", "public void setArmTalon(double outputval) {\n\t\tarmMotor.set(outputval);\n\t}", "@Override\n\tpublic void setVehicleCost(double van, double railway, double airplane) {\n\t\tconstantPO.setVanCost(van);\n\t\tconstantPO.setRailwayCost(railway);\n\t\tconstantPO.setAirplaneCost(airplane);\n\t}", "@ZAttr(id=779)\n public void unsetReverseProxyUseExternalRoute() throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraReverseProxyUseExternalRoute, \"\");\n getProvisioning().modifyAttrs(this, attrs);\n }", "public String getTrafficType() {\n return this.trafficType;\n }", "@ZAttr(id=779)\n public Map<String,Object> setReverseProxyUseExternalRoute(boolean zimbraReverseProxyUseExternalRoute, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraReverseProxyUseExternalRoute, zimbraReverseProxyUseExternalRoute ? Provisioning.TRUE : Provisioning.FALSE);\n return attrs;\n }", "public jkt.hrms.masters.business.EtrTravelreq getTrv () {\n\t\treturn trv;\n\t}", "public void setTRS_NO(BigDecimal TRS_NO) {\r\n this.TRS_NO = TRS_NO;\r\n }", "public void setTRS_NO(BigDecimal TRS_NO) {\r\n this.TRS_NO = TRS_NO;\r\n }", "public void setItraffic(Float itraffic) {\r\n this.itraffic = itraffic;\r\n }", "@Override\r\n\tpublic void travelMode() {\n\t\tthis.travelMode = \"Car\";\r\n\t\tSystem.out.println(\"Mode of travel selected is \"+ this.travelMode);\r\n\r\n\t}", "public T caseLoadResponseCharacteristic(LoadResponseCharacteristic object) {\n\t\treturn null;\n\t}", "void xsetControlType(org.landxml.schema.landXML11.TrafficControlType controlType);", "public PartySkillTransferCache(UserVisit userVisit, EmployeeControl employeeControl) {\n super(userVisit, employeeControl);\n \n partyControl = Session.getModelController(PartyControl.class);\n }", "static void init_timetables(FM_OPL OPL, int ARRATE, int DRRATE) {\n int i;\n double rate;\n\n /* make attack rate & decay rate tables */\n for (i = 0; i < 4; i++) {\n OPL.AR_TABLE[i] = OPL.DR_TABLE[i] = 0;\n }\n for (i = 4; i <= 60; i++) {\n rate = OPL.freqbase;\n /* frequency rate */\n\n if (i < 60) {\n rate *= 1.0 + (i & 3) * 0.25;\n /* b0-1 : x1 , x1.25 , x1.5 , x1.75 */\n\n }\n rate *= 1 << ((i >> 2) - 1);\n /* b2-5 : shift bit */\n\n rate *= (double) (EG_ENT << ENV_BITS);\n OPL.AR_TABLE[i] = (int) (rate / ARRATE);\n OPL.DR_TABLE[i] = (int) (rate / DRRATE);\n }\n for (i = 60; i < 75; i++) {\n OPL.AR_TABLE[i] = EG_AED - 1;\n OPL.DR_TABLE[i] = OPL.DR_TABLE[60];\n }\n }", "public void setLydoTraVe(String lydoTraVe);", "public void setAdr2(String adr2) {\n this.adr2 = adr2;\n }", "public void setAccload(Integer accload) {\r\n this.accload = accload;\r\n }", "public void setOcjena(double value) {\r\n this.ocjena = value;\r\n }", "public Number getTramo() {\n return (Number) getAttributeInternal(TRAMO);\n }", "public void setVehiclePerformance(int vehiclePerformance) {\n this.itemAttribute = vehiclePerformance;\n }", "public Integer getTraffic() {\n return traffic;\n }", "public Integer getTraffic() {\n return traffic;\n }", "public Float getOtraffic() {\r\n return otraffic;\r\n }", "public void setO(double value) {\n this.o = value;\n }", "public void setLOAI( String LOAI )\n {\n this.LOAI = LOAI;\n }", "public void setRoadwayRef(java.lang.String roadwayRef)\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(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.setStringValue(roadwayRef);\r\n }\r\n }", "@Override\n void setRoute() throws ItemTooHeavyException {\n deliveryItem = tube.pop();\n if (deliveryItem.weight > itemWeightLimit) throw new ItemTooHeavyException();\n // Set the destination floor\n destination_floor = deliveryItem.getDestFloor();\n }", "public void set(ControlMode controlMode, double value)\n {\n switch (controlMode)\n {\n case Throttle:\n super.set(value);\n// System.out.printf(\"Port: %d value %f\\n\", port, value);\n break;\n case Position:\n super.getPIDController().setReference(value, ControlType.kPosition);\n break;\n case Velocity:\n super.getPIDController().setReference(value, ControlType.kVelocity);\n break;\n }\n }", "public static void setForwardAcceleration(int acc) {\n LEFT_MOTOR.setAcceleration(acc);\n RIGHT_MOTOR.setAcceleration(acc);\n }", "@Override\n void setJourney(String line, TransitCard transitCard) {\n SubwayLine subwayLine = SubwaySystem.getSubwayLineByName(line);\n int startIndex = subwayLine.getStationList().indexOf(this.startLocation);\n int endIndex = subwayLine.getStationList().indexOf(this.endLocation);\n if (startIndex < endIndex) {\n while (!subwayLine\n .getStationList()\n .get(startIndex)\n .getNodeName()\n .equals(this.endLocation.getNodeName())) {\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n transitCard.increaseStationReached();\n startIndex++;\n }\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n } else {\n while (!subwayLine\n .getStationList()\n .get(startIndex)\n .getNodeName()\n .equals(this.endLocation.getNodeName())) {\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n transitCard.increaseStationReached();\n startIndex--;\n }\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n }\n double d =\n Distance.getDistance(\n startLocation.getNodeLocation().get(0),\n startLocation.getNodeLocation().get(1),\n endLocation.getNodeLocation().get(0),\n endLocation.getNodeLocation().get(1));\n Administrator.getListOfDays()\n .get(Administrator.getListOfDays().size() - 1)\n .incrementDistance(d);\n Administrator.getListOfDays()\n .get(Administrator.getListOfDays().size() - 1)\n .incrementPassengers();\n }", "public Trip(Vehicle v, boolean round) {\r\n this.vehicle = v;\r\n roundTrip = round;\r\n }", "public void setType(com.alcatel_lucent.www.wsp.ns._2008._03._26.ics.phonesetstaticstate.AlcForwardType type) {\r\n this.type = type;\r\n }", "public void setTransportPrice(double value) {\n this.transportPrice = value;\n }", "Trip(Time start_time, TTC start_station, String type, String number){\n this.START_TIME = start_time;\n this.START_STATION = start_station;\n this.deducted = 0;\n this.listOfStops = new ArrayList<>();\n this.TYPE = type;\n this.NUMBER = number;\n }", "TradeRoute(String aStartPoint, String anEndPoint, int anId){\n startPoint = aStartPoint;\n endPoint = anEndPoint;\n id = anId;\n }", "private void addRoute(Route rte) {\n\t\trteTbl.add(rte);\n\t}" ]
[ "0.47700822", "0.46750966", "0.45614854", "0.45536757", "0.44148046", "0.4384614", "0.43806523", "0.43517596", "0.43407032", "0.43326503", "0.4306909", "0.4289145", "0.42813665", "0.42732665", "0.4268847", "0.42655668", "0.42619744", "0.42410496", "0.42410135", "0.42230347", "0.42230347", "0.42199272", "0.42178288", "0.42090917", "0.42007896", "0.4200784", "0.41901773", "0.4187263", "0.4136449", "0.41342506", "0.41258258", "0.411842", "0.41157228", "0.41010404", "0.40995637", "0.40921393", "0.409084", "0.40875128", "0.40810597", "0.4078448", "0.4066587", "0.4065097", "0.4058246", "0.40574557", "0.4051546", "0.40402824", "0.40365708", "0.40322915", "0.40306625", "0.40287867", "0.4027107", "0.40254197", "0.4024098", "0.40232515", "0.40222678", "0.4013931", "0.40081993", "0.4000429", "0.39942455", "0.39899927", "0.39890417", "0.39875075", "0.3985029", "0.3977662", "0.3974627", "0.3971748", "0.39682722", "0.39646003", "0.3960262", "0.3955755", "0.39506078", "0.39506078", "0.39464882", "0.39459446", "0.39442262", "0.39325404", "0.39315516", "0.39293706", "0.3928732", "0.3927235", "0.3925812", "0.39229986", "0.39225882", "0.39162028", "0.39092413", "0.39092413", "0.38990566", "0.38979706", "0.38960344", "0.3892208", "0.3888494", "0.38862118", "0.38851362", "0.3882233", "0.38797474", "0.38794538", "0.38702205", "0.38696635", "0.3869041", "0.38685673" ]
0.449748
4
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_DY_ROUTE.ITRAFFIC
public Float getItraffic() { return itraffic; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setItraffic(Float itraffic) {\r\n this.itraffic = itraffic;\r\n }", "public TerminalRule getINTRule() {\r\n\t\treturn gaTerminals.getINTRule();\r\n\t}", "public TerminalRule getINTRule() {\r\n\t\treturn gaTerminals.getINTRule();\r\n\t}", "public TerminalRule getINTRule() {\r\n\t\treturn gaTerminals.getINTRule();\r\n\t}", "public TerminalRule getINTRule() {\r\n\t\treturn gaTerminals.getINTRule();\r\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\r\n\t\treturn gaXbase.getINTRule();\r\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaXbase.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaXbase.getINTRule();\n\t}", "public IRAT getIraT() {\n\t\treturn iraT;\n\t}", "public Integer getTraffic() {\n return traffic;\n }", "public Integer getTraffic() {\n return traffic;\n }", "public double getRoadwayPI()\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }", "java.lang.String getTransitAirport();", "public int getInflightingRPCCounter() {\n return inflightingRPCCounter.get();\n }", "public String getArrivalAirport();", "java.lang.String getArrivalAirport();", "public String getDestinationAirportIataCode() {\n return destination.getIataCode();\n }", "public int getI10() {\n return i10_;\n }", "public int getI10() {\n return i10_;\n }", "public int getRaint() {\n\t\treturn raint;\n\t}", "public String getRoutingNo();", "public ArrayList<ArrayList<Integer>> getRoutingTable() {\n\t\treturn routingTable;\n\t}", "public int getTotalRouteCost() {\n return totalRouteCost;\n }", "public Integer getTrip() {\n return trip;\n }", "public String addIprt(){\n return \"ADD IPRT:DSTIP=\\\"\"+iprt.getDstip()+\"\\\"\"+\n \",DSTMASK=\\\"\"+iprt.getDstmask()+\"\\\"\"+\n \",NEXTHOP=\\\"\"+iprt.getNexthop()+\"\\\"\"+\n \",SRN=\"+iprt.getSrn()+\n \",SN=\"+iprt.getSn()+\n \",REMARK=\\\"\"+iprt.getRemark()+\"\\\"\"+\n \",PRIORITY=HIGH; {\"+rncName+\"}\";\n }", "public double getTraffic() {\n return traffic;\n }", "public Integer getRentWay() {\n return rentWay;\n }", "public int getISpeed() {\n return iSpeed;\n }", "public RuleCall getINTTerminalRuleCall() { return cINTTerminalRuleCall; }", "public RuleCall getINTTerminalRuleCall() { return cINTTerminalRuleCall; }", "public BigDecimal getIstrue() {\n return istrue;\n }", "public Integer getAccload() {\r\n return accload;\r\n }", "public Long getTraffic() {\n\t\treturn traffic;\n\t}", "public int getVehiclePerformance() {\n return itemAttribute;\n }", "public String getDepartureAirport();", "public int getICID() {\n return icid;\n }", "@JsonIgnore public String getArrivalTerminal() {\n return (String) getValue(\"arrivalTerminal\");\n }", "java.lang.String getDepartureAirport();", "@Basic\n\tpublic double getTimeInAir(){\n\t\treturn this.time_in_air;\n\t}", "public int getLBR_InterestCharge_ID();", "public java.lang.String getTransitAirport() {\n java.lang.Object ref = transitAirport_;\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 transitAirport_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getIvaFlag() {\n return (String) getAttributeInternal(IVAFLAG);\n }", "@Override\r\n\tpublic double rideFare() {\r\n\t\tdouble trafficRate = 1;\r\n\t\tswitch(this.getTrafficKind()) {\r\n\t\t case Low:\r\n\t\t\ttrafficRate = 1;break;\r\n\t\t\tcase Medium:\r\n\t\t\t\ttrafficRate = 1.1;break;\r\n\t\t\tcase High:\r\n\t\t\t\ttrafficRate = 1.5;break;\r\n\t\t}\r\n\t\tdouble basicRate = 0;\r\n\t\tif (this.getLength() <5) { \r\n\t\t\tbasicRate = 3.3;\r\n\t\t} else if (10 > this.getLength()){\r\n\t\t\tbasicRate = 4.2;\r\n\t\t} else if (this.getLength() <20){\r\n\t\t\tbasicRate = 1.91;\r\n\t\t} else {\r\n\t\t\tbasicRate = 1.5;\r\n\t\t}\r\n\t\t\r\n\t\treturn basicRate * trafficRate * this.getLength();\r\n\t}", "public int getRate() {\r\n return Integer.parseInt(RATES[Rate]);\r\n }", "public java.lang.String getTransitAirport() {\n java.lang.Object ref = transitAirport_;\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 transitAirport_ = s;\n return s;\n }\n }", "public int getImbalance() {\n return this.imbalance;\n }", "public java.lang.Double getValorIof() {\n return valorIof;\n }", "org.hl7.fhir.Integer getReadCoverage();", "java.lang.String getPhy();", "public String getTrafficType() {\n return this.trafficType;\n }", "public String rmvIprt(){\n return \"RMV IPRT:SRN=\"+iprt.getSrn()+\n \",SN=\"+iprt.getSn()+\n \",DSTIP=\\\"\"+iprt.getDstip()+\"\\\"\"+\n \",DSTMASK=\\\"\"+iprt.getDstmask()+\"\\\"\"+\n \",NEXTHOP=\\\"\"+iprt.getNexthop()+\"\\\"\"+\n \",FORCEEXECUTE=YES; {\"+rncName+\"}\"; \n }", "public org.landxml.schema.landXML11.Station xgetRoadwayPI()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(ROADWAYPI$18);\r\n return target;\r\n }\r\n }", "public int getRRPP(){\n return RRPP; \n }", "public RLSClient.RLI getRLI() {\n return (this.isClosed()) ? null: mRLS.getRLI() ;\n }", "public double getIntersectRoadwayPI()\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(INTERSECTROADWAYPI$22);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }", "public Number getIdbultoOri()\n {\n return (Number)getAttributeInternal(IDBULTOORI);\n }", "public String getItime() {\n return itime;\n }", "@JsonIgnore\n\tpublic String getIriOls() {\n\t\t//TODO move this to service layer\n\t\tif (iri == null || iri.size() == 0) return null;\n\n\t\tString displayIri = iri.first();\n\t\t\n\t\t//check this is a sane iri\n\t\ttry {\n\t\t\tUriComponents iriComponents = UriComponentsBuilder.fromUriString(displayIri).build(true);\n\t\t\tif (iriComponents.getScheme() == null\n\t\t\t\t\t|| iriComponents.getHost() == null\n\t\t\t\t\t|| iriComponents.getPath() == null) {\n\t\t\t\t//incomplete iri (e.g. 9606, EFO_12345) don't bother to check\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t//FIXME: Can't use a non static logger here because\n\t\t\tlog.error(\"An error occurred while trying to build OLS iri for \" + displayIri, e);\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t//TODO application.properties this\n\t\t\t//TODO use https\n\t\t\treturn \"http://www.ebi.ac.uk/ols/terms?iri=\"+URLEncoder.encode(displayIri.toString(), \"UTF-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t//should never get here\n\t\t\tthrow new RuntimeException(e);\n\t\t}\t\t\n\t\t\t\n\t}", "public IotaEnum getIotaEnum() {\n return _iotaEnum ;\n }", "public java.lang.Integer getGroundresource()\n\t\tthrows java.rmi.RemoteException;", "public BigDecimal getLBR_DIFAL_RateICMSInterPart();", "public void calculateICER(Intervention referenceIntervention) {\n iCER = (cost - referenceIntervention.cost)\n / (effectiveness - referenceIntervention.effectiveness);\n\n }", "public void setIraT(IRAT iraT) {\n\t\tthis.iraT = iraT;\n\t}", "public java.lang.String getDepartureAirport() {\n java.lang.Object ref = departureAirport_;\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 departureAirport_ = s;\n return s;\n }\n }", "public int get_flight() {\r\n return this.flight_nr;\r\n }", "java.lang.String getArrivalAirportCode();", "public Integer getThroughput() {\n return this.throughput;\n }", "public java.lang.String getDepartureAirport() {\n java.lang.Object ref = departureAirport_;\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 departureAirport_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getReturnedACI() {\n return returnedACI;\n }", "public String getLOAI()\n {\n return this.LOAI;\n }", "public String getInt() {\n this.polyInt();\n return this.integral;\n }", "public java.lang.Double getValorCalculadoIof() {\n return valorCalculadoIof;\n }", "public int getRssi() {\n return rssi;\n }", "public java.math.BigInteger getFrequencyOfRoute() {\r\n return frequencyOfRoute;\r\n }", "public int getNiveauIA() {\n\t\treturn niveauIA;\r\n\t}", "public int getRemainingAir ( ) {\n\t\treturn extract ( handle -> handle.getRemainingAir ( ) );\n\t}", "public int getRssi() {\r\n return rssi;\r\n }", "public float getAirspeed() { return Airspeed; }", "public Number getIrHeaderId() {\n return (Number) getAttributeInternal(IRHEADERID);\n }", "public java.lang.String getArrivalAirport() {\n java.lang.Object ref = arrivalAirport_;\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 arrivalAirport_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getArrivalAirport() {\n java.lang.Object ref = arrivalAirport_;\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 arrivalAirport_ = s;\n return s;\n }\n }", "public RouteTimetable getRouteTimetable() {\n return routeTimetable;\n }", "public int getRutBeneficiario() {\n return rutBeneficiario;\n }", "public Integer getRoutingId() {\n return routingId;\n }", "public java.lang.String getRideid() {\n return rideid;\n }", "public static Irrigazione stopIrrigation() {\n\t\tString path = STOP_IRR + \"?campo=\" + Campo.AUTO.getNome();\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return null;\n\t\t//if(response == null) return 401;\n\t\t//return response.statusCode();\n\t\treturn getIrrigation(response);\n\t}" ]
[ "0.53609145", "0.5298407", "0.5298407", "0.5298407", "0.5298407", "0.52720267", "0.52720267", "0.52720267", "0.52720267", "0.52720267", "0.52720267", "0.52720267", "0.52720267", "0.52720267", "0.52720267", "0.52720267", "0.52720267", "0.52720267", "0.52720267", "0.5252252", "0.52108866", "0.52108866", "0.5202445", "0.5066814", "0.5066814", "0.5034594", "0.4976039", "0.49563426", "0.49179184", "0.48423678", "0.48395616", "0.48358804", "0.48025444", "0.47896194", "0.474696", "0.47360036", "0.4724259", "0.47163722", "0.47132692", "0.47122097", "0.46920884", "0.46884", "0.46877217", "0.46877217", "0.46853378", "0.46739393", "0.4669515", "0.46587557", "0.46395957", "0.4615131", "0.46002638", "0.45956287", "0.45906225", "0.45691687", "0.45389616", "0.45300248", "0.45284843", "0.4528259", "0.4526548", "0.4524246", "0.45153138", "0.45147052", "0.4510301", "0.4509752", "0.4507986", "0.45060527", "0.45016512", "0.45012015", "0.44910914", "0.4487113", "0.44869414", "0.44864532", "0.44830242", "0.44751206", "0.44747576", "0.44703257", "0.4465342", "0.44608772", "0.4459617", "0.44569418", "0.44508052", "0.44457707", "0.4442269", "0.44410303", "0.4439323", "0.44338396", "0.4433197", "0.44261134", "0.44196057", "0.44096377", "0.4401648", "0.44012645", "0.43937987", "0.43887815", "0.43856043", "0.4379849", "0.43718076", "0.4371097", "0.43704182", "0.43697166" ]
0.6102294
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_ROUTE.ITRAFFIC
public void setItraffic(Float itraffic) { this.itraffic = itraffic; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIraT(IRAT iraT) {\n\t\tthis.iraT = iraT;\n\t}", "public void setRoadwayPI(double roadwayPI)\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.setDoubleValue(roadwayPI);\r\n }\r\n }", "public void xsetRoadwayPI(org.landxml.schema.landXML11.Station roadwayPI)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.Station)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.set(roadwayPI);\r\n }\r\n }", "public Float getItraffic() {\r\n return itraffic;\r\n }", "void setRoute(String routeID);", "public void setRoutingNo (String RoutingNo);", "public void setLBR_InterestCharge_ID (int LBR_InterestCharge_ID);", "public void setServicioSRI(ServicioSRI servicioSRI)\r\n/* 106: */ {\r\n/* 107:125 */ this.servicioSRI = servicioSRI;\r\n/* 108: */ }", "public void setICID(int value) {\n this.icid = value;\n }", "public Object setintrate(double rate)\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setintrate : \" + \"Agent\");\r\n/* 67 */ \tthis.intrate = rate;\r\n/* 68 */ \tthis.intratep1 = (this.intrate + 1.0D);\r\n/* 69 */ \treturn this;\r\n/* */ }", "public void setIntersectRoadwayPI(double intersectRoadwayPI)\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(INTERSECTROADWAYPI$22);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(INTERSECTROADWAYPI$22);\r\n }\r\n target.setDoubleValue(intersectRoadwayPI);\r\n }\r\n }", "public void setTraffic(Integer traffic) {\n this.traffic = traffic;\n }", "public void setTraffic(Integer traffic) {\n this.traffic = traffic;\n }", "public void setRentWay(Integer rentWay) {\n this.rentWay = rentWay;\n }", "public void setISpeed(int iSpeed) {\n if(iSpeed >= 0) {\n this.iSpeed = iSpeed;\n }\n else {\n this.iSpeed = 0;\n }\n }", "public String addIprt(){\n return \"ADD IPRT:DSTIP=\\\"\"+iprt.getDstip()+\"\\\"\"+\n \",DSTMASK=\\\"\"+iprt.getDstmask()+\"\\\"\"+\n \",NEXTHOP=\\\"\"+iprt.getNexthop()+\"\\\"\"+\n \",SRN=\"+iprt.getSrn()+\n \",SN=\"+iprt.getSn()+\n \",REMARK=\\\"\"+iprt.getRemark()+\"\\\"\"+\n \",PRIORITY=HIGH; {\"+rncName+\"}\";\n }", "public void setServicioConceptoRetencionSRI(ServicioConceptoRetencionSRI servicioConceptoRetencionSRI)\r\n/* 126: */ {\r\n/* 127:141 */ this.servicioConceptoRetencionSRI = servicioConceptoRetencionSRI;\r\n/* 128: */ }", "public void setItineraryReference(int value) {\n this.itineraryReference = value;\n }", "public void setAutorizacionAutoimpresorSRI(AutorizacionAutoimpresorSRI autorizacionAutoimpresorSRI)\r\n/* 125: */ {\r\n/* 126:150 */ this.autorizacionAutoimpresorSRI = autorizacionAutoimpresorSRI;\r\n/* 127: */ }", "public native void setRTOConstant (int RTOconstant);", "public void xsetIntersectRoadwayPI(org.landxml.schema.landXML11.Station intersectRoadwayPI)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(INTERSECTROADWAYPI$22);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.Station)get_store().add_attribute_user(INTERSECTROADWAYPI$22);\r\n }\r\n target.set(intersectRoadwayPI);\r\n }\r\n }", "public void setLOAI( String LOAI )\n {\n this.LOAI = LOAI;\n }", "public void setVehiclePerformance(int vehiclePerformance) {\n this.itemAttribute = vehiclePerformance;\n }", "public static int setIrrigTime(String time) {\n\t\tString path = SET_IRRIG_TIME + time;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return 400;\n\t\treturn response.statusCode();\n\t}", "public void setAccload(Integer accload) {\r\n this.accload = accload;\r\n }", "public void setRutBeneficiario(int rutBeneficiario) {\n this.rutBeneficiario = rutBeneficiario;\n }", "public void setTrip(Integer trip) {\n this.trip = trip;\n }", "public void setAlternateRoute(short trainId, TrainRoute r) {\n\t\ttrainRoutes.put(trainId, r);\n\t}", "public void setThroughput(Integer throughput) {\n this.throughput = throughput;\n }", "public void setM_InOut_ID (int M_InOut_ID);", "public void setATB(int i) {\n\t\tthis.ATB = i;\n\t}", "public void setLogicalFlightID(int value) {\n this.logicalFlightID = value;\n }", "private void setSALIR(int opcionSalida){\n\t\tthis.opcionSalida = opcionSalida;\n\t}", "public void setIcing(iCing icing) {\n\t if ( icing == null ) {\n\t System.err.println(\"ERROR: CODE BUG in iCingView.setiCing icing is null.\");\n\t return;\n\t }\n\t this.icing = icing;\n\t}", "public synchronized void setArrivalExit(ArrivalTerminalExitStub ate) {\n this.ate = ate;\n }", "@Override\n\tpublic void onReCalculateRouteForTrafficJam() {\n\n\t}", "public void setInterfaceType(WaterMeterInterfaceTypeEnum interfaceType)\r\n\t{\r\n\t\tthis.interfaceType = interfaceType;\r\n\t}", "public void SetICFilePath(String path) {\r\n\t\ticFilePath = path;\r\n\t}", "public void unsetRoadwayPI()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(ROADWAYPI$18);\r\n }\r\n }", "public void setLBR_DIFAL_RateICMSInterPart (BigDecimal LBR_DIFAL_RateICMSInterPart);", "public IRAT getIraT() {\n\t\treturn iraT;\n\t}", "public void setReadinessOfPlane(int flightID){\r\n for(int i = 0; i < flights.size(); ++i){\r\n if(flights.get(i).getFlightID() == flightID){\r\n Scanner scanStatus = new Scanner(System.in);\r\n Plane.StateOfPlane status = Plane.StateOfPlane.valueOf(scanStatus.next());\r\n if(status.equals(Plane.StateOfPlane.ReadyToFly) ||\r\n status.equals(Plane.StateOfPlane.Flying) ||\r\n status.equals(Plane.StateOfPlane.Landed))\r\n flights.get(i).getPlane().setReadinessOfPlane(status);\r\n else\r\n throw new IllegalArgumentException();\r\n }\r\n }\r\n\r\n throw new NullPointerException();\r\n }", "public void setTipoAnexoSRI(String tipoAnexoSRI)\r\n/* 618: */ {\r\n/* 619:687 */ this.tipoAnexoSRI = tipoAnexoSRI;\r\n/* 620: */ }", "public void calculateICER(Intervention referenceIntervention) {\n iCER = (cost - referenceIntervention.cost)\n / (effectiveness - referenceIntervention.effectiveness);\n\n }", "public void setLBR_PenaltyCharge_ID (int LBR_PenaltyCharge_ID);", "public void set_ioreg(int index, int RHS) throws AVR.RuntimeException\n {\n if ((index < 0) || (index >= IO_REG_COUNT))\n throw new RuntimeException(Constants.Error(Constants.INVALID_IO_REGISTER)+\" Register: \" +Utils.hex(index,4));\n else\n setDataMemory(index+IO_REG_COUNT,RHS);\n //data_memory[index+IO_REG_COUNT].setValue(RHS);\n }", "public void setItime(String itime) {\n this.itime = itime;\n }", "void setTrafficControl(org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl trafficControl);", "protected void setTimeInAir(double timeinair){\n\t\tassert(timeinair >= 0);\n\t\tthis.time_in_air = timeinair;\n\t}", "protected void set_iflag(boolean RHS) { set_sreg(Utils.setbit(7,RHS, get_sreg())); }", "public ItineraryLeg(LocalDate date, RouteTimetable rt, Stop origin, Stop destination) throws RuntimeException {\n this.date = date;\n this.routeTimetable = rt;\n this.origin = origin;\n this.destination = destination;\n this.startTime = rt.timeAtStop(origin);\n this.endTime = rt.timeAtStop(destination);\n\n try {\n // If ItineraryLeg is for today, try getting real-time capacity data\n boolean realTime = date.equals(LocalDate.now());\n this.capacityCalculator = new CapacityCalculator(rt, origin, realTime);\n } catch (IOException e) {\n String msg = \"unable to access capacity calculator datastore: \" + e.getMessage();\n throw new RuntimeException(msg);\n }\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "public void setRoute(com.vmware.converter.HostIpRouteEntry route) {\r\n this.route = route;\r\n }", "public void updatePICstatus2() {\n try {\n Connection connection = connectionClass.CONN();\n String query = \"UPDATE stationdashboard SET Status=2, PIC=NULL where Station='\" + Station + \"' and Line ='\" + Line + \"'\";\n PreparedStatement stmt = connection.prepareStatement(query);\n stmt.execute();\n } catch (SQLException ex) {\n }\n }", "@Override\r\n\tpublic void onReCalculateRouteForTrafficJam() {\n\r\n\t}", "public void setFrequencyOfRoute(java.math.BigInteger frequencyOfRoute) {\r\n this.frequencyOfRoute = frequencyOfRoute;\r\n }", "public void setiPort(int iPort) {\n\t\tthis.iPort = iPort;\n\t}", "public void setIpto(java.lang.String ipto) {\n this.ipto = ipto;\n }", "public void setPRTNO(java.lang.Integer PRTNO) {\n this.PRTNO = PRTNO;\n }", "public static void setPricings (int ipricings){\n\t\t\tpricings = ipricings;\n\t}", "public void setRecapitoId(Integer recapitoId) {\n\t\tthis.recapitoId = recapitoId;\n\t}", "public void setITALoc(int ITAIndex, int loc){\r\n\t\tif(ITAIndex < 0 || ITAIndex > Model.getITACount())\r\n\t\t\t;\r\n\t\telse\r\n\t\t\tthis.locVec[ITAIndex] = loc;\r\n\t}", "@Override\n void setJourney(String line, TransitCard transitCard) {\n SubwayLine subwayLine = SubwaySystem.getSubwayLineByName(line);\n int startIndex = subwayLine.getStationList().indexOf(this.startLocation);\n int endIndex = subwayLine.getStationList().indexOf(this.endLocation);\n if (startIndex < endIndex) {\n while (!subwayLine\n .getStationList()\n .get(startIndex)\n .getNodeName()\n .equals(this.endLocation.getNodeName())) {\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n transitCard.increaseStationReached();\n startIndex++;\n }\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n } else {\n while (!subwayLine\n .getStationList()\n .get(startIndex)\n .getNodeName()\n .equals(this.endLocation.getNodeName())) {\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n transitCard.increaseStationReached();\n startIndex--;\n }\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n }\n double d =\n Distance.getDistance(\n startLocation.getNodeLocation().get(0),\n startLocation.getNodeLocation().get(1),\n endLocation.getNodeLocation().get(0),\n endLocation.getNodeLocation().get(1));\n Administrator.getListOfDays()\n .get(Administrator.getListOfDays().size() - 1)\n .incrementDistance(d);\n Administrator.getListOfDays()\n .get(Administrator.getListOfDays().size() - 1)\n .incrementPassengers();\n }", "public void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);", "public void setPRDIXREL(java.lang.Integer PRDIXREL) {\n this.PRDIXREL = PRDIXREL;\n }", "public String getDestinationAirportIataCode() {\n return destination.getIataCode();\n }", "public void setLBR_ICMSRegime (String LBR_ICMSRegime);", "public void setIstrue(BigDecimal istrue) {\n this.istrue = istrue;\n }", "public void setReceivable(double receivable) {\n this.receivable = receivable;\n }", "public void setAccess(Rail access) {\n\tthis.access = access;\n }", "@IcalProperty(pindex = PropertyInfoIndex.SCHEDULE_METHOD,\n jname = \"scheduleMethod\",\n eventProperty = true,\n todoProperty = true)\n public void setScheduleMethod(final int val) {\n scheduleMethod = val;\n }", "public void setIdexpeconsul(Integer idexpeconsul) {\r\n this.idexpeconsul = idexpeconsul;\r\n }", "public void setAiRspManage(com.cisco.eManager.common.inventory2.AiRspManage aiRspManage)\n {\n this._aiRspManage = aiRspManage;\n }", "void setRoadway(org.landxml.schema.landXML11.RoadwayDocument.Roadway roadway);", "public String rmvIprt(){\n return \"RMV IPRT:SRN=\"+iprt.getSrn()+\n \",SN=\"+iprt.getSn()+\n \",DSTIP=\\\"\"+iprt.getDstip()+\"\\\"\"+\n \",DSTMASK=\\\"\"+iprt.getDstmask()+\"\\\"\"+\n \",NEXTHOP=\\\"\"+iprt.getNexthop()+\"\\\"\"+\n \",FORCEEXECUTE=YES; {\"+rncName+\"}\"; \n }", "public void setTraffic(Long traffic) {\n\t\tthis.traffic = traffic;\n\t}", "public void setTrafficFromEachSuperAS(double traffic) {\n this.trafficFromSuperAS = traffic;\n }", "void setRoadTerrain(org.landxml.schema.landXML11.RoadTerrainType.Enum roadTerrain);", "@Override\n void setRoute() throws ItemTooHeavyException {\n deliveryItem = tube.pop();\n if (deliveryItem.weight > itemWeightLimit) throw new ItemTooHeavyException();\n // Set the destination floor\n destination_floor = deliveryItem.getDestFloor();\n }", "public void setHourlyRecurrence(com.exacttarget.wsdl.partnerapi.HourlyRecurrence hourlyRecurrence)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.exacttarget.wsdl.partnerapi.HourlyRecurrence target = null;\n target = (com.exacttarget.wsdl.partnerapi.HourlyRecurrence)get_store().find_element_user(HOURLYRECURRENCE$0, 0);\n if (target == null)\n {\n target = (com.exacttarget.wsdl.partnerapi.HourlyRecurrence)get_store().add_element_user(HOURLYRECURRENCE$0);\n }\n target.set(hourlyRecurrence);\n }\n }", "@Test\n public void testSetRouterType() throws Exception {\n isisNeighbor.setRouterType(IsisRouterType.L1);\n isisRouterType = isisNeighbor.routerType();\n assertThat(isisRouterType, is(IsisRouterType.L1));\n }", "public void setIdTravel(Integer idTravel) {\r\n this.idTravel = idTravel;\r\n }", "public Ia(String ibase_url) {\n base_url=ibase_url;\n byte[] reader = callers.getApiInfo(base_url+\"/Stations\");\n lstations = new ArrayList<TreeMap<String, String>>();\n callers.reader_to_trees(reader,lstations);\n reader = callers.getApiInfo(base_url+\"/Trips\");\n ltrips = new ArrayList<TreeMap<String, String>>();\n callers.reader_to_trees(reader,ltrips);\n reader = callers.getApiInfo(base_url+\"/Schedules\");\n lschedules = new ArrayList<TreeMap<String, String>>();\n callers.reader_to_trees(reader,lschedules);\n }", "public BrickletTemperatureIR(String uid, IPConnection ipcon) {\n\t\tsuper(uid, ipcon);\n\n\t\tapiVersion[0] = 2;\n\t\tapiVersion[1] = 0;\n\t\tapiVersion[2] = 0;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_GET_AMBIENT_TEMPERATURE)] = RESPONSE_EXPECTED_FLAG_ALWAYS_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_GET_OBJECT_TEMPERATURE)] = RESPONSE_EXPECTED_FLAG_ALWAYS_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_SET_EMISSIVITY)] = RESPONSE_EXPECTED_FLAG_FALSE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_GET_EMISSIVITY)] = RESPONSE_EXPECTED_FLAG_ALWAYS_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_SET_AMBIENT_TEMPERATURE_CALLBACK_PERIOD)] = RESPONSE_EXPECTED_FLAG_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_GET_AMBIENT_TEMPERATURE_CALLBACK_PERIOD)] = RESPONSE_EXPECTED_FLAG_ALWAYS_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_SET_OBJECT_TEMPERATURE_CALLBACK_PERIOD)] = RESPONSE_EXPECTED_FLAG_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_GET_OBJECT_TEMPERATURE_CALLBACK_PERIOD)] = RESPONSE_EXPECTED_FLAG_ALWAYS_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_SET_AMBIENT_TEMPERATURE_CALLBACK_THRESHOLD)] = RESPONSE_EXPECTED_FLAG_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_GET_AMBIENT_TEMPERATURE_CALLBACK_THRESHOLD)] = RESPONSE_EXPECTED_FLAG_ALWAYS_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_SET_OBJECT_TEMPERATURE_CALLBACK_THRESHOLD)] = RESPONSE_EXPECTED_FLAG_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_GET_OBJECT_TEMPERATURE_CALLBACK_THRESHOLD)] = RESPONSE_EXPECTED_FLAG_ALWAYS_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_SET_DEBOUNCE_PERIOD)] = RESPONSE_EXPECTED_FLAG_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_GET_DEBOUNCE_PERIOD)] = RESPONSE_EXPECTED_FLAG_ALWAYS_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(FUNCTION_GET_IDENTITY)] = RESPONSE_EXPECTED_FLAG_ALWAYS_TRUE;\n\t\tresponseExpected[IPConnection.unsignedByte(CALLBACK_AMBIENT_TEMPERATURE)] = RESPONSE_EXPECTED_FLAG_ALWAYS_FALSE;\n\t\tresponseExpected[IPConnection.unsignedByte(CALLBACK_OBJECT_TEMPERATURE)] = RESPONSE_EXPECTED_FLAG_ALWAYS_FALSE;\n\t\tresponseExpected[IPConnection.unsignedByte(CALLBACK_AMBIENT_TEMPERATURE_REACHED)] = RESPONSE_EXPECTED_FLAG_ALWAYS_FALSE;\n\t\tresponseExpected[IPConnection.unsignedByte(CALLBACK_OBJECT_TEMPERATURE_REACHED)] = RESPONSE_EXPECTED_FLAG_ALWAYS_FALSE;\n\n\t\tcallbacks[CALLBACK_AMBIENT_TEMPERATURE] = new CallbackListener() {\n\t\t\tpublic void callback(byte[] data) {\n\t\t\t\tByteBuffer bb = ByteBuffer.wrap(data, 8, data.length - 8);\n\t\t\t\tbb.order(ByteOrder.LITTLE_ENDIAN);\n\n\t\t\t\tshort temperature = (bb.getShort());\n\n\t\t\t\tfor(AmbientTemperatureListener listener: listenerAmbientTemperature) {\n\t\t\t\t\tlistener.ambientTemperature(temperature);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tcallbacks[CALLBACK_OBJECT_TEMPERATURE] = new CallbackListener() {\n\t\t\tpublic void callback(byte[] data) {\n\t\t\t\tByteBuffer bb = ByteBuffer.wrap(data, 8, data.length - 8);\n\t\t\t\tbb.order(ByteOrder.LITTLE_ENDIAN);\n\n\t\t\t\tshort temperature = (bb.getShort());\n\n\t\t\t\tfor(ObjectTemperatureListener listener: listenerObjectTemperature) {\n\t\t\t\t\tlistener.objectTemperature(temperature);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tcallbacks[CALLBACK_AMBIENT_TEMPERATURE_REACHED] = new CallbackListener() {\n\t\t\tpublic void callback(byte[] data) {\n\t\t\t\tByteBuffer bb = ByteBuffer.wrap(data, 8, data.length - 8);\n\t\t\t\tbb.order(ByteOrder.LITTLE_ENDIAN);\n\n\t\t\t\tshort temperature = (bb.getShort());\n\n\t\t\t\tfor(AmbientTemperatureReachedListener listener: listenerAmbientTemperatureReached) {\n\t\t\t\t\tlistener.ambientTemperatureReached(temperature);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tcallbacks[CALLBACK_OBJECT_TEMPERATURE_REACHED] = new CallbackListener() {\n\t\t\tpublic void callback(byte[] data) {\n\t\t\t\tByteBuffer bb = ByteBuffer.wrap(data, 8, data.length - 8);\n\t\t\t\tbb.order(ByteOrder.LITTLE_ENDIAN);\n\n\t\t\t\tshort temperature = (bb.getShort());\n\n\t\t\t\tfor(ObjectTemperatureReachedListener listener: listenerObjectTemperatureReached) {\n\t\t\t\t\tlistener.objectTemperatureReached(temperature);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}", "@SuppressWarnings(\"ucd\")\n public void setPortRouter(int passedPort, PortRouter aPR) {\n synchronized( thePortRouterMap ){\n thePortRouterMap.put( passedPort, aPR );\n }\n }", "public IBusinessObject setAccessIID(IIID access)\n throws ORIOException;", "public void setPort(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localPortTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localPort=param;\r\n \r\n\r\n }", "public void setPort(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localPortTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localPort=param;\r\n \r\n\r\n }", "public TerminalRule getINTRule() {\r\n\t\treturn gaXbase.getINTRule();\r\n\t}", "public void setITBAG(java.lang.String ITBAG) {\n this.ITBAG = ITBAG;\n }", "public void setRTRNCD(int value) {\n this.rtrncd = value;\n }", "public void setLBR_DocLine_ICMS_ID (int LBR_DocLine_ICMS_ID);", "public int getICID() {\n return icid;\n }", "public TerminalRule getINTRule() {\r\n\t\treturn gaTerminals.getINTRule();\r\n\t}", "public TerminalRule getINTRule() {\r\n\t\treturn gaTerminals.getINTRule();\r\n\t}", "public TerminalRule getINTRule() {\r\n\t\treturn gaTerminals.getINTRule();\r\n\t}", "public TerminalRule getINTRule() {\r\n\t\treturn gaTerminals.getINTRule();\r\n\t}", "public void setIScanID(long value) {\n this.iScanID = value;\n }", "public void addTrafficLight(int roadRef, String whichEnd) {\n roads.get(roadRef - 1).addTrafficLight(whichEnd);\n }" ]
[ "0.53489107", "0.5130349", "0.49921387", "0.4936571", "0.48291007", "0.47533885", "0.47237858", "0.471734", "0.4691978", "0.4688167", "0.4633963", "0.46275187", "0.46275187", "0.4600702", "0.45079532", "0.44767612", "0.44502026", "0.44443217", "0.444013", "0.44155645", "0.43718293", "0.43658492", "0.43639168", "0.43450826", "0.43382573", "0.43265185", "0.43195847", "0.43133995", "0.43082145", "0.4304946", "0.4292569", "0.4286494", "0.42834204", "0.42787114", "0.4258239", "0.42508376", "0.4248404", "0.42483303", "0.42456117", "0.42221922", "0.42197427", "0.42183328", "0.42122954", "0.4203229", "0.41852495", "0.41821173", "0.41762462", "0.41752517", "0.41746354", "0.41677046", "0.41627163", "0.41601613", "0.41601613", "0.415749", "0.415489", "0.4154447", "0.41499674", "0.41411725", "0.41325486", "0.41312668", "0.41168687", "0.4115195", "0.41111025", "0.4102409", "0.4097681", "0.40958354", "0.40813595", "0.4077171", "0.4066266", "0.40630254", "0.40568247", "0.40499026", "0.40480992", "0.4047618", "0.40451562", "0.40418643", "0.40365872", "0.40347734", "0.4032069", "0.40290362", "0.40256697", "0.40165555", "0.40158004", "0.40142074", "0.4012409", "0.40107983", "0.40074983", "0.40008047", "0.40008047", "0.39990526", "0.39918682", "0.39917397", "0.39902508", "0.3988939", "0.39848137", "0.39848137", "0.39848137", "0.39848137", "0.39823523", "0.39815697" ]
0.62245995
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_DY_ROUTE.TRAFFIC
public Float getTraffic() { return traffic; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getTraffic() {\n return traffic;\n }", "public Long getTraffic() {\n\t\treturn traffic;\n\t}", "public jkt.hrms.masters.business.EtrTravelreq getTrv () {\n\t\treturn trv;\n\t}", "public Integer getTraffic() {\n return traffic;\n }", "public Integer getTraffic() {\n return traffic;\n }", "public String getTrafficType() {\n return this.trafficType;\n }", "public Travel getTravel() {\n return travel;\n }", "public Integer getTrip() {\n return trip;\n }", "org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl getTrafficControl();", "@Override\r\n\tpublic double rideFare() {\r\n\t\tdouble trafficRate = 1;\r\n\t\tswitch(this.getTrafficKind()) {\r\n\t\t case Low:\r\n\t\t\ttrafficRate = 1;break;\r\n\t\t\tcase Medium:\r\n\t\t\t\ttrafficRate = 1.1;break;\r\n\t\t\tcase High:\r\n\t\t\t\ttrafficRate = 1.5;break;\r\n\t\t}\r\n\t\tdouble basicRate = 0;\r\n\t\tif (this.getLength() <5) { \r\n\t\t\tbasicRate = 3.3;\r\n\t\t} else if (10 > this.getLength()){\r\n\t\t\tbasicRate = 4.2;\r\n\t\t} else if (this.getLength() <20){\r\n\t\t\tbasicRate = 1.91;\r\n\t\t} else {\r\n\t\t\tbasicRate = 1.5;\r\n\t\t}\r\n\t\t\r\n\t\treturn basicRate * trafficRate * this.getLength();\r\n\t}", "public double getTravelTime() {\n return travelTime;\n }", "public Integer getTravelTime() {\n\t\treturn travelTime;\n\t}", "public int getRt() {\n return rt_;\n }", "public Number getTramo() {\n return (Number) getAttributeInternal(TRAMO);\n }", "public int getRt() {\n return rt_;\n }", "public int getTotalRouteCost() {\n return totalRouteCost;\n }", "public Double getPercentTraffic() {\n return this.percentTraffic;\n }", "public int getTravelTime() {\r\n return travelTime;\r\n }", "@JsonIgnore public String getArrivalTerminal() {\n return (String) getValue(\"arrivalTerminal\");\n }", "public double getTruckArrivalTime() {\r\n\t\treturn truckArrivalTime.sample();\r\n\t}", "public double getTWAP() {\n return twap;\n }", "public Long getStateTrac() {\n return stateTrac;\n }", "public long lastReadThroughput()\r\n/* 189: */ {\r\n/* 190:370 */ return this.lastReadThroughput;\r\n/* 191: */ }", "public int getTotalTravelTime() {\n return totalTravelTime;\n }", "public Long getThroughput() {\n return this.throughput;\n }", "public String getTRS_TYPE() {\r\n return TRS_TYPE;\r\n }", "public Integer getRentWay() {\n return rentWay;\n }", "public final float getCurrentCartSpeedCapOnRail() {\n return currentSpeedRail;\n }", "public int getTriage (){\r\n return triage;\r\n }", "public Float getBhTraffic() {\r\n return bhTraffic;\r\n }", "public Integer getThroughput() {\n return this.throughput;\n }", "public String getTrainfo() {\n return trainfo;\n }", "public int getTrafficClass()\r\n/* 135: */ {\r\n/* 136: */ try\r\n/* 137: */ {\r\n/* 138:158 */ return this.javaSocket.getTrafficClass();\r\n/* 139: */ }\r\n/* 140: */ catch (SocketException e)\r\n/* 141: */ {\r\n/* 142:160 */ throw new ChannelException(e);\r\n/* 143: */ }\r\n/* 144: */ }", "public int get_flight() {\r\n return this.flight_nr;\r\n }", "public RouteTimetable getRouteTimetable() {\n return routeTimetable;\n }", "java.lang.String getTransitFlightDuration();", "public BigDecimal getTotalLatency() {\n return totalLatency;\n }", "public Duration getTravelTime() {\n return Duration.between(flights.get(0).getDepartureTime(), flights.get(flights.size()-1).getArrivalTime());\n }", "public Float getItraffic() {\r\n return itraffic;\r\n }", "private double getStopOverTime(Flight flight) {\n return flight.getDepartDateTime().timeDiff(arrivalDateTime);\n }", "public long getLatency() {\n return latency;\n }", "public String getTotal_latency() {\n return total_latency;\n }", "public double getFlightDur() {\n\t\treturn flightDur;\n\t}", "public Long getLineCarriageprice() {\n return lineCarriageprice;\n }", "public Double latency() {\n return this.latency;\n }", "public T trip() {\n return trip;\n }", "public double getValueOfTransceiver() {\n\t\treturn valueOfTransceiver;\n\t}", "public double getTrafficFromEachSuperAS() {\n return this.trafficFromSuperAS;\n }", "public BigDecimal getTRS_NO() {\r\n return TRS_NO;\r\n }", "public BigDecimal getTRS_NO() {\r\n return TRS_NO;\r\n }", "public List<TrafficWeight> traffic() {\n return this.traffic;\n }", "public Long getTotal_latency() {\n return total_latency;\n }", "@JsonIgnore public String getDepartureTerminal() {\n return (String) getValue(\"departureTerminal\");\n }", "int getRt();", "public String getTransmitRate()\r\n\t{\r\n\t\treturn transmitRate;\r\n\t}", "public int getRoadLength() {\n \t\treturn roadLength;\n \t}", "public int getRssi() {\n return rssi;\n }", "public int getTransitionLatency() {\n\t\t\tif (mTransitionLatency == 0) {\n\t\t\t\tList<String> list = ShellHelper.cat(\n\t\t\t\t\tmRoot.getAbsolutePath() + TRANSITION_LATENCY);\n\t\t\t\tif (list == null || list.isEmpty()) return 0;\n\t\t\t\tint value = 0;\n\t\t\t\ttry { value = Integer.valueOf(list.get(0)); }\n\t\t\t\tcatch (NumberFormatException ignored) {}\n\t\t\t\tmTransitionLatency = value;\t\t\t\n\t\t\t}\n\t\t\treturn mTransitionLatency;\n\t\t}", "public double getFlightTime() {\n\t\treturn flightTime;\n\t}", "double getTransRate();", "public int getRssi() {\r\n return rssi;\r\n }", "public Double throttleRate() {\n return this.throttleRate;\n }", "@Override\n\tpublic int getTripCount() {\n\t\treturn this.tripCount;\n\t}", "public double getThroughput () {\n\t\treturn throughputRequired;\n\t}", "public double getThrottle() {\n \treturn Math.abs(throttle.getY()) > DEADZONE ? throttle.getY() : 0;\n }", "public double tradeRate()\n\t{\n\t\treturn _dblTradeRate;\n\t}", "public double getRightAcceleration() {\n return rightEnc.getAcceleration();\n }", "@Override\r\n\tpublic double getThrustRightHand() {\n\t\treturn rechtThrust;\r\n\t}", "public String getPayload() {\n\t\t\t\t\t\treturn payLoad;\r\n\t\t\t\t\t}", "java.lang.String getTransitAirportDuration();", "public int getTTL() {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getTTL() \");\n Via via=(Via)sipHeader;\n return via.getTTL();\n }", "public com.vmware.converter.DvsHostInfrastructureTrafficResource[] getInfrastructureTrafficResourceConfig() {\r\n return infrastructureTrafficResourceConfig;\r\n }", "public int getTrajectoryID() {\n return trajectoryid;\n }", "public double getTurnRate() {\n return mDThetaDT;\n }", "public BigDecimal getDEALER_TRX_LIMITS_CROSS_RATE() {\r\n return DEALER_TRX_LIMITS_CROSS_RATE;\r\n }", "public BigDecimal getTRX_NO() {\r\n return TRX_NO;\r\n }", "public BigDecimal getAvgLatency() {\n return avgLatency;\n }", "public Float getBhEdlTraf() {\r\n return bhEdlTraf;\r\n }", "public int getTrades() {\n return trades;\n }", "public double getTurnRate() {\n return m_gyro.getRate() * (DriveConstants.kGyroReversed ? -1.0 : 1.0);\n }", "public int getAdditionalStopCost() {\n return additionalStopCost;\n }", "public java.math.BigInteger getFrequencyOfRoute() {\r\n return frequencyOfRoute;\r\n }", "public String getTrace() {\n return trace;\n }", "public double getRightRate() {\n return rightEnc.getRate();\n }", "java.lang.String getTransitAirport();", "public int getInflightingRPCCounter() {\n return inflightingRPCCounter.get();\n }", "@Override\n\tpublic int[] getVehicleLoad() {\n\t\t\n\t\tint temp[] ={constantPO.getVanLoad(),constantPO.getRailwayLoad(),constantPO.getAirplaneLoad()};\n\t\t\n\t\treturn temp;\n\t}", "public Triangle getTridroit() {\r\n return tridroit;\r\n }", "double getThroughput();", "public int getVehiclePerformance() {\n return itemAttribute;\n }", "public Double getLargestReceiveSuccessResponseThroughput()\r\n {\r\n return largestReceiveSuccessResponseThroughput;\r\n }", "public Double getLtRtSurroundMixLevel() {\n return this.ltRtSurroundMixLevel;\n }", "public Double getReceiveSuccessResponseThroughput()\r\n {\r\n return receiveSuccessResponseThroughput;\r\n }", "public static String getTrail() {\n\t\treturn trail.toString();\n\t}", "public Float getHsdpaDlTraff() {\n return hsdpaDlTraff;\n }", "public double getTransportPrice() {\n return transportPrice;\n }", "@Override\n public Class<TripsRecord> getRecordType() {\n return TripsRecord.class;\n }", "public int getRemainingAir ( ) {\n\t\treturn extract ( handle -> handle.getRemainingAir ( ) );\n\t}", "public float getVehicleSpeed() {\n return vehicleSpeed;\n }", "public void calculateFlightDuration() {\r\n\t\tthis.flightDuration = getArrivalTime() - getDepartureTime();\r\n\t\tdetailsRoute[2] = Integer.toString(this.flightDuration);\r\n\t}" ]
[ "0.576284", "0.5758834", "0.5702602", "0.5508333", "0.5508333", "0.54011476", "0.5301843", "0.5217439", "0.520052", "0.51505476", "0.50691324", "0.5051789", "0.5024907", "0.5022847", "0.5018244", "0.4987884", "0.49811217", "0.49656916", "0.49528584", "0.49172908", "0.48862633", "0.48792303", "0.48755375", "0.48642665", "0.48556557", "0.48389804", "0.483302", "0.4829641", "0.48274195", "0.48221436", "0.48101807", "0.47982147", "0.4797749", "0.4796293", "0.4782019", "0.47751033", "0.47714975", "0.47648692", "0.47564024", "0.47438386", "0.47425342", "0.47261053", "0.47258878", "0.47217363", "0.47137052", "0.47050175", "0.47022435", "0.47018763", "0.46881184", "0.46881184", "0.46867424", "0.4683483", "0.46526188", "0.4652313", "0.46427026", "0.46226835", "0.46184862", "0.46109775", "0.46085197", "0.46020195", "0.45990437", "0.4592633", "0.45870587", "0.4581191", "0.45598382", "0.45592597", "0.45513573", "0.45495254", "0.45252964", "0.4517251", "0.45167944", "0.45157316", "0.44993737", "0.44990876", "0.44940385", "0.44906896", "0.44812065", "0.44786265", "0.44771627", "0.4474093", "0.44733292", "0.44654208", "0.44649848", "0.44609037", "0.4458645", "0.44538876", "0.44538632", "0.4450409", "0.44452032", "0.4443098", "0.44422808", "0.4437957", "0.44306606", "0.44292775", "0.44288948", "0.44262546", "0.4421559", "0.44150597", "0.44138694", "0.44117752" ]
0.51904595
9
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_ROUTE.TRAFFIC
public void setTraffic(Float traffic) { this.traffic = traffic; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setTrafficControl(org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl trafficControl);", "public void setTrv (jkt.hrms.masters.business.EtrTravelreq trv) {\n\t\tthis.trv = trv;\n\t}", "public void setAlternateRoute(short trainId, TrainRoute r) {\n\t\ttrainRoutes.put(trainId, r);\n\t}", "public void setTraffic(Long traffic) {\n\t\tthis.traffic = traffic;\n\t}", "@Override\r\n\tpublic double rideFare() {\r\n\t\tdouble trafficRate = 1;\r\n\t\tswitch(this.getTrafficKind()) {\r\n\t\t case Low:\r\n\t\t\ttrafficRate = 1;break;\r\n\t\t\tcase Medium:\r\n\t\t\t\ttrafficRate = 1.1;break;\r\n\t\t\tcase High:\r\n\t\t\t\ttrafficRate = 1.5;break;\r\n\t\t}\r\n\t\tdouble basicRate = 0;\r\n\t\tif (this.getLength() <5) { \r\n\t\t\tbasicRate = 3.3;\r\n\t\t} else if (10 > this.getLength()){\r\n\t\t\tbasicRate = 4.2;\r\n\t\t} else if (this.getLength() <20){\r\n\t\t\tbasicRate = 1.91;\r\n\t\t} else {\r\n\t\t\tbasicRate = 1.5;\r\n\t\t}\r\n\t\t\r\n\t\treturn basicRate * trafficRate * this.getLength();\r\n\t}", "public jkt.hrms.masters.business.EtrTravelreq getTrv () {\n\t\treturn trv;\n\t}", "public double getTraffic() {\n return traffic;\n }", "public native void setRTOFactor (double RTOfactor);", "private void setupTurnRoadCharacteristic() {\n turnRoadCharacteristic =\n new BluetoothGattCharacteristic(CHARACT_TURNROAD_UUID,\n BluetoothGattCharacteristic.PROPERTY_READ | BluetoothGattCharacteristic.PROPERTY_WRITE | BluetoothGattCharacteristic.PROPERTY_NOTIFY,\n BluetoothGattCharacteristic.PERMISSION_READ | BluetoothGattCharacteristic.PERMISSION_WRITE);\n\n turnRoadCharacteristic.addDescriptor(\n Peripheral.getClientCharacteristicConfigurationDescriptor());\n\n turnRoadCharacteristic.addDescriptor(\n Peripheral.getCharacteristicUserDescriptionDescriptor(CHARACT_TURNROAD_DESC));\n\n turnRoadCharacteristic.setValue(turnRoadCharacteristic_value);\n }", "public void setTrip(Integer trip) {\n this.trip = trip;\n }", "public void setTrip(String trip)\r\n {\r\n this.trip=trip;\r\n }", "public void setTraffic(Integer traffic) {\n this.traffic = traffic;\n }", "public void setTraffic(Integer traffic) {\n this.traffic = traffic;\n }", "public Long getTraffic() {\n\t\treturn traffic;\n\t}", "@Override\n\tpublic void onReCalculateRouteForTrafficJam() {\n\n\t}", "public void setTravel(Travel travel) {\n this.travel = travel;\n }", "public void setThroughput(Long throughput) {\n this.throughput = throughput;\n }", "void setControlType(org.landxml.schema.landXML11.TrafficControlType.Enum controlType);", "public void setInfrastructureTrafficResourceConfig(com.vmware.converter.DvsHostInfrastructureTrafficResource[] infrastructureTrafficResourceConfig) {\r\n this.infrastructureTrafficResourceConfig = infrastructureTrafficResourceConfig;\r\n }", "public void addTrafficLight(int roadRef, String whichEnd) {\n roads.get(roadRef - 1).addTrafficLight(whichEnd);\n }", "public native void setRTOConstant (int RTOconstant);", "public void setTrafficType(String trafficType) {\n this.trafficType = trafficType;\n }", "public void setRentWay(Integer rentWay) {\n this.rentWay = rentWay;\n }", "public String getTrafficType() {\n return this.trafficType;\n }", "public void setTunnelRail(Rail r, String d) {\n this.tunnelRail = r;\n this.dir = d;\n }", "@Override\r\n\tpublic void onReCalculateRouteForTrafficJam() {\n\r\n\t}", "public void setThroughput(Integer throughput) {\n this.throughput = throughput;\n }", "public void setTravelAdvance(TravelAdvance travelAdvance) {\n this.travelAdvance = travelAdvance;\n }", "public void setTrafficType(TrafficType trafficType) {\n withTrafficType(trafficType);\n }", "public void setTRS_TYPE(String TRS_TYPE) {\r\n this.TRS_TYPE = TRS_TYPE == null ? null : TRS_TYPE.trim();\r\n }", "public void setTravelTime(final Integer travelTime) {\n\t\tthis.travelTime = travelTime;\n\t}", "public static void setTRPath(String path)\n\t{\n\t\t//mgizaTRPath=path;\n\t\ttrMap=new TRMap(path);\n\t}", "public void setDirectionOfTravel(typekey.DirectionOfTravelPEL value);", "@Required\n\tpublic void setTravelRouteFacade(final TravelRouteFacade travelRouteFacade)\n\t{\n\t\tthis.travelRouteFacade = travelRouteFacade;\n\t}", "public JSONObject update() throws Exception{\n String urlString;\r\n if(this.targetDirection == -1){\r\n urlString = \"https://ptx.transportdata.tw/MOTC/v2/Bus/EstimatedTimeOfArrival/City/\" + route.getCityName() + \"?$filter=\" + URLEncoder.encode(\"StopUID eq '\" + targetStopUID + \"' \", \"UTF-8\") + \"&$format=JSON\";\r\n }else{\r\n urlString = \"https://ptx.transportdata.tw/MOTC/v2/Bus/EstimatedTimeOfArrival/City/\" + route.getCityName() + \"?$filter=\" + URLEncoder.encode(\"StopUID eq '\" + targetStopUID + \"' and Direction eq '\"+ targetDirection +\"' \", \"UTF-8\") + \"&$format=JSON\";\r\n }\r\n urlString = urlString.replaceAll(\"\\\\+\", \"%20\");\r\n PTXPlatform ptxp = new PTXPlatform(urlString);\r\n \r\n try{\r\n this.stopData = new JSONArray(ptxp.getData()).getJSONObject(0);\r\n }catch(Exception e){\r\n System.out.println(\"Maybe Direction are not using in this route, please set direction to -1.\");\r\n }\r\n return stopFilter(stopData);\r\n }", "public Integer getTraffic() {\n return traffic;\n }", "public Integer getTraffic() {\n return traffic;\n }", "public void setTotalTravelTime(int totalTravelTime) {\n this.totalTravelTime = totalTravelTime;\n }", "public IRoadSensor setRoadStatus(ERoadStatus s);", "public void setDtr(boolean status) throws FTD2XXException {\n if (status) {\n ensureFTStatus(ftd2xx.FT_SetDtr(ftHandle));\n }\n else {\n ensureFTStatus(ftd2xx.FT_ClrDtr(ftHandle));\n }\n }", "public void setTravelDirection(int travelDirection) {\n\t\t//TODO: Should not be any number except 0 - 5\n\t\t/*\n\n\t\t */\n\t\t\n\t\t/*\n\t\t * The user should not be able to set their direction to 180 degrees opposite\n\t\t * If they try to, ignore it, but add it to the logs\n\t\t * Example; Travel Direction = north, user can not set direction to south\n\t\t * Example; Travel Direction = west, user can not set direction to east\n\t\t */\n\t\tthis.travelDirection = travelDirection;\n\t\tlogger.debug(\"TravelDirection set to \" + travelDirection);\n\t}", "public void setThroughput(double throughput) {\n\t\tthis.throughputRequired = throughput;\n\t}", "public void setTrid(int trid) {\n this.trid = trid;\n }", "public final void setAdvanceFilterTRModel(AdvanceFilterTRModel advanceFilterTRModel) {\r\n\t\tthis.advanceFilterTRModel = advanceFilterTRModel;\r\n\t}", "public Travel getTravel() {\n return travel;\n }", "@Override\n\tpublic void setVehicleLoad(int van, int railway, int airplane) {\n\t\tconstantPO.setVanLoad(van);\n\t\tconstantPO.setRailwayLoad(railway);\n\t\tconstantPO.setAirplaneLoad(airplane);\n\t}", "org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl getTrafficControl();", "public void setReverseAgency(boolean value) {\r\n this.reverseAgency = value;\r\n }", "public void setAdvanceTravelPayment(TravelPayment advanceTravelPayment) {\n this.advanceTravelPayment = advanceTravelPayment;\n }", "public native void setInitialAssumedRTT (long RTT);", "public void setRefFrameVelocity(double value) {\n _avTable.set(ATTR_RF_VELOCITY, value);\n }", "public void setVehiclePerformance(int vehiclePerformance) {\n this.itemAttribute = vehiclePerformance;\n }", "void setRoute(String routeID);", "public void setTWAP(double value) {\n this.twap = value;\n }", "public void setTrafficClass (int tc) {\n if ( tc < 0 || tc > 255)\n throw new IllegalArgumentException();\n trafficClass = tc;\n }", "public void setStateTrac(Long stateTrac) {\n this.stateTrac = stateTrac;\n }", "public void setPercentTraffic(Double percentTraffic) {\n this.percentTraffic = percentTraffic;\n }", "@Override\r\n\tpublic void travelMode() {\n\t\tthis.travelMode = \"Car\";\r\n\t\tSystem.out.println(\"Mode of travel selected is \"+ this.travelMode);\r\n\r\n\t}", "public void setTrades(int value) {\n this.trades = value;\n }", "public Trip(Vehicle v, boolean round) {\r\n this.vehicle = v;\r\n roundTrip = round;\r\n }", "private void determinationVATRate(Vehicle vehicle) {\n if (vehicle.getEngineType().name().equals(\"electric\")) {\n vehicle.setVATRate(0);\n } else {\n vehicle.setVATRate(20);\n }\n }", "public void setRoutingNo (String RoutingNo);", "public TripFlight getTripFlight(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.tripflight.v1.TripFlight res){\n\t\tTripFlight tripFlight = new TripFlight();\n\t\t/*\n\t\tif( res.getDuration() != null ){\n\t\t\ttripFlight.setDuration( res.getDuration().intValue() );\n\t\t}\n\t\ttripFlight.setContractDocumentNo( res.getContractDocumentNo() );\n\t\ttripFlight.setRevisionNo( res.getRevisionNo() );\n\t\ttripFlight.setLineNo( res.getLineNo() );\n\t\ttripFlight.setGuestAllocation( res.getGuestAllocation() );\n\t\ttripFlight.setNegotiatedFareCode( res.getNegotiatedFareCode() );\n\t\tif( res.getTicketedDate() != null ){\n\t\t\ttripFlight.setTicketedDate( this.getDate( res.getTicketedDate() ) );\n\t\t}\n\t\tif( res.isPackageFlightNoChange() != null ){\n\t\t\ttripFlight.setPackageFlightNoChange( res.isPackageFlightNoChange().booleanValue() );\n\t\t}\n\t\tif( res.getOutboundFlight() != null ){\n\t\t\ttripFlight.setOutboundFlight( this.getFlight( res.getOutboundFlight() ) );\n\t\t}\n\t\tif( res.getInboundFlight() != null ){\n\t\t\ttripFlight.setInboundFlight( this.getFlight( res.getInboundFlight() ) );\n\t\t}\n\t\tif( res.getPrice() != null ){\n\t\t\ttripFlight.setPrice( this.getPrice( res.getPrice() ) );\n\t\t}\n\t\tif( res.getTripType() != null ){\n\t\t\ttripFlight.setTripType( this.getFlightTripType( res.getTripType() ) );\n\t\t}\n\t\tif( res.getFlightType() != null ){\n\t\t\ttripFlight.setFlightType( this.getFlightType( res.getFlightType() ) );\n\t\t}\n\t\tif( res.getStatus() != null ){\n\t\t\ttripFlight.setStatus( this.getFlightStatus( res.getStatus() ) );\n\t\t}\n\t\tif( res.getCarrier() != null ){\n\t\t\ttripFlight.setCarrier( this.getCarrier( res.getCarrier() ) );\n\t\t}\n\t\tif( res.getOccupancy() != null ){\n\t\t\ttripFlight.setOccupancy( this.getOccupancy( res.getOccupancy() ) );\n\t\t}\n\t\t*/\n\t\treturn tripFlight;\n\t}", "public void setPRTNO(java.lang.Integer PRTNO) {\n this.PRTNO = PRTNO;\n }", "public Float getTraffic() {\r\n return traffic;\r\n }", "TradeRoute(String aStartPoint, String anEndPoint, int anId){\n startPoint = aStartPoint;\n endPoint = anEndPoint;\n id = anId;\n }", "@Override\n void setJourney(String line, TransitCard transitCard) {\n SubwayLine subwayLine = SubwaySystem.getSubwayLineByName(line);\n int startIndex = subwayLine.getStationList().indexOf(this.startLocation);\n int endIndex = subwayLine.getStationList().indexOf(this.endLocation);\n if (startIndex < endIndex) {\n while (!subwayLine\n .getStationList()\n .get(startIndex)\n .getNodeName()\n .equals(this.endLocation.getNodeName())) {\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n transitCard.increaseStationReached();\n startIndex++;\n }\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n } else {\n while (!subwayLine\n .getStationList()\n .get(startIndex)\n .getNodeName()\n .equals(this.endLocation.getNodeName())) {\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n transitCard.increaseStationReached();\n startIndex--;\n }\n this.addTransitNode(subwayLine.getStationList().get(startIndex));\n }\n double d =\n Distance.getDistance(\n startLocation.getNodeLocation().get(0),\n startLocation.getNodeLocation().get(1),\n endLocation.getNodeLocation().get(0),\n endLocation.getNodeLocation().get(1));\n Administrator.getListOfDays()\n .get(Administrator.getListOfDays().size() - 1)\n .incrementDistance(d);\n Administrator.getListOfDays()\n .get(Administrator.getListOfDays().size() - 1)\n .incrementPassengers();\n }", "public void setReceiveSuccessResponseThroughput(Double receiveSuccessResponseThroughput)\r\n {\r\n this.receiveSuccessResponseThroughput = receiveSuccessResponseThroughput;\r\n }", "public void setNextRoad(CarAcceptor r) {\n\t\tthis.firstRoad = r;\n\t}", "public void setRecordRoute() {\r\n\t\tthis.recordRoute = true;\r\n\t}", "public void setTramiteId(java.lang.String tramiteId) {\n this.tramiteId = tramiteId;\n }", "public void setRoute (JsonObject journey) {\n\t\tsetDate(journey.get(\"date\").getAsString());\n\t\tsetStart(journey.get(\"start\").getAsString());\n\t\tsetDestination(journey.get(\"dest\").getAsString());\n\t setArrivalTime(journey.get(\"arrivalTime\").getAsString());\n\t \t\n\t JsonArray segmentJs = journey.getAsJsonArray(\"segments\");\n\t for (int i = 0; i < segmentJs.size(); i++) {\n\t\t\tSegment segment = new Segment();\n\t\t\tsegment.setSegment(segmentJs.get(i).getAsJsonObject());\n\t\t\tmSegmentList.add(i, segment);\n\t\t}\n\t mSegmentList.trimToSize();\n\t setDepartureTime(segmentJs.get(0).getAsJsonObject());\n\t}", "void setRoadway(org.landxml.schema.landXML11.RoadwayDocument.Roadway roadway);", "public final float getCurrentCartSpeedCapOnRail() {\n return currentSpeedRail;\n }", "public Object setintrate(double rate)\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setintrate : \" + \"Agent\");\r\n/* 67 */ \tthis.intrate = rate;\r\n/* 68 */ \tthis.intratep1 = (this.intrate + 1.0D);\r\n/* 69 */ \treturn this;\r\n/* */ }", "Trip(Time start_time, TTC start_station, String type, String number){\n this.START_TIME = start_time;\n this.START_STATION = start_station;\n this.deducted = 0;\n this.listOfStops = new ArrayList<>();\n this.TYPE = type;\n this.NUMBER = number;\n }", "private static void setRTTTransmissionPolicy() {\n\n /*\n * Set the transmission policy for each of the JChord event types\n */\n TransmissionPolicyManager.setClassPolicy(Event.class.getName(),\n PolicyType.BY_VALUE, true);\n TransmissionPolicyManager.setClassPolicy(HashMap.class.getName(),\n PolicyType.BY_VALUE, true);\n\n /*\n * Set the transmission policy for KeyImpl, JChordNextHopResult and\n * SuccessorList objects\n */\n TransmissionPolicyManager.setClassPolicy(JChordNextHopResult.class\n .getName(), PolicyType.BY_VALUE, true);\n TransmissionPolicyManager.setClassPolicy(KeyImpl.class.getName(),\n PolicyType.BY_VALUE, true);\n\n// RafdaRunTime.registerCustomSerializer(SuccessorList.class,\n// new jchord_impl_SuccessorList());\n// TransmissionPolicyManager.setClassPolicy(SuccessorList.class.getName(),\n// PolicyType.BY_VALUE, true);\n \n// TransmissionPolicyManager.setReturnValuePolicy(JChordNodeImpl.class\n// .getName(), \"getSuccessorList\", PolicyType.BY_VALUE, true);\n\n /*\n * Set the transmission policy for the 'node_rep' fields of\n * JChordNodeImpl objects\n */\n String JChordNodeImplName = JChordNodeImpl.class.getName();\n TransmissionPolicyManager.setFieldToBeCached(JChordNodeImplName,\n \"hostAddress\");\n TransmissionPolicyManager.setFieldToBeCached(JChordNodeImplName, \"key\");\n }", "public Integer getTrip() {\n return trip;\n }", "@SuppressWarnings(\"unused\")\n private void setTrafficEnabled(final JSONArray args, final CallbackContext callbackContext) throws JSONException {\n Boolean isEnabled = args.getBoolean(1);\n map.setTrafficEnabled(isEnabled);\n this.sendNoResult(callbackContext);\n }", "void setRoadTerrain(org.landxml.schema.landXML11.RoadTerrainType.Enum roadTerrain);", "public void setFlightDur(Double flightDur) {\n\t\tthis.flightDur = flightDur;\n\t}", "public void setTrajectoryID(int trajectoryid) {\n this.trajectoryid = trajectoryid;\n }", "public void setRoadwayPI(double roadwayPI)\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.setDoubleValue(roadwayPI);\r\n }\r\n }", "private void updateTbtNavigationService() {\n updateNavStateCharacteristic();\n updateTurnIconCharacteristic();\n updateTurnDistanceCharacteristic();\n updateTurnInfoCharacteristic();\n updateTurnRoadCharacteristic();\n updateEstArrivalTimeCharacteristic();\n updateDist2DestCharacteristic();\n updateNotificationCharacteristic();\n updateNavigationCommandCharacteristic();\n }", "public void setRoadLength(int roadLength) {\n \t\tif (roadLength > this.roadLength)\n \t\t\tthis.roadLength = roadLength;\n \t}", "public native void setMaximumRTO (long RTO);", "public void setRoutePoint(AKeyCallPoint routePoint) {\n\t\t\tthis.routePoint = routePoint;\n\t\t}", "public void setItraffic(Float itraffic) {\r\n this.itraffic = itraffic;\r\n }", "public void setArmTalon(double outputval) {\n\t\tarmMotor.set(outputval);\n\t}", "public void setTestRecordData(TestRecordData trdata) { this.trdata = trdata; }", "public Builder setRt(int value) {\n bitField0_ |= 0x00000001;\n rt_ = value;\n onChanged();\n return this;\n }", "public static void init_default_traffic() throws SQLException{\n\t\tint length = Common.roadlist.length;\n\t\tdefault_traffic = new double[length][(int)Common.max_seg + 1];\n\t\t//28 classes of road ,max id is 305, set 350 here\n\t\tdefault_class_traffic = new double [350][(int)Common.max_seg + 1];\n\t\t//start read traffic from database\n\t\tConnection con = Common.getConnection();\n\t\ttry{\n\t\t\t//read default road speed\n\t\t\tStatement stmt = con.createStatement();\n\t\t\t//read by period\n\t\t\tfor(int i=1; i<=Common.max_seg; i++){\n\t\t\t\tString traffic_table = Common.history_road_slice_table + i;\n\t\t\t\t//read data\n\t\t\t\tString sql = \"select * from \" + traffic_table + \";\";\n\t\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\t\tint[] class_id_counter = new int[350];\n\t\t\t\twhile(rs.next()){\n\t\t\t\t\tint gid = rs.getInt(\"gid\");\n\t\t\t\t\tint class_id = rs.getInt(\"class_id\");\n\t\t\t\t\tclass_id_counter[class_id]++;\n\t\t\t\t\t//Common.logger.debug(gid);\n\t\t\t\t\tdouble speed = rs.getDouble(\"average_speed\");\n\t\t\t\t\tdefault_traffic[gid][i] = speed;\n\t\t\t\t\tdefault_class_traffic[class_id][i] += speed;\n\t\t\t\t}\n\t\t\t\t//get average speed of roads in same class\n\t\t\t\tfor(int j=0; j<class_id_counter.length; j++){\n\t\t\t\t\tint counter = class_id_counter[j];\n\t\t\t\t\tif(counter > 0){\n\t\t\t\t\t\tdefault_class_traffic[j][i] /= counter;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tcon.rollback();\n\t\t}\n\t\tfinally{\n\t\t\tcon.commit();\n\t\t}\t\t\n\t}", "public MeterLnTrafficController() {\n super();\n Meter = this;\n MyGovernor = new Governor();\n Governor.OutputThread = new Thread(MyGovernor);\n Governor.OutputThread.setName(\"LnMeter\");\n Governor.OutputThread.start();\n Governor.OutputThread.setPriority(Thread.MAX_PRIORITY);\n if (FlowRate == null) {\n FlowRate = CounterFactory.CountKeeper.findSequence(\n CounterFactory.LNTAG);\n CounterFactory.CountKeeper.exposeSequence(CounterFactory.LNTAG);\n FlowRate.registerAdjustmentListener(this);\n DecoratedController = findLNController();\n }\n }", "public void setRTRNCD(int value) {\n this.rtrncd = value;\n }", "public void liftArm(){armLifty.set(-drivePad.getThrottle());}", "public Flight(String FlightNumber, int departureTime, int arrivalTime, double price) {\r\n\t\tdetailsRoute[0] = this.FlightNumber = FlightNumber;\r\n\t\tdetailsRoute[1] = Integer.toString(this.departureTime = departureTime);\r\n\t\tdetailsRoute[3] = Integer.toString(this.arrivalTime = arrivalTime);\r\n\t\tdetailsRoute[4] = Double.toString(this.price = price);\r\n\t\tdetailsRoute[2] = Integer.toString(this.flightDuration = (arrivalTime - departureTime));\r\n\r\n\t}", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.tripflight.v1.TripFlight getTripFlightReq(TripFlight tripFlight){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.tripflight.v1.TripFlight tripFlightReq =\n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.tripflight.v1.TripFlight();\n\t\t\n\t\t//tripFlightReq.setDuration( new Integer(tripFlight.getDuration()) );\n\t\t//tripFlightReq.setContractDocumentNo( tripFlight.getContractDocumentNo() );\n\t\t//tripFlightReq.setRevisionNo( tripFlight.getRevisionNo() );\n\t\t//tripFlightReq.setLineNo( tripFlight.getLineNo() );\n\t\t//tripFlightReq.setGuestAllocation( tripFlight.getGuestAllocation() );\n\t\t//tripFlightReq.setNegotiatedFareCode( tripFlight.getNegotiatedFareCode() );\n\t\tif( tripFlight.getTicketedDate() != null ){\n\t\t\t//tripFlightReq.setTicketedDate( this.getDate( tripFlight.getTicketedDate() ) );\n\t\t}\n\t\tif( tripFlight.getOccupancy() != null ){\n\t\t\t//tripFlightReq.setOccupancy( this.getOccupancy( tripFlight.getOccupancy() ) );\n\t\t}\n\t\tif( tripFlight.getTripType() != null ){\n\t\t\t//tripFlightReq.setTripType( this.getFlightTripType(tripFlight.getTripType()) );\n\t\t}\n\t\tif( tripFlight.getFlightType() != null ){\n\t\t\t//tripFlightReq.setFlightType( this.getFlightType(tripFlight.getFlightType()) );\n\t\t}\n\t\tif( tripFlight.getStatus() != null ){\n\t\t\t//tripFlightReq.setStatus( this.getFlightStatus(tripFlight.getStatus()) );\n\t\t}\n\t\tif( tripFlight.getCarrier() != null ){\n\t\t\t//tripFlightReq.setCarrier( this.getCarrier(tripFlight.getCarrier()) );\n\t\t}\n\t\tif( tripFlight.getOutboundFlight() != null ){\n\t\t\t//tripFlightReq.setOutboundFlight( this.getFlight(tripFlight.getOutboundFlight()) );\n\t\t}\n\t\tif( tripFlight.getInboundFlight() != null ){\n\t\t\t//tripFlightReq.setInboundFlight( this.getFlight(tripFlight.getInboundFlight()) );\n\t\t}\n\t\tif( tripFlight.getPrice() != null ){\n\t\t\t//tripFlightReq.setPrice( this.getPrice(tripFlight.getPrice()) );\n\t\t}\n\t\t\n\t\treturn tripFlightReq;\n\t}", "public Double getPercentTraffic() {\n return this.percentTraffic;\n }", "private void addRoute(Route rte) {\n\t\trteTbl.add(rte);\n\t}", "public void setLineCarriageprice(Long lineCarriageprice) {\n this.lineCarriageprice = lineCarriageprice;\n }" ]
[ "0.49345422", "0.49333933", "0.47313514", "0.47183588", "0.46696287", "0.46688667", "0.46400157", "0.46344182", "0.46074754", "0.45480216", "0.45453274", "0.45445126", "0.45445126", "0.4537744", "0.45273083", "0.4517241", "0.450209", "0.44859225", "0.44738406", "0.4462761", "0.44583783", "0.44564718", "0.44553995", "0.44415084", "0.44380543", "0.44317067", "0.44255543", "0.4414996", "0.44069147", "0.44033384", "0.4395403", "0.43718717", "0.43636993", "0.43495798", "0.43194902", "0.4314789", "0.4314789", "0.43125027", "0.43083772", "0.4306145", "0.43038666", "0.43018445", "0.43006927", "0.42985874", "0.42969966", "0.4276494", "0.42735577", "0.42691755", "0.4264907", "0.42582047", "0.4254006", "0.42387277", "0.42241403", "0.42126882", "0.42125696", "0.42053244", "0.4200594", "0.41989917", "0.41983357", "0.41837278", "0.41802225", "0.41755217", "0.4174158", "0.41708228", "0.41673157", "0.4164502", "0.41633782", "0.4146478", "0.41330296", "0.41301027", "0.41279352", "0.41269818", "0.41234392", "0.4123323", "0.41204768", "0.4110972", "0.41022825", "0.41002995", "0.40990973", "0.40952155", "0.40947828", "0.4086361", "0.40818512", "0.4069222", "0.40639615", "0.40538868", "0.40485698", "0.40404436", "0.4036768", "0.40336704", "0.4025209", "0.40250194", "0.40195853", "0.40181035", "0.40125763", "0.40045133", "0.4001981", "0.39974502", "0.39912835", "0.3974559" ]
0.43557146
33
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_DY_ROUTE.CALLS
public Long getCalls() { return calls; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Call[] getCalls();", "public Set getCalls() { return calls; }", "public String getAllCallsStatement() {\n\t\treturn \"SELECT * FROM CALLS\";\n\t}", "@Override\n public Collection<PhoneCall> getPhoneCalls() {\n return this.calls;\n }", "public List<CallItem> findAllCalls() {\n\t\tString orderBy = CallsDBOpenHelper.COLUMN_CALL_DATE + \" DESC, \" + CallsDBOpenHelper.COLUMN_CALL_HOUR + \" DESC\";\n\t\tCursor cursor = dataBase.query(CallsDBOpenHelper.TABLE_CALLS, callsTable_allColumns,\n\t\t\t\tnull, null, null, null, orderBy);\n\n\t\tList<CallItem> calls = cursorToCallItemList(cursor);\n\t\treturn calls;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.RateBookCalcRoutine[] getRateBookCalcRoutines();", "@Override\n public List<DgCallService> getCallServiceTop5(String posID) {\n \tDgPos dgPos = dgPosMapper.selectPosByPosId(Integer.valueOf(posID));\n\t\tList<Integer> integers = StringUtil.arrayToList(dgPos\n\t\t\t\t.getConsumerAreas());\n\t\tMap org = new HashMap();\n\t\torg.put(\"areaIds\",integers);\n\t\torg.put(\"type\",1);\n return dgCallServiceMapper.selectTop5(org);\n }", "public java.lang.Integer getCalltype() {\r\n return calltype;\r\n }", "public int getCallsNb();", "public String getCallLeg() {\n return this.callLeg;\n }", "public Call getCall() {\n\treturn call;\n }", "public CallLog[] getCallLogs();", "public int getRXRReps() { \r\n \treturn getReps(\"RXR\");\r\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Defines a sequence of digits that, when entered by this caller, invokes the `callControlUrl`. Only digits plus '*', and '#' may be used.\")\n\n public String getCallControlSequence() {\n return callControlSequence;\n }", "public int getCallId() {\n return this.mCallId;\n }", "public String getCallsByContactIdStatement() {\n\t\treturn \"SELECT * FROM CALLS WHERE CONTACT_ID = ? \";\n\t}", "io.dstore.values.StringValue getProcedureNames();", "public void setCalls(Long calls) {\r\n this.calls = calls;\r\n }", "public int getNumberOutboundStops(){\n\t \treturn 0;\n\t \t\n\t \t\n\t }", "public Call getCurrentCall();", "public Call[] getCalls(QName arg0) throws ServiceException {\n\t\treturn null;\n\t}", "public String[] getRoutes() {\n\t\treturn routes;\r\n\t}", "public int getNumberInboundStops(){\n\t \treturn 0;\n\t \t\n\t }", "public java.util.List getColumnNamesCalls() {\n\t\treturn Arrays.asList(columnNamesCallsTable);\n\t}", "public io.dstore.values.StringValue getProcedureNames() {\n return procedureNames_ == null ? io.dstore.values.StringValue.getDefaultInstance() : procedureNames_;\n }", "public Object getCallOutput() {\n\t\treturn null;\n\t}", "com.google.ads.googleads.v6.resources.CallView getCallView();", "public RuleCall getSTRINGTerminalRuleCall() { return cSTRINGTerminalRuleCall; }", "public RuleCall getSTRINGTerminalRuleCall() { return cSTRINGTerminalRuleCall; }", "public RuleCall getSTRINGTerminalRuleCall() { return cSTRINGTerminalRuleCall; }", "public RuleCall getSTRINGTerminalRuleCall() { return cSTRINGTerminalRuleCall; }", "public RuleCall getSTRINGTerminalRuleCall() { return cSTRINGTerminalRuleCall; }", "public RuleCall getSTRINGTerminalRuleCall() { return cSTRINGTerminalRuleCall; }", "public RuleCall getSTRINGTerminalRuleCall() { return cSTRINGTerminalRuleCall; }", "public RuleCall getSTRINGTerminalRuleCall() { return cSTRINGTerminalRuleCall; }", "public RuleCall getSTRINGTerminalRuleCall() { return cSTRINGTerminalRuleCall; }", "@Override\n\t@Transactional\n\tpublic List callProcR(String proc, List<String> paras) {\n\t\tSession session = getHibernateTemplate().getSessionFactory().openSession();\n\t\t// Transaction tx = session.beginTransaction();\n\t\tSQLQuery q = session.createSQLQuery(\"{call \" + proc + \"(?) }\");\n\t\tif (paras != null) {\n\t\t\tint i = 0;\n\t\t\tfor (String para : paras) {\n\t\t\t\tq.setString(i++, para);\n\t\t\t}\n\t\t}\n\t\treturn q.list();\n\n\t}", "private String getCallDetails() {\n Cursor managedCursor = getContentResolver().query(\n CallLog.Calls.CONTENT_URI, null, null, null, null);\n // Get the number\n int number = managedCursor.getColumnIndex(CallLog.Calls.NUMBER);\n // Get the name\n int name = managedCursor.getColumnIndex(CallLog.Calls.CACHED_NAME);\n // Get the type of the call\n int type = managedCursor.getColumnIndex(CallLog.Calls.TYPE);\n // Get the date of the call\n int date = managedCursor.getColumnIndex(CallLog.Calls.DATE);\n // Get the time of the call\n int duration = managedCursor.getColumnIndex(CallLog.Calls.DURATION);\n // Check whether the cursor has more elements\n while (managedCursor.moveToNext()) {\n // Get the phone number\n String phNumber = managedCursor.getString(number);\n // Get the name\n String nameType = managedCursor.getString(name);\n // Get the type of the call\n String callType = managedCursor.getString(type);\n // Get the date of the call\n String callDate = managedCursor.getString(date);\n // Get the date of the call\n Date callDayTime = new Date(Long.valueOf(callDate));\n // Get the length of the call\n String callDuration = managedCursor.getString(duration);\n String dir = null;\n int dircode = Integer.parseInt(callType);\n switch (dircode) {\n case CallLog.Calls.OUTGOING_TYPE:\n dir = \"OUTGOING\";\n break;\n\n case CallLog.Calls.INCOMING_TYPE:\n dir = \"INCOMING\";\n break;\n\n case CallLog.Calls.MISSED_TYPE:\n dir = \"MISSED\";\n break;\n }\n // Add phone number to the ArrayList\n initialisaton.callDetails.add(phNumber);\n // Check whether the name is null\n if (nameType != null) {\n // Add the name to the ArrayList\n initialisaton.callDetails.add(nameType);\n } else {\n // Add \"Uknown\" to the ArrayList\n initialisaton.callDetails.add(\"Unknown\");\n }\n // Add time to the ArrayList\n initialisaton.callDetails.add(callDuration);\n // Add String Date to the ArrayList\n initialisaton.callDetails.add(callDayTime.toString());\n // Add call type to the ArrayList\n initialisaton.callDetails.add(dir);\n // Add ArrayList to the ArrayList\n initialisaton.listOfArray.add(initialisaton.callDetails);\n // Create a new object\n initialisaton.callDetails = new ArrayList<String>();\n }\n // Close the cursor\n managedCursor.close();\n\n // initialize all contact information to ZERO\n int outcoming = 0;\n int incoming = 0;\n int seconds = 0;\n int lastCallInSec = 0;\n int missed = 0;\n String contactName = \"Unknown\";\n String lastCall = \"\";\n\n /*\n * Create a new Object\n * The map to hold phone numbers as a key and call history details as value\n */\n initialisaton.map = new HashMap<String, ArrayList<String>>();\n\n initialisaton.arrayList = new ArrayList<String>();\n\n // Loop through the ArrayList holding contact information as ArrayList\n for (int i = 0; i < initialisaton.listOfArray.size(); i++) {\n /*\n * Create a new Object Store elements of the old ArrayList to the\n * new ArrayList\n */\n ArrayList<String> callDetail = initialisaton.listOfArray.get(i);\n /*\n * Create a new Object Store phone number from the ArrayList\n */\n String phoneNumber = callDetail.get(0);\n // Check whether the phone number already exists in the ArrayList of\n // phone Numbers\n if (initialisaton.phonenumbers.contains(phoneNumber)) {\n // Do nothing\n } else {\n // Add the phone number to the ArrayList\n initialisaton.phonenumbers.add(phoneNumber);\n // Loop through the ArrayList\n for (int j = 0; j < initialisaton.listOfArray.size(); j++) {\n /*\n * Create a new Object Store elements of the old ArrayList\n * to the new ArrayList\n */\n ArrayList<String> callDetail2 = initialisaton.listOfArray.get(j);\n // Get phone number from the ArrayList\n String phoneNumberCompare = callDetail2.get(0);\n // Compare, check if the phone number repreats its self in\n // the Arraylist\n if (phoneNumberCompare.equals(phoneNumber)) {\n\n // If the contact Arrylist has incoming calls\n if (callDetail2.get(4).equals(\"INCOMING\")) {\n // increment\n incoming++;\n }\n\n // If the contact Arrylist has outgoing calls\n if (callDetail2.get(4).equals(\"OUTGOING\")) {\n // increment\n outcoming++;\n }\n\n // If the contact Arrylist has missed calls\n if (callDetail2.get(4).equals(\"MISSED\")) {\n // increment\n missed++;\n }\n\n // Get the date of the last call\n lastCall = callDetail2.get(3);\n // Get contact name\n contactName = callDetail2.get(1);\n // Get last a time of the last call\n lastCallInSec = Integer.parseInt(callDetail2.get(2));\n // Get the total time of the current phone number\n seconds += Integer.parseInt(callDetail2.get(2));\n }\n }\n\n // Append to the String Buffer\n initialisaton.sb.append(\"\\nPhone number: \" + phoneNumber + \" \\nName: \"\n + contactName + \" \\nIncoming calls: \" + incoming\n + \" \\nOutgoing calls: \" + outcoming\n + \" \\nMissed calls: \" + missed\n + \" \\nLast call in sec: \" + lastCallInSec\n + \" \\nCall duration in sec: \" + seconds\n + \"\\nLast call: \" + lastCall);\n initialisaton.sb.append(\"\\n----------------------------------\");\n\n //arrayList.add(phoneNumber);\n initialisaton.arrayList.add(contactName + \" \" + phoneNumber);\n initialisaton.array1.add(contactName);\n initialisaton.array2.add(phoneNumber);\n\n ArrayList<String> list = new ArrayList<String>();\n list.add(phoneNumber);\n list.add(contactName);\n list.add(Integer.toString(incoming));\n list.add(Integer.toString(outcoming));\n list.add(Integer.toString(missed));\n list.add(Integer.toString(seconds));\n list.add(Integer.toString(lastCallInSec));\n list.add(lastCall.toString());\n initialisaton.map.put(contactName + \" \" + phoneNumber, list);\n\n // Initialize to ZERO\n incoming = 0;\n outcoming = 0;\n seconds = 0;\n missed = 0;\n lastCallInSec = 0;\n }\n }\n\n // Initialize Array of Strings\n String Array1[] = new String[initialisaton.array1.size()];\n String Array2[] = new String[initialisaton.array2.size()]; \n \n /*\n * Copy ArrayList to String[]\n */\n functions.copyArrayListToStringArray(Array1, initialisaton.array1);\n functions.copyArrayListToStringArray(Array2, initialisaton.array2);\n\n /*\n * Sort 2 String[]\n */\n functions.sort(Array1, Array2);\n \n /*\n * Copy String[] to ArrayList\n */ \n functions.copyStringArrayToArrayList(initialisaton.arrayList, Array1, Array2);\n // Return String Buffer as a string\n return initialisaton.sb.toString();\n }", "public int getMissedCallsCount();", "public static int getCounterLoans() {\n\t\tint result = 0;\n\t\ttry\n\t\t{\n\t\t\tstmt = conn.createStatement();\n\t\t\tquery = \"SELECT count(*) FROM CREDIT.LOANS\";\n\t\t\trs = stmt.executeQuery(query);\n\t\t\t\n\t\t\twhile (rs.next())\n\t\t\t{\n\t\t\t\tresult = Integer.parseInt(rs.getString(1));\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(getMethodName(1) + \"\\t\" + result);\n\t\t\t\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public int getRXCReps() { \r\n \treturn getReps(\"RXC\");\r\n }", "public int getMissedCallCount(){\r\n\t\t//if(_debug) Log.v(_context, \"NotificationViewFlipper.getMissedCallCount() MissedCallCount: \" + _missedCallCount);\r\n\t\treturn _missedCallCount;\r\n\t}", "public ProcessCallProperties getProcessCallProperties()\n {\n return processCallProperties;\n }", "public java.lang.Integer getUserCalltype() {\r\n return userCalltype;\r\n }", "public String getCallState() {\n return \"\";\n }", "public String getCallId();", "public TCSRequestMethod MethodForCallType(String callType)\n {\n if(!CheckCallDefinitions())\n return TCSRequestMethod.METHOD_ERROR;\n\n TCSAPICallDefinition definition = apiCallDefinitions.get(callType);\n\n if(definition!=null)\n return definition.method;\n else\n return TCSRequestMethod.METHOD_ERROR;\n }", "public RouteDescriptor[] getRoutes() {\n if (mRoutes == null) {\n mRoutes = RouteDescriptor.fromParcelableArray(\n mBundle.getParcelableArray(KEY_ROUTES));\n }\n return mRoutes;\n }", "@GetMapping(value = \"/customers/{phoneNo}/calldetails\", produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic List<CallDetailsDTO> getCustomerCallDetails(@PathVariable long phoneNo) {\n\t\tlogger.info(\"Calldetails request for customer {}\", phoneNo);\n\t\treturn custService.getCustomerCallDetails(phoneNo);\n\t}", "public UUID getCallId() {\n return callId;\n }", "public void setCallName(String callName) {\n\n\t}", "public List<BasicDBObject> getRoutePoints() {\n\t\treturn this.mRoutePoints;\n\t}", "public boolean hasLiveCalls() {\n if (this.mCallMapById.isEmpty()) {\n return false;\n }\n for (Integer num : this.mCallMapById.keySet()) {\n Call callById = getCallById(num);\n if (!(callById == null || callById.getState() == 10 || callById.getState() == 7)) {\n HiLog.info(LOG_LABEL, \"hasLiveCalls.\", new Object[0]);\n return true;\n }\n }\n return false;\n }", "public String getOrderCallsStatement(String field) {\n\t\treturn \"SELECT * FROM CALLS ORDER BY \" + field;\n\t}", "public String getCallIdentifier() {\n return callIdHeader.getCallId();\n }", "public io.dstore.values.StringValue getProcedureNames() {\n if (procedureNamesBuilder_ == null) {\n return procedureNames_ == null ? io.dstore.values.StringValue.getDefaultInstance() : procedureNames_;\n } else {\n return procedureNamesBuilder_.getMessage();\n }\n }", "@Override\n\tpublic String getCollectionName() {\n\t\treturn \"robot_call_num\";\n\t}", "public boolean\n hasCall()\n {\n //##62 return hasCallInSubp;\n if (fCallCount > 0)\n return true;\n else\n return false;\n }", "public String getReceivePhone() {\n return receivePhone;\n }", "public int GetResends() { return resends; }", "public CallLog getLastOutgoingCallLog();", "public List<Record> getAllCallRecords() {\n return new ArrayList<>(mCallRecords);\n }", "public int getSipDscp();", "public List<String> getRouteList();", "public static BasicPhoneCall getPhoneCall(String sid){\n return loggedCalls.get(sid);\n }", "public int nncall() {\n return nncall;\n }", "public String getRoutingNo();", "@RequestMapping(value = \"/customers/{phoneNo}/calldetails\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic List<CallDetailsDTO> getCustomerCallDetails(@PathVariable long phoneNo) {\n\n\t\tlogger.info(\"Calldetails request for customer {}\", phoneNo);\n\n\t\treturn callDetailsService.getCustomerCallDetails(phoneNo);\n\t}", "public int getMaxCalls();", "public void getCallDetails()\n\t {\n\t @SuppressWarnings(\"deprecation\")\n\t String sortOrder = String.format(\"%s limit 100 \", CallLog.Calls.DATE + \" DESC\");\n\t managedCursor = managedQuery( CallLog.Calls.CONTENT_URI, null, null, null, sortOrder);\n\t int number = managedCursor.getColumnIndex( CallLog.Calls.NUMBER );\n\t int type = managedCursor.getColumnIndex( CallLog.Calls.TYPE );\n\t int date = managedCursor.getColumnIndex( CallLog.Calls.DATE);\n\t int duration = managedCursor.getColumnIndex( CallLog.Calls.DURATION);\n\t int id = managedCursor.getColumnIndex(CallLog.Calls._ID);\n\t \n\t while (managedCursor.moveToNext())\n\t {\n\t \n\t phoneNumber = managedCursor.getString(number);\n\t callType = managedCursor.getString(type);\n\t callDate = managedCursor.getString(date);\n\t contactName = getContactname(phoneNumber); \n\t call_id = managedCursor.getString(id);\n\t //contactId = getContactId(phoneNumber);\n\t \n\t //callDateTime = new Date(Long.valueOf(callDate));\n\t long seconds=Long.parseLong(callDate);\n\t SimpleDateFormat format1 = new SimpleDateFormat(\"dd-MM-yyyy hh:mm a\");\n\t callDateTime = format1.format(new Date(seconds));\n\t \n\t callDuration = managedCursor.getString(duration);\n\t \n\t String cType = null;\n\t \n\t int cTypeCode = Integer.parseInt(callType);\n\t \n\t switch(cTypeCode){\n\t \n\t case CallLog.Calls.OUTGOING_TYPE:\n\t cType = \"OUTGOING\";\n\t break;\n\t \n\t case CallLog.Calls.INCOMING_TYPE:\n\t cType= \"INCOMING\";\n\t break;\n\t \n\t case CallLog.Calls.MISSED_TYPE:\n\t cType = \"MISSED\";\n\t break;\n\t }\n\t \n\t CallData calldata=new CallData(cType, phoneNumber, contactName, callDateTime, callDuration, call_id);\n\t list.add(calldata);\n\t \n\t }\n\t \n\t // managedCursor.close();\n\t \n\t }", "public SimpleJdbcCall getCall(String name) {\n\t\tSimpleJdbcCall call = new SimpleJdbcCall(template).withCatalogName(\"mhtc\")\n\t\t\t\t.withSchemaName(\"mhtc_sch\").withProcedureName(name);\n\t\t\n\t\treturn call;\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\npublic Object Call_pr(final String[] parm) {\n String procedureSql = \"{?=call pr()}\"; \n return (Object) getJdbcTemplate().execute(procedureSql, new CallableStatementCallback() {\n\n\t\t\t@Override\n\t\t\tpublic Object doInCallableStatement(CallableStatement cs) throws SQLException, DataAccessException {\n\t\t\t\tcs.registerOutParameter(1, Types.INTEGER);\n\t\t\t\tSystem.out.println(\"~~~~~~~~~~~~~~~~~~~~\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treturn \"111111\";\n\t\t\t}\n\t\t});\n\n }", "public Observable<Stop> getEndPoints() {\n return loadRoutesData()\n .flatMap(availableRoutes ->\n Observable.from(availableRoutes.routes()))\n .flatMap(route -> Observable.from(route.segments()).last())\n .map(segment -> segment.stops().get(segment.stops().size() - 1));\n\n }", "abstract public DialPlan[] getDialPlans();", "public List<String> getMethodList() throws CallError, InterruptedException {\n return (List<String>)service.call(\"getMethodList\").get();\n }", "public com.portalmobile.meta4.schemas.types.Csp_Get_Info_User_OutRecord[] getCsp_Get_Info_User_OutRecordSet() {\n return csp_Get_Info_User_OutRecordSet;\n }", "@Override\n\tpublic int deleteCallServiceByIds(String s) {\n\t\tList ids = new ArrayList();\n\t\tCollections.addAll(ids, s.split(\",\"));\n\t\treturn dgCallServiceMapper.deleteIds(ids);\n\t}", "com.ubtrobot.phone.PhoneCall.ResponseType getResponseType();", "public String getCallTime() {\n\t\treturn this.callTime;\n\t}", "public List<AntCall> getAntCalls()\n {\n return antCalls;\n }", "String getCallSql(String name);", "@Override\n\tpublic List<Route> listAllRoutes() {\n\t\tConnection con = null;\n\t\tList<Route> routes = new ArrayList<Route>();\n\t\ttry {\n\t\t\tcon = getMySqlConnection();\n\t\t\tCallableStatement callableStatement = con\n\t\t\t\t\t.prepareCall(\"call listAllRoutes()\");\n\t\t\tcallableStatement.executeQuery();\n\n\t\t\tResultSet result = callableStatement.getResultSet();\n\t\t\twhile (result.next()) {\n\t\t\t\tRoute route = new Route();\n\t\t\t\troute.setRouteId(result.getLong(1));\n\t\t\t\troute.setFromCity(new City(result.getString(2)));\n\t\t\t\troute.setToCity(new City(result.getString(3)));\n\t\t\t\troute.getFromCity().setCityId(result.getLong(4));\n\t\t\t\troute.getToCity().setCityId(result.getLong(5));\n\t\t\t\troutes.add(route);\n\t\t\t}\n\n\t\t} catch (SQLException s) {\n\t\t\ts.printStackTrace();\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn routes;\n\t}", "public RuleCall getINTTerminalRuleCall() { return cINTTerminalRuleCall; }", "public RuleCall getINTTerminalRuleCall() { return cINTTerminalRuleCall; }", "public Long getReceiveSuccessResponseTimes()\r\n {\r\n return receiveSuccessResponseTimes;\r\n }", "@RequestMapping(path = \"/last24hCanceledRoutes\", method = RequestMethod.GET)\n public List<RouteCanceled> getLast24hCanceledRoutes() {\n Query queryObject = new Query(\"Select * from route_canceled\", \"blablamove\");\n QueryResult queryResult = BlablamovebackendApplication.influxDB.query(queryObject);\n\n InfluxDBResultMapper resultMapper = new InfluxDBResultMapper();\n System.out.println(\"queryResult : \" + queryResult);\n List<RouteCanceled> routeCanceledList = resultMapper\n .toPOJO(queryResult, RouteCanceled.class);\n\n LocalDateTime stop = LocalDateTime.now().minusHours(0);\n LocalDateTime start = LocalDateTime.now().minusHours(24).withSecond(0).withMinute(0).withNano(0);\n\n return routeCanceledList.stream().filter(routeCanceled -> instantIsBetweenDates(routeCanceled.getTime(), start, stop)).collect(Collectors.toList());\n }", "public String getFilteredCallsStatement(String field) {\n\t\treturn \"SELECT * FROM CALLS WHERE \" + field + \"=?\";\n\t}", "List cal(RecurData recurData, List occs)\n {\n if (recurData.isEmpty(_byRule) || occs.isEmpty())\n return occs;\n return run(recurData, occs);\n }", "public XbaseGrammarAccess.FeatureCallIDElements getFeatureCallIDAccess() {\r\n\t\treturn gaXbase.getFeatureCallIDAccess();\r\n\t}", "public int countMethods( ) {\n\t\tfinal MonitoringLogService monitoringLogService = getService( MonitoringLogService.class );\n\t\tfinal List<MethodCall> methods = monitoringLogService.getMethods( );\n\t\treturn methods.size( );\n\t}", "private void queryLastOutgoingCall() {\n mLastNumberDialed = EMPTY_NUMBER;\n CallLogAsync.GetLastOutgoingCallArgs lastCallArgs =\n new CallLogAsync.GetLastOutgoingCallArgs(\n getActivity(),\n new CallLogAsync.OnLastOutgoingCallComplete() {\n public void lastOutgoingCall(String number) {\n // TODO: Filter out emergency numbers if\n // the carrier does not want redial for\n // these.\n mLastNumberDialed = number;\n updateDialAndDeleteButtonEnabledState();\n }\n });\n mCallLog.getLastOutgoingCall(lastCallArgs);\n }", "private void fetchOldCalls() {\n fetchCalls(QUERY_OLD_CALLS_TOKEN, false);\n }", "public String getProcedure() {\n return this.Procedure;\n }", "public List getMethodLines() {\n return methodLines;\n }", "@Override\n\tpublic Map<String, String> getAvailableProcedures(boolean refresh)\n\t{\n\t\treturn m_models.getAvailableProcedures(refresh);\n\t}", "protected String getStatus()\n { return call_state; \n }", "public AKeyCallPoint getRoutePoint() {\n\t\t\treturn routePoint;\n\t\t}", "public RuleCall getQualifiedNameParserRuleCall() { return cQualifiedNameParserRuleCall; }", "public RuleCall getQualifiedNameParserRuleCall() { return cQualifiedNameParserRuleCall; }", "public RuleCall getQualifiedNameParserRuleCall() { return cQualifiedNameParserRuleCall; }" ]
[ "0.5808728", "0.569489", "0.568722", "0.5636787", "0.5528218", "0.5389262", "0.52462953", "0.516466", "0.5122512", "0.5107297", "0.49856475", "0.49572727", "0.49387643", "0.49174535", "0.4905532", "0.48134992", "0.47845462", "0.47397816", "0.4690405", "0.46828946", "0.46810132", "0.4678014", "0.46480775", "0.46353424", "0.46262738", "0.46061108", "0.45930094", "0.45889896", "0.45889896", "0.45889896", "0.45889896", "0.45889896", "0.45889896", "0.45889896", "0.45889896", "0.45889896", "0.45711663", "0.45706183", "0.4553665", "0.4547326", "0.45433658", "0.45401093", "0.45213693", "0.45196298", "0.45181724", "0.4512696", "0.45107293", "0.4496461", "0.44861096", "0.44743028", "0.44709983", "0.44671354", "0.44348988", "0.44337112", "0.4428375", "0.44230255", "0.4417315", "0.4413618", "0.4409036", "0.43746987", "0.43724963", "0.4366132", "0.43622875", "0.4358767", "0.43574288", "0.435554", "0.43544346", "0.4349229", "0.43484324", "0.43473458", "0.43378803", "0.43277285", "0.43266454", "0.4326169", "0.43198076", "0.43026906", "0.42590302", "0.42585886", "0.4258573", "0.42549548", "0.42541105", "0.42428064", "0.42338905", "0.42338905", "0.42300496", "0.42289653", "0.42107695", "0.42096677", "0.42086753", "0.42030677", "0.42011547", "0.41994208", "0.41953626", "0.41886082", "0.4185691", "0.4178269", "0.4177741", "0.4176715", "0.4176715", "0.4176715" ]
0.59283847
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_ROUTE.CALLS
public void setCalls(Long calls) { this.calls = calls; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set getCalls() { return calls; }", "public void setRateBookCalcRoutines(entity.RateBookCalcRoutine[] value);", "public void setCallName(String callName) {\n\n\t}", "public void setCallId(String callId) throws ParseException,NullPointerException;", "protected void setCallFromStatement() {\n // Profile SQL generation.\n getSession().startOperationProfile(SessionProfiler.SQL_GENERATION);\n if (hasMultipleStatements()) {\n for (Enumeration statementEnum = getSQLStatements().elements();\n statementEnum.hasMoreElements();) {\n //\t\t\tDatabaseCall call = ((SQLStatement) statementEnum.nextElement()).buildCall(getSession());\n DatabaseCall call = null;\n if (getDescriptor() != null) {\n call = getDescriptor().buildCallFromStatement((SQLStatement)statementEnum.nextElement(), getSession());\n } else {\n call = ((SQLStatement)statementEnum.nextElement()).buildCall(getSession());\n }\n\n // In case of update call may be null if no update required.\n if (call != null) {\n addCall(call);\n }\n }\n } else {\n DatabaseCall call = null;\n if (getDescriptor() != null) {\n call = getDescriptor().buildCallFromStatement(getSQLStatement(), getSession());\n } else {\n call = getSQLStatement().buildCall(getSession());\n }\n\n // In case of update call may be null if no update required.\n if (call != null) {\n setCall(call);\n }\n }\n\n // Profile SQL generation.\n getSession().endOperationProfile(SessionProfiler.SQL_GENERATION);\n }", "public void setCalltype(java.lang.Integer calltype) {\r\n this.calltype = calltype;\r\n }", "@Override\n public Collection<PhoneCall> getPhoneCalls() {\n return this.calls;\n }", "public void setProcessCallProperties(ProcessCallProperties processCallProperties)\n {\n this.processCallProperties = processCallProperties;\n }", "public void setCallLeg(String callLeg) {\n this.callLeg = callLeg;\n }", "public void setDialing(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.2.setDialing(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.2.setDialing(java.lang.String):void\");\n }", "public void setCanCallService(boolean canCallService) {\n //log.trace(\"setCanCallService: {}\", canCallService);\n this.canCallService = canCallService;\n }", "private void setChatRecordRsp(ChatRecord.Rsp value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 11;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Defines a sequence of digits that, when entered by this caller, invokes the `callControlUrl`. Only digits plus '*', and '#' may be used.\")\n\n public String getCallControlSequence() {\n return callControlSequence;\n }", "public final void rule__AstStatementCall__ProcedureAssignment_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:24812:1: ( ( ( RULE_ID ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:24813:1: ( ( RULE_ID ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:24813:1: ( ( RULE_ID ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:24814:1: ( RULE_ID )\n {\n before(grammarAccess.getAstStatementCallAccess().getProcedureAstProcedureCrossReference_0_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:24815:1: ( RULE_ID )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:24816:1: RULE_ID\n {\n before(grammarAccess.getAstStatementCallAccess().getProcedureAstProcedureIDTerminalRuleCall_0_0_1()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__AstStatementCall__ProcedureAssignment_049834); \n after(grammarAccess.getAstStatementCallAccess().getProcedureAstProcedureIDTerminalRuleCall_0_0_1()); \n\n }\n\n after(grammarAccess.getAstStatementCallAccess().getProcedureAstProcedureCrossReference_0_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void setCallTime(String callTime) {\n\t\tthis.callTime = callTime;\n\t}", "public void SetOutboundCall(XMSCall out){\n FunctionLogger logger=new FunctionLogger(\"SetOutboundCall\",this,myLogger);\n logger.args(out);\n myOutboundCall = out;\n myOutboundCall.EnableAllEvents(this);\n }", "public void setCallsManager(MXCallsManager callsManager) {\n checkIfAlive();\n mCallsManager = callsManager;\n }", "public Long getCalls() {\r\n return calls;\r\n }", "private void processCallStateOffhook () {\n\t\t\n\t\ttry {\n\t\t\tif (QSLog.DEBUG_D)QSLog.d(CLASS_NAME, \"OFFHOOK\");\t\n\t\t\t\n\t\t\tConfigAppValues.processRingCall = false;\n\t\t\t\n\t\t\tif (QSToast.DEBUG) QSToast.d(\n \t\tConfigAppValues.getContext().getApplicationContext(),\n \t\t\"OFFHOOK!!!!!!!!\",\n \t\tToast.LENGTH_SHORT);\t\n\t\t\t\n\t\t}catch (Exception e) {\n\t\t\tif (QSLog.DEBUG_E)QSLog.e(CLASS_NAME, ExceptionUtils.exceptionTraceToString(\n\t\t\t\t\te.toString(), \n\t\t\t\t\te.getStackTrace()));\n\t\t}\n\t}", "public void setProcedure(String Procedure) {\n this.Procedure = Procedure;\n }", "protected void setWriteMethod(Enum callingMethod)\n\t{\n//\t\tCrashlytics.setString(\"WriteMethod\", callingMethod.toString());\n\t\tmCallingMethod = callingMethod;\n\t}", "public void setUserCalltype(java.lang.Integer userCalltype) {\r\n this.userCalltype = userCalltype;\r\n }", "public void setRoutePoints(List<BasicDBObject> pRoutePoints) {\n\t\tthis.mRoutePoints = pRoutePoints;\n\t}", "void setRoutes(List<RouteType> routes);", "public void setReceivePhone(String receivePhone) {\n this.receivePhone = receivePhone == null ? null : receivePhone.trim();\n }", "@Override\n\t@Transactional\n\tpublic List callProcR(String proc, List<String> paras) {\n\t\tSession session = getHibernateTemplate().getSessionFactory().openSession();\n\t\t// Transaction tx = session.beginTransaction();\n\t\tSQLQuery q = session.createSQLQuery(\"{call \" + proc + \"(?) }\");\n\t\tif (paras != null) {\n\t\t\tint i = 0;\n\t\t\tfor (String para : paras) {\n\t\t\t\tq.setString(i++, para);\n\t\t\t}\n\t\t}\n\t\treturn q.list();\n\n\t}", "public void setCallAlias(String callAlias) {\n\n\t}", "public String updateCallStatement() {\n\t\t// return \"UPDATE CALLS SET (call_date, subject, notes) = ( ?, ?, ?)\";\n\t\treturn \"UPDATE CALLS SET (subject, notes) = (?, ?) WHERE ID = ?\";\n\t}", "public\t void setCallId(String callId)\n throws java.text.ParseException {\n if (callIdHeader == null) {\n this.setHeader(new CallID());\n }\n callIdHeader.setCallId(callId) ;\n }", "public void recordSetRefReprs()\n {\n //##60 BEGIN\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"\\nrecordSetRefReprs\",\n getSubpSym().getName());\n if (isComputedOrUnderComputation(DF_SETREFREPR)) {\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"already computed\");\n return;\n }\n //##60 END\n //##65 BEGIN\n if (! isComputed(DF_EXPID)) {\n allocateExpIdForSubp();\n }\n //##65 END\n setUnderComputation(DF_SETREFREPR); //##62\n //##65 BEGIN\n if (fArrayOfSetRefReprList == null) {\n fArrayOfSetRefReprList = new SetRefReprList[fBBlockCount + 1];\n if (fDbgLevel > 3)\n ioRoot.dbgFlow.print(4, \"allocate fArrayOfSetRefReprList \"\n + fBBlockCount + 1);\n }\n //##65 END\n BBlock lBBlock;\n for (Iterator lCFGIterator = getBBlockList().iterator();\n lCFGIterator.hasNext(); ) {\n lBBlock = (BBlock)lCFGIterator.next();\n if (flowRoot.isHirAnalysis())\n recordSetRefReprs((BBlockHirImpl)lBBlock);\n }\n //##60 fDefCount=setRefRepr.getDefSetRefReprCount();\n fDefCount = getDefCount(); //##60\n //##60 DefVectorImpl.setVectorLength(flowRoot, fDefCount);\n setComputedFlag(DF_SETREFREPR); //##60\n }", "void setCalled(String called);", "public void setReceiveSuccessResponseTimes(Long receiveSuccessResponseTimes)\r\n {\r\n this.receiveSuccessResponseTimes = receiveSuccessResponseTimes;\r\n }", "@Override\n\tpublic void receiveCall(Call call) {\n\t\tthis.call = call;\n\t\tcall.attend();\n\t}", "private void ConnectCalls(){\n FunctionLogger logger=new FunctionLogger(\"SetOutboundCallState\",this,myLogger);\n \n //I think if we want to support the Transaction logging we need to throw them in the conf here\n // for now lets just join them\n if(PlayRingbackFlag){\n myInboundCall.Stop();\n } \n SetInboundCallState(InboundCallStates.JOINED);\n SetOutboundCallState(OutboundCallStates.JOINED);\n SetGatewayState(GatewayStates.CONNECTED);\n myInboundCall.Join(myOutboundCall);\n \n }", "public void setCallSign(java.lang.String callSign) {\n\t\t_tempNoTiceShipMessage.setCallSign(callSign);\n\t}", "public void SetInboundCall(XMSCall in){\n FunctionLogger logger=new FunctionLogger(\"SetInboundCall\",this,myLogger);\n logger.args(in);\n myInboundCall = in;\n myInboundCall.EnableAllEvents(this);\n }", "public void setPRTNO(java.lang.Integer PRTNO) {\n this.PRTNO = PRTNO;\n }", "@Test\n\tpublic void testCreateCall_4()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub((URL) null, new DeployWSServiceLocator());\n\n\t\tCall result = fixture.createCall();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.RateBookCalcRoutine[] getRateBookCalcRoutines();", "@IcalProperty(pindex = PropertyInfoIndex.SCHEDULE_METHOD,\n jname = \"scheduleMethod\",\n eventProperty = true,\n todoProperty = true)\n public void setScheduleMethod(final int val) {\n scheduleMethod = val;\n }", "@Override\n public List<DgCallService> getCallServiceTop5(String posID) {\n \tDgPos dgPos = dgPosMapper.selectPosByPosId(Integer.valueOf(posID));\n\t\tList<Integer> integers = StringUtil.arrayToList(dgPos\n\t\t\t\t.getConsumerAreas());\n\t\tMap org = new HashMap();\n\t\torg.put(\"areaIds\",integers);\n\t\torg.put(\"type\",1);\n return dgCallServiceMapper.selectTop5(org);\n }", "public void setCallReturn(Object obj) {\n\n\t}", "public void SetCallRecording(boolean option){\n FunctionLogger logger=new FunctionLogger(\"SetCallRecording\",this,myLogger);\n logger.args(option);\n PlayRingbackFlag=option;\n }", "public void updateMissedCalls() {\n // Mark all \"new\" missed calls as not new anymore\n StringBuilder where = new StringBuilder();\n where.append(\"type = \");\n where.append(Calls.MISSED_TYPE);\n where.append(\" AND \");\n where.append(Calls.NEW);\n where.append(\" = 1\");\n \n ContentValues values = new ContentValues(1);\n values.put(Calls.NEW, \"0\");\n \n startUpdate(UPDATE_MISSED_CALLS_TOKEN, null, Calls.CONTENT_URI_WITH_VOICEMAIL,\n values, where.toString(), null);\n }", "public void setStuckCall(){\n this.stuckCall = true;\n }", "public void setRoutes(RouteDescriptor[] routes) {\n mRoutes = routes;\n mBundle.putParcelableArray(KEY_ROUTES, RouteDescriptor.toParcelableArray(routes));\n }", "@Test\n\tpublic void testCreateCall_5()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub((URL) null, new DeployWSServiceLocator());\n\n\t\tCall result = fixture.createCall();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public void setRoutingNo (String RoutingNo);", "public void setRoutePoint(AKeyCallPoint routePoint) {\n\t\t\tthis.routePoint = routePoint;\n\t\t}", "public final void mCALL() throws RecognitionException\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal int _type = AshvmLexer.CALL;\n\t\t\tfinal int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:726:6: ( 'call' )\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:726:8: 'call'\n\t\t\t{\n\t\t\t\tthis.match(\"call\");\n\n\t\t\t}\n\n\t\t\tthis.state.type = _type;\n\t\t\tthis.state.channel = _channel;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t}\n\t}", "public void setMethod(String method)\r\n {\r\n routing_method=method;\r\n }", "public String getAllCallsStatement() {\n\t\treturn \"SELECT * FROM CALLS\";\n\t}", "public Call[] getCalls();", "public int getCallId() {\n return this.mCallId;\n }", "@Override\n\t\t\t\tpublic void onCalculateMultipleRoutesSuccess(int[] arg0) {\n\t\t\t\t\t\n\t\t\t\t}", "public java.lang.Integer getCalltype() {\r\n return calltype;\r\n }", "@Override\n\tpublic void Call() {\n\t\tSystem.out.println( phoneName+\"'s Call.\");\n\t}", "private void fetchOldCalls() {\n fetchCalls(QUERY_OLD_CALLS_TOKEN, false);\n }", "@Option(name = \"-rport\", handler = StringArrayOptionHandler.class)\n\tpublic void setPort(String[] ports)\n\t{\n\t\tfor (int i = 0; i < peers.size(); ++i)\n\t\t{\n\t\t\tif (i == ports.length)\n\t\t\t\tbreak;\n\n\t\t\tPeer p = peers.get(i);\n\t\t\tp.setPort(Integer.valueOf(ports[i]));\n\t\t}\n\t}", "public void setCallId(CallIdHeader callId) {\n this.setHeader(callId);\n }", "public Response handleServiceCall(Call serviceCall, CallContext messageContext) throws DriverManagerException;", "protected void setRoutes(WriteFileResponse response) {\n routes[ response.getSequence() ] = response.getRoutingPath();\n if ( ableToWrite && totalReceived.incrementAndGet() == routes.length )\n {\n unlock();\n }\n }", "private void invokeCallConfigPost(SkinnyMethodAdapter mv) {\n mv.aload(0); // load method to get callconfig\n mv.getfield(p(JavaMethod.class), \"callConfig\", ci(CallConfiguration.class));\n mv.aload(1);\n mv.invokevirtual(p(CallConfiguration.class), \"post\", sig(void.class, params(ThreadContext.class)));\n }", "public void setCallRangeForCurrentFrame(int startCallIndex, int endCallIndex) {\n mStartCallIndex = startCallIndex;\n mEndCallIndex = endCallIndex;\n mPositionHelper.updateCallDensity(mEndCallIndex - mStartCallIndex, getClientArea().height);\n redraw();\n }", "public String getCallLeg() {\n return this.callLeg;\n }", "@Override\n\tpublic void onCalculateMultipleRoutesSuccess(int[] arg0) {\n\n\t}", "private void Perform_CALL() throws RuntimeException\n {\n PCToStack();\n \n int k = Utils.GetOperand_XXXXXXX11111XXX1(mMBR);\n mPC = k + mMBR2;\n \n if (PC_BIT_SIZE == 22)\n clockTick();\n clockTick();\n clockTick();\n clockTick();\n \n return;\n }", "public final void setConferenceableConnections(java.lang.String r1, java.util.List<java.lang.String> r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.telecom.ConnectionServiceAdapterServant.2.setConferenceableConnections(java.lang.String, java.util.List):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.2.setConferenceableConnections(java.lang.String, java.util.List):void\");\n }", "private void fetchNewCalls() {\n fetchCalls(QUERY_NEW_CALLS_TOKEN, true);\n }", "public void onInCallServiceUnbind() {\n HiLog.info(LOG_LABEL, \"onInCallServiceUnbind.\", new Object[0]);\n this.mIsInCallServiceBinded = false;\n releaseResource();\n }", "public void sqlOccurred(Spy spy, String methodCall, String sql);", "public TCSRequestMethod MethodForCallType(String callType)\n {\n if(!CheckCallDefinitions())\n return TCSRequestMethod.METHOD_ERROR;\n\n TCSAPICallDefinition definition = apiCallDefinitions.get(callType);\n\n if(definition!=null)\n return definition.method;\n else\n return TCSRequestMethod.METHOD_ERROR;\n }", "@Override\n public void visit(ProcedureCallNode procedureCallNode) {\n }", "public void setCalledNumber(String calledNumber) {\n infoElements.put(new Integer(InfoElement.CALLED_NUMBER), calledNumber.getBytes());\n }", "public void setReceiveSuccessRequestTimes(Long receiveSuccessRequestTimes)\r\n {\r\n this.receiveSuccessRequestTimes = receiveSuccessRequestTimes;\r\n }", "public List<CallItem> findAllCalls() {\n\t\tString orderBy = CallsDBOpenHelper.COLUMN_CALL_DATE + \" DESC, \" + CallsDBOpenHelper.COLUMN_CALL_HOUR + \" DESC\";\n\t\tCursor cursor = dataBase.query(CallsDBOpenHelper.TABLE_CALLS, callsTable_allColumns,\n\t\t\t\tnull, null, null, null, orderBy);\n\n\t\tList<CallItem> calls = cursorToCallItemList(cursor);\n\t\treturn calls;\n\t}", "final protected void callActivated( String callId ) {\n callActivated( getNativeObject(), callId );\n }", "public void onInCallServiceBind() {\n HiLog.info(LOG_LABEL, \"onInCallServiceBind.\", new Object[0]);\n this.mIsInCallServiceBinded = true;\n }", "public void setRoutesEnabled(Boolean routesEnabled) {\n this.routesEnabled = routesEnabled;\n }", "public void setProcedureName(String procedureName){\n this.procedureName = procedureName;\n }", "private void setS2Rsp(PToP.S2ARsp value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 23;\n }", "@Override\n public void callUsers(String userPhone) {\n }", "public void setReceiverPhone(String receiverPhone) {\n this.receiverPhone = receiverPhone;\n }", "private void setChatRecordRsp(\n ChatRecord.Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 11;\n }", "public void setOnReceiveCalled() {\n this.f49 = true;\n }", "@Override\n\tpublic int deleteCallServiceByIds(String s) {\n\t\tList ids = new ArrayList();\n\t\tCollections.addAll(ids, s.split(\",\"));\n\t\treturn dgCallServiceMapper.deleteIds(ids);\n\t}", "public void setSipDscp(int dscp);", "public void setPulling(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.2.setPulling(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.2.setPulling(java.lang.String):void\");\n }", "@Test\n public void testListCurrentCallsCdmaConference() throws Exception {\n ArrayList<BluetoothCall> calls = new ArrayList<>();\n BluetoothCall parentCall = createActiveCall();\n final BluetoothCall confCall1 = getMockCall();\n final BluetoothCall confCall2 = createHeldCall();\n calls.add(parentCall);\n calls.add(confCall1);\n calls.add(confCall2);\n mBluetoothInCallService.onCallAdded(parentCall);\n mBluetoothInCallService.onCallAdded(confCall1);\n mBluetoothInCallService.onCallAdded(confCall2);\n\n when(mMockCallInfo.getBluetoothCalls()).thenReturn(calls);\n when(confCall1.getState()).thenReturn(Call.STATE_ACTIVE);\n when(confCall2.getState()).thenReturn(Call.STATE_ACTIVE);\n when(confCall1.isIncoming()).thenReturn(false);\n when(confCall2.isIncoming()).thenReturn(true);\n when(confCall1.getGatewayInfo()).thenReturn(\n new GatewayInfo(null, null, Uri.parse(\"tel:555-0000\")));\n when(confCall2.getGatewayInfo()).thenReturn(\n new GatewayInfo(null, null, Uri.parse(\"tel:555-0001\")));\n removeCallCapability(parentCall, Connection.CAPABILITY_MERGE_CONFERENCE);\n removeCallCapability(parentCall, Connection.CAPABILITY_CONFERENCE_HAS_NO_CHILDREN);\n when(parentCall.wasConferencePreviouslyMerged()).thenReturn(true);\n //when(parentCall.getConferenceLevelActiveCall()).thenReturn(confCall1);\n when(parentCall.isConference()).thenReturn(true);\n List<String> childrenIds = Arrays.asList(confCall1.getTelecomCallId(),\n confCall2.getTelecomCallId());\n when(parentCall.getChildrenIds()).thenReturn(childrenIds);\n //Add links from child calls to parent\n String parentId = parentCall.getTelecomCallId();\n when(confCall1.getParentId()).thenReturn(parentId);\n when(confCall2.getParentId()).thenReturn(parentId);\n\n clearInvocations(mMockBluetoothHeadset);\n mBluetoothInCallService.listCurrentCalls();\n\n verify(mMockBluetoothHeadset).clccResponse(eq(1), eq(0), eq(CALL_STATE_ACTIVE), eq(0),\n eq(true), eq(\"5550000\"), eq(PhoneNumberUtils.TOA_Unknown));\n verify(mMockBluetoothHeadset).clccResponse(eq(2), eq(1), eq(CALL_STATE_ACTIVE), eq(0),\n eq(true), eq(\"5550001\"), eq(PhoneNumberUtils.TOA_Unknown));\n verify(mMockBluetoothHeadset).clccResponse(0, 0, 0, 0, false, null, 0);\n }", "@JsonSetter(\"srvLookup\")\r\n public void setSrvLookup (boolean value) { \r\n this.srvLookup = value;\r\n }", "public native void setRTOFactor (double RTOfactor);", "@Override\n public void onCallsFetched(Map<ContactInfo, CallStatsDetails> calls) {\n if (getActivity() == null || getActivity().isFinishing()) {\n return;\n }\n\n mDataLoaded = true;\n mAdapter.updateData(calls, mFilterFrom, mFilterTo);\n mAdapter.updateDisplayedData(mCallTypeFilter, mSortByDuration);\n updateHeader();\n }", "public void setR_Request_ID (int R_Request_ID);", "public void setRingbackRequested(java.lang.String r1, boolean r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.2.setRingbackRequested(java.lang.String, boolean):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.2.setRingbackRequested(java.lang.String, boolean):void\");\n }", "public void setRinging(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.2.setRinging(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.2.setRinging(java.lang.String):void\");\n }", "@JsonSetter(\"faxUriId\")\r\n public void setFaxUriId (int value) { \r\n this.faxUriId = value;\r\n }", "default void computeRoutes(\n com.google.maps.routing.v2.ComputeRoutesRequest request,\n io.grpc.stub.StreamObserver<com.google.maps.routing.v2.ComputeRoutesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getComputeRoutesMethod(), responseObserver);\n }", "void setRoute(String routeID);", "public Call getCall() {\n\treturn call;\n }", "private void setS1Rsp(PToP.S1Rsp value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 22;\n }" ]
[ "0.5926443", "0.53174233", "0.4914482", "0.48711964", "0.48089817", "0.4762164", "0.47477093", "0.47347003", "0.4731827", "0.470257", "0.46843183", "0.46408486", "0.46025628", "0.45979312", "0.4593642", "0.4555425", "0.453347", "0.4525334", "0.44863573", "0.44554037", "0.44415766", "0.4436108", "0.44169277", "0.4412371", "0.4406184", "0.43894732", "0.43848056", "0.43747047", "0.4372032", "0.43549907", "0.43536445", "0.43478924", "0.43459016", "0.43262118", "0.4319998", "0.4316392", "0.43062523", "0.42997846", "0.42934018", "0.42862624", "0.42809784", "0.4260863", "0.42514938", "0.42371273", "0.42326087", "0.42295432", "0.42186826", "0.42080393", "0.42034602", "0.41950184", "0.41752887", "0.41715485", "0.41611743", "0.41541186", "0.4151914", "0.4148461", "0.41423762", "0.41397578", "0.41324076", "0.4125452", "0.41121647", "0.41004992", "0.40988", "0.4095451", "0.4091335", "0.4090079", "0.4083296", "0.40733942", "0.40691972", "0.40456313", "0.4044619", "0.40401167", "0.40384147", "0.40361837", "0.40353718", "0.40349758", "0.40346244", "0.4028793", "0.40281567", "0.40257508", "0.4025149", "0.40230468", "0.4022697", "0.40204275", "0.4010521", "0.40050274", "0.4004175", "0.40031564", "0.3998634", "0.39956996", "0.39936498", "0.39925075", "0.3983512", "0.39778382", "0.39775124", "0.39749634", "0.3974628", "0.39708474", "0.3969221", "0.396623" ]
0.58538675
1
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_DY_ROUTE.ANSWDS
public Long getAnswds() { return answds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRoutingNo();", "public String getSNDR() {\n return SNDR;\n }", "int getDSTSavings();", "public int getSWDES() {\r\n return localSWDES;\r\n }", "public int getNumberOutboundStops(){\n\t \treturn 0;\n\t \t\n\t \t\n\t }", "int getWayCount();", "public String getNatGatewaySnatId() {\n return this.NatGatewaySnatId;\n }", "public String getStationld() {\n return stationld;\n }", "public int getRssi() {\n return rssi;\n }", "public int getRssi() {\r\n return rssi;\r\n }", "private int countPossibleRoutes(){\n\tint totPossRoutes =0;\n\tfor(int i=0;i<ConditionTree.length;i++){\n\t\tif(ConditionTree[i][5].equals(\"Y\")){\n\t\t\ttotPossRoutes++;\n\t\t}\n\t}\n\t\n\treturn totPossRoutes;\n}", "public String getAdr2() {\n return adr2;\n }", "public String getDownRoadId() {\n return downRoadId;\n }", "public int getNumberInboundStops(){\n\t \treturn 0;\n\t \t\n\t }", "public String getRouters(){\n wifi.startScan();\n results = wifi.getScanResults();\n size = results.size();\n String jsonRouter = new Gson().toJson(results);\n return jsonRouter;\n }", "public int getNDP()\n\t{\n\t\treturn ndp;\n\t}", "public String getDPIndex(){\n\t\treturn this.m_sDPIndex;\n\t}", "public String getAdr1() {\n return adr1;\n }", "public double getTrafficOverLinkBetween(int otherASN) {\n return this.trafficOverNeighbors.get(otherASN);\n }", "public int avgTrafficPerDay(){\r\n \r\n int trav=apstate.gettravellers();\r\n\t\tint days=apstate.getdays();\r\n\t\tint items=apstate.getitems();\r\n \r\n int avg_traffic_per_day=trav/days;\r\n \r\n return avg_traffic_per_day;\r\n }", "public native String getFormattedAdrress()/*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\treturn jso.formatted_adrress;\n }-*/;", "int getHealSnPort();", "int getWayLength();", "public int[][] getRoads() {\n ArrayList rs = new ArrayList(nodeCount * 4);\n for (int i = 0; i < nodeCount; i++)\n for (int j = i + 1; j < nodeCount; j++)\n if (roads[i][j] > 0 || roads[j][i] > 0) {\n rs.add(Integer.valueOf(j));\n rs.add(Integer.valueOf(i));\n }\n int[][] rds = new int[rs.size() / 2][2];\n for (int i = 0; i < rs.size(); i += 2) {\n rds[i / 2][0] = ((Integer) rs.get(i)).intValue();\n rds[i / 2][1] = ((Integer) rs.get(i + 1)).intValue();\n }\n return rds;\n }", "public String getDENNGAY()\n {\n return this.DENNGAY;\n }", "public int drivenDistance() {\n return (int) Math.round(rightMotor.getTachoCount() / DISTANCE_RATIO);\n }", "double getStation();", "public int getRoadLength() {\n \t\treturn roadLength;\n \t}", "public int getTTL() {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getTTL() \");\n Via via=(Via)sipHeader;\n return via.getTTL();\n }", "public int getLinkDownstreamBandwidthKbps() {\n return mLinkDownBandwidthKbps;\n }", "public String getSsds() {\n return ssds;\n }", "public double getUncoveredSlipAnnualLease(){//added by Nathalie\n double annualLeaseAmount = UNCOVERED_SLIP_BY_LINEAR_FOOT * slipLenght;\n return annualLeaseAmount;\n }", "public double calculateDistance(Station[] stations)\n {\n double result = 0.0;\n\n // Start with the second station. If only station exists in the list, then the distance to travel is zero.\n // Fetch the distance between every two stations and add it to the running sum. If the path is invalid, set the\n // sum to Infinity.\n for (int i = 1; i < stations.length; i++)\n {\n String key = stations[i - 1].getId() + \"-\" + stations[i].getId();\n\n if (this.routeDict.containsKey(key))\n {\n // valid path; add the distance\n result += this.routeDict.get(key);\n }\n else\n {\n // invalid path; set the distance to Infinity\n result = Double.POSITIVE_INFINITY;\n return result;\n }\n\n }\n\n return result;\n }", "public double getTrafficFromEachSuperAS() {\n return this.trafficFromSuperAS;\n }", "public int Simulate()\r\n {\r\n return town.planRoute();\r\n }", "public Integer getRentWay() {\n return rentWay;\n }", "public int getTotalRouteCost() {\n return totalRouteCost;\n }", "public String getBusniessSn() {\n return busniessSn;\n }", "public Directions getDirectionsOfHits() {\n\t\tList<Coordinate> woundPositions = getWoundPositions();\n\t\tif (woundPositions.get(0).getxPosition() == woundPositions.get(1).getxPosition())\n\t\t\treturn Directions.NORTH;\n\t\telse\n\t\t\treturn Directions.WEST;\n\t}", "public ListArrayBasedPlus<Runway> getRunways()\r\n {\r\n return runways;\r\n }", "public int getMinRssiReadings() {\n return getMinReadings();\n }", "public final int getLANA() {\n return m_lana;\n }", "public Float getAnswr() {\r\n return answr;\r\n }", "public int getSsn() {\r\n\t\treturn ssn; //you can define only get to access the data it is not necessary that you define both.\r\n\t}", "public int getNombreLiaison()\t{\r\n \treturn this.routes.size();\r\n }", "public int getActiveRunwaysCount();", "public static RoadSegment getRoadSegment(String freeway, String direction, String onOffKey)\n\t{\n\t\tif(direction.equalsIgnoreCase(\"north\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"101\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(N101.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn N101.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"405\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(N405.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn N405.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\telse if(direction.equalsIgnoreCase(\"south\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"101\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(S101.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn S101.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"405\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(S405.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn S405.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\telse if(direction.equalsIgnoreCase(\"east\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"10\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(E10.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn E10.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"105\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(E105.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn E105.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\telse //if(direction.equalsIgnoreCase(\"west\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"10\"))\n\t\t\t{\n\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(W10.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn W10.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"105\"))\n\t\t\t{\n\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(W105.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn W105.getRoadSegAt(i);\n\t\t\t}\n\n\t\t}\n\t\n\t}", "public int getHealSnPort() {\n return healSnPort_;\n }", "public int getArp(){\n\t\treturn arp;\n\t}", "public String getSsdsmc() {\n return ssdsmc;\n }", "public int getHealSnPort() {\n return healSnPort_;\n }", "public int getSipDscp();", "private double totalDriveDistance()\n\t{\n\t\tdouble totalDistance = 0;\n\t\tfor(int i = 0; i < saveData.size(); i++)//for each index of saveData\n\t\t{\n\t\t\t//grab the total distance\n\t\t\ttotalDistance += saveData.get(i).get(\"distance\"); //.get(\"distance\") to be replaced by whatever method we use to grab a variable from an jsonObject\n\t\t}\n\t\treturn totalDistance;\n\t}", "public String getStationNumber()\n\t{\n\t\treturn getValue(WareHouse.STATIONNUMBER).toString();\n\t}", "public short getLap() {\n return lap;\n }", "public void setSNDR(String SNDR) {\n this.SNDR = SNDR;\n }", "public int getDiscrepancyRsn() {\n return _discrepancyRsn;\n }", "public final flipsParser.northSouthDirection_return northSouthDirection() throws RecognitionException {\n flipsParser.northSouthDirection_return retval = new flipsParser.northSouthDirection_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token char_literal414=null;\n Token string_literal415=null;\n Token char_literal416=null;\n Token string_literal417=null;\n\n CommonTree char_literal414_tree=null;\n CommonTree string_literal415_tree=null;\n CommonTree char_literal416_tree=null;\n CommonTree string_literal417_tree=null;\n RewriteRuleTokenStream stream_258=new RewriteRuleTokenStream(adaptor,\"token 258\");\n RewriteRuleTokenStream stream_267=new RewriteRuleTokenStream(adaptor,\"token 267\");\n RewriteRuleTokenStream stream_266=new RewriteRuleTokenStream(adaptor,\"token 266\");\n RewriteRuleTokenStream stream_265=new RewriteRuleTokenStream(adaptor,\"token 265\");\n\n try {\n // flips.g:620:2: ( ( 'n' | 'north' ) -> NORTH | ( 's' | 'south' ) -> SOUTH )\n int alt156=2;\n int LA156_0 = input.LA(1);\n\n if ( ((LA156_0>=265 && LA156_0<=266)) ) {\n alt156=1;\n }\n else if ( (LA156_0==258||LA156_0==267) ) {\n alt156=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 156, 0, input);\n\n throw nvae;\n }\n switch (alt156) {\n case 1 :\n // flips.g:620:4: ( 'n' | 'north' )\n {\n // flips.g:620:4: ( 'n' | 'north' )\n int alt154=2;\n int LA154_0 = input.LA(1);\n\n if ( (LA154_0==265) ) {\n alt154=1;\n }\n else if ( (LA154_0==266) ) {\n alt154=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 154, 0, input);\n\n throw nvae;\n }\n switch (alt154) {\n case 1 :\n // flips.g:620:5: 'n'\n {\n char_literal414=(Token)match(input,265,FOLLOW_265_in_northSouthDirection3591); \n stream_265.add(char_literal414);\n\n\n }\n break;\n case 2 :\n // flips.g:620:9: 'north'\n {\n string_literal415=(Token)match(input,266,FOLLOW_266_in_northSouthDirection3593); \n stream_266.add(string_literal415);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 621:2: -> NORTH\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(NORTH, \"NORTH\"));\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:622:4: ( 's' | 'south' )\n {\n // flips.g:622:4: ( 's' | 'south' )\n int alt155=2;\n int LA155_0 = input.LA(1);\n\n if ( (LA155_0==258) ) {\n alt155=1;\n }\n else if ( (LA155_0==267) ) {\n alt155=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 155, 0, input);\n\n throw nvae;\n }\n switch (alt155) {\n case 1 :\n // flips.g:622:5: 's'\n {\n char_literal416=(Token)match(input,258,FOLLOW_258_in_northSouthDirection3605); \n stream_258.add(char_literal416);\n\n\n }\n break;\n case 2 :\n // flips.g:622:9: 'south'\n {\n string_literal417=(Token)match(input,267,FOLLOW_267_in_northSouthDirection3607); \n stream_267.add(string_literal417);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 623:2: -> SOUTH\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(SOUTH, \"SOUTH\"));\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public int getDRAResID() {\n\t\treturn DRAResID;\n\t}", "public java.lang.String getADNAMD() {\n return ADNAMD;\n }", "public double getAverageDistanceDriven() {\n \tdouble totalDistance = 0;\n \tdouble n = 0;\n \tfor (int i = 0; i<4; i++) {\n \t\tif (module.get(i).getAbsoluteDistanceDriven() > 0.05) {\n \t\t\ttotalDistance += Math.abs(module.get(i).getAbsoluteDistanceDriven());\n \t\t\tn++;\n \t\t}\n \t}\n \tif (n == 0) {\n \t\t//System.out.println(\"no swerve modules have gone more than .3 feet\");\n \t\tn = 1;\n \t}\n \treturn totalDistance / n;\n }", "public double getAntennaHeight()\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(ANTENNAHEIGHT$10);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }", "public String[] getRoutes() {\n\t\treturn routes;\r\n\t}", "public int getTotalAdSegments() {\n return totalAdSegments;\n }", "public int getChnlWalkway(){\n return this.mFarm.getChnlWalkway();\n }", "public Integer getSfyDwdb() {\r\n return sfyDwdb;\r\n }", "public java.lang.String getDylb() {\r\n return localDylb;\r\n }", "public ArrayList getRoutes(){\r\n ArrayList routeDataList = new ArrayList();\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id, route_long_name from routes\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n while (getData.moveToNext()){\r\n routeDataList.add(getData.getString(1));\r\n }\r\n\r\n getData.close();\r\n\r\n return routeDataList;\r\n }", "public int getTotalDust() {\n return StatisticsHelper.sumMapValueIntegers(statistics.getDustByWins());\n }", "public double getDriftInNsPerSec() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e4 in method: android.location.GpsClock.getDriftInNsPerSec():double, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.getDriftInNsPerSec():double\");\n }", "public double getTraffic() {\n return traffic;\n }", "public Long getTraffic() {\n\t\treturn traffic;\n\t}", "public int getNumRoads() {\n \t\treturn roads.size();\n \t}", "public static int getCounterLoans() {\n\t\tint result = 0;\n\t\ttry\n\t\t{\n\t\t\tstmt = conn.createStatement();\n\t\t\tquery = \"SELECT count(*) FROM CREDIT.LOANS\";\n\t\t\trs = stmt.executeQuery(query);\n\t\t\t\n\t\t\twhile (rs.next())\n\t\t\t{\n\t\t\t\tresult = Integer.parseInt(rs.getString(1));\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(getMethodName(1) + \"\\t\" + result);\n\t\t\t\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public String printRouteStops()\r\n {\r\n String route_output = \"-> \";\r\n for (Stop s : stops_map)\r\n {\r\n route_output = route_output + s.getId() + \" ->\";\r\n }\r\n\r\n return route_output;\r\n }", "public static int numberOfStops() {\n return getAllStops().size();\n }", "public int getSNbrSvcDtlToDay()\r\n {\r\n return this._sNbrSvcDtlToDay;\r\n }", "java.lang.String getDeskNo();", "public int getLedCount()\n {\n int result = -1;\n\n // Verify service is connected\n assertService();\n \n try {\n result = mLedService.getLedCount();\n } catch (RemoteException e) {\n Log.e(TAG, \"getLedCount failed\");\n }\n \n return result;\n }", "public int get_BusPassengers() {\r\n return this.busPassengers;\r\n }", "public int getLBR_LatePaymentPenaltyDays();", "public String getRoutingStatus() {\n return routingStatus;\n }", "public int getDSTSavings() { throw new RuntimeException(\"Stub!\"); }", "public double getRtStdev() {\n\t\t\treturn this.rtStdev;\n\t\t}", "public List<LdsSpouseSealing> getLdsSpouseSealings() {\n return ldsSpouseSealings;\n }", "public String getDssStatus() {\r\n return (String) getAttributeInternal(DSSSTATUS);\r\n }", "public List<RouteDTO> viewRouteDetails() throws FRSException\r\n\t{\n\t\treturn dao.getRouteList();\r\n\t}", "public int getSnPort() {\n return snPort_;\n }", "public int getSnPort() {\n return snPort_;\n }", "public Number getTotalStandad() {\n return (Number)getAttributeInternal(TOTALSTANDAD);\n }", "@java.lang.Override\n @java.lang.Deprecated public int getRouteCount() {\n return route_.size();\n }", "public int getSnPort() {\n return snPort_;\n }", "public int getSnPort() {\n return snPort_;\n }", "public String getWlSnFlag() {\n\t\treturn wlSnFlag;\n\t}", "public double getRoadwayPI()\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }", "public String getStationNumber()\n\t{\n\t\treturn getValue(ASLocation.STATIONNUMBER).toString();\n\t}", "int getSnInfoCount();", "int getSnInfoCount();", "int getSnInfoCount();", "int getSnPort();" ]
[ "0.5256779", "0.5136557", "0.51255596", "0.50479627", "0.48573703", "0.48309782", "0.47881928", "0.4770875", "0.4763866", "0.47421527", "0.47034076", "0.46764275", "0.4665202", "0.46542165", "0.46315324", "0.46193954", "0.46082264", "0.4606755", "0.45937023", "0.45858955", "0.45844364", "0.45797446", "0.45731837", "0.45715815", "0.45702797", "0.4556691", "0.4539821", "0.45326686", "0.4525906", "0.45189562", "0.4514581", "0.45131448", "0.450848", "0.45074865", "0.44786593", "0.44739717", "0.44737345", "0.4454616", "0.44545916", "0.44285992", "0.44220844", "0.44203207", "0.44156098", "0.44083428", "0.440802", "0.4406289", "0.44058117", "0.44045797", "0.4403204", "0.43982688", "0.43915007", "0.43905622", "0.43821263", "0.4372547", "0.43709347", "0.43608037", "0.43555796", "0.4354258", "0.4352801", "0.43489298", "0.434763", "0.433419", "0.43339637", "0.43323565", "0.43272614", "0.43259904", "0.432124", "0.43142167", "0.43105966", "0.4305459", "0.43052202", "0.42994204", "0.42960602", "0.42950857", "0.4289646", "0.42658046", "0.4264971", "0.4263761", "0.4261541", "0.42609388", "0.42608267", "0.4258056", "0.42575505", "0.424806", "0.42400825", "0.42258772", "0.42198092", "0.4219665", "0.4219665", "0.42188624", "0.42125526", "0.42120194", "0.42120194", "0.42112076", "0.4206403", "0.42060927", "0.42059082", "0.42059082", "0.42059082", "0.42002133" ]
0.44718564
37
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_ROUTE.ANSWDS
public void setAnswds(Long answds) { this.answds = answds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSNDR(String SNDR) {\n this.SNDR = SNDR;\n }", "public void toggleWardenAS(AvoidMode avoidMode, ReversePoisonMode rpMode) {\n this.wardenAS = true;\n this.avoidMode = avoidMode;\n this.poisonMode = rpMode;\n this.routeStatusMap = new TIntIntHashMap();\n if (this.avoidMode == AS.AvoidMode.LEGACY) {\n this.mplsRoutes = new TIntObjectHashMap<BGPPath>();\n }\n }", "public void setRoutingNo (String RoutingNo);", "public void setSWDES(int param) {\r\n this.localSWDES = param;\r\n }", "public void setsvap() \n\t{\n\t\tthis.svap = svap;\n\t}", "public void setAdr1(String adr1) {\n this.adr1 = adr1;\n }", "public void setGPSAntennaDetailsID(java.lang.String gpsAntennaDetailsID)\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(GPSANTENNADETAILSID$14);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(GPSANTENNADETAILSID$14);\r\n }\r\n target.setStringValue(gpsAntennaDetailsID);\r\n }\r\n }", "void setRoadsideArray(org.landxml.schema.landXML11.RoadsideDocument.Roadside[] roadsideArray);", "public void setAdr2(String adr2) {\n this.adr2 = adr2;\n }", "public void setNetWS(long netWS) {\r\n/* 406 */ this._netWS = netWS;\r\n/* 407 */ this._has_netWS = true;\r\n/* */ }", "public void setSaddled(boolean saddled) {\n\t\tL.trace(\"setSaddled({})\", saddled);\n\t\tdataManager.set(DATA_SADDLED, saddled);\n\t}", "void setDSTSavings(int dstSavings);", "public void setRentWay(Integer rentWay) {\n this.rentWay = rentWay;\n }", "void setRoute(String routeID);", "public void setRunways(ListArrayBasedPlus<Runway> runways)\r\n {\r\n this.runways = runways;\r\n }", "public void setRoutesEnabled(Boolean routesEnabled) {\n this.routesEnabled = routesEnabled;\n }", "public void setAsDown () \n\t{ \n\t\tn.setFailureState(false);\n\t\tfinal SortedSet<WLightpathRequest> affectedDemands = new TreeSet<> ();\n\t\tgetOutgoingFibers().forEach(f->affectedDemands.addAll(f.getTraversingLpRequestsInAtLeastOneLp()));\n\t\tgetIncomingFibers().forEach(f->affectedDemands.addAll(f.getTraversingLpRequestsInAtLeastOneLp()));\n\t\tfor (WLightpathRequest lpReq : affectedDemands)\n\t\t\tlpReq.internalUpdateOfRoutesCarriedTrafficFromFailureState();\n\t}", "public void setDENNGAY( String DENNGAY )\n {\n this.DENNGAY = DENNGAY;\n }", "@SkipValidation\n\tpublic String saveOrUpdate()\n\t{\n\t\tdrgatewaysDAO.saveOrUpdateDRGateways(drgateways);\n\n\t\tactivateDAO.setActivate(\"1\");\n\n\t\t//reload the drgateways\n\t\tlistDRGateways = null;\n\t\tlistDRGateways = drgatewaysDAO.listDRGateways();\n\n\t\treturn SUCCESS;\n\t}", "void setStation(double station);", "public void setRTRNCD(int value) {\n this.rtrncd = value;\n }", "public String getSNDR() {\n return SNDR;\n }", "public void setServerLink( ServerLink srvLnk ) {\r\n /*========================================================================*/ \r\n this.srvLnk = srvLnk;\r\n }", "@Override\n\tpublic void drink() {\n\t\tthis.setDrunkTurns(params.getParamValue(\"traineeDrunkTurns\"));\n\t}", "@Override\n\tpublic void setAdderSn(Long adderSn) {\n\t\t\n\t}", "public void xsetGPSAntennaDetailsID(org.apache.xmlbeans.XmlIDREF gpsAntennaDetailsID)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlIDREF target = null;\r\n target = (org.apache.xmlbeans.XmlIDREF)get_store().find_attribute_user(GPSANTENNADETAILSID$14);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlIDREF)get_store().add_attribute_user(GPSANTENNADETAILSID$14);\r\n }\r\n target.set(gpsAntennaDetailsID);\r\n }\r\n }", "public final synchronized void mo39719a(C15630dn dnVar) {\n this.f40700A = dnVar;\n }", "void setRoadway(org.landxml.schema.landXML11.RoadwayDocument.Roadway roadway);", "private void setRoads(RnsReader rnsReader) {\n\t\t// s is never null\n\t\troadsByUri.clear();\n\t\tSet<RoadSegmentReader> s = rnsReader.getRoadSegments(null);\n\t\t\n\t\tfor(RoadSegmentReader rsr : s){\n\t\t\tRoad r = (new ObjectFactory()).createRoad();\n\t\t\tr.setRoadName(rsr.getRoadName());\n\t\t\tString roadUri = buildRoadUriFromId(rsr.getRoadName());\n\t\t\tr.setSelf(roadUri);\n\t\t\tif(!roadsByUri.containsKey(roadUri)){\n\t\t\t\tputResource(r);\n\t\t\t}\n\t\t}\n\t}", "public void setSfyDwdb(Integer sfyDwdb) {\r\n this.sfyDwdb = sfyDwdb;\r\n }", "void setDirections(Directions dir){\n this.dir = dir;\n }", "public void calculateRoute() {\n SKRouteSettings route = new SKRouteSettings();\n route.setStartCoordinate(start);\n route.setDestinationCoordinate(end);\n route.setNoOfRoutes(1);\n switch (routingType) {\n case SHORTEST:\n route.setRouteMode(SKRouteSettings.SKRouteMode.BICYCLE_SHORTEST);\n break;\n case FASTEST:\n route.setRouteMode(SKRouteSettings.SKRouteMode.BICYCLE_FASTEST);\n break;\n case QUIET:\n route.setRouteMode(SKRouteSettings.SKRouteMode.BICYCLE_QUIETEST);\n break;\n }\n route.setRouteExposed(true);\n SKRouteManager.getInstance().calculateRoute(route);\n }", "public void setStationName(org.apache.xmlbeans.XmlAnySimpleType stationName)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlAnySimpleType target = null;\r\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(STATIONNAME$12);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().add_attribute_user(STATIONNAME$12);\r\n }\r\n target.set(stationName);\r\n }\r\n }", "public void setLBR_LatePaymentPenaltyDays (int LBR_LatePaymentPenaltyDays);", "public void setMsisdn(java.lang.String param){\n localMsisdnTracker = true;\n \n this.localMsisdn=param;\n \n\n }", "public void setReverseAgency(boolean value) {\r\n this.reverseAgency = value;\r\n }", "public void setDY(int DY){\n \tdy = DY;\n }", "@Test\n public void testSolicitRouterAdvertisement() throws Exception {\n sNetd.setProcSysNet(INetd.IPV6, INetd.CONF, mTetheredParams.name, \"forwarding\", \"1\");\n\n assertTrue(mRaDaemon.start());\n final RaParams params1 = createRaParams(\"2001:1122:3344::5566\");\n mRaDaemon.buildNewRa(null, params1);\n assertMulticastRaPacket(new TestRaPacket(null, params1));\n\n // Add a default route \"fe80::/64 -> ::\" to local network, otherwise, device will fail to\n // send the unicast RA out due to the ENETUNREACH error(No route to the peer's link-local\n // address is present).\n final String iface = mTetheredParams.name;\n final RouteInfo linkLocalRoute =\n new RouteInfo(new IpPrefix(\"fe80::/64\"), null, iface, RTN_UNICAST);\n RouteUtils.addRoutesToLocalNetwork(sNetd, iface, List.of(linkLocalRoute));\n\n final ByteBuffer rs = createRsPacket(\"fe80::1122:3344:5566:7788\");\n mTetheredPacketReader.sendResponse(rs);\n assertUnicastRaPacket(new TestRaPacket(null, params1));\n }", "public void enableDnsSrv(boolean enable);", "@Test\n public void testSetRouterType() throws Exception {\n isisNeighbor.setRouterType(IsisRouterType.L1);\n isisRouterType = isisNeighbor.routerType();\n assertThat(isisRouterType, is(IsisRouterType.L1));\n }", "public void setRoadwayRef(java.lang.String roadwayRef)\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(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.setStringValue(roadwayRef);\r\n }\r\n }", "public void makeReservationRouteStata() {\n\t\tlog(String.format(\"Making DEBUG ResRequest for Stata-1\"));\n\t\tmakeRequest(new ResRequest(mId, ResRequest.RES_GET, \"Stata-1\"));\n\t}", "public Builder setSnPort(int value) {\n \n snPort_ = value;\n onChanged();\n return this;\n }", "public Builder setSnPort(int value) {\n \n snPort_ = value;\n onChanged();\n return this;\n }", "public void sendAdverts() {\n\t\tfor (int pfx = 0; pfx < pfxList.size(); pfx++){\n\t\t\tfor(int lnk = 0; lnk < nborList.size(); ++lnk){\n\t\t\t\tif(lnkVec.get(lnk).helloState == 0){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tPacket p = new Packet();\n\t\t\t\tp.protocol = 2; p.ttl = 100;\n\t\t\t\tp.srcAdr = myIp;\n\t\t\t\tp.destAdr = lnkVec.get(lnk).peerIp;\n\t\t\t\tp.payload = String.format(\"RPv0\\ntype: advert\\n\" \n\t\t\t\t\t\t+ \"pathvec: %s %.3f %d %s\\n\",\n\t\t\t\t\t\tpfxList.get(pfx).toString(), now, 0, myIpString); //potential problems\n\t\t\t\tfwdr.sendPkt(p,lnk);\n\t\t\t}\n\t\t}\n\t}", "public void setAddress(String adrs) {\n address = adrs;\n }", "public void setAlternateRoute(short trainId, TrainRoute r) {\n\t\ttrainRoutes.put(trainId, r);\n\t}", "public void setDownRoadId(String downRoadId) {\n this.downRoadId = downRoadId == null ? null : downRoadId.trim();\n }", "public void setValueDs(String valueDs) {\n this.valueDs = valueDs;\n }", "public void setRoad(int a, int b, int size) {\n if (size != 0 && roads[a][b] == 0) {\n roadCount++;\n inDegree[b]++;\n outDegree[a]++;\n } else if (size == 0 && roads[a][b] != 0) {\n roadCount--;\n inDegree[b]--;\n outDegree[a]--;\n }\n roads[a][b] = size;\n }", "void setStation(String stationType, double band);", "public void setRoadwayPI(double roadwayPI)\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.setDoubleValue(roadwayPI);\r\n }\r\n }", "protected void setRoutes(WriteFileResponse response) {\n routes[ response.getSequence() ] = response.getRoutingPath();\n if ( ableToWrite && totalReceived.incrementAndGet() == routes.length )\n {\n unlock();\n }\n }", "public void setRSSI(int rssi) {\r\n this.rssi = rssi;\r\n }", "public void setDriftInNsPerSec(double r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e7 in method: android.location.GpsClock.setDriftInNsPerSec(double):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setDriftInNsPerSec(double):void\");\n }", "public void setDirection(){\n\n if (gameStatus != demoPlay)\n client_sb.i_Button = direct;\n\n TankMoveDelay++;\n StarGun_GSR loc=(StarGun_GSR)client_sb.getGameStateRecord();\n\n if (TankMoveDelay >= 1 &&\n loc.getPlayerX() < StarGun_SB.PLAYER_RIGHT_BORDER &&\n\t loc.getPlayerX() > 0) {\n TankMoveDelay = 0;\n switch (direct) {\n\tcase StarGun_SB.DIRECT_LEFT:\n\t if (TankPos==0)TankPos=iTankAmount-1;\n\t else TankPos--;\n\t\t\t\t break;\n case StarGun_SB.DIRECT_RIGHT:\n\t if (TankPos==iTankAmount-1)TankPos=0;\n\t else TankPos++;\n\t\t\t\t break;\n }\n }\n }", "void setRoutes(List<RouteType> routes);", "public void setDstAccessType(String DstAccessType) {\n this.DstAccessType = DstAccessType;\n }", "public void setAnswr(Float answr) {\r\n this.answr = answr;\r\n }", "public static RoadSegment getRoadSegment(String freeway, String direction, String onOffKey)\n\t{\n\t\tif(direction.equalsIgnoreCase(\"north\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"101\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(N101.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn N101.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"405\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(N405.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn N405.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\telse if(direction.equalsIgnoreCase(\"south\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"101\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(S101.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn S101.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"405\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(S405.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn S405.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\telse if(direction.equalsIgnoreCase(\"east\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"10\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(E10.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn E10.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"105\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(E105.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn E105.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\telse //if(direction.equalsIgnoreCase(\"west\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"10\"))\n\t\t\t{\n\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(W10.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn W10.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"105\"))\n\t\t\t{\n\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(W105.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn W105.getRoadSegAt(i);\n\t\t\t}\n\n\t\t}\n\t\n\t}", "public void setLBR_DirectDebitNotice (String LBR_DirectDebitNotice);", "public void setSipDscp(int dscp);", "public void setDialing(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.2.setDialing(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.2.setDialing(java.lang.String):void\");\n }", "public void genAdrCode(int nval) {\n\t\taddressSpace.write(lc.getAndIncrement(),nval);//const\n\t}", "public void setDRAResID(int DRAResID) {\n\t\tthis.DRAResID = DRAResID;\n\t}", "public void setDPIndex(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPIndex)));\n\t\tthis.m_sDPIndex=value;\n\t}", "void setStaStart(double staStart);", "private void sendUpdate(int dest) {\n Set<AS> prevAdvedTo = this.adjOutRib.get(dest);\n Set<AS> newAdvTo = new HashSet<AS>();\n BGPPath pathOfMerit = this.locRib.get(dest);\n\n /*\n * If we have a current best path to the destination, build a copy of\n * it, apply export policy and advertise the route\n */\n if (pathOfMerit != null) {\n BGPPath pathToAdv = pathOfMerit.deepCopy();\n\n pathToAdv.prependASToPath(this.asn);\n\n /*\n * Advertise to all of our customers\n */\n for (AS tCust : this.customers) {\n tCust.advPath(pathToAdv);\n newAdvTo.add(tCust);\n }\n\n /*\n * Check if it's our locale route (NOTE THIS DOES NOT APPLY TO\n * HOLE PUNCHED ROUTES, so the getDest as opposed to the\n * getDestinationAS _IS_ correct) or if we learned of it from a\n * customer\n */\n if (pathOfMerit.getDest() == this.asn\n || (this.getRel(pathOfMerit.getNextHop()) == 1)) {\n for (AS tPeer : this.peers) {\n tPeer.advPath(pathToAdv);\n newAdvTo.add(tPeer);\n }\n for (AS tProv : this.providers) {\n tProv.advPath(pathToAdv);\n newAdvTo.add(tProv);\n }\n }\n }\n\n /*\n * Handle the case where we had a route at one point, but have since\n * lost any route, so obviously we should send a withdrawl\n */\n if (prevAdvedTo != null) {\n prevAdvedTo.removeAll(newAdvTo);\n for (AS tAS : prevAdvedTo) {\n tAS.withdrawPath(this, dest);\n }\n }\n\n /*\n * Update the adj-out-rib with the correct set of ASes we have\n * adverstised the current best path to\n */\n this.adjOutRib.put(dest, newAdvTo);\n }", "public void setRoutes(RouteDescriptor[] routes) {\n mRoutes = routes;\n mBundle.putParcelableArray(KEY_ROUTES, RouteDescriptor.toParcelableArray(routes));\n }", "public void setDayLate(double dayLate) {\n this.dayLate = dayLate;\n }", "public void setNatGatewaySnatId(String NatGatewaySnatId) {\n this.NatGatewaySnatId = NatGatewaySnatId;\n }", "public void setSTS( Integer STS )\n {\n this.STS = STS;\n }", "public void setAdress(Adress adr) {\r\n // Bouml preserved body begin 00040F82\r\n\t this.adress = adr;\r\n // Bouml preserved body end 00040F82\r\n }", "@SuppressWarnings(\"ucd\")\n public void setPortRouter(int passedPort, PortRouter aPR) {\n synchronized( thePortRouterMap ){\n thePortRouterMap.put( passedPort, aPR );\n }\n }", "void xsetStaStart(org.landxml.schema.landXML11.Station staStart);", "void setDecisionSightDistanceArray(org.landxml.schema.landXML11.DecisionSightDistanceDocument.DecisionSightDistance[] decisionSightDistanceArray);", "private void setS2BRelay(PToP.S2BRelay value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 24;\n }", "public final flipsParser.northSouthDirection_return northSouthDirection() throws RecognitionException {\n flipsParser.northSouthDirection_return retval = new flipsParser.northSouthDirection_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token char_literal414=null;\n Token string_literal415=null;\n Token char_literal416=null;\n Token string_literal417=null;\n\n CommonTree char_literal414_tree=null;\n CommonTree string_literal415_tree=null;\n CommonTree char_literal416_tree=null;\n CommonTree string_literal417_tree=null;\n RewriteRuleTokenStream stream_258=new RewriteRuleTokenStream(adaptor,\"token 258\");\n RewriteRuleTokenStream stream_267=new RewriteRuleTokenStream(adaptor,\"token 267\");\n RewriteRuleTokenStream stream_266=new RewriteRuleTokenStream(adaptor,\"token 266\");\n RewriteRuleTokenStream stream_265=new RewriteRuleTokenStream(adaptor,\"token 265\");\n\n try {\n // flips.g:620:2: ( ( 'n' | 'north' ) -> NORTH | ( 's' | 'south' ) -> SOUTH )\n int alt156=2;\n int LA156_0 = input.LA(1);\n\n if ( ((LA156_0>=265 && LA156_0<=266)) ) {\n alt156=1;\n }\n else if ( (LA156_0==258||LA156_0==267) ) {\n alt156=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 156, 0, input);\n\n throw nvae;\n }\n switch (alt156) {\n case 1 :\n // flips.g:620:4: ( 'n' | 'north' )\n {\n // flips.g:620:4: ( 'n' | 'north' )\n int alt154=2;\n int LA154_0 = input.LA(1);\n\n if ( (LA154_0==265) ) {\n alt154=1;\n }\n else if ( (LA154_0==266) ) {\n alt154=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 154, 0, input);\n\n throw nvae;\n }\n switch (alt154) {\n case 1 :\n // flips.g:620:5: 'n'\n {\n char_literal414=(Token)match(input,265,FOLLOW_265_in_northSouthDirection3591); \n stream_265.add(char_literal414);\n\n\n }\n break;\n case 2 :\n // flips.g:620:9: 'north'\n {\n string_literal415=(Token)match(input,266,FOLLOW_266_in_northSouthDirection3593); \n stream_266.add(string_literal415);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 621:2: -> NORTH\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(NORTH, \"NORTH\"));\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:622:4: ( 's' | 'south' )\n {\n // flips.g:622:4: ( 's' | 'south' )\n int alt155=2;\n int LA155_0 = input.LA(1);\n\n if ( (LA155_0==258) ) {\n alt155=1;\n }\n else if ( (LA155_0==267) ) {\n alt155=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 155, 0, input);\n\n throw nvae;\n }\n switch (alt155) {\n case 1 :\n // flips.g:622:5: 's'\n {\n char_literal416=(Token)match(input,258,FOLLOW_258_in_northSouthDirection3605); \n stream_258.add(char_literal416);\n\n\n }\n break;\n case 2 :\n // flips.g:622:9: 'south'\n {\n string_literal417=(Token)match(input,267,FOLLOW_267_in_northSouthDirection3607); \n stream_267.add(string_literal417);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 623:2: -> SOUTH\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(SOUTH, \"SOUTH\"));\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public @NonNull NetworkCapabilities setLinkDownstreamBandwidthKbps(int downKbps) {\n mLinkDownBandwidthKbps = downKbps;\n return this;\n }", "public void setDylb(java.lang.String param) {\r\n localDylbTracker = param != null;\r\n\r\n this.localDylb = param;\r\n }", "public void setSNbrSvcDtlToDay(int sNbrSvcDtlToDay)\r\n {\r\n this._sNbrSvcDtlToDay = sNbrSvcDtlToDay;\r\n this._has_sNbrSvcDtlToDay = true;\r\n }", "public IRoadSensor setRoadStatus(ERoadStatus s);", "public static void init_default_traffic() throws SQLException{\n\t\tint length = Common.roadlist.length;\n\t\tdefault_traffic = new double[length][(int)Common.max_seg + 1];\n\t\t//28 classes of road ,max id is 305, set 350 here\n\t\tdefault_class_traffic = new double [350][(int)Common.max_seg + 1];\n\t\t//start read traffic from database\n\t\tConnection con = Common.getConnection();\n\t\ttry{\n\t\t\t//read default road speed\n\t\t\tStatement stmt = con.createStatement();\n\t\t\t//read by period\n\t\t\tfor(int i=1; i<=Common.max_seg; i++){\n\t\t\t\tString traffic_table = Common.history_road_slice_table + i;\n\t\t\t\t//read data\n\t\t\t\tString sql = \"select * from \" + traffic_table + \";\";\n\t\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\t\tint[] class_id_counter = new int[350];\n\t\t\t\twhile(rs.next()){\n\t\t\t\t\tint gid = rs.getInt(\"gid\");\n\t\t\t\t\tint class_id = rs.getInt(\"class_id\");\n\t\t\t\t\tclass_id_counter[class_id]++;\n\t\t\t\t\t//Common.logger.debug(gid);\n\t\t\t\t\tdouble speed = rs.getDouble(\"average_speed\");\n\t\t\t\t\tdefault_traffic[gid][i] = speed;\n\t\t\t\t\tdefault_class_traffic[class_id][i] += speed;\n\t\t\t\t}\n\t\t\t\t//get average speed of roads in same class\n\t\t\t\tfor(int j=0; j<class_id_counter.length; j++){\n\t\t\t\t\tint counter = class_id_counter[j];\n\t\t\t\t\tif(counter > 0){\n\t\t\t\t\t\tdefault_class_traffic[j][i] /= counter;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tcon.rollback();\n\t\t}\n\t\tfinally{\n\t\t\tcon.commit();\n\t\t}\t\t\n\t}", "private void Ads(int rec){\n if( rec > 2 ){ return; }\n try {\n int Time = (int) (System.currentTimeMillis()/1000);\n int randomInt = Time%10;\n int index = 0;\n \n boolean mostrar = ((System.currentTimeMillis()/1000)%2)==0;\n URL url = new URL(\"http://redswap.blogspot.com/p/ads_6.html\");\n\t\t\t\n\t\t\t// read text returned by server\n\t\t BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));\n\t\t \n\t\t String line;\n\t\t while ((line = in.readLine()) != null) {\n if( line.length() < 6 ){ continue; }\n line = line.trim();\n try {\n \n\t\t \tif( line.contains(\"<swap>\") && line.contains(\"</swap>\") ){\n //System.out.println(line); \n line = line.replace(\"<swap>\", \"\");\n double vac = Double.parseDouble( line.replace(\"</swap>\", \"\").trim() );\n if( version < vac ){\n this.Lbl_Update.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n this.Lbl_Update.setText(\"Disponible Swap \"+vac);\n final URI nv = new URI(\"http://redswap.blogspot.com/\");\n this.Lbl_Update.addMouseListener(new java.awt.event.MouseAdapter() {\n @Override\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n try {\n Desktop.getDesktop().browse(nv);\n } catch (IOException ex) {\n Logger.getLogger(Pantalla_Principal.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n @Override\n public void mouseEntered(java.awt.event.MouseEvent e) {\n Lbl_Update.setText( \"<HTML><U>\"+Lbl_Update.getText()+\"</U></HTML>\" );\n }\n \n @Override\n public void mouseExited(java.awt.event.MouseEvent e) {\n String txt = Lbl_Update.getText().replace(\"<HTML><U>\",\"\");\n Lbl_Update.setText( txt.replace(\"</U></HTML>\",\"\") );\n }\n });\n }\n }\n \n if( mostrar && line.contains(\"<ads>\") && line.contains(\"</ads>\") ){\n if( randomInt >= index ){ index++; continue; }\n if( randomInt < index ){ break; }\n \n line = line.replace(\"<ads>\", \"\");\n line = line.replace(\"</ads>\", \"\");\n //System.out.println(line); \n \n \n if( line.contains(\"<a>\") ){\n String link = line.substring(line.indexOf(\"<a>\")+3, line.indexOf(\"</a>\"));\n this.Lbl_Ads.setText(\"<HTML>\"+line.replace(\"<a>\"+link+\"</a>\", \"\")+\"</HTML>\");\n final URI nv = new URI(link);\n this.Lbl_Ads.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n this.Lbl_Ads.addMouseListener(new java.awt.event.MouseAdapter() {\n @Override\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n try {\n Desktop.getDesktop().browse(nv);\n } catch (IOException ex) {\n Logger.getLogger(Pantalla_Principal.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n @Override\n public void mouseEntered(java.awt.event.MouseEvent e) {\n String link = Lbl_Ads.getText().replace(\"<HTML>\",\"\");\n Lbl_Ads.setText( \"<HTML><U>\"+link.replace(\"</HTML>\",\"\")+\"</U></HTML>\" );\n }\n \n @Override\n public void mouseExited(java.awt.event.MouseEvent e) {\n String txt = Lbl_Ads.getText().replace(\"<U>\",\"\");\n Lbl_Ads.setText( txt.replace(\"</U>\",\"\") );\n }\n });\n }else{\n this.Lbl_Ads.setText(\"<HTML>\"+line+\"</HTML>\");\n }\n this.resize(520, 440);\n }\n \n }catch (NumberFormatException | URISyntaxException e) { System.out.println(e.getClass().toString()+\" : \" + e.getMessage()); }\n \n \n\t\t }\n\t\t in.close();\n\t\t \n\t\t}\n\t\tcatch (MalformedURLException e) {\n\t\t\tSystem.out.println(\"Malformed URL: \" + e.getMessage());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"I/O Error: \" + e.getMessage());\n Ads(++rec);\n\t\t}\n \n //this.Lbl_Ads.setMinimumSize(width, height);\n //this.Lbl_Ads.setPreferedSize(width, height);\n //this.Lbl_Ads.setMaximumSize(width, height);\n //this.Lbl_Ads.setSize(width, height);\n \n }", "public int Simulate()\r\n {\r\n return town.planRoute();\r\n }", "public void setDroneDelay(int delay)\r\n {\r\n droneDelay=delay;\r\n }", "public void setUpdusrid(String updusrid) {\r\n this.updusrid = updusrid;\r\n }", "public synchronized void setCurrentRssi(int rssi) {\n currentSignalStrength = rssi;\n }", "public void setStations(LinkedList<Station> stations) {\n this.stations = stations;\n }", "public void holdSeat() {\n String seatNo = this.getSeatNo();\n this.setStatus(Status.HOLD);\n this.setHold(true);\n //call the db or service to hold the seat\n }", "public void setPRTNO(java.lang.Integer PRTNO) {\n this.PRTNO = PRTNO;\n }", "private void setS1Port(int value) {\n \n s1Port_ = value;\n }", "public void setAdres(String adres) {\n\t\tthis.adres = adres;\n\t}", "public void xsetRoadwayPI(org.landxml.schema.landXML11.Station roadwayPI)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.Station)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.set(roadwayPI);\r\n }\r\n }", "public void setLEDLights(int lightID);", "public Builder setHealSnPort(int value) {\n \n healSnPort_ = value;\n onChanged();\n return this;\n }", "public void setDw(String dw) {\n this.dw = dw;\n }", "public void setStaDate(Long staDate) {\n\t\tthis.staDate = staDate;\n\t}", "public void setupArrivals() {\n \t\tmRdsArray = Data.getAllRdsWithStopTitle(mStopTitle, mRouteTag,\n \t\t\t\tmDirectionTag);\n \n \t\tarrivalList.setAdapter(new ArrivalAdapter(getApplicationContext(),\n \t\t\t\tmRdsArray));\n \n \t\tarrivalList.setOnItemClickListener(null);\n \t\t/*\n \t\t * Listener for arrival drawer thing. If a cell is clicked, open the\n \t\t * stop for that route\n \t\t */\n \t\tarrivalList.setOnItemClickListener(new OnItemClickListener() {\n \t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n \t\t\t\t\tint position, long id) {\n \t\t\t\tif (!mArrivalsArray[0].equals(\"No other arrivals\")) {\n \t\t\t\t\tRouteDirectionStop rds = mRdsArray[position];\n \t\t\t\t\tIntent intent = StopViewActivity.createIntent(\n \t\t\t\t\t\t\tgetApplicationContext(), rds.route.tag,\n \t\t\t\t\t\t\trds.direction, rds.stop);\n \t\t\t\t\tstartActivity(intent);\n \t\t\t\t}\n \t\t\t}\n \t\t});\n \n \t}", "@JsonSetter(\"dnisEnabled\")\r\n public void setDnisEnabled (boolean value) { \r\n this.dnisEnabled = value;\r\n }" ]
[ "0.5287075", "0.5198491", "0.51905143", "0.49593312", "0.49184078", "0.47105733", "0.46232456", "0.46011555", "0.45880246", "0.45748028", "0.45582622", "0.45251825", "0.44964308", "0.4489502", "0.44731405", "0.4463677", "0.4456938", "0.44540522", "0.4435341", "0.44295058", "0.44250393", "0.43874362", "0.43829957", "0.43668655", "0.4364571", "0.43609723", "0.4349385", "0.42982918", "0.42916682", "0.42915577", "0.42870316", "0.4274397", "0.4271213", "0.42593876", "0.42562947", "0.4244631", "0.42354375", "0.42353576", "0.42261085", "0.4224945", "0.42242736", "0.4212686", "0.42016175", "0.42016175", "0.41968122", "0.4172712", "0.41710225", "0.41638905", "0.41590995", "0.4144839", "0.41368482", "0.41361645", "0.41351834", "0.4126752", "0.41261244", "0.41256493", "0.41229934", "0.41189066", "0.41129297", "0.41128013", "0.41123375", "0.41119176", "0.4100241", "0.40971044", "0.40966848", "0.40891024", "0.40882823", "0.4087904", "0.4075674", "0.4074397", "0.4074218", "0.4064658", "0.40555742", "0.40513337", "0.4048468", "0.40433136", "0.4043097", "0.40422857", "0.4042", "0.4032241", "0.40283427", "0.4024199", "0.4022177", "0.40145066", "0.4013916", "0.40109488", "0.40100476", "0.40098792", "0.40096876", "0.40079936", "0.3999125", "0.39987648", "0.39974377", "0.3996797", "0.3990678", "0.39846355", "0.39841112", "0.39811268", "0.397995", "0.3969451" ]
0.40904006
65
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_DY_ROUTE.ANSWR
public Float getAnswr() { return answr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\r\n\t\treturn gaTerminals.getWSRule();\r\n\t}", "public TerminalRule getWSRule() {\r\n\t\treturn gaTerminals.getWSRule();\r\n\t}", "public TerminalRule getWSRule() {\r\n\t\treturn gaTerminals.getWSRule();\r\n\t}", "public TerminalRule getWSRule() {\r\n\t\treturn gaTerminals.getWSRule();\r\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaXtype.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaXtype.getWSRule();\n\t}", "public TerminalRule getWSRule() {\r\n\t\treturn gaXtype.getWSRule();\r\n\t}", "public int getRssi() {\n return rssi;\n }", "public int getRssi() {\r\n return rssi;\r\n }", "public String geteSRBRating() {\n return eSRBRating;\n }", "public java.lang.CharSequence getOTDFLTROSSRIND() {\n return OT_DFLT_ROS_SR_IND;\n }", "public java.lang.CharSequence getOTDFLTROSSRIND() {\n return OT_DFLT_ROS_SR_IND;\n }", "public String getRoutingNo();", "public String getBusniessSn() {\n return busniessSn;\n }", "public String getWlSnFlag() {\n\t\treturn wlSnFlag;\n\t}", "public java.lang.String getRoadwayRef()\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(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getSbzrmc() {\n return sbzrmc;\n }", "public String getWash() {\n return (String)getAttributeInternal(WASH);\n }", "public Bearing getRightNeighbour() {\n return this == N || this == S ? E : S;\n }", "public java.lang.String getWAERK() {\n return WAERK;\n }", "public String getToStation();", "public double getRwsValue() {\n return this.rwsValue;\n }", "public java.lang.String getSW() {\r\n return localSW;\r\n }", "public final synchronized int getWindingRule() {\n\t\treturn windingRule;\n\t}", "public String getRwmc() {\n return rwmc;\n }", "public String getLBR_SitNF();", "public String getRoutingStatus() {\n return routingStatus;\n }", "public Integer getRentWay() {\n return rentWay;\n }", "public String getRouters(){\n wifi.startScan();\n results = wifi.getScanResults();\n size = results.size();\n String jsonRouter = new Gson().toJson(results);\n return jsonRouter;\n }", "public String getReceived(){\n String rec;\n if (received == Received.ON_TIME){\n rec = \"On Time\";\n }else if(received == Received.LATE){\n rec = \"Late\";\n }else if(received == Received.NO){\n rec = \"NO\";\n }else{\n rec = \"N/A\";\n }\n return rec;\n }", "public n baw() {\n return this.ewZ;\n }", "public java.lang.String getRoute () {\n\t\treturn route;\n\t}", "public String getSNDR() {\n return SNDR;\n }", "java.lang.String getTransitAirport();", "public int getRightWeight(){\r\n\t \treturn this.rightWeight;\r\n\t }", "public int getNumberOutboundStops(){\n\t \treturn 0;\n\t \t\n\t \t\n\t }", "public Float getOanswr() {\r\n return oanswr;\r\n }", "public int getRaint() {\n\t\treturn raint;\n\t}", "public static RoadSegment getRoadSegment(String freeway, String direction, String onOffKey)\n\t{\n\t\tif(direction.equalsIgnoreCase(\"north\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"101\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(N101.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn N101.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"405\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(N405.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn N405.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\telse if(direction.equalsIgnoreCase(\"south\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"101\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(S101.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn S101.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"405\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(S405.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn S405.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\telse if(direction.equalsIgnoreCase(\"east\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"10\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(E10.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn E10.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"105\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(E105.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn E105.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\telse //if(direction.equalsIgnoreCase(\"west\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"10\"))\n\t\t\t{\n\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(W10.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn W10.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"105\"))\n\t\t\t{\n\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(W105.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn W105.getRoadSegAt(i);\n\t\t\t}\n\n\t\t}\n\t\n\t}", "public synchronized int getCurrentRssi() {\n initNetwork();\n return currentSignalStrength;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getTerminalDownloadQueryForDayReturn(){\n return localTerminalDownloadQueryForDayReturn;\n }", "@MavlinkFieldInfo(\n position = 14,\n unitSize = 1,\n description = \"Receive signal strength indicator in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown.\"\n )\n public final int rssi() {\n return this.rssi;\n }", "public String getAwbNbr() {\n return _awbNbr;\n }", "public String getSfnw() {\n return sfnw;\n }", "int getHealSnPort();", "public ReactorResult<java.lang.String> getAllInternetRadioStationName_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), INTERNETRADIOSTATIONNAME, java.lang.String.class);\r\n\t}", "public String getStationld() {\n return stationld;\n }", "public void setAnswr(Float answr) {\r\n this.answr = answr;\r\n }", "public int getMinRssiReadings() {\n return getMinReadings();\n }", "org.landxml.schema.landXML11.RoadwayDocument.Roadway getRoadway();", "public String getSjr() {\r\n\t\treturn sjr;\r\n\t}", "public String getAvailableForRentFlag() {\n return (String) getAttributeInternal(AVAILABLEFORRENTFLAG);\n }", "public YangUInt32 getSrvWeightValue() throws JNCException {\n return (YangUInt32)getValue(\"srv-weight\");\n }", "public ShareRouteParm getRouteMsg() {\n\t\treturn routeMsg;\n\t}", "public static String getSells() {\n if(DatabaseMethods.sales_analaysis()){\r\n return DatabaseMethods.get_total_sales();\r\n }\r\n else{\r\n return null; \r\n }\r\n \r\n\t}", "public Integer getRenwalMnths() {\n return (Integer) getAttributeInternal(RENWALMNTHS);\n }", "public long getNetWS() {\r\n/* 191 */ return this._netWS;\r\n/* */ }", "public org.apache.axis2.databinding.types.soapencoding.String getGetDirectSrvInfoReturn(){\n return localGetDirectSrvInfoReturn;\n }", "public String getRwjl() {\n return rwjl;\n }", "public String getAnserTelphone() {\r\n return anserTelphone;\r\n }", "public char get_WSID() {\r\n return (WSID_ANSWER);\r\n }", "public String getRightRoadId() {\n return rightRoadId;\n }", "public Bearing getLeftNeighbour() {\n return this == N || this == S ? W : N;\n }", "org.landxml.schema.landXML11.Station xgetStaEnd();", "public String getSjrTel() {\r\n\t\treturn sjrTel;\r\n\t}", "public int getSWDES() {\r\n return localSWDES;\r\n }", "public double getRoadwayPI()\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }", "String getStationBand();", "public String getFromStation();", "public org.apache.axis2.databinding.types.soapencoding.String getGetDirectAreaInfoReturn(){\n return localGetDirectAreaInfoReturn;\n }", "public String getSfdw() {\n return sfdw;\n }", "public String getOUTSTD_PRINCIPAL_INSTALLMNT_YN() {\r\n return OUTSTD_PRINCIPAL_INSTALLMNT_YN;\r\n }", "public int getWallStrength() {\n\t\treturn wallStrength;\n\t}", "public Boolean disableOutboundSnat() {\n return this.disableOutboundSnat;\n }", "java.lang.String getArrivalAirport();", "public String getWashNew() {\n return (String) getAttributeInternal(WASHNEW);\n }", "public org.apache.xmlbeans.XmlAnySimpleType getStationName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlAnySimpleType target = null;\r\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(STATIONNAME$12);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }", "public org.landxml.schema.landXML11.Station xgetRoadwayPI()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(ROADWAYPI$18);\r\n return target;\r\n }\r\n }", "public int getArp(){\n\t\treturn arp;\n\t}", "public String getTbApWtEntryTotalConsuption()\n\t\t\t\tthrows AgentException{\n\t\t// Fill up with necessary processing\n\n\t\ttry {\n\t\t\tConnection con = DBConnection.getMySQLConnection();\n\t\t\tResultSet rs = con.createStatement().executeQuery(\"SELECT \" + CondominiumUtils.TOTAL_W + \" FROM apartment WHERE id = \" + tbApWtEntryIndex);\n\t\t\t\n\t\t\tif(rs.next()) {\n\t\t\t\ttbApWtEntryTotalConsuption = rs.getString(CondominiumUtils.TOTAL_W);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tDBConnection.closeMySQLConnection();\n\t\t}\n\t\treturn tbApWtEntryTotalConsuption;\n\t}", "public NM getRxa13_AdministeredStrength() { \r\n\t\tNM retVal = this.getTypedField(13, 0);\r\n\t\treturn retVal;\r\n }", "public String getTUNGAY()\n {\n return this.TUNGAY;\n }", "double getStation();", "public String getWashingPlant() {\n return (String) getAttributeInternal(WASHINGPLANT);\n }", "public String getRouteType() {\n return routeType;\n }", "public String checkIsWs(String nip) {\n\t\tlogger.trace(\"Masuk Check Dosen WS : \"+nip);\n\t\tString result = dosenRepository.storedProcedure(\"check_dosen_ws\",nip);\n\t\t\n\t\tif(result == null) {\n\t\t\tresult=\"false\";\n\t\t}\n\t\t\n\t\t\n\t\treturn result;\n\t}" ]
[ "0.523442", "0.523442", "0.523442", "0.523442", "0.523442", "0.523442", "0.523442", "0.523442", "0.523442", "0.523442", "0.523442", "0.523442", "0.523442", "0.523442", "0.521612", "0.521612", "0.521612", "0.521612", "0.51837415", "0.51837415", "0.5168184", "0.49071014", "0.4891561", "0.48073363", "0.47760576", "0.47617933", "0.476159", "0.47477555", "0.47181535", "0.4700562", "0.46917143", "0.46887937", "0.4623616", "0.46193847", "0.46160823", "0.46136856", "0.46039203", "0.46023974", "0.45795116", "0.4571772", "0.45644733", "0.45447034", "0.45415145", "0.45174295", "0.4501556", "0.450147", "0.44715586", "0.4460628", "0.44561797", "0.4450206", "0.44482383", "0.4429069", "0.44182247", "0.44069776", "0.4400621", "0.43985587", "0.43977508", "0.43771434", "0.43721", "0.4360991", "0.43551174", "0.43482843", "0.4345876", "0.43416417", "0.43344763", "0.43282303", "0.43257946", "0.43188265", "0.43153855", "0.43133014", "0.43073735", "0.43042147", "0.43037078", "0.4293561", "0.42920858", "0.42904893", "0.42793685", "0.42757943", "0.42697215", "0.42578325", "0.42567614", "0.42547408", "0.42453778", "0.42441317", "0.42428917", "0.42376533", "0.4224916", "0.4217618", "0.42164084", "0.42142037", "0.4208554", "0.42050552", "0.42045653", "0.42023075", "0.41957644", "0.41935056", "0.41916037", "0.4191098", "0.4190351", "0.41900587" ]
0.5253177
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_ROUTE.ANSWR
public void setAnswr(Float answr) { this.answr = answr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void toggleWardenAS(AvoidMode avoidMode, ReversePoisonMode rpMode) {\n this.wardenAS = true;\n this.avoidMode = avoidMode;\n this.poisonMode = rpMode;\n this.routeStatusMap = new TIntIntHashMap();\n if (this.avoidMode == AS.AvoidMode.LEGACY) {\n this.mplsRoutes = new TIntObjectHashMap<BGPPath>();\n }\n }", "public void setRoutingNo (String RoutingNo);", "public void setRoadwayRef(java.lang.String roadwayRef)\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(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.setStringValue(roadwayRef);\r\n }\r\n }", "public void setRentWay(Integer rentWay) {\n this.rentWay = rentWay;\n }", "void xsetStaEnd(org.landxml.schema.landXML11.Station staEnd);", "public Float getAnswr() {\r\n return answr;\r\n }", "public void setWriteReg(){\r\n\t\twriteRegVal = read_writeReg;\r\n\t}", "@PathParam(\"rule\")\n public void setRule(@NotNull(message = \"rule name can't be NULL\")\n final String rle) {\n this.rule = rle;\n }", "public void setWAERK(java.lang.String WAERK) {\n this.WAERK = WAERK;\n }", "public void setSbzrmc(String sbzrmc) {\n this.sbzrmc = sbzrmc == null ? null : sbzrmc.trim();\n }", "public void updateRightWeight(){\r\n\t \tif(this.rightNode != null)\r\n\t \t{\r\n\t \t\tif( this.rightNode.isNoGoZone() == true)\r\n\t \t{\r\n\t \t\t\t//set edge weight to 9999 if the next node is NO go zone or\r\n\t \t\t\t//boundary node\r\n\t \t\tthis.rightWeight = weightOfNoGoZone;\r\n\t \t}\r\n\t \telse if(this.rightNode.isRoad() == true && this.rightNode.isNoGoZone() == false)\r\n\t \t{\r\n\t \t\t//set edge weight to 1 if the next node is a road node\r\n\t \t\tthis.rightWeight = this.rightNode.getOwnElevation();\r\n\t \t}\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\t//set edge weight to INF if the next node is NULL\r\n\t \t\tthis.rightWeight = weightOfMapEdge;\r\n\t \t}\r\n\t }", "public void setSWDES(int param) {\r\n this.localSWDES = param;\r\n }", "protected void setRoutes(WriteFileResponse response) {\n routes[ response.getSequence() ] = response.getRoutingPath();\n if ( ableToWrite && totalReceived.incrementAndGet() == routes.length )\n {\n unlock();\n }\n }", "public synchronized void setCurrentRssi(int rssi) {\n currentSignalStrength = rssi;\n }", "private void updISTRN() \n\t{\n\t\ttry\n\t\t{\n\t\t\tM_strSQLQRY = \"Update FG_ISTRN set \";\n\t\t\tM_strSQLQRY += \"IST_STSFL = '1',\";\n\t\t\tM_strSQLQRY += \"IST_TRNFL = '0',\";\n\t\t\tM_strSQLQRY += \"IST_LUSBY = '\"+cl_dat.M_strUSRCD_pbst+\"',\";\n\t\t\tM_strSQLQRY += \"IST_LUPDT = '\"+M_fmtDBDAT.format(M_fmtLCDAT.parse(cl_dat.M_strLOGDT_pbst ))+\"'\";\n\t\t\tM_strSQLQRY += \" where ist_CMPCD = '\"+cl_dat.M_strCMPCD_pbst+\"' and ist_wrhtp = '\"+strWRHTP+\"'\";\n\t\t\tM_strSQLQRY += \" and ist_isstp = '\"+strISSTP+\"'\";\n\t\t\tM_strSQLQRY += \" and ist_issno = '\"+txtISSNO.getText().toString() .trim() +\"'\";\n\t\t\tM_strSQLQRY += \" and ist_prdcd = '\"+strPRDCD+\"'\";\n\t\t\tM_strSQLQRY += \" and ist_prdtp = '\"+strPRDTP+\"'\";\n\t\t\tM_strSQLQRY += \" and ist_lotno = '\"+strLOTNO+\"'\";\n\t\t\tM_strSQLQRY += \" and ist_rclno = '\"+strRCLNO+\"'\";\n\t\t\tM_strSQLQRY += \" and ist_pkgtp = '\"+strPKGTP+\"'\";\n\t\t\tM_strSQLQRY += \" and ist_mnlcd = '\"+strMNLCD+\"'\";\n\t\t\t\n\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\n\t\t\t//System.out.println(\"update fgistrn table :\"+M_strSQLQRY);\n\t\t\t\n\t\t}catch(Exception L_EX)\n\t\t{\n\t\t\tsetMSG(L_EX,\"updISTRN\");\n\t\t}\n\t}", "public void setsvap() \n\t{\n\t\tthis.svap = svap;\n\t}", "public void setRSSI(int rssi) {\r\n this.rssi = rssi;\r\n }", "public static void setRd(byte rd) {\n MEMWBRegister.rd = rd;\n }", "public void setAlternateRoute(short trainId, TrainRoute r) {\n\t\ttrainRoutes.put(trainId, r);\n\t}", "public void setNetWS(long netWS) {\r\n/* 406 */ this._netWS = netWS;\r\n/* 407 */ this._has_netWS = true;\r\n/* */ }", "public boolean setBankACH(int C_BankAccount_ID, boolean isReceipt, String tenderType,\n String routingNo, String accountNo) {\n setTenderType(tenderType);\n setIsReceipt(isReceipt);\n //\n if (C_BankAccount_ID > 0\n && (routingNo == null || routingNo.length() == 0 || accountNo == null || accountNo.length() == 0)) {\n setBankAccountDetails(C_BankAccount_ID);\n } else {\n setC_BankAccount_ID(C_BankAccount_ID);\n setRoutingNo(routingNo);\n setAccountNo(accountNo);\n }\n setCheckNo(\"\");\n //\n int check = MPaymentValidate.validateRoutingNo(routingNo).length()\n + MPaymentValidate.validateAccountNo(accountNo).length();\n return check == 0;\n }", "private boolean updateRoute(Route rte, Route nuRte) {\n\t\tboolean result = false;\n\t\tLinkInfo nuLink = lnkVec.get(nuRte.outLink);\n\t\tLinkInfo oldLink = lnkVec.get(rte.outLink);\n\t\tif (nuLink.helloState == 0){\n\t\t\tresult = false;\n\t\t}\n\t\t// if the route is invalid, update and return true\n\t\telse if (rte.valid == false){\n\t\t\treplaceExceptPrefix(rte,nuRte);\n\t\t\tresult = true;\n\t\t}\n\t\t//if both routes have same path and link, then timestamp \n\t\t//and cost of rte are updated\n\t\telse if (rte.outLink == nuRte.outLink && \n\t\t\t\trte.path == nuRte.path){\n\t\t\trte.timestamp = nuRte.timestamp;\n\t\t\trte.cost = nuRte.cost;\n\t\t\tresult = true;\n\t\t}\n\t\t//if nuRte has a cost that is less than .9 times the\n\t\t//cost of rte, then all fields in rte except the prefix fields\n\t\t//are replaced with the corresponding fields in nuRte\n\t\telse if (nuRte.cost < (.9 * rte.cost)){\n\t\t\treplaceExceptPrefix (rte, nuRte);\n\t\t\tresult = true;\n\t\t}\n\t\t//else, if nuRte is at least 20 seconds newer than rte\n\t\t//(as indicated by their timestamps), then all fields of\n\t\t//rte except the prefix fields are replaced\n\t\telse if (nuRte.timestamp - rte.timestamp >= 20){\n\t\t\treplaceExceptPrefix (rte, nuRte);\n\t\t\tresult = true;\n\t\t}\n\t\t//else, if the link field for rte refers to a link that is\n\t\t//currently disabled, replace all fields in rte but the\n\t\t//prefix fields\n\t\telse if (oldLink.helloState == 0){\n\t\t\treplaceExceptPrefix(rte, nuRte);\n\t\t\tresult = true;\n\t\t}\n\n\t\treturn result;\t\n\t}", "public void setRrNo (java.lang.String rrNo) {\n\t\tthis.rrNo = rrNo;\n\t}", "public void setRoutesEnabled(Boolean routesEnabled) {\n this.routesEnabled = routesEnabled;\n }", "public void setAnserTelphone(String anserTelphone) {\r\n this.anserTelphone = anserTelphone == null ? null : anserTelphone.trim();\r\n }", "public void setSNDR(String SNDR) {\n this.SNDR = SNDR;\n }", "public boolean isSetVSWR() {\n return ((this.vswr != null) && (!this.vswr.isEmpty()));\n }", "public void setStationName(org.apache.xmlbeans.XmlAnySimpleType stationName)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlAnySimpleType target = null;\r\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(STATIONNAME$12);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().add_attribute_user(STATIONNAME$12);\r\n }\r\n target.set(stationName);\r\n }\r\n }", "void setRoadway(org.landxml.schema.landXML11.RoadwayDocument.Roadway roadway);", "public void setRSU(boolean isRSU) { this.isRSU = isRSU; }", "void xsetStaStart(org.landxml.schema.landXML11.Station staStart);", "public void setStaDate(Long staDate) {\n\t\tthis.staDate = staDate;\n\t}", "private void setupTurnRoadCharacteristic() {\n turnRoadCharacteristic =\n new BluetoothGattCharacteristic(CHARACT_TURNROAD_UUID,\n BluetoothGattCharacteristic.PROPERTY_READ | BluetoothGattCharacteristic.PROPERTY_WRITE | BluetoothGattCharacteristic.PROPERTY_NOTIFY,\n BluetoothGattCharacteristic.PERMISSION_READ | BluetoothGattCharacteristic.PERMISSION_WRITE);\n\n turnRoadCharacteristic.addDescriptor(\n Peripheral.getClientCharacteristicConfigurationDescriptor());\n\n turnRoadCharacteristic.addDescriptor(\n Peripheral.getCharacteristicUserDescriptionDescriptor(CHARACT_TURNROAD_DESC));\n\n turnRoadCharacteristic.setValue(turnRoadCharacteristic_value);\n }", "public void setRTRNCD(int value) {\n this.rtrncd = value;\n }", "public void setWwn(long wwn) {\r\n this.wwn = wwn;\r\n }", "void setRoute(String routeID);", "public void setMethod(String method)\r\n {\r\n routing_method=method;\r\n }", "public IRoadSensor setRoadStatus(ERoadStatus s);", "public void setBusniessSn(String busniessSn) {\n this.busniessSn = busniessSn == null ? null : busniessSn.trim();\n }", "static private void sendSTS( boolean STS) throws IOException {\r\n\r\n\t\tif (swJvakt) {\r\n\t\t\tSystem.out.println(\"\\n--- \" + id + \" -- \" + t_desc);\r\n\t\t\tSystem.out.println(\"--- Connecting to \"+jvhost+\":\"+jvport);\r\n\t\t\tMessage jmsg = new Message();\r\n\t\t\tSendMsg jm = new SendMsg(jvhost, port);\r\n\t\t\tSystem.out.println(jm.open()); \r\n\t\t\tjmsg.setId(id);\r\n\t\t\tif (!STS) jmsg.setRptsts(\"OK\");\r\n\t\t\telse jmsg.setRptsts(\"ERR\");\r\n\t\t\tjmsg.setId(id);\r\n\t\t\tjmsg.setType(\"R\");\r\n\t\t\tjmsg.setBody(t_desc);\r\n\t\t\tjmsg.setAgent(agent);\r\n\t\t\tif (jm.sendMsg(jmsg)) System.out.println(\"--- Rpt Delivered -- \" + id + \" -- \" + t_desc);\r\n\t\t\telse \t\t System.out.println(\"--- Rpt Failed ---\");\r\n\t\t\tjm.close();\r\n\t\t}\r\n\t\telse {\r\n//\t\t\tSystem.out.println(\"--- \" + id + \" -- \" + t_desc);\r\n\t\t}\r\n\t}", "public void setOUTSTD_PRINCIPAL_INSTALLMNT_YN(String OUTSTD_PRINCIPAL_INSTALLMNT_YN) {\r\n this.OUTSTD_PRINCIPAL_INSTALLMNT_YN = OUTSTD_PRINCIPAL_INSTALLMNT_YN == null ? null : OUTSTD_PRINCIPAL_INSTALLMNT_YN.trim();\r\n }", "public void setToStation(String toStation);", "public void setOTDFLTROSSRIND(java.lang.CharSequence value) {\n this.OT_DFLT_ROS_SR_IND = value;\n }", "public void setIanswr(Float ianswr) {\r\n this.ianswr = ianswr;\r\n }", "public void setLBR_SitNF (String LBR_SitNF);", "public void setRunways(ListArrayBasedPlus<Runway> runways)\r\n {\r\n this.runways = runways;\r\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 }", "public void setSW(java.lang.String param) {\r\n localSWTracker = param != null;\r\n\r\n this.localSW = param;\r\n }", "public void xsetRoadwayPI(org.landxml.schema.landXML11.Station roadwayPI)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.Station)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.set(roadwayPI);\r\n }\r\n }", "public void setServerLink( ServerLink srvLnk ) {\r\n /*========================================================================*/ \r\n this.srvLnk = srvLnk;\r\n }", "public void setRoadwayPI(double roadwayPI)\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.setDoubleValue(roadwayPI);\r\n }\r\n }", "public void setWHStationNumber(String arg) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.WHSTATIONNUMBER.toString(), arg);\n\t}", "public void setRmTable(Rooms value);", "public static RoadSegment getRoadSegment(String freeway, String direction, String onOffKey)\n\t{\n\t\tif(direction.equalsIgnoreCase(\"north\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"101\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(N101.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn N101.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"405\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(N405.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn N405.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\telse if(direction.equalsIgnoreCase(\"south\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"101\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(S101.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn S101.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"405\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(S405.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn S405.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\telse if(direction.equalsIgnoreCase(\"east\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"10\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(E10.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn E10.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"105\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(E105.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn E105.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\telse //if(direction.equalsIgnoreCase(\"west\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"10\"))\n\t\t\t{\n\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(W10.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn W10.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"105\"))\n\t\t\t{\n\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(W105.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn W105.getRoadSegAt(i);\n\t\t\t}\n\n\t\t}\n\t\n\t}", "public void setOanswr(Float oanswr) {\r\n this.oanswr = oanswr;\r\n }", "@Test\n public void testSetRouterType() throws Exception {\n isisNeighbor.setRouterType(IsisRouterType.L1);\n isisRouterType = isisNeighbor.routerType();\n assertThat(isisRouterType, is(IsisRouterType.L1));\n }", "public void calculateRoute() {\n SKRouteSettings route = new SKRouteSettings();\n route.setStartCoordinate(start);\n route.setDestinationCoordinate(end);\n route.setNoOfRoutes(1);\n switch (routingType) {\n case SHORTEST:\n route.setRouteMode(SKRouteSettings.SKRouteMode.BICYCLE_SHORTEST);\n break;\n case FASTEST:\n route.setRouteMode(SKRouteSettings.SKRouteMode.BICYCLE_FASTEST);\n break;\n case QUIET:\n route.setRouteMode(SKRouteSettings.SKRouteMode.BICYCLE_QUIETEST);\n break;\n }\n route.setRouteExposed(true);\n SKRouteManager.getInstance().calculateRoute(route);\n }", "public void setMsisdn(java.lang.String param){\n localMsisdnTracker = true;\n \n this.localMsisdn=param;\n \n\n }", "public native void setRTOConstant (int RTOconstant);", "public void setAwbNbr(String awbNbr) {\n _awbNbr = awbNbr;\n }", "void setStaEnd(double staEnd);", "public void setPRTNO(java.lang.Integer PRTNO) {\n this.PRTNO = PRTNO;\n }", "public void setWeights(double ACC, double ARM, double EVA, double HP, double INT,\n\t\t\tdouble LCK, double MAG, double MRE, double STR, double SP)\n\t{\n\t\tthis.statWeights = new double[10];\n\t\tstatWeights[0] = ACC;\n\t\tstatWeights[1] = ARM;\n\t\tstatWeights[2] = EVA;\n\t\tstatWeights[3] = HP;\n\t\tstatWeights[4] = INT;\n\t\tstatWeights[5] = LCK;\n\t\tstatWeights[6] = MAG;\n\t\tstatWeights[7] = MRE;\n\t\tstatWeights[8] = STR;\n\t\tstatWeights[9] = SP;\n\t}", "public String getWlSnFlag() {\n\t\treturn wlSnFlag;\n\t}", "private void addISTRN()\n\t{\n\t\t\n\t\tif(cl_dat.M_flgLCUPD_pbst)\n\t\t{\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tM_strSQLQRY = \"Select IST_WRHTP,IST_ISSTP,IST_PRDCD,IST_PRDTP,IST_LOTNO,IST_RCLNO,IST_PKGTP,IST_PKGCT,IST_MNLCD,IST_ISSQT from FG_ISTRN where IST_CMPCD = '\"+cl_dat.M_strCMPCD_pbst+\"' and IST_ISSNO='\"+txtISSNO.getText().toString().trim() +\"' and IST_STSFL='2'\";\n\t\t\t\t//System.out.println(M_strSQLQRY);\n\t\t\t\tM_rstRSSET = cl_dat.exeSQLQRY1(M_strSQLQRY);\n\t\t\t\twhile(M_rstRSSET.next())\n\t\t\t\t{\n\t\t\t\t\tstrWRHTP = M_rstRSSET.getString(\"IST_WRHTP\");\n\t\t\t\t\tstrISSTP = M_rstRSSET.getString(\"IST_ISSTP\");\n\t\t\t\t\tstrPRDCD = M_rstRSSET.getString(\"IST_PRDCD\");\n\t\t\t\t\tstrPRDTP = M_rstRSSET.getString(\"IST_PRDTP\");\n\t\t\t\t\tstrLOTNO = M_rstRSSET.getString(\"IST_LOTNO\");\n\t\t\t\t\tstrRCLNO = M_rstRSSET.getString(\"IST_RCLNO\");\n\t\t\t\t\tstrPKGTP = M_rstRSSET.getString(\"IST_PKGTP\");\n\t\t\t\t\tstrMNLCD = M_rstRSSET.getString(\"IST_MNLCD\");\n\t\t\t\t\tstrPKGCT = M_rstRSSET.getString(\"IST_PKGCT\");\n\t\t\t\t\tstrISSQT = M_rstRSSET.getString(\"IST_ISSQT\");\n\t\t\t\t\t//System.out.println(strISSQT);\n\t\t\t\t\tsetMSG(\"Updating FG_LCMST\",'N');\n\t\t\t\t//\tchkLCMST();\n\t\t\t\t\tsetMSG(\"Updating FG_STMST\",'N'); \n\t\t\t\t\t//chkSTMST();\n\t\t\t\t\tsetMSG(\"Updating FG_ISTRN\",'N');\n\t\t\t\t\t//System.out.println(\"updating\");\n\t\t\t\t\tupdISTRN();\n\t\t\t\t\tsetMSG(\"Updating CO_PRMST\",'N');\n\t\t\t\t\tchkPRMST();\n\t\t\t\t\tsetMSG(\"Updating PR_LTMST\",'N');\n\t\t\t\t\tchkLTMST();\n\t\t\t\t\t}\n\t\t\t\tif(M_rstRSSET !=null)\n\t\t\t\t\tM_rstRSSET.close();\t\n\t\t\t}catch(Exception L_EX)\n\t\t\t{\n\t\t\tsetMSG(L_EX,\"addISTRN\");\n\t\t\t}\n\t\t}\n\t}", "public void setRwmc(String rwmc) {\n this.rwmc = rwmc;\n }", "public void storeRegularDayTripStationScheduleWithRS();", "private void updSTMST()\n\t{ \n\t\ttry\n\t\t{\n\t\t\tM_strSQLQRY = \"Update FG_STMST set \";\n\t\t\tM_strSQLQRY += \"ST_STKQT = ST_STKQT + \"+strISSQT+\",\";\n\t\t\tM_strSQLQRY += \"ST_ALOQT = ST_ALOQT + \"+strISSQT+\",\";\n\t\t\tM_strSQLQRY += \"ST_TRNFL = '0',\";\n\t\t\tM_strSQLQRY += \"ST_LUSBY = '\"+cl_dat.M_strUSRCD_pbst+\"',\";\n\t\t\tM_strSQLQRY += \"ST_LUPDT = '\"+M_fmtDBDAT.format(M_fmtLCDAT.parse(cl_dat.M_strLOGDT_pbst))+\"'\";\n\t\t\tM_strSQLQRY += \" where st_CMPCD = '\"+cl_dat.M_strCMPCD_pbst+\"' and st_wrhtp = '\"+strWRHTP+\"'\";\n\t\t\tM_strSQLQRY += \" and st_prdtp = '\"+strPRDTP+\"'\";\n\t\t\tM_strSQLQRY += \" and st_lotno = '\"+strLOTNO+\"'\";\n\t\t\tM_strSQLQRY += \" and st_rclno = '\"+strRCLNO+\"'\";\n\t\t\tM_strSQLQRY += \" and st_pkgtp = '\"+strPKGTP+\"'\";\n\t\t\tM_strSQLQRY+= \" and st_mnlcd = '\"+strMNLCD+\"'\";\n\t\t\t//System.out.println(M_strSQLQRY);\n\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\n\t\t\t\n\t\t}catch(Exception L_EX){\n\t\t\tsetMSG(L_EX,\"updSTMST\");\n\t\t}\n\t}", "public ShareRouteParm() {\n\t\t\tname = \"\";\n\t\t\tstart = \"\";\n\t\t\tend = \"\";\n\t\t\troutePoint = \"\";\n\t\t\tavoidPoint = \"\";\n\t\t\tconditionCode = -1;\n\t\t\taviodCondition = -1;\n\t\t\tforbidCondition = -1;\n\t\t\ttarget = -1;\n\t\t\tmapVer = \"\";\n\t\t}", "private void setRoads(RnsReader rnsReader) {\n\t\t// s is never null\n\t\troadsByUri.clear();\n\t\tSet<RoadSegmentReader> s = rnsReader.getRoadSegments(null);\n\t\t\n\t\tfor(RoadSegmentReader rsr : s){\n\t\t\tRoad r = (new ObjectFactory()).createRoad();\n\t\t\tr.setRoadName(rsr.getRoadName());\n\t\t\tString roadUri = buildRoadUriFromId(rsr.getRoadName());\n\t\t\tr.setSelf(roadUri);\n\t\t\tif(!roadsByUri.containsKey(roadUri)){\n\t\t\t\tputResource(r);\n\t\t\t}\n\t\t}\n\t}", "public boolean ifRailRoad() {\n return choiceSelect == RAIL_ROAD_CHOICE;\n }", "public void setRua(String rua) {this.rua = rua;}", "public void setRaining(boolean isRaining)\n {\n raining = isRaining;\n }", "public void setSTS( Integer STS )\n {\n this.STS = STS;\n }", "public void reserveroom(boolean reservation , int roomno) {\n String query = \"update Rooms set Reserved = ? \"\n + \"Where Roomno = ? \";\n \n try { \n PreparedStatement Query = conn.prepareStatement(query);\n Query.setBoolean(1,reservation);\n Query.setInt(2, roomno);\n Query.execute();\n \n } catch (SQLException ex) {\n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "public void setSbzr(String sbzr) {\n this.sbzr = sbzr == null ? null : sbzr.trim();\n }", "private void updLTMST() \n\t{\n\t\ttry{\n\t\t\tM_strSQLQRY = \"Update PR_LTMST set \";\n\t\t\tM_strSQLQRY += \"LT_DSPQT = LT_DSPQT - \"+strISSQT+\",\";\n\t\t\tM_strSQLQRY += \"LT_TRNFL = '0',\";\n\t\t\tM_strSQLQRY += \"LT_LUSBY = '\"+ cl_dat.M_strUSRCD_pbst+\"',\";\n\t\t\tM_strSQLQRY += \"LT_LUPDT = '\"+ M_fmtDBDAT.format(M_fmtLCDAT.parse(cl_dat.M_strLOGDT_pbst ))+\"'\";\n\t\t\tM_strSQLQRY += \" where lt_CMPCD = '\"+cl_dat.M_strCMPCD_pbst+\"' and lt_prdtp = '\"+strPRDTP+\"'\";\n\t\t\tM_strSQLQRY += \" and lt_lotno = '\"+strLOTNO+\"'\";\n\t\t\tM_strSQLQRY += \" and lt_rclno = '\"+strRCLNO+\"'\";\n\t\t\t\n\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\n\t\t\t//System.out.println(\"update pr_ltmst table :\"+M_strSQLQRY);\n\t\t\t\n\t\t}catch(Exception L_EX){\n\t\t\tsetMSG(L_EX,\"setLCLUPD\");\n\t\t}\n\t}", "public void setWRITTEN_OFF_AMT(BigDecimal WRITTEN_OFF_AMT) {\r\n this.WRITTEN_OFF_AMT = WRITTEN_OFF_AMT;\r\n }", "public synchronized void setArrivalExit(ArrivalTerminalExitStub ate) {\n this.ate = ate;\n }", "public void xsetRoadwayRef(org.landxml.schema.landXML11.RoadwayNameRef roadwayRef)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.RoadwayNameRef target = null;\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().find_attribute_user(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.set(roadwayRef);\r\n }\r\n }", "public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setOTDFLTROSSRIND(java.lang.CharSequence value) {\n validate(fields()[4], value);\n this.OT_DFLT_ROS_SR_IND = value;\n fieldSetFlags()[4] = true;\n return this;\n }", "public void setRoad(Boolean bool) {\r\n\t \tthis.road = bool;\r\n\t }", "void xsetRoadTerrain(org.landxml.schema.landXML11.RoadTerrainType roadTerrain);", "public void setGPSAntennaDetailsID(java.lang.String gpsAntennaDetailsID)\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(GPSANTENNADETAILSID$14);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(GPSANTENNADETAILSID$14);\r\n }\r\n target.setStringValue(gpsAntennaDetailsID);\r\n }\r\n }", "private void updPRMST()\n\t{ \n\t\ttry\n\t\t{\n\t\t\tM_strSQLQRY = \"Update CO_PRMST set \";\n\t\t\tM_strSQLQRY += \"PR_CSTQT = PR_CSTQT + \"+strISSQT+\",\";\n\t\t\tM_strSQLQRY += \"PR_TRNFL = '0',\";\n\t\t\tM_strSQLQRY += \"PR_LUSBY = '\"+cl_dat.M_strUSRCD_pbst+\"',\";\n\t\t\tM_strSQLQRY += \"PR_LUPDT = '\"+M_fmtDBDAT.format(M_fmtLCDAT.parse(cl_dat.M_strLOGDT_pbst))+\"'\";\n\t\t\tM_strSQLQRY += \" where pr_prdcd = '\"+strPRDCD+\"'\";\n\t\t\t\n\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\n\t\t\t//System.out.println(\"update COprmt table :\"+M_strSQLQRY);\n\t\t}catch(Exception L_EX)\n\t\t{\n\t\t\tsetMSG(L_EX,\"updPRMST\");\n\t\t}\n\t}", "public void setSfnw(String sfnw) {\n this.sfnw = sfnw == null ? null : sfnw.trim();\n }", "public void setRA(double radians)\n {\n this.ra = radians;\n this.raDegrees = Math.toDegrees(radians);\n }", "public void setRouteType(String x)\n {\n this.routeType = x;\n }", "@Test\n public void testSolicitRouterAdvertisement() throws Exception {\n sNetd.setProcSysNet(INetd.IPV6, INetd.CONF, mTetheredParams.name, \"forwarding\", \"1\");\n\n assertTrue(mRaDaemon.start());\n final RaParams params1 = createRaParams(\"2001:1122:3344::5566\");\n mRaDaemon.buildNewRa(null, params1);\n assertMulticastRaPacket(new TestRaPacket(null, params1));\n\n // Add a default route \"fe80::/64 -> ::\" to local network, otherwise, device will fail to\n // send the unicast RA out due to the ENETUNREACH error(No route to the peer's link-local\n // address is present).\n final String iface = mTetheredParams.name;\n final RouteInfo linkLocalRoute =\n new RouteInfo(new IpPrefix(\"fe80::/64\"), null, iface, RTN_UNICAST);\n RouteUtils.addRoutesToLocalNetwork(sNetd, iface, List.of(linkLocalRoute));\n\n final ByteBuffer rs = createRsPacket(\"fe80::1122:3344:5566:7788\");\n mTetheredPacketReader.sendResponse(rs);\n assertUnicastRaPacket(new TestRaPacket(null, params1));\n }", "public void setReceiveFileWay(String receiveFileWay) {\n this.receiveFileWay = receiveFileWay == null ? null : receiveFileWay.trim();\n }", "public void setSETTLED_YN(String SETTLED_YN) {\r\n this.SETTLED_YN = SETTLED_YN == null ? null : SETTLED_YN.trim();\r\n }", "public void setAsDown () \n\t{ \n\t\tn.setFailureState(false);\n\t\tfinal SortedSet<WLightpathRequest> affectedDemands = new TreeSet<> ();\n\t\tgetOutgoingFibers().forEach(f->affectedDemands.addAll(f.getTraversingLpRequestsInAtLeastOneLp()));\n\t\tgetIncomingFibers().forEach(f->affectedDemands.addAll(f.getTraversingLpRequestsInAtLeastOneLp()));\n\t\tfor (WLightpathRequest lpReq : affectedDemands)\n\t\t\tlpReq.internalUpdateOfRoutesCarriedTrafficFromFailureState();\n\t}", "public void setR_PnRef(String R_PnRef) {\n super.setR_PnRef(R_PnRef);\n if (R_PnRef != null) {\n setDocumentNo(R_PnRef);\n }\n }", "public int setRate(int rateToServer){\r\n\t\tint resultOfRate=1;\r\n\t\t//! send rate to server and check if ok.\r\n\t\tFLAG_RATED=true;\r\n\t\treturn resultOfRate;\r\n\t}", "public void setAvailableForRentFlag(String value) {\n setAttributeInternal(AVAILABLEFORRENTFLAG, value);\n }", "public void unsetVSWR() {\n this.vswr = null;\n }", "public void update_routing_window() {\n Log2(\"update_routing_window\\n\");\n Iterator<RouteEntry> iter= null;\n if (main_rtab!=null) {\n iter= main_rtab.iterator();\n }\n\n // update window\n for (int i= 0; i<tableObj.getRowCount(); i++) {\n if ((main_rtab != null) && iter.hasNext()) {\n RouteEntry next= iter.next();\n tableObj.setValueAt(\"\"+next.dest,i,0);\n tableObj.setValueAt(\"\"+next.next_hop,i,1);\n tableObj.setValueAt(\"\"+next.next_hop_area,i,2);\n tableObj.setValueAt(\"\"+next.dist,i,3);\n } else {\n tableObj.setValueAt(\"\",i,0);\n tableObj.setValueAt(\"\",i,1);\n tableObj.setValueAt(\"\",i,2);\n tableObj.setValueAt(\"\",i,3);\n }\n }\n }", "void setStation(String stationType, double band);", "public void setSR_ID(String SR_ID) {\n\t\tthis.SR_ID = SR_ID == null ? null : SR_ID.trim();\n\t}", "void setStation(double station);" ]
[ "0.48229232", "0.47181866", "0.45217732", "0.45001027", "0.44305032", "0.44296598", "0.44292995", "0.441622", "0.43870762", "0.43736276", "0.43573427", "0.4354536", "0.43358132", "0.4328316", "0.4315323", "0.4289468", "0.4280235", "0.42599434", "0.42573223", "0.4255118", "0.4254568", "0.4252364", "0.42426124", "0.42414832", "0.4228463", "0.42190343", "0.42076078", "0.4201198", "0.41971686", "0.41937587", "0.41935328", "0.41896868", "0.41793057", "0.41760495", "0.41730314", "0.4159043", "0.41557702", "0.41461408", "0.4143343", "0.41320276", "0.4127786", "0.41136673", "0.41090962", "0.4105087", "0.40954754", "0.40952832", "0.40821984", "0.4069539", "0.40635422", "0.40601608", "0.40559262", "0.40547478", "0.40522668", "0.40396875", "0.40376174", "0.4024642", "0.40201843", "0.40187353", "0.4018037", "0.40135172", "0.4011625", "0.40086618", "0.40074947", "0.40029082", "0.39883652", "0.39882058", "0.39845166", "0.39804912", "0.39706403", "0.39696518", "0.39643064", "0.39631343", "0.39572486", "0.39327118", "0.39326668", "0.39315996", "0.39310262", "0.39298266", "0.39205116", "0.39129984", "0.39079675", "0.3897041", "0.38934803", "0.38934255", "0.3893343", "0.38929203", "0.38907623", "0.3884164", "0.3884161", "0.38808677", "0.38770983", "0.38712132", "0.38701788", "0.38691953", "0.38665187", "0.38652286", "0.38646254", "0.38598835", "0.38594392", "0.38546124" ]
0.5199445
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_DY_ROUTE.IANSWR
public Float getIanswr() { return ianswr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.landxml.schema.landXML11.Station xgetRoadwayPI()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(ROADWAYPI$18);\r\n return target;\r\n }\r\n }", "public String getRoutingNo();", "public double getRoadwayPI()\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }", "public String getRightRoadId() {\n return rightRoadId;\n }", "public Integer getRentWay() {\n return rentWay;\n }", "public TerminalRule getWSRule() {\r\n\t\treturn gaTerminals.getWSRule();\r\n\t}", "public TerminalRule getWSRule() {\r\n\t\treturn gaTerminals.getWSRule();\r\n\t}", "public TerminalRule getWSRule() {\r\n\t\treturn gaTerminals.getWSRule();\r\n\t}", "public TerminalRule getWSRule() {\r\n\t\treturn gaTerminals.getWSRule();\r\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public java.lang.String getRoadwayRef()\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(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public TerminalRule getWSRule() {\r\n\t\treturn gaXtype.getWSRule();\r\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaXtype.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaXtype.getWSRule();\n\t}", "String getRouteID();", "public ItineraryLegType journeyLegType() {\n if (walk != null) {\n return ItineraryLegType.WALK;\n } else {\n return ItineraryLegType.BUS;\n }\n }", "public String getRwjl() {\n return rwjl;\n }", "public java.lang.String getRoute () {\n\t\treturn route;\n\t}", "public final synchronized int getWindingRule() {\n\t\treturn windingRule;\n\t}", "@JsonIgnore\n\tpublic String getIriOls() {\n\t\t//TODO move this to service layer\n\t\tif (iri == null || iri.size() == 0) return null;\n\n\t\tString displayIri = iri.first();\n\t\t\n\t\t//check this is a sane iri\n\t\ttry {\n\t\t\tUriComponents iriComponents = UriComponentsBuilder.fromUriString(displayIri).build(true);\n\t\t\tif (iriComponents.getScheme() == null\n\t\t\t\t\t|| iriComponents.getHost() == null\n\t\t\t\t\t|| iriComponents.getPath() == null) {\n\t\t\t\t//incomplete iri (e.g. 9606, EFO_12345) don't bother to check\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t//FIXME: Can't use a non static logger here because\n\t\t\tlog.error(\"An error occurred while trying to build OLS iri for \" + displayIri, e);\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t//TODO application.properties this\n\t\t\t//TODO use https\n\t\t\treturn \"http://www.ebi.ac.uk/ols/terms?iri=\"+URLEncoder.encode(displayIri.toString(), \"UTF-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t//should never get here\n\t\t\tthrow new RuntimeException(e);\n\t\t}\t\t\n\t\t\t\n\t}", "java.lang.String getTransitAirport();", "org.landxml.schema.landXML11.RoadwayDocument.Roadway getRoadway();", "public String getArrivalAirport();", "java.lang.String getResidentYn();", "public String getTipoAnexoSRI()\r\n/* 612: */ {\r\n/* 613:676 */ this.tipoAnexoSRI = ParametrosSistema.getTipoAnexoSRI(AppUtil.getOrganizacion().getId());\r\n/* 614:677 */ return this.tipoAnexoSRI;\r\n/* 615: */ }", "public java.lang.String getSW() {\r\n return localSW;\r\n }", "@JsonIgnore public String getArrivalGate() {\n return (String) getValue(\"arrivalGate\");\n }", "public ReactorResult<java.lang.String> getAllInternetRadioStationName_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), INTERNETRADIOSTATIONNAME, java.lang.String.class);\r\n\t}", "java.lang.String getArrivalAirport();", "public org.landxml.schema.landXML11.Station xgetIntersectRoadwayPI()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(INTERSECTROADWAYPI$22);\r\n return target;\r\n }\r\n }", "public String getToStation();", "java.lang.String getPhy();", "public RLSClient.RLI getRLI() {\n return (this.isClosed()) ? null: mRLS.getRLI() ;\n }", "public Bearing getRightNeighbour() {\n return this == N || this == S ? E : S;\n }", "public String rmvIprt(){\n return \"RMV IPRT:SRN=\"+iprt.getSrn()+\n \",SN=\"+iprt.getSn()+\n \",DSTIP=\\\"\"+iprt.getDstip()+\"\\\"\"+\n \",DSTMASK=\\\"\"+iprt.getDstmask()+\"\\\"\"+\n \",NEXTHOP=\\\"\"+iprt.getNexthop()+\"\\\"\"+\n \",FORCEEXECUTE=YES; {\"+rncName+\"}\"; \n }", "public ServicioSRI getServicioSRI()\r\n/* 101: */ {\r\n/* 102:121 */ return this.servicioSRI;\r\n/* 103: */ }", "public static ReactorResult<java.lang.String> getAllInternetRadioStationName_as(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_as(model, instanceResource, INTERNETRADIOSTATIONNAME, java.lang.String.class);\r\n\t}", "public TerminalRule getINTRule() {\r\n\t\treturn gaTerminals.getINTRule();\r\n\t}", "public TerminalRule getINTRule() {\r\n\t\treturn gaTerminals.getINTRule();\r\n\t}", "public TerminalRule getINTRule() {\r\n\t\treturn gaTerminals.getINTRule();\r\n\t}", "public TerminalRule getINTRule() {\r\n\t\treturn gaTerminals.getINTRule();\r\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaTerminals.getINTRule();\n\t}", "public String getLBR_SitNF();", "public String geteSRBRating() {\n return eSRBRating;\n }", "public TerminalRule getINTRule() {\r\n\t\treturn gaXbase.getINTRule();\r\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaXbase.getINTRule();\n\t}", "public TerminalRule getINTRule() {\n\t\treturn gaXbase.getINTRule();\n\t}", "public int getChnlWalkway(){\n return this.mFarm.getChnlWalkway();\n }", "public String getRoadType() {\n switch(orientation){\n case \"0\": return this.tileType.northernRoadType + this.tileType.easternRoadType + this.tileType.southernRoadType + this.tileType.westernRoadType;\n case \"1\": return this.tileType.westernRoadType + this.tileType.northernRoadType + this.tileType.easternRoadType + this.tileType.southernRoadType;\n case \"2\": return this.tileType.southernRoadType + this.tileType.westernRoadType + this.tileType.northernRoadType + this.tileType.easternRoadType;\n case \"3\": return this.tileType.easternRoadType + this.tileType.southernRoadType + this.tileType.westernRoadType + this.tileType.northernRoadType;\n case \"4\": return this.tileType.northernRoadType + this.tileType.westernRoadType + this.tileType.southernRoadType + this.tileType.easternRoadType;\n case \"5\": return this.tileType.easternRoadType + this.tileType.northernRoadType + this.tileType.westernRoadType + this.tileType.southernRoadType;\n case \"6\": return this.tileType.southernRoadType + this.tileType.easternRoadType + this.tileType.northernRoadType + this.tileType.westernRoadType;\n case \"7\": return this.tileType.westernRoadType + this.tileType.southernRoadType + this.tileType.easternRoadType + this.tileType.northernRoadType;\n default: return null;\n }\n }", "public java.lang.CharSequence getOTDFLTROSSRIND() {\n return OT_DFLT_ROS_SR_IND;\n }", "public java.lang.CharSequence getOTDFLTROSSRIND() {\n return OT_DFLT_ROS_SR_IND;\n }", "public AlarmSiren getSiren() {\n\t\tif(siren == null) {\n\t\t\tsiren = new AlarmSiren(this, logger);\n\t\t}\n\t\treturn siren;\n\t}", "java.lang.String getArrivalAirportCode();", "public String getStationld() {\n return stationld;\n }", "public String getLBR_InterestCode();", "public int getRTRNCD() {\n return rtrncd;\n }", "public String getRouteid() {\r\n return routeid;\r\n }", "public String getRoutename() {\r\n return routename;\r\n }", "public double getIntersectRoadwayPI()\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(INTERSECTROADWAYPI$22);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }", "public String getDownRoadId() {\n return downRoadId;\n }", "public double getRwsValue() {\n return this.rwsValue;\n }", "public int getSirinaTable() {\n\t\treturn this.sirinaTable;\n\t}", "public String getRua() {\n return rua;\n }", "public String getRua() {\n return rua;\n }", "public abstract int getSoL();", "public String getDPReihe(){\n\t\treturn this.m_sDPReihe;\n\t}", "public java.lang.String getDB_CR_IND() {\r\n return DB_CR_IND;\r\n }", "public Direction right() {\r\n\t\tif (this.direction == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tswitch (this.direction) {\r\n\t\tcase NORTH:\r\n\t\t\tthis.direction = Direction.EAST;\r\n\t\t\tbreak;\r\n\t\tcase WEST:\r\n\t\t\tthis.direction = Direction.NORTH;\r\n\t\t\tbreak;\r\n\t\tcase SOUTH:\r\n\t\t\tthis.direction = Direction.WEST;\r\n\t\t\tbreak;\r\n\t\tcase EAST:\r\n\t\t\tthis.direction = Direction.SOUTH;\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn this.direction;\r\n\t}", "public String getLrry() {\n return lrry;\n }", "public java.lang.String getWsid()\n {\n return wsid;\n }", "public URN getResourceURN()\r\n {\r\n return resourceURN;\r\n }", "public String getLOAI()\n {\n return this.LOAI;\n }", "public IRAT getIraT() {\n\t\treturn iraT;\n\t}", "public String getSR_ID() {\n\t\treturn SR_ID;\n\t}", "public String getFromStation();" ]
[ "0.54880136", "0.5415857", "0.5303217", "0.52769965", "0.51551294", "0.5110444", "0.5110444", "0.5110444", "0.5110444", "0.5104523", "0.5104523", "0.5104523", "0.5104523", "0.5104523", "0.5104523", "0.5104523", "0.5104523", "0.5104523", "0.5104523", "0.5104523", "0.5104523", "0.5104523", "0.5104523", "0.50791144", "0.50535285", "0.50492805", "0.50492805", "0.5013303", "0.4982483", "0.4973579", "0.49409094", "0.49408755", "0.4906829", "0.48832217", "0.48781946", "0.48647723", "0.4859166", "0.48586217", "0.48574424", "0.48290294", "0.48130587", "0.48095858", "0.4809157", "0.4807458", "0.48067018", "0.4797525", "0.47942463", "0.47916391", "0.47915986", "0.4775821", "0.47688386", "0.47688386", "0.47688386", "0.47688386", "0.47632825", "0.47632825", "0.47632825", "0.47632825", "0.47632825", "0.47632825", "0.47632825", "0.47632825", "0.47632825", "0.47632825", "0.47632825", "0.47632825", "0.47632825", "0.47632825", "0.47575662", "0.4753608", "0.47459528", "0.47279912", "0.47279912", "0.47162256", "0.47127628", "0.47083634", "0.47045806", "0.47001335", "0.46945772", "0.46895042", "0.46885425", "0.4687923", "0.46878475", "0.46833676", "0.46813723", "0.4680209", "0.4677263", "0.46763012", "0.4661488", "0.4661488", "0.46593818", "0.46395308", "0.46314973", "0.46047962", "0.46033475", "0.45989236", "0.45956153", "0.45953026", "0.45925367", "0.4590243", "0.45861933" ]
0.0
-1
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_ROUTE.IANSWR
public void setIanswr(Float ianswr) { this.ianswr = ianswr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void xsetRoadwayPI(org.landxml.schema.landXML11.Station roadwayPI)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.Station)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.set(roadwayPI);\r\n }\r\n }", "public void setRoadwayPI(double roadwayPI)\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.setDoubleValue(roadwayPI);\r\n }\r\n }", "public void setRoutingNo (String RoutingNo);", "void setRoute(String routeID);", "public void setRentWay(Integer rentWay) {\n this.rentWay = rentWay;\n }", "private void updISTRN() \n\t{\n\t\ttry\n\t\t{\n\t\t\tM_strSQLQRY = \"Update FG_ISTRN set \";\n\t\t\tM_strSQLQRY += \"IST_STSFL = '1',\";\n\t\t\tM_strSQLQRY += \"IST_TRNFL = '0',\";\n\t\t\tM_strSQLQRY += \"IST_LUSBY = '\"+cl_dat.M_strUSRCD_pbst+\"',\";\n\t\t\tM_strSQLQRY += \"IST_LUPDT = '\"+M_fmtDBDAT.format(M_fmtLCDAT.parse(cl_dat.M_strLOGDT_pbst ))+\"'\";\n\t\t\tM_strSQLQRY += \" where ist_CMPCD = '\"+cl_dat.M_strCMPCD_pbst+\"' and ist_wrhtp = '\"+strWRHTP+\"'\";\n\t\t\tM_strSQLQRY += \" and ist_isstp = '\"+strISSTP+\"'\";\n\t\t\tM_strSQLQRY += \" and ist_issno = '\"+txtISSNO.getText().toString() .trim() +\"'\";\n\t\t\tM_strSQLQRY += \" and ist_prdcd = '\"+strPRDCD+\"'\";\n\t\t\tM_strSQLQRY += \" and ist_prdtp = '\"+strPRDTP+\"'\";\n\t\t\tM_strSQLQRY += \" and ist_lotno = '\"+strLOTNO+\"'\";\n\t\t\tM_strSQLQRY += \" and ist_rclno = '\"+strRCLNO+\"'\";\n\t\t\tM_strSQLQRY += \" and ist_pkgtp = '\"+strPKGTP+\"'\";\n\t\t\tM_strSQLQRY += \" and ist_mnlcd = '\"+strMNLCD+\"'\";\n\t\t\t\n\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\n\t\t\t//System.out.println(\"update fgistrn table :\"+M_strSQLQRY);\n\t\t\t\n\t\t}catch(Exception L_EX)\n\t\t{\n\t\t\tsetMSG(L_EX,\"updISTRN\");\n\t\t}\n\t}", "public void setAlternateRoute(short trainId, TrainRoute r) {\n\t\ttrainRoutes.put(trainId, r);\n\t}", "public void setServicioSRI(ServicioSRI servicioSRI)\r\n/* 106: */ {\r\n/* 107:125 */ this.servicioSRI = servicioSRI;\r\n/* 108: */ }", "void setRoadway(org.landxml.schema.landXML11.RoadwayDocument.Roadway roadway);", "public void setAutorizacionAutoimpresorSRI(AutorizacionAutoimpresorSRI autorizacionAutoimpresorSRI)\r\n/* 125: */ {\r\n/* 126:150 */ this.autorizacionAutoimpresorSRI = autorizacionAutoimpresorSRI;\r\n/* 127: */ }", "@Test\n public void testSetRouterType() throws Exception {\n isisNeighbor.setRouterType(IsisRouterType.L1);\n isisRouterType = isisNeighbor.routerType();\n assertThat(isisRouterType, is(IsisRouterType.L1));\n }", "public void setRightOperand(final String incomingRightOperand)\r\n {\r\n\r\n if (incomingRightOperand.contains(\"+i\"))\r\n {\r\n rightOperand = incomingRightOperand.replace(\"+i\", \"+1i\");\r\n }\r\n else if (incomingRightOperand.contains(\"-i\"))\r\n {\r\n rightOperand = incomingRightOperand.replace(\"-i\", \"-1i\");\r\n }\r\n else\r\n {\r\n rightOperand = incomingRightOperand;\r\n }\r\n\r\n }", "void setRoadsideArray(int i, org.landxml.schema.landXML11.RoadsideDocument.Roadside roadside);", "public native void setRTOConstant (int RTOconstant);", "public void setlbr_IE (String lbr_IE);", "@Transactional\n public void update(RoutersEntity uRouters, String routers_id) throws NoSuchRoutersException {\n var routers = routersRepository.findById(routers_id).get();//2.0.0.M7\n if (routers == null) throw new NoSuchRoutersException();\n //update\n routers.setOfficeId(uRouters.getOfficeId());\n }", "public void setRoadwayRef(java.lang.String roadwayRef)\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(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.setStringValue(roadwayRef);\r\n }\r\n }", "public static void setInternetRadioStationName( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, INTERNETRADIOSTATIONNAME, value);\r\n\t}", "public void setSW(java.lang.String param) {\r\n localSWTracker = param != null;\r\n\r\n this.localSW = param;\r\n }", "static void set_sl_rr(FM_OPL OPL, int slot, int v) {\n OPL_CH CH = OPL.P_CH[slot / 2];\n OPL_SLOT SLOT = CH.SLOT[slot & 1];\n int sl = v >> 4;\n int rr = v & 0x0f;\n\n SLOT.SL = SL_TABLE[sl];\n if (SLOT.evm == ENV_MOD_DR) {\n SLOT.eve = SLOT.SL;\n }\n SLOT.RR = new IntArray(OPL.DR_TABLE, rr << 2);\n SLOT.evsr = SLOT.RR.read(SLOT.ksr);\n if (SLOT.evm == ENV_MOD_RR) {\n SLOT.evs = SLOT.evsr;\n }\n }", "public void setIsdoor(Integer isdoor) {\n this.isdoor = isdoor;\n }", "public static void setInternetRadioStationName(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, INTERNETRADIOSTATIONNAME, value);\r\n\t}", "public void setTipoAnexoSRI(String tipoAnexoSRI)\r\n/* 618: */ {\r\n/* 619:687 */ this.tipoAnexoSRI = tipoAnexoSRI;\r\n/* 620: */ }", "public void setSR_ID(String SR_ID) {\n\t\tthis.SR_ID = SR_ID == null ? null : SR_ID.trim();\n\t}", "public IRoadSensor setRoadStatus(ERoadStatus s);", "public void setRua(String rua) {this.rua = rua;}", "public void setWriteReg(){\r\n\t\twriteRegVal = read_writeReg;\r\n\t}", "public Object setintrate(double rate)\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setintrate : \" + \"Agent\");\r\n/* 67 */ \tthis.intrate = rate;\r\n/* 68 */ \tthis.intratep1 = (this.intrate + 1.0D);\r\n/* 69 */ \treturn this;\r\n/* */ }", "public void unsetRoadwayPI()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(ROADWAYPI$18);\r\n }\r\n }", "public void setSWDES(int param) {\r\n this.localSWDES = param;\r\n }", "public void toggleWardenAS(AvoidMode avoidMode, ReversePoisonMode rpMode) {\n this.wardenAS = true;\n this.avoidMode = avoidMode;\n this.poisonMode = rpMode;\n this.routeStatusMap = new TIntIntHashMap();\n if (this.avoidMode == AS.AvoidMode.LEGACY) {\n this.mplsRoutes = new TIntObjectHashMap<BGPPath>();\n }\n }", "@PathParam(\"rule\")\n public void setRule(@NotNull(message = \"rule name can't be NULL\")\n final String rle) {\n this.rule = rle;\n }", "public void setWHStationNumber(String arg) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.WHSTATIONNUMBER.toString(), arg);\n\t}", "public void setIntersectRoadwayPI(double intersectRoadwayPI)\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(INTERSECTROADWAYPI$22);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(INTERSECTROADWAYPI$22);\r\n }\r\n target.setDoubleValue(intersectRoadwayPI);\r\n }\r\n }", "public void setR(String R) {\n\t\tthis.R = R;\r\n\t\tfirePropertyChange(ConstantResourceFactory.P_R,null,R);\r\n\t}", "public String getRightRoadId() {\n return rightRoadId;\n }", "public void setWeather(String W){\n weatherID = W ;\n }", "public void setMethod(String method)\r\n {\r\n routing_method=method;\r\n }", "public void setLBR_SitNF (String LBR_SitNF);", "public final void setWindr(java.lang.String windr)\n\t{\n\t\tsetWindr(getContext(), windr);\n\t}", "public final void setWindr(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String windr)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Windr.toString(), windr);\n\t}", "public void setToStation(String toStation);", "public void setRTRNCD(int value) {\n this.rtrncd = value;\n }", "public void setLOAI( String LOAI )\n {\n this.LOAI = LOAI;\n }", "void setRID(RID rid);", "public void setNetWS(long netWS) {\r\n/* 406 */ this._netWS = netWS;\r\n/* 407 */ this._has_netWS = true;\r\n/* */ }", "@SuppressWarnings(\"ucd\")\n public void setPortRouter(int passedPort, PortRouter aPR) {\n synchronized( thePortRouterMap ){\n thePortRouterMap.put( passedPort, aPR );\n }\n }", "public void setRmTable(Rooms value);", "public void setRightRoadId(String rightRoadId) {\n this.rightRoadId = rightRoadId == null ? null : rightRoadId.trim();\n }", "public org.landxml.schema.landXML11.Station xgetRoadwayPI()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(ROADWAYPI$18);\r\n return target;\r\n }\r\n }", "public void setRWResource(RWResource theResource) {\n resource = theResource;\n }", "private void addISTRN()\n\t{\n\t\t\n\t\tif(cl_dat.M_flgLCUPD_pbst)\n\t\t{\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tM_strSQLQRY = \"Select IST_WRHTP,IST_ISSTP,IST_PRDCD,IST_PRDTP,IST_LOTNO,IST_RCLNO,IST_PKGTP,IST_PKGCT,IST_MNLCD,IST_ISSQT from FG_ISTRN where IST_CMPCD = '\"+cl_dat.M_strCMPCD_pbst+\"' and IST_ISSNO='\"+txtISSNO.getText().toString().trim() +\"' and IST_STSFL='2'\";\n\t\t\t\t//System.out.println(M_strSQLQRY);\n\t\t\t\tM_rstRSSET = cl_dat.exeSQLQRY1(M_strSQLQRY);\n\t\t\t\twhile(M_rstRSSET.next())\n\t\t\t\t{\n\t\t\t\t\tstrWRHTP = M_rstRSSET.getString(\"IST_WRHTP\");\n\t\t\t\t\tstrISSTP = M_rstRSSET.getString(\"IST_ISSTP\");\n\t\t\t\t\tstrPRDCD = M_rstRSSET.getString(\"IST_PRDCD\");\n\t\t\t\t\tstrPRDTP = M_rstRSSET.getString(\"IST_PRDTP\");\n\t\t\t\t\tstrLOTNO = M_rstRSSET.getString(\"IST_LOTNO\");\n\t\t\t\t\tstrRCLNO = M_rstRSSET.getString(\"IST_RCLNO\");\n\t\t\t\t\tstrPKGTP = M_rstRSSET.getString(\"IST_PKGTP\");\n\t\t\t\t\tstrMNLCD = M_rstRSSET.getString(\"IST_MNLCD\");\n\t\t\t\t\tstrPKGCT = M_rstRSSET.getString(\"IST_PKGCT\");\n\t\t\t\t\tstrISSQT = M_rstRSSET.getString(\"IST_ISSQT\");\n\t\t\t\t\t//System.out.println(strISSQT);\n\t\t\t\t\tsetMSG(\"Updating FG_LCMST\",'N');\n\t\t\t\t//\tchkLCMST();\n\t\t\t\t\tsetMSG(\"Updating FG_STMST\",'N'); \n\t\t\t\t\t//chkSTMST();\n\t\t\t\t\tsetMSG(\"Updating FG_ISTRN\",'N');\n\t\t\t\t\t//System.out.println(\"updating\");\n\t\t\t\t\tupdISTRN();\n\t\t\t\t\tsetMSG(\"Updating CO_PRMST\",'N');\n\t\t\t\t\tchkPRMST();\n\t\t\t\t\tsetMSG(\"Updating PR_LTMST\",'N');\n\t\t\t\t\tchkLTMST();\n\t\t\t\t\t}\n\t\t\t\tif(M_rstRSSET !=null)\n\t\t\t\t\tM_rstRSSET.close();\t\n\t\t\t}catch(Exception L_EX)\n\t\t\t{\n\t\t\tsetMSG(L_EX,\"addISTRN\");\n\t\t\t}\n\t\t}\n\t}", "public void setRwjl(String rwjl) {\n this.rwjl = rwjl;\n }", "void setStation(double station);", "public boolean isSetRoadwayPI()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(ROADWAYPI$18) != null;\r\n }\r\n }", "@IcalProperty(pindex = PropertyInfoIndex.SCHEDULE_METHOD,\n jname = \"scheduleMethod\",\n eventProperty = true,\n todoProperty = true)\n public void setScheduleMethod(final int val) {\n scheduleMethod = val;\n }", "private void setSALIR(int opcionSalida){\n\t\tthis.opcionSalida = opcionSalida;\n\t}", "public void setTunnelRail(Rail r, String d) {\n this.tunnelRail = r;\n this.dir = d;\n }", "private void setupTurnRoadCharacteristic() {\n turnRoadCharacteristic =\n new BluetoothGattCharacteristic(CHARACT_TURNROAD_UUID,\n BluetoothGattCharacteristic.PROPERTY_READ | BluetoothGattCharacteristic.PROPERTY_WRITE | BluetoothGattCharacteristic.PROPERTY_NOTIFY,\n BluetoothGattCharacteristic.PERMISSION_READ | BluetoothGattCharacteristic.PERMISSION_WRITE);\n\n turnRoadCharacteristic.addDescriptor(\n Peripheral.getClientCharacteristicConfigurationDescriptor());\n\n turnRoadCharacteristic.addDescriptor(\n Peripheral.getCharacteristicUserDescriptionDescriptor(CHARACT_TURNROAD_DESC));\n\n turnRoadCharacteristic.setValue(turnRoadCharacteristic_value);\n }", "public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }", "void setROIs(Object rois);", "public void setsvap() \n\t{\n\t\tthis.svap = svap;\n\t}", "public void setUpdusrid(String updusrid) {\r\n this.updusrid = updusrid;\r\n }", "void setRoadsideArray(org.landxml.schema.landXML11.RoadsideDocument.Roadside[] roadsideArray);", "void setRoadTerrain(org.landxml.schema.landXML11.RoadTerrainType.Enum roadTerrain);", "public void setRight(Lane right) {\r\n\t\tthis.right = right;\r\n\t}", "public void setRSU(boolean isRSU) { this.isRSU = isRSU; }", "public void setDirections(com.hps.july.persistence.DirectionAccessBean newDirections) throws Exception {\n\tif (newDirections == null) {\n\t\tdirectioncode = null;\n\t\tdirectionname = \"\";\n\t}\n\telse {\n\t\tdirectioncode = new Integer(newDirections.getDivision());\n\t\tdirectionname = newDirections.getName();\n\t}\n}", "public void setLrry(String lrry) {\n this.lrry = lrry == null ? null : lrry.trim();\n }", "public void updateRightWeight(){\r\n\t \tif(this.rightNode != null)\r\n\t \t{\r\n\t \t\tif( this.rightNode.isNoGoZone() == true)\r\n\t \t{\r\n\t \t\t\t//set edge weight to 9999 if the next node is NO go zone or\r\n\t \t\t\t//boundary node\r\n\t \t\tthis.rightWeight = weightOfNoGoZone;\r\n\t \t}\r\n\t \telse if(this.rightNode.isRoad() == true && this.rightNode.isNoGoZone() == false)\r\n\t \t{\r\n\t \t\t//set edge weight to 1 if the next node is a road node\r\n\t \t\tthis.rightWeight = this.rightNode.getOwnElevation();\r\n\t \t}\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\t//set edge weight to INF if the next node is NULL\r\n\t \t\tthis.rightWeight = weightOfMapEdge;\r\n\t \t}\r\n\t }", "private void refreshRightDoors(){\n\n if (this.selectedTrain.getRightDoor() == 1){ this.rightDoorsOpenRadioButton.setSelected(true); }\n else if (this.selectedTrain.getRightDoor() == 0){ this.rightDoorsCloseRadioButton.setSelected(true); }\n else if (this.selectedTrain.getRightDoor() == -1) {this.rightDoorsFailureRadioButton.setSelected(true); }\n }", "public void setUpRoadId(String upRoadId) {\n this.upRoadId = upRoadId == null ? null : upRoadId.trim();\n }", "public void setIraT(IRAT iraT) {\n\t\tthis.iraT = iraT;\n\t}", "public void setStationName(org.apache.xmlbeans.XmlAnySimpleType stationName)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlAnySimpleType target = null;\r\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(STATIONNAME$12);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().add_attribute_user(STATIONNAME$12);\r\n }\r\n target.set(stationName);\r\n }\r\n }", "@SkipValidation\n\tpublic String saveOrUpdate()\n\t{\n\t\tdrgatewaysDAO.saveOrUpdateDRGateways(drgateways);\n\n\t\tactivateDAO.setActivate(\"1\");\n\n\t\t//reload the drgateways\n\t\tlistDRGateways = null;\n\t\tlistDRGateways = drgatewaysDAO.listDRGateways();\n\n\t\treturn SUCCESS;\n\t}", "public void setRightNeighbor(Board rightNeighbor) {\r\n\t\tthis.rightNeighbor = rightNeighbor;\r\n\t}", "public void setInternetRadioStationName( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), INTERNETRADIOSTATIONNAME, value);\r\n\t}", "public void setLBR_InterestCode (String LBR_InterestCode);", "boolean setSiteRights(SiteAdminRights r, boolean b);", "public void setWwn(long wwn) {\r\n this.wwn = wwn;\r\n }", "public void setRouteType(String x)\n {\n this.routeType = x;\n }", "public void setChnlWalkway(int chnlWalkway){\n this.mFarm.setChnlWalkway(chnlWalkway);\n }", "void xsetRoadTerrain(org.landxml.schema.landXML11.RoadTerrainType roadTerrain);", "public synchronized void setArrivalExit(ArrivalTerminalExitStub ate) {\n this.ate = ate;\n }", "public void setRight(int x) {\r\n rightSide = x;\r\n }", "public void setRrNo (java.lang.String rrNo) {\n\t\tthis.rrNo = rrNo;\n\t}", "public void setServicioConceptoRetencionSRI(ServicioConceptoRetencionSRI servicioConceptoRetencionSRI)\r\n/* 126: */ {\r\n/* 127:141 */ this.servicioConceptoRetencionSRI = servicioConceptoRetencionSRI;\r\n/* 128: */ }", "public void xsetIntersectRoadwayPI(org.landxml.schema.landXML11.Station intersectRoadwayPI)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(INTERSECTROADWAYPI$22);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.Station)get_store().add_attribute_user(INTERSECTROADWAYPI$22);\r\n }\r\n target.set(intersectRoadwayPI);\r\n }\r\n }", "public static void setRd(byte rd) {\n MEMWBRegister.rd = rd;\n }", "public void setSNDR(String SNDR) {\n this.SNDR = SNDR;\n }", "public final void setD2windr(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String d2windr)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.D2windr.toString(), d2windr);\n\t}", "public void setIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI(int idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI)\r\n/* 85: */ {\r\n/* 86:118 */ this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI = idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 87: */ }", "void xsetStation(org.landxml.schema.landXML11.Station station);", "public void setLBR_DocLine_ICMS_UU (String LBR_DocLine_ICMS_UU);", "@Override\n protected void set(org.tair.db.locusdetail.ILocusDetail dto) {\n locusLocus = dto;\n }", "public void setLwdw(String lwdw) {\n this.lwdw = lwdw == null ? null : lwdw.trim();\n }", "public void setInternalRouter(Router internalRouter) {\r\n this.internalRouter = internalRouter;\r\n }", "public void storeRegularDayTripStationScheduleWithRS();", "public void set_ioreg(int index, int RHS) throws AVR.RuntimeException\n {\n if ((index < 0) || (index >= IO_REG_COUNT))\n throw new RuntimeException(Constants.Error(Constants.INVALID_IO_REGISTER)+\" Register: \" +Utils.hex(index,4));\n else\n setDataMemory(index+IO_REG_COUNT,RHS);\n //data_memory[index+IO_REG_COUNT].setValue(RHS);\n }", "public void setLand(int value);" ]
[ "0.5498627", "0.54201883", "0.53046805", "0.51552546", "0.5119275", "0.51089203", "0.49074847", "0.48989943", "0.48487887", "0.47899708", "0.4781558", "0.47368076", "0.4715708", "0.47001466", "0.4698001", "0.46829915", "0.4672347", "0.46720096", "0.46226615", "0.4616791", "0.4615574", "0.46036547", "0.4598499", "0.45982507", "0.45910788", "0.4583436", "0.45704606", "0.4565115", "0.456062", "0.4553416", "0.45523995", "0.4552036", "0.45468578", "0.45071644", "0.44949138", "0.448874", "0.44885275", "0.44867733", "0.44831997", "0.447676", "0.44726607", "0.4471076", "0.44644016", "0.44497305", "0.44396466", "0.44261527", "0.44206902", "0.44180995", "0.44021103", "0.43990824", "0.43965676", "0.43924296", "0.43922043", "0.4389073", "0.43833575", "0.43809113", "0.4379677", "0.43721253", "0.43623725", "0.43618166", "0.4355431", "0.4354006", "0.43476108", "0.43444765", "0.43306673", "0.432459", "0.43188298", "0.4315591", "0.43130437", "0.4306877", "0.43062744", "0.43035063", "0.43029514", "0.43019742", "0.429082", "0.4277204", "0.4261423", "0.42587504", "0.42447892", "0.42392522", "0.4237854", "0.42365885", "0.4236362", "0.42342052", "0.42327508", "0.42290366", "0.42276266", "0.42245448", "0.42233944", "0.42216516", "0.4210721", "0.42083856", "0.42067906", "0.42059836", "0.4200897", "0.4200445", "0.41990107", "0.41983742", "0.41978106", "0.4193468" ]
0.4479596
39
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_DY_ROUTE.OANSWR
public Float getOanswr() { return oanswr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getRoadwayRef()\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(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public java.lang.CharSequence getOTDFLTROSSRIND() {\n return OT_DFLT_ROS_SR_IND;\n }", "public java.lang.CharSequence getOTDFLTROSSRIND() {\n return OT_DFLT_ROS_SR_IND;\n }", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaTerminals.getWSRule();\n\t}", "public TerminalRule getWSRule() {\r\n\t\treturn gaTerminals.getWSRule();\r\n\t}", "public TerminalRule getWSRule() {\r\n\t\treturn gaTerminals.getWSRule();\r\n\t}", "public TerminalRule getWSRule() {\r\n\t\treturn gaTerminals.getWSRule();\r\n\t}", "public TerminalRule getWSRule() {\r\n\t\treturn gaTerminals.getWSRule();\r\n\t}", "public String getRightRoadId() {\n return rightRoadId;\n }", "public double getRwsValue() {\n return this.rwsValue;\n }", "public TerminalRule getWSRule() {\n\t\treturn gaXtype.getWSRule();\n\t}", "public TerminalRule getWSRule() {\n\t\treturn gaXtype.getWSRule();\n\t}", "public TerminalRule getWSRule() {\r\n\t\treturn gaXtype.getWSRule();\r\n\t}", "public double getRoadwayPI()\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }", "public Bearing getRightNeighbour() {\n return this == N || this == S ? E : S;\n }", "public String getRoutingNo();", "public org.landxml.schema.landXML11.Station xgetRoadwayPI()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(ROADWAYPI$18);\r\n return target;\r\n }\r\n }", "public String getRwjl() {\n return rwjl;\n }", "org.landxml.schema.landXML11.RoadwayDocument.Roadway getRoadway();", "public Integer getRentWay() {\n return rentWay;\n }", "public java.lang.String getOA(){\r\n return localOA;\r\n }", "public org.landxml.schema.landXML11.RoadwayNameRef xgetRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.RoadwayNameRef target = null;\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().find_attribute_user(ROADWAYREF$16);\r\n return target;\r\n }\r\n }", "public String getRwmc() {\n return rwmc;\n }", "public String getWrod() {\n return wrod;\n }", "public String getToernooiSoort(){\n if(typeField.getText().equals(\"Toernooi\")){\n try {\n Connection con = Main.getConnection();\n PreparedStatement st = con.prepareStatement(\"SELECT soort_toernooi FROM Toernooi WHERE TC = ?\");\n st.setInt(1, Integer.parseInt(codeField.getText()));\n ResultSet rs = st.executeQuery();\n if (rs.next()) {\n String toernooiSoort = rs.getString(\"soort_toernooi\");\n System.out.println(toernooiSoort);\n return toernooiSoort;\n }\n\n }catch(Exception e){\n System.out.println(e);\n System.out.println(\"ERROR: er is een probleem met de database(getToernooiSoort)\");\n }\n }\n\n return \"poepieScheetje\";}", "public String getARo() {\r\n return aRo;\r\n }", "public Direction right() {\r\n\t\tif (this.direction == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tswitch (this.direction) {\r\n\t\tcase NORTH:\r\n\t\t\tthis.direction = Direction.EAST;\r\n\t\t\tbreak;\r\n\t\tcase WEST:\r\n\t\t\tthis.direction = Direction.NORTH;\r\n\t\t\tbreak;\r\n\t\tcase SOUTH:\r\n\t\t\tthis.direction = Direction.WEST;\r\n\t\t\tbreak;\r\n\t\tcase EAST:\r\n\t\t\tthis.direction = Direction.SOUTH;\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn this.direction;\r\n\t}", "public String geteSRBRating() {\n return eSRBRating;\n }", "public java.lang.String getRrNo () {\n\t\treturn rrNo;\n\t}", "public ItineraryLegType journeyLegType() {\n if (walk != null) {\n return ItineraryLegType.WALK;\n } else {\n return ItineraryLegType.BUS;\n }\n }", "public java.lang.String getRoute () {\n\t\treturn route;\n\t}", "public Board getRightNeighbor() {\r\n\t\treturn rightNeighbor;\r\n\t}", "public int getRightWeight(){\r\n\t \treturn this.rightWeight;\r\n\t }", "public final synchronized int getWindingRule() {\n\t\treturn windingRule;\n\t}", "public String getRua() {\n return rua;\n }", "public String getRua() {\n return rua;\n }", "public int getRRPP(){\n return RRPP; \n }", "public java.lang.String getSW() {\r\n return localSW;\r\n }", "public int getRTRNCD() {\n return rtrncd;\n }", "public int getRoadLength() {\n \t\treturn roadLength;\n \t}", "public double getRightDistance() {\n return rightEnc.getDistance();\n }", "public String getRoadType() {\n switch(orientation){\n case \"0\": return this.tileType.northernRoadType + this.tileType.easternRoadType + this.tileType.southernRoadType + this.tileType.westernRoadType;\n case \"1\": return this.tileType.westernRoadType + this.tileType.northernRoadType + this.tileType.easternRoadType + this.tileType.southernRoadType;\n case \"2\": return this.tileType.southernRoadType + this.tileType.westernRoadType + this.tileType.northernRoadType + this.tileType.easternRoadType;\n case \"3\": return this.tileType.easternRoadType + this.tileType.southernRoadType + this.tileType.westernRoadType + this.tileType.northernRoadType;\n case \"4\": return this.tileType.northernRoadType + this.tileType.westernRoadType + this.tileType.southernRoadType + this.tileType.easternRoadType;\n case \"5\": return this.tileType.easternRoadType + this.tileType.northernRoadType + this.tileType.westernRoadType + this.tileType.southernRoadType;\n case \"6\": return this.tileType.southernRoadType + this.tileType.easternRoadType + this.tileType.northernRoadType + this.tileType.westernRoadType;\n case \"7\": return this.tileType.westernRoadType + this.tileType.southernRoadType + this.tileType.easternRoadType + this.tileType.northernRoadType;\n default: return null;\n }\n }", "public java.lang.String getUnitLOA() {\n\t\treturn _tempNoTiceShipMessage.getUnitLOA();\n\t}", "public String getTipoAnexoSRI()\r\n/* 612: */ {\r\n/* 613:676 */ this.tipoAnexoSRI = ParametrosSistema.getTipoAnexoSRI(AppUtil.getOrganizacion().getId());\r\n/* 614:677 */ return this.tipoAnexoSRI;\r\n/* 615: */ }", "public static RoadSegment getRoadSegment(String freeway, String direction, String onOffKey)\n\t{\n\t\tif(direction.equalsIgnoreCase(\"north\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"101\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(N101.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn N101.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"405\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(N405.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn N405.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\telse if(direction.equalsIgnoreCase(\"south\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"101\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(S101.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn S101.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"405\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(S405.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn S405.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\telse if(direction.equalsIgnoreCase(\"east\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"10\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(E10.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn E10.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"105\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(E105.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn E105.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\telse //if(direction.equalsIgnoreCase(\"west\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"10\"))\n\t\t\t{\n\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(W10.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn W10.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"105\"))\n\t\t\t{\n\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(W105.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn W105.getRoadSegAt(i);\n\t\t\t}\n\n\t\t}\n\t\n\t}", "public long getNetWS() {\r\n/* 191 */ return this._netWS;\r\n/* */ }", "public String getToStation();", "public java.lang.String getWAERK() {\n return WAERK;\n }", "public String getSCRSNo() {\n return sCRSNo;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getTerminalDownloadQueryForDayReturn(){\n return localTerminalDownloadQueryForDayReturn;\n }", "public String getWash() {\n return (String)getAttributeInternal(WASH);\n }", "public String getRouters(){\n wifi.startScan();\n results = wifi.getScanResults();\n size = results.size();\n String jsonRouter = new Gson().toJson(results);\n return jsonRouter;\n }", "public abstract int getSoL();", "public double getIntersectRoadwayPI()\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(INTERSECTROADWAYPI$22);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }", "public String getOndaP2() {\r\n return ondaP2;\r\n }", "public SegmentTreeNode<T> getRightSon() {\n\t\treturn rson;\n\t}", "public String getSbzrmc() {\n return sbzrmc;\n }", "public Direction right() {\r\n\t\tint newDir = this.index + 1;\r\n\r\n\t\tnewDir = (this.index + 1 == 5) ? 1 : newDir;\r\n\t\treturn getEnum(newDir);\r\n\t}", "public String getObrefno() {\n return (String)getAttributeInternal(OBREFNO);\n }", "public org.apache.axis2.databinding.types.soapencoding.String getGetDirectAreaInfoReturn(){\n return localGetDirectAreaInfoReturn;\n }", "public int getRXRReps() { \r\n \treturn getReps(\"RXR\");\r\n }", "public getResenjeByBrojResponse getResenje(String broj) throws XMLDBException, JAXBException {\n Jaxb2Marshaller marshaller = new Jaxb2Marshaller();\n marshaller.setContextPath(\"com.project.organ_vlasti.model.resenje.client\");\n\n ResenjeClient resenjeClient = new ResenjeClient();\n resenjeClient.setDefaultUri(\"http://localhost:8085/ws\");\n resenjeClient.setMarshaller(marshaller);\n resenjeClient.setUnmarshaller(marshaller);\n\n getResenjeByBroj getResenjeByBroj = new getResenjeByBroj();\n getResenjeByBroj.setBroj(broj);\n\n getResenjeByBrojResponse getResenjeByBrojResponse = resenjeClient.getOneResenje(getResenjeByBroj);\n //kraj soap\n // ObjectFactory of = new ObjectFactory() com.project.organ_vlasti.model.resenje\n // Resenje r = of.createResenje();\n // r.setResenjeBody(getResenjeByBrojResponse.getResenje());\n if (getResenjeByBrojResponse != null) {\n ResenjeRef resenjeRef = getOneByBroj(broj);\n if (resenjeRef == null)\n return null;\n resenjeRef.getBody().setProcitano(\"da\");\n if (update(resenjeRef)) {\n return getResenjeByBrojResponse;\n }\n }\n return null;\n }", "public String getRouteType() {\n return routeType;\n }", "public double getLoa() {\n\t\treturn _tempNoTiceShipMessage.getLoa();\n\t}", "public String getAdr2() {\n return adr2;\n }", "public int readVPOSR()\n {\n return longFrame | amiga.getAgnusID() << 8 | ( vpos & 0b111_0000_0000) >> 8;\n }", "public String getRsv2() {\r\n return rsv2;\r\n }", "double a_right_front_drive_power ()\n {\n double l_return = 0.0;\n\n if (right_front_drv_Motor != null)\n {\n l_return = right_front_drv_Motor.getPower ();\n }\n\n return l_return;\n\n }", "public IAVLNode getRight() {\n\t\t\treturn this.right; // to be replaced by student code\n\t\t}", "public org.apache.axis2.databinding.types.soapencoding.String getGetDirectSrvInfoReturn(){\n return localGetDirectSrvInfoReturn;\n }", "public final EObject ruleSWRLOperator() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_1=null;\n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_7=null;\n EObject lv_rule_2_0 = null;\n\n EObject lv_barrier_4_0 = null;\n\n EObject lv_barrier_6_0 = null;\n\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2433:28: ( (otherlv_0= 'swrl' otherlv_1= '(' ( (lv_rule_2_0= ruleSWRLRule ) ) otherlv_3= ',' ( (lv_barrier_4_0= ruleStreamOperatorParameter ) ) (otherlv_5= ',' ( (lv_barrier_6_0= ruleStreamOperatorParameter ) ) )* otherlv_7= ')' ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2434:1: (otherlv_0= 'swrl' otherlv_1= '(' ( (lv_rule_2_0= ruleSWRLRule ) ) otherlv_3= ',' ( (lv_barrier_4_0= ruleStreamOperatorParameter ) ) (otherlv_5= ',' ( (lv_barrier_6_0= ruleStreamOperatorParameter ) ) )* otherlv_7= ')' )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2434:1: (otherlv_0= 'swrl' otherlv_1= '(' ( (lv_rule_2_0= ruleSWRLRule ) ) otherlv_3= ',' ( (lv_barrier_4_0= ruleStreamOperatorParameter ) ) (otherlv_5= ',' ( (lv_barrier_6_0= ruleStreamOperatorParameter ) ) )* otherlv_7= ')' )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2434:3: otherlv_0= 'swrl' otherlv_1= '(' ( (lv_rule_2_0= ruleSWRLRule ) ) otherlv_3= ',' ( (lv_barrier_4_0= ruleStreamOperatorParameter ) ) (otherlv_5= ',' ( (lv_barrier_6_0= ruleStreamOperatorParameter ) ) )* otherlv_7= ')'\n {\n otherlv_0=(Token)match(input,47,FOLLOW_47_in_ruleSWRLOperator5497); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getSWRLOperatorAccess().getSwrlKeyword_0());\n \n otherlv_1=(Token)match(input,21,FOLLOW_21_in_ruleSWRLOperator5509); \n\n \tnewLeafNode(otherlv_1, grammarAccess.getSWRLOperatorAccess().getLeftParenthesisKeyword_1());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2442:1: ( (lv_rule_2_0= ruleSWRLRule ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2443:1: (lv_rule_2_0= ruleSWRLRule )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2443:1: (lv_rule_2_0= ruleSWRLRule )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2444:3: lv_rule_2_0= ruleSWRLRule\n {\n \n \t newCompositeNode(grammarAccess.getSWRLOperatorAccess().getRuleSWRLRuleParserRuleCall_2_0()); \n \t \n pushFollow(FOLLOW_ruleSWRLRule_in_ruleSWRLOperator5530);\n lv_rule_2_0=ruleSWRLRule();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getSWRLOperatorRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"rule\",\n \t\tlv_rule_2_0, \n \t\t\"SWRLRule\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,16,FOLLOW_16_in_ruleSWRLOperator5542); \n\n \tnewLeafNode(otherlv_3, grammarAccess.getSWRLOperatorAccess().getCommaKeyword_3());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2464:1: ( (lv_barrier_4_0= ruleStreamOperatorParameter ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2465:1: (lv_barrier_4_0= ruleStreamOperatorParameter )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2465:1: (lv_barrier_4_0= ruleStreamOperatorParameter )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2466:3: lv_barrier_4_0= ruleStreamOperatorParameter\n {\n \n \t newCompositeNode(grammarAccess.getSWRLOperatorAccess().getBarrierStreamOperatorParameterParserRuleCall_4_0()); \n \t \n pushFollow(FOLLOW_ruleStreamOperatorParameter_in_ruleSWRLOperator5563);\n lv_barrier_4_0=ruleStreamOperatorParameter();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getSWRLOperatorRule());\n \t }\n \t\tadd(\n \t\t\tcurrent, \n \t\t\t\"barrier\",\n \t\tlv_barrier_4_0, \n \t\t\"StreamOperatorParameter\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2482:2: (otherlv_5= ',' ( (lv_barrier_6_0= ruleStreamOperatorParameter ) ) )*\n loop25:\n do {\n int alt25=2;\n int LA25_0 = input.LA(1);\n\n if ( (LA25_0==16) ) {\n alt25=1;\n }\n\n\n switch (alt25) {\n \tcase 1 :\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2482:4: otherlv_5= ',' ( (lv_barrier_6_0= ruleStreamOperatorParameter ) )\n \t {\n \t otherlv_5=(Token)match(input,16,FOLLOW_16_in_ruleSWRLOperator5576); \n\n \t \tnewLeafNode(otherlv_5, grammarAccess.getSWRLOperatorAccess().getCommaKeyword_5_0());\n \t \n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2486:1: ( (lv_barrier_6_0= ruleStreamOperatorParameter ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2487:1: (lv_barrier_6_0= ruleStreamOperatorParameter )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2487:1: (lv_barrier_6_0= ruleStreamOperatorParameter )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2488:3: lv_barrier_6_0= ruleStreamOperatorParameter\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getSWRLOperatorAccess().getBarrierStreamOperatorParameterParserRuleCall_5_1_0()); \n \t \t \n \t pushFollow(FOLLOW_ruleStreamOperatorParameter_in_ruleSWRLOperator5597);\n \t lv_barrier_6_0=ruleStreamOperatorParameter();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getSWRLOperatorRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"barrier\",\n \t \t\tlv_barrier_6_0, \n \t \t\t\"StreamOperatorParameter\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop25;\n }\n } while (true);\n\n otherlv_7=(Token)match(input,22,FOLLOW_22_in_ruleSWRLOperator5611); \n\n \tnewLeafNode(otherlv_7, grammarAccess.getSWRLOperatorAccess().getRightParenthesisKeyword_6());\n \n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public java.lang.String getWrngLogon() {\r\n return wrngLogon;\r\n }", "public ServicioSRI getServicioSRI()\r\n/* 101: */ {\r\n/* 102:121 */ return this.servicioSRI;\r\n/* 103: */ }", "public boolean isObradjeno() {\n return obradjeno;\n }", "public java.lang.String getIntersectingRoadwayRef()\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(INTERSECTINGROADWAYREF$20);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public n baw() {\n return this.ewZ;\n }", "public double getOriPrice() {\n return oriPrice;\n }", "public org.landxml.schema.landXML11.Station xgetIntersectRoadwayPI()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(INTERSECTROADWAYPI$22);\r\n return target;\r\n }\r\n }", "public String getTRS_TYPE() {\r\n return TRS_TYPE;\r\n }", "public java.lang.String getPortWharfCode() {\n\t\treturn _tempNoTiceShipMessage.getPortWharfCode();\n\t}", "public boolean ifRailRoad() {\n return choiceSelect == RAIL_ROAD_CHOICE;\n }", "public String getRoutingStatus() {\n return routingStatus;\n }", "public String getOverseasRoyalty() {\n return (String)getAttributeInternal(OVERSEASROYALTY);\n }", "public gov.georgia.dhr.dfcs.sacwis.structs.output.ROWCSUB45SOG00 getROWCSUB45SOG00()\r\n {\r\n return this._ROWCSUB45SOG00;\r\n }", "public String getSjr() {\r\n\t\treturn sjr;\r\n\t}", "public int getNumberOutboundStops(){\n\t \treturn 0;\n\t \t\n\t \t\n\t }", "public RouterType getDeviceType(){\n\t return deviceType;\n }" ]
[ "0.5391832", "0.53298485", "0.53161365", "0.51876175", "0.51876175", "0.51876175", "0.51876175", "0.51876175", "0.51876175", "0.51876175", "0.51876175", "0.51876175", "0.51876175", "0.51876175", "0.51876175", "0.51876175", "0.51876175", "0.5180393", "0.5180393", "0.5180393", "0.5180393", "0.51624405", "0.51320744", "0.5105363", "0.5105363", "0.5098947", "0.5021279", "0.49851647", "0.498052", "0.49714804", "0.48728985", "0.48418", "0.48145694", "0.47900838", "0.47801676", "0.47705936", "0.47695854", "0.4765413", "0.4764207", "0.47523457", "0.47000942", "0.46882766", "0.46559978", "0.46455598", "0.46408176", "0.46391907", "0.46295723", "0.4621405", "0.4621405", "0.46177912", "0.45926732", "0.4580661", "0.45601615", "0.45595935", "0.45595312", "0.45536372", "0.45415", "0.45375356", "0.45342767", "0.45245716", "0.45063597", "0.45051244", "0.4500204", "0.44913518", "0.44871625", "0.4481814", "0.4478578", "0.4478132", "0.44764647", "0.4465876", "0.4458268", "0.44575155", "0.44521955", "0.44457307", "0.44438747", "0.44399753", "0.44386238", "0.44366676", "0.443254", "0.44271082", "0.44248754", "0.44215965", "0.44184738", "0.4412442", "0.4410866", "0.4407365", "0.44068387", "0.44011486", "0.43977493", "0.43920717", "0.43918875", "0.43918273", "0.43890813", "0.43830332", "0.43820038", "0.4377099", "0.4375012", "0.4374026", "0.43724632", "0.437183" ]
0.4699476
41
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_ROUTE.OANSWR
public void setOanswr(Float oanswr) { this.oanswr = oanswr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRoutingNo (String RoutingNo);", "public void xsetRoadwayPI(org.landxml.schema.landXML11.Station roadwayPI)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.Station)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.set(roadwayPI);\r\n }\r\n }", "private void refreshRightDoors(){\n\n if (this.selectedTrain.getRightDoor() == 1){ this.rightDoorsOpenRadioButton.setSelected(true); }\n else if (this.selectedTrain.getRightDoor() == 0){ this.rightDoorsCloseRadioButton.setSelected(true); }\n else if (this.selectedTrain.getRightDoor() == -1) {this.rightDoorsFailureRadioButton.setSelected(true); }\n }", "public void setRoadwayPI(double roadwayPI)\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.setDoubleValue(roadwayPI);\r\n }\r\n }", "public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setOTDFLTROSSRIND(java.lang.CharSequence value) {\n validate(fields()[4], value);\n this.OT_DFLT_ROS_SR_IND = value;\n fieldSetFlags()[4] = true;\n return this;\n }", "public void setRoadwayRef(java.lang.String roadwayRef)\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(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.setStringValue(roadwayRef);\r\n }\r\n }", "void setRoadway(org.landxml.schema.landXML11.RoadwayDocument.Roadway roadway);", "public native void setRTOConstant (int RTOconstant);", "public IRoadSensor setRoadStatus(ERoadStatus s);", "public void setRentWay(Integer rentWay) {\n this.rentWay = rentWay;\n }", "public void setOTDFLTROSSRIND(java.lang.CharSequence value) {\n this.OT_DFLT_ROS_SR_IND = value;\n }", "public void setRrNo (java.lang.String rrNo) {\n\t\tthis.rrNo = rrNo;\n\t}", "public void toggleWardenAS(AvoidMode avoidMode, ReversePoisonMode rpMode) {\n this.wardenAS = true;\n this.avoidMode = avoidMode;\n this.poisonMode = rpMode;\n this.routeStatusMap = new TIntIntHashMap();\n if (this.avoidMode == AS.AvoidMode.LEGACY) {\n this.mplsRoutes = new TIntObjectHashMap<BGPPath>();\n }\n }", "public void updateRightWeight(){\r\n\t \tif(this.rightNode != null)\r\n\t \t{\r\n\t \t\tif( this.rightNode.isNoGoZone() == true)\r\n\t \t{\r\n\t \t\t\t//set edge weight to 9999 if the next node is NO go zone or\r\n\t \t\t\t//boundary node\r\n\t \t\tthis.rightWeight = weightOfNoGoZone;\r\n\t \t}\r\n\t \telse if(this.rightNode.isRoad() == true && this.rightNode.isNoGoZone() == false)\r\n\t \t{\r\n\t \t\t//set edge weight to 1 if the next node is a road node\r\n\t \t\tthis.rightWeight = this.rightNode.getOwnElevation();\r\n\t \t}\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\t//set edge weight to INF if the next node is NULL\r\n\t \t\tthis.rightWeight = weightOfMapEdge;\r\n\t \t}\r\n\t }", "private void setupTurnRoadCharacteristic() {\n turnRoadCharacteristic =\n new BluetoothGattCharacteristic(CHARACT_TURNROAD_UUID,\n BluetoothGattCharacteristic.PROPERTY_READ | BluetoothGattCharacteristic.PROPERTY_WRITE | BluetoothGattCharacteristic.PROPERTY_NOTIFY,\n BluetoothGattCharacteristic.PERMISSION_READ | BluetoothGattCharacteristic.PERMISSION_WRITE);\n\n turnRoadCharacteristic.addDescriptor(\n Peripheral.getClientCharacteristicConfigurationDescriptor());\n\n turnRoadCharacteristic.addDescriptor(\n Peripheral.getCharacteristicUserDescriptionDescriptor(CHARACT_TURNROAD_DESC));\n\n turnRoadCharacteristic.setValue(turnRoadCharacteristic_value);\n }", "public void setOA(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localOATracker = true;\r\n } else {\r\n localOATracker = false;\r\n \r\n }\r\n \r\n this.localOA=param;\r\n \r\n\r\n }", "@SkipValidation\n\tpublic String saveOrUpdate()\n\t{\n\t\tdrgatewaysDAO.saveOrUpdateDRGateways(drgateways);\n\n\t\tactivateDAO.setActivate(\"1\");\n\n\t\t//reload the drgateways\n\t\tlistDRGateways = null;\n\t\tlistDRGateways = drgatewaysDAO.listDRGateways();\n\n\t\treturn SUCCESS;\n\t}", "void setRoute(String routeID);", "protected final void operationROR(final int adr) {\r\n writeByte(adr, operationROR(readByte(adr)));\r\n }", "public void setRTRNCD(int value) {\n this.rtrncd = value;\n }", "public void setWriteReg(){\r\n\t\twriteRegVal = read_writeReg;\r\n\t}", "protected void setRoutes(WriteFileResponse response) {\n routes[ response.getSequence() ] = response.getRoutingPath();\n if ( ableToWrite && totalReceived.incrementAndGet() == routes.length )\n {\n unlock();\n }\n }", "public void setRmTable(Rooms value);", "public void setRaio(double raio) {\n this.raio = raio;\n }", "private void updISTRN() \n\t{\n\t\ttry\n\t\t{\n\t\t\tM_strSQLQRY = \"Update FG_ISTRN set \";\n\t\t\tM_strSQLQRY += \"IST_STSFL = '1',\";\n\t\t\tM_strSQLQRY += \"IST_TRNFL = '0',\";\n\t\t\tM_strSQLQRY += \"IST_LUSBY = '\"+cl_dat.M_strUSRCD_pbst+\"',\";\n\t\t\tM_strSQLQRY += \"IST_LUPDT = '\"+M_fmtDBDAT.format(M_fmtLCDAT.parse(cl_dat.M_strLOGDT_pbst ))+\"'\";\n\t\t\tM_strSQLQRY += \" where ist_CMPCD = '\"+cl_dat.M_strCMPCD_pbst+\"' and ist_wrhtp = '\"+strWRHTP+\"'\";\n\t\t\tM_strSQLQRY += \" and ist_isstp = '\"+strISSTP+\"'\";\n\t\t\tM_strSQLQRY += \" and ist_issno = '\"+txtISSNO.getText().toString() .trim() +\"'\";\n\t\t\tM_strSQLQRY += \" and ist_prdcd = '\"+strPRDCD+\"'\";\n\t\t\tM_strSQLQRY += \" and ist_prdtp = '\"+strPRDTP+\"'\";\n\t\t\tM_strSQLQRY += \" and ist_lotno = '\"+strLOTNO+\"'\";\n\t\t\tM_strSQLQRY += \" and ist_rclno = '\"+strRCLNO+\"'\";\n\t\t\tM_strSQLQRY += \" and ist_pkgtp = '\"+strPKGTP+\"'\";\n\t\t\tM_strSQLQRY += \" and ist_mnlcd = '\"+strMNLCD+\"'\";\n\t\t\t\n\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\n\t\t\t//System.out.println(\"update fgistrn table :\"+M_strSQLQRY);\n\t\t\t\n\t\t}catch(Exception L_EX)\n\t\t{\n\t\t\tsetMSG(L_EX,\"updISTRN\");\n\t\t}\n\t}", "public void xsetRoadwayRef(org.landxml.schema.landXML11.RoadwayNameRef roadwayRef)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.RoadwayNameRef target = null;\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().find_attribute_user(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.set(roadwayRef);\r\n }\r\n }", "public void setNetWS(long netWS) {\r\n/* 406 */ this._netWS = netWS;\r\n/* 407 */ this._has_netWS = true;\r\n/* */ }", "private void setRoads(RnsReader rnsReader) {\n\t\t// s is never null\n\t\troadsByUri.clear();\n\t\tSet<RoadSegmentReader> s = rnsReader.getRoadSegments(null);\n\t\t\n\t\tfor(RoadSegmentReader rsr : s){\n\t\t\tRoad r = (new ObjectFactory()).createRoad();\n\t\t\tr.setRoadName(rsr.getRoadName());\n\t\t\tString roadUri = buildRoadUriFromId(rsr.getRoadName());\n\t\t\tr.setSelf(roadUri);\n\t\t\tif(!roadsByUri.containsKey(roadUri)){\n\t\t\t\tputResource(r);\n\t\t\t}\n\t\t}\n\t}", "public void setRightRoadId(String rightRoadId) {\n this.rightRoadId = rightRoadId == null ? null : rightRoadId.trim();\n }", "public void setSWDES(int param) {\r\n this.localSWDES = param;\r\n }", "public void setPRTNO(java.lang.Integer PRTNO) {\n this.PRTNO = PRTNO;\n }", "static void set_sl_rr(FM_OPL OPL, int slot, int v) {\n OPL_CH CH = OPL.P_CH[slot / 2];\n OPL_SLOT SLOT = CH.SLOT[slot & 1];\n int sl = v >> 4;\n int rr = v & 0x0f;\n\n SLOT.SL = SL_TABLE[sl];\n if (SLOT.evm == ENV_MOD_DR) {\n SLOT.eve = SLOT.SL;\n }\n SLOT.RR = new IntArray(OPL.DR_TABLE, rr << 2);\n SLOT.evsr = SLOT.RR.read(SLOT.ksr);\n if (SLOT.evm == ENV_MOD_RR) {\n SLOT.evs = SLOT.evsr;\n }\n }", "void xsetStaEnd(org.landxml.schema.landXML11.Station staEnd);", "public void setRua(String rua) {this.rua = rua;}", "public void setRightNeighbor(Board rightNeighbor) {\r\n\t\tthis.rightNeighbor = rightNeighbor;\r\n\t}", "private boolean updateRoute(Route rte, Route nuRte) {\n\t\tboolean result = false;\n\t\tLinkInfo nuLink = lnkVec.get(nuRte.outLink);\n\t\tLinkInfo oldLink = lnkVec.get(rte.outLink);\n\t\tif (nuLink.helloState == 0){\n\t\t\tresult = false;\n\t\t}\n\t\t// if the route is invalid, update and return true\n\t\telse if (rte.valid == false){\n\t\t\treplaceExceptPrefix(rte,nuRte);\n\t\t\tresult = true;\n\t\t}\n\t\t//if both routes have same path and link, then timestamp \n\t\t//and cost of rte are updated\n\t\telse if (rte.outLink == nuRte.outLink && \n\t\t\t\trte.path == nuRte.path){\n\t\t\trte.timestamp = nuRte.timestamp;\n\t\t\trte.cost = nuRte.cost;\n\t\t\tresult = true;\n\t\t}\n\t\t//if nuRte has a cost that is less than .9 times the\n\t\t//cost of rte, then all fields in rte except the prefix fields\n\t\t//are replaced with the corresponding fields in nuRte\n\t\telse if (nuRte.cost < (.9 * rte.cost)){\n\t\t\treplaceExceptPrefix (rte, nuRte);\n\t\t\tresult = true;\n\t\t}\n\t\t//else, if nuRte is at least 20 seconds newer than rte\n\t\t//(as indicated by their timestamps), then all fields of\n\t\t//rte except the prefix fields are replaced\n\t\telse if (nuRte.timestamp - rte.timestamp >= 20){\n\t\t\treplaceExceptPrefix (rte, nuRte);\n\t\t\tresult = true;\n\t\t}\n\t\t//else, if the link field for rte refers to a link that is\n\t\t//currently disabled, replace all fields in rte but the\n\t\t//prefix fields\n\t\telse if (oldLink.helloState == 0){\n\t\t\treplaceExceptPrefix(rte, nuRte);\n\t\t\tresult = true;\n\t\t}\n\n\t\treturn result;\t\n\t}", "@Test\n public void testSetRouterType() throws Exception {\n isisNeighbor.setRouterType(IsisRouterType.L1);\n isisRouterType = isisNeighbor.routerType();\n assertThat(isisRouterType, is(IsisRouterType.L1));\n }", "public void setServicioSRI(ServicioSRI servicioSRI)\r\n/* 106: */ {\r\n/* 107:125 */ this.servicioSRI = servicioSRI;\r\n/* 108: */ }", "private void setS2Rsp(\n PToP.S2ARsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 23;\n }", "public void setRight(Lane right) {\r\n\t\tthis.right = right;\r\n\t}", "public void setR(String R) {\n\t\tthis.R = R;\r\n\t\tfirePropertyChange(ConstantResourceFactory.P_R,null,R);\r\n\t}", "public void setWAERK(java.lang.String WAERK) {\n this.WAERK = WAERK;\n }", "public static void setRd(byte rd) {\n MEMWBRegister.rd = rd;\n }", "@PathParam(\"rule\")\n public void setRule(@NotNull(message = \"rule name can't be NULL\")\n final String rle) {\n this.rule = rle;\n }", "private void setS2Rsp(PToP.S2ARsp value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 23;\n }", "public void setWwn(long wwn) {\r\n this.wwn = wwn;\r\n }", "public String getRightRoadId() {\n return rightRoadId;\n }", "public void setRSU(boolean isRSU) { this.isRSU = isRSU; }", "public void setTRS_TYPE(String TRS_TYPE) {\r\n this.TRS_TYPE = TRS_TYPE == null ? null : TRS_TYPE.trim();\r\n }", "public void setObrefno(String value) {\n setAttributeInternal(OBREFNO, value);\n }", "public void setOCCURSNR(int value) {\n this.occursnr = value;\n }", "public void setSW(java.lang.String param) {\r\n localSWTracker = param != null;\r\n\r\n this.localSW = param;\r\n }", "private void setS2BRelay(PToP.S2BRelay value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 24;\n }", "public void giveSZTToRightNeighbor(int value) {\n\t\tcurrent.lowerScore(value);\n\t\tgetRightNeigbour().raiseScore(value);\n\t}", "public com.example.DNSLog.Builder setOR(boolean value) {\n validate(fields()[16], value);\n this.OR = value;\n fieldSetFlags()[16] = true;\n return this;\n }", "void setRoadsideArray(org.landxml.schema.landXML11.RoadsideDocument.Roadside[] roadsideArray);", "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 }", "public java.lang.CharSequence getOTDFLTROSSRIND() {\n return OT_DFLT_ROS_SR_IND;\n }", "public static int OPLWrite(FM_OPL OPL, int a, int v) {\n if ((a & 1) == 0) {\n /* address port */\n\n OPL.address = v & 0xff;\n } else {\n /* data port */\n\n if (OPL.UpdateHandler != null) {\n OPL.UpdateHandler.handler(OPL.UpdateParam, 0);\n }\n OPLWriteReg(OPL, OPL.address, v);\n }\n return (OPL.status >> 7) & 0xFF; //status is uint8\n\n }", "public java.lang.CharSequence getOTDFLTROSSRIND() {\n return OT_DFLT_ROS_SR_IND;\n }", "public void setRouteType(String x)\n {\n this.routeType = x;\n }", "public void setWrod(String wrod) {\n this.wrod = wrod;\n }", "public void setRightDoors(boolean right) {\n \tthis.rightDoorIsOpen = right;\n \tif(this.rightDoorIsOpen) {\n \t\tsetNumDeparting();\n \t}\n }", "@Transactional\n public void update(RoutersEntity uRouters, String routers_id) throws NoSuchRoutersException {\n var routers = routersRepository.findById(routers_id).get();//2.0.0.M7\n if (routers == null) throw new NoSuchRoutersException();\n //update\n routers.setOfficeId(uRouters.getOfficeId());\n }", "public void setDoor() {\n\t\tisaDoor = true;\n\t}", "public void setAdr2(String adr2) {\n this.adr2 = adr2;\n }", "@Override\n\tpublic void setRightChild(WhereNode rightChild) {\n\n\t}", "public void setSNDR(String SNDR) {\n this.SNDR = SNDR;\n }", "private void refreshLeftDoors(){\n\n\n if (this.selectedTrain.getLeftDoor() == 1){ this.leftDoorsOpenRadioButton.setSelected(true); }\n else if (this.selectedTrain.getLeftDoor() == 0){ this.leftDoorsCloseRadioButton.setSelected(true); }\n else if (this.selectedTrain.getLeftDoor() == -1){ this.leftDoorsFailureRadioButton.setSelected(true); }\n }", "private void landOrTakeoff(String land_or_takeoff) {\n\t\ttry {\n\t\tthis.baggage = Integer.valueOf(land_or_takeoff);\n\t\tthis.isLanding = true;\n\t\t}catch(NumberFormatException e) {\n\t\t\tthis.isLanding = false;\n\t\t\tthis.destination = land_or_takeoff;\n\t\t}//catch\n\t}", "public boolean ifRailRoad() {\n return choiceSelect == RAIL_ROAD_CHOICE;\n }", "public static void setsRight(char sRight) {\n\t\t\tGamePreferences.sRight = sRight;\n\t\t}", "public void setDocStatus (String DocStatus)\n{\nif (DocStatus.equals(\"VO\") || DocStatus.equals(\"NA\") || DocStatus.equals(\"IP\") || DocStatus.equals(\"CO\") || DocStatus.equals(\"AP\") || DocStatus.equals(\"CL\") || DocStatus.equals(\"WC\") || DocStatus.equals(\"WP\") || DocStatus.equals(\"??\") || DocStatus.equals(\"DR\") || DocStatus.equals(\"IN\") || DocStatus.equals(\"RE\"));\n else throw new IllegalArgumentException (\"DocStatus Invalid value - Reference = DOCSTATUS_AD_Reference_ID - VO - NA - IP - CO - AP - CL - WC - WP - ?? - DR - IN - RE\");\nif (DocStatus == null) throw new IllegalArgumentException (\"DocStatus is mandatory\");\nif (DocStatus.length() > 2)\n{\nlog.warning(\"Length > 2 - truncated\");\nDocStatus = DocStatus.substring(0,2);\n}\nset_Value (\"DocStatus\", DocStatus);\n}", "public void unsetRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(ROADWAYREF$16);\r\n }\r\n }", "public void setOverseasRoyalty(String value) {\n setAttributeInternal(OVERSEASROYALTY, value);\n }", "private void setSALIR(int opcionSalida){\n\t\tthis.opcionSalida = opcionSalida;\n\t}", "private void updPRMST()\n\t{ \n\t\ttry\n\t\t{\n\t\t\tM_strSQLQRY = \"Update CO_PRMST set \";\n\t\t\tM_strSQLQRY += \"PR_CSTQT = PR_CSTQT + \"+strISSQT+\",\";\n\t\t\tM_strSQLQRY += \"PR_TRNFL = '0',\";\n\t\t\tM_strSQLQRY += \"PR_LUSBY = '\"+cl_dat.M_strUSRCD_pbst+\"',\";\n\t\t\tM_strSQLQRY += \"PR_LUPDT = '\"+M_fmtDBDAT.format(M_fmtLCDAT.parse(cl_dat.M_strLOGDT_pbst))+\"'\";\n\t\t\tM_strSQLQRY += \" where pr_prdcd = '\"+strPRDCD+\"'\";\n\t\t\t\n\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\n\t\t\t//System.out.println(\"update COprmt table :\"+M_strSQLQRY);\n\t\t}catch(Exception L_EX)\n\t\t{\n\t\t\tsetMSG(L_EX,\"updPRMST\");\n\t\t}\n\t}", "public void setRunways(ListArrayBasedPlus<Runway> runways)\r\n {\r\n this.runways = runways;\r\n }", "public final EObject ruleSWRLOperator() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_1=null;\n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_7=null;\n EObject lv_rule_2_0 = null;\n\n EObject lv_barrier_4_0 = null;\n\n EObject lv_barrier_6_0 = null;\n\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2433:28: ( (otherlv_0= 'swrl' otherlv_1= '(' ( (lv_rule_2_0= ruleSWRLRule ) ) otherlv_3= ',' ( (lv_barrier_4_0= ruleStreamOperatorParameter ) ) (otherlv_5= ',' ( (lv_barrier_6_0= ruleStreamOperatorParameter ) ) )* otherlv_7= ')' ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2434:1: (otherlv_0= 'swrl' otherlv_1= '(' ( (lv_rule_2_0= ruleSWRLRule ) ) otherlv_3= ',' ( (lv_barrier_4_0= ruleStreamOperatorParameter ) ) (otherlv_5= ',' ( (lv_barrier_6_0= ruleStreamOperatorParameter ) ) )* otherlv_7= ')' )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2434:1: (otherlv_0= 'swrl' otherlv_1= '(' ( (lv_rule_2_0= ruleSWRLRule ) ) otherlv_3= ',' ( (lv_barrier_4_0= ruleStreamOperatorParameter ) ) (otherlv_5= ',' ( (lv_barrier_6_0= ruleStreamOperatorParameter ) ) )* otherlv_7= ')' )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2434:3: otherlv_0= 'swrl' otherlv_1= '(' ( (lv_rule_2_0= ruleSWRLRule ) ) otherlv_3= ',' ( (lv_barrier_4_0= ruleStreamOperatorParameter ) ) (otherlv_5= ',' ( (lv_barrier_6_0= ruleStreamOperatorParameter ) ) )* otherlv_7= ')'\n {\n otherlv_0=(Token)match(input,47,FOLLOW_47_in_ruleSWRLOperator5497); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getSWRLOperatorAccess().getSwrlKeyword_0());\n \n otherlv_1=(Token)match(input,21,FOLLOW_21_in_ruleSWRLOperator5509); \n\n \tnewLeafNode(otherlv_1, grammarAccess.getSWRLOperatorAccess().getLeftParenthesisKeyword_1());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2442:1: ( (lv_rule_2_0= ruleSWRLRule ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2443:1: (lv_rule_2_0= ruleSWRLRule )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2443:1: (lv_rule_2_0= ruleSWRLRule )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2444:3: lv_rule_2_0= ruleSWRLRule\n {\n \n \t newCompositeNode(grammarAccess.getSWRLOperatorAccess().getRuleSWRLRuleParserRuleCall_2_0()); \n \t \n pushFollow(FOLLOW_ruleSWRLRule_in_ruleSWRLOperator5530);\n lv_rule_2_0=ruleSWRLRule();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getSWRLOperatorRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"rule\",\n \t\tlv_rule_2_0, \n \t\t\"SWRLRule\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,16,FOLLOW_16_in_ruleSWRLOperator5542); \n\n \tnewLeafNode(otherlv_3, grammarAccess.getSWRLOperatorAccess().getCommaKeyword_3());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2464:1: ( (lv_barrier_4_0= ruleStreamOperatorParameter ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2465:1: (lv_barrier_4_0= ruleStreamOperatorParameter )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2465:1: (lv_barrier_4_0= ruleStreamOperatorParameter )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2466:3: lv_barrier_4_0= ruleStreamOperatorParameter\n {\n \n \t newCompositeNode(grammarAccess.getSWRLOperatorAccess().getBarrierStreamOperatorParameterParserRuleCall_4_0()); \n \t \n pushFollow(FOLLOW_ruleStreamOperatorParameter_in_ruleSWRLOperator5563);\n lv_barrier_4_0=ruleStreamOperatorParameter();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getSWRLOperatorRule());\n \t }\n \t\tadd(\n \t\t\tcurrent, \n \t\t\t\"barrier\",\n \t\tlv_barrier_4_0, \n \t\t\"StreamOperatorParameter\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2482:2: (otherlv_5= ',' ( (lv_barrier_6_0= ruleStreamOperatorParameter ) ) )*\n loop25:\n do {\n int alt25=2;\n int LA25_0 = input.LA(1);\n\n if ( (LA25_0==16) ) {\n alt25=1;\n }\n\n\n switch (alt25) {\n \tcase 1 :\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2482:4: otherlv_5= ',' ( (lv_barrier_6_0= ruleStreamOperatorParameter ) )\n \t {\n \t otherlv_5=(Token)match(input,16,FOLLOW_16_in_ruleSWRLOperator5576); \n\n \t \tnewLeafNode(otherlv_5, grammarAccess.getSWRLOperatorAccess().getCommaKeyword_5_0());\n \t \n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2486:1: ( (lv_barrier_6_0= ruleStreamOperatorParameter ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2487:1: (lv_barrier_6_0= ruleStreamOperatorParameter )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2487:1: (lv_barrier_6_0= ruleStreamOperatorParameter )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2488:3: lv_barrier_6_0= ruleStreamOperatorParameter\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getSWRLOperatorAccess().getBarrierStreamOperatorParameterParserRuleCall_5_1_0()); \n \t \t \n \t pushFollow(FOLLOW_ruleStreamOperatorParameter_in_ruleSWRLOperator5597);\n \t lv_barrier_6_0=ruleStreamOperatorParameter();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getSWRLOperatorRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"barrier\",\n \t \t\tlv_barrier_6_0, \n \t \t\t\"StreamOperatorParameter\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop25;\n }\n } while (true);\n\n otherlv_7=(Token)match(input,22,FOLLOW_22_in_ruleSWRLOperator5611); \n\n \tnewLeafNode(otherlv_7, grammarAccess.getSWRLOperatorAccess().getRightParenthesisKeyword_6());\n \n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "void xsetRoadTerrain(org.landxml.schema.landXML11.RoadTerrainType roadTerrain);", "protected void onSetOffTimerReservationSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}", "public void setWHStationNumber(String arg) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.WHSTATIONNUMBER.toString(), arg);\n\t}", "public void unsetVSWR() {\n this.vswr = null;\n }", "public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetBSToOPSResponse setBSToOPS\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetBSToOPSRequest setBSToOPSRequest\n )\n ;", "public void setWsrdModel(WsrdModel wsrdModel) {\r\n\t\tthis.wsrdModel = wsrdModel;\r\n\t}", "public void setRight(IAVLNode node) {\n\t\t\tthis.right = node; // to be replaced by student code\n\t\t}", "public void setRightJoyY(double rightJoyY) {\n this.rightJoyY = rightJoyY;\n }", "public native void setRTOFactor (double RTOfactor);", "public void update_routing_window() {\n Log2(\"update_routing_window\\n\");\n Iterator<RouteEntry> iter= null;\n if (main_rtab!=null) {\n iter= main_rtab.iterator();\n }\n\n // update window\n for (int i= 0; i<tableObj.getRowCount(); i++) {\n if ((main_rtab != null) && iter.hasNext()) {\n RouteEntry next= iter.next();\n tableObj.setValueAt(\"\"+next.dest,i,0);\n tableObj.setValueAt(\"\"+next.next_hop,i,1);\n tableObj.setValueAt(\"\"+next.next_hop_area,i,2);\n tableObj.setValueAt(\"\"+next.dist,i,3);\n } else {\n tableObj.setValueAt(\"\",i,0);\n tableObj.setValueAt(\"\",i,1);\n tableObj.setValueAt(\"\",i,2);\n tableObj.setValueAt(\"\",i,3);\n }\n }\n }", "public void setAlternateRoute(short trainId, TrainRoute r) {\n\t\ttrainRoutes.put(trainId, r);\n\t}", "public static RoadSegment getRoadSegment(String freeway, String direction, String onOffKey)\n\t{\n\t\tif(direction.equalsIgnoreCase(\"north\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"101\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(N101.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn N101.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"405\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(N405.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn N405.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\telse if(direction.equalsIgnoreCase(\"south\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"101\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(S101.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn S101.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"405\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(S405.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn S405.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\telse if(direction.equalsIgnoreCase(\"east\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"10\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(E10.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn E10.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"105\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(E105.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn E105.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\telse //if(direction.equalsIgnoreCase(\"west\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"10\"))\n\t\t\t{\n\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(W10.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn W10.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"105\"))\n\t\t\t{\n\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(W105.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn W105.getRoadSegAt(i);\n\t\t\t}\n\n\t\t}\n\t\n\t}", "public void setRwmc(String rwmc) {\n this.rwmc = rwmc;\n }", "public void setSR_ID(String SR_ID) {\n\t\tthis.SR_ID = SR_ID == null ? null : SR_ID.trim();\n\t}", "public void setPatronAutorizacion(String patronAutorizacion)\r\n/* 219: */ {\r\n/* 220:369 */ this.patronAutorizacion = patronAutorizacion;\r\n/* 221: */ }", "public void setTipoAnexoSRI(String tipoAnexoSRI)\r\n/* 618: */ {\r\n/* 619:687 */ this.tipoAnexoSRI = tipoAnexoSRI;\r\n/* 620: */ }", "public void setR_PnRef(String R_PnRef) {\n super.setR_PnRef(R_PnRef);\n if (R_PnRef != null) {\n setDocumentNo(R_PnRef);\n }\n }", "private void setS2BRelay(\n PToP.S2BRelay.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 24;\n }", "void setROIs(Object rois);", "public void reserveroom(boolean reservation , int roomno) {\n String query = \"update Rooms set Reserved = ? \"\n + \"Where Roomno = ? \";\n \n try { \n PreparedStatement Query = conn.prepareStatement(query);\n Query.setBoolean(1,reservation);\n Query.setInt(2, roomno);\n Query.execute();\n \n } catch (SQLException ex) {\n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "public void setObradjeno(boolean value) {\n this.obradjeno = value;\n }" ]
[ "0.50699157", "0.50021154", "0.49932596", "0.49862102", "0.4930055", "0.49049067", "0.4862402", "0.48302647", "0.47313973", "0.47237724", "0.4699891", "0.46351954", "0.46152118", "0.460445", "0.4555592", "0.454585", "0.45239744", "0.4520332", "0.4515361", "0.4515333", "0.44999632", "0.44926775", "0.44795814", "0.4467517", "0.44447803", "0.44347176", "0.44322893", "0.44240323", "0.44131246", "0.43917125", "0.43739384", "0.43737715", "0.43620184", "0.43567798", "0.4353514", "0.43304557", "0.4321096", "0.43186092", "0.43076473", "0.42998877", "0.42963645", "0.4295496", "0.42946443", "0.4286069", "0.42841908", "0.42807356", "0.42681274", "0.42620754", "0.42611128", "0.42581216", "0.42566153", "0.42563087", "0.42522523", "0.4248554", "0.42391062", "0.4229351", "0.4226698", "0.4225689", "0.42187226", "0.42151266", "0.42139652", "0.42100102", "0.41921246", "0.41903558", "0.4180195", "0.41791388", "0.41755095", "0.4172767", "0.416425", "0.41599402", "0.41590366", "0.41551533", "0.41549718", "0.41539612", "0.41518793", "0.41485882", "0.41459408", "0.4141155", "0.41403657", "0.4133779", "0.41326937", "0.41316605", "0.41309366", "0.41306219", "0.4127732", "0.41246286", "0.41244054", "0.41239807", "0.41236556", "0.41229206", "0.4118328", "0.41149926", "0.4114605", "0.41116685", "0.41115955", "0.4109298", "0.4099938", "0.40985206", "0.40957403", "0.4093008" ]
0.43833742
30
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_DY_ROUTE.BH
public Integer getBh() { return bh; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static com.services.model.BusRoute fetchByPrimaryKey(long brId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn getPersistence().fetchByPrimaryKey(brId);\n\t}", "public java.lang.String getBLH() {\r\n return localBLH;\r\n }", "public String getRoutingNo();", "public Integer getBp_hr() {\r\n return bp_hr;\r\n }", "public java.lang.String getRoadwayRef()\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(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getDownRoadId() {\n return downRoadId;\n }", "public java.lang.String getBlh() {\r\n return localBlh;\r\n }", "public AGateway getGateway()\r\n/* 16: */ {\r\n/* 17:36 */ return this.gateway;\r\n/* 18: */ }", "char getBusLine()\n\t{\n\t\treturn this.BUSline;\n\t\t\n\t}", "public String getRPH() {\n return RPH;\n }", "public Float getBhTraffic() {\r\n return bhTraffic;\r\n }", "@Override\r\n public Baron getBaron() {\r\n return this.route.getBaron();\r\n }", "public static C6306b m24933b(C6531d dVar) {\n if (dVar == null) {\n throw new IllegalArgumentException(\"Parameters must not be null.\");\n }\n C6306b bVar = (C6306b) dVar.mo22751a(\"http.route.forced-route\");\n if (bVar == null || !f20831b.equals(bVar)) {\n return bVar;\n }\n return null;\n }", "public String getRoutingStatus() {\n return routingStatus;\n }", "public double getBrrm() {\n return brrm;\n }", "com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg getReturnFlightLeg();", "public org.landxml.schema.landXML11.RoadwayNameRef xgetRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.RoadwayNameRef target = null;\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().find_attribute_user(ROADWAYREF$16);\r\n return target;\r\n }\r\n }", "@Override\n public int getBindingVariable() {\n return BR.data;\n }", "@Override\n public int getBindingVariable() {\n return BR.data;\n }", "public String getRouteid() {\r\n return routeid;\r\n }", "public char getBusLine() {\n\t\t\treturn busLine;\n\t\t}", "public double getAH() {\n\t\t\treturn archeight.get();\n\t\t}", "private double getCurbHeight(ReaderWay way) {\n\t\tdouble res = 0d;\n\t\tString str = null;\n\t\t// http://taginfo.openstreetmap.org/keys/sloped_curb#overview: 90% nodes, 10% ways\n\t\t// http://taginfo.openstreetmap.org/keys/sloped_curb#values\n\t\tif (way.hasTag(\"sloped_curb\")) {\n\t\t\tstr = way.getTag(\"sloped_curb\").toLowerCase();\n\t\t\tstr = str.replace(\"yes\", \"0.03\");\n\t\t\tstr = str.replace(\"both\", \"0.03\");\n\t\t\tstr = str.replace(\"no\", \"0.15\");\n\t\t\tstr = str.replace(\"one\", \"0.15\");\n\t\t\tstr = str.replace(\"at_grade\", \"0.0\");\n\t\t\tstr = str.replace(\"flush\", \"0.0\");\n\t\t\tstr = str.replace(\"low\", \"0.03\");\n\t\t}\n\t\telse if (way.hasTag(\"kerb\")) {\n\t\t\tif (way.hasTag(\"kerb:height\")) {\n\t\t\t\tstr = way.getTag(\"kerb:height\").toLowerCase();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tstr = way.getTag(\"kerb\").toLowerCase();\n\t\t\t\tstr = str.replace(\"lowered\", \"0.03\");\n\t\t\t\tstr = str.replace(\"raised\", \"0.15\");\n\t\t\t\tstr = str.replace(\"yes\", \"0.03\");\n\t\t\t\tstr = str.replace(\"flush\", \"0.0\");\n\t\t\t\tstr = str.replace(\"unknown\", \"0.03\");\n\t\t\t\tstr = str.replace(\"no\", \"0.15\");\n\t\t\t\tstr = str.replace(\"dropped\", \"0.03\");\n\t\t\t\tstr = str.replace(\"rolled\", \"0.03\");\n\t\t\t\tstr = str.replace(\"none\", \"0.15\");\n\t\t\t}\n\t\t}\n \n\t\t// http://taginfo.openstreetmap.org/keys/curb#overview: 70% nodes, 30% ways\n\t\t// http://taginfo.openstreetmap.org/keys/curb#values\n\t\telse if (way.hasTag(\"curb\")) {\n\t\t\tstr = way.getTag(\"curb\").toLowerCase();\n\t\t\tstr = str.replace(\"lowered\", \"0.03\");\n\t\t\tstr = str.replace(\"regular\", \"0.15\");\n\t\t\tstr = str.replace(\"flush;lowered\", \"0.0\");\n\t\t\tstr = str.replace(\"sloped\", \"0.03\");\n\t\t\tstr = str.replace(\"lowered_and_sloped\", \"0.03\");\n\t\t\tstr = str.replace(\"flush\", \"0.0\");\n\t\t\tstr = str.replace(\"none\", \"0.15\");\n\t\t\tstr = str.replace(\"flush_and_lowered\", \"0.0\");\n\t\t}\n\n\t\tif (str != null) {\n\t\t\tboolean isCm = false;\n\t\t\ttry {\n\t\t\t\tif (str.contains(\"c\")) {\n\t\t\t\t\tisCm = true;\n\t\t\t\t}\n\t\t\t\tres = Double.parseDouble(str.replace(\"%\", \"\").replace(\",\", \".\").replace(\"m\", \"\").replace(\"c\", \"\"));\n\t\t\t\tif (isCm) {\n\t\t\t\t\tres /= 100d;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception ex) {\n\t\t\t\t//\tlogger.warning(\"Error parsing value for Tag kerb from this String: \" + stringValue + \". Exception:\" + ex.getMessage());\n\t\t\t}\n\t\t}\n\n\t\t// check if the value makes sense (i.e. maximum 0.3m/30cm)\n\t\tif (-0.15 < res && res < 0.15) {\n\t\t\tres = Math.abs(res);\n\t\t}\n\t\telse {\n\t\t\t// doubleValue = Double.NaN;\n\t\t\tres = 0.15;\n\t\t}\n\t\t\n\t\treturn res;\n\t}", "public double getSideB()\r\n\t{\r\n\t\treturn this.sideB;\r\n\t}", "public static com.services.model.BusRoute remove(long brId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.services.NoSuchBusRouteException {\n\t\treturn getPersistence().remove(brId);\n\t}", "String getRouteID();", "public com.vmware.converter.HostIpRouteEntry getRoute() {\r\n return route;\r\n }", "public java.lang.String getPortHarbourCode() {\n\t\treturn _tempNoTiceShipMessage.getPortHarbourCode();\n\t}", "public java.lang.String getArrivalPortCode() {\n\t\treturn _tempNoTiceShipMessage.getArrivalPortCode();\n\t}", "public com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg getReturnFlightLeg() {\n return returnFlightLeg_ == null ? com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg.getDefaultInstance() : returnFlightLeg_;\n }", "public BigDecimal getLBR_LatePaymentPenaltyAP();", "public Float getBh() {\r\n return bh;\r\n }", "@Pure\n\tST getArrivalConnection();", "String getRefPartnerSideB();", "public java.lang.String getRoute () {\n\t\treturn route;\n\t}", "public int getRoadLength() {\n \t\treturn roadLength;\n \t}", "public double getRoadwayPI()\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }", "public String getRightRoadId() {\n return rightRoadId;\n }", "public int getBeacon() {\n \treturn this.beacon;\n }", "public Long getRouteid() {\n return routeid;\n }", "public String getLBR_LatePaymentPenaltyCode();", "public int getRRPP(){\n return RRPP; \n }", "public Route getRoute() throws SQLException {\n\t\tsortedOrders = sortReadyOrders();\n\t\tList<Vertex> verts = bgCtr.getVertList();\n\t\tList<Vertex> vertsForRoute = new LinkedList<>();\n\t\tList<Vertex> routeList = new LinkedList<>();\n\n\t\tVertex hansGrillBar = bgCtr.getVertList().get(0);\n\n\t\tvertsForRoute.add(hansGrillBar);\n\n\t\tfor (int i = 0; i < sortedOrders.size(); i++) {\n\t\t\tString address = sortedOrders.get(i).getPers().getAddress();\n\t\t\tfor (int j = 0; j < verts.size(); j++) {\n\t\t\t\tif (verts.get(j).getName().equalsIgnoreCase(address)) {\n\t\t\t\t\tvertsForRoute.add(verts.get(j));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < vertsForRoute.size(); i++) {\n\t\t\tint count = i + 1;\n\t\t\tList<Vertex> tempRouteList = new LinkedList<>();\n\t\t\tif (!(count >= vertsForRoute.size())) {\n\t\t\t\tVertex source = vertsForRoute.get(i);\n\t\t\t\tVertex target = vertsForRoute.get(count);\n\t\t\t\ttempRouteList = generateTempRouteList(source, target);\n\t\t\t\tif (!source.equals(target)) {\n\t\t\t\t\tfor (int j = 0; j < tempRouteList.size(); j++) {\n\t\t\t\t\t\tif (!source.equals(tempRouteList.get(j))) {\n\t\t\t\t\t\t\tif (routeList.isEmpty()) {\n\t\t\t\t\t\t\t\trouteList.add(tempRouteList.get(j));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\trouteList.add(tempRouteList.get(j));\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\n\t\tRoute route = new Route(routeList);\n\t\tcreateRoute(route);\n\t\treturn route;\n\t}", "public Float getBhHosucr() {\r\n return bhHosucr;\r\n }", "java.lang.String getBunho();", "java.lang.String getBunho();", "public java.lang.String getHCAR() {\r\n return HCAR;\r\n }", "@POST\n\t@Path(\"/routingComplete\")\n\tpublic Response getB2bAfterRoutingComplete(EFmFmEmployeeTravelRequestPO travelRequestPO) throws ParseException{\t\t\n\t\tIUserMasterBO userMasterBO = (IUserMasterBO) ContextLoader.getContext().getBean(\"IUserMasterBO\");\n\t\tMap<String, Object> responce = new HashMap<String, Object>();\n\t\t\n\t\t \t\t\n\t\t log.info(\"Logged In User IP Adress\"+token.getClientIpAddr(httpRequest));\n\t\t try{\n\t\t \tif(!(userMasterBO.checkTokenValidOrNot(httpRequest.getHeader(\"authenticationToken\"),travelRequestPO.getUserId()))){\n\n\t\t \t\tresponce.put(\"status\", \"invalidRequest\");\n\t\t \t\treturn Response.ok(responce, MediaType.APPLICATION_JSON).build();\n\t\t \t}}catch(Exception e){\n\t\t \t\tlog.info(\"authentication error\"+e);\n\t\t\t\tresponce.put(\"status\", \"invalidRequest\");\n\t\t\t\treturn Response.ok(responce, MediaType.APPLICATION_JSON).build();\n\n\t\t \t}\n\t\t \n\t\t List<EFmFmUserMasterPO> userDetailToken = userMasterBO.getUserDetailFromUserId(travelRequestPO.getUserId());\n\t\t if (!(userDetailToken.isEmpty())) {\n\t\t String jwtToken = \"\";\n\t\t try {\n\t\t JwtTokenGenerator token = new JwtTokenGenerator();\n\t\t jwtToken = token.generateToken();\n\t\t userDetailToken.get(0).setAuthorizationToken(jwtToken);\n\t\t userDetailToken.get(0).setTokenGenerationTime(new Date());\n\t\t userMasterBO.update(userDetailToken.get(0));\n\t\t } catch (Exception e) {\n\t\t log.info(\"error\" + e);\n\t\t }\n\t\t }\n\n ICabRequestBO iCabRequestBO = (ICabRequestBO) ContextLoader.getContext().getBean(\"ICabRequestBO\");\n IAssignRouteBO iAssignRouteBO = (IAssignRouteBO) ContextLoader.getContext().getBean(\"IAssignRouteBO\");\n log.info(\"serviceStart -UserId :\" + travelRequestPO.getUserId());\n DateFormat shiftTimeFormat = new SimpleDateFormat(\"HH:mm:ss\");\n SimpleDateFormat dateformate = new SimpleDateFormat(\"dd-MM-yyyy\");\n DateFormat shiftTimeFormate = new SimpleDateFormat(\"HH:mm\");\n String shiftTime = travelRequestPO.getTime();\n Date shift = shiftTimeFormate.parse(shiftTime);\n java.sql.Time dateShiftTime = new java.sql.Time(shift.getTime());\n Date excutionDate = dateformate.parse(travelRequestPO.getExecutionDate());\n\t\tCalculateDistance calculateDistance = new CalculateDistance();\n List<EFmFmAssignRoutePO> activeRoutes = iAssignRouteBO.getAllRoutesForPrintForParticularShift(excutionDate, excutionDate,\n travelRequestPO.getTripType(), shiftTimeFormat.format(dateShiftTime), travelRequestPO.getCombinedFacility());\n log.info(\"Shift Size\"+activeRoutes.size());\n if (!(activeRoutes.isEmpty())) { \t\n \tfor(EFmFmAssignRoutePO assignRoute:activeRoutes){\n \t\ttry{\n\t\t\t\tList<EFmFmEmployeeTripDetailPO> employeeTripDetailPO = null;\n \t\t\t\tStringBuffer empWayPoints = new StringBuffer();\n \t\t\t\tif (assignRoute.getTripType().equalsIgnoreCase(\"PICKUP\")) {\n\t\t\t\t\temployeeTripDetailPO = iCabRequestBO.getParticularTripAllEmployees(assignRoute.getAssignRouteId());\n\t\t\t\t} else {\n\t\t\t\t\temployeeTripDetailPO = iCabRequestBO.getDropTripAllSortedEmployees(assignRoute.getAssignRouteId());\n\t\t\t\t}\n\n \t\t\t\tif (!(employeeTripDetailPO.isEmpty())) {\n\t\t\t\t\tfor (EFmFmEmployeeTripDetailPO employeeTripDetail : employeeTripDetailPO) {\n\t\t\t \tempWayPoints.append(employeeTripDetail.geteFmFmEmployeeTravelRequest().getEfmFmUserMaster().getLatitudeLongitude()+\"|\"); \n\t\t\t\t\t}\n \t\t\t\t} \n \t\t\t\tString plannedETAAndDistance =\"\";\n \t\t\t\tif (assignRoute.getTripType().equalsIgnoreCase(\"PICKUP\")) {\n \t\t\t\t\tplannedETAAndDistance= calculateDistance.getPlannedDistanceaAndETAForRoute(\n \t \t\t\t\tassignRoute.geteFmFmClientBranchPO().getLatitudeLongitude(),\n \t \t\t\t\tassignRoute.geteFmFmClientBranchPO().getLatitudeLongitude(), empWayPoints.toString().replaceAll(\"\\\\s+\",\"\"));\t\t \t\t\n \t\t\t\t}\n\n \t\t\t\telse{\n \t\t\t\t\tplannedETAAndDistance= calculateDistance.getPlannedDistanceaAndETAForRoute(\n \t \t\t\t\tassignRoute.geteFmFmClientBranchPO().getLatitudeLongitude(),\n \t \t\t\t\temployeeTripDetailPO.get(employeeTripDetailPO.size()-1).geteFmFmEmployeeTravelRequest().getEfmFmUserMaster().getLatitudeLongitude(), empWayPoints.toString().replaceAll(\"\\\\s+\",\"\"));\t\t \t\t\t\n \t\t\t\t}\n \t\t\t\t\n \t\tlog.info(\"plannedETAAndDistance\"+plannedETAAndDistance+\" \"+empWayPoints.toString().replaceAll(\"\\\\s+\",\"\")+\"assignRoute Id\"+assignRoute.getAssignRouteId());\n try{\n \t\tassignRoute.setPlannedTravelledDistance(Math.round(Double.parseDouble(plannedETAAndDistance.split(\"-\")[0])+(assignRoute.geteFmFmClientBranchPO().getAddingGeoFenceDistanceIntrip())));\n assignRoute.setPlannedDistance(Math.round(Double.parseDouble(plannedETAAndDistance.split(\"-\")[0])+(assignRoute.geteFmFmClientBranchPO().getAddingGeoFenceDistanceIntrip())));\n assignRoute.setPlannedTime(Math.round(Long.parseLong(plannedETAAndDistance.split(\"-\")[1])));\t\t\n }catch(Exception e){\n \tlog.info(\"plannedETAAndDistance\"+plannedETAAndDistance+\" \"+empWayPoints.toString().replaceAll(\"\\\\s+\",\"\")+\"assignRoute Id\"+assignRoute.getAssignRouteId());\n log.info(\"Error\"+e);\n \n }\n assignRoute.setPlannedReadFlg(\"N\");\t\n assignRoute.setRoutingCompletionStatus(\"completed\");\n assignRoute.setScheduleReadFlg(\"Y\"); \n \t\t\t\tif (assignRoute.getTripType().equalsIgnoreCase(\"DROP\")) {\n \t\t\t\t\ttry{\n \t\t\t\t\t\tif(assignRoute.getIsBackTwoBack().equalsIgnoreCase(\"N\")){\n \t\t\t\t\t\t//Back to back check any pickup is there with this route end drop location. \n \t\t\t\t List<EFmFmAssignRoutePO> b2bPickupDetails=iAssignRouteBO.getBackToBackTripDetailFromTripTypeANdShiftTime(\"PICKUP\", assignRoute.getShiftTime(),assignRoute.getCombinedFacility());\t\t\t\t\t\n \t\t\t\t log.info(\"b2bDetails\"+b2bPickupDetails.size());\n \t\t\t \tif(!(b2bPickupDetails.isEmpty())){\n \t\t\t\t\t\tfor (EFmFmAssignRoutePO assignPickupRoute : b2bPickupDetails) {\n \t \t\t\t\t List<EFmFmAssignRoutePO> b2bPickupDetailsAlreadyDone=iAssignRouteBO.getBackToBackTripDetailFromb2bId(assignPickupRoute.getAssignRouteId(), \"DROP\",assignRoute.getCombinedFacility());\t\t\t\t\n \t\t\t\t\t\t\tif(b2bPickupDetailsAlreadyDone.isEmpty()){\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t//get first pickup employee\n \t\t\t\t \tList<EFmFmEmployeeTripDetailPO> employeeTripData = iCabRequestBO.getParticularTripAllEmployees(assignPickupRoute.getAssignRouteId()); \t\t\t\t \t\n \t\t\t\t \tif(!(employeeTripData.isEmpty())){\n \t\t\t\t\t \tString lastDropLattilongi=employeeTripDetailPO.get(employeeTripDetailPO.size()-1).geteFmFmEmployeeTravelRequest().getEfmFmUserMaster().getLatitudeLongitude();\t\t\t\t\t \t \t\n \t\t\t\t\t \tString firstPickupLattilongi=employeeTripData.get(0).geteFmFmEmployeeTravelRequest().getEfmFmUserMaster().getLatitudeLongitude(); \t\n \t\t\t\t\t \tlog.info(\"lastDropLattilongi\"+lastDropLattilongi);\n \t\t\t\t\t \tlog.info(\"firstPickupLattilongi\"+firstPickupLattilongi);\n \t\t\t\t\t \tCalculateDistance empDistance=new CalculateDistance();\n \t\t\t\t\t \tif(assignRoute.geteFmFmClientBranchPO().getSelectedB2bType().equalsIgnoreCase(\"distance\") && (empDistance.employeeDistanceCalculation(lastDropLattilongi, firstPickupLattilongi) < (assignRoute.geteFmFmClientBranchPO().getB2bByTravelDistanceInKM()))){\t\t \t\t\n \t\t\t\t\t \t\t//Current Drop B2B route Assign route Date\n \t\t\t\t\t \t\tString currentDropRouteAssignDate=dateFormat.format(assignRoute.getTripAssignDate());\n \t\t\t\t\t \t\tDate currentDropRouteDate=dateFormat.parse(currentDropRouteAssignDate);\n \t\t\t\t\t \t\tlong totalCurrentDropAssignDateAndShiftTime=getDisableTime(assignRoute.getShiftTime().getHours(), assignRoute.getShiftTime().getMinutes(), currentDropRouteDate);\t \t\t\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\t//Drop Route Complete Time\n \t\t\t\t\t \t\tlong totalRouteTime=totalCurrentDropAssignDateAndShiftTime+TimeUnit.SECONDS.toMillis(assignRoute.getPlannedTime());\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\t//Total time for Drop back2back trip\n \t\t\t\t\t \t\tlong totalB2bTimeForCuurentDrop=totalRouteTime+(TimeUnit.HOURS.toMillis(assignRoute.geteFmFmClientBranchPO().getDriverWaitingTimeAtLastLocation().getHours())+TimeUnit.MINUTES.toMillis(assignRoute.geteFmFmClientBranchPO().getDriverWaitingTimeAtLastLocation().getMinutes())+TimeUnit.SECONDS.toMillis(assignRoute.geteFmFmClientBranchPO().getDriverWaitingTimeAtLastLocation().getSeconds()));\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\t//Pickup B2B route Assign route Date\n \t\t\t\t\t \t\tString pickupRouteCurrentAssignDate=dateFormat.format(assignPickupRoute.getTripAssignDate());\n \t\t\t\t\t \t\tDate pickupRouteCurrentAssign=dateFormat.parse(pickupRouteCurrentAssignDate);\n \t\t\t\t\t \t\t\t\n \t\t\t\t\t \t\t//Pickup backtoback Route PickUpTime \n \t\t\t\t\t \t\tlong totalAssignDateAndPickUpTime=getDisableTime(employeeTripData.get(0).geteFmFmEmployeeTravelRequest().getPickUpTime().getHours(),employeeTripData.get(0).geteFmFmEmployeeTravelRequest().getPickUpTime().getMinutes(), pickupRouteCurrentAssign);\t \t\t\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\tif((totalRouteTime < totalAssignDateAndPickUpTime) && totalB2bTimeForCuurentDrop > totalAssignDateAndPickUpTime){\t\t \t\t\t\n \t\t\t\t\t \t\t\tassignRoute.setIsBackTwoBack(\"Y\");\n \t\t\t\t\t \t\t\tassignRoute.setBackTwoBackRouteId(assignPickupRoute.getAssignRouteId());\n \t\t\t\t\t \t\t\tiAssignRouteBO.update(assignRoute);\t\t\t\t\t\t\t\n \t\t\t\t\t \t\t\tbreak;\n \t\t\t\t\t \t\t}\n \t\t\t\t\t \t\telse{\n \t\t\t\t\t iAssignRouteBO.update(assignRoute);\n\n \t\t\t\t\t \t\t}\n \t\t\t\t\t \t}\n \t\t\t\t\t \telse if(assignRoute.geteFmFmClientBranchPO().getSelectedB2bType().equalsIgnoreCase(\"time\") && (TimeUnit.SECONDS.toMillis(empDistance.employeeETACalculation(lastDropLattilongi, firstPickupLattilongi)) < (TimeUnit.HOURS.toMillis(assignRoute.geteFmFmClientBranchPO().getB2bByTravelTime().getHours())+TimeUnit.MINUTES.toMillis(assignRoute.geteFmFmClientBranchPO().getB2bByTravelTime().getMinutes())+TimeUnit.SECONDS.toMillis(assignRoute.geteFmFmClientBranchPO().getB2bByTravelTime().getSeconds())))){\t\t \t\t\n \t\t\t\t\t \t\t//Current Drop B2B route Assign route Date\n \t\t\t\t\t \t\tString currentDropRouteAssignDate=dateFormat.format(assignRoute.getTripAssignDate());\n \t\t\t\t\t \t\tDate currentDropRouteDate=dateFormat.parse(currentDropRouteAssignDate);\n \t\t\t\t\t \t\tlong totalCurrentDropAssignDateAndShiftTime=getDisableTime(assignRoute.getShiftTime().getHours(),assignRoute.getShiftTime().getMinutes(), currentDropRouteDate);\t \t\t\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\t//Drop Route Complete Time\n \t\t\t\t\t \t\tlong totalRouteTime=totalCurrentDropAssignDateAndShiftTime+TimeUnit.SECONDS.toMillis(assignRoute.getPlannedTime());\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\t//Total time for Drop back2back trip\n \t\t\t\t\t \t\tlong totalB2bTimeForCuurentDrop=totalRouteTime+(TimeUnit.HOURS.toMillis(assignRoute.geteFmFmClientBranchPO().getDriverWaitingTimeAtLastLocation().getHours())+TimeUnit.MINUTES.toMillis(assignRoute.geteFmFmClientBranchPO().getDriverWaitingTimeAtLastLocation().getMinutes())+TimeUnit.SECONDS.toMillis(assignRoute.geteFmFmClientBranchPO().getDriverWaitingTimeAtLastLocation().getSeconds()));\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\t//Pickup B2B route Assign route Date\n \t\t\t\t\t \t\tString pickupRouteCurrentAssignDate=dateFormat.format(assignPickupRoute.getTripAssignDate());\n \t\t\t\t\t \t\tDate pickupRouteCurrentAssign=dateFormat.parse(pickupRouteCurrentAssignDate);\n \t\t\t\t\t \t\t\t\n \t\t\t\t\t \t\t//Pickup backtoback Route PickUpTime \n \t\t\t\t\t \t\tlong totalAssignDateAndPickUpTime=getDisableTime(employeeTripData.get(0).geteFmFmEmployeeTravelRequest().getPickUpTime().getHours(),employeeTripData.get(0).geteFmFmEmployeeTravelRequest().getPickUpTime().getMinutes(), pickupRouteCurrentAssign);\t \t\t\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\tlog.info(\"totalRouteTime\"+new Date(totalRouteTime));\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\tlog.info(\"totalAssignDateAndPickUpTime\"+new Date(totalAssignDateAndPickUpTime));\n \t\t\t\t\t \t\tlog.info(\"totalB2bTimeForCuurentDrop\"+new Date(totalB2bTimeForCuurentDrop));\n\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\tif((totalRouteTime < totalAssignDateAndPickUpTime) && totalB2bTimeForCuurentDrop > totalAssignDateAndPickUpTime){\t\t \t\t\t\n \t\t\t\t\t \t\t\tassignRoute.setIsBackTwoBack(\"Y\");\n \t\t\t\t\t \t\t\tassignRoute.setBackTwoBackRouteId(assignPickupRoute.getAssignRouteId());\n \t\t\t\t\t \t\t\tiAssignRouteBO.update(assignRoute);\t\t\t\t\t\t\t\n \t\t\t\t\t \t\t\tbreak;\n \t\t\t\t\t \t\t}\t\n \t\t\t\t\t \t\telse{\n \t\t\t\t\t iAssignRouteBO.update(assignRoute);\n\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 iAssignRouteBO.update(assignRoute);\n \t\t\t\t\t \t}\n \t\t\t\t \t}\n \t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\n\t\t\t iAssignRouteBO.update(assignRoute);\n \t\t\t\t\t\t}\n \t\t\t \t\n \t\t\t \telse{\n \t\t\t iAssignRouteBO.update(assignRoute);\n \t\t\t \t}\n \t\t\t \t}\n \t\t\t\t\t\t}catch(Exception e){\n \t\t\t\t\t\t\tlog.info(\"Error\"+e);\n \t\t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse{\n \t iAssignRouteBO.update(assignRoute);\n \t\t\t\t}\n \t }catch(Exception e){\n \t\t log.info(\"error - :\" + e);\n assignRoute.setPlannedReadFlg(\"N\");\t\n assignRoute.setRoutingCompletionStatus(\"completed\");\n assignRoute.setScheduleReadFlg(\"Y\"); \n\t iAssignRouteBO.update(assignRoute);\n } \n \n \t} \n \n }\n\t\t log.info(\"serviceEnd -UserId :\" + travelRequestPO.getUserId());\n\t\treturn Response.ok(\"Success\", MediaType.APPLICATION_JSON).build();\n\t\t\n\t}", "public java.lang.String getBrxm() {\r\n return brxm;\r\n }", "org.landxml.schema.landXML11.RoadwayDocument.Roadway getRoadway();", "private RoutingEdge extractRoutingEdgeFromRS(ResultSet resultSet) {\n\n\t\tRoutingEdge routingEdge = new RoutingEdge();\n\n\t\ttry {\n\n\t\t\troutingEdge.setId(resultSet.getInt(\"id\"));\n\t\t\t\n\t\t\troutingEdge.setFloorID(resultSet.getInt(\"FloorId\"));\n\t\t\troutingEdge.setSource(resultSet.getInt(\"Source\"));\n\t\t\troutingEdge.setTarget(resultSet.getInt(\"Target\"));\n\t\t\troutingEdge.setWeight(resultSet.getInt(\"Weight\"));\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn routingEdge;\n\t}", "public String getBzdw() {\n return bzdw;\n }", "java.lang.String getArrivalAirport();", "public com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg getReturnFlightLeg() {\n if (returnFlightLegBuilder_ == null) {\n return returnFlightLeg_ == null ? com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLeg.getDefaultInstance() : returnFlightLeg_;\n } else {\n return returnFlightLegBuilder_.getMessage();\n }\n }", "public RoutingProcess get_Routing_process(char area) {\n if (rprocesses == null) {\n return null;\n }\n return rprocesses.get(area);\n }", "public final C44858a dWB() {\n AppMethodBeat.m2504i(55883);\n C8295e a = C44855v.m82049a(this);\n AppMethodBeat.m2505o(55883);\n return a;\n }", "public final void bHT() {\n AppMethodBeat.m2504i(21893);\n C7060h.pYm.mo8381e(12931, Long.valueOf(this.nyK), Long.valueOf(this.nyL), Long.valueOf(this.nzg), Long.valueOf(this.nzh), Long.valueOf(this.nzi), Long.valueOf(this.nzj));\n AppMethodBeat.m2505o(21893);\n }", "public double getBreadth() {\n\t\treturn _tempNoTiceShipMessage.getBreadth();\n\t}", "public String getAdr2() {\n return adr2;\n }", "public Integer getBp_dp() {\r\n return bp_dp;\r\n }", "public java.math.BigInteger getFrequencyOfRoute() {\r\n return frequencyOfRoute;\r\n }", "public List<BaggageRoute> getBaggageRoutes(BaggageProcessor processor);", "java.lang.String getRoutingKey();", "public int getC_BP_Relation_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BP_Relation_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "WayBill getWayBillById(Long id_wayBill) throws WayBillNotFoundException;", "public Way getWay(String key) {\n\treturn ways.get(key);\n }", "public String getDepartureFlightPriceAtBottom()\n\t{\n\t\tString depPriceAtBottom=departurePriceAtBottom.getText();\n\t\treturn depPriceAtBottom;\n\t}", "public org.tempuri.HISWebServiceStub.GetGhlbResponse getGhlb(\r\n org.tempuri.HISWebServiceStub.GetGhlb getGhlb4)\r\n throws java.rmi.RemoteException {\r\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n try {\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());\r\n _operationClient.getOptions().setAction(\"http://tempuri.org/GetGhlb\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n addPropertyToOperationClient(_operationClient,\r\n org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\r\n \"&\");\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n\r\n env = toEnvelope(getFactory(_operationClient.getOptions()\r\n .getSoapVersionURI()),\r\n getGhlb4,\r\n optimizeContent(\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\r\n \"getGhlb\")),\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\r\n \"GetGhlb\"));\r\n\r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n\r\n java.lang.Object object = fromOM(_returnEnv.getBody()\r\n .getFirstElement(),\r\n org.tempuri.HISWebServiceStub.GetGhlbResponse.class);\r\n\r\n return (org.tempuri.HISWebServiceStub.GetGhlbResponse) object;\r\n } catch (org.apache.axis2.AxisFault f) {\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n\r\n if (faultElt != null) {\r\n if (faultExceptionNameMap.containsKey(\r\n new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(), \"GetGhlb\"))) {\r\n //make the fault by reflection\r\n try {\r\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(), \"GetGhlb\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(), \"GetGhlb\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,\r\n messageClass);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[] { messageClass });\r\n m.invoke(ex, new java.lang.Object[] { messageObject });\r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n } catch (java.lang.ClassCastException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n } else {\r\n throw f;\r\n }\r\n } else {\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender()\r\n .cleanup(_messageContext);\r\n }\r\n }\r\n }", "public com.shopee.app.ui.refund.b b() {\n return this.f24962c;\n }", "public Integer getRoutingId() {\n return routingId;\n }", "public String getRoute() {\n return route;\n }", "@JsonIgnore public String getArrivalGate() {\n return (String) getValue(\"arrivalGate\");\n }", "public String getB() {\n return b;\n }", "public Integer getRentWay() {\n return rentWay;\n }", "public String geteSRBRating() {\n return eSRBRating;\n }", "public String getRoadpicpath() {\n\t\treturn roadpicpath;\n\t}", "@ReflectiveMethod(name = \"bp\", types = {})\n public String bp(){\n return (String) NMSWrapper.getInstance().exec(nmsObject);\n }", "public Double getBounceRate() {\r\n return bounceRate;\r\n }", "public int getRouteId() {\n return routeId;\n }", "public void setRPH(String RPH) {\n this.RPH = RPH;\n }", "public static String m580h() {\r\n try {\r\n BluetoothAdapter defaultAdapter = BluetoothAdapter.getDefaultAdapter();\r\n return (defaultAdapter == null || defaultAdapter.isEnabled()) ? defaultAdapter.getAddress() : bi_常量类.f6358b_空串;\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }", "public int getChnlWalkway(){\n return this.mFarm.getChnlWalkway();\n }", "public void setRoutingNo (String RoutingNo);", "@Override\n public BPath getBPath() {\n if (getThread() == null)\n {\n if (DEBUG) Timber.e(\"Owner Thread is null\");\n return null;\n }\n return getThread().getBPath().addPathComponent(BFirebaseDefines.Path.BMessagesPath, entityID);\n }", "public NM getPsl45_VATRate() { \r\n\t\tNM retVal = this.getTypedField(45, 0);\r\n\t\treturn retVal;\r\n }", "public String getLBR_PartialPayment();", "@Override\n\tpublic String getWaybillNo(String originalWaybillNo) {\n\t\treturn null;\n\t}", "public Address getNextHop()\n {\n return (Address)route.get(getHopCount()+1);\n }", "public static com.services.model.BusRoute create(long brId) {\n\t\treturn getPersistence().create(brId);\n\t}", "public void setBp_hr(Integer bp_hr) {\r\n this.bp_hr = bp_hr;\r\n }", "public String getArrivalAirport();", "@Override\n\tpublic int[] getVehicleLoad() {\n\t\t\n\t\tint temp[] ={constantPO.getVanLoad(),constantPO.getRailwayLoad(),constantPO.getAirplaneLoad()};\n\t\t\n\t\treturn temp;\n\t}", "public int getB() {\n return b_;\n }", "public int getB() {\n return b_;\n }", "public int getB() {\n return b_;\n }", "java.lang.String getArrivalAirportCode();", "public String getBoundries() {\n return (String) getAttributeInternal(BOUNDRIES);\n }", "public String getFwbh() {\n return fwbh;\n }", "public List getBhls(final String rybh) {\n\t\tString procName = \"{CALL proc_bh(?,?,?)}\";\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList list = this.execute(procName, new CallableStatementCallback() {\n\t\t\t@Override\n\t\t\tpublic Object doInCallableStatement(CallableStatement cs) throws SQLException, DataAccessException {\n\t\t\t\tcs.setString(1, rybh);\n\t\t\t\tcs.registerOutParameter(2, OracleTypes.VARCHAR);\n\t\t cs.registerOutParameter(3, OracleTypes.CURSOR);\n\t\t\t\tcs.execute();\n\t\t\t\tResultSet rs = (ResultSet) cs.getObject(3);\n\t\t\t\tList list = CallableStatementCallbackImp.resultSetToList(rs);\n\t\t\t\treturn list;\n\t\t\t}\n\t\t});\n\t\treturn list;\n\t}", "public int getyHarbourOff(int leftCoordinate, int rightCoordinate, int off) {\n if (defaultHarbourMap.get(getHashCodeofPair(leftCoordinate, rightCoordinate)) != null) {\n switch (defaultHarbourMap.get(getHashCodeofPair(leftCoordinate, rightCoordinate))) {\n case GENERIC:\n if (rightCoordinate == -11) {\n return 0;\n } else if (rightCoordinate == -10) {\n return -off;\n } else {\n if (leftCoordinate == -5 || leftCoordinate == 1) {\n return off;\n } else {\n return 0;\n }\n }\n case NONE:\n return 0;\n case SPECIAL_BRICK:\n if (leftCoordinate == -3) {\n return 0;\n } else {\n return -off;\n }\n case SPECIAL_GRAIN:\n if (leftCoordinate == 3) {\n return 0;\n } else {\n return -off;\n }\n case SPECIAL_ORE:\n if (rightCoordinate == -10) {\n return off/2;\n } else {\n return -off/2;\n }\n case SPECIAL_WOOD:\n if (leftCoordinate == -5) {\n return -off;\n } else {\n return 0;\n }\n case SPECIAL_WOOL:\n if (leftCoordinate == -2) {\n return 0;\n } else {\n return off;\n }\n default:\n return 0;\n\n }\n }\n\n return 0;\n }" ]
[ "0.5625825", "0.551156", "0.549202", "0.5277645", "0.51742816", "0.50287247", "0.5025604", "0.5024775", "0.50182277", "0.4930126", "0.49187678", "0.49015954", "0.48470855", "0.4811792", "0.48067188", "0.47769755", "0.4766887", "0.4764898", "0.4764898", "0.47202012", "0.47126263", "0.4709457", "0.47093064", "0.47070634", "0.47023836", "0.4698985", "0.46820897", "0.4672498", "0.4655109", "0.4653718", "0.46265626", "0.46253276", "0.46165657", "0.46113232", "0.460769", "0.46029228", "0.45891806", "0.4589094", "0.4587943", "0.45683372", "0.45647827", "0.45626837", "0.45611346", "0.45528257", "0.4551612", "0.4551612", "0.45492706", "0.4540608", "0.45329013", "0.45248353", "0.4524091", "0.45226422", "0.4495167", "0.4489449", "0.4488326", "0.44864014", "0.448517", "0.44830233", "0.44818357", "0.44808888", "0.44790107", "0.44782835", "0.44781256", "0.44706658", "0.44632283", "0.44586402", "0.4455665", "0.44484338", "0.44467282", "0.4446656", "0.44408855", "0.44345868", "0.44233322", "0.44158942", "0.44122475", "0.4409359", "0.44017518", "0.4397802", "0.4396879", "0.43725178", "0.4371243", "0.43685734", "0.4363648", "0.43473953", "0.43445587", "0.4342898", "0.43422192", "0.43401968", "0.43378946", "0.43295366", "0.43224207", "0.4322401", "0.43218052", "0.43218052", "0.43218052", "0.4316526", "0.43158364", "0.43134952", "0.43132243", "0.4306808" ]
0.5098029
5
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_ROUTE.BH
public void setBh(Integer bh) { this.bh = bh; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRoutingNo (String RoutingNo);", "public void setBLH(java.lang.String param) {\r\n localBLHTracker = param != null;\r\n\r\n this.localBLH = param;\r\n }", "public void setBp_hr(Integer bp_hr) {\r\n this.bp_hr = bp_hr;\r\n }", "void setRoute(String routeID);", "public void setRoadwayRef(java.lang.String roadwayRef)\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(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.setStringValue(roadwayRef);\r\n }\r\n }", "public void setRPH(String RPH) {\n this.RPH = RPH;\n }", "void setRoadway(org.landxml.schema.landXML11.RoadwayDocument.Roadway roadway);", "void changeBTAddress() {\n\t\t\n\t\t// if ( this.beacon.getAppType() == AppType.APPLE_GOOGLE_CONTACT_TRACING ) {\n\t\tif ( this.useRandomAddr()) {\n\t\t\t// try to change the BT address\n\t\t\t\n\t\t\t// the address is LSB..MSB and bits 47:46 are 0 i.e. bits 0 & 1 of right-most byte are 0.\n\t\t\tbyte btRandomAddr[] = getBTRandomNonResolvableAddress();\n\t\t\t\n\t\t\t// generate the hcitool command string\n\t\t\tString hciCmd = getSetRandomBTAddrCmd( btRandomAddr);\n\t\t\t\n\t\t\tlogger.info( \"SetRandomBTAddrCmd: \" + hciCmd);\n\t\t\t\n\t\t\t// do the right thing...\n\t\t\tfinal String envVars[] = { \n\t\t\t\t\"SET_RAND_ADDR_CMD=\" + hciCmd\n\t\t\t};\n\t\t\t\t\t\t\n\t\t\tfinal String cmd = \"./scripts/set_random_addr\";\n\t\t\t\n\t\t\tboolean status = runScript( cmd, envVars, this, null);\n\t\t}\n\t\t\t\n\t}", "public void setLBR_LatePaymentPenaltyAP (BigDecimal LBR_LatePaymentPenaltyAP);", "public void xsetRoadwayRef(org.landxml.schema.landXML11.RoadwayNameRef roadwayRef)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.RoadwayNameRef target = null;\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().find_attribute_user(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.set(roadwayRef);\r\n }\r\n }", "public void B(BleViewModel bleViewModel) {\n this.p = bleViewModel;\n synchronized (this) {\n long l10 = this.H;\n long l11 = 64;\n this.H = l10 |= l11;\n }\n this.notifyPropertyChanged(12);\n super.requestRebind();\n }", "public void setRoadwayPI(double roadwayPI)\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.setDoubleValue(roadwayPI);\r\n }\r\n }", "protected void setRoutes(WriteFileResponse response) {\n routes[ response.getSequence() ] = response.getRoutingPath();\n if ( ableToWrite && totalReceived.incrementAndGet() == routes.length )\n {\n unlock();\n }\n }", "public void setGateway(AGateway gateway)\r\n/* 21: */ {\r\n/* 22:41 */ this.gateway = gateway;\r\n/* 23: */ }", "public void xsetRoadwayPI(org.landxml.schema.landXML11.Station roadwayPI)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.Station)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.set(roadwayPI);\r\n }\r\n }", "public void setSideB(double sideB)\r\n\t{\r\n\t\tthis.sideB=sideB;\r\n\t\t\r\n\t}", "public static com.services.model.BusRoute fetchByPrimaryKey(long brId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn getPersistence().fetchByPrimaryKey(brId);\n\t}", "public void setRoute(com.vmware.converter.HostIpRouteEntry route) {\r\n this.route = route;\r\n }", "private void setS2BRelay(PToP.S2BRelay value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 24;\n }", "public void setDownRoadId(String downRoadId) {\n this.downRoadId = downRoadId == null ? null : downRoadId.trim();\n }", "public void setPathway(PathwayHolder p)\r\n\t{\n\t}", "@Override\n\tpublic void turnMotorB(boolean direction) throws ConnectionLostException {\n\t\t\n\t}", "public void setReverseAgency(boolean value) {\r\n this.reverseAgency = value;\r\n }", "public void setLBR_LatePaymentPenaltyCode (String LBR_LatePaymentPenaltyCode);", "public void changeDeadband(double deadband) {\n\t\tDEAD_BAND = deadband;\n\t}", "public void setBlh(java.lang.String param) {\r\n localBlhTracker = param != null;\r\n\r\n this.localBlh = param;\r\n }", "public void setBh(Float bh) {\r\n this.bh = bh;\r\n }", "private void setupTurnRoadCharacteristic() {\n turnRoadCharacteristic =\n new BluetoothGattCharacteristic(CHARACT_TURNROAD_UUID,\n BluetoothGattCharacteristic.PROPERTY_READ | BluetoothGattCharacteristic.PROPERTY_WRITE | BluetoothGattCharacteristic.PROPERTY_NOTIFY,\n BluetoothGattCharacteristic.PERMISSION_READ | BluetoothGattCharacteristic.PERMISSION_WRITE);\n\n turnRoadCharacteristic.addDescriptor(\n Peripheral.getClientCharacteristicConfigurationDescriptor());\n\n turnRoadCharacteristic.addDescriptor(\n Peripheral.getCharacteristicUserDescriptionDescriptor(CHARACT_TURNROAD_DESC));\n\n turnRoadCharacteristic.setValue(turnRoadCharacteristic_value);\n }", "@Override\n void setRoute() throws ItemTooHeavyException {\n deliveryItem = tube.pop();\n if (deliveryItem.weight > itemWeightLimit) throw new ItemTooHeavyException();\n // Set the destination floor\n destination_floor = deliveryItem.getDestFloor();\n }", "@POST\n\t@Path(\"/routingComplete\")\n\tpublic Response getB2bAfterRoutingComplete(EFmFmEmployeeTravelRequestPO travelRequestPO) throws ParseException{\t\t\n\t\tIUserMasterBO userMasterBO = (IUserMasterBO) ContextLoader.getContext().getBean(\"IUserMasterBO\");\n\t\tMap<String, Object> responce = new HashMap<String, Object>();\n\t\t\n\t\t \t\t\n\t\t log.info(\"Logged In User IP Adress\"+token.getClientIpAddr(httpRequest));\n\t\t try{\n\t\t \tif(!(userMasterBO.checkTokenValidOrNot(httpRequest.getHeader(\"authenticationToken\"),travelRequestPO.getUserId()))){\n\n\t\t \t\tresponce.put(\"status\", \"invalidRequest\");\n\t\t \t\treturn Response.ok(responce, MediaType.APPLICATION_JSON).build();\n\t\t \t}}catch(Exception e){\n\t\t \t\tlog.info(\"authentication error\"+e);\n\t\t\t\tresponce.put(\"status\", \"invalidRequest\");\n\t\t\t\treturn Response.ok(responce, MediaType.APPLICATION_JSON).build();\n\n\t\t \t}\n\t\t \n\t\t List<EFmFmUserMasterPO> userDetailToken = userMasterBO.getUserDetailFromUserId(travelRequestPO.getUserId());\n\t\t if (!(userDetailToken.isEmpty())) {\n\t\t String jwtToken = \"\";\n\t\t try {\n\t\t JwtTokenGenerator token = new JwtTokenGenerator();\n\t\t jwtToken = token.generateToken();\n\t\t userDetailToken.get(0).setAuthorizationToken(jwtToken);\n\t\t userDetailToken.get(0).setTokenGenerationTime(new Date());\n\t\t userMasterBO.update(userDetailToken.get(0));\n\t\t } catch (Exception e) {\n\t\t log.info(\"error\" + e);\n\t\t }\n\t\t }\n\n ICabRequestBO iCabRequestBO = (ICabRequestBO) ContextLoader.getContext().getBean(\"ICabRequestBO\");\n IAssignRouteBO iAssignRouteBO = (IAssignRouteBO) ContextLoader.getContext().getBean(\"IAssignRouteBO\");\n log.info(\"serviceStart -UserId :\" + travelRequestPO.getUserId());\n DateFormat shiftTimeFormat = new SimpleDateFormat(\"HH:mm:ss\");\n SimpleDateFormat dateformate = new SimpleDateFormat(\"dd-MM-yyyy\");\n DateFormat shiftTimeFormate = new SimpleDateFormat(\"HH:mm\");\n String shiftTime = travelRequestPO.getTime();\n Date shift = shiftTimeFormate.parse(shiftTime);\n java.sql.Time dateShiftTime = new java.sql.Time(shift.getTime());\n Date excutionDate = dateformate.parse(travelRequestPO.getExecutionDate());\n\t\tCalculateDistance calculateDistance = new CalculateDistance();\n List<EFmFmAssignRoutePO> activeRoutes = iAssignRouteBO.getAllRoutesForPrintForParticularShift(excutionDate, excutionDate,\n travelRequestPO.getTripType(), shiftTimeFormat.format(dateShiftTime), travelRequestPO.getCombinedFacility());\n log.info(\"Shift Size\"+activeRoutes.size());\n if (!(activeRoutes.isEmpty())) { \t\n \tfor(EFmFmAssignRoutePO assignRoute:activeRoutes){\n \t\ttry{\n\t\t\t\tList<EFmFmEmployeeTripDetailPO> employeeTripDetailPO = null;\n \t\t\t\tStringBuffer empWayPoints = new StringBuffer();\n \t\t\t\tif (assignRoute.getTripType().equalsIgnoreCase(\"PICKUP\")) {\n\t\t\t\t\temployeeTripDetailPO = iCabRequestBO.getParticularTripAllEmployees(assignRoute.getAssignRouteId());\n\t\t\t\t} else {\n\t\t\t\t\temployeeTripDetailPO = iCabRequestBO.getDropTripAllSortedEmployees(assignRoute.getAssignRouteId());\n\t\t\t\t}\n\n \t\t\t\tif (!(employeeTripDetailPO.isEmpty())) {\n\t\t\t\t\tfor (EFmFmEmployeeTripDetailPO employeeTripDetail : employeeTripDetailPO) {\n\t\t\t \tempWayPoints.append(employeeTripDetail.geteFmFmEmployeeTravelRequest().getEfmFmUserMaster().getLatitudeLongitude()+\"|\"); \n\t\t\t\t\t}\n \t\t\t\t} \n \t\t\t\tString plannedETAAndDistance =\"\";\n \t\t\t\tif (assignRoute.getTripType().equalsIgnoreCase(\"PICKUP\")) {\n \t\t\t\t\tplannedETAAndDistance= calculateDistance.getPlannedDistanceaAndETAForRoute(\n \t \t\t\t\tassignRoute.geteFmFmClientBranchPO().getLatitudeLongitude(),\n \t \t\t\t\tassignRoute.geteFmFmClientBranchPO().getLatitudeLongitude(), empWayPoints.toString().replaceAll(\"\\\\s+\",\"\"));\t\t \t\t\n \t\t\t\t}\n\n \t\t\t\telse{\n \t\t\t\t\tplannedETAAndDistance= calculateDistance.getPlannedDistanceaAndETAForRoute(\n \t \t\t\t\tassignRoute.geteFmFmClientBranchPO().getLatitudeLongitude(),\n \t \t\t\t\temployeeTripDetailPO.get(employeeTripDetailPO.size()-1).geteFmFmEmployeeTravelRequest().getEfmFmUserMaster().getLatitudeLongitude(), empWayPoints.toString().replaceAll(\"\\\\s+\",\"\"));\t\t \t\t\t\n \t\t\t\t}\n \t\t\t\t\n \t\tlog.info(\"plannedETAAndDistance\"+plannedETAAndDistance+\" \"+empWayPoints.toString().replaceAll(\"\\\\s+\",\"\")+\"assignRoute Id\"+assignRoute.getAssignRouteId());\n try{\n \t\tassignRoute.setPlannedTravelledDistance(Math.round(Double.parseDouble(plannedETAAndDistance.split(\"-\")[0])+(assignRoute.geteFmFmClientBranchPO().getAddingGeoFenceDistanceIntrip())));\n assignRoute.setPlannedDistance(Math.round(Double.parseDouble(plannedETAAndDistance.split(\"-\")[0])+(assignRoute.geteFmFmClientBranchPO().getAddingGeoFenceDistanceIntrip())));\n assignRoute.setPlannedTime(Math.round(Long.parseLong(plannedETAAndDistance.split(\"-\")[1])));\t\t\n }catch(Exception e){\n \tlog.info(\"plannedETAAndDistance\"+plannedETAAndDistance+\" \"+empWayPoints.toString().replaceAll(\"\\\\s+\",\"\")+\"assignRoute Id\"+assignRoute.getAssignRouteId());\n log.info(\"Error\"+e);\n \n }\n assignRoute.setPlannedReadFlg(\"N\");\t\n assignRoute.setRoutingCompletionStatus(\"completed\");\n assignRoute.setScheduleReadFlg(\"Y\"); \n \t\t\t\tif (assignRoute.getTripType().equalsIgnoreCase(\"DROP\")) {\n \t\t\t\t\ttry{\n \t\t\t\t\t\tif(assignRoute.getIsBackTwoBack().equalsIgnoreCase(\"N\")){\n \t\t\t\t\t\t//Back to back check any pickup is there with this route end drop location. \n \t\t\t\t List<EFmFmAssignRoutePO> b2bPickupDetails=iAssignRouteBO.getBackToBackTripDetailFromTripTypeANdShiftTime(\"PICKUP\", assignRoute.getShiftTime(),assignRoute.getCombinedFacility());\t\t\t\t\t\n \t\t\t\t log.info(\"b2bDetails\"+b2bPickupDetails.size());\n \t\t\t \tif(!(b2bPickupDetails.isEmpty())){\n \t\t\t\t\t\tfor (EFmFmAssignRoutePO assignPickupRoute : b2bPickupDetails) {\n \t \t\t\t\t List<EFmFmAssignRoutePO> b2bPickupDetailsAlreadyDone=iAssignRouteBO.getBackToBackTripDetailFromb2bId(assignPickupRoute.getAssignRouteId(), \"DROP\",assignRoute.getCombinedFacility());\t\t\t\t\n \t\t\t\t\t\t\tif(b2bPickupDetailsAlreadyDone.isEmpty()){\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t//get first pickup employee\n \t\t\t\t \tList<EFmFmEmployeeTripDetailPO> employeeTripData = iCabRequestBO.getParticularTripAllEmployees(assignPickupRoute.getAssignRouteId()); \t\t\t\t \t\n \t\t\t\t \tif(!(employeeTripData.isEmpty())){\n \t\t\t\t\t \tString lastDropLattilongi=employeeTripDetailPO.get(employeeTripDetailPO.size()-1).geteFmFmEmployeeTravelRequest().getEfmFmUserMaster().getLatitudeLongitude();\t\t\t\t\t \t \t\n \t\t\t\t\t \tString firstPickupLattilongi=employeeTripData.get(0).geteFmFmEmployeeTravelRequest().getEfmFmUserMaster().getLatitudeLongitude(); \t\n \t\t\t\t\t \tlog.info(\"lastDropLattilongi\"+lastDropLattilongi);\n \t\t\t\t\t \tlog.info(\"firstPickupLattilongi\"+firstPickupLattilongi);\n \t\t\t\t\t \tCalculateDistance empDistance=new CalculateDistance();\n \t\t\t\t\t \tif(assignRoute.geteFmFmClientBranchPO().getSelectedB2bType().equalsIgnoreCase(\"distance\") && (empDistance.employeeDistanceCalculation(lastDropLattilongi, firstPickupLattilongi) < (assignRoute.geteFmFmClientBranchPO().getB2bByTravelDistanceInKM()))){\t\t \t\t\n \t\t\t\t\t \t\t//Current Drop B2B route Assign route Date\n \t\t\t\t\t \t\tString currentDropRouteAssignDate=dateFormat.format(assignRoute.getTripAssignDate());\n \t\t\t\t\t \t\tDate currentDropRouteDate=dateFormat.parse(currentDropRouteAssignDate);\n \t\t\t\t\t \t\tlong totalCurrentDropAssignDateAndShiftTime=getDisableTime(assignRoute.getShiftTime().getHours(), assignRoute.getShiftTime().getMinutes(), currentDropRouteDate);\t \t\t\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\t//Drop Route Complete Time\n \t\t\t\t\t \t\tlong totalRouteTime=totalCurrentDropAssignDateAndShiftTime+TimeUnit.SECONDS.toMillis(assignRoute.getPlannedTime());\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\t//Total time for Drop back2back trip\n \t\t\t\t\t \t\tlong totalB2bTimeForCuurentDrop=totalRouteTime+(TimeUnit.HOURS.toMillis(assignRoute.geteFmFmClientBranchPO().getDriverWaitingTimeAtLastLocation().getHours())+TimeUnit.MINUTES.toMillis(assignRoute.geteFmFmClientBranchPO().getDriverWaitingTimeAtLastLocation().getMinutes())+TimeUnit.SECONDS.toMillis(assignRoute.geteFmFmClientBranchPO().getDriverWaitingTimeAtLastLocation().getSeconds()));\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\t//Pickup B2B route Assign route Date\n \t\t\t\t\t \t\tString pickupRouteCurrentAssignDate=dateFormat.format(assignPickupRoute.getTripAssignDate());\n \t\t\t\t\t \t\tDate pickupRouteCurrentAssign=dateFormat.parse(pickupRouteCurrentAssignDate);\n \t\t\t\t\t \t\t\t\n \t\t\t\t\t \t\t//Pickup backtoback Route PickUpTime \n \t\t\t\t\t \t\tlong totalAssignDateAndPickUpTime=getDisableTime(employeeTripData.get(0).geteFmFmEmployeeTravelRequest().getPickUpTime().getHours(),employeeTripData.get(0).geteFmFmEmployeeTravelRequest().getPickUpTime().getMinutes(), pickupRouteCurrentAssign);\t \t\t\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\tif((totalRouteTime < totalAssignDateAndPickUpTime) && totalB2bTimeForCuurentDrop > totalAssignDateAndPickUpTime){\t\t \t\t\t\n \t\t\t\t\t \t\t\tassignRoute.setIsBackTwoBack(\"Y\");\n \t\t\t\t\t \t\t\tassignRoute.setBackTwoBackRouteId(assignPickupRoute.getAssignRouteId());\n \t\t\t\t\t \t\t\tiAssignRouteBO.update(assignRoute);\t\t\t\t\t\t\t\n \t\t\t\t\t \t\t\tbreak;\n \t\t\t\t\t \t\t}\n \t\t\t\t\t \t\telse{\n \t\t\t\t\t iAssignRouteBO.update(assignRoute);\n\n \t\t\t\t\t \t\t}\n \t\t\t\t\t \t}\n \t\t\t\t\t \telse if(assignRoute.geteFmFmClientBranchPO().getSelectedB2bType().equalsIgnoreCase(\"time\") && (TimeUnit.SECONDS.toMillis(empDistance.employeeETACalculation(lastDropLattilongi, firstPickupLattilongi)) < (TimeUnit.HOURS.toMillis(assignRoute.geteFmFmClientBranchPO().getB2bByTravelTime().getHours())+TimeUnit.MINUTES.toMillis(assignRoute.geteFmFmClientBranchPO().getB2bByTravelTime().getMinutes())+TimeUnit.SECONDS.toMillis(assignRoute.geteFmFmClientBranchPO().getB2bByTravelTime().getSeconds())))){\t\t \t\t\n \t\t\t\t\t \t\t//Current Drop B2B route Assign route Date\n \t\t\t\t\t \t\tString currentDropRouteAssignDate=dateFormat.format(assignRoute.getTripAssignDate());\n \t\t\t\t\t \t\tDate currentDropRouteDate=dateFormat.parse(currentDropRouteAssignDate);\n \t\t\t\t\t \t\tlong totalCurrentDropAssignDateAndShiftTime=getDisableTime(assignRoute.getShiftTime().getHours(),assignRoute.getShiftTime().getMinutes(), currentDropRouteDate);\t \t\t\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\t//Drop Route Complete Time\n \t\t\t\t\t \t\tlong totalRouteTime=totalCurrentDropAssignDateAndShiftTime+TimeUnit.SECONDS.toMillis(assignRoute.getPlannedTime());\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\t//Total time for Drop back2back trip\n \t\t\t\t\t \t\tlong totalB2bTimeForCuurentDrop=totalRouteTime+(TimeUnit.HOURS.toMillis(assignRoute.geteFmFmClientBranchPO().getDriverWaitingTimeAtLastLocation().getHours())+TimeUnit.MINUTES.toMillis(assignRoute.geteFmFmClientBranchPO().getDriverWaitingTimeAtLastLocation().getMinutes())+TimeUnit.SECONDS.toMillis(assignRoute.geteFmFmClientBranchPO().getDriverWaitingTimeAtLastLocation().getSeconds()));\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\t//Pickup B2B route Assign route Date\n \t\t\t\t\t \t\tString pickupRouteCurrentAssignDate=dateFormat.format(assignPickupRoute.getTripAssignDate());\n \t\t\t\t\t \t\tDate pickupRouteCurrentAssign=dateFormat.parse(pickupRouteCurrentAssignDate);\n \t\t\t\t\t \t\t\t\n \t\t\t\t\t \t\t//Pickup backtoback Route PickUpTime \n \t\t\t\t\t \t\tlong totalAssignDateAndPickUpTime=getDisableTime(employeeTripData.get(0).geteFmFmEmployeeTravelRequest().getPickUpTime().getHours(),employeeTripData.get(0).geteFmFmEmployeeTravelRequest().getPickUpTime().getMinutes(), pickupRouteCurrentAssign);\t \t\t\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\tlog.info(\"totalRouteTime\"+new Date(totalRouteTime));\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\tlog.info(\"totalAssignDateAndPickUpTime\"+new Date(totalAssignDateAndPickUpTime));\n \t\t\t\t\t \t\tlog.info(\"totalB2bTimeForCuurentDrop\"+new Date(totalB2bTimeForCuurentDrop));\n\n \t\t\t\t\t \t\t\n \t\t\t\t\t \t\tif((totalRouteTime < totalAssignDateAndPickUpTime) && totalB2bTimeForCuurentDrop > totalAssignDateAndPickUpTime){\t\t \t\t\t\n \t\t\t\t\t \t\t\tassignRoute.setIsBackTwoBack(\"Y\");\n \t\t\t\t\t \t\t\tassignRoute.setBackTwoBackRouteId(assignPickupRoute.getAssignRouteId());\n \t\t\t\t\t \t\t\tiAssignRouteBO.update(assignRoute);\t\t\t\t\t\t\t\n \t\t\t\t\t \t\t\tbreak;\n \t\t\t\t\t \t\t}\t\n \t\t\t\t\t \t\telse{\n \t\t\t\t\t iAssignRouteBO.update(assignRoute);\n\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 iAssignRouteBO.update(assignRoute);\n \t\t\t\t\t \t}\n \t\t\t\t \t}\n \t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\n\t\t\t iAssignRouteBO.update(assignRoute);\n \t\t\t\t\t\t}\n \t\t\t \t\n \t\t\t \telse{\n \t\t\t iAssignRouteBO.update(assignRoute);\n \t\t\t \t}\n \t\t\t \t}\n \t\t\t\t\t\t}catch(Exception e){\n \t\t\t\t\t\t\tlog.info(\"Error\"+e);\n \t\t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse{\n \t iAssignRouteBO.update(assignRoute);\n \t\t\t\t}\n \t }catch(Exception e){\n \t\t log.info(\"error - :\" + e);\n assignRoute.setPlannedReadFlg(\"N\");\t\n assignRoute.setRoutingCompletionStatus(\"completed\");\n assignRoute.setScheduleReadFlg(\"Y\"); \n\t iAssignRouteBO.update(assignRoute);\n } \n \n \t} \n \n }\n\t\t log.info(\"serviceEnd -UserId :\" + travelRequestPO.getUserId());\n\t\treturn Response.ok(\"Success\", MediaType.APPLICATION_JSON).build();\n\t\t\n\t}", "public final void bHT() {\n AppMethodBeat.m2504i(21893);\n C7060h.pYm.mo8381e(12931, Long.valueOf(this.nyK), Long.valueOf(this.nyL), Long.valueOf(this.nzg), Long.valueOf(this.nzh), Long.valueOf(this.nzi), Long.valueOf(this.nzj));\n AppMethodBeat.m2505o(21893);\n }", "public void unsetRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(ROADWAYREF$16);\r\n }\r\n }", "public void setDELB(java.lang.String param) {\r\n localDELBTracker = param != null;\r\n\r\n this.localDELB = param;\r\n }", "public void setLBR_TaxDeferralRate (BigDecimal LBR_TaxDeferralRate);", "void setGoalRPM(double goalRPM);", "private void b(boolean z2) {\n try {\n if (this.L != z2) {\n int i2 = z2 ? 2 : this.T ? 1 : 3;\n if (this.F != i2) {\n this.F = i2;\n if (this.c != null) {\n Message obtain = Message.obtain();\n obtain.what = 11;\n obtain.arg1 = this.F;\n this.c.sendMessage(obtain);\n }\n }\n }\n updateRouteOverViewStatus(z2);\n } catch (Throwable th) {\n rx.c(th, \"BaseNaviView\", \"setIsRouteOverviewNow\");\n }\n }", "public void setLBR_DirectDebitNotice (String LBR_DirectDebitNotice);", "public static C6306b m24933b(C6531d dVar) {\n if (dVar == null) {\n throw new IllegalArgumentException(\"Parameters must not be null.\");\n }\n C6306b bVar = (C6306b) dVar.mo22751a(\"http.route.forced-route\");\n if (bVar == null || !f20831b.equals(bVar)) {\n return bVar;\n }\n return null;\n }", "private void setSeenServerToB(Seen.ServerToB value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 19;\n }", "public static com.services.model.BusRoute create(long brId) {\n\t\treturn getPersistence().create(brId);\n\t}", "public void setAsDown () \n\t{ \n\t\tn.setFailureState(false);\n\t\tfinal SortedSet<WLightpathRequest> affectedDemands = new TreeSet<> ();\n\t\tgetOutgoingFibers().forEach(f->affectedDemands.addAll(f.getTraversingLpRequestsInAtLeastOneLp()));\n\t\tgetIncomingFibers().forEach(f->affectedDemands.addAll(f.getTraversingLpRequestsInAtLeastOneLp()));\n\t\tfor (WLightpathRequest lpReq : affectedDemands)\n\t\t\tlpReq.internalUpdateOfRoutesCarriedTrafficFromFailureState();\n\t}", "public void setTunnelRail(Rail r, String d) {\n this.tunnelRail = r;\n this.dir = d;\n }", "public void setBhTraffic(Float bhTraffic) {\r\n this.bhTraffic = bhTraffic;\r\n }", "public void setFrequencyOfRoute(java.math.BigInteger frequencyOfRoute) {\r\n this.frequencyOfRoute = frequencyOfRoute;\r\n }", "public void setHCAR(java.lang.String HCAR) {\r\n this.HCAR = HCAR;\r\n }", "public void setRoadLength(int roadLength) {\n \t\tif (roadLength > this.roadLength)\n \t\t\tthis.roadLength = roadLength;\n \t}", "public void setLBR_LatePaymentPenaltyDays (int LBR_LatePaymentPenaltyDays);", "public void setDylb(java.lang.String param) {\r\n localDylbTracker = param != null;\r\n\r\n this.localDylb = param;\r\n }", "public void setRoutePoint(AKeyCallPoint routePoint) {\n\t\t\tthis.routePoint = routePoint;\n\t\t}", "public void armDrive(double pivValue, double fwdValue){\n if (pivValue!=0) {\n pivValue = pivValue / 6;\n left_drive.setPower(pivValue);\n right_drive.setPower(-pivValue);\n }else {\n fwdValue = fwdValue / 6;\n left_drive.setPower(fwdValue);\n right_drive.setPower(fwdValue);\n }\n\n }", "public void setAlternateRoute(short trainId, TrainRoute r) {\n\t\ttrainRoutes.put(trainId, r);\n\t}", "public void setBp_dp(Integer bp_dp) {\r\n this.bp_dp = bp_dp;\r\n }", "public void setBhHosucr(Float bhHosucr) {\r\n this.bhHosucr = bhHosucr;\r\n }", "@Generated(hash = 1549336661)\n public void setNoteBK(NoteBK noteBK) {\n synchronized (this) {\n this.noteBK = noteBK;\n NoteBK_ID = noteBK == null ? null : noteBK.get_ID();\n noteBK__resolvedKey = NoteBK_ID;\n }\n }", "private void setChangeHeadpicRsp(\n ChangeHeadpic.Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 17;\n }", "public void xsetAntennaHeight(org.apache.xmlbeans.XmlDouble antennaHeight)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDouble target = null;\r\n target = (org.apache.xmlbeans.XmlDouble)get_store().find_attribute_user(ANTENNAHEIGHT$10);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlDouble)get_store().add_attribute_user(ANTENNAHEIGHT$10);\r\n }\r\n target.set(antennaHeight);\r\n }\r\n }", "public void setRightRoadId(String rightRoadId) {\n this.rightRoadId = rightRoadId == null ? null : rightRoadId.trim();\n }", "@Override\n\tpublic void onReCalculateRouteForTrafficJam() {\n\n\t}", "public void setDirectionOfTravel(typekey.DirectionOfTravelPEL value);", "@SkipValidation\n\tpublic String saveOrUpdate()\n\t{\n\t\tdrgatewaysDAO.saveOrUpdateDRGateways(drgateways);\n\n\t\tactivateDAO.setActivate(\"1\");\n\n\t\t//reload the drgateways\n\t\tlistDRGateways = null;\n\t\tlistDRGateways = drgatewaysDAO.listDRGateways();\n\n\t\treturn SUCCESS;\n\t}", "private void setHeader(ObaResponse routeInfo, boolean addToDb) { \n mRouteInfo = routeInfo;\n \n TextView empty = (TextView)findViewById(android.R.id.empty);\n \n if (routeInfo.getCode() == ObaApi.OBA_OK) {\n ObaRoute route = routeInfo.getData().getAsRoute();\n TextView shortNameText = (TextView)findViewById(R.id.short_name);\n TextView longNameText = (TextView)findViewById(R.id.long_name);\n TextView agencyText = (TextView)findViewById(R.id.agency);\n \n String shortName = route.getShortName();\n String longName = route.getLongNameOrDescription();\n \n shortNameText.setText(shortName);\n longNameText.setText(longName);\n agencyText.setText(route.getAgencyName());\n \n if (addToDb) {\n RoutesDbAdapter.addRoute(this, route.getId(), shortName, longName, true); \n }\n }\n else {\n empty.setText(R.string.generic_comm_error);\n }\n }", "@Override\n\tpublic void setVehicleLoad(int van, int railway, int airplane) {\n\t\tconstantPO.setVanLoad(van);\n\t\tconstantPO.setRailwayLoad(railway);\n\t\tconstantPO.setAirplaneLoad(airplane);\n\t}", "protected void setAy(double ay) {\n\t\tif (isValidAy(ay))\n\t\t\tthis.ay = ay;\t\t\n\t\telse \n\t\t\tthis.ay = 0;\t\t\n\t}", "public void setNextRoad(CarAcceptor r) {\n\t\tthis.firstRoad = r;\n\t}", "private void setSeenServerToB(\n Seen.ServerToB.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 19;\n }", "public synchronized void setArrivalExit(ArrivalTerminalExitStub ate) {\n this.ate = ate;\n }", "private void setDeleteFriendServerToB(DeleteFriend.ServerToB value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 18;\n }", "public void setDynamicBrakeMode(boolean brakeFL, boolean brakeRL, boolean brakeFR, boolean brakeRR) {\n kFrontLeft.setNeutralMode(brakeFL? NeutralMode.Brake : NeutralMode.Coast);\n kRearLeft.setNeutralMode(brakeRL? NeutralMode.Brake : NeutralMode.Coast);\n kFrontRight.setNeutralMode(brakeFR? NeutralMode.Brake : NeutralMode.Coast);\n kRearRight.setNeutralMode(brakeRR? NeutralMode.Brake : NeutralMode.Coast);\n }", "public void setLBR_PenaltyCharge_ID (int LBR_PenaltyCharge_ID);", "private void setHuvleAD() {\n /*\n 정적 구현부와 동적구현부는 참고하시어 하나만 적용하시기 바랍니다.(With checking the implementation guide below, please apply Implementation either only Dynamic or Static.)\n initBannerView 아이디 \"test\" 값은 http://ssp.huvle.com/ 에서 가입 > 매체생성 > zoneid 입력후 테스트 하시고, release시점에 허블에 문의주시면 인증됩니다. 배너사이즈는 변경하지 마세요.(For the “test” value below, please go to http://ssp.huvle.com/ to sign up > create media > Test your app after typing zoneid. Next, contact Huvle before releasing your app for authentication. You must not change the banner size.)\n */\n // 정적으로 구현시(When if apply Dynamic Implementation) BannerAdView Start\n bav = findViewById(R.id.banner_view);\n initBannerView(bav, \"test\",320,50); // 300 * 250 배너 테스트시(Example for testing 300 * 250 banner) initBannerView(staticBav, \"testbig\",300,250);\n\n // 동적으로 구현시(When if apply Static Implementation) BannerAdView Start\n /*\n final BannerAdView bav = new BannerAdView(this);\n initBannerView(bav, \"test\",320,50); // 300 * 250 배너 테스트시 initBannerView(staticBav, \"testbig\",300,250);\n RelativeLayout layout = (RelativeLayout) findViewById(R.id.main_content);\n RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n layoutParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);\n layoutParams.addRule(RelativeLayout.CENTER_HORIZONTAL);\n bav.setLayoutParams(layoutParams);\n layout.addView(bav);\n */\n }", "public void setRentWay(Integer rentWay) {\n this.rentWay = rentWay;\n }", "private void setElevator(double height) {\n spark_pidController.setReference(height, ControlType.kSmartMotion);\n }", "private void setS2BRelay(\n PToP.S2BRelay.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 24;\n }", "public void setRouteType(String x)\n {\n this.routeType = x;\n }", "public java.lang.String getBLH() {\r\n return localBLH;\r\n }", "public IRoadSensor setRoadStatus(ERoadStatus s);", "public void setRoad(Boolean bool) {\r\n\t \tthis.road = bool;\r\n\t }", "public void setRightChild(BinaryNode rightChild) {\n\t\tthis.rightChild = rightChild;\n\t}", "public void updateKBeaconToEddyUrl() {\n if (!mBeacon.isConnected()) {\n return;\n }\n\n //change parameters\n KBCfgCommon commonPara = new KBCfgCommon();\n KBCfgEddyURL urlPara = new KBCfgEddyURL();\n try {\n //set adv type to iBeacon\n commonPara.setAdvType(KBAdvType.KBAdvTypeEddyURL);\n\n //url para\n urlPara.setUrl(\"https://www.google.com/\");\n } catch (KBException excpt) {\n toastShow(\"input data invalid\");\n excpt.printStackTrace();\n }\n\n ArrayList<KBCfgBase> cfgList = new ArrayList<>(2);\n cfgList.add(commonPara);\n cfgList.add(urlPara);\n mBeacon.modifyConfig(cfgList, new KBeacon.ActionCallback() {\n @Override\n public void onActionComplete(boolean bConfigSuccess, KBException error) {\n if (bConfigSuccess)\n {\n toastShow(\"config data to beacon success\");\n }\n else\n {\n toastShow(\"config failed for error:\" + error.errorCode);\n }\n }\n });\n }", "public void setB_(double b_) {\n\t\tthis.b_ = b_;\n\t}", "private void landOrTakeoff(String land_or_takeoff) {\n\t\ttry {\n\t\tthis.baggage = Integer.valueOf(land_or_takeoff);\n\t\tthis.isLanding = true;\n\t\t}catch(NumberFormatException e) {\n\t\t\tthis.isLanding = false;\n\t\t\tthis.destination = land_or_takeoff;\n\t\t}//catch\n\t}", "public void setDY(int DY){\n \tdy = DY;\n }", "@Override\r\n\tpublic void onReCalculateRouteForTrafficJam() {\n\r\n\t}", "@Override\n\tpublic void setRightChild(WhereNode rightChild) {\n\n\t}", "public void setGegenkontoBLZ(String blz) throws RemoteException;", "void xsetRoadTerrain(org.landxml.schema.landXML11.RoadTerrainType roadTerrain);", "private void setChangeHeadpicRsp(ChangeHeadpic.Rsp value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 17;\n }", "public void setLBR_PartialPayment (String LBR_PartialPayment);", "public void setAntennaHeight(double antennaHeight)\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(ANTENNAHEIGHT$10);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ANTENNAHEIGHT$10);\r\n }\r\n target.setDoubleValue(antennaHeight);\r\n }\r\n }", "public void changeToHiGear() {\n\t\tspeedShifter.set(DoubleSolenoid.Value.kReverse); // forward is hi gear,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// port 0\n\t}", "public void setUpRoadId(String upRoadId) {\n this.upRoadId = upRoadId == null ? null : upRoadId.trim();\n }", "private void clearSeenServerToB() {\n if (rspCase_ == 19) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "public void setBetrag(double betrag) throws RemoteException;", "public native void setRTOConstant (int RTOconstant);", "public void radarLostContact() {\n if (status == 1 || status == 18) {\n status = 0;\n flightCode = \"\";\n passengerList = null;\n faultDescription = \"\";\n itinerary = null;\n gateNumber = -1;\n }//END IF\n }", "public void setBrightness(float bri) {\r\n\t\thsb[2] = bri;\r\n\t}", "public void setLrry(String lrry) {\n this.lrry = lrry == null ? null : lrry.trim();\n }", "public void setRoute(Route route) {\n this.route = route;\n }", "public boolean setBankACH(int C_BankAccount_ID, boolean isReceipt, String tenderType,\n String routingNo, String accountNo) {\n setTenderType(tenderType);\n setIsReceipt(isReceipt);\n //\n if (C_BankAccount_ID > 0\n && (routingNo == null || routingNo.length() == 0 || accountNo == null || accountNo.length() == 0)) {\n setBankAccountDetails(C_BankAccount_ID);\n } else {\n setC_BankAccount_ID(C_BankAccount_ID);\n setRoutingNo(routingNo);\n setAccountNo(accountNo);\n }\n setCheckNo(\"\");\n //\n int check = MPaymentValidate.validateRoutingNo(routingNo).length()\n + MPaymentValidate.validateAccountNo(accountNo).length();\n return check == 0;\n }", "public void updateRebill(HashMap<String, String> params) {\n\t\tTRANSACTION_TYPE = \"SET\";\n\t\tREBILL_ID = params.get(\"rebillID\");\n\t\tTEMPLATE_ID = params.get(\"templateID\");\n\t\tNEXT_DATE = params.get(\"nextDate\");\n\t\tREB_EXPR = params.get(\"expr\");\n\t\tREB_CYCLES = params.get(\"cycles\");\n\t\tREB_AMOUNT = params.get(\"rebillAmount\");\n\t\tNEXT_AMOUNT = params.get(\"nextAmount\");\n\t\tAPI = \"bp20rebadmin\";\n\t}" ]
[ "0.53934515", "0.51868904", "0.51376396", "0.5116747", "0.50499904", "0.50037", "0.4980528", "0.49427223", "0.4896175", "0.48757604", "0.48744848", "0.48357472", "0.48017067", "0.47745422", "0.47644147", "0.47452044", "0.47437322", "0.47428071", "0.4724734", "0.4702902", "0.46911836", "0.46801525", "0.4654711", "0.46443024", "0.46396628", "0.46084708", "0.45957324", "0.45889983", "0.45591348", "0.45565608", "0.45538384", "0.45500246", "0.45272866", "0.452073", "0.45203343", "0.45191252", "0.45042774", "0.45000917", "0.44809547", "0.44793636", "0.4478771", "0.44777504", "0.44684133", "0.44515976", "0.44498402", "0.44389814", "0.443631", "0.44343388", "0.4412372", "0.44066733", "0.44042522", "0.44003975", "0.4394225", "0.43883783", "0.43757206", "0.43702474", "0.43621883", "0.43535435", "0.43528143", "0.43412623", "0.43410775", "0.43319264", "0.43288285", "0.4327125", "0.4320704", "0.43160596", "0.4314237", "0.43135753", "0.43134555", "0.43119434", "0.4307461", "0.43036807", "0.429876", "0.42940974", "0.42846066", "0.42823204", "0.42746103", "0.42714503", "0.42681795", "0.42498803", "0.42474908", "0.424373", "0.42400134", "0.42390352", "0.42344853", "0.423378", "0.42261866", "0.42195687", "0.42125216", "0.42090496", "0.4208294", "0.4205677", "0.42056757", "0.42011908", "0.42009902", "0.41964597", "0.41939378", "0.4193131", "0.41902852", "0.41892973" ]
0.49902076
6
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_DY_ROUTE.BH_TRAFFIC
public Float getBhTraffic() { return bhTraffic; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getTraffic() {\n return traffic;\n }", "public Long getTraffic() {\n\t\treturn traffic;\n\t}", "public Integer getTraffic() {\n return traffic;\n }", "public Integer getTraffic() {\n return traffic;\n }", "public Float getTraffic() {\r\n return traffic;\r\n }", "public Float getBhGdlTraf() {\r\n return bhGdlTraf;\r\n }", "public double getTWAP() {\n return twap;\n }", "public double getTruckArrivalTime() {\r\n\t\treturn truckArrivalTime.sample();\r\n\t}", "public Double throttleRate() {\n return this.throttleRate;\n }", "public Long getThroughput() {\n return this.throughput;\n }", "public Float getBhEdlTraf() {\r\n return bhEdlTraf;\r\n }", "public String getTrafficType() {\n return this.trafficType;\n }", "public Double getPercentTraffic() {\n return this.percentTraffic;\n }", "public double getThrottle() {\n \treturn Math.abs(throttle.getY()) > DEADZONE ? throttle.getY() : 0;\n }", "public Integer getThroughput() {\n return this.throughput;\n }", "public long lastReadThroughput()\r\n/* 189: */ {\r\n/* 190:370 */ return this.lastReadThroughput;\r\n/* 191: */ }", "public jkt.hrms.masters.business.EtrTravelreq getTrv () {\n\t\treturn trv;\n\t}", "public double getBreadth() {\n\t\treturn _tempNoTiceShipMessage.getBreadth();\n\t}", "public final float getCurrentCartSpeedCapOnRail() {\n return currentSpeedRail;\n }", "long throttleByteCount() {\n return parseLong(get(THROTTLE_BYTE_COUNT), Long.MAX_VALUE);\n }", "@Override\n\tpublic int[] getVehicleLoad() {\n\t\t\n\t\tint temp[] ={constantPO.getVanLoad(),constantPO.getRailwayLoad(),constantPO.getAirplaneLoad()};\n\t\t\n\t\treturn temp;\n\t}", "org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl getTrafficControl();", "public SpeedandHeadingandThrottleConfidence getSpeedConfidence()\n {\n\treturn this.speedConfidence;\n }", "protected double ABT() {\r\n\t\tDouble output = Double.MAX_VALUE;\r\n\t\tIterator<Double> bws = this.flowBandwidth.values().iterator();\r\n\t\twhile (bws.hasNext()) {\r\n\t\t\tdouble temp = bws.next();\r\n\t\t\tif (temp < output) {\r\n\t\t\t\toutput = temp;\r\n\t\t\t\t// System.out.println(\"[GeneralSimulator.ABT]: \" + output);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// System.out.println(\"[GeneralSimulator.ABT]: succfulCount \"\r\n\t\t// + this.successfulCount);\r\n\t\treturn output * this.successfulCount;\r\n\t}", "public double getThroughput () {\n\t\treturn throughputRequired;\n\t}", "@Override\r\n\tpublic double rideFare() {\r\n\t\tdouble trafficRate = 1;\r\n\t\tswitch(this.getTrafficKind()) {\r\n\t\t case Low:\r\n\t\t\ttrafficRate = 1;break;\r\n\t\t\tcase Medium:\r\n\t\t\t\ttrafficRate = 1.1;break;\r\n\t\t\tcase High:\r\n\t\t\t\ttrafficRate = 1.5;break;\r\n\t\t}\r\n\t\tdouble basicRate = 0;\r\n\t\tif (this.getLength() <5) { \r\n\t\t\tbasicRate = 3.3;\r\n\t\t} else if (10 > this.getLength()){\r\n\t\t\tbasicRate = 4.2;\r\n\t\t} else if (this.getLength() <20){\r\n\t\t\tbasicRate = 1.91;\r\n\t\t} else {\r\n\t\t\tbasicRate = 1.5;\r\n\t\t}\r\n\t\t\r\n\t\treturn basicRate * trafficRate * this.getLength();\r\n\t}", "public Double getLargestReceiveSuccessResponseThroughput()\r\n {\r\n return largestReceiveSuccessResponseThroughput;\r\n }", "public Double getBounceRate() {\r\n return bounceRate;\r\n }", "public Integer getBh() {\r\n return bh;\r\n }", "public Integer getTrip() {\n return trip;\n }", "public String getTotal_latency() {\n return total_latency;\n }", "public Integer getBp_hr() {\r\n return bp_hr;\r\n }", "@JsonIgnore public String getArrivalTerminal() {\n return (String) getValue(\"arrivalTerminal\");\n }", "public Float getItraffic() {\r\n return itraffic;\r\n }", "public BigDecimal getAvgLatency() {\n return avgLatency;\n }", "public int get_flight() {\r\n return this.flight_nr;\r\n }", "public double getTrafficFromEachSuperAS() {\n return this.trafficFromSuperAS;\n }", "public Double getReceiveSuccessResponseThroughput()\r\n {\r\n return receiveSuccessResponseThroughput;\r\n }", "public Long getTotal_latency() {\n return total_latency;\n }", "public java.lang.String getTHFRWeightLoaded() {\r\n return THFRWeightLoaded;\r\n }", "public String burstThrottlePolicy() {\n return this.burstThrottlePolicy;\n }", "public BigDecimal getLBR_LatePaymentPenaltyAP();", "public int getBeacon() {\n \treturn this.beacon;\n }", "public int getTrafficClass()\r\n/* 135: */ {\r\n/* 136: */ try\r\n/* 137: */ {\r\n/* 138:158 */ return this.javaSocket.getTrafficClass();\r\n/* 139: */ }\r\n/* 140: */ catch (SocketException e)\r\n/* 141: */ {\r\n/* 142:160 */ throw new ChannelException(e);\r\n/* 143: */ }\r\n/* 144: */ }", "public void setBhTraffic(Float bhTraffic) {\r\n this.bhTraffic = bhTraffic;\r\n }", "public String getPayload() {\n\t\t\t\t\t\treturn payLoad;\r\n\t\t\t\t\t}", "public BigDecimal getTotalLatency() {\n return totalLatency;\n }", "public Number getTramo() {\n return (Number) getAttributeInternal(TRAMO);\n }", "double getThroughput();", "public List<TrafficWeight> traffic() {\n return this.traffic;\n }", "public int getRt() {\n return rt_;\n }", "public Float getBhDlTbfReq() {\r\n return bhDlTbfReq;\r\n }", "public Long getLineCarriageprice() {\n return lineCarriageprice;\n }", "public Float getHsdpaDlTraff() {\n return hsdpaDlTraff;\n }", "public int getRt() {\n return rt_;\n }", "private int getAvgFlightAltitude() {\n\t\treturn this.avgFlightAltitude;\n\t}", "public int getRssi() {\n return rssi;\n }", "public int getRoadLength() {\n \t\treturn roadLength;\n \t}", "public int getRssi() {\r\n return rssi;\r\n }", "public Double getLargestReceiveSuccessRequestThroughput()\r\n {\r\n return largestReceiveSuccessRequestThroughput;\r\n }", "public Travel getTravel() {\n return travel;\n }", "public double getTravelTime() {\n return travelTime;\n }", "public Long get_cachebytesservedrate() throws Exception {\n\t\treturn this.cachebytesservedrate;\n\t}", "public float getAirspeed() { return Airspeed; }", "public long getLatency() {\n return latency;\n }", "public int getTriage (){\r\n return triage;\r\n }", "public int getHalfBandwidth() {\n\t\treturn hbw_;\n\t}", "public Float getBhEulTraf() {\r\n return bhEulTraf;\r\n }", "public com.vmware.converter.DvsHostInfrastructureTrafficResource[] getInfrastructureTrafficResourceConfig() {\r\n return infrastructureTrafficResourceConfig;\r\n }", "public int getTotalRouteCost() {\n return totalRouteCost;\n }", "public String getTransmitRate()\r\n\t{\r\n\t\treturn transmitRate;\r\n\t}", "public int getBodyTemperature() {\n return this.bodyTemperature;\n }", "public String getAvg_latency() {\n return avg_latency;\n }", "public BigDecimal getLBR_TaxDeferralRate();", "public Double latency() {\n return this.latency;\n }", "public Integer getRentWay() {\n return rentWay;\n }", "public java.lang.String getBLH() {\r\n return localBLH;\r\n }", "public float getVehicleSpeed() {\n return vehicleSpeed;\n }", "public float getSubWC() {\r\n return costs.get(Transports.SUBWAY);\r\n }", "long throttleByteCount() {\n return parseLong(settings.get(THROTTLE_BYTE_COUNT), Long.MAX_VALUE);\n }", "public double getFlightDur() {\n\t\treturn flightDur;\n\t}", "public Long get_cacheresponsebytesrate() throws Exception {\n\t\treturn this.cacheresponsebytesrate;\n\t}", "public int getTravelTime() {\r\n return travelTime;\r\n }", "public Integer getTravelTime() {\n\t\treturn travelTime;\n\t}", "public int obtenirTaille()\n\t{\n\t\treturn this.taille;\n\t}", "float getBounceRate() throws SQLException;", "public BigDecimal gettBlkr() {\n return tBlkr;\n }", "private double getCurbHeight(ReaderWay way) {\n\t\tdouble res = 0d;\n\t\tString str = null;\n\t\t// http://taginfo.openstreetmap.org/keys/sloped_curb#overview: 90% nodes, 10% ways\n\t\t// http://taginfo.openstreetmap.org/keys/sloped_curb#values\n\t\tif (way.hasTag(\"sloped_curb\")) {\n\t\t\tstr = way.getTag(\"sloped_curb\").toLowerCase();\n\t\t\tstr = str.replace(\"yes\", \"0.03\");\n\t\t\tstr = str.replace(\"both\", \"0.03\");\n\t\t\tstr = str.replace(\"no\", \"0.15\");\n\t\t\tstr = str.replace(\"one\", \"0.15\");\n\t\t\tstr = str.replace(\"at_grade\", \"0.0\");\n\t\t\tstr = str.replace(\"flush\", \"0.0\");\n\t\t\tstr = str.replace(\"low\", \"0.03\");\n\t\t}\n\t\telse if (way.hasTag(\"kerb\")) {\n\t\t\tif (way.hasTag(\"kerb:height\")) {\n\t\t\t\tstr = way.getTag(\"kerb:height\").toLowerCase();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tstr = way.getTag(\"kerb\").toLowerCase();\n\t\t\t\tstr = str.replace(\"lowered\", \"0.03\");\n\t\t\t\tstr = str.replace(\"raised\", \"0.15\");\n\t\t\t\tstr = str.replace(\"yes\", \"0.03\");\n\t\t\t\tstr = str.replace(\"flush\", \"0.0\");\n\t\t\t\tstr = str.replace(\"unknown\", \"0.03\");\n\t\t\t\tstr = str.replace(\"no\", \"0.15\");\n\t\t\t\tstr = str.replace(\"dropped\", \"0.03\");\n\t\t\t\tstr = str.replace(\"rolled\", \"0.03\");\n\t\t\t\tstr = str.replace(\"none\", \"0.15\");\n\t\t\t}\n\t\t}\n \n\t\t// http://taginfo.openstreetmap.org/keys/curb#overview: 70% nodes, 30% ways\n\t\t// http://taginfo.openstreetmap.org/keys/curb#values\n\t\telse if (way.hasTag(\"curb\")) {\n\t\t\tstr = way.getTag(\"curb\").toLowerCase();\n\t\t\tstr = str.replace(\"lowered\", \"0.03\");\n\t\t\tstr = str.replace(\"regular\", \"0.15\");\n\t\t\tstr = str.replace(\"flush;lowered\", \"0.0\");\n\t\t\tstr = str.replace(\"sloped\", \"0.03\");\n\t\t\tstr = str.replace(\"lowered_and_sloped\", \"0.03\");\n\t\t\tstr = str.replace(\"flush\", \"0.0\");\n\t\t\tstr = str.replace(\"none\", \"0.15\");\n\t\t\tstr = str.replace(\"flush_and_lowered\", \"0.0\");\n\t\t}\n\n\t\tif (str != null) {\n\t\t\tboolean isCm = false;\n\t\t\ttry {\n\t\t\t\tif (str.contains(\"c\")) {\n\t\t\t\t\tisCm = true;\n\t\t\t\t}\n\t\t\t\tres = Double.parseDouble(str.replace(\"%\", \"\").replace(\",\", \".\").replace(\"m\", \"\").replace(\"c\", \"\"));\n\t\t\t\tif (isCm) {\n\t\t\t\t\tres /= 100d;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception ex) {\n\t\t\t\t//\tlogger.warning(\"Error parsing value for Tag kerb from this String: \" + stringValue + \". Exception:\" + ex.getMessage());\n\t\t\t}\n\t\t}\n\n\t\t// check if the value makes sense (i.e. maximum 0.3m/30cm)\n\t\tif (-0.15 < res && res < 0.15) {\n\t\t\tres = Math.abs(res);\n\t\t}\n\t\telse {\n\t\t\t// doubleValue = Double.NaN;\n\t\t\tres = 0.15;\n\t\t}\n\t\t\n\t\treturn res;\n\t}", "public Long getAvg_latency() {\n return avg_latency;\n }", "public double getTrafficOverLinkBetween(int otherASN) {\n return this.trafficOverNeighbors.get(otherASN);\n }", "public long getTaille() {\n return taille;\n }", "public Float getBhGulTraf() {\r\n return bhGulTraf;\r\n }", "public double getValueOfTransceiver() {\n\t\treturn valueOfTransceiver;\n\t}", "public double getTorqueFtLb() {\r\n return torqueFtLb;\r\n }", "public int getInflightingRPCCounter() {\n return inflightingRPCCounter.get();\n }", "public String getTUNGAY()\n {\n return this.TUNGAY;\n }", "public int getVehiclePerformance() {\n return itemAttribute;\n }", "public double getFlightTime() {\n\t\treturn flightTime;\n\t}", "public float getTaille() {\r\n return taille;\r\n }", "public java.lang.String getRoadwayRef()\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(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }" ]
[ "0.5613694", "0.5557203", "0.5359057", "0.5359057", "0.526598", "0.51228404", "0.50878686", "0.5072553", "0.5062201", "0.5051843", "0.5038738", "0.50328046", "0.5012131", "0.5005506", "0.49942133", "0.49920022", "0.49645048", "0.49390358", "0.4872657", "0.48724517", "0.48497638", "0.4846562", "0.48245406", "0.48207337", "0.48131272", "0.48066008", "0.47895795", "0.47878078", "0.4780826", "0.4773166", "0.47603235", "0.47511658", "0.47477365", "0.4740712", "0.4736843", "0.47349662", "0.47336608", "0.47233418", "0.47195452", "0.47128102", "0.47105873", "0.4708992", "0.47048473", "0.46987742", "0.4692884", "0.46825692", "0.46798977", "0.467937", "0.4673442", "0.46707648", "0.4669059", "0.4644809", "0.46435326", "0.4638704", "0.46373382", "0.46296635", "0.46269903", "0.46211684", "0.46183103", "0.46063", "0.46061638", "0.46056098", "0.46031064", "0.45950496", "0.45925415", "0.45906156", "0.45875144", "0.45858106", "0.45848724", "0.45821008", "0.4581522", "0.45786047", "0.4575228", "0.4570208", "0.45582387", "0.45514336", "0.45474187", "0.45469174", "0.45436692", "0.45401314", "0.45385635", "0.4537683", "0.45371974", "0.45347416", "0.45322877", "0.45246974", "0.4524634", "0.45181012", "0.45172513", "0.45160574", "0.4511046", "0.45086712", "0.45019996", "0.45014587", "0.45007136", "0.45006785", "0.45003396", "0.44978243", "0.44791162", "0.44786936" ]
0.62094164
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_ROUTE.BH_TRAFFIC
public void setBhTraffic(Float bhTraffic) { this.bhTraffic = bhTraffic; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Float getBhTraffic() {\r\n return bhTraffic;\r\n }", "private void setupTurnRoadCharacteristic() {\n turnRoadCharacteristic =\n new BluetoothGattCharacteristic(CHARACT_TURNROAD_UUID,\n BluetoothGattCharacteristic.PROPERTY_READ | BluetoothGattCharacteristic.PROPERTY_WRITE | BluetoothGattCharacteristic.PROPERTY_NOTIFY,\n BluetoothGattCharacteristic.PERMISSION_READ | BluetoothGattCharacteristic.PERMISSION_WRITE);\n\n turnRoadCharacteristic.addDescriptor(\n Peripheral.getClientCharacteristicConfigurationDescriptor());\n\n turnRoadCharacteristic.addDescriptor(\n Peripheral.getCharacteristicUserDescriptionDescriptor(CHARACT_TURNROAD_DESC));\n\n turnRoadCharacteristic.setValue(turnRoadCharacteristic_value);\n }", "public void setLBR_LatePaymentPenaltyAP (BigDecimal LBR_LatePaymentPenaltyAP);", "void setTrafficControl(org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl trafficControl);", "public void setBh(Integer bh) {\r\n this.bh = bh;\r\n }", "public void setThroughput(Long throughput) {\n this.throughput = throughput;\n }", "public void setThroughput(Integer throughput) {\n this.throughput = throughput;\n }", "public void setBhGdlTraf(Float bhGdlTraf) {\r\n this.bhGdlTraf = bhGdlTraf;\r\n }", "public void setTraffic(Long traffic) {\n\t\tthis.traffic = traffic;\n\t}", "public void setLBR_TaxDeferralRate (BigDecimal LBR_TaxDeferralRate);", "public void addTrafficLight(int roadRef, String whichEnd) {\n roads.get(roadRef - 1).addTrafficLight(whichEnd);\n }", "@Override\n\tpublic void setVehicleLoad(int van, int railway, int airplane) {\n\t\tconstantPO.setVanLoad(van);\n\t\tconstantPO.setRailwayLoad(railway);\n\t\tconstantPO.setAirplaneLoad(airplane);\n\t}", "@Override\n void setRoute() throws ItemTooHeavyException {\n deliveryItem = tube.pop();\n if (deliveryItem.weight > itemWeightLimit) throw new ItemTooHeavyException();\n // Set the destination floor\n destination_floor = deliveryItem.getDestFloor();\n }", "public void setThroughput(double throughput) {\n\t\tthis.throughputRequired = throughput;\n\t}", "public void setBhEdlTraf(Float bhEdlTraf) {\r\n this.bhEdlTraf = bhEdlTraf;\r\n }", "public void setTWAP(double value) {\n this.twap = value;\n }", "public void setRoadwayRef(java.lang.String roadwayRef)\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(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.setStringValue(roadwayRef);\r\n }\r\n }", "public void setTraffic(Float traffic) {\r\n this.traffic = traffic;\r\n }", "public void setB(double b){\n this.b=b;\n }", "public native void setRTOFactor (double RTOfactor);", "public native void setRTOConstant (int RTOconstant);", "public void setReceiveSuccessResponseThroughput(Double receiveSuccessResponseThroughput)\r\n {\r\n this.receiveSuccessResponseThroughput = receiveSuccessResponseThroughput;\r\n }", "public void setBh(Float bh) {\r\n this.bh = bh;\r\n }", "public void setB(double value) {\n this.b = value;\n }", "public void setInfrastructureTrafficResourceConfig(com.vmware.converter.DvsHostInfrastructureTrafficResource[] infrastructureTrafficResourceConfig) {\r\n this.infrastructureTrafficResourceConfig = infrastructureTrafficResourceConfig;\r\n }", "public void setTraffic(Integer traffic) {\n this.traffic = traffic;\n }", "public void setTraffic(Integer traffic) {\n this.traffic = traffic;\n }", "public void setBhDlTbfReq(Float bhDlTbfReq) {\r\n this.bhDlTbfReq = bhDlTbfReq;\r\n }", "public void setLBR_TaxRate (BigDecimal LBR_TaxRate);", "public void setBp_hr(Integer bp_hr) {\r\n this.bp_hr = bp_hr;\r\n }", "public static void init_default_traffic() throws SQLException{\n\t\tint length = Common.roadlist.length;\n\t\tdefault_traffic = new double[length][(int)Common.max_seg + 1];\n\t\t//28 classes of road ,max id is 305, set 350 here\n\t\tdefault_class_traffic = new double [350][(int)Common.max_seg + 1];\n\t\t//start read traffic from database\n\t\tConnection con = Common.getConnection();\n\t\ttry{\n\t\t\t//read default road speed\n\t\t\tStatement stmt = con.createStatement();\n\t\t\t//read by period\n\t\t\tfor(int i=1; i<=Common.max_seg; i++){\n\t\t\t\tString traffic_table = Common.history_road_slice_table + i;\n\t\t\t\t//read data\n\t\t\t\tString sql = \"select * from \" + traffic_table + \";\";\n\t\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\t\tint[] class_id_counter = new int[350];\n\t\t\t\twhile(rs.next()){\n\t\t\t\t\tint gid = rs.getInt(\"gid\");\n\t\t\t\t\tint class_id = rs.getInt(\"class_id\");\n\t\t\t\t\tclass_id_counter[class_id]++;\n\t\t\t\t\t//Common.logger.debug(gid);\n\t\t\t\t\tdouble speed = rs.getDouble(\"average_speed\");\n\t\t\t\t\tdefault_traffic[gid][i] = speed;\n\t\t\t\t\tdefault_class_traffic[class_id][i] += speed;\n\t\t\t\t}\n\t\t\t\t//get average speed of roads in same class\n\t\t\t\tfor(int j=0; j<class_id_counter.length; j++){\n\t\t\t\t\tint counter = class_id_counter[j];\n\t\t\t\t\tif(counter > 0){\n\t\t\t\t\t\tdefault_class_traffic[j][i] /= counter;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tcon.rollback();\n\t\t}\n\t\tfinally{\n\t\t\tcon.commit();\n\t\t}\t\t\n\t}", "public native void setInitialAssumedRTT (long RTT);", "public void setB_(double b_) {\n\t\tthis.b_ = b_;\n\t}", "public void setBetrag(double betrag) throws RemoteException;", "public void setRefFrameVelocity(double value) {\n _avTable.set(ATTR_RF_VELOCITY, value);\n }", "public void setBLH(java.lang.String param) {\r\n localBLHTracker = param != null;\r\n\r\n this.localBLH = param;\r\n }", "public void setRoadwayPI(double roadwayPI)\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.setDoubleValue(roadwayPI);\r\n }\r\n }", "void setRoadway(org.landxml.schema.landXML11.RoadwayDocument.Roadway roadway);", "public double getTraffic() {\n return traffic;\n }", "private void setupEstArrivalTimeCharacteristic() {\n estArrivalTimeCharacteristic =\n new BluetoothGattCharacteristic(CHARACT_ESTARRIVALTIME_UUID,\n BluetoothGattCharacteristic.PROPERTY_READ | BluetoothGattCharacteristic.PROPERTY_WRITE | BluetoothGattCharacteristic.PROPERTY_NOTIFY,\n BluetoothGattCharacteristic.PERMISSION_READ | BluetoothGattCharacteristic.PERMISSION_WRITE);\n\n estArrivalTimeCharacteristic.addDescriptor(\n Peripheral.getClientCharacteristicConfigurationDescriptor());\n\n estArrivalTimeCharacteristic.addDescriptor(\n Peripheral.getCharacteristicUserDescriptionDescriptor(CHARACT_ESTARRIVALTIME_DESC));\n\n estArrivalTimeCharacteristic.setValue(estArrivalTimeCharacteristic_value);\n }", "public final void bHT() {\n AppMethodBeat.m2504i(21893);\n C7060h.pYm.mo8381e(12931, Long.valueOf(this.nyK), Long.valueOf(this.nyL), Long.valueOf(this.nzg), Long.valueOf(this.nzh), Long.valueOf(this.nzi), Long.valueOf(this.nzj));\n AppMethodBeat.m2505o(21893);\n }", "public void setBreadth(double breadth) {\n\t\t_tempNoTiceShipMessage.setBreadth(breadth);\n\t}", "public void setGateway(AGateway gateway)\r\n/* 21: */ {\r\n/* 22:41 */ this.gateway = gateway;\r\n/* 23: */ }", "public void setRoadLength(int roadLength) {\n \t\tif (roadLength > this.roadLength)\n \t\t\tthis.roadLength = roadLength;\n \t}", "@Override\n public void maybeSetThrottleTimeMs(int throttleTimeMs) {\n }", "public void setHCAR(java.lang.String HCAR) {\r\n this.HCAR = HCAR;\r\n }", "@Override\n\tpublic void onReCalculateRouteForTrafficJam() {\n\n\t}", "public void setTrv (jkt.hrms.masters.business.EtrTravelreq trv) {\n\t\tthis.trv = trv;\n\t}", "public IRoadSensor setRoadStatus(ERoadStatus s);", "public void setAAALethalityRate(int value) {\n this.aaaLethalityRate = value;\n }", "public void setRoutingNo (String RoutingNo);", "public void setBhGulTraf(Float bhGulTraf) {\r\n this.bhGulTraf = bhGulTraf;\r\n }", "private void determinationVATRate(Vehicle vehicle) {\n if (vehicle.getEngineType().name().equals(\"electric\")) {\n vehicle.setVATRate(0);\n } else {\n vehicle.setVATRate(20);\n }\n }", "public void setLBR_TaxRateCredit (BigDecimal LBR_TaxRateCredit);", "public void setTrafficClass (int tc) {\n if ( tc < 0 || tc > 255)\n throw new IllegalArgumentException();\n trafficClass = tc;\n }", "public void setDownloadBandwidth(int bw);", "public void setBhEulTraf(Float bhEulTraf) {\r\n this.bhEulTraf = bhEulTraf;\r\n }", "public void setBrightness(float bri) {\r\n\t\thsb[2] = bri;\r\n\t}", "public void setTrip(Integer trip) {\n this.trip = trip;\n }", "private void updateTbtNavigationService() {\n updateNavStateCharacteristic();\n updateTurnIconCharacteristic();\n updateTurnDistanceCharacteristic();\n updateTurnInfoCharacteristic();\n updateTurnRoadCharacteristic();\n updateEstArrivalTimeCharacteristic();\n updateDist2DestCharacteristic();\n updateNotificationCharacteristic();\n updateNavigationCommandCharacteristic();\n }", "public void setTrip(String trip)\r\n {\r\n this.trip=trip;\r\n }", "public void setRentWay(Integer rentWay) {\n this.rentWay = rentWay;\n }", "public void setBlh(java.lang.String param) {\r\n localBlhTracker = param != null;\r\n\r\n this.localBlh = param;\r\n }", "public void setFrequencyOfRoute(java.math.BigInteger frequencyOfRoute) {\r\n this.frequencyOfRoute = frequencyOfRoute;\r\n }", "public void setAlternateRoute(short trainId, TrainRoute r) {\n\t\ttrainRoutes.put(trainId, r);\n\t}", "public void setBandwidth(long bandwidth) {\n data.setBandwidth(bandwidth);\n List<FlowPath> subPaths = getSubPaths();\n if (subPaths != null) {\n subPaths.forEach(path -> path.getData().setBandwidth(bandwidth));\n }\n }", "@Override\n\tpublic void turnMotorB(boolean direction) throws ConnectionLostException {\n\t\t\n\t}", "public void setLBR_TaxBaseAmt (BigDecimal LBR_TaxBaseAmt);", "public void setSideB(double sideB)\r\n\t{\r\n\t\tthis.sideB=sideB;\r\n\t\t\r\n\t}", "public void setHvacStateValue(double value) {\r\n this.hvacStateValue = value;\r\n }", "public void B(BleViewModel bleViewModel) {\n this.p = bleViewModel;\n synchronized (this) {\n long l10 = this.H;\n long l11 = 64;\n this.H = l10 |= l11;\n }\n this.notifyPropertyChanged(12);\n super.requestRebind();\n }", "public void setPercentTraffic(Double percentTraffic) {\n this.percentTraffic = percentTraffic;\n }", "@Override\r\n\tpublic double rideFare() {\r\n\t\tdouble trafficRate = 1;\r\n\t\tswitch(this.getTrafficKind()) {\r\n\t\t case Low:\r\n\t\t\ttrafficRate = 1;break;\r\n\t\t\tcase Medium:\r\n\t\t\t\ttrafficRate = 1.1;break;\r\n\t\t\tcase High:\r\n\t\t\t\ttrafficRate = 1.5;break;\r\n\t\t}\r\n\t\tdouble basicRate = 0;\r\n\t\tif (this.getLength() <5) { \r\n\t\t\tbasicRate = 3.3;\r\n\t\t} else if (10 > this.getLength()){\r\n\t\t\tbasicRate = 4.2;\r\n\t\t} else if (this.getLength() <20){\r\n\t\t\tbasicRate = 1.91;\r\n\t\t} else {\r\n\t\t\tbasicRate = 1.5;\r\n\t\t}\r\n\t\t\r\n\t\treturn basicRate * trafficRate * this.getLength();\r\n\t}", "@Override\r\n\tpublic void onReCalculateRouteForTrafficJam() {\n\r\n\t}", "void changeBTAddress() {\n\t\t\n\t\t// if ( this.beacon.getAppType() == AppType.APPLE_GOOGLE_CONTACT_TRACING ) {\n\t\tif ( this.useRandomAddr()) {\n\t\t\t// try to change the BT address\n\t\t\t\n\t\t\t// the address is LSB..MSB and bits 47:46 are 0 i.e. bits 0 & 1 of right-most byte are 0.\n\t\t\tbyte btRandomAddr[] = getBTRandomNonResolvableAddress();\n\t\t\t\n\t\t\t// generate the hcitool command string\n\t\t\tString hciCmd = getSetRandomBTAddrCmd( btRandomAddr);\n\t\t\t\n\t\t\tlogger.info( \"SetRandomBTAddrCmd: \" + hciCmd);\n\t\t\t\n\t\t\t// do the right thing...\n\t\t\tfinal String envVars[] = { \n\t\t\t\t\"SET_RAND_ADDR_CMD=\" + hciCmd\n\t\t\t};\n\t\t\t\t\t\t\n\t\t\tfinal String cmd = \"./scripts/set_random_addr\";\n\t\t\t\n\t\t\tboolean status = runScript( cmd, envVars, this, null);\n\t\t}\n\t\t\t\n\t}", "public void setTHFRWeightLoaded(java.lang.String THFRWeightLoaded) {\r\n this.THFRWeightLoaded = THFRWeightLoaded;\r\n }", "public Long getTraffic() {\n\t\treturn traffic;\n\t}", "public void setReverseAgency(boolean value) {\r\n this.reverseAgency = value;\r\n }", "public void setHourlyRate (double hourlyRate) {\r\n // if hourlyRate is negative, hourlyRate is 0\r\n if (hourlyRate < 0) {\r\n this.hourlyRate = 0;\r\n }\r\n else {\r\n this.hourlyRate = hourlyRate;\r\n }\r\n // calls calculateSalary to update the salary once hourlyRate is changed\r\n calculateSalary();\r\n }", "void setFurtherRelations(ch.crif_online.www.webservices.crifsoapservice.v1_00.FurtherRelations furtherRelations);", "public void changeDeadband(double deadband) {\n\t\tDEAD_BAND = deadband;\n\t}", "public void setItraffic(Float itraffic) {\r\n this.itraffic = itraffic;\r\n }", "public void setLBR_LatePaymentPenaltyCode (String LBR_LatePaymentPenaltyCode);", "public void setLargestReceiveSuccessResponseThroughput(Double largestReceiveSuccessResponseThroughput)\r\n {\r\n this.largestReceiveSuccessResponseThroughput = largestReceiveSuccessResponseThroughput;\r\n }", "void setControlType(org.landxml.schema.landXML11.TrafficControlType.Enum controlType);", "public void xsetRoadwayRef(org.landxml.schema.landXML11.RoadwayNameRef roadwayRef)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.RoadwayNameRef target = null;\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().find_attribute_user(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.set(roadwayRef);\r\n }\r\n }", "public void setBounceRate(Double bounceRate) {\r\n this.bounceRate = bounceRate;\r\n }", "public void setLBR_TaxBase (BigDecimal LBR_TaxBase);", "public void setAntennaHeight(double antennaHeight)\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(ANTENNAHEIGHT$10);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ANTENNAHEIGHT$10);\r\n }\r\n target.setDoubleValue(antennaHeight);\r\n }\r\n }", "public static void setTRPath(String path)\n\t{\n\t\t//mgizaTRPath=path;\n\t\ttrMap=new TRMap(path);\n\t}", "public void setTorqueFtLb(double torqueFtLb) {\r\n this.torqueFtLb = torqueFtLb;\r\n }", "private void setLoadBalance() {\n deleteAllChildren(\"/soa/config/service\");\n\n Properties prop = new Properties();\n try {\n InputStream in = StaticInfoHelper.class.getClassLoader().getResourceAsStream(\"config.properties\");\n prop.load(in);\n } catch (IOException e) {\n LOGGER.error(\"error reading file config.properties\");\n LOGGER.error(e.getMessage(), e);\n }\n\n Iterator<Map.Entry<Object, Object>> it = prop.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<Object, Object> entry = it.next();\n Object key = entry.getKey();\n Object value = entry.getValue();\n String t_value = ((String) value).replaceAll(\"/\", \"=\");\n\n createConfigNodeWithData(\"/soa/config/service/\" + (String) key, t_value);\n }\n\n }", "public void setLBR_TaxReliefAmt (BigDecimal LBR_TaxReliefAmt);", "public void setVehicleSpeed(float value) {\n this.vehicleSpeed = value;\n }", "public void setVehiclePerformance(int vehiclePerformance) {\n this.itemAttribute = vehiclePerformance;\n }", "public void xsetAntennaHeight(org.apache.xmlbeans.XmlDouble antennaHeight)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDouble target = null;\r\n target = (org.apache.xmlbeans.XmlDouble)get_store().find_attribute_user(ANTENNAHEIGHT$10);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlDouble)get_store().add_attribute_user(ANTENNAHEIGHT$10);\r\n }\r\n target.set(antennaHeight);\r\n }\r\n }", "public void requestLightValue(BTCommObserver observer)\n\t\t\tthrows ConnectionClosedException, QueueBlockedException {\n\t\tif (this.closed) {\n\t\t\tthrow new ConnectionClosedException(\n\t\t\t\t\t\"Call of request light value after closing the connection.\");\n\t\t}\n\t\telse {\n\t\t\t// registers the given observer for the receiving of this file\n\t\t\tthis.register(observer, BTEvent.LIGHT_VALUE);\n\n\t\t\tthis.requestLightValue();\n\t\t}\n\t}", "public native void setMaximumRTO (long RTO);", "public Float getTraffic() {\r\n return traffic;\r\n }", "public void setHourlyRate(double hr)\n\t{\n\t\thourlyRate = hr;\n\t}" ]
[ "0.5279568", "0.48914194", "0.479665", "0.47836143", "0.47277248", "0.4702075", "0.46445498", "0.45935333", "0.45887595", "0.458391", "0.45726055", "0.45564464", "0.45361808", "0.45161584", "0.4505756", "0.4486363", "0.44772083", "0.4465089", "0.44644672", "0.44637197", "0.44568762", "0.44563186", "0.44523296", "0.44507727", "0.4449378", "0.44483304", "0.44483304", "0.44282788", "0.44189805", "0.44151166", "0.44121864", "0.4402589", "0.43998814", "0.4380479", "0.43732974", "0.43711698", "0.43630052", "0.43411785", "0.43387133", "0.43131164", "0.43126553", "0.4309995", "0.42961806", "0.42907873", "0.42902216", "0.42885393", "0.4281125", "0.42763767", "0.42685387", "0.42605215", "0.4259081", "0.42547426", "0.42482847", "0.42478916", "0.4241431", "0.42358056", "0.4235774", "0.42347282", "0.4232656", "0.42324612", "0.42316338", "0.4220091", "0.4215709", "0.4214133", "0.42100453", "0.42098188", "0.42092702", "0.42065996", "0.42041773", "0.4201409", "0.41933239", "0.4192365", "0.41873598", "0.41822943", "0.41787365", "0.4166064", "0.41655007", "0.41636804", "0.41590583", "0.41563666", "0.41557148", "0.41545483", "0.41540846", "0.41524404", "0.41474435", "0.41440094", "0.4142073", "0.41410616", "0.413792", "0.41351616", "0.41318488", "0.41271895", "0.41270864", "0.4126092", "0.4121131", "0.41197842", "0.4119282", "0.41192517", "0.4117646", "0.41124305" ]
0.56120986
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_DY_ROUTE.BH_UTIL
public Float getBhUtil() { return bhUtil; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getBLH() {\r\n return localBLH;\r\n }", "public BigDecimal getLBR_ICMSST_TaxBAmtWhd();", "java.lang.String getBunho();", "java.lang.String getBunho();", "public java.lang.String getBlh() {\r\n return localBlh;\r\n }", "public BigDecimal getLBR_DIFAL_TaxBaseFCPUFDest();", "public BigDecimal getLBR_TaxBaseOwnOperation();", "public void setBhUtil(Float bhUtil) {\r\n this.bhUtil = bhUtil;\r\n }", "public Integer getBp_hr() {\r\n return bp_hr;\r\n }", "public String getLBR_ProtestCode();", "public BigDecimal getLBR_TaxBase();", "@Override\r\n public double getBidEvaluation(Bid bid) {\r\n double BidUtil = 0;\r\n try {\r\n BidUtil = opponentUtilitySpace.getUtility(bid);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return BidUtil;\r\n }", "public java.lang.String getGetYYT_XXBGResult() {\r\n return localGetYYT_XXBGResult;\r\n }", "public String getBalService() {\r\n\t\treturn balService;\r\n\t}", "public BigDecimal getLBR_ICMSST_TaxBAmtUFDes();", "public String getLBR_SitNF();", "public Integer getBh() {\r\n return bh;\r\n }", "public BigDecimal getLBR_DIFAL_TaxRateICMSUFDest();", "public java.lang.String getGetGhlbResult() {\r\n return localGetGhlbResult;\r\n }", "public BigDecimal getLBR_LatePaymentPenaltyAP();", "public String getTbApWtEntryTotalConsuption()\n\t\t\t\tthrows AgentException{\n\t\t// Fill up with necessary processing\n\n\t\ttry {\n\t\t\tConnection con = DBConnection.getMySQLConnection();\n\t\t\tResultSet rs = con.createStatement().executeQuery(\"SELECT \" + CondominiumUtils.TOTAL_W + \" FROM apartment WHERE id = \" + tbApWtEntryIndex);\n\t\t\t\n\t\t\tif(rs.next()) {\n\t\t\t\ttbApWtEntryTotalConsuption = rs.getString(CondominiumUtils.TOTAL_W);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tDBConnection.closeMySQLConnection();\n\t\t}\n\t\treturn tbApWtEntryTotalConsuption;\n\t}", "public String getBKA246() {\n return BKA246;\n }", "public BigDecimal getLBR_TaxBaseAmt();", "public String getlbr_NFeStatus();", "protected String getGPIBStatus() {\n\n // check for errors\n if ( (m_ibsta.getValue() & ERR) != 0) {\n // return the GPIB Status because an error occurred\n int err = m_iberr.getValue();\n\n // make a nice String with the GPIB Status\n String str = String.format(Locale.US, \"GPIB Status: ibsta = 0x%x; iberr = %d (%s)\\n\",\n m_ibsta.getValue(), err,\n (err<ErrorMnemonic.length ? ErrorMnemonic[err] : \"Error number not recognized\"));\n\n // log event\n m_Logger.finer(str);\n //m_Comm_Logger.finer(str);\n\n return str;\n } else {\n // return an empty String\n return \"\";\n }\n }", "public String getLBR_PartialPayment();", "public BigDecimal getLBR_ICMSST_TaxBAmtUFSen();", "public BigDecimal getLBR_DIFAL_TaxRateFCPUFDest();", "public java.lang.String getBASE_UOM() {\r\n return BASE_UOM;\r\n }", "public BigDecimal getLBR_ICMSST_TaxBase();", "public BigDecimal getLBR_TaxDeferralAmt();", "public String getBAA001() {\n return BAA001;\n }", "public Float getUtil() {\r\n return util;\r\n }", "public BigDecimal gettUtil() {\n return tUtil;\n }", "public String getBKA001() {\n return BKA001;\n }", "public Float getBhHosucr() {\r\n return bhHosucr;\r\n }", "public String getLBR_ICMS_TaxStatusTN();", "public String getLBR_DirectDebitNotice();", "public BigDecimal getACC_BR() {\r\n return ACC_BR;\r\n }", "public String getOutBoundFlag(String appKey) throws DataServiceException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t\tString outBoundFlag = \"\";\r\n\t\ttry{\r\n\t\t\toutBoundFlag = (String) queryForObject(\"getAppFlagValue.query\",appKey);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tLOGGER.error(\"Exception in getting outboundFlag value \" + e.getMessage(), e);\r\n\t\t\r\n\t\t}\r\n\t\treturn outBoundFlag;\r\n\t\r\n\t}", "public Float getBhUlTbfReq() {\r\n return bhUlTbfReq;\r\n }", "public String getLBR_LatePaymentPenaltyCode();", "public java.lang.String getGetYYT_XDTBGResult() {\r\n return localGetYYT_XDTBGResult;\r\n }", "public String getB() {\n return b;\n }", "public double getBrrm() {\n return brrm;\n }", "public String getlbr_CPF();", "public BigDecimal getLBR_ICMSST_TaxAmtWhd();", "public Integer getBUSI_CODE() {\n return BUSI_CODE;\n }", "public BigDecimal getLBR_DIFAL_TaxAmtICMSUFDest();", "public BigDecimal getLBR_ICMSST_TaxAmtUFDes();", "public BigDecimal getLBR_TaxDeferralRate();", "public BigDecimal getLBR_DIFAL_TaxAmtFCPUFDest();", "String getATCUD();", "public BigDecimal getLBR_ICMSST_TaxBaseAmt();", "public BigDecimal getLBR_TaxReliefAmt();", "public String getLBR_ICMS_TaxStatusSN();", "public java.lang.String getGetYYT_DTXDTBGResult() {\r\n return localGetYYT_DTXDTBGResult;\r\n }", "public final String mo14928b() {\n return \"service_monitor\";\n }", "String mo7388hl() throws RemoteException;", "public double getUtility(double ratio) {\n\t\treturn ratio*linearUtility;\r\n\t}", "public String getLBR_ICMS_OwnTaxStatus();", "public String getLBR_ICMSST_TaxBaseType();", "public static com.services.model.BusRoute fetchByPrimaryKey(long brId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn getPersistence().fetchByPrimaryKey(brId);\n\t}", "public int getCBRStatus();", "public Float getBhDlTbfSucr() {\r\n return bhDlTbfSucr;\r\n }", "public String getMacBluetooth()\n/* */ {\n/* 69 */ return this.macBluetooth;\n/* */ }", "public BigDecimal getsBlkr() {\n return sBlkr;\n }", "public String getSbzrmc() {\n return sbzrmc;\n }", "public java.lang.String getBur_solnum() {\n return bur_solnum;\n }", "public static String m580h() {\r\n try {\r\n BluetoothAdapter defaultAdapter = BluetoothAdapter.getDefaultAdapter();\r\n return (defaultAdapter == null || defaultAdapter.isEnabled()) ? defaultAdapter.getAddress() : bi_常量类.f6358b_空串;\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }", "public java.lang.String getBrxm() {\r\n return brxm;\r\n }", "public String getBKA247() {\n return BKA247;\n }", "public Float getBh() {\r\n return bh;\r\n }", "char getBusLine()\n\t{\n\t\treturn this.BUSline;\n\t\t\n\t}", "@ReflectiveMethod(name = \"bp\", types = {})\n public String bp(){\n return (String) NMSWrapper.getInstance().exec(nmsObject);\n }", "public int getLBR_ICMSST_TaxUFDue_ID();", "public java.lang.String getDMBTR() {\n return DMBTR;\n }", "public static Integer getBas(String baselineid2, Date polltime) {\n\t\tString sql = \"select * from baseline where bid='$BASELINEID$' and pollTime='$POLLTIME$'\";\r\n\r\n\t\tString timestr = DateTool.toStringMm1(polltime);\r\n\t\tsql = sql.replace(\"$POLLTIME$\", timestr).replace(\"$BASELINEID$\", baselineid2);\r\n\t\tMap m = DBTool1.getFirst(DBTool1.runsql(sql));\r\n\t\tif (m == null) {\r\n\t\t\tString newsql = \"select * from baseline where bid='$BASELINEID$' and pollTime>DATE_SUB('$POLLTIME$',INTERVAL 5 MINUTE))\";\r\n\r\n\t\t\tnewsql = newsql.replace(\"$POLLTIME$\", timestr).replace(\"$BASELINEID$\", baselineid2);\r\n\t\t\tMap m1 = DBTool1.getFirst(DBTool1.runsql(sql));\r\n\t\t\tif (m1 == null) {\r\n\t\t\t\treturn 1;\r\n\t\t\t} else\r\n\t\t\t\treturn (Integer) m.get(\"bvalue\");\r\n\r\n\t\t} else\r\n\t\t\treturn (Integer) m.get(\"bvalue\");\r\n\r\n\t}", "public double getB_() {\n\t\treturn b_;\n\t}", "public Float getBhTraffic() {\r\n return bhTraffic;\r\n }", "public org.apache.axis2.databinding.types.soapencoding.String getGetDownLoadCardReturn(){\n return localGetDownLoadCardReturn;\n }", "private double calculateHeight(double rib, double base) {\n return Math.sqrt(Math.pow(rib,2)-Math.pow((base/2),2));\n }", "public synchronized String m6503h() {\n String str;\n try {\n if (this.f2488b == null || this.f2488b.equals(\"\")) {\n try {\n if (m6485a(false).isProviderEnabled(f2486z[3])) {\n this.f2488b = f2486z[3];\n } else {\n this.f2488b = f2486z[2];\n }\n } catch (Exception e) {\n C0691a.m2857a(f2486z[8], e);\n str = f2486z[3];\n }\n }\n str = this.f2488b;\n } catch (C0918i e2) {\n throw e2;\n }\n return str;\n }", "public String getlbr_IE();", "public java.lang.String getBAGGWeightLoaded() {\r\n return BAGGWeightLoaded;\r\n }", "public void calculoSalarioBruto(){\n salarioBruto = hrTrabalhada * valorHr;\n }", "public double hamburguer()\n {\n double hamburguerPrice = this.price;\n System.out.println(this.name + \" hamburguer on a \" + this.breadRollType + \" roll price is \" + this.price);\n\n if(this.addt1 != null) {\n hamburguerPrice += this.addt1Price;\n System.out.println(\"added \" + this.addt1 + \" to the burguer for an extra \" + this.addt1Price);\n }\n if(this.addt2 != null)\n {\n hamburguerPrice += this.addt2Price;\n System.out.println(\"added \" + this.addt2 + \" to the burguer for an extra \" + this.addt2Price);\n }\n if(this.addt3 != null) {\n hamburguerPrice += this.addt1Price;\n System.out.println(\"added \" + this.addt3 + \" to the burguer for an extra \" + this.addt3Price);\n }\n if(this.addt2 != null)\n {\n hamburguerPrice += this.addt2Price;\n System.out.println(\"added \" + this.addt4 + \" to the burguer for an extra \" + this.addt4Price);\n }\n\n return hamburguerPrice;\n\n }", "public Number getIdbulto()\n {\n return (Number)getAttributeInternal(IDBULTO);\n }", "public Float getBhUlTbfSucr() {\r\n return bhUlTbfSucr;\r\n }", "public BigDecimal getLBR_TaxAmt();", "public java.lang.String getUserDefined05() {\n return userDefined05;\n }", "public String getLBR_ICMS_TaxBaseType();", "public java.lang.Boolean getBIOPHA() {\n return BIOPHA;\n }", "public Float getBhIhosucr() {\r\n return bhIhosucr;\r\n }", "String getBbgGlobalId();", "public HashMap jsrpcProcessBL(String screenName) {\r\n\t\tClass aclass = null;\r\n\t\tHashMap retBLhm = new HashMap();\r\n\t\tCrudDAO cd = new CrudDAO();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tString businessLogic = cd.getBusinessLogicName(screenName);\r\n\t\t\tdebug(1,businessLogic);\r\n\t\t\tif (businessLogic != null && !\"\".equals(businessLogic)) {\r\n\t\t\t\taclass = Class.forName(businessLogic);\r\n\t\t\t\tBaseBL basebl = (BaseBL) aclass.newInstance();\r\n\t\t\t\tMap buslogHm = new HashMap();\r\n\r\n\t\t\t\tMap map = parameters;//servletRequest.getParameterMap();\r\n//\t\t\t\tIterator iter = map.entrySet().iterator();\r\n//\t\t\t\twhile (iter.hasNext()) {\r\n//\t\t\t\t\tEntry n = (Entry) iter.next();\r\n//\t\t\t\t\tString key = n.getKey().toString();\r\n//\t\t\t\t\tString values[] = (String[]) n.getValue();\r\n//\t\t\t\t\tbuslogHm.put(key, values);\r\n//\t\t\t\t}\r\n\t\t\t\tbuslogHm = map;\r\n\t\t\t\tUserDTO usr = (UserDTO) (session.get(\"userSessionData\"));\r\n\t\t\t\tString id = usr.getUserid();\r\n\t\t\t\tSystem.out.println(\"ID\"+id);\r\n\t\t\t\tbuslogHm.put(\"userDTO\", usr);\r\n\t\t\t\tretBLhm = basebl.jsrpcProcessBL(buslogHm, rpcid);\r\n\t\t\t}else{\r\n\t\t\t\tretBLhm.put(\"error\", \"Method not found\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tdebug(1,\"Businesslogic not found\");\r\n\t\t\tretBLhm.put(\"error\", \"Method not found\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn retBLhm;\r\n\t}", "public BigDecimal getPRFT_AMT_PUSHDWN_FRM_ABV_INST() {\r\n return PRFT_AMT_PUSHDWN_FRM_ABV_INST;\r\n }", "public BigDecimal gettBlkr() {\n return tBlkr;\n }", "private double getBolsa() {\n\t\treturn bolsa;\n\t}", "@Override\r\n\tpublic double showbalanceDao() {\n\t\t\r\n\t\treturn temp.getCustBal();\r\n\t}" ]
[ "0.5644566", "0.52792287", "0.5222447", "0.5222447", "0.5210908", "0.5145094", "0.50706315", "0.503444", "0.50283957", "0.5007748", "0.49852598", "0.4971478", "0.49644908", "0.49428037", "0.49394172", "0.4909315", "0.48642617", "0.48553884", "0.48347682", "0.48139656", "0.4812337", "0.4812106", "0.479014", "0.47621036", "0.47462496", "0.4737299", "0.47279087", "0.47273964", "0.47265327", "0.47176626", "0.47110975", "0.47079092", "0.47052544", "0.46884733", "0.46813294", "0.4675789", "0.4669887", "0.4664388", "0.46548042", "0.46511215", "0.4632284", "0.46286514", "0.4623896", "0.45958096", "0.45889246", "0.45819935", "0.45816398", "0.45789665", "0.4577454", "0.45628995", "0.45625412", "0.45623007", "0.4553598", "0.45519134", "0.4550049", "0.45487007", "0.45454738", "0.45449427", "0.4535436", "0.45346066", "0.4529486", "0.4527197", "0.4525736", "0.4514867", "0.4512558", "0.4508677", "0.4507502", "0.45070115", "0.4506948", "0.45035392", "0.4503296", "0.44936028", "0.44913444", "0.44905356", "0.44879815", "0.4482731", "0.4476167", "0.44731048", "0.44712994", "0.44618794", "0.44520286", "0.44453415", "0.44446105", "0.4441547", "0.44384062", "0.44372493", "0.44348463", "0.44332373", "0.44332004", "0.44330552", "0.4430477", "0.44303536", "0.44298294", "0.44288895", "0.4426423", "0.44250524", "0.44089362", "0.44067407", "0.44026822", "0.43976596" ]
0.61287075
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_ROUTE.BH_UTIL
public void setBhUtil(Float bhUtil) { this.bhUtil = bhUtil; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBLH(java.lang.String param) {\r\n localBLHTracker = param != null;\r\n\r\n this.localBLH = param;\r\n }", "void changeBTAddress() {\n\t\t\n\t\t// if ( this.beacon.getAppType() == AppType.APPLE_GOOGLE_CONTACT_TRACING ) {\n\t\tif ( this.useRandomAddr()) {\n\t\t\t// try to change the BT address\n\t\t\t\n\t\t\t// the address is LSB..MSB and bits 47:46 are 0 i.e. bits 0 & 1 of right-most byte are 0.\n\t\t\tbyte btRandomAddr[] = getBTRandomNonResolvableAddress();\n\t\t\t\n\t\t\t// generate the hcitool command string\n\t\t\tString hciCmd = getSetRandomBTAddrCmd( btRandomAddr);\n\t\t\t\n\t\t\tlogger.info( \"SetRandomBTAddrCmd: \" + hciCmd);\n\t\t\t\n\t\t\t// do the right thing...\n\t\t\tfinal String envVars[] = { \n\t\t\t\t\"SET_RAND_ADDR_CMD=\" + hciCmd\n\t\t\t};\n\t\t\t\t\t\t\n\t\t\tfinal String cmd = \"./scripts/set_random_addr\";\n\t\t\t\n\t\t\tboolean status = runScript( cmd, envVars, this, null);\n\t\t}\n\t\t\t\n\t}", "public Float getBhUtil() {\r\n return bhUtil;\r\n }", "public void setBp_hr(Integer bp_hr) {\r\n this.bp_hr = bp_hr;\r\n }", "public void setBlh(java.lang.String param) {\r\n localBlhTracker = param != null;\r\n\r\n this.localBlh = param;\r\n }", "public void setLBR_TaxBaseAmt (BigDecimal LBR_TaxBaseAmt);", "public void setBh(Integer bh) {\r\n this.bh = bh;\r\n }", "public void setLBR_TaxBase (BigDecimal LBR_TaxBase);", "public void setBetrag(double betrag) throws RemoteException;", "public void setLBR_TaxBaseOwnOperation (BigDecimal LBR_TaxBaseOwnOperation);", "public void setLBR_TaxDeferralAmt (BigDecimal LBR_TaxDeferralAmt);", "public void setLBR_TaxDeferralRate (BigDecimal LBR_TaxDeferralRate);", "public void setLBR_LatePaymentPenaltyAP (BigDecimal LBR_LatePaymentPenaltyAP);", "public void setLBR_ICMSST_TaxBAmtUFDes (BigDecimal LBR_ICMSST_TaxBAmtUFDes);", "public native void setRTOConstant (int RTOconstant);", "public void setLBR_TaxReliefAmt (BigDecimal LBR_TaxReliefAmt);", "public int balup(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}", "public void setDELB(java.lang.String param) {\r\n localDELBTracker = param != null;\r\n\r\n this.localDELB = param;\r\n }", "public void setUtil(Float util) {\r\n this.util = util;\r\n }", "public void setlbr_CPF (String lbr_CPF);", "private void setSeenServerToB(\n Seen.ServerToB.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 19;\n }", "public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}", "public void setLBR_DIFAL_TaxRateICMSUFDest (BigDecimal LBR_DIFAL_TaxRateICMSUFDest);", "public void setBalService(String balService) {\r\n\t\tthis.balService = balService;\r\n\t}", "private void setSeenServerToB(Seen.ServerToB value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 19;\n }", "public void setLBR_ICMSST_TaxBAmtWhd (BigDecimal LBR_ICMSST_TaxBAmtWhd);", "public void setLBR_ICMSST_TaxBaseAmt (BigDecimal LBR_ICMSST_TaxBaseAmt);", "public void setB(double b){\n this.b=b;\n }", "public void setlbr_IE (String lbr_IE);", "public void setB_(double b_) {\n\t\tthis.b_ = b_;\n\t}", "public void setBhDevVar(Long bhDevVar) {\r\n this.bhDevVar = bhDevVar;\r\n }", "public void setGBInterval_accession(java.lang.String param){\n \n this.localGBInterval_accession=param;\n \n\n }", "public void setLBR_ICMSST_TaxAmtUFDes (BigDecimal LBR_ICMSST_TaxAmtUFDes);", "public void setBASE_UOM(java.lang.String BASE_UOM) {\r\n this.BASE_UOM = BASE_UOM;\r\n }", "public void setLBR_DirectDebitNotice (String LBR_DirectDebitNotice);", "public void setGegenkontoBLZ(String blz) throws RemoteException;", "public void setBIOPHA(java.lang.Boolean BIOPHA) {\n this.BIOPHA = BIOPHA;\n }", "public void setBh(Float bh) {\r\n this.bh = bh;\r\n }", "public void setLBR_TaxAmt (BigDecimal LBR_TaxAmt);", "public java.lang.String getBLH() {\r\n return localBLH;\r\n }", "public void setBAA001(String BAA001) {\n this.BAA001 = BAA001;\n }", "void method_5902(ahb var1) {\r\n this.field_5516 = var1;\r\n super();\r\n }", "public void setLBR_SitNF (String LBR_SitNF);", "public void setB(double value) {\n this.b = value;\n }", "public void setACC_BR(BigDecimal ACC_BR) {\r\n this.ACC_BR = ACC_BR;\r\n }", "public String _setuser(b4a.HotelAppTP.types._user _u) throws Exception{\n_types._currentuser.username = _u.username;\n //BA.debugLineNum = 168;BA.debugLine=\"Types.currentuser.password = u.password\";\n_types._currentuser.password = _u.password;\n //BA.debugLineNum = 169;BA.debugLine=\"Types.currentuser.available = u.available\";\n_types._currentuser.available = _u.available;\n //BA.debugLineNum = 170;BA.debugLine=\"Types.currentuser.ID = u.ID\";\n_types._currentuser.ID = _u.ID;\n //BA.debugLineNum = 171;BA.debugLine=\"Types.currentuser.TypeOfWorker = u.TypeOfWorker\";\n_types._currentuser.TypeOfWorker = _u.TypeOfWorker;\n //BA.debugLineNum = 172;BA.debugLine=\"Types.currentuser.CurrentTaskID = u.CurrentTaskID\";\n_types._currentuser.CurrentTaskID = _u.CurrentTaskID;\n //BA.debugLineNum = 173;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void setLBR_ICMSST_TaxBase (BigDecimal LBR_ICMSST_TaxBase);", "public void setBhUlTbfReq(Float bhUlTbfReq) {\r\n this.bhUlTbfReq = bhUlTbfReq;\r\n }", "public void setLBR_TaxRate (BigDecimal LBR_TaxRate);", "public void setBrightness(float bri) {\r\n\t\thsb[2] = bri;\r\n\t}", "public void setBKA001(String BKA001) {\n this.BKA001 = BKA001;\n }", "void setGoalRPM(double goalRPM);", "public void setLBR_ICMS_TaxBaseType (String LBR_ICMS_TaxBaseType);", "public void setLBR_ICMSST_TaxBaseType (String LBR_ICMSST_TaxBaseType);", "public void setLBR_DIFAL_TaxAmtICMSUFDest (BigDecimal LBR_DIFAL_TaxAmtICMSUFDest);", "public void setRoadwayRef(java.lang.String roadwayRef)\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(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.setStringValue(roadwayRef);\r\n }\r\n }", "public void setBhHosucr(Float bhHosucr) {\r\n this.bhHosucr = bhHosucr;\r\n }", "public void setB(String b) {\n this.b = b == null ? null : b.trim();\n }", "public void setLBR_DIFAL_TaxAmtICMSUFRemet (BigDecimal LBR_DIFAL_TaxAmtICMSUFRemet);", "public void setBhIhosucr(Float bhIhosucr) {\r\n this.bhIhosucr = bhIhosucr;\r\n }", "private void setHeader(ObaResponse routeInfo, boolean addToDb) { \n mRouteInfo = routeInfo;\n \n TextView empty = (TextView)findViewById(android.R.id.empty);\n \n if (routeInfo.getCode() == ObaApi.OBA_OK) {\n ObaRoute route = routeInfo.getData().getAsRoute();\n TextView shortNameText = (TextView)findViewById(R.id.short_name);\n TextView longNameText = (TextView)findViewById(R.id.long_name);\n TextView agencyText = (TextView)findViewById(R.id.agency);\n \n String shortName = route.getShortName();\n String longName = route.getLongNameOrDescription();\n \n shortNameText.setText(shortName);\n longNameText.setText(longName);\n agencyText.setText(route.getAgencyName());\n \n if (addToDb) {\n RoutesDbAdapter.addRoute(this, route.getId(), shortName, longName, true); \n }\n }\n else {\n empty.setText(R.string.generic_comm_error);\n }\n }", "public void setRoutingNo (String RoutingNo);", "public void setLBR_DIFAL_TaxBaseFCPUFDest (BigDecimal LBR_DIFAL_TaxBaseFCPUFDest);", "public void setLBR_ProtestCode (String LBR_ProtestCode);", "public native void setRTOFactor (double RTOfactor);", "public void setGetYYT_XXBGResult(java.lang.String param) {\r\n localGetYYT_XXBGResultTracker = param != null;\r\n\r\n this.localGetYYT_XXBGResult = param;\r\n }", "public void setUtility (int row, int col, double utility) {\n environmentUtilities[row][col].setUtility(utility);\n }", "public void setRoadwayPI(double roadwayPI)\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.setDoubleValue(roadwayPI);\r\n }\r\n }", "public void setLBR_TaxAmtCredit (BigDecimal LBR_TaxAmtCredit);", "void setENBL(boolean L_flgSTAT)\n\t{ \n\t\tsuper.setENBL(L_flgSTAT);\n\t\ttblPRTLS.clrTABLE();\n\t\ttblGRPLS.clrTABLE();\n\t\ttxtPRTTP.setText(\"C\");\n\t\ttblPRTLS.cmpEDITR[TB1_CHKFL].setEnabled(false);\n\t\ttblPRTLS.cmpEDITR[TB1_PRTCD].setEnabled(false);\n\t\ttblPRTLS.cmpEDITR[TB1_PRTNM].setEnabled(false);\n\t\ttblPRTLS.cmpEDITR[TB1_ADD01].setEnabled(false);\n\t\ttblPRTLS.cmpEDITR[TB1_ZONCD].setEnabled(false);\n\t\t//txtPRTTP.setEnabled(false);\n\t\ttblGRPLS.cmpEDITR[TB2_CHKFL].setEnabled(false);\n\t\ttblGRPLS.cmpEDITR[TB2_PRTCD].setEnabled(false);\n\t\ttblGRPLS.cmpEDITR[TB2_PRTNM].setEnabled(false);\n\t\ttblGRPLS.cmpEDITR[TB2_ADD01].setEnabled(false);\n\t\ttblGRPLS.cmpEDITR[TB2_ZONCD].setEnabled(false);\n\t\tchkNEWRE.setEnabled(false);\n\t\tchkSTRFL.setEnabled(true);\n\t\tchkNEWRE.setVisible(false);\n\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPADD_pbst))\n\t\t{\n\t\t\ttblPRTLS.cmpEDITR[TB1_CHKFL].setEnabled(true);\n\t\t\tchkNEWRE.setEnabled(true);\n\t\t\tchkNEWRE.setVisible(true);\n\t\t}\n\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPDEL_pbst))\n\t\t{\n\t\t\ttblGRPLS.cmpEDITR[TB2_CHKFL].setEnabled(true);\n\t\t}\n\t}", "public void setGBInterval_interbp(gov.nih.nlm.ncbi.www.soap.eutils.efetch_seq.GBInterval_interbp_type0 param){\n localGBInterval_interbpTracker = param != null;\n \n this.localGBInterval_interbp=param;\n \n\n }", "public void setBKA246(String BKA246) {\n this.BKA246 = BKA246;\n }", "public void setBUKRS(java.lang.String BUKRS) {\n this.BUKRS = BUKRS;\n }", "private void setLoadBalance() {\n deleteAllChildren(\"/soa/config/service\");\n\n Properties prop = new Properties();\n try {\n InputStream in = StaticInfoHelper.class.getClassLoader().getResourceAsStream(\"config.properties\");\n prop.load(in);\n } catch (IOException e) {\n LOGGER.error(\"error reading file config.properties\");\n LOGGER.error(e.getMessage(), e);\n }\n\n Iterator<Map.Entry<Object, Object>> it = prop.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<Object, Object> entry = it.next();\n Object key = entry.getKey();\n Object value = entry.getValue();\n String t_value = ((String) value).replaceAll(\"/\", \"=\");\n\n createConfigNodeWithData(\"/soa/config/service/\" + (String) key, t_value);\n }\n\n }", "public void setBase(LocatorIF base_address) {\n this.base_address = base_address;\n }", "public void B(BleViewModel bleViewModel) {\n this.p = bleViewModel;\n synchronized (this) {\n long l10 = this.H;\n long l11 = 64;\n this.H = l10 |= l11;\n }\n this.notifyPropertyChanged(12);\n super.requestRebind();\n }", "private void clearSeenServerToB() {\n if (rspCase_ == 19) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }", "public void setLBR_ICMS_TaxStatusTN (String LBR_ICMS_TaxStatusTN);", "public void setLBR_ICMSST_TaxBAmtUFSen (BigDecimal LBR_ICMSST_TaxBAmtUFSen);", "public void setLBR_TaxRateCredit (BigDecimal LBR_TaxRateCredit);", "public void setLBR_ICMS_TaxAmtOp (BigDecimal LBR_ICMS_TaxAmtOp);", "public void setBtrAudUid(Integer aBtrAudUid) {\n btrAudUid = aBtrAudUid;\n }", "private void setChangeHeadpicRsp(\n ChangeHeadpic.Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 17;\n }", "public void setSideB(double sideB)\r\n\t{\r\n\t\tthis.sideB=sideB;\r\n\t\t\r\n\t}", "public final void setBingRule(@org.jetbrains.annotations.NotNull()\n org.matrix.androidsdk.rest.model.bingrules.BingRule aBingRule) {\n }", "public void setRPH(String RPH) {\n this.RPH = RPH;\n }", "public void settUtil(BigDecimal tUtil) {\n this.tUtil = tUtil;\n }", "public final void setTrUtilController(TRUtilController trUtilController) {\r\n\t\tthis.trUtilController = trUtilController;\r\n\t}", "public void setBUSI_CODE(Integer BUSI_CODE) {\n this.BUSI_CODE = BUSI_CODE;\n }", "void setENBL(boolean L_flgSTAT)\n\t{ \n\t\tsuper.setENBL(L_flgSTAT);\t\t\n\t\t\t\n\t\t//TB1_QPRCD TB1_QPRDS TB1_UOMCD TB1_TSMCD\n\t\ttblQPRCD.cmpEDITR[TB1_QPRCD].setEnabled(false);\n\t\ttblQPRCD.cmpEDITR[TB1_QPRDS].setEnabled(false);\n\t\ttblQPRCD.cmpEDITR[TB1_UOMCD].setEnabled(false);\n\t\ttblQPRCD.cmpEDITR[TB1_TSMCD].setEnabled(false);\n\t\t\t\t\t\n\t\ttblDATA.cmpEDITR[TB2_INDNO].setEnabled(false);\n\t\ttblDATA.cmpEDITR[TB2_INVNO].setEnabled(false);\n\t\ttblDATA.cmpEDITR[TB2_BYRCD].setEnabled(false);\n\t\ttblDATA.cmpEDITR[TB2_CNTNO].setEnabled(false);\n\t\ttblDATA.cmpEDITR[TB2_PRDDS].setEnabled(false);\n\t\ttblDATA.cmpEDITR[TB2_INVQT].setEnabled(false);\n\t\ttblDATA.cmpEDITR[TB2_LADNO].setEnabled(false);\n\t\ttblDATA.cmpEDITR[TB2_SALTP].setEnabled(false);\n\t\ttblDATA.cmpEDITR[TB2_MKTTP].setEnabled(false);\n\t}", "public void init() throws Exception {\n List<String> bridges = VsctlCommand.listBridge();\n if (!bridges.contains(bridgeName)) {\n //throw new PhyBridgeNotFound();\n }\n\n /**\n *2.Set bridge datapath_type: ovs-vsctl --may-exist add-br br-phy set Bridge br-int datapath_type=system\n *3.Set security mode: ovs-vsctl set-fail-mode br-phy secure\n *4.Delete controller: ovs-vsctl del-controller br-phy\n */\n super.init();\n\n /**\n * 6.Install normal flow: ovs-ofctl add-flows br-phy \"table=0, priority=0, actions=normal\"\n */\n addFlows(new OvsFlow(FLowTable.LOCAL_SWITCHING, 0, FlowAction.NORMAL));\n\n /**\n * 7.Create port: ovs-vsctl --may-exist add-port br-int int-xxx\n */\n ovsAgent.getOvsIntegrationBridge().addPort(intIfName);\n\n /**\n * 8.Create port: ovs-vsctl --may-exist add-port br-phy phy-xxx\n */\n addPort(phyIfName);\n\n /**\n * 9.Drop flows: ovs-ofctl add-flows br-int \"table=O, priority=2, in_port=int_if_name, actions=drop\"\n */\n ovsAgent.getOvsIntegrationBridge().addFlows(\n new OvsFlow(FLowTable.LOCAL_SWITCHING, 2, intIfName, FlowAction.DROP));\n\n /**\n * 10.Drop flows: ovs-ofctl add-flows br-phy \"table=O, priority=2, i n_port=phys_if_name, actions=drop\"\n */\n addFlows(new OvsFlow(FLowTable.LOCAL_SWITCHING, 2, phyIfName, FlowAction.DROP));\n\n //11.Set status(up) and mtu\n }", "public void setGHLBDM(java.lang.String param) {\r\n localGHLBDMTracker = param != null;\r\n\r\n this.localGHLBDM = param;\r\n }", "public void setBhGulTraf(Float bhGulTraf) {\r\n this.bhGulTraf = bhGulTraf;\r\n }", "public void setManaged(String fUnr) {\n\n Connection c;\n\n try {\n c = DriverManager.getConnection(CONN_STRING, USERNAME, PASSWORD);\n //SQL FOR SELECTING ALL OF CUSTOMER\n\n String SQL = \"UPDATE luggage SET LFDM = 'Managed' WHERE Unr = \" + \"'\" + fUnr + \"'\";\n\n //ResultSet\n Statement st = c.createStatement();\n st.executeUpdate(SQL);\n\n } catch (Exception e) {\n e.printStackTrace();\n System.out.println(\"Error on Building Data\");\n }\n\n }", "private void setAddFriendBToServer(\n AddFriend.BToServer.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 2;\n }", "public void setLBR_MDFeUnload_ID (int LBR_MDFeUnload_ID);", "public void increase_BUIBYDryingFactor(){\r\n\tBUO=BUO+DF;\r\n}", "public void transferWrite( String sContract,String sMchCode,String sMchNameDes,String sMchCodeCont,String sTestPointId,String sPmNo,String pmDescription,String insNote) \n {\n ASPManager mgr = getASPManager();\n String repby=null;\n\n cmd = trans.addEmptyCommand(\"HEAD\",\"FAULT_REPORT_API.New__\",headblk);\n cmd.setOption(\"ACTION\",\"PREPARE\");\n trans = mgr.perform(trans);\n data = trans.getBuffer(\"HEAD/DATA\");\n\n trans.clear();\n cmd = trans.addCustomFunction(\"GETUSER\",\"Fnd_Session_API.Get_Fnd_User\",\"ISUSER\");\n\n cmd = trans.addCustomFunction(\"GETREPBY\",\"Person_Info_API.Get_Id_For_User\",\"REPORTED_BY\");\n cmd.addReference(\"ISUSER\",\"GETUSER/DATA\");\n\n cmd = trans.addCustomFunction(\"REPBYID\",\"Company_Emp_API.Get_Max_Employee_Id\",\"REPORTED_BY_ID\");\n cmd.addParameter(\"COMPANY\",data.getFieldValue(\"COMPANY\"));\n cmd.addReference(\"REPORTED_BY\",\"GETREPBY/DATA\");\n\n trans = mgr.perform(trans);\n repby = trans.getValue(\"GETREPBY/DATA/REPORTED_BY\");\n reportById = trans.getValue(\"REPBYID/DATA/REPORTED_BY_ID\");\n\n data.setValue(\"REPORTED_BY\",repby);\n data.setValue(\"REPORTED_BY_ID\",reportById);\n data.setValue(\"CONTRACT\",sContract);\n data.setValue(\"MCH_CODE\",sMchCode);\n data.setValue(\"MCH_CODE_DESCRIPTION\",sMchNameDes);\n data.setValue(\"MCH_CODE_CONTRACT\",sMchCodeCont);\n data.setValue(\"TEST_POINT_ID\",sTestPointId);\n data.setValue(\"PM_NO\",sPmNo);\n data.setValue(\"PM_DESCR\",pmDescription);\n data.setValue(\"NOTE\",insNote);\n //Bug 76003, start\n data.setValue(\"CONNECTION_TYPE_DB\",\"EQUIPMENT\");\n //Bug 76003, end\n\n headset.addRow(data);\n }", "public void setLBR_PartialPayment (String LBR_PartialPayment);", "public void setGetYYT_XDTBGResult(java.lang.String param) {\r\n localGetYYT_XDTBGResultTracker = param != null;\r\n\r\n this.localGetYYT_XDTBGResult = param;\r\n }" ]
[ "0.5412002", "0.5142926", "0.51197433", "0.4936926", "0.4913945", "0.49127817", "0.48832503", "0.4859954", "0.4852124", "0.48058897", "0.47881472", "0.4746835", "0.47446817", "0.4740167", "0.4736594", "0.4723749", "0.4684541", "0.4660746", "0.46574563", "0.46551734", "0.46292657", "0.46241188", "0.46151942", "0.4614788", "0.4612742", "0.46105716", "0.46096215", "0.45973825", "0.45919862", "0.4582773", "0.45824507", "0.45611134", "0.45604578", "0.45540997", "0.45475456", "0.45387542", "0.45152333", "0.45089412", "0.45045704", "0.4503555", "0.44989374", "0.44892642", "0.44875538", "0.44738355", "0.44583496", "0.44387788", "0.443693", "0.44358832", "0.44336748", "0.44311118", "0.44299164", "0.44264594", "0.44081068", "0.44080728", "0.43973935", "0.4382277", "0.43668556", "0.43616563", "0.43604484", "0.4359723", "0.4356993", "0.43515295", "0.43511966", "0.4349547", "0.43384495", "0.43369424", "0.43358678", "0.43334728", "0.43310878", "0.43301103", "0.43254057", "0.43206525", "0.43202114", "0.43199524", "0.43086115", "0.43073067", "0.43056658", "0.43008572", "0.4294982", "0.4294292", "0.4286827", "0.4286315", "0.42820492", "0.4277028", "0.42734334", "0.42723638", "0.42689058", "0.42685315", "0.42620525", "0.4261819", "0.42595544", "0.42374045", "0.42362255", "0.42358252", "0.42298493", "0.42221925", "0.4222168", "0.42121786", "0.42117465", "0.4206193" ]
0.6068474
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_DY_ROUTE.BH_DEV_VAR
public Long getBhDevVar() { return bhDevVar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBhDevVar(Long bhDevVar) {\r\n this.bhDevVar = bhDevVar;\r\n }", "public static C6306b m24933b(C6531d dVar) {\n if (dVar == null) {\n throw new IllegalArgumentException(\"Parameters must not be null.\");\n }\n C6306b bVar = (C6306b) dVar.mo22751a(\"http.route.forced-route\");\n if (bVar == null || !f20831b.equals(bVar)) {\n return bVar;\n }\n return null;\n }", "public String getJdevBh() {\n return jdevBh;\n }", "public String getVariable()\n {\n return this.strVariable;\n }", "public java.lang.String getBLH() {\r\n return localBLH;\r\n }", "@Override\n public int getBindingVariable() {\n return BR.data;\n }", "@Override\n public int getBindingVariable() {\n return BR.data;\n }", "public java.lang.Double getVar40() {\n return var40;\n }", "@JsonIgnore public String getDepartureTerminal() {\n return (String) getValue(\"departureTerminal\");\n }", "public java.lang.Double getVar40() {\n return var40;\n }", "private static int m100696d(ICatalogVHRightTopTag fVar, CatalogVHData bVar) {\n switch (C19280g.f71279b[bVar.mo91905l().ordinal()]) {\n case 1:\n return DisplayUtils.m87171b(BaseApplication.INSTANCE, 3.0f);\n case 2:\n case 3:\n case 4:\n return DisplayUtils.m87171b(BaseApplication.INSTANCE, 10.0f);\n case 5:\n return DisplayUtils.m87171b(BaseApplication.INSTANCE, 6.0f);\n default:\n return 0;\n }\n }", "public short getBcdDevice() {\r\n\t\treturn bcdDevice;\r\n\t}", "public java.lang.String getGetYYT_YDBGResult() {\r\n return localGetYYT_YDBGResult;\r\n }", "public java.lang.String getDELB() {\r\n return localDELB;\r\n }", "public String getBucd() {\r\n return bucd;\r\n }", "public static C6555l m24932a(C6531d dVar) {\n if (dVar == null) {\n throw new IllegalArgumentException(\"Parameters must not be null.\");\n }\n C6555l lVar = (C6555l) dVar.mo22751a(\"http.route.default-proxy\");\n if (lVar == null || !f20830a.equals(lVar)) {\n return lVar;\n }\n return null;\n }", "public String getEddyb() {\n return eddyb;\n }", "private static String m26583b(C8853b bVar) {\n return bVar.f24088c;\n }", "public static void read_Environment_Variable_for_Web() {\n\t\tProperties prop = new Properties();\n\t\tInputStream input = null;\n\n\t\ttry {\n\n\t\t\tinput = new FileInputStream(\"/Environment File/environmentVariableForWebProduction2.properties\");\n\n\t\t\t// load a properties file\n\t\t\tprop.load(input);\n\n\t\t\t// get the property value and print it out\n\t\t Map<String, Object> map = new HashMap<>();\n\t\t\tfor (Entry<Object, Object> entry : prop.entrySet()) {\n\t\t\t\tmap.put((String) entry.getKey(), entry.getValue());\n\t\t\t}\n\t\t\tEnvironmentVariablesForWeb.setEnvironmentPropertyMap(map);\n\t\t\t/*EnvironmentVariables.PLATFORM_NAME = prop.getProperty(\"PLATFORM_NAME\");\n\t\t\tEnvironmentVariables.VERSION_NAME = prop.getProperty(\"VERSION_NAME\");\n\t\t\tEnvironmentVariables.DEVICE_NAME = prop.getProperty(\"DEVICE_NAME\");\n\t\t\tSystem.out.println(EnvironmentVariables.PLATFORM_NAME);\n\t\t\tSystem.out.println(EnvironmentVariables.VERSION_NAME);\n\t\t\tSystem.out.println(EnvironmentVariables.DEVICE_NAME);*/\n\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\tif (input != null) {\n\t\t\t\ttry {\n\t\t\t\t\tinput.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t }", "public java.lang.String getVariableValue() {\r\n return variableValue;\r\n }", "public java.lang.Integer getVar55() {\n return var55;\n }", "public java.lang.Integer getVar55() {\n return var55;\n }", "public java.lang.String getGetYYT_DTXDTBGResult() {\r\n return localGetYYT_DTXDTBGResult;\r\n }", "public String getBzdw() {\n return bzdw;\n }", "public java.lang.String getGHLBDM() {\r\n return localGHLBDM;\r\n }", "public static String getEnvironmentVariableValue(String strVariable) {\r\n return System.getenv(strVariable);\r\n }", "public short getBcdUSB() {\r\n\t\treturn bcdUSB;\r\n\t}", "public org.apache.axis2.databinding.types.soapencoding.String getGetDownLoadCardReturn(){\n return localGetDownLoadCardReturn;\n }", "char getBusLine()\n\t{\n\t\treturn this.BUSline;\n\t\t\n\t}", "public String getDevID() {\n return devID;\n }", "public String getVariable();", "public Integer getBp_dp() {\r\n return bp_dp;\r\n }", "public String getOutBoundFlag(String appKey) throws DataServiceException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t\tString outBoundFlag = \"\";\r\n\t\ttry{\r\n\t\t\toutBoundFlag = (String) queryForObject(\"getAppFlagValue.query\",appKey);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tLOGGER.error(\"Exception in getting outboundFlag value \" + e.getMessage(), e);\r\n\t\t\r\n\t\t}\r\n\t\treturn outBoundFlag;\r\n\t\r\n\t}", "public java.lang.Boolean getVar56() {\n return var56;\n }", "public java.lang.String getDRGFF() {\n return DRGFF;\n }", "public java.lang.String getBlh() {\r\n return localBlh;\r\n }", "private String getValue(final VariableInstanceInfo variableInstanceInfo) {\r\n try {\r\n return getDesignerProxy().getVariableValue(getShell(), variableInstanceInfo, false);\r\n }\r\n catch (Exception ex) {\r\n PluginMessages.uiError(ex, \"Retrieve Variable\", process.getProject());\r\n return ex.getMessage();\r\n }\r\n }", "public String getFddbr() {\r\n return fddbr;\r\n }", "public int getRRPP(){\n return RRPP; \n }", "public java.lang.String getFirmwareField() {\n return firmwareField;\n }", "private static String m100694b(ICatalogVHRightTopTag fVar, CatalogVHData bVar) {\n switch (C19280g.f71278a[bVar.mo91905l().ordinal()]) {\n case 1:\n return bVar.mo91891b(true);\n case 2:\n return bVar.mo91891b(true);\n default:\n return bVar.mo91891b(false);\n }\n }", "public java.lang.String getDMBTR() {\n return DMBTR;\n }", "public java.lang.Double getVar219() {\n return var219;\n }", "public String getAdr2() {\n return adr2;\n }", "public Float getHsdpaDrpr() {\n return hsdpaDrpr;\n }", "public java.lang.Boolean getVar56() {\n return var56;\n }", "public String getVariable() {\n return variable;\n }", "public java.lang.String getBNAMD() {\n return BNAMD;\n }", "public java.lang.String getDylb() {\r\n return localDylb;\r\n }", "public String variable()\n\t{\n\t\treturn _var;\n\t}", "java.lang.String getVarValue();", "public String getDepartureFlightDetails(){\n waitForPageToLoad();\n String details =driver.findElement(oDepFlightDetails).getText();\n logger.debug(\"departure flight details is:\" + details);\n return details;\n }", "public String getTUNGAY()\n {\n return this.TUNGAY;\n }", "public java.lang.Double getVar219() {\n return var219;\n }", "protected String getMyVarPath(String path){\n\t\treturn \"getVariableData('\"+VARNAME+\"', 'part1', '/nswomoxsd:receive/nswomoxsd:evt/\"+path+\"') \";\n\t}", "public java.lang.Boolean getVar164() {\n return var164;\n }", "public BigDecimal getLBR_DIFAL_TaxBaseFCPUFDest();", "public String getvAbrtmon() {\n return vAbrtmon;\n }", "public Double visitVariable(simpleCalcParser.VariableContext ctx){\n\t\tString varname = ctx.x.getText();\n\t\tDouble d = env.get(varname);\n\t\tif (d==null){\n\t\t\tSystem.err.println(\"Variable \" + varname + \" is not defined. \\n\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t \treturn d;\n \t}", "public String getBaseBandVersion() {\n return SystemProperties.get(\"gsm.version.baseband\", \"Unknown\");\n }", "public byte getBDeviceSubClass() {\r\n\t\treturn bDeviceSubClass;\r\n\t}", "public java.lang.Double getVar210() {\n return var210;\n }", "public java.lang.Boolean getVar164() {\n return var164;\n }", "public double getBrrm() {\n return brrm;\n }", "String getVariable();", "public String getVar()\n {\n return var;\n }", "public double getVWAP() {\n return vwap;\n }", "java.lang.String getField1280();", "public java.lang.String getDYPT() {\r\n return localDYPT;\r\n }", "public java.lang.String getDYPT() {\r\n return localDYPT;\r\n }", "protected Element myVar(){\n\t\treturn el(\"bpws:variable\", new Node[]{\n\t\t\t\tattr(\"messageType\", \"nswomo:receiveMessage\"),\n\t\t\t\tattr(\"name\", VARNAME)\n\t\t});\n\t}", "public java.lang.Double getVar58() {\n return var58;\n }", "public static String m580h() {\r\n try {\r\n BluetoothAdapter defaultAdapter = BluetoothAdapter.getDefaultAdapter();\r\n return (defaultAdapter == null || defaultAdapter.isEnabled()) ? defaultAdapter.getAddress() : bi_常量类.f6358b_空串;\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }", "public int getID_BBDD()\n\t{\n\t\treturn this.ID_BBDD;\n\t}", "@Override\r\n\tpublic int getRDevInfo() {\r\n\t\treturn 0x08100802; // Diag-x24 Ry+1 on VM/370R6 Sixpack 1.2 for a 3420 as 181 with or without a mounted tape\r\n\t}", "public java.lang.Double getVar210() {\n return var210;\n }", "java.lang.String getField1071();", "public java.lang.Double getVar76() {\n return var76;\n }", "public String getVal(String key) {\n Optional<KeyValList> kv = findKeyVal(key);\n\n if (kv.isPresent()) {\n return kv.get().getCfgVal();\n }\n\n return null;\n }", "public String getRsv2() {\r\n return rsv2;\r\n }", "public String getAgentPort() {\n return (String)getAttributeInternal(AGENTPORT);\n }", "public Float getHsupaDrpr() {\n return hsupaDrpr;\n }", "@TableElement(index = 0, name = \"Variable\")\n public @NonNull String getVariable() {\n return variable;\n }", "public java.lang.Double getVar85() {\n return var85;\n }", "public String getDPBuchtitel(){\n\t\treturn this.m_sDPBuchtitel;\n\t}", "public String getVar() {\n\t\treturn state.get(PropertyKeys.var);\n\t}", "@JsonIgnore public String getArrivalTerminal() {\n return (String) getValue(\"arrivalTerminal\");\n }", "public java.lang.Double getVar76() {\n return var76;\n }", "public java.lang.Double getVar192() {\n return var192;\n }", "public String getB() {\n return b;\n }", "public java.lang.Boolean getVar110() {\n return var110;\n }", "public java.lang.Boolean getDRGPRICEY() {\n return DRGPRICEY;\n }", "public java.lang.Double getVar192() {\n return var192;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getTerminalDownloadQueryForDayReturn(){\n return localTerminalDownloadQueryForDayReturn;\n }", "public String getDeviceIp(){\n\t return deviceIP;\n }", "public java.lang.Double getVar58() {\n return var58;\n }", "public java.lang.Double getVar175() {\n return var175;\n }", "public BigDecimal getLBR_DIFAL_TaxRateFCPUFDest();", "public double getHvacStateValue() {\r\n return hvacStateValue;\r\n }", "public java.lang.String getBrxm() {\r\n return brxm;\r\n }" ]
[ "0.54609954", "0.5185809", "0.517912", "0.49696296", "0.49631548", "0.48916447", "0.48916447", "0.4775368", "0.47569022", "0.4754328", "0.47337666", "0.4730721", "0.4720728", "0.46984714", "0.4691945", "0.46730274", "0.4666571", "0.46396193", "0.46103033", "0.4607356", "0.46072543", "0.4605681", "0.4605225", "0.46029362", "0.45876247", "0.45869428", "0.4582955", "0.45693174", "0.45692584", "0.4559445", "0.45567703", "0.4554851", "0.4551362", "0.4539282", "0.4533357", "0.4529928", "0.45240608", "0.45221138", "0.4520038", "0.4516869", "0.4510409", "0.45063108", "0.45049426", "0.45044705", "0.45024005", "0.44968662", "0.44957176", "0.44805947", "0.44800544", "0.44754413", "0.44747198", "0.44710302", "0.44705805", "0.44702592", "0.4469381", "0.4467664", "0.4463011", "0.4459994", "0.44545102", "0.44497663", "0.44385266", "0.44202492", "0.4417145", "0.44168758", "0.44134507", "0.44058073", "0.4401774", "0.43989745", "0.4398896", "0.4398896", "0.43920398", "0.43904334", "0.43903068", "0.43875775", "0.43857682", "0.4384771", "0.43824333", "0.43812615", "0.43807322", "0.43773252", "0.43766263", "0.43758836", "0.4370925", "0.4368013", "0.43677855", "0.4360631", "0.4360535", "0.43594468", "0.43539155", "0.43530047", "0.43527868", "0.43522686", "0.4347835", "0.43475485", "0.43467194", "0.433994", "0.43395707", "0.43389606", "0.43325862", "0.43325174" ]
0.6536251
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_ROUTE.BH_DEV_VAR
public void setBhDevVar(Long bhDevVar) { this.bhDevVar = bhDevVar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getBhDevVar() {\r\n return bhDevVar;\r\n }", "public void mo31899a(C7300a aVar) {\n this.dBv = aVar;\n }", "public final synchronized void mo39719a(C15630dn dnVar) {\n this.f40700A = dnVar;\n }", "public final synchronized void mo39718a(C15617da daVar) {\n this.f40701B = daVar;\n }", "public void setDevID(String devID) {\n this.devID = devID;\n }", "public static C6306b m24933b(C6531d dVar) {\n if (dVar == null) {\n throw new IllegalArgumentException(\"Parameters must not be null.\");\n }\n C6306b bVar = (C6306b) dVar.mo22751a(\"http.route.forced-route\");\n if (bVar == null || !f20831b.equals(bVar)) {\n return bVar;\n }\n return null;\n }", "public void setJdevBh(String jdevBh) {\n this.jdevBh = jdevBh;\n }", "public void setLBR_LatePaymentPenaltyAP (BigDecimal LBR_LatePaymentPenaltyAP);", "public void setDELB(java.lang.String param) {\r\n localDELBTracker = param != null;\r\n\r\n this.localDELB = param;\r\n }", "public static void setRd(byte rd) {\n MEMWBRegister.rd = rd;\n }", "public static final void setVar(final Str varNum, String val, final boolean upperFy) {\n if (val == null)\n val = \"\";\n setUpLowVar(varNum, upperFy ? val.toUpperCase() : val);\n }", "public final synchronized void mo39716a(C15345b bVar) {\n this.f40730l = bVar;\n }", "private void setS2BRelay(\n PToP.S2BRelay.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 24;\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 }", "private void setS2BRelay(PToP.S2BRelay value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 24;\n }", "public void setBp_dp(Integer bp_dp) {\r\n this.bp_dp = bp_dp;\r\n }", "public void setRoadwayRef(java.lang.String roadwayRef)\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(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.setStringValue(roadwayRef);\r\n }\r\n }", "public com.dj.model.avro.LargeObjectAvro.Builder setVar40(java.lang.Double value) {\n validate(fields()[41], value);\n this.var40 = value;\n fieldSetFlags()[41] = true;\n return this;\n }", "public void setDefilade(int defiladeState);", "void changeBTAddress() {\n\t\t\n\t\t// if ( this.beacon.getAppType() == AppType.APPLE_GOOGLE_CONTACT_TRACING ) {\n\t\tif ( this.useRandomAddr()) {\n\t\t\t// try to change the BT address\n\t\t\t\n\t\t\t// the address is LSB..MSB and bits 47:46 are 0 i.e. bits 0 & 1 of right-most byte are 0.\n\t\t\tbyte btRandomAddr[] = getBTRandomNonResolvableAddress();\n\t\t\t\n\t\t\t// generate the hcitool command string\n\t\t\tString hciCmd = getSetRandomBTAddrCmd( btRandomAddr);\n\t\t\t\n\t\t\tlogger.info( \"SetRandomBTAddrCmd: \" + hciCmd);\n\t\t\t\n\t\t\t// do the right thing...\n\t\t\tfinal String envVars[] = { \n\t\t\t\t\"SET_RAND_ADDR_CMD=\" + hciCmd\n\t\t\t};\n\t\t\t\t\t\t\n\t\t\tfinal String cmd = \"./scripts/set_random_addr\";\n\t\t\t\n\t\t\tboolean status = runScript( cmd, envVars, this, null);\n\t\t}\n\t\t\t\n\t}", "public final C10803a mo25964b(C10805b bVar) {\n DmtDefaultView dmtDefaultView = new DmtDefaultView(this.f29078a);\n dmtDefaultView.setLayoutParams(new LayoutParams(-1, -1));\n dmtDefaultView.setStatus(bVar);\n this.f29081d = dmtDefaultView;\n return this;\n }", "private void setChangeHeadpicRsp(\n ChangeHeadpic.Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 17;\n }", "public void mo32106a(C7446a aVar) {\n this.dHG = aVar;\n }", "public void setDevid(Integer devid) {\n this.devid = devid;\n }", "public void setB(double value) {\n this.b = value;\n }", "public void setsvap() \n\t{\n\t\tthis.svap = svap;\n\t}", "private void setSeenServerToB(\n Seen.ServerToB.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 19;\n }", "public native void setRTOConstant (int RTOconstant);", "public void mo23981a(C4321b bVar) {\n C4207g.this.m17419a(bVar.f13979c, new C4206f(bVar).toJson().toString());\n }", "public void setB_(double b_) {\n\t\tthis.b_ = b_;\n\t}", "public void setLBR_DirectDebitNotice (String LBR_DirectDebitNotice);", "public void setRoadwayPI(double roadwayPI)\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.setDoubleValue(roadwayPI);\r\n }\r\n }", "private void setChatRecordRsp(\n ChatRecord.Rsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 11;\n }", "public void setB(double b){\n this.b=b;\n }", "public void setSideB(double sideB)\r\n\t{\r\n\t\tthis.sideB=sideB;\r\n\t\t\r\n\t}", "public void setGHLBDM(java.lang.String param) {\r\n localGHLBDMTracker = param != null;\r\n\r\n this.localGHLBDM = param;\r\n }", "public void setBLH(java.lang.String param) {\r\n localBLHTracker = param != null;\r\n\r\n this.localBLH = param;\r\n }", "public com.dj.model.avro.LargeObjectAvro.Builder setVar56(java.lang.Boolean value) {\n validate(fields()[57], value);\n this.var56 = value;\n fieldSetFlags()[57] = true;\n return this;\n }", "private void setS2Rsp(\n PToP.S2ARsp.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 23;\n }", "@PostMapping(value = \"/detector\")\n\tpublic void setDeviceValue(@RequestBody DeviceValue deviceValue, HttpServletRequest request, HttpServletResponse response) {\n\t\tvar deviceRequest = serviceCore.createDeviceRequest(deviceValue);\n\t\tserviceCore.setDeviceValue(deviceRequest, request, response);\n\t}", "void method_5902(ahb var1) {\r\n this.field_5516 = var1;\r\n super();\r\n }", "public com.dj.model.avro.LargeObjectAvro.Builder setVar45(java.lang.CharSequence value) {\n validate(fields()[46], value);\n this.var45 = value;\n fieldSetFlags()[46] = true;\n return this;\n }", "public void setVar40(java.lang.Double value) {\n this.var40 = value;\n }", "public void setFddbr(String fddbr) {\r\n this.fddbr = fddbr;\r\n }", "public Gateway setProduction(java.lang.Boolean production) {\n return genClient.setOther(production, CacheKey.production);\n }", "public void setEddyb(String eddyb) {\n this.eddyb = eddyb == null ? null : eddyb.trim();\n }", "public void xsetAntennaHeight(org.apache.xmlbeans.XmlDouble antennaHeight)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDouble target = null;\r\n target = (org.apache.xmlbeans.XmlDouble)get_store().find_attribute_user(ANTENNAHEIGHT$10);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlDouble)get_store().add_attribute_user(ANTENNAHEIGHT$10);\r\n }\r\n target.set(antennaHeight);\r\n }\r\n }", "public static /* synthetic */ void m125702b(DetailInfo axVar, ExtraInfo bjVar) {\n axVar.mo125533a().f106957t = 6570;\n axVar.mo125533a().f106947j = ZA.m91651i();\n }", "public void setLBR_LatePaymentPenaltyDays (int LBR_LatePaymentPenaltyDays);", "public void setVar56(java.lang.Boolean value) {\n this.var56 = value;\n }", "@Test(expected = org.apache.axis.NoEndPointException.class)\n\tpublic void testSetDatabaseProperty_5()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub((URL) null, new DeployWSServiceLocator());\n\t\tProperty[] aArguments = new Property[] {};\n\n\t\tfixture.setDatabaseProperty(aArguments);\n\n\t\t// add additional test code here\n\t}", "public void setVariable(String strVariable)\n {\n this.strVariable = strVariable;\n }", "public void setHvacStateValue(double value) {\r\n this.hvacStateValue = value;\r\n }", "public final void onChanged(com.iqoption.deposit.crypto.a.d dVar) {\n this.this$0.cFH = dVar;\n this.this$0.asz();\n this.this$0.asG();\n }", "public void mo30958a(SettableBeanProperty rVar) {\n this.f19936e = rVar;\n }", "@Test(expected = org.apache.axis.AxisFault.class)\n\tpublic void testSetDatabaseProperty_4()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tProperty[] aArguments = new Property[] {};\n\n\t\tfixture.setDatabaseProperty(aArguments);\n\n\t\t// add additional test code here\n\t}", "void setDevkey(String devkey);", "public static void m100693a(ICatalogVHRightTopTag fVar, CatalogVHData bVar) {\n GenericDraweeHierarchy aVar;\n C32569u.m150519b(bVar, C6969H.m41409d(\"G6D82C11B\"));\n ZHDraweeView h = fVar.mo91981h();\n if (!(h == null || (aVar = (GenericDraweeHierarchy) h.getHierarchy()) == null)) {\n aVar.mo28037a(m100695c(fVar, bVar));\n }\n ZHDraweeView h2 = fVar.mo91981h();\n if (h2 != null) {\n h2.setVisibility((bVar.mo91902i() || !bVar.mo91899g()) ? 4 : 0);\n }\n ZHDraweeView h3 = fVar.mo91981h();\n if (h3 != null) {\n h3.setImageURI(ImageUrlUtils.m83727a(m100694b(fVar, bVar), ImageUtils.EnumC16920a.SIZE_FHD));\n }\n }", "public void setDylb(java.lang.String param) {\r\n localDylbTracker = param != null;\r\n\r\n this.localDylb = param;\r\n }", "public void setBucd(String bucd) {\r\n this.bucd = bucd;\r\n }", "private void smem_variable_set(smem_variable_key variable_id, long variable_value) throws SQLException\n {\n final PreparedStatement var_set = db.var_set;\n \n var_set.setLong(1, variable_value);\n var_set.setInt(2, variable_id.ordinal());\n \n var_set.execute();\n }", "void updateViewToDevice()\n {\n if (!mBeacon.isConnected())\n {\n return;\n }\n\n KBCfgCommon oldCommonCfg = (KBCfgCommon)mBeacon.getConfigruationByType(KBCfgType.KBConfigTypeCommon);\n KBCfgCommon newCommomCfg = new KBCfgCommon();\n KBCfgEddyURL newUrlCfg = new KBCfgEddyURL();\n KBCfgEddyUID newUidCfg = new KBCfgEddyUID();\n try {\n //check if user update advertisement type\n int nAdvType = 0;\n if (mCheckBoxURL.isChecked()){\n nAdvType |= KBAdvType.KBAdvTypeEddyURL;\n }\n if (mCheckboxUID.isChecked()){\n nAdvType |= KBAdvType.KBAdvTypeEddyUID;\n }\n if (mCheckboxTLM.isChecked()){\n nAdvType |= KBAdvType.KBAdvTypeEddyTLM;\n }\n //check if the parameters changed\n if (oldCommonCfg.getAdvType() != nAdvType)\n {\n newCommomCfg.setAdvType(nAdvType);\n }\n\n //adv period, check if user change adv period\n Integer changeTag = (Integer)mEditBeaconAdvPeriod.getTag();\n if (changeTag > 0)\n {\n String strAdvPeriod = mEditBeaconAdvPeriod.getText().toString();\n if (Utils.isPositiveInteger(strAdvPeriod)) {\n Float newAdvPeriod = Float.valueOf(strAdvPeriod);\n newCommomCfg.setAdvPeriod(newAdvPeriod);\n }\n }\n\n //tx power ,\n changeTag = (Integer)mEditBeaconTxPower.getTag();\n if (changeTag > 0)\n {\n String strTxPower = mEditBeaconTxPower.getText().toString();\n Integer newTxPower = Integer.valueOf(strTxPower);\n if (newTxPower > oldCommonCfg.getMaxTxPower() || newTxPower < oldCommonCfg.getMinTxPower()) {\n toastShow(\"tx power not valid\");\n return;\n }\n newCommomCfg.setTxPower(newTxPower);\n }\n\n //device name\n String strDeviceName = mEditBeaconName.getText().toString();\n if (!strDeviceName.equals(oldCommonCfg.getName()) && strDeviceName.length() < KBCfgCommon.MAX_NAME_LENGTH) {\n newCommomCfg.setName(strDeviceName);\n }\n\n //uid config\n if (mCheckboxUID.isChecked())\n {\n KBCfgEddyUID oldUidCfg = (KBCfgEddyUID)mBeacon.getConfigruationByType(KBCfgType.KBConfigTypeEddyUID);\n String strNewNID = mEditEddyNID.getText().toString();\n String strNewSID = mEditEddySID.getText().toString();\n if (!strNewNID.equals(oldUidCfg.getNid()) && KBUtility.isHexString(strNewNID)){\n newUidCfg.setNid(strNewNID);\n }\n\n if (!strNewSID.equals(oldUidCfg.getSid()) && KBUtility.isHexString(strNewSID)){\n newUidCfg.setSid(strNewSID);\n }\n }\n\n //url config\n if (mCheckBoxURL.isChecked())\n {\n KBCfgEddyURL oldUrlCfg = (KBCfgEddyURL)mBeacon.getConfigruationByType(KBCfgType.KBConfigTypeEddyURL);\n String strUrl = mEditEddyURL.getText().toString();\n if (!strUrl.equals(oldUrlCfg.getUrl())){\n newUrlCfg.setUrl(strUrl);\n }\n }\n\n //TLM advertisement interval configuration (optional)\n if (mCheckboxTLM.isChecked()){\n //The default TLM advertisement interval is 10. The KBeacon will send 1 TLM advertisement packet every 10 advertisement packets.\n //newCommomCfg.setTLMAdvInterval(8);\n }\n }catch (KBException excpt)\n {\n toastShow(\"config data is invalid:\" + excpt.errorCode);\n excpt.printStackTrace();\n }\n\n ArrayList<KBCfgBase> cfgList = new ArrayList<>(3);\n cfgList.add(newCommomCfg);\n cfgList.add(newUidCfg);\n cfgList.add(newUrlCfg);\n mDownloadButton.setEnabled(false);\n mBeacon.modifyConfig(cfgList, new KBeacon.ActionCallback() {\n @Override\n public void onActionComplete(boolean bConfigSuccess, KBException error) {\n mDownloadButton.setEnabled(true);\n if (bConfigSuccess)\n {\n clearChangeTag();\n toastShow(\"config data to beacon success\");\n }\n else\n {\n if (error.errorCode == KBException.KBEvtCfgNoParameters)\n {\n toastShow(\"No data need to be config\");\n }\n else\n {\n toastShow(\"config failed for error:\" + error.errorCode);\n }\n }\n }\n });\n }", "public void xsetRoadwayPI(org.landxml.schema.landXML11.Station roadwayPI)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.Station)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.set(roadwayPI);\r\n }\r\n }", "public void setC_BPartner_ID (int C_BPartner_ID);", "public void setBp_hr(Integer bp_hr) {\r\n this.bp_hr = bp_hr;\r\n }", "public void setBSCA_PrintPrice2 (String BSCA_PrintPrice2);", "public com.dj.model.avro.LargeObjectAvro.Builder setVar94(java.lang.Double value) {\n validate(fields()[95], value);\n this.var94 = value;\n fieldSetFlags()[95] = true;\n return this;\n }", "public void setProductLine(entity.APDProductLine value);", "public com.dj.model.avro.LargeObjectAvro.Builder setVar54(java.lang.CharSequence value) {\n validate(fields()[55], value);\n this.var54 = value;\n fieldSetFlags()[55] = true;\n return this;\n }", "public void setVariableB(int value) {\r\n setVariableB(value, \"No Comment\");\r\n }", "public static void setSystolicBP (double sBP){//2.20, n3, systolic blood pressure\n\t\tif (0.00<=sBP && sBP<=999.99){\n\t\t\tsystolicBP = sBP;\n\t\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Invalid Entry\");\n\t\t// set additional fields to visible here\n\t\t}\n\t}", "public void setLBR_SitNF (String LBR_SitNF);", "public void setBENEF_ADDRESS(String BENEF_ADDRESS) {\r\n this.BENEF_ADDRESS = BENEF_ADDRESS == null ? null : BENEF_ADDRESS.trim();\r\n }", "public void changeDeadband(double deadband) {\n\t\tDEAD_BAND = deadband;\n\t}", "public void setBetrag(double betrag) throws RemoteException;", "public void setRoutingNo (String RoutingNo);", "public void setGPSAntennaDetailsID(java.lang.String gpsAntennaDetailsID)\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(GPSANTENNADETAILSID$14);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(GPSANTENNADETAILSID$14);\r\n }\r\n target.setStringValue(gpsAntennaDetailsID);\r\n }\r\n }", "public void setAntennaHeight(double antennaHeight)\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(ANTENNAHEIGHT$10);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ANTENNAHEIGHT$10);\r\n }\r\n target.setDoubleValue(antennaHeight);\r\n }\r\n }", "protected void SetVariable(SB_ExecutionFrame contextFrame, SB_Variable var)\r\n\t throws SB_Exception\r\n\t{\r\n\t\tSB_Variable classVar = contextFrame.GetVariable(_varName);\r\n\t\t\t\t\r\n\t\tif( classVar != null)\r\n\t\t{\r\n\t\t Object obj = classVar.getValue();\r\n\t\t\tClass cls = obj.getClass();\r\n\t\t\t\r\n\t\t\tif( !SetClassMemberField(cls, obj, _varMember, SB_SimInterface.ConvertObject(var)))\r\n\t\t\t{\r\n\t\t\t throw new SB_Exception(\"Can't find \" + _varName +\".\" + _varMember);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setLBR_TaxDeferralRate (BigDecimal LBR_TaxDeferralRate);", "public com.dj.model.avro.LargeObjectAvro.Builder setVar57(java.lang.Double value) {\n validate(fields()[58], value);\n this.var57 = value;\n fieldSetFlags()[58] = true;\n return this;\n }", "public void setDynamicBrakeMode(boolean brakeFL, boolean brakeRL, boolean brakeFR, boolean brakeRR) {\n kFrontLeft.setNeutralMode(brakeFL? NeutralMode.Brake : NeutralMode.Coast);\n kRearLeft.setNeutralMode(brakeRL? NeutralMode.Brake : NeutralMode.Coast);\n kFrontRight.setNeutralMode(brakeFR? NeutralMode.Brake : NeutralMode.Coast);\n kRearRight.setNeutralMode(brakeRR? NeutralMode.Brake : NeutralMode.Coast);\n }", "public final void setDauwp(java.math.BigDecimal dauwp)\n\t{\n\t\tsetDauwp(getContext(), dauwp);\n\t}", "public void mo21830b(C7009b bVar) {\n mo21791P();\n }", "@ApiOperation(value=\"Bind\", notes=\"Bind action\")\n @RequestMapping(value=\"/user/bindDevices\",method = RequestMethod.POST)\n @ResponseBody\n public RetObject bindDevice(@ApiParam(value=\"bind device\", required = true)@RequestHeader(value = \"AppID\", required = false) String appID,\n\t\t\t\t\t@RequestHeader(value = \"PlatID\", required = true) String platID,\n\t\t\t\t\t@RequestHeader HttpHeaders httpHeaders,\n\t\t\t\t\t@ApiParam(name=\"Object\",value = \"RequestObject\",required = true)\n\t\t\t\t\t@RequestBody(required = false) BSHDeviceReqVO body){\n\tString url = \"/api/translator/user/bindDevices\";\n\tRetObject result = RetObject.deviceNotExist();\n\tMap<String,String> headerMap = new HashedMap();\n\theaderMap.put(\"AppID\", appID);\n\theaderMap.put(\"PlatID\", platID);\n\tString headers = getJSONString(headerMap);\n\tString bodyText = getJSONString(body);\n\tError headerError = validateHeaders(platID, appID);\n\tError bodyError = validateRequestBodyUserID(body);\n\tif (bodyError == null && headerError == null && body.getDeviceID() != null){\n\ttry{\n\t\tString s = udeviceIdConvert.decode(body.getDeviceID());\n\t\tif (s != null){\n\t\t\tresult = RetObject.success();\n\t\t}else{\n\t\t\tresult = RetObject.fail();\n}\n}catch(Error error){result = RetObject.fail();}catch(Exception exception){exception.printStackTrace();}\n\n}\n\treturn result;\n}", "public com.dj.model.avro.LargeObjectAvro.Builder setVar92(java.lang.Boolean value) {\n validate(fields()[93], value);\n this.var92 = value;\n fieldSetFlags()[93] = true;\n return this;\n }", "public void setAD_Tree_BPartner_ID(int AD_Tree_BPartner_ID) {\n\t\tif (AD_Tree_BPartner_ID <= 0)\n\t\t\tset_ValueNoCheck(\"AD_Tree_BPartner_ID\", null);\n\t\telse\n\t\t\tset_ValueNoCheck(\"AD_Tree_BPartner_ID\", new Integer(\n\t\t\t\t\tAD_Tree_BPartner_ID));\n\t}", "public com.dj.model.avro.LargeObjectAvro.Builder setVar85(java.lang.Double value) {\n validate(fields()[86], value);\n this.var85 = value;\n fieldSetFlags()[86] = true;\n return this;\n }", "public static void setDebug(int b) {\n debug = b;\n }", "public void setGateway(AGateway gateway)\r\n/* 21: */ {\r\n/* 22:41 */ this.gateway = gateway;\r\n/* 23: */ }", "public final C10803a mo25961a(C10805b bVar) {\n DmtDefaultView dmtDefaultView = new DmtDefaultView(this.f29078a);\n dmtDefaultView.setLayoutParams(new LayoutParams(-1, -1));\n dmtDefaultView.setStatus(bVar);\n this.f29080c = dmtDefaultView;\n return this;\n }", "public boolean setVariable(int n10, Object object) {\n int n11 = 149;\n if (n11 == n10) {\n object = (VersionInfo)object;\n this.D((VersionInfo)object);\n return 1 != 0;\n } else {\n n11 = 36;\n if (n11 == n10) {\n object = (Boolean)object;\n n10 = (int)(((Boolean)object).booleanValue() ? 1 : 0);\n this.C(n10 != 0);\n return 1 != 0;\n } else {\n n11 = 23;\n if (n11 != n10) return 0 != 0;\n object = (c$a)object;\n this.B((c$a)object);\n }\n }\n return 1 != 0;\n }", "void setGoalRPM(double goalRPM);", "public final void onChanged(com.iqoption.billing.wallet.b bVar) {\n com.iqoption.deposit.i l = this.this$0.cFK;\n if (l == null) {\n kotlin.jvm.internal.i.bnJ();\n }\n com.iqoption.billing.wallet.c KJ = bVar != null ? bVar.KJ() : null;\n if (KJ != null) {\n c.m(this.this$0).a(l, KJ.KK());\n }\n }", "@Test\n\tpublic void testSetDatabaseProperty_1()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tProperty[] aArguments = new Property[] {};\n\n\t\tfixture.setDatabaseProperty(aArguments);\n\n\t\t// add additional test code here\n\t}", "public void setBNAMD(java.lang.String BNAMD) {\n this.BNAMD = BNAMD;\n }", "public static void method_1145(boolean var0) {\r\n field_988 = var0;\r\n }", "void setDebugPort(Integer debugPort);", "public void xsetRoadwayRef(org.landxml.schema.landXML11.RoadwayNameRef roadwayRef)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.RoadwayNameRef target = null;\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().find_attribute_user(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.set(roadwayRef);\r\n }\r\n }", "public void setRingerDevice(String devid);" ]
[ "0.53290755", "0.50940233", "0.47658315", "0.47453", "0.46905792", "0.467622", "0.46758705", "0.46595076", "0.4650137", "0.46253273", "0.45798126", "0.45793185", "0.45575246", "0.45167062", "0.4509163", "0.44775024", "0.44732267", "0.44731376", "0.4470835", "0.44548336", "0.4446808", "0.44265366", "0.4419082", "0.4418862", "0.44074374", "0.4400999", "0.4399641", "0.4398246", "0.43967852", "0.4396016", "0.43919468", "0.43886262", "0.4375773", "0.43598795", "0.43527547", "0.43475938", "0.43444976", "0.43299642", "0.43276083", "0.43222862", "0.4320958", "0.43191147", "0.43118894", "0.43087655", "0.4308345", "0.4290777", "0.42852455", "0.42778936", "0.4275264", "0.42605332", "0.42536604", "0.42528397", "0.42496535", "0.42490402", "0.42465734", "0.42425683", "0.42418486", "0.42364764", "0.42233798", "0.4220417", "0.42196515", "0.42089212", "0.42054442", "0.42031142", "0.42027202", "0.42022493", "0.4201385", "0.41987544", "0.41920868", "0.41856846", "0.41832104", "0.4181703", "0.41796997", "0.41766003", "0.41740954", "0.41734472", "0.41714817", "0.41670993", "0.41659868", "0.41629356", "0.41617414", "0.41616285", "0.41520533", "0.41516906", "0.41500983", "0.4146027", "0.41437766", "0.4138577", "0.41369236", "0.41364825", "0.41348812", "0.41255355", "0.412407", "0.412234", "0.41219473", "0.41202435", "0.41191402", "0.4118588", "0.41134268", "0.41134182" ]
0.6462439
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column V_RP_DY_ROUTE.DATALOAD
public Float getDataload() { return dataload; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getDYPT() {\r\n return localDYPT;\r\n }", "public java.lang.String getDYPT() {\r\n return localDYPT;\r\n }", "public DTODireccion obtenerDireccionPorOID(Long oidDireccion) throws MareException {\n UtilidadesLog.info(\"DAOMAEMaestroClientes.obtenerDireccionPorOID(Long oidDireccion): Entrada\");\n \n BelcorpService bs = UtilidadesEJB.getBelcorpService();\n StringBuffer query = new StringBuffer();\n \n query.append(\" SELECT dir.tidc_oid_tipo_dire, dir.tivi_oid_tipo_via, val.oid_valo_estr_geop \");\n query.append(\" , dir.zvia_oid_via, dir.num_ppal, dir.val_cod_post, dir.val_obse \");\n query.append(\" , dir.ind_dire_ppal, dir.val_nomb_via, val.des_geog \");\n query.append(\" FROM mae_clien_direc dir\");\n query.append(\" , zon_valor_estru_geopo val\");\n query.append(\" , zon_terri terr \");\n query.append(\" WHERE DIR.OID_CLIE_DIRE = \").append(oidDireccion);\n query.append(\" AND dir.terr_oid_terr = terr.oid_terr\");\n query.append(\" AND terr.vepo_oid_valo_estr_geop = val.oid_valo_estr_geop \");\n \n RecordSet resultado = null;\n try {\n resultado = bs.dbService.executeStaticQuery(query.toString());\n } catch (Exception e) {\n String error = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(error));\n }\n \n DTODireccion dir = null;\n if (resultado != null && !resultado.esVacio()) {\n \n dir = new DTODireccion();\n \n dir.setOid(oidDireccion);\n dir.setTipoDireccion(UtilidadesBD.convertirALong(resultado.getValueAt(0, \"TIDC_OID_TIPO_DIRE\")));\n dir.setTipoVia(UtilidadesBD.convertirALong(resultado.getValueAt(0, \"TIVI_OID_TIPO_VIA\")));\n dir.setUnidadGeografica(UtilidadesBD.convertirALong(resultado.getValueAt(0, \"OID_VALO_ESTR_GEOP\")));\n dir.setVia(UtilidadesBD.convertirALong(resultado.getValueAt(0, \"ZVIA_OID_VIA\")));\n dir.setNumeroPrincipal((String)resultado.getValueAt(0, \"NUM_PPAL\"));\n dir.setCodigoPostal((String)resultado.getValueAt(0, \"VAL_COD_POST\"));\n dir.setObservaciones((String)resultado.getValueAt(0, \"VAL_OBSE\"));\n dir.setEsDireccionPrincipal(UtilidadesBD.convertirABoolean(resultado.getValueAt(0, \"IND_DIRE_PPAL\")));\n dir.setNombreVia((String)resultado.getValueAt(0, \"VAL_NOMB_VIA\"));\n dir.setNombreUnidadGeografica((String)resultado.getValueAt(0, \"DES_GEOG\"));\n \n }\n \n UtilidadesLog.info(\"DAOMAEMaestroClientes.obtenerDireccionPorOID(Long oidDireccion): Salida\");\n return dir;\n }", "public String getAdr2() {\n return adr2;\n }", "private void getTDP(){\n TDP = KalkulatorUtility.getTDP_ADDB(DP,biayaAdmin,polis,tenor, bungaADDB.size());\n LogUtility.logging(TAG,LogUtility.infoLog,\"getTDP\",\"TDP\",JSONProcessor.toJSON(TDP));\n }", "public String getDA() {\n\t\treturn da;\r\n\t}", "public String getDia() {\n\t\treturn this.dia;\n\t}", "public java.lang.String getDB_CR_IND() {\r\n return DB_CR_IND;\r\n }", "public ArrayList<Dado> getCatalogoDadi() throws SQLException,AziendaException,ParseException {\n\t\tUserQuery uq = ProxyDB.getIstance();\n\t\treturn uq.getCatalogoDadi();\n\t}", "public String getAdr1() {\n return adr1;\n }", "public int getDY(){\n \treturn dy;\n }", "public java.lang.String getDsOcorrencia() {\n return dsOcorrencia;\n }", "public java.lang.String getDylb() {\r\n return localDylb;\r\n }", "@JsonProperty(\"dbDas\")\n public String getDbDas() {\n return dbDas;\n }", "public DateTimeDB getDataLote() {\n\t\treturn dataLote;\n\t}", "public String getATA_CD() {\n return ATA_CD;\n }", "public int getDato() {\r\n return dato;\r\n }", "public FDRData getFDRData() {\n\t\treturn proteinModeller.getFDRData();\n\t}", "public java.util.Calendar getDArrDate() {\n return dArrDate;\n }", "public Date getDataConsegna() {\n\t\t\treturn dataConsegna;\n\t\t}", "public org.apache.axis2.databinding.types.soapencoding.String getTerminalDownloadQueryForDayReturn(){\n return localTerminalDownloadQueryForDayReturn;\n }", "public votblDRARES getRecord(int iResID) throws SQLException, Exception {\n\t\t\n\t\tString query = \"Select * from tblDRARes where ResID = \" + iResID;\n\t\tvotblDRARES vo=new votblDRARES();\n\t\t\n\t\tConnection con = null;\n\t\tStatement st = null;\n\t\tResultSet rs = null;\n\n\t\ttry{\n\t\t\tcon=ConnectionBean.getConnection();\n\t\t\tst=con.createStatement();\n\t\t\trs=st.executeQuery(query);\n\t\t\tif(rs.next()){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tvo.setCompetencyID(rs.getInt(\"CompetencyID\"));\n\t\t\t\t\n\t\t\t\tvo.setFKCompanyID(rs.getInt(\"FKCompanyID\"));\n\t\t\t\tvo.setFKOrganizationID(rs.getInt(\"FKOrganizationID\"));\n\t\t\t\tvo.setIsSystemGenerated(rs.getInt(\"IsSystemGenerated\"));\n\t\t\t\tvo.setResID(rs.getInt(\"ResID\"));\n\t\t\t\tvo.setResource(rs.getString(\"Resource\"));\n\t\t\t\tfor(int i = 1; i < 6; i++){\n\t\t\t\t\tvo.setResource(i, rs.getString(\"Resource\"+i));\n\t\t\t\t}\n\t\t\t\tvo.setResType(rs.getInt(\"ResType\"));\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"DevelpmentResources.java - getRecord- \"+e);\n\t\t}finally{\n\t\t\tConnectionBean.closeRset(rs); //Close ResultSet\n\t\t\tConnectionBean.closeStmt(st); //Close statement\n\t\t\tConnectionBean.close(con); //Close connection\n\n\t\t}\n\t\treturn vo;\n\t}", "private Dati getDatiRMP() {\n /* variabili e costanti locali di lavoro */\n Dati dati = null;\n Modulo modRMP = RMPModulo.get();\n Modulo modPiatto = PiattoModulo.get();\n Modulo modCategoria = CategoriaModulo.get();\n Query query;\n Filtro filtro;\n\n try { // prova ad eseguire il codice\n\n query = new QuerySelezione(modRMP);\n query.addCampo(modRMP.getCampoChiave());\n query.addCampo(modRMP.getCampo(RMP.CAMPO_PIATTO));\n query.addCampo(modRMP.getCampo(RMP.CAMPO_MENU));\n query.addCampo(modPiatto.getCampo(Piatto.CAMPO_NOME_ITALIANO));\n query.addCampo(modCategoria.getCampo(Categoria.CAMPO_SIGLA));\n filtro = new Filtro();\n filtro.add(this.getFiltroMenu());\n filtro.add(this.getFiltroPiattiComandabili());\n query.setFiltro(filtro);\n dati = modRMP.query().querySelezione(query);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return dati;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getDirectChargeReturn(){\n return localDirectChargeReturn;\n }", "public String getDepartureAirport();", "McastRouteData getRouteData(McastRoute route);", "int getDatenvolumen();", "public DataTable getDtMotivoLlamadoAtencion()\r\n/* 134: */ {\r\n/* 135:140 */ return this.dtMotivoLlamadoAtencion;\r\n/* 136: */ }", "public String getDydj() {\n return dydj;\n }", "public int getDificultad(){\n return dificultad;\n }", "public double getDPad() {\n\t\treturn this.getRawAxis(6);\n\t}", "public DataTable getDtDetalleIVAFacturaProveedorSRI()\r\n/* 643: */ {\r\n/* 644:718 */ return this.dtDetalleIVAFacturaProveedorSRI;\r\n/* 645: */ }", "public java.util.Calendar getDRGPRICEYDAT() {\n return DRGPRICEYDAT;\n }", "public int getCDR() {\n\t\t\n\t\treturn cdr;\n\t}", "java.lang.String getDepartureAirport();", "public Date getDataDeCadastro() {\n\t\treturn this.dataDeCadastro;\n\t}", "public java.lang.String getADNAMD() {\n return ADNAMD;\n }", "public java.util.Calendar getDRGPRICEYCDAT() {\n return DRGPRICEYCDAT;\n }", "public java.util.Calendar getDArrTime() {\n return dArrTime;\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 }", "public String getDsdate() {\n return dsdate;\n }", "@SuppressWarnings(\"static-access\")\n\tpublic String getCycleDateForALIPScreen() throws Exception {\n\t\t String queryCycleDate = \n\t\t\t\t\t\"SELECT TOP 1 FORMAT(CAST(PO_CYCLE_DATE as date), 'MM/dd/yyyy')\\r\\n\" + \n\t\t\t\t\t\"FROM [\" + BaseTest.getWebsite() + \"].STAGING.T_STPO_POLICY PO\\r\\n\" + \n\t\t\t\t\t\"LEFT JOIN [\" + BaseTest.getWebsite() + \"].STAGING.T_STTR_TRANSACTION TR \" +\n\t\t\t\t\t\"ON PO.PO_POL_NUM = TR.TR_POL_NUM\\r\\n\" + \n\t\t\t\t\t\"WHERE PO.CURRENT_FLAG = 1\\r\\n\" + \n\t\t\t\t\t\"AND TR.CURRENT_FLAG = 1\\r\\n\" + \n\t\t\t\t\t\"ORDER BY PO.PO_CYCLE_DATE DESC;\";\n\t\t \n\t\t conn.createSQLServerConn();\n\t\t try {\n\t\t\t cycleDateALIPScreen=conn.fetchCurrentCycleDateFromDB(queryCycleDate);\n\t\t } catch(Exception e) {\n\t\t\tReports.logAMessage(LogStatus.ERROR, \"Exception: \" + e.getMessage());\n\t\t\t// System.out.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t }\n\t\t return cycleDateALIPScreen;\n\t}", "protected long getLastDLRow() {\n List<String> res = dbconnector.execRead(\"SELECT id FROM DW_station_state \" +\n \"ORDER BY id DESC \" +\n \"LIMIT 1\").get(0);\n return Long.parseLong(res.get(0));\n }", "public int getDRAResID() {\n\t\treturn DRAResID;\n\t}", "public String getDireccionPersonaRecive() {\r\n\t\treturn direccionPersonaRecive;\r\n\t}", "public DataTable getDtDetalleFacturaProveedorSRI()\r\n/* 361: */ {\r\n/* 362:349 */ return this.dtDetalleFacturaProveedorSRI;\r\n/* 363: */ }", "public String getIDAdulto() {\n return IDAdulto;\n }", "public IDado getDado() {\n\t\ttry {\r\n\t\t\treturn juego.getDado();\r\n\t\t} catch (RemoteException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public double getDy() {\n return dy;\n }", "private final double get_DOUBLE(int column) {\n if (metadata.isZos()) {\n byte[] bytes = new byte[8];\n dataBuffer_.getBytes(columnDataPosition_[column - 1], bytes);\n return FloatingPoint.getDouble_hex(bytes, 0);\n //return dataBuffer_.getDouble(columnDataPosition_[column - 1]);\n } else {\n return dataBuffer_.getDoubleLE(columnDataPosition_[column - 1]);\n// return FloatingPoint.getDouble(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }\n }", "public FSArray getLDSOrdRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)\n jcasType.jcas.throwFeatMissing(\"lDSOrdRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec)));}", "java.lang.String getDepartureAirportCode();", "public String getDownRoadId() {\n return downRoadId;\n }", "public int getDificultad ()\n {\n //Pre:\n //Post: Devuelve el nivel de dificultad\n return dificultad;\n }", "Date getDateRDV() {\n return this.dateRDV;\n }", "public static double datodouble(){\n try {\n Double f=new Double(dato());\n return(f.doubleValue());\n } catch (NumberFormatException error) {\n return(Double.NaN);\n }\n }", "public String getDENNGAY()\n {\n return this.DENNGAY;\n }", "public Double getDy();", "public double getDayLate() {\n return dayLate;\n }", "@JsonIgnore public String getDepartureGate() {\n return (String) getValue(\"departureGate\");\n }", "public long getDataEntryRVA() {\n return DataEntryRVA;\n }", "public DAODomande getDaoDomande() {\n return daoDomande;\n }", "public int diaReserva(String dataEntrada) {\r\n\t\tint diaReal = Integer.parseInt(dataEntrada.substring(0, 2));\r\n\t\tint mesReal = Integer.parseInt(dataEntrada.substring(3, 5));\r\n\t\tint anoReal = Integer.parseInt(dataEntrada.substring(6, 8));\r\n\t\tmesReal *= 30;\r\n\t\tanoReal *= 365;\r\n\t\treturn diaReal+mesReal+anoReal; \r\n\t}", "private static String[] getDataForRow(CWaypoint wayPoint) {\r\n\t\tString data[] = new String[1];\r\n\t\tdata[0] = dateFormat.format(wayPoint.getTime());\r\n\t\treturn data;\r\n\t}", "public String getDc2()\n {\n return dc2;\n }", "public java.lang.String getDyf() {\r\n return localDyf;\r\n }", "public String getOndaP2() {\r\n return ondaP2;\r\n }", "public DoorDirection getDoorDirection() {\n\t\treturn this.doorDirection; \n\t}", "public float getDCD();", "public Date getDate()\n\t{\n\t\tif (m_nType == AT_DATE)\n\t\t\treturn (Date)m_oData;\n\t\telse\n\t\t\treturn null;\n\t}", "public DAODipendenti getDaoDipendenti() {\n return daoDipendenti;\n }", "public int getDtVenda() {\n return dtVenda;\n }", "public java.sql.Date getARRIVAL_AT_LOC_DATE()\n {\n \n return __ARRIVAL_AT_LOC_DATE;\n }", "public String getD() {\n return d;\n }", "public T getDato() {\n\t\treturn dato;\n\t}", "public Domanda getDomandaD(Login login) {\n\tDipendente dip = this.daoDipendenti.getInfoD(login);//recupero il dipendente\n\tif ( dip == null) {\n\t return null; // non sono stato in grado di recuperare il dipendente\n\t}\n\t//il dip è stato trovato\n\tDomanda ritorno = this.daoDomande.getDomanda(dip);//recupero la domanda passandogli il dip così posso scrivere sul db che gli è stata presentata\n\tif (ritorno == null) {\n return null; //non sono stato in grado di recuperare la domanda\n\t}\n //scrivo che la domanda è stata sottoposta al dipendente sul DB\n boolean controllo = this.daoDomande.scriviSottoposta(dip,ritorno);\n if (controllo) {\n //è andato tutto bene\n this.gestioneLog.scriviDomRic(login, ritorno); // scrivo il log\n return ritorno;\n }\n return null;//non sono riuscito a scrivere sul DB che la domanda è stata sottoposta\n }", "public final Date getDat() {\n return this.dat;\n }", "public StrColumn getPdbxDatabaseIdDOI() {\n return delegate.getColumn(\"pdbx_database_id_DOI\", DelegatingStrColumn::new);\n }", "public String getDiaLibre() {\n return diaLibre;\n }", "public int getDado2() {\n return dado2;\n }", "public JAXBElement<Long> getDirPartyPostalAddressViewRecId() {\r\n return getCustomer().getDirParty().get(0).getDirPartyPostalAddressView().get(0).getRecId();\r\n }", "public static final float getAD() {\r\n\t\treturn A_D;\r\n\t}", "public Long getRouteid() {\n return routeid;\n }", "public java.lang.String getDRGFD() {\n return DRGFD;\n }", "public String getArrivalAirport();", "public String getDepartureFlightDetails(){\n waitForPageToLoad();\n String details =driver.findElement(oDepFlightDetails).getText();\n logger.debug(\"departure flight details is:\" + details);\n return details;\n }", "Datty getDatty();", "String getCADENA_TRAMA();", "public java.lang.String getDSCRD() {\n return DSCRD;\n }", "public String getDPReihe(){\n\t\treturn this.m_sDPReihe;\n\t}", "public void getREFDT()//get reference date\n\t{\n\t\ttry\n\t\t{\n\t\t\tDate L_strTEMP=null;\n\t\t\tM_strSQLQRY = \"Select CMT_CCSVL,CMT_CHP01,CMT_CHP02 from CO_CDTRN where CMT_CGMTP='S\"+cl_dat.M_strCMPCD_pbst+\"' and CMT_CGSTP = 'FGXXREF' and CMT_CODCD='DOCDT'\";\n\t\t\tResultSet L_rstRSSET = cl_dat.exeSQLQRY2(M_strSQLQRY);\n\t\t\tif(L_rstRSSET != null && L_rstRSSET.next())\n\t\t\t{\n\t\t\t\tstrREFDT = L_rstRSSET.getString(\"CMT_CCSVL\").trim();\n\t\t\t\tL_rstRSSET.close();\n\t\t\t\tM_calLOCAL.setTime(M_fmtLCDAT.parse(strREFDT)); // Convert Into Local Date Format\n\t\t\t\tM_calLOCAL.add(Calendar.DATE,+1); // Increase Date from +1 with Locked Date\n\t\t\t\tstrREFDT = M_fmtLCDAT.format(M_calLOCAL.getTime()); // Assign Date to Veriable \n\t\t\t\t//System.out.println(\"REFDT = \"+strREFDT);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception L_EX)\n\t\t{\n\t\t\tsetMSG(L_EX,\"getREFDT\");\n\t\t}\n\t}", "public String getdDestinationcityid() {\n return dDestinationcityid;\n }", "public int get_flight() {\r\n return this.flight_nr;\r\n }", "public Date getDataInizio() {\n return (Date)this.getCampo(nomeDataIni).getValore();\n }", "public org.apache.axis2.databinding.types.soapencoding.String getGetDirectSrvInfoReturn(){\n return localGetDirectSrvInfoReturn;\n }", "public final double get\r\n ( DataID dID // input\r\n )\r\n {\r\n return dataArray[dID.ordinal()];\r\n }", "public DTOSalida obtenerAccesosPlantilla(DTOOID dto) throws MareException\n { \n UtilidadesLog.info(\"DAOGestionComisiones.obtenerAccesosPlantilla(DTOOID dto): Entrada\"); \n StringBuffer query = new StringBuffer();\n RecordSet rs = new RecordSet(); \n DTOSalida dtos = new DTOSalida();\n BelcorpService bs = UtilidadesEJB.getBelcorpService(); \n query.append(\" SELECT DISTINCT A.ACCE_OID_ACCE OID, B.VAL_I18N DESCRIPCION \");\n query.append(\" FROM COM_PLANT_COMIS_ACCES A, V_GEN_I18N_SICC B, COM_PLANT_COMIS C \"); \n query.append(\" WHERE \");\n if(dto.getOid() != null) {\n query.append(\" A.PLCO_OID_PLAN_COMI = \" + dto.getOid() + \" AND \");\n }\n query.append(\" A.PLCO_OID_PLAN_COMI = C.OID_PLAN_COMI AND \"); \n query.append(\" C.CEST_OID_ESTA = \" + ConstantesCOM.ESTADO_ACTIVO + \" AND \"); \n \n query.append(\" B.ATTR_ENTI = 'SEG_ACCES' AND \"); \n query.append(\" B.ATTR_NUM_ATRI = 1 AND \");\n query.append(\" B.IDIO_OID_IDIO = \" + dto.getOidIdioma() + \" AND \");\n query.append(\" B.VAL_OID = A.ACCE_OID_ACCE \");\n query.append(\" ORDER BY DESCRIPCION \"); \n UtilidadesLog.debug(query.toString()); \n try {\n rs = bs.dbService.executeStaticQuery(query.toString());\n if(rs != null)\n dtos.setResultado(rs);\n }catch (Exception e) {\n UtilidadesLog.error(e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS));\n } \n UtilidadesLog.info(\"DAOGestionComisiones.obtenerAccesosPlantilla(DTOOID dto): Salida\"); \n return dtos;\n }", "@JsonIgnore public String getDepartureTerminal() {\n return (String) getValue(\"departureTerminal\");\n }", "public JAXBElement<Long> getDirPartyRecId() {\r\n return getCustomer().getDirParty().get(0).getRecId();\r\n }" ]
[ "0.5232227", "0.5232227", "0.5145065", "0.5035116", "0.4972689", "0.49726844", "0.49406305", "0.49096826", "0.4897744", "0.4855285", "0.48538995", "0.48505497", "0.48437652", "0.48264077", "0.48245606", "0.4797956", "0.47520813", "0.4725215", "0.47190127", "0.4713809", "0.47120786", "0.47117326", "0.4703226", "0.4701875", "0.46985108", "0.4675231", "0.4657748", "0.4656752", "0.4652821", "0.4647535", "0.46459168", "0.4634612", "0.46240476", "0.46211568", "0.4619552", "0.46146354", "0.4611344", "0.4608907", "0.4607452", "0.46070337", "0.45968914", "0.45967072", "0.45876557", "0.45836076", "0.45798263", "0.45768893", "0.45745695", "0.4546882", "0.45400217", "0.4534083", "0.45321834", "0.45273376", "0.45215437", "0.45148188", "0.45128605", "0.45119694", "0.45110914", "0.45085186", "0.4497027", "0.44948366", "0.44910967", "0.44863468", "0.44856763", "0.4484289", "0.44841823", "0.44832957", "0.44746247", "0.44612142", "0.4458927", "0.44539985", "0.44488728", "0.44479698", "0.4447945", "0.44366968", "0.44364828", "0.44112194", "0.44086826", "0.44068906", "0.4403313", "0.44010642", "0.4400506", "0.43997693", "0.43995634", "0.4398322", "0.43918055", "0.43852043", "0.43839708", "0.4382665", "0.43816566", "0.4381462", "0.43802413", "0.43784666", "0.4376528", "0.43756622", "0.43736482", "0.4368103", "0.43647403", "0.43639567", "0.4362484" ]
0.49982587
5
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_ROUTE.DATALOAD
public void setDataload(Float dataload) { this.dataload = dataload; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setRoute(String routeID);", "public void setDataCadastroCota(Date dataCadastroCota) {\n\t\tif(dataCadastroCota != null){\n\t\t\tthis.dataCadastroCota = new DateTimeDB(dataCadastroCota.getTime());\n\t\t} else{\n\t\t\tthis.dataCadastroCota = null;\t\n\t\t}\n\t}", "public void setDYPT(java.lang.String param) {\r\n localDYPTTracker = param != null;\r\n\r\n this.localDYPT = param;\r\n }", "public void setDYPT(java.lang.String param) {\r\n localDYPTTracker = param != null;\r\n\r\n this.localDYPT = param;\r\n }", "public void setDataLote(DateTimeDB dataLote) {\n\t\tthis.dataLote = dataLote;\n\t}", "public void setDY(int DY){\n \tdy = DY;\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 setDylb(java.lang.String param) {\r\n localDylbTracker = param != null;\r\n\r\n this.localDylb = param;\r\n }", "public void setAdr2(String adr2) {\n this.adr2 = adr2;\n }", "public synchronized void setArrivalExit(ArrivalTerminalExitStub ate) {\n this.ate = ate;\n }", "void setDatty(Datty newDatty);", "public void setDataSituacao(DateTimeDB dataSituacao) {\n this.dataSituacao = dataSituacao;\n }", "static void set_ar_dr(FM_OPL OPL, int slot, int v) {\n OPL_CH CH = OPL.P_CH[slot / 2];\n OPL_SLOT SLOT = CH.SLOT[slot & 1];\n int ar = v >> 4;\n int dr = v & 0x0f;\n\n SLOT.AR = ar != 0 ? new IntArray(OPL.AR_TABLE, ar << 2) : new IntArray(RATE_0);\n SLOT.evsa = SLOT.AR.read(SLOT.ksr);\n if (SLOT.evm == ENV_MOD_AR) {\n SLOT.evs = SLOT.evsa;\n }\n\n SLOT.DR = dr != 0 ? new IntArray(OPL.DR_TABLE, dr << 2) : new IntArray(RATE_0);\n SLOT.evsd = SLOT.DR.read(SLOT.ksr);\n if (SLOT.evm == ENV_MOD_DR) {\n SLOT.evs = SLOT.evsd;\n }\n\n }", "public void setAdr1(String adr1) {\n this.adr1 = adr1;\n }", "public static void la_pdl_datesetup_to_accrualdate(String SSN,String AppURL) throws ClassNotFoundException, SQLException, ParseException\n\n\t{\n\t\t\t\tConnection conn = null;\n\t\t\t\t\n\t\t// Object of Statement. It is used to create a Statement to execute the query\n\t\t\t Statement stmt = null;\n\t\t\t \n\t // Object of ResultSet => 'It maintains a cursor that points to the current row in the result set'\n\t\t\t\tResultSet resultSet = null;\n\t\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\n\t\t\t\t\n\t\t\t\ttest.log(LogStatus.INFO,\"**** Connecting to DB to set the Store date to accrual date ****\");\n\t\t\t\ttest.log(LogStatus.INFO, \"******************************************************\");\n\t // Open a connection\n\t\t\t\t//conn = DriverManager.getConnection(\"jdbc:oracle:thin:@192.168.2.241:1521:QFUNDUAT1\", \"QCREL2_AUTOM_07212019\", \"QCREL2_AUTOM_07212019\");\n\t\t\t\tconn = DriverManager.getConnection(\"jdbc:oracle:thin:@192.168.2.241:1521:QFUNDUAT1\", DBUserName,DBPassword);\n\t\t\t\tSystem.out.println(\"Connecting to DB\");\n\t\t\t\ttest.log(LogStatus.PASS, \"Connected to DB Successfully\");\n\t\t\t\n\t\t\t\n\t\t\t\tstmt = conn.createStatement();\n\t\t\t\t //Proc_Date=\"02-AUG-19\";\n\t\t\t\t\n\t\t\t//=========================== For Capturing Current Date ==============================================\n\t\t\t\t/*DateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t\t\t\n\t\t\t\tDate date = new Date();\n\t\t\t\t\n\t\t\t\tString date1= dateFormat.format(date);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Current date is \" +date1);\n\t\t curr_date = date1;*/\n\t\t \n\t\t //%%%%%%%%%%%%%%%%%%%%%%\n\t\t\t\t\n\t\t //%%%%%%%%%%%%%%%%%%%%\n\t\t \n\t\t \n\t\t\t//=================================================================================\n\t\t\t\tresultSet = stmt.executeQuery(\"update ca_ss_store_date set st_date= '\"+accrual_date+\"' where ST_DATE_ID='PRO' and st_code in (2997,2019)\");\n\t\t\t\t \n\t\t\t\t//test.log(LogStatus.PASS, \"<FONT color=green style=Arial> Current date is :\" +curr_date);\n\t\t\t\ttest.log(LogStatus.PASS, \"<FONT color=green style=Arial> Store Date is Set to Accrual date :\" +accrual_date);\n\t\t\t\ttest.log(LogStatus.INFO, \"********************** Now Login to Lend Nation For Payment *********************** \");\n\t\t\t\t\n\t\t\t\twhile (resultSet .next()) \n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t// Closing Connection\t\t\n\t\t\t\t\n\t\t\t\tif (resultSet != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tresultSet.close();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (stmt != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tstmt.close();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (conn != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconn.close();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public void setRoadwayPI(double roadwayPI)\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(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.setDoubleValue(roadwayPI);\r\n }\r\n }", "public void setDsdate(String dsdate) {\n this.dsdate = dsdate == null ? null : dsdate.trim();\n }", "public void setDyf(java.lang.String param) {\r\n localDyfTracker = param != null;\r\n\r\n this.localDyf = param;\r\n }", "public void setAODC(final double aod) {\n // The value is given as a floating number in the navigation message\n this.aodc = (int) aod;\n }", "public final synchronized void mo39718a(C15617da daVar) {\n this.f40701B = daVar;\n }", "public void setDtDetalleFacturaProveedorSRI(DataTable dtDetalleFacturaProveedorSRI)\r\n/* 366: */ {\r\n/* 367:353 */ this.dtDetalleFacturaProveedorSRI = dtDetalleFacturaProveedorSRI;\r\n/* 368: */ }", "public static void nv_pdl_datesetup_to_accrualdate(String SSN,String AppURL) throws ClassNotFoundException, SQLException, ParseException\n\n\t{\n\t\t\t\tConnection conn = null;\n\t\t\t\t\n\t\t// Object of Statement. It is used to create a Statement to execute the query\n\t\t\t Statement stmt = null;\n\t\t\t \n\t // Object of ResultSet => 'It maintains a cursor that points to the current row in the result set'\n\t\t\t\tResultSet resultSet = null;\n\t\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\n\t\t\t\t\n\t\t\t\ttest.log(LogStatus.INFO,\"**** Connecting to DB to set the Store date to accrual date ****\");\n\t\t\t\ttest.log(LogStatus.INFO, \"******************************************************\");\n\t // Open a connection\n\t\t\t\t//conn = DriverManager.getConnection(\"jdbc:oracle:thin:@192.168.2.241:1521:QFUNDUAT1\", \"QCREL2_AUTOM_07212019\", \"QCREL2_AUTOM_07212019\");\n\t\t\t\tconn = DriverManager.getConnection(\"jdbc:oracle:thin:@192.168.2.241:1521:QFUNDUAT1\", DBUserName,DBPassword);\n\t\t\t\tSystem.out.println(\"Connecting to DB\");\n\t\t\t\ttest.log(LogStatus.PASS, \"Connected to DB Successfully\");\n\t\t\t\n\t\t\t\n\t\t\t\tstmt = conn.createStatement();\n\t\t\t\t //Proc_Date=\"02-AUG-19\";\n\t\t\t\t\n\t\t\t//=========================== For Capturing Current Date ==============================================\n\t\t\t\t/*DateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t\t\t\n\t\t\t\tDate date = new Date();\n\t\t\t\t\n\t\t\t\tString date1= dateFormat.format(date);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Current date is \" +date1);\n\t\t curr_date = date1;*/\n\t\t \n\t\t //%%%%%%%%%%%%%%%%%%%%%%\n\t\t\t\t\n\t\t //%%%%%%%%%%%%%%%%%%%%\n\t\t \n\t\t \n\t\t\t//=================================================================================\n\t\t\t\tresultSet = stmt.executeQuery(\"update ca_ss_store_date set st_date= '\"+accrual_date+\"' where ST_DATE_ID='PRO' and st_code in (2997,2023)\");\n\t\t\t\t \n\t\t\t\t//test.log(LogStatus.PASS, \"<FONT color=green style=Arial> Current date is :\" +curr_date);\n\t\t\t\ttest.log(LogStatus.PASS, \"<FONT color=green style=Arial> Store Date is Set to Accrual date :\" +accrual_date);\n\t\t\t\ttest.log(LogStatus.INFO, \"********************** Now Login to Lend Nation For Payment *********************** \");\n\t\t\t\t\n\t\t\t\twhile (resultSet .next()) \n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t// Closing Connection\t\t\n\t\t\t\t\n\t\t\t\tif (resultSet != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tresultSet.close();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (stmt != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tstmt.close();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (conn != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconn.close();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public void setRoutingNo (String RoutingNo);", "public void setDB_CR_IND(java.lang.String DB_CR_IND) {\r\n this.DB_CR_IND = DB_CR_IND;\r\n }", "public void setData(final D dt) {\n this.data = dt;\n }", "public void setARRIVAL_AT_LOC_DATE(java.sql.Date value)\n {\n if ((__ARRIVAL_AT_LOC_DATE == null) != (value == null) || (value != null && ! value.equals(__ARRIVAL_AT_LOC_DATE)))\n {\n _isDirty = true;\n }\n __ARRIVAL_AT_LOC_DATE = value;\n }", "public DTODireccion obtenerDireccionPorOID(Long oidDireccion) throws MareException {\n UtilidadesLog.info(\"DAOMAEMaestroClientes.obtenerDireccionPorOID(Long oidDireccion): Entrada\");\n \n BelcorpService bs = UtilidadesEJB.getBelcorpService();\n StringBuffer query = new StringBuffer();\n \n query.append(\" SELECT dir.tidc_oid_tipo_dire, dir.tivi_oid_tipo_via, val.oid_valo_estr_geop \");\n query.append(\" , dir.zvia_oid_via, dir.num_ppal, dir.val_cod_post, dir.val_obse \");\n query.append(\" , dir.ind_dire_ppal, dir.val_nomb_via, val.des_geog \");\n query.append(\" FROM mae_clien_direc dir\");\n query.append(\" , zon_valor_estru_geopo val\");\n query.append(\" , zon_terri terr \");\n query.append(\" WHERE DIR.OID_CLIE_DIRE = \").append(oidDireccion);\n query.append(\" AND dir.terr_oid_terr = terr.oid_terr\");\n query.append(\" AND terr.vepo_oid_valo_estr_geop = val.oid_valo_estr_geop \");\n \n RecordSet resultado = null;\n try {\n resultado = bs.dbService.executeStaticQuery(query.toString());\n } catch (Exception e) {\n String error = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(error));\n }\n \n DTODireccion dir = null;\n if (resultado != null && !resultado.esVacio()) {\n \n dir = new DTODireccion();\n \n dir.setOid(oidDireccion);\n dir.setTipoDireccion(UtilidadesBD.convertirALong(resultado.getValueAt(0, \"TIDC_OID_TIPO_DIRE\")));\n dir.setTipoVia(UtilidadesBD.convertirALong(resultado.getValueAt(0, \"TIVI_OID_TIPO_VIA\")));\n dir.setUnidadGeografica(UtilidadesBD.convertirALong(resultado.getValueAt(0, \"OID_VALO_ESTR_GEOP\")));\n dir.setVia(UtilidadesBD.convertirALong(resultado.getValueAt(0, \"ZVIA_OID_VIA\")));\n dir.setNumeroPrincipal((String)resultado.getValueAt(0, \"NUM_PPAL\"));\n dir.setCodigoPostal((String)resultado.getValueAt(0, \"VAL_COD_POST\"));\n dir.setObservaciones((String)resultado.getValueAt(0, \"VAL_OBSE\"));\n dir.setEsDireccionPrincipal(UtilidadesBD.convertirABoolean(resultado.getValueAt(0, \"IND_DIRE_PPAL\")));\n dir.setNombreVia((String)resultado.getValueAt(0, \"VAL_NOMB_VIA\"));\n dir.setNombreUnidadGeografica((String)resultado.getValueAt(0, \"DES_GEOG\"));\n \n }\n \n UtilidadesLog.info(\"DAOMAEMaestroClientes.obtenerDireccionPorOID(Long oidDireccion): Salida\");\n return dir;\n }", "public void setDtMotivoLlamadoAtencion(DataTable dtMotivoLlamadoAtencion)\r\n/* 139: */ {\r\n/* 140:144 */ this.dtMotivoLlamadoAtencion = dtMotivoLlamadoAtencion;\r\n/* 141: */ }", "public void setDato(int dato) {\r\n this.dato = dato;\r\n }", "public void setSaldo(double saldo) {\r\n this.saldo = saldo;\r\n }", "public void setDtDetalleIVAFacturaProveedorSRI(DataTable dtDetalleIVAFacturaProveedorSRI)\r\n/* 648: */ {\r\n/* 649:722 */ this.dtDetalleIVAFacturaProveedorSRI = dtDetalleIVAFacturaProveedorSRI;\r\n/* 650: */ }", "public DelayData setData(DataBead db) {\r\n\t\tthis.dataBead = db;\r\n\t\treturn this;\r\n\t}", "public void xsetRoadwayPI(org.landxml.schema.landXML11.Station roadwayPI)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(ROADWAYPI$18);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.Station)get_store().add_attribute_user(ROADWAYPI$18);\r\n }\r\n target.set(roadwayPI);\r\n }\r\n }", "void setDateRDV(Date d) {\n this.dateRDV = d;\n }", "public void setSaldo(double saldo) {\n\t\tthis.saldo = saldo;\n\t}", "public void setSaldo(double saldo) {\n this.saldo = saldo;\n }", "void setRoadway(org.landxml.schema.landXML11.RoadwayDocument.Roadway roadway);", "public void setRealEstablish(Date realEstablish) {\r\n this.realEstablish = realEstablish;\r\n }", "public void setATA_CD( String aTA_CD ) {\n ATA_CD = aTA_CD;\n }", "public void setAdres(String adres) {\n\t\tthis.adres = adres;\n\t}", "public void setDaoDomande(DAODomande daoDom) {\n this.daoDomande = daoDom;\n }", "public final synchronized void mo39719a(C15630dn dnVar) {\n this.f40700A = dnVar;\n }", "public void setDataA(LocalDate dataA) \r\n\t\t{\r\n\t\t\tDataA = dataA;\r\n\t\t}", "public void setDEAL_VALUE_DATE(Date DEAL_VALUE_DATE) {\r\n this.DEAL_VALUE_DATE = DEAL_VALUE_DATE;\r\n }", "public void setlado(int lado) {\r\n this.lado = lado;\r\n }", "public void setAdres(Adres ad) {\n System.out.println(\"setAdres AdresEditController\");\n\n this.adres = ad;\n\n this.adres_id_textField.setText(Integer.toString(ad.getAdres_id()));\n this.wojewodztwo_textField.setText(ad.getWojewodztwo());\n this.miejscowosc_textField.setText(ad.getMiejscowosc());\n this.ulica_textField.setText(ad.getUlica());\n this.kraj_textField.setText(ad.getKraj());\n this.kod_pocztowy_textField.setText(ad.getKod_pocztowy());\n }", "public void setLBR_DirectDebitNotice (String LBR_DirectDebitNotice);", "public void setDtRegistro(int dtRegistro) {\n this.dtRegistro = dtRegistro;\n }", "public void setDENNGAY( String DENNGAY )\n {\n this.DENNGAY = DENNGAY;\n }", "public void setDataConsegna(Date dataConsegna) {\n\t\t\tthis.dataConsegna = dataConsegna;\n\t\t}", "public void setFechaDesde(Date fechaDesde)\r\n/* 169: */ {\r\n/* 170:293 */ this.fechaDesde = fechaDesde;\r\n/* 171: */ }", "public void setDoctorID(String doctorID){\n this.doctorID = doctorID;\n }", "public void setDoor(String direction, Door newDoor) {\n if (getDoors().containsKey(direction)) {\n getDoors().replace(direction, newDoor);\n } else {\n getDoors().put(direction, newDoor);\n }\n }", "public void setDtVenda(int dtVenda) {\n this.dtVenda = dtVenda;\n }", "public void setTunnelRail(Rail r, String d) {\n this.tunnelRail = r;\n this.dir = d;\n }", "public void setData (Date date) {\r\n\t\tthis.data=date;\r\n\t\t\r\n\t}", "public void setDataAffidamento(Optional<LocalDate> dataAffidamento) {\n\t\tthis.dataAffidamento = dataAffidamento;\n\t}", "public static void UpdateFlight(Flight flight){\n \n //java.sql.Date sqlDate = new java.sql.Date(flight.getDatetime());\n \n try (Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM flight WHERE FlightNumber = '\" + flight.getFlightNumber() + \"'\")){\n \n resultSet.absolute(1);\n resultSet.updateString(\"FlightNumber\", flight.getFlightNumber());\n resultSet.updateString(\"DepartureAirport\", flight.getDepartureAirport());\n resultSet.updateString(\"DestinationAirport\", flight.getDestinationAirport());\n resultSet.updateDouble(\"Price\", flight.getPrice());\n\n //Ask Andrew\n// java.sql.Date sqlDate = new java.sql.Date();\n// resultSet.updateDate(\"datetime\", flight.getDatetime());\n resultSet.updateString(\"Plane\", flight.getPlane());\n resultSet.updateInt(\"SeatsTaken\", flight.getSeatsTaken());\n \n resultSet.updateRow();\n \n \n \n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n \n \n }", "public void setDaoDipendenti(DAODipendenti daoDipendenti) {\n this.daoDipendenti = daoDipendenti;\n }", "public void setDRGPRICEYDAT(java.util.Calendar DRGPRICEYDAT) {\n this.DRGPRICEYDAT = DRGPRICEYDAT;\n }", "public void setDsOcorrencia(java.lang.String dsOcorrencia) {\n this.dsOcorrencia = dsOcorrencia;\n }", "public void setData(D data) {\n this.data = data;\n }", "public void setDArrDate(java.util.Calendar dArrDate) {\n this.dArrDate = dArrDate;\n }", "public void setDataV(LocalDate dataV) \r\n\t\t{\r\n\t\t\tDataV = dataV;\r\n\t\t}", "public void setDataNascimentoFromSQL(Date dataNascimento) {\r\n\r\n\t\t// montando a data atrav�s do Calendar\r\n\t\tCalendar data = Calendar.getInstance();\r\n\t\tdata.setTime(dataNascimento);\r\n\t\tthis.dataNascimento = data;\r\n\r\n\t}", "public void setFechaAltaDesde(Date fechaAltaDesde) {\r\n\t\tthis.fechaAltaDesde = fechaAltaDesde;\r\n\t}", "public void setEdad(Integer edad)\r\n/* 203: */ {\r\n/* 204:371 */ this.edad = edad;\r\n/* 205: */ }", "public void setAdress(Adress adr) {\r\n // Bouml preserved body begin 00040F82\r\n\t this.adress = adr;\r\n // Bouml preserved body end 00040F82\r\n }", "protected void setDpc(int dpc) {\n this.dpc = dpc;\n }", "public void setDiaLibre(String diaLibre) {\n this.diaLibre = diaLibre;\n }", "public void setDRGPRICEYCDAT(java.util.Calendar DRGPRICEYCDAT) {\n this.DRGPRICEYCDAT = DRGPRICEYCDAT;\n }", "public void setDA(String da) {\n\t\tthis.da = da;\r\n\t\tfirePropertyChange(ConstantResourceFactory.P_DA,null,da);\r\n\t}", "public final void setD0windr(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String d0windr)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.D0windr.toString(), d0windr);\n\t}", "public void setIdDireccion(String idDireccion) {\r\n\t\tthis.idDireccion = idDireccion;\r\n\t}", "public void setRoute(com.vmware.converter.HostIpRouteEntry route) {\r\n this.route = route;\r\n }", "public void setDayLate(double dayLate) {\n this.dayLate = dayLate;\n }", "public void setDatumOpladen(Date datumOpladen) {\n this.datumOpladen = null;\n if (datumOpladen != null) {\n this.datumOpladen = (Date) datumOpladen.clone();\n }\n }", "public void setDirectionOfTravel(typekey.DirectionOfTravelPEL value);", "public void setDob(Date dob) {\n this.dob = dob;\n }", "public void setReverseAgency(boolean value) {\r\n this.reverseAgency = value;\r\n }", "public void denda()\n {\n transaksi.setDenda(true);\n }", "public void setRoute (JsonObject journey) {\n\t\tsetDate(journey.get(\"date\").getAsString());\n\t\tsetStart(journey.get(\"start\").getAsString());\n\t\tsetDestination(journey.get(\"dest\").getAsString());\n\t setArrivalTime(journey.get(\"arrivalTime\").getAsString());\n\t \t\n\t JsonArray segmentJs = journey.getAsJsonArray(\"segments\");\n\t for (int i = 0; i < segmentJs.size(); i++) {\n\t\t\tSegment segment = new Segment();\n\t\t\tsegment.setSegment(segmentJs.get(i).getAsJsonObject());\n\t\t\tmSegmentList.add(i, segment);\n\t\t}\n\t mSegmentList.trimToSize();\n\t setDepartureTime(segmentJs.get(0).getAsJsonObject());\n\t}", "public abstract void setNovedad(java.lang.String newNovedad);", "public void setValueDs(String valueDs) {\n this.valueDs = valueDs;\n }", "public void setDirectChargeReturn(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localDirectChargeReturn=param;\n \n\n }", "public static void la_pdl_datesetup(String SSN,String AppURL) throws ClassNotFoundException, SQLException, ParseException\n\t \n\t{\n\t\t\t\tConnection conn = null;\n\t\t\t\t\n\t\t// Object of Statement. It is used to create a Statement to execute the query\n\t\t\t Statement stmt = null;\n\t\t\t \n\t // Object of ResultSet => 'It maintains a cursor that points to the current row in the result set'\n\t\t\t\tResultSet resultSet = null;\n\t\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\n\t\t\t\t\n\t\t\t\ttest.log(LogStatus.INFO,\"**** Connecting to DB to set the Store date to current date ****\");\n\t\t\t\ttest.log(LogStatus.INFO, \"******************************************************\");\n\t // Open a connection\n\t\t\t\t//conn = DriverManager.getConnection(\"jdbc:oracle:thin:@192.168.2.241:1521:QFUNDUAT1\", \"QCREL2_AUTOM_07212019\", \"QCREL2_AUTOM_07212019\");\n\t\t\t\tconn = DriverManager.getConnection(\"jdbc:oracle:thin:@192.168.2.241:1521:QFUNDUAT1\", DBUserName,DBPassword);\n\t\t\t\tSystem.out.println(\"Connecting to DB\");\n\t\t\t\ttest.log(LogStatus.PASS, \"Connected to DB Successfully\");\n\t\t\t\n\t\t\t\n\t\t\t\tstmt = conn.createStatement();\n\t\t\t\t //Proc_Date=\"02-AUG-19\";\n\t\t\t\t\n\t\t\t//=========================== For Capturing Current Date ==============================================\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t\t\t\n\t\t\t\tDate date = new Date();\n\t\t\t\t\n\t\t\t\tString date1= dateFormat.format(date);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Current date is \" +date1);\n\t\t curr_date = date1;\n\t\t \n\t\t //%%%%%%%%%%%%%%%%%%%%%%\n\t\t\t\t\n\t\t //%%%%%%%%%%%%%%%%%%%%\n\t\t \n\t\t \n\t\t\t//=================================================================================\n\t\t\t\tresultSet = stmt.executeQuery(\"update ca_ss_store_date set st_date= '\"+curr_date+\"' where ST_DATE_ID='PRO' and st_code in (2997,2019)\");\n\t\t\t\t \n\t\t\t\ttest.log(LogStatus.PASS, \"<FONT color=green style=Arial> Current date is :\" +curr_date);\n\t\t\t\ttest.log(LogStatus.PASS, \"<FONT color=green style=Arial> Store Date is Set to :\" +curr_date);\n\t\t\t\ttest.log(LogStatus.INFO, \"********************** Now Login to Lend Nation For Loan Orgination *********************** \");\n\t\t\t\t\n\t\t\t\twhile (resultSet .next()) \n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t// Closing Connection\t\t\n\t\t\t\t\n\t\t\t\tif (resultSet != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tresultSet.close();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (stmt != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tstmt.close();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (conn != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconn.close();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public void setdat()\n {\n }", "public void setDtCuentaContable(DataTable dtCuentaContable)\r\n/* 314: */ {\r\n/* 315:379 */ this.dtCuentaContable = dtCuentaContable;\r\n/* 316: */ }", "public void setOldOrderToPaid() {\n\n\t\tDate date = new Date();\n\n\t\tTimestamp ts = new Timestamp(date.getTime());\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\n\t\tString sql = \"UPDATE restodb.order, location set status = 'Paid', state = 'Vacant' where idorder > 0 and date < '\"\n\t\t\t\t+ formatter.format(ts).substring(0, 10) + \" 00:00:00\" + \"'\";\n\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement statement = mysqlConnect.connect().prepareStatement(sql);\n\n\t\t\tstatement.executeUpdate();\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tmysqlConnect.disconnect();\n\t\t}\n\n\t}", "public void setIsDerate(String isDerate) {\n this.isDerate = isDerate;\n }", "abstract public void setServiceAppointment(Date serviceAppointment);", "public void setDificultad(int dificultad){\n this.dificultad=dificultad;\n }", "public void setDbDas(String dbDas) {\n this.dbDas = dbDas;\n }", "public void setIOPortDoubleWord(int portAddress, byte[] dataDoubleWord)\n {\n return;\n }", "public void setDoor(Direction direction, boolean hasDoor) {\r\n\t\tthis.doors.put(direction, (Boolean) hasDoor);\r\n\t}", "void setDeltaPInfo(String dpLoadcase, Double refDP);", "public void setArrivalDate(Date arrivalDate);", "public void setRecdate(Date recdate) {\n this.recdate = recdate;\n }", "public void setLBR_PartnerDFe_ID (int LBR_PartnerDFe_ID);" ]
[ "0.5059855", "0.5005272", "0.49021572", "0.49021572", "0.48853692", "0.48580483", "0.48212788", "0.48163667", "0.47875413", "0.47370625", "0.47136548", "0.46987697", "0.46924156", "0.46685475", "0.4661958", "0.46428305", "0.46233296", "0.462314", "0.46221036", "0.46177003", "0.46142957", "0.46094334", "0.45834562", "0.45818657", "0.45710024", "0.45605654", "0.4541514", "0.4535895", "0.4529283", "0.45290995", "0.45220035", "0.45214713", "0.4519649", "0.45042038", "0.45019963", "0.44979084", "0.4487092", "0.4475299", "0.44718215", "0.4467201", "0.4466593", "0.44652373", "0.44618258", "0.44565177", "0.44517094", "0.44515955", "0.4447979", "0.44458622", "0.44277695", "0.44243148", "0.44210377", "0.4418788", "0.44181788", "0.44179842", "0.44151533", "0.44144648", "0.44043705", "0.43909994", "0.4380598", "0.4379929", "0.43788773", "0.4378413", "0.43774277", "0.43774188", "0.43772563", "0.4366958", "0.4366122", "0.4357649", "0.43514997", "0.434423", "0.43416253", "0.43390724", "0.4337123", "0.43327048", "0.43205252", "0.43170965", "0.4316335", "0.43083584", "0.4306947", "0.43002802", "0.42983955", "0.42980662", "0.42849123", "0.42817956", "0.4272897", "0.4269991", "0.42679545", "0.42677474", "0.42616534", "0.42570275", "0.42525852", "0.42504787", "0.42501003", "0.42440203", "0.4243832", "0.42434326", "0.42421764", "0.42408967", "0.42378047" ]
0.44526199
45
Push element x onto stack.
public void push(int x) { q1.push(x); if (q2.size() > 0){ q2.remove(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void push(int x) {\n stack.add(x);\n }", "public void push(int x) {\r\n inStack.push(x);\r\n }", "public void push(int x) {\n this.stack1.add(x);\n }", "public void push(int x) {\n pushStack.add(x);\n }", "public void push(int x) {\n\t\tstack.push(x);\n\t}", "public void push(int x) {\r\n stack.offer(x);\r\n }", "public void push(int x) {\r\n stack.offer(x);\r\n }", "public void push(int x) {\n this.inputStack.push(x);\n }", "public void push(int x) {\n storeStack.push(x);\n }", "public void push(int x) {\n this.stack1.push(x);\n }", "public void push(int x) {\n inSt.push(x);\n\n }", "public void push(int x) {\n if (isIn) {\n stackIn.push(x);\n } else {\n while (!stackOut.empty()) {\n stackIn.push(stackOut.pop());\n }\n stackIn.push(x);\n isIn = true;\n }\n\n }", "public void push(int x) {\n rearStack.push(x);\n }", "public void push(int x) {\n /**\n * 将otherStack中所有元素还原到stack中后在栈顶加入新元素\n */\n while (!otherStack.isEmpty()) {\n stack.push(otherStack.pop());\n }\n stack.push(x);\n }", "public void push(int x) {\n Stack<Integer> tmp = new Stack<>();\n while(!s.isEmpty()) {\n tmp.push(s.pop());\n }\n tmp.push(x);\n while(!tmp.isEmpty()) {\n s.push(tmp.pop());\n }\n }", "public void push(int x) {\r\n Stack<Integer> newStack = new Stack<>();\r\n newStack.push(x);\r\n\r\n Stack<Integer> tmp = new Stack<>();\r\n while (!this.stack.isEmpty()) {\r\n tmp.push(this.stack.pop());\r\n }\r\n\r\n while (!tmp.isEmpty()) {\r\n newStack.push(tmp.pop());\r\n }\r\n\r\n\r\n this.stack = newStack;\r\n }", "public void push(int x) {\n push.push(x);\n }", "public void push(int x) {\n load();\n stack.push(x);\n unload();\n }", "public void push(int x) {\n if (mStack1.isEmpty()) {\n mFirst = x;\n }\n mStack1.push(x);\n }", "public void push(int x) {\n\t if(first == null){\n\t first = x;\n\t }\n\t s.push(x);\n\t}", "public void push(int x) {\n stk1.push(x);\n }", "public void push(int x) {\n temp.push(x);\n }", "public void push(int x) {\n stack1.push(x);\n }", "public void push(int x) {\n \tstack.push(x);\n \t// if stack is empty or the element is less than current minimal,\n \t// push it to minStack\n \tif (minStack.isEmpty()) {\n \t\tminStack.push(x);\n \t} else {\n\t \tint min = minStack.peek();\n\t \tif (x <= min) minStack.push(x);\n \t}\n }", "public void push(int x) {\n\t\tinput.push(x);\n\t}", "public void push(int x) {\n\t\tif (size() == capacity()) {\n\t\t\tdoubleSize();\n\t\t}\n\t\tarr[end] = x;\n\t\t++end;\n\t}", "public void push(int x) {\n if (storeStack.isEmpty()) {\n storeStack.push(x);\n return;\n }\n\n Stack<Integer> assistStack = new Stack<>();\n while (!storeStack.isEmpty()) {\n assistStack.push(storeStack.pop());\n }\n assistStack.push(x);\n while (!assistStack.isEmpty()) {\n storeStack.push(assistStack.pop());\n }\n }", "public void push(int x) {\n s1.push(x);\n }", "public void push(int x) {\n s1.push(x);\n }", "public void push(int x) {\n s1.push(x);\n }", "public void push(int x) {\n s1.push(x);\n }", "public void push(int x) {\n if (storeStack.isEmpty()) {\n storeStack.push(x);\n return;\n }\n\n int[] ints = new int[storeStack.size()];\n int i =0;\n while (!storeStack.isEmpty()) {\n ints[i++] = storeStack.pop();\n }\n storeStack.push(x);\n for (int i1 = ints.length - 1; i1 >= 0; i1--) {\n storeStack.push(ints[i1]);\n\n }\n }", "public void push(int x) {\n\t\tlist.add(x);\n\t}", "void push(int x) {\n\t\tif (stack.size() == 0) {\n\t\t\tstack.push(x);\n\t\t\tminEle = x;\n\t\t} else if (x >= minEle) {\n\t\t\tstack.push(x);\n\t\t} else if (x < minEle) {\n\t\t\t// Push something smaller than original value\n\t\t\t// At any time when we pop , we will see if the value\n\t\t\t// of the peek is less then min or not\n\t\t\tstack.push(2 * x - minEle);\n\t\t\tminEle = x;\n\t\t}\n\t}", "public void push(int x) {\n data.add(x);\n }", "public void push(int x) {\n Integer elem = x;\n queue.offer(elem);\n topElem = elem;\n }", "public void push(int x) {\n // 将 popStack 中数据导入 pushStack\n while (!popStack.isEmpty()) {\n pushStack.push(popStack.pop());\n }\n // 压入 x\n pushStack.push(x);\n // 将数据导回 popStack\n while (!pushStack.isEmpty()) {\n popStack.push(pushStack.pop());\n }\n\n }", "public void push(int x) {\n \tlist.add(x);\n }", "public void push(int x) {\n \tint size = s2.size();\n \tfor(int i = 0; i < size; i++) {\n \t\ts.push(s2.pop());\n \t}\n \ts.push(x);\n }", "public void push(double x) \n {\n if (top == s.length) \n {\n \tthrow new IllegalArgumentException(\"full stack!\");\n }\n \n \n else\n {\n s[++top] = x;\n \n } \n }", "public void push(int x) {\n s1.push(x);\n temp = (Stack<Integer>) s1.clone();\n s2.clear();\n while (!temp.isEmpty()) {\n s2.push(temp.pop());\n }\n }", "public void push(int x) {\n stack1.push(x);\n if (stack2.isEmpty() || x <= stack2.peek()) {\n stack2.push(x);\n }\n }", "public void push(int x) {\n\t\tint max = maxStack.isEmpty() ? x : maxStack.peek();\n\t\tmaxStack.push(max > x ? max : x);\n\t\tstack.push(x);\n\t}", "public void push(T x) {\n\t\tl.push(x);\n\t}", "public void push(int x) {\n q.add(x);\n for (int i = 0; i < q.size() - 1; ++i) {\n q.add(q.poll());\n }\n }", "public void push(int x) {\n\t\tNode t = new Node();\n\t\tt.data = x;\n\t\tt.next = top;\n\t\ttop = t;\n\t}", "public void push(int x) {\n queue.add(x);\n }", "public void push(int x) {\n queue.add(x);\n }", "public void push(int x) {\n left.push(x);\n }", "public void push(int x) {\n Node node = new Node(x);\n top.next = node;\n node.pre = top;\n top = node;\n size++;\n }", "public void push(int x) {\n if(afterRotate){\n rotate();\n afterRotate = false;\n }\n stack.push(x);\n }", "public void push(int x) {\n queue.addLast(x);\n }", "public void push(int x) {\n queue.addLast(x);\n }", "public void push(int x) {\n queue.add(x);\n for (int i = 0; i < queue.size()-1; i++) {\n queue.add(queue.poll());\n }\n }", "public void push(int x) {\n queue.push(x);\n }", "public void push(int x) {\n if(x <= min){\n stack.push(min);\n min=x;\n }\n stack.push(x);\n }", "public void push(int x) {\n helper.add(x);\n helper.addAll(objects);\n\n tmp = objects;\n tmp.clear();\n objects = helper;\n helper = tmp;\n }", "public void push(int x) { //全部放到第一个\n temp1.push(x);\n }", "public void push(E x) {\n\t\t\n\t\taddBefore(mHead.next, x);\n\n\t\tmSize++;\n\t\tmodCount++;\n\t}", "public void push(int x) {\n q1.add(x);\n int n = q1.size();\n for (int i = 1; i < n; i++) {\n q1.add(q1.poll());\n }\n }", "public void push(int x) {\n Queue<Integer> tmp = new LinkedList<>();\n while (!queue.isEmpty()) {\n tmp.add(queue.remove());\n }\n queue.add(x);\n \n while (!tmp.isEmpty()) {\n queue.add(tmp.remove());\n }\n }", "public void push(int x) {\n one.add(x);\n for(int i=0;i<one.size()-1;i++)\n {\n one.add(one.poll());\n }\n \n }", "public void push(int x) {\n\t int size=q.size();\n\t q.offer(x);\n\t for(int i=0;i<size;i++){\n\t q.offer(q.poll());\n\t }\n\t \n\t }", "public void push(int x) {\n int n = queue.size();\n queue.offer(x);\n for (int i = 0; i < n; i++) {\n queue.offer(queue.poll());\n }\n }", "public void push(int x) {\r\n queue1.add(x);\r\n top = x;\r\n }", "public void push(int x) {\r\n queue1.add(x);\r\n top = x;\r\n }", "@Override\n\tpublic void push(Object x) {\n\t\tlist.addFirst(x);\n\t}", "void push(Integer x) {\n\n\t\tif (isEmpty()) {\n\t\t\ttop = new Node(x);\n\t\t\tmid = top;\n\t\t\ttotalNodes++;\n\t\t} else {\n\t\t\tNode n = new Node(x);\n\t\t\tn.next = top;\n\t\t\ttop.prev = n;\n\t\t\ttop = n;\n\t\t\ttotalNodes++;\n\t\t\tif (totalNodes % 2 != 0) {\n\t\t\t\tmid = mid.prev;\n\t\t\t}\n\t\t}\n\t}", "public void push(int x) {\n if (head == null) {\n head = new Node1(x, x);\n } else {\n head = new Node1(x, Math.min(x, head.min), head);\n }\n }", "public void push(int x) {\n q.offer(x);\n }", "@Override\n\tpublic void push(Object x) {\n\t\tthis.vector.add(x);\n\t}", "public void push(int x) {\n // 第一步先 push\n queue.offer(x);\n // 第二步把前面的变量重新倒腾一遍\n // 这一部分代码很关键,在树的层序遍历中也用到了\n int size = queue.size() - 1;\n for (int i = 0; i < size; i++) {\n queue.offer(queue.poll());\n }\n }", "void push(Integer x) {\n if (s.isEmpty()) {\n minEle = x;\n s.push(x);\n System.out.println(\"Number Inserted: \" + x);\n return;\n }\n // if new number is less than original minEle\n if (x < minEle) {\n s.push(2 * x - minEle);\n minEle = x;\n } else {\n s.push(x);\n }\n System.out.println(\"Number Inserted: \" + x);\n }", "public void push(int x) {\n queue.offer(x);\n }", "public void push(int element) {\n stack1.push(element);\n }", "public void stackPush(int element) {\r\n\t\ttop++;\r\n\t\tarray[top] = element;\r\n\t\tcount++;\r\n\t }", "public void push(int x) {\n if (!reverseQueue.isEmpty()) {\n normalQueue.offer(reverseQueue.poll());\n }\n normalQueue.offer(x);\n }", "public void push(int x) {\r\n this.queueMain.offer(x);\r\n }", "public void push(int x) {\n // for pop(), so prepare\n // 要想 pop 省事 push到 queue tail 的 x 要 想办法放到队列第一位\n // how 只要不空 移到另外一个 放好 x 再移回来\n while (!One.isEmpty()) {\n Two.add(One.poll());\n }\n One.add(x);\n while (!Two.isEmpty()) {\n One.add(Two.poll());\n }\n }", "public void push(T x);", "public void push(int x) {\n p.next=new ListNode(x);\n p = p.next;\n }", "@Override\n\tpublic void push(T element) {\n\t\tif(top == stack.length) \n\t\t\texpandCapacity();\n\t\t\n\t\tstack[top] = element;\n\t\ttop++;\n\n\t}", "public void push(ExParValue x) {\r\n\t\t// System.out.println(\"ExPar.push() currently on top \" +\r\n\t\t// value.toString() + \" pushing \" + x.toString());\r\n\t\tExParValue v = x.isUndefined() ? (ExParValue) value.clone()\r\n\t\t\t\t: (ExParValue) x.clone();\r\n\t\tv.next = value;\r\n\t\tvalue = v;\r\n\t\t// System.out.println(\"ExPar.push() New value: \" + value);\r\n\t}", "public void push (T element)\r\n {\r\n if (size() == stack.length) \r\n expandCapacity();\r\n\r\n stack[top] = element;\r\n top++;\r\n }", "public void push(int x) {\n\n if (list.isEmpty()) {\n head = x;\n }\n\n list2.add(x);\n while (!(list.isEmpty())) {\n list2.add(list.poll());\n }\n\n while (!(list2.isEmpty())) {\n list.add(list2.poll());\n }\n\n\n }", "public void push(int x) {\n while (!forReverse.isEmpty()) {\n queue.add(forReverse.poll());\n }\n queue.add(x);\n }", "void push(int x) \n\t{ \n\t\tif(isEmpty() == true) \n\t\t{ \n\t\t\tsuper.push(x); \n\t\t\tmin.push(x); \n\t\t} \n\t\telse\n\t\t{ \n\t\t\tsuper.push(x); \n\t\t\tint y = min.pop(); \n\t\t\tmin.push(y); \n\t\t\tif(x < y) \n\t\t\t\tmin.push(x); \n\t\t\telse\n\t\t\t\tmin.push(y); \n\t\t} \n\t}", "private static void sortedInsert(Stack<Integer> stack, int x) {\n if (stack.isEmpty() || stack.peek() < x) {\n stack.push(x);\n return;\n }\n int temp = stack.pop();\n sortedInsert(stack, x);\n stack.push(temp);\n }", "void push(int stackNum, int value) throws Exception{\n\t//check if we have space\n\tif(stackPointer[stackNum] + 1 >= stackSize){ //last element\n\t\tthrows new Exception(\"Out of space.\");\n\t}\n\n\t//increment stack pointer and then update top value\n\tstackPointer[stackNum]++; \n\tbuffer[absTopOfStack(stackNum)] = value;\n}", "public void push(int element) {\n while (!stack1.isEmpty()){\n stack2.push(stack1.pop());\n }\n stack1.push(element);\n while(!stack2.isEmpty()){\n stack1.push(stack2.pop());\n }\n }", "public void push(T x)\n\t{\n\t\t// If the head is null, set the head equal\n\t\t// to the new node.\n\t\tif(head == null)\n\t\t\thead = new Node<T>(x);\n\t\telse\n\t\t{\n\t\t\t// Loop through the list and add the new node\n\t\t\t// on to the back of the list.\n\t\t\tNode<T> curr = head;\n\t\t\twhile(curr.getNext() != null)\n\t\t\t\tcurr = curr.getNext();\n\n\t\t\tNode<T> last = new Node<T>(x);\n\t\t\tcurr.setNext(last);\n\t\t}\t\n\t}", "public void push(int x) {\n if(!queueA.isEmpty()){\n queueA.add(x);\n }else if(!queueB.isEmpty()){\n queueB.add(x);\n }else{\n queueA.add(x);\n }\n }", "public void push(T element) {\n if(isFull()) {\n throw new IndexOutOfBoundsException();\n }\n this.stackArray[++top] = element;\n }", "public void push(int element) {\n\t\tif (top -1 == size) { // top == --size\n\t\t\t//System.out.println(\"Stack is full\");\n\n\t\t\t//Switch\n\t\t\tint[] tmp = new int[size * 2];\n\t\t\tfor(int i = 0; i <= top; i++){\n\t\t\t\ttmp[i] = stacks[i];\n\t\t\t}\n\t\t\tstacks = null;\n\t\t\tstacks = new int[size * 2];\n\t\t\tfor(int i = 0; i <= top; i++){\n\t\t\t\tstacks[i] = tmp[i];\n\t\t\t}\n\t\t\tstacks[++top] = element;\n\t\t\tSystem.out.println(element + \" is pushed\");\n\t\t} else {\n\t\t\tstacks[++top] = element;\n\t\t\tSystem.out.println(element + \" is pushed\");\n\t\t}\n\t\tsize++;\n\t}", "public void push(int x) {\n if(q1.isEmpty()) {\n q1.add(x);\n while(q2.size() > 0) {\n q1.add(q2.poll());\n }\n }\n else {\n q2.add(x);\n while(q1.size() > 0) {\n q2.add(q1.poll());\n }\n }\n }", "void push(int x);", "void push(T x);", "public void push(int x) {\n if(q1.isEmpty()) {\n q1.add(x);\n while(q2.size() > 0) {\n q1.add(q2.poll());\n }\n } else {\n q2.add(x);\n while(q1.size() > 0){\n q2.add(q1.poll());\n }\n }\n }", "public void push (E item){\n this.stack.add(item);\n }", "public void push(T value) {\n \tstack.add(value);\n }" ]
[ "0.86726034", "0.85932225", "0.85570914", "0.8550038", "0.852482", "0.8498592", "0.8488227", "0.8461912", "0.8458076", "0.8428038", "0.8376653", "0.8370226", "0.8368897", "0.8343204", "0.83385926", "0.8335069", "0.8333074", "0.83219844", "0.83110696", "0.8299808", "0.82648236", "0.8260843", "0.8227758", "0.81988394", "0.819731", "0.81950635", "0.8136101", "0.813282", "0.81123054", "0.81123054", "0.81123054", "0.8089274", "0.8086407", "0.8082756", "0.8075835", "0.8058963", "0.8050122", "0.80101556", "0.79978484", "0.79816735", "0.7965629", "0.7918633", "0.78817797", "0.7859532", "0.7854534", "0.7853485", "0.78523874", "0.78523874", "0.78476787", "0.7841256", "0.78404015", "0.7834868", "0.7825307", "0.780459", "0.7791437", "0.77746886", "0.771773", "0.7690058", "0.765422", "0.765174", "0.7648162", "0.7646733", "0.76382875", "0.7637257", "0.7633213", "0.7633213", "0.7625352", "0.7617576", "0.7603999", "0.75609857", "0.75587195", "0.75492984", "0.75358003", "0.75231606", "0.74670357", "0.7450564", "0.74457633", "0.7396862", "0.73832387", "0.73720616", "0.7360162", "0.73447925", "0.7335559", "0.7328421", "0.7286221", "0.7262818", "0.72311556", "0.72194356", "0.72047585", "0.71959877", "0.7185571", "0.717108", "0.7165948", "0.7088451", "0.7078484", "0.7070283", "0.70639855", "0.704537", "0.70401484", "0.70389265" ]
0.70509607
97
Removes the element on top of the stack and returns that element.
public int pop() { q1.pop(); q2.push(q1.pop()); return q1.pop(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T pop() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\t//remove top element from stack\n\t\t//and \"clear to let GC do its work\"\n\t\treturn elements.remove(elements.size() - 1);\n\t}", "@Override\r\n\tpublic T pop() {\r\n\t\tT top = stack[topIndex];\r\n\t\tstack[topIndex] = null;\r\n\t\ttopIndex--;\r\n\t\treturn top;\r\n\t}", "public Object pop() {\n if (top >= 0) {\n Object currentObject = stack[top--];\n if (top > minStackSize) {\n decreaseStackSize(1);\n }\n return currentObject;\n }\n else {\n return null;\n }\n }", "public T pop() {\n T top = peek();\n stack[topIndex] = null;\n topIndex--;\n return top;\n }", "public T pop() {\n \tT retVal = stack.get(stack.size() - 1); // get the value at the top of the stack\n \tstack.remove(stack.size() - 1); // remove the value at the top of the stack\n \treturn retVal;\n }", "public E pop()\n {\n E topVal = stack.removeFirst();\n return topVal;\n }", "public E pop(){\n return this.stack.remove(stack.size()-1);\n }", "public Object pop()\r\n {\n assert !this.isEmpty();\r\n\t\t\r\n Node oldTop = this.top;\r\n this.top = oldTop.getNext();\r\n oldTop.setNext(null); // enable garbage collection\r\n return oldTop.getItem();\r\n }", "public T pop() {\n\t\tT value = peek();\n\t\tstack.remove(value);\n\t\treturn value;\n\t}", "public E pop(){\n\t\tif(top == null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tE retval = top.element;\n\t\ttop = top.next;\n\t\t\n\t\treturn retval;\n\t}", "public E pop () {\n\t\treturn stack.remove( stack.size()-1 );\t\t\n\t}", "private Element popElement() {\r\n return ((Element)this.elements.remove(this.elements.size() - 1));\r\n }", "public E pop(){\r\n\t\tObject temp = peek();\r\n\t\t/**top points to the penultimate element*/\r\n\t\ttop--;\r\n\t\treturn (E)temp;\r\n\t}", "public T pop() {\r\n\t\tT ele = top.ele;\r\n\t\ttop = top.next;\r\n\t\tsize--;\r\n\t\t\r\n\t\treturn ele;\r\n\t}", "public T pop() {\n\t\tif (this.l.getHead() != null) {\n\t\t\tT tmp = l.getHead().getData();\n\t\t\tl.setHead(l.getHead().getNext());\n\t\t\treturn tmp;\n\t\t} else {\n\t\t\tSystem.out.println(\"No element in stack\");\n\t\t\treturn null;\n\t\t}\n\t}", "public T pop() {\n if(isEmpty()) {\n throw new NoSuchElementException(\"Stack is empty\");\n }\n return this.stackArray[top--];\n }", "@Override\n\tpublic T pop() {\n\t\tif(isEmpty()) {\n\t\t\tSystem.out.println(\"Stack is Empty\");\n\t\treturn null;}\n\t\ttop--;\t\t\t\t\t\t//top-- now before since we need index top-1\n\t\tT result = stack[top];\n\t\tstack[top] = null;\n\t\treturn result;\n\t\t\t\n\t}", "public E removeFirst() {\n return pop();\n }", "public Object pop() {\n return stack.pop();\n }", "public GenericStack popStack(){\n if(isEmpty() == true)return null;\n GenericStack temp = top;\n // makes next item in list the tip\n top = top.next;\n return temp;\n }", "public Object pop( )\n {\n Object item = null;\n\n try\n {\n if ( this.top == null)\n {\n throw new Exception( );\n }\n\n item = this.top.data;\n this.top = this.top.next;\n \n this.count--;\n }\n catch (Exception e)\n {\n System.out.println( \" Exception: attempt to pop an empty stack\" );\n }\n\n return item;\n }", "public T pop() { //pop = remove the last element added to the array, in a stack last in, first out (in a queue pop and push from different ends)\n try {\n T getOut = (T) myCustomStack[numElements - 1]; //variable for element to remove (pop off) = last element (if you have 7 elements, the index # is 6)\n myCustomStack[numElements] = null; //remove element by making it null\n numElements--; //remove last element, decrease the numElements\n return getOut; //return popped number\n\n } catch (Exception exc) {\n System.out.println(\"Can't pop from empty stack!\");\n return null;\n }\n }", "Object pop();", "public E pop() throws NoSuchElementException{\n\t\treturn stackList.removeFromFront();\n\t}", "public E pop() {\n if(isEmpty()) throw new EmptyStackException();\n\n E itemPopped = this.stack[top-1];\n this.stack[top-1] = null;\n top--;\n return itemPopped;\n\n }", "public Object pop();", "public T pop() {\n\t\tT value = null;\n\t\tif (!isEmpty()) {\n\t\t\ttop = top.next;\n\t\t\tvalue = top.value;\n\t\t}\n\t\treturn value; // returning popped value\n\t}", "public T pop() {\r\n if ( top == null )\r\n throw new IllegalStateException(\"Can't pop from an empty stack.\");\r\n T topItem = top.item; // The item that is being popped.\r\n top = top.next; // The previous second item is now on top.\r\n return topItem;\r\n }", "public T peek() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\t//returns the top element.\n\t\treturn elements.get(elements.size()-1);\n\t}", "public T pop();", "public T pop();", "public T pop();", "public T pop();", "public T pop();", "public T pop();", "public T pop();", "public T pop();", "public Item pop() {\n if(isEmpty()) return null;\n Item item = top.data;\n top = top.next;\n size--;\n return item;\n\n }", "public T pop() throws EmptyStackException\r\n {\r\n if (isEmpty())\r\n throw new EmptyStackException();\r\n\r\n top--;\r\n T result = stack[top];\r\n stack[top] = null; \r\n\r\n return result;\r\n }", "public TYPE pop();", "public Object pop()\n\t{\n\t\tif (size == 0)\n\t\t\tthrow new EmptyStackException();\n\t\t\n\t\tObject result = elements[--size];\n\t\telements[size] = null;\n\t\treturn result;\n\t}", "public Employee pop() {\n if (isEmpty()) {\n throw new EmptyStackException();\n }\n /*top always contains the index of next available position in the array so, there is nothing at top.\n The top item on the stack is actually stored at top-1\n */\n Employee employee = stack[--top];\n stack[top] = null; //assign removed element position to null\n return employee; // return the removed element\n }", "@Override\n\tpublic E pop() throws EmptyStackException {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException(\"Empty Stack\");\n\t\t}\n\t\tE element = arr[top];\n\t\tarr[top--] = null;\n\t\treturn element;\n\t}", "private final Object pop() {\r\n\t\treturn eval_stack.remove(eval_stack.size() - 1);\r\n\t}", "T pop();", "T pop();", "T pop();", "public Object pop() {\n if (isEmpty())\n throw new EmptyStackException();\n\n Object value = peek();\n collection.remove(collection.size() - 1);\n return value;\n }", "public T pop() {\r\n T o = get(size() - 1);\r\n remove(size() - 1);\r\n return o;\r\n\t}", "public T pop() throws EmptyStackException {\n if (top == null) {\n throw new EmptyStackException();\n }\n\n StackNode<T> removed = top;\n top = top.getNext();\n return removed.getData();\n }", "public Object pop() {\n\t\tif(this.isEmpty())\n throw new IllegalStateException(\"Stack is empty\");\n return items.remove(items.size() - 1);\n\t}", "@Override\n public E pop() {\n E result = peek();\n storage[ top-- ] = null;\n return result;\n\n }", "public Object pop() {\n if (top != null) {\n Object item = top.getOperand();\n\n top = top.next;\n return item;\n }\n\n System.out.println(\"Stack is empty\");\n return null;\n\n }", "public T pop()\n\t{\n\t\treturn list.removeFirst();\n\t}", "public T pop()\n {\n if (ll.getSize()==0){\n return null;\n }else {\n T temp = ll.getData(ll.getSize() - 1);\n ll.remove(ll.getSize() - 1);\n\n return temp;\n }\n }", "@Override\n public T pop(){\n\n if (arrayAsList.isEmpty()){\n throw new IllegalStateException(\"Stack is empty. Nothing to pop!\");\n }\n\n T tempElement = arrayAsList.get(stackPointer - 1);\n arrayAsList.remove(--stackPointer);\n\n return tempElement;\n }", "T pop() {\n if (stackSize == 0) {\n throw new EmptyStackException();\n }\n return stackArray[--stackSize];\n }", "@Override\r\n\tpublic E pop() {\r\n\t\tif (isEmpty())\r\n\t\t\treturn null;\r\n\t\tE answer = stack[t];\r\n\t\tstack[t] = null; // dereference to help garbage collection\r\n\t\tt--;\r\n\t\treturn answer;\r\n\t}", "public String pop() {\n String removed = NOTHING;\n // Is there anything in the stack to remove?\n if (usage > 0) {\n // Obtain the topmost value from the stack\n removed = this.foundation[this.foundation.length - this.usage];\n // Clean up the array location\n this.foundation[this.foundation.length - this.usage] = null;\n // Decrease usage counter\n usage--;\n }\n return removed;\n }", "public Object pop() {\n\t\tObject o = get(getSize() - 1);\n\t\tremove(getSize() - 1);\n\t\treturn o;\n\t}", "public T pop() {\r\n\r\n\t\tT top = peek(); // Throws exception if stack is empty.\r\n\t\t\r\n\t\t// Sets top of stack to next link. \r\n\t\ttopNode = topNode.getNext();\r\n\t\t\r\n\t\treturn top;\r\n\t\t\r\n\t}", "public T pop() {\n if (this.top == null) {\n throw new EmptyStackException();\n }\n T data = this.top.data;\n this.top = this.top.below;\n return data;\n }", "private synchronized BackStep pop() {\r\n\t\t\tBackStep bs;\r\n\t\t\tbs = stack[top];\r\n\t\t\tif (size == 1) {\r\n\t\t\t\ttop = -1;\r\n\t\t\t} else {\r\n\t\t\t\ttop = (top + capacity - 1) % capacity;\r\n\t\t\t}\r\n\t\t\tsize--;\r\n\t\t\treturn bs;\r\n\t\t}", "public T pop() {\n\t\tif (isEmpty())\n\t\t\tthrow new EmptyStackException();\n\t\telse\n\t\t\treturn vector.remove(vector.size() - 1);\t\t\n\t}", "public Session pop() {\r\n\t\tint oldIndex = index;\r\n\t\tif (index >= 0) {\r\n\t\t\tindex--;\r\n\t\t\treturn stack[oldIndex];\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public T top() {\n \treturn stack.get(stack.size() - 1);\n }", "@Override\r\n\tpublic E pop() {\n\t\treturn null;\r\n\t}", "public void pop();", "public final Object pop()\n {\n synchronized (this.stack)\n {\n return this.stack[--this.pointer];\n }\n }", "@Override\n\tpublic E pop() {\n\t\treturn null;\n\t}", "Object pop(){\r\n\t\tlastStack = getLastStack();\r\n\t\tif(lastStack!=null){\r\n\t\t\tint num = lastStack.pop();\r\n\t\t\treturn num;\r\n\t\t} else {stacks.remove(stacks.size()-1);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic T pop() throws StackUnderflowException {\r\n\t\tif (!isEmpty()) {\r\n\t\t\tT e = stack.get(size()-1);\r\n\t\t\tstack.remove(size()-1);\r\n\t\t\treturn e;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new StackUnderflowException();\r\n\t\t}\r\n\t}", "public T pop() {\n if (head == null) {\n return null;\n } else {\n Node<T> returnedNode = head;\n head = head.getNext();\n return returnedNode.getItem();\n }\n }", "@Override\n\tpublic Object pop() {\n\t\tif (elementCount == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\telementCount--;\n\t\treturn elementData[elementCount];\n\t}", "public T pop()\n {\n return pop(first);\n }", "public O popBack()\r\n {\r\n if (!isEmpty())\r\n {\r\n VectorItem<O> l = last;\r\n last = last.getPrevious();\r\n\r\n count--;\r\n if (isEmpty()) first = null;\r\n else last.setNext(null);\r\n return l.getObject();\r\n } else\r\n return null;\r\n \r\n }", "E pop() throws EmptyStackException;", "public Object pop() {\n return fStack.pop();\n }", "@Override\r\n\tpublic T top() throws StackUnderflowException{\r\n\t\tif (!isEmpty()) {\r\n\t\t\tT e = stack.get(size()-1);\r\n\t\t\treturn e;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new StackUnderflowException();\r\n\t\t}\r\n\t}", "public E pop();", "public E pop();", "public E pop();", "public E pop();", "public E pop();", "public E pop() {\n return stackImpl.pop();\n }", "public E pop() \r\n {\r\n E o = list.get(getSize() - 1);\r\n list.remove(getSize() - 1);\r\n return o;\r\n }", "public AnyType pop() throws StackException;", "public K pop() {\n\t\tK data = null;\r\n\t\tif(top!=null){\r\n\t\t\tdata = top.data;\r\n\t\t\ttop = top.next;\r\n\t\t\tsize--;\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "public Item pop()\n {\n if (isEmpty()) throw new NoSuchElementException(\"Stack underflow\");\n Item item = top.item;\n top = top.next;\n N--;\n return item;\n }", "public T pop() {\n StackNode tempNode = peekNode();\n\n if(length > 1) {\n lastNode = peekNode().getParent();\n tempNode.setParent(null);\n length--;\n return (T) tempNode.getTData();\n }\n else if(length == 1) {\n lastNode = new StackNode();\n length--;\n return (T) tempNode.getTData();\n }\n else {\n throw new IndexOutOfBoundsException(\"Your stack is empty!\");\n }\n }", "public void pop()\r\n\t{\r\n\t\ttop--;\r\n\t\tstack[top] = null;\r\n\t}", "public Node<T> pop() {\n\n\t\tNode<T> popNode = new Node<T>();\n\t\tpopNode = getTopNode();\n\n\t\t/*\n\t\t * Three special cases for a pop() are a empty stack, only one node at\n\t\t * the top and a stack with multiple elements.\n\t\t */\n\t\tif (isEmpty()) {\n\t\t\tSystem.out.println(\"Stack is EMPTY!!\");\n\t\t\treturn (null);\n\t\t} else if (stackSize == 1) {\n\t\t\ttopNode = null;\n\t\t} else {\n\t\t\ttopNode = topNode.getNextNode();\n\t\t}\n\n\t\tSystem.out.println(\"## POP \\\"\" + popNode.data + \"\\\" FROM STACK ##\");\n\n\t\t// Decrease Stack Size\n\t\tsetStackSize(getStackSize() - 1);\n\t\treturn (popNode);\n\t}", "public T pop() throws StackUnderflowException{\r\n\t\t\t\t\r\n\t\t// check if the stack is empty before popping up.\r\n\t\tif(stackData.isEmpty())\r\n\t\t\tthrow new StackUnderflowException();\r\n\r\n\t\treturn stackData.remove(stackData.size()-1); //popping;\r\n\t}", "public Object pop() {\n\t\tObject lastElement = peek();\n\t\t\n\t\tint indexOfLastElement = collection.size() - 1;\n\t\tcollection.remove(indexOfLastElement);\n\t\t\n\t\treturn lastElement;\n\t}", "public E pop(){\r\n Node<E> curr = top;\r\n top = top.getNext();\r\n size--;\r\n return (E)curr.getData();\r\n \r\n }", "@Override\n\tpublic E pop() {\n\t\tif(size == 0) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\tsize--;\n\t\treturn list.remove(0);\n\t}", "public E pop(){\n E o = list.get(list.size() - 1);\n list.remove(list.size() - 1);\n return o;\n }", "E pop();", "E pop();", "E pop();", "@Override\n public T pop() {\n if (!isEmpty()) {\n T data = backing[size - 1];\n backing[size - 1] = null;\n size--;\n return data;\n } else {\n throw new NoSuchElementException(\"The stack is empty\");\n }\n }" ]
[ "0.7831054", "0.78167725", "0.7808246", "0.7797564", "0.7689596", "0.7677747", "0.7633739", "0.76071864", "0.7598945", "0.7597015", "0.7577195", "0.75743157", "0.75456405", "0.75169796", "0.750027", "0.74873495", "0.74667877", "0.7460093", "0.74569875", "0.7456191", "0.744837", "0.74207103", "0.7406906", "0.74033815", "0.7401186", "0.7379766", "0.7370952", "0.73472834", "0.734713", "0.7335123", "0.7335123", "0.7335123", "0.7335123", "0.7335123", "0.7335123", "0.7335123", "0.7335123", "0.7324371", "0.7313926", "0.7311951", "0.73110545", "0.7310549", "0.7304512", "0.7297009", "0.7293909", "0.7293909", "0.7293909", "0.7284467", "0.72834486", "0.72771436", "0.7270916", "0.7266674", "0.72660893", "0.72511417", "0.7238035", "0.72323054", "0.72286993", "0.72209424", "0.72192407", "0.7210599", "0.72091603", "0.7199765", "0.7196248", "0.7195882", "0.7189582", "0.71828914", "0.71817344", "0.7177487", "0.71751624", "0.71638006", "0.7152466", "0.7151245", "0.7142062", "0.71410716", "0.71334636", "0.7117701", "0.71173024", "0.71133095", "0.71099454", "0.71064913", "0.71064913", "0.71064913", "0.71064913", "0.71064913", "0.7102089", "0.71010643", "0.70969707", "0.7088635", "0.7065762", "0.7061361", "0.70485055", "0.7044555", "0.7040969", "0.70397604", "0.7035089", "0.7034882", "0.7031653", "0.70310974", "0.70310974", "0.70310974", "0.70287824" ]
0.0
-1
Get the top element.
public int top() { return q1.getFirst(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int top() {\n return topElem;\n }", "public E top() {\n return !isEmpty() ? head.item : null;\n }", "public int topElement() {\n\t\tif(isEmpty()){\n\t\t\tthrow new AssertionError();\n\t\t}\n\t\telse {\n\t\t\treturn heap.get(0).element;\n\t\t\n\t\t}\n\t}", "public T getTop( );", "E top();", "public int top() { return 0; }", "public int top() {\r\n return top;\r\n }", "public int top() {\r\n return top;\r\n }", "public int getTop() {\n\t\treturn this.top;\n\t}", "public int getTop() {\n\treturn top;\n }", "public Integer getTop() {\n return top;\n }", "public int top() {\n return top;\n }", "public int getTop() {\n return top;\n }", "public T top();", "public int top() {\n return One.peek();\n }", "public T peek() {\r\n\t\tT ele = top.ele;\r\n\t\treturn ele;\r\n\t}", "Location getTop() {\n // -\n if(!isEmpty())\n return top.getLocation();\n return null;\n }", "public float getTop() {\n return internalGroup.getTop();\n }", "public abstract Object top();", "public T top() {\n \treturn stack.get(stack.size() - 1);\n }", "public int top() {\n return (int) one.peek();\n \n }", "public int top() {\n return list.peek();\n }", "public E top() {\n return head.prev.data;\n }", "public int top() {\n return top.value;\n }", "public int top();", "public E top()\n {\n E topVal = stack.peekFirst();\n return topVal;\n }", "public MeasurementCSSImpl getTop()\n\t{\n\t\treturn top;\n\t}", "public E peek(){\n\t\treturn top.element;\n\t}", "public int top() {\n\t return q.peek();\n\t }", "public Node top() {\r\n\t\treturn start;\r\n\t}", "public int top() {\n return q.peek();\n }", "public int top() {\n \treturn list.get(list.size()-1);\n }", "public int getTop() {\n return position[0] - (size - 1) / 2;\n }", "public int top() {\n\t\treturn list.get(list.size() - 1);\n\t}", "public int top() {\n return objects.peek();\n }", "public E top()\n\tthrows EmptyStackException;", "public E top() {\n\t\tif (this.top == null) {\n\t\t\tthrow new EmptyStackException( );\n\t\t}\n\t\treturn this.top.data;\n\t\t\t\n\t}", "@Override\n\tpublic E top() throws EmptyStackException {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException(\"Empty Stack\");\n\t\t}\n\t\treturn arr[top];\n\t}", "public Node<T> getTopNode() {\n\t\treturn topNode;\n\t}", "public int top() {\n return queue.element();\n }", "public int top() {\n\t\treturn stack.peek();\n \n }", "public T peek() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\t//returns the top element.\n\t\treturn elements.get(elements.size()-1);\n\t}", "public int top() {\n return q1.peek();\n }", "public int viewTop(){\r\n\t\treturn queue[0];\r\n\t}", "public int top() {\n int size = q.size();\n for(int i = 1; i<size;i++){\n q.offer(q.poll());\n }\n int value = q.peek();\n q.offer(q.poll());\n \n return value;\n }", "public K topValue() {\n\t\tif(top!=null)\r\n\t\t\treturn top.data;\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public int top() {\n return p.val;\n }", "public Object peek()\r\n {\n assert !this.isEmpty();\r\n return this.top.getItem();\r\n }", "public int top() {\r\n int value = this.pop();\r\n this.stack.offer(value);\r\n return value;\r\n }", "public int top() {\n if(!q1.isEmpty())return q1.peek();\n else return -1;\n }", "@Nullable\n public DpProp getTop() {\n if (mImpl.hasTop()) {\n return DpProp.fromProto(mImpl.getTop());\n } else {\n return null;\n }\n }", "public String top(){\n if(!(pilha.size() == 0)){\n return pilha.get(pilha.size()-1);\n }else{\n return null;\n }\n }", "public ILocation top()\n {\n EmptyStackException ex = new EmptyStackException();\n if (top <= 0)\n {\n throw ex;\n }\n else\n {\n return stack.get(top - 1);\n }\n }", "public E popTop() {\n // FILL IN\n }", "public int top() {\n return stack1.peek();\n }", "public Card top() {\r\n\t\treturn cards.get(cards.size() - 1);\r\n\t}", "public View getTopView() {\n\t\tint topViewIndex = getChildCount() - 1;\n\t\treturn getChildAt(topViewIndex);\n\t}", "public Card top() {\n\t\treturn firstCard;\n\t}", "public int top() {\n Integer poll = q1.peek();\n return poll == null ? -1 : poll;\n }", "public int top() {\n return queue.peek();\n }", "public int top() {\n return queue.peek();\n }", "public int getElementAtTopOfStack() {\n if (isEmpty()) throw new RuntimeException(\"Stack underflow\");\n return myarray[top];\n \n }", "int top();", "public int top() {\n return queue.peek();\n }", "public int top() {\n return queue.peek();\n }", "public E top() throws StackUnderflowException {\r\n E item = null;\r\n if(!isEmpty()) item = items.get(0);\r\n else throw new StackUnderflowException(\"Stack Empty\");\r\n \r\n return item;\r\n }", "public int top() {\n\t\tIterator<Integer> iter = queue.iterator();\n\t\tint temp = 0;\n\t\twhile (iter.hasNext())\n\t\t\ttemp = iter.next();\n\t\treturn temp;\n\t}", "public int top() {\n move();\n return reverseQueue.peek();\n }", "public String top() {\n return queue.size() == 0 ? null : queue.get(0);\n }", "@VisibleForTesting\n public TaskStack getTopStack() {\n if (DisplayContent.this.mTaskStackContainers.getChildCount() > 0) {\n return (TaskStack) DisplayContent.this.mTaskStackContainers.getChildAt(DisplayContent.this.mTaskStackContainers.getChildCount() - 1);\n }\n return null;\n }", "public Card getTopCard(){\n\t\treturn getCard(4);\n\t\t\n\t}", "public Disc top()\n\t{\n\t\tint poleSize = pole.size();\n\n\t\t// If the pole is empty, return nothing\n\t\tif(poleSize == 0)\n\t\t\treturn null;\n\n\t\t// Otherwise return the top disc\n\t\treturn pole.get(poleSize - 1);\n\t}", "public int top() {\r\n int size = this.queueMain.size();\r\n if(size == 1) return this.queueMain.element();\r\n // 转移n-1\r\n while(size != 1){\r\n this.queueHelp.offer(this.queueMain.poll());\r\n size--;\r\n }\r\n // 然后取出第n个元素\r\n int res = this.queueHelp.element();\r\n // 转移到辅助队列\r\n this.queueHelp.offer(this.queueMain.poll());\r\n // 再调换\r\n Queue<Integer> temp = this.queueMain;\r\n this.queueMain = this.queueHelp;\r\n this.queueHelp = temp;\r\n\r\n return res;\r\n }", "public T peek() {\n return top.getData();\n }", "public int top() {\n return queue.peekLast();\n }", "public int top() {\n return queue.getLast();\n }", "public int top() {\n int size=queue.size();\n for (int i = 0; i < size-1; i++) {\n int temp=queue.poll();\n queue.add(temp);\n }\n int top=queue.poll();\n queue.add(top);\n return top;\n }", "@Override\n\tpublic T top()\n\t{\n if(list.size()==0)\n {\n throw new IllegalStateException(\"Stack is empty\");\n }\n return list.get(getSize()-1);\n\t}", "public Integer peek() {\n if (hasTop)\n return top;\n top = it.next();\n hasTop = true;\n return top;\n }", "public T top() throws StackUnderflowException;", "@DISPID(-2147417103)\n @PropGet\n int offsetTop();", "public static Interval topInterval(){\n\t\treturn top;\n\t}", "public double getTop() {\n return this.yT;\n }", "public int top() {\n\t\treturn count == 0? -1 : st[count-1];\r\n\t}", "public T peek() {\n\t\treturn top.value;\n\t}", "public int top() {\n int size = queue.size();\n for (int i = 0; i < size - 1; i++) {\n Integer poll = queue.poll();\n queue.offer(poll);\n }\n Integer poll = queue.poll();\n queue.offer(poll);\n return poll;\n }", "public Card getTopCard() {\n\t\treturn topCard;\n\t}", "public int top() {\n if(q1.size() > 0){\n return q1.peek();\n } else {\n return q2.peek();\n }\n }", "public int top() {\n if(q1.size() > 0) {\n return q1.peek();\n } else {\n return q2.peek();\n }\n }", "public Card topCard() {\n return this.deck.peek();\n }", "public Card showTop() {\n\t\treturn hand.get(0);\n\t}", "public int top() {\n return queue1.peek();\n }", "public E pop(){\n\t\tif(top == null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tE retval = top.element;\n\t\ttop = top.next;\n\t\t\n\t\treturn retval;\n\t}", "@Override\n public E top()throws EmptyStackException{\n E c = null;\n if(!isEmpty()){\n c = stackArray[count-1];\n return c;\n }\n \n else \n throw new EmptyStackException();\n }", "public final Symbol top() {\n\t\ttry {\n\t\t\treturn opstack.top().getSymbol();\n\t\t} catch (BadTypeException | EmptyStackException e) {\n\t\t\tSystem.out.println(\"An exception has occurred, \"\n\t\t\t\t\t+ \"Maybe the stack has gone empty\");\n\t\t\treturn null;\n\t\t}\n\t}", "public int top() {\n if (data.size() != 0) {\n return data.get(data.size() - 1);\n }\n throw new RuntimeException(\"top: 栈为空,非法操作\");\n }", "@Override\n\tpublic final int getBodyOffsetTop() {\n\t\treturn DOMImpl.impl.getBodyOffsetTop(documentFor());\n\t}", "public int stackTop() {\r\n\t return array[top];\r\n\t }", "@Override\r\n\tpublic T top() throws StackUnderflowException{\r\n\t\tif (!isEmpty()) {\r\n\t\t\tT e = stack.get(size()-1);\r\n\t\t\treturn e;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new StackUnderflowException();\r\n\t\t}\r\n\t}", "protected abstract String getTopElementDesc();" ]
[ "0.8335419", "0.79350287", "0.77536744", "0.7748599", "0.76948357", "0.76440716", "0.76287603", "0.76287603", "0.76210487", "0.761078", "0.75897783", "0.757352", "0.75697553", "0.75569373", "0.75336695", "0.74941546", "0.7478168", "0.7464024", "0.7455516", "0.744731", "0.7420307", "0.74064183", "0.7404334", "0.7353008", "0.73424685", "0.7341916", "0.7309753", "0.73067194", "0.73048276", "0.72713166", "0.7264665", "0.72567767", "0.7251667", "0.72243714", "0.72178376", "0.71938527", "0.71595603", "0.71482515", "0.71470845", "0.71425194", "0.71301484", "0.70901084", "0.7072783", "0.70704937", "0.7051931", "0.70452917", "0.7038905", "0.70281166", "0.7018083", "0.7016962", "0.70164806", "0.70121604", "0.69869167", "0.69616324", "0.6950085", "0.6943346", "0.6937197", "0.69266814", "0.6905805", "0.69020635", "0.69020635", "0.6881843", "0.6880443", "0.68785655", "0.68785655", "0.6876129", "0.6875657", "0.6870703", "0.6870001", "0.6850275", "0.6835022", "0.6834514", "0.68320215", "0.67999524", "0.6795726", "0.6791124", "0.67760855", "0.6769921", "0.6759245", "0.6757686", "0.67564976", "0.6752771", "0.6745556", "0.67297226", "0.67111665", "0.66882724", "0.6669713", "0.66412", "0.6635151", "0.662763", "0.66263247", "0.65971553", "0.6585567", "0.65791434", "0.6574525", "0.6572038", "0.65619075", "0.6542071", "0.6534093", "0.64797187" ]
0.7213566
35
Returns whether the stack is empty.
public boolean empty() { return q1.isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean emptyStack() {\n return (expStack.size() == 0);\n }", "public boolean isEmpty()\n {\n return stack.size() == 0;\n }", "public boolean isEmpty() {\n \treturn stack.size() == 0;\n }", "public boolean isEmpty()\n {\n return stack.isEmpty();\n }", "public boolean isEmpty() {\n return stackImpl.isEmpty();\n }", "public boolean empty() {\r\n return this.stack.isEmpty();\r\n }", "public boolean empty() {\r\n return stack.isEmpty();\r\n }", "public boolean empty() {\n return stack.isEmpty();\n }", "public boolean empty() {\n return stack.isEmpty();\n }", "public boolean empty() {\n System.out.println(stack.isEmpty());\n return stack.isEmpty();\n }", "public boolean isEmpty() {\n\t\treturn (stackSize == 0 ? true : false);\n\t}", "public boolean empty() {\r\n return stack.isEmpty();\r\n }", "public boolean empty() {\n return popStack.empty() && pushStack.empty();\n }", "public boolean empty() {\n return stack.isEmpty();\n }", "public boolean empty() {\n return stack.empty();\n }", "public boolean isEmpty(){\r\n\t\treturn stackData.isEmpty();\r\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn stack.isEmpty();\r\n\t}", "public boolean isEmpty(){\n return this.stack.isEmpty();\n\n }", "public final boolean isEmpty() {\n\t\treturn !(opstack.size() > 0);\n\t}", "public boolean empty() {\n return popStack.isEmpty();\n }", "public boolean empty() {\n\t\tif(stackTmp.isEmpty() && stack.isEmpty()){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isEmpty() {return stackList.isEmpty();}", "public boolean isEmpty() {\n return stack.isListEmpty();\n }", "public boolean empty() {\n return this.stack1.empty() && this.stack2.empty();\n }", "public boolean empty() {\n return this.stack2.size() == 0 && this.stack1.size() == 0;\n }", "public boolean stackEmpty() {\r\n\t\treturn (top == -1) ? true : false;\r\n\t }", "public boolean isEmpty() {\n if (opStack.size() == 0) {\n return true;\n }\n return false;\n }", "public boolean empty() {\n return rearStack.isEmpty() && frontStack.isEmpty();\n }", "public boolean empty() {\n /**\n * 当两个栈中都没有元素时,说明队列中也没有元素\n */\n return stack.isEmpty() && otherStack.isEmpty();\n }", "public boolean empty() {\r\n return inStack.empty() && outStack.empty();\r\n }", "public boolean empty() {\n if (stackIn.empty() && stackOut.empty()) {\n return true;\n }\n return false;\n }", "public boolean isCarStackEmpty() {\n boolean carStackEmpty = false;\n if(top < 0) {\n carStackEmpty = true;\n }\n return carStackEmpty;\n }", "public boolean isEmpty() {\n return downStack.isEmpty();\n }", "public boolean isEmpty(){\r\n \treturn stack1.isEmpty();\r\n }", "public boolean empty() {\n return stack1.empty();\n }", "public boolean empty() {\n return stack1.isEmpty() && stack2.isEmpty();\n }", "public boolean empty() {\n return mStack1.isEmpty() && mStack2.isEmpty();\n }", "public boolean isEmpty() \n {\n return stack1.isEmpty() && stack2.isEmpty();\n }", "@Override\r\n\tpublic boolean isFull() {\r\n\t\treturn stack.size() == size;\r\n\t}", "private static boolean isStackEmpty(SessionState state)\n\t{\n\t\tStack operations_stack = (Stack) state.getAttribute(STATE_SUSPENDED_OPERATIONS_STACK);\n\t\tif(operations_stack == null)\n\t\t{\n\t\t\toperations_stack = new Stack();\n\t\t\tstate.setAttribute(STATE_SUSPENDED_OPERATIONS_STACK, operations_stack);\n\t\t}\n\t\treturn operations_stack.isEmpty();\n\t}", "public boolean isEmpty() {\n\n return (top == null);\n }", "public boolean empty() {\n return storeStack.isEmpty();\n }", "public boolean empty() {\n return storeStack.isEmpty();\n }", "public boolean empty() {\n return storeStack.isEmpty();\n }", "public boolean isEmpty() {\r\n return (top == null);\r\n }", "public boolean isEmpty() {\n return (this.top == 0);\n }", "public boolean isEmpty() {\n\t\treturn (top == null) ? true : false;\n\t}", "public boolean isEmpty()\n\t{\n\t\treturn top == null;\n\t}", "public boolean isEmpty() {\n\t\t\n\t\treturn top == null;\n\t}", "public boolean isFull() {\n return (this.top == this.stack.length);\n }", "public boolean isEmpty() {\n return top == null;\n }", "public boolean isEmpty() {\n return top == null;\n }", "public boolean isEmpty()\r\n\t{\r\n\t\treturn top<=0;\r\n\t}", "public boolean isEmpty() {\n\t\treturn heap.size() == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn heap.size() == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn heap.isEmpty();\n\t}", "public boolean is_empty() {\n\t\tif (queue.size() <= 0) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean empty() {\n return push.isEmpty();\n }", "public boolean isEmpty(){\n return (top == 0);\n }", "@Override\r\n\tpublic boolean isFull() {\r\n\t\tif(topIndex == stack.length -1) {\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\t\r\n\t}", "public boolean isEmpty()\r\n {\n return this.top == null;\r\n }", "public boolean isEmpty() {\n return this.top == null;\n }", "public boolean isEmpty() {\n if(this.top== -1) {\n return true;\n }\n return false;\n }", "public void testIsEmpty() {\n assertTrue(this.empty.isEmpty());\n assertFalse(this.stack.isEmpty());\n }", "public boolean isEmpty() {\n\t\treturn front == null;\n\t}", "public boolean empty() { \n if (top == -1) {\n return true;\n }\n else {\n return false;\n }\n }", "public boolean isEmpty() {\n return (fifoEmpty.getBoolean());\n }", "public boolean empty() {\n\t\treturn (size() <= 0);\n\t}", "public boolean isEmpty() {\n return top==-1;\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn top==null;\r\n\t}", "public boolean isEmpty()\n {\n return heapSize == 0;\n }", "public boolean isFull(){\n return (top == employeeStack.length);\n }", "public static boolean isEmpty()\n { return currentSize==0; }", "public boolean isEmpty() {\n return topIndex < 0;\n }", "public final boolean isEmpty() {\r\n\t\treturn this.size == 0;\r\n\t}", "public boolean isEmpty() {\n\t\treturn queue.isEmpty();\n\t}", "public boolean isEmpty() {\n\t\treturn queue.isEmpty();\n\t}", "public boolean isEmpty() {\n\t\treturn (size == 0);\n\t}", "public boolean empty() {\n return stk1.isEmpty() && stk2.isEmpty();\n }", "public synchronized boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn currentSize == 0;\n\t}", "public boolean isEmpty(){\n if(top == null)return true;\n return false;\n }", "public boolean isEmpty() {\n\t\treturn mSentinel == mRoot;// if the root is equal to the sentinel(empty\n\t\t\t\t\t\t\t\t\t// node) then the tree is empty otherwise it\n\t\t\t\t\t\t\t\t\t// is not\n\t}", "public boolean isEmpty()\n\t{\n\t\treturn (head == null);\n\t}", "public boolean isHeapEmpty() {\n\t\treturn this.head == null;\n\t}", "public boolean isSet() {\n return !this.stack.isEmpty();\n }", "public boolean isEmpty() {\r\n\t\t\r\n\t\treturn topNode == null; // Checks if topNode is null;\r\n\t\t\r\n\t}", "public final boolean isEmpty() {\n return mSize == 0;\n }", "public boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "public boolean isEmpty() {\n return (size == 0);\n }", "public boolean empty() {\n return size <= 0;\n }", "public boolean isEmpty() {\n\t\treturn size == 0;\r\n\t}", "public boolean isEmpty() {\n return doIsEmpty();\n }", "public boolean empty() {\n return size == 0;\n }", "public boolean isEmpty() {\n return this.queue.size() == 0;\n }", "public boolean isEmpty() {\r\n return (size == 0);\r\n }", "public boolean isEmpty() {\r\n\t\treturn size == 0;\r\n\t}", "public boolean isEmpty() {\n\t\treturn size() == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn size() == 0;\n\t}" ]
[ "0.9056883", "0.89877164", "0.8927279", "0.8913691", "0.88952327", "0.8861644", "0.8812663", "0.8803307", "0.8803307", "0.88012934", "0.8762096", "0.87552625", "0.8734233", "0.8733799", "0.8713177", "0.87054056", "0.869478", "0.8679571", "0.866394", "0.86360806", "0.8620381", "0.8588986", "0.8536643", "0.8519639", "0.84929776", "0.84534115", "0.84058106", "0.83876854", "0.83645254", "0.83537555", "0.83166593", "0.83037966", "0.828262", "0.82777196", "0.82748145", "0.8235703", "0.82064724", "0.8194284", "0.81544614", "0.8025837", "0.8013609", "0.79574287", "0.79574287", "0.79574287", "0.7939453", "0.7928077", "0.7913513", "0.7880019", "0.78706414", "0.7865312", "0.7810955", "0.7810955", "0.77883196", "0.77276206", "0.77276206", "0.7723528", "0.7723445", "0.77220076", "0.7701561", "0.76997113", "0.76993895", "0.7675793", "0.76150143", "0.7590963", "0.75841945", "0.7563374", "0.754169", "0.7534229", "0.7515534", "0.7509447", "0.7505655", "0.7505497", "0.7497732", "0.74970293", "0.74944997", "0.7487798", "0.7487798", "0.7473871", "0.74631596", "0.74569964", "0.744851", "0.7444053", "0.742821", "0.7427812", "0.74265707", "0.74222845", "0.7415967", "0.74026", "0.7399876", "0.7399876", "0.7399876", "0.7395811", "0.7395516", "0.7395358", "0.7395175", "0.7390058", "0.738929", "0.7388407", "0.73881257", "0.7385511", "0.7385511" ]
0.0
-1
this is final and static
void hello();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Util() { }", "private Rekenhulp()\n\t{\n\t}", "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "static void init() {}", "@Override\n public void perish() {\n \n }", "@Override\n void init() {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "@Override\n public void init() {\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private void m50366E() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private ReportGenerationUtil() {\n\t\t\n\t}", "private void init() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "@Override\n public void init() {}", "private Singletion3() {}", "private void init() {\n\n\n\n }", "private Util() {\n }", "protected void _init(){}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "private UtilsCache() {\n\t\tsuper();\n\t}", "public void mo38117a() {\n }", "private TMCourse() {\n\t}", "private void init() {\n }", "@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}", "public abstract void mo70713b();", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "private OMUtil() { }", "public void method_4270() {}", "@Override\n public void init() {\n }", "private JacobUtils() {}", "private MApi() {}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n protected void prot() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Util() {\n }", "private Util() {\n }", "public void m23075a() {\n }", "private BuilderUtils() {}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void mo4359a() {\n }", "private void _init() {\n }", "public void mo1531a() {\n }", "@Override\n\tpublic void init() {\n\t}", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "Consumable() {\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public abstract Object mo26777y();", "@Override\n protected void initialize() {\n\n \n }", "private FactoryCacheValet() {\n\t\tsuper();\n\t}", "private static void cajas() {\n\t\t\n\t}", "private Unescaper() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private ArraySetHelper() {\n\t\t// nothing\n\t}", "protected void mo6255a() {\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "private SnapshotUtils() {\r\n\t}", "public static void init() {\n\t\t\n\t}", "private Helper() {\r\n // empty\r\n }", "@Override\n protected void initialize() \n {\n \n }", "public abstract void mo56925d();", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "private SparkseeUtils()\n {\n /*\n * Intentionally left empty.\n */\n }", "public abstract Object mo1771a();" ]
[ "0.68598664", "0.6483954", "0.6379178", "0.63361776", "0.62475646", "0.6201698", "0.6186343", "0.6185795", "0.6177839", "0.6159701", "0.6157001", "0.6157001", "0.6157001", "0.6157001", "0.6153516", "0.61497056", "0.6149085", "0.6110603", "0.61081624", "0.6089284", "0.60863936", "0.6085924", "0.60837376", "0.6070275", "0.6059959", "0.60467714", "0.60438377", "0.60279304", "0.6008263", "0.5998687", "0.5998687", "0.5998687", "0.5998687", "0.5998687", "0.5997108", "0.5992985", "0.59919953", "0.59862226", "0.5983943", "0.5983943", "0.5983943", "0.59838134", "0.5976056", "0.5976056", "0.5966531", "0.5966531", "0.5962658", "0.5962658", "0.5962658", "0.59475607", "0.5934662", "0.5921605", "0.5912708", "0.59116024", "0.59029245", "0.59023535", "0.58981884", "0.58907527", "0.58904326", "0.5886989", "0.5886989", "0.5886989", "0.5886989", "0.5886989", "0.5886989", "0.5883593", "0.5883593", "0.5881875", "0.58771795", "0.58743834", "0.58743834", "0.58743834", "0.5873184", "0.58731395", "0.5872716", "0.58711815", "0.5867084", "0.58637375", "0.58637375", "0.58637375", "0.58637375", "0.5854416", "0.5849279", "0.5845166", "0.58420235", "0.5841415", "0.58366275", "0.58363014", "0.5835733", "0.5835294", "0.5830853", "0.5829029", "0.5824452", "0.5817112", "0.58156216", "0.58112264", "0.5811041", "0.58106357", "0.58055276", "0.58053434", "0.5802837" ]
0.0
-1
Restart timer and prints time in ms
public void tac () { tac (""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void trackerTimer() {\n\n Thread timer;\n timer = new Thread() {\n\n @Override\n public void run() {\n while (true) {\n\n if (Var.timerStart) {\n try {\n Var.sec++;\n if (Var.sec == 59) {\n Var.sec = 0;\n Var.minutes++;\n }\n if (Var.minutes == 59) {\n Var.minutes = 0;\n Var.hours++;\n }\n Thread.sleep(1000);\n } catch (Exception cool) {\n System.out.println(cool.getMessage());\n }\n\n }\n timerText.setText(Var.hours + \":\" + Var.minutes + \":\" + Var.sec);\n }\n\n }\n };\n\n timer.start();\n }", "private void startTime()\n {\n timer.start();\n }", "public void timer() \r\n\t{\r\n\t\tSeconds.tick();\r\n\t \r\n\t if (Seconds.getValue() == 0) \r\n\t {\r\n\t \tMinutes.tick();\r\n\t \r\n\t \tif (Minutes.getValue() == 0)\r\n\t \t{\r\n\t \t\tHours.tick();\r\n\t \t\t\r\n\t \t\tif(Hours.getValue() == 0)\r\n\t \t\t{\r\n\t \t\t\tHours.tick();\r\n\t \t\t}\r\n\t \t}\r\n\t }\t\t\r\n\t \r\n\t updateTime();\r\n\t }", "private void startTimer(){\n timer= new Timer();\r\n task = new TimerTask() {\r\n @Override\r\n public void run() {\r\n waitDuration++;\r\n\r\n timerLabel.setText(Integer.toString(waitDuration));\r\n }\r\n };\r\n timer.scheduleAtFixedRate(task,1000,1000);\r\n }", "private float resetTimer() {\r\n final float COUNTDOWNTIME = 10;\r\n return COUNTDOWNTIME;\r\n }", "public void kickTimer() {\n delayTime = System.currentTimeMillis() + shutdownDelay;\n// System.out.println(\"Time at which the loop should kick: \" + delayTime);\n }", "private void printTimer(){\n\t\tFrame++;\n\t\tif(isFrame()){\n\t\t\tSystem.out.println(Frame + \" updates/frames in the \" + second + \"th second\");\n\t\t\tsecond++;\n\t\t\tFrame=1;\n\t\t}\n\t}", "private void restartTimer() {\r\n\t\tthis.timer.restart();\r\n\t\tthis.countdown.restart();\r\n\t\tthis.controlView.setTimerSeconds(10);\r\n\t}", "public void startTimer()\n {\n\n timeVal = 0;\n timer = new Timer();\n\n timer.scheduleAtFixedRate(new TimerTask() {\n @Override\n public void run() {\n timeVal++;\n timeText.setText(\"Time: \" + timeVal);\n }\n }, 0, 1000);\n }", "void change(Label elapsedTimer) {\r\n\r\n if (seconds == 60) {\r\n mins++;\r\n seconds = 0;\r\n }\r\n if (mins == 60) {\r\n hours++;\r\n mins = 0;\r\n }\r\n \r\n elapsedTimer.setText(\r\n (((hours / 10) == 0) ? \"0\" : \"\") + hours + \":\"\r\n + (((mins / 10) == 0) ? \"0\" : \"\") + mins + \":\"\r\n + (((seconds / 10) == 0) ? \"0\" : \"\") + seconds++);\r\n\r\n }", "public static void ComienzaTimer(){\n timer = System.nanoTime();\n }", "private void printTimer() {\n\t\tif (_verbose) {\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"-- \" + getTimeString() + \" --\");\n\t\t}\n\t}", "public void start() {timer.start();}", "private void startTimer() {\n\t\ttimer = new Timer();\n\t\ttimer.scheduleAtFixedRate(new TimerTask() {\n\t\t\tint currTime = 0;\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tjavafx.application.Platform.runLater(new Runnable () {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tcurrTime++;\n\t\t\t\t\t\ttimerLabel.setText(\"Time: \" + currTime);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}, 1000, 1000);\n\t}", "@Override\n public void run() {\n sec++;\n if (sec > 9) {\n sec = 0;\n min++;\n }\n timer.setText(String.format(\"%02d\", sec) + \":\" + String.format(\"%02d\", min));\n handler.postDelayed(this, 1000);\n }", "public static void startTimer() {\n elapsedTime = 0;\r\n timerIsWorking = true;\r\n startTime = System.nanoTime() / 1000000; // ms\r\n }", "public static void startTimerLabel()\n {\n {\n if (timeline != null) {\n timeline.stop();\n }\n timeSeconds.set(STARTTIME);\n //timeLabel.setText(timeSeconds.toString());\n timeline = new Timeline();\n //timeline.setCycleCount(timeline.INDEFINITE); // need this?\n\n timeline.getKeyFrames().add(\n new KeyFrame(Duration.seconds(STARTTIME+1),\n new EventHandler<ActionEvent>() {\n public void handle(ActionEvent event) {\n //System.out.println(\"Got Timer timeout.\");\n if (cancel == false) {\n SceneResultsTimed.updatePlayerScore();\n localStage.setScene(SceneMgr.getScene(SceneMgr.IDX_RESULTSTIMED));\n }\n }\n },\n new KeyValue(timeSeconds, 0)));\n timeline.playFromStart();\n }\n }", "public void startCount() {\n //meetodi k�ivitamisel nullime tunnid, minutid, sekundid:\n secondsPassed = 0;\n minutePassed = 0;\n hoursPassed = 0;\n if (task != null)\n return;\n task = new TimerTask() {\n @Override\n public void run() {//aeg l�ks!\n secondsPassed++; //loeme sekundid\n if (secondsPassed == 60) {//kui on l�binud 60 sek, nullime muutujat\n secondsPassed = 0;\n minutePassed++;//kui on l�binud 60 sek, suurendame minutid 1 v�rra\n }\n if (minutePassed == 60) {//kui on l�binud 60 min, nullime muutujat\n minutePassed = 0;\n hoursPassed++;//kui on l�binud 60 min, suurendame tunnid 1 v�rra\n }\n //kirjutame aeg �les\n String seconds = Integer.toString(secondsPassed);\n String minutes = Integer.toString(minutePassed);\n String hours = Integer.toString(hoursPassed);\n\n if (secondsPassed <= 9) {\n //kuni 10 kirjutame 0 ette\n seconds = \"0\" + Integer.toString(secondsPassed);\n }\n if (minutePassed <= 9) {\n //kuni 10 kirjutame 0 ette\n minutes = \"0\" + Integer.toString(minutePassed);\n }\n if (hoursPassed <= 9) {\n //kuni 10 kirjutame null ettte\n hours = \"0\" + Integer.toString(hoursPassed);\n }\n\n\n time = (hours + \":\" + minutes + \":\" + seconds);//aeg formaadis 00:00:00\n getTime();//edastame aeg meetodile getTime\n\n }\n\n };\n myTimer.scheduleAtFixedRate(task, 0, 1000);//timer k�ivitub kohe ja t��tab sekundite t�psusega\n\n }", "Timer(int tempTotalTime) {\n totalTime = tempTotalTime;\n }", "public static void restartTiming() {\n SimulatorJNI.restartTiming();\n }", "public static long startTimer() {\n return System.currentTimeMillis();\n }", "private void updateTimer()\r\n {\n if (timeLeft > 0)\r\n {\r\n frameCounter++;\r\n \r\n // if a second has passed\r\n if (frameCounter >= frameRate)\r\n {\r\n // reset the frame counter\r\n frameCounter = 0;\r\n \r\n // update the secondsElapsed var\r\n totalSecondsElapsed++;\r\n \r\n // subtract a second from the timer\r\n timeLeft--;\r\n \r\n // change the time into mins & seconds\r\n int minsLeft = timeLeft / 60;\r\n int secondsLeft = timeLeft % 60;\r\n \r\n // update the time display (min:sec)\r\n String timerDisplay = minsLeft + \":\" + getLeadingZero(secondsLeft, 10) + secondsLeft;\r\n timerText.text = timerDisplay;\r\n timerText.updateText();\r\n }\r\n }\r\n else\r\n {\r\n endGame();\r\n }\r\n }", "public abstract void isRestart(long ms);", "public void setTime()\n \t{\n \t\tif( !paused )\n \t\t{\n\t \t\tlong playingTime = System.currentTimeMillis() - startTime;\n\t \t\tlong timeLeft = 180000 - playingTime;\n\t \t\tlong min = timeLeft / 60000;\n\t \t\tlong sec = ( timeLeft - ( min * 60000 ) ) / 1000L;\n\t \t\t\n\t \t\tif( timeLeft < 0 )\n\t \t\t{\n\t \t\t\t//Game over!\n\t \t\t\tgameOver();\n\t \t\t\treturn;\n\t \t\t}\n\t \t\t\n\t \t\tString s = \"Time: \";\n\t \t\ts += Integer.toString( (int)min ) + \":\";\n\t \t\tif( sec >= 10 )\n\t \t\t\ts += Integer.toString( (int)sec );\n\t \t\telse\n\t \t\t\ts += \"0\" + Integer.toString( (int)sec );\n\t \t\t\n\t \t\ttimerLabel.setText( s );\n \t\t}\n \t}", "public void timer() {\r\n date.setTime(System.currentTimeMillis());\r\n calendarG.setTime(date);\r\n hours = calendarG.get(Calendar.HOUR_OF_DAY);\r\n minutes = calendarG.get(Calendar.MINUTE);\r\n seconds = calendarG.get(Calendar.SECOND);\r\n //Gdx.app.debug(\"Clock\", hours + \":\" + minutes + \":\" + seconds);\r\n\r\n buffTimer();\r\n dayNightCycle(false);\r\n }", "public void startTimer(){\n timerStarted = System.currentTimeMillis();\n }", "public void startTimer() {\n startTime = System.currentTimeMillis();\n }", "public void resume()\r\n {\n timerStart(); // ...Restarts the update timer.\r\n }", "private void resetTime()\n {\n timer.stop();\n timeDisplay.setText(ZERO_TIME);\n time = 0.0;\n }", "public void resetTimer(){\n timerStarted = 0;\n }", "public void tick(){\r\n if(timer != 0)\r\n timer++;\r\n }", "public void resetTimer() {\n\t\tsetStartingTime(System.currentTimeMillis());\t\n\t\tthis.progressBar.setForeground(Color.black);\n\t\tlogger.fine(\"Set normal timer with data: \" + this.toString());\n\n\t}", "public void timer()\n {\n timer += .1; \n }", "public ProgressTimer(boolean showOutput) {\r\n \tdoOutput = showOutput;\r\n \tstartTime = System.currentTimeMillis();\r\n TimerTask timerTask = new TimerTask() {\r\n @Override\r\n public void run() {\r\n if (doOutput) System.out.print(\".\");\r\n counter++;//increments the counter\r\n }\r\n };\r\n if (doOutput) System.out.print(\" \");\r\n timer = new Timer(\"ProgressTimer\");//create a new Timer\r\n\r\n timer.scheduleAtFixedRate(timerTask, 30, 1000);//this line starts the timer at the same time its executed\r\n }", "public void start() throws InterruptedException {\n for (int i = 0; i < seconds; i--) {\n\t System.out.println(\"\" +seconds ); \n\t \n }\n\t/*\n\t * 3. When the timer is finished, use the playSound method to play a moo\n\t * sound. You can download one from freesound.org, then drag it into\n\t * your default package. Tell the students (by speaking) it's time to walk.\n\t */\n\n}", "private void countTime()\n {\n time--;\n showTime();\n if (time == 0)\n {\n showEndMessage();\n Greenfoot.stop();\n }\n }", "@Override\n public void run() {\n textTimer.setText(String.valueOf(currentTime));\n }", "public void timeTick()\r\n\t{\r\n\t\tnumberDisplay1.increment();\r\n\t}", "@Override\n public void run() {\n\n secs++;\n if (secs == 10) {\n tens++;\n secs = 0;\n }\n if (tens == 6) {\n mins++;\n tens = 0;\n secs = 0;\n }\n time = mins + \":\" + tens + \"\" + secs;\n timePlayed.setText(\"Time: \" + time);\n }", "public void drawTimer(Graphics art)\n\t{\n\t\tcounter++;\n\t\tif(counter % 60 == 0)\n\t\t{\n\t\t\tseconds++;\n\t\t}\n\t\tart.drawString(\"Time =\"+seconds, 50, 120);\n\t}", "Timer getTimer();", "public void startTime() {\n if (!isRunning) {\n timer = new Timer();\n clock = new Clock();\n timer.scheduleAtFixedRate(clock,0,1000);\n isRunning = true;\n }\n }", "@Override\n public void run() {\n int min, seg;\n \n while(true){\n \n time++;\n min=(int) (time / 60);\n seg=(int) (time % 60);\n lTime.setText(min+\":\"+seg);\n \n try {\n Thread.sleep(1000);\n } catch (Exception ex) {\n \n }\n \n }\n }", "public void currentTime() {\n Thread clock = new Thread() {\n public void run() {\n for (;;) {\n Calendar cal = new GregorianCalendar();\n int second = cal.get(Calendar.SECOND);\n int minute = cal.get(Calendar.MINUTE);\n int hour = cal.get(Calendar.HOUR);\n \n txtKluar.setText(hour + \":\" + minute + \":\" + second + \" \");\n try {\n sleep(1000);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }\n }\n };\n clock.start();\n }", "public void resetTime() {\n\t\ttime_passed = 0l;\n\t}", "protected void timer_tick(ActionEvent e) {\n\t\thour = time / 3600;\r\n\t\tminute = time % 3600 / 60;\r\n\t\tsecond = time % 3600 % 60;\r\n\t\tlblCountDown.setText(\"剩余时间:\" + stringTime(hour) + \":\" + stringTime(minute) + \":\" + stringTime(second));\r\n\t\tif (time == 0) {\r\n\t\t\ttimer.stop();\r\n\t\t\ttimeOut();\r\n\t\t}\r\n\t\ttime--;\r\n\t}", "public void updateTimer( int secondsLeft ) {\n int minutes = secondsLeft / 60;\n int seconds = secondsLeft - (minutes * 60);\n\n String secondsString = Integer.toString(seconds);\n\n if(seconds <= 9) {\n secondsString = \"0\" + secondsString;\n }\n\n timerTextView.setText(Integer.toString(minutes) + \":\" + secondsString);\n// getRandomQuestion();\n }", "private void startTimer(int startValue) {\n counts = startValue;\n timerTask = new TimerTask() {\n @Override\n public void run() {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n counts++;\n TextView score = (TextView) findViewById(R.id.Score);\n score.setText(\"Time: \"+counts);\n boardManager.setLastTime(counts);\n saveToFile(\"save_file_\" +\n Board.NUM_COLS + \"_\" + LoginActivity.currentUser);\n }\n });\n }\n };\n timer.scheduleAtFixedRate(timerTask, new Date(), 1000);\n }", "public void timer() throws InterruptedException {\n for (int i = sec; min >= -1; i--) {\n if (min == -1) {\n textField.setText(\"0:0\");\n freeze = true;\n break;\n }\n textField.setText(min + \":\" + i);\n if (i == 1) {\n min = min - 1;\n i = sec + 1;\n }\n Thread.sleep(1000);\n }\n }", "public void startTimer(final int min) throws InterruptedException {\n\t\tSystem.err.println(\"Inizio startTimer per = \" + min);\n\t\tfinal int sec = min * 60;\n\n\t\tses.scheduleWithFixedDelay(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tif (!runFlag) {\n\t\t\t\t\tinvertFlag();\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(new Date());\n\t\t\t\t\ttry {\n\t\t\t\t\t\tNotification.getIstance();\n\t\t\t\t\t} catch (final IOException 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\tses.shutdown();\n\t\t\t\t\tSystem.out.println(\"TIMER SHUTDOWN\");\n\t\t\t\t}\n\t\t\t}\n\t\t}, 0, sec, TimeUnit.SECONDS);\n\t}", "public void timer()\n{\n textSize(13);\n controlP5.getController(\"time\").setValue(runtimes);\n line(400, 748, 1192, 748);\n fill(255,0,0);\n for (int i =0; i<25; i++)\n {\n line(400+i*33, 743, 400+i*33, 753);\n text(i, 395 +i*33, 768);\n }\n if ((runtimes < 1 || runtimes > 28800) && s == true)\n {\n //origint = 0;\n runtimes = 1;\n //pausets = 0;\n runtimep = 0;\n } else if (runtimes > 0 && runtimes < 28800 && s == true)\n {\n runtimep = runtimes;\n runtimes = runtimes + speed;\n }\n timeh= runtimes/1200;\n timem= (runtimes%1200)/20;\n}", "public int getTime(){\n return (timerStarted > 0) ? (int) ((System.currentTimeMillis() - timerStarted) / 1000L) : 0;\n }", "public static void resetTime() {\n\t\ttime = TimeUtils.millis();\n\t}", "private void setTime() {\n \n new Timer(0, new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n Date d=new Date();\n SimpleDateFormat time=new SimpleDateFormat(\"hh:mm:ss a\");\n lblTime.setText(time.format(d));\n }\n }).start();\n \n \n }", "@Override\n public void run() {\n while (active) {\n \n tSec.setText(seconds+\"\");\n tMin.setText(minutes+\"\");\n tHours.setText(hours+\"\");\n \n seconds++;\n \n try {\n TimeUnit.SECONDS.sleep(DELAY);\n } \n catch (InterruptedException ex) {\n }\n\n if (seconds >= 59) {\n seconds = -1;\n minutes++;\n }\n\n if (minutes >= 59) {\n seconds = -1;\n minutes = 0;\n hours++;\n }\n }\n }", "protected void runClock() {\r\n // stop gameClock while game is iconified\r\n if( isRunning && (getState() == Frame.NORMAL) ) {\r\n seconds++;\r\n\r\n int hrs = seconds / 3600;\r\n int mins = seconds / 60 - hrs * 60;\r\n int secs = seconds - mins * 60 - hrs * 3600;\r\n\r\n String strHr = (hrs < 10 ? \"0\" : \"\") + Integer.toString( hrs );\r\n String strMin = (mins < 10 ? \"0\" : \"\") + Integer.toString( mins );\r\n String strSec = (secs < 10 ? \"0\" : \"\") + Integer.toString( secs );\r\n\r\n timeMesg.setText( strHr + \":\" + strMin + \":\" + strSec );\r\n }\r\n }", "public void clockChange(int time);", "public void resetTimer() {\n button.setText(\"Notify Me!\");\n timerSeekBar.setProgress(60);\n timerSeekBar.setEnabled(true);\n timerText.setText(\"1:00\");\n counter.cancel();\n counterActive = false;\n }", "public void resume()\r\n {\r\n\t timer.start();\r\n }", "private void restartTimer(long delay) {\n\t\trestartTimer.schedule(new TimerTask() {\n\t\t\tpublic void run() {\n\t\t\t\tvisible = false;\n\t\t\t\tif(moveTimer != null) {\n\t\t\t\t\tmoveTimer.cancel();\n\t\t\t\t}\n\t\t\t\tif(startTimer != null) {\n\t\t\t\t\tstartTimer.cancel();\n\t\t\t\t}\t\n\t\t\t\tstartTimer = new Timer();\n\t\t\t\tstartTimer(getStartSeconds() * 1000, LOOP_PERIOD_MILLISECOND);\n\t\t\t}\n\t\t}, delay);\n\t}", "public void update() {\r\n\t\tlabel.setText(time / 60 + \":\" + ((time % 60 <= 9)? (\"0\" + time % 60) : (time % 60)));\r\n\t}", "public synchronized static void resetTime() {\n\t\ttime = 0;\n\t}", "public void start()\r\n\t{\r\n\t\tcurrentstate = TIMER_START;\r\n\t\tstarttime = Calendar.getInstance();\r\n\t\tamountOfPause = 0;\r\n\t\trunningTime = 0;\r\n\t\tlastRunningTime = 0;\r\n\t\tpassedTicks = 0;\r\n\t}", "public void clock(double period);", "@Override\r\n\tpublic void update( ReceiverSource r ) {\n\t\tSystem.out.println( \"I am number \" + num + \"! It is \" + ((GameTimer) r).getSeconds() + \"!\" );\r\n\t}", "void Start() {\r\n for (seconds = display; seconds < 100; seconds += display) {\r\n try {\r\n TimeUnit.SECONDS.sleep(display);\r\n if (seconds == 60) { //turns seconds into minutes\r\n minutes += 1;\r\n seconds = 0;\r\n }\r\n if (minutes == 60) { //turns minutes into hours\r\n hours += 1;\r\n minutes = 0;\r\n }\r\n if (hours == 1) { //if one hour print one hour + minutes + seconds.\r\n System.out.println(hours + \"hour \" + minutes + \":\" + seconds);\r\n }\r\n if (hours > 1) { //if more than one hour, print hour amount + hours.\r\n System.out.println(hours + \"hours \" + minutes + \":\" + seconds);\r\n }\r\n else { //if no hours, just print minutes and seconds.\r\n System.out.println(minutes + \":\" + seconds);\r\n }\r\n }\r\n catch (InterruptedException e) {\r\n System.err.format(\"It's broken\");\r\n }\r\n }\r\n }", "public void startClock() {\n Timer timer = new Timer(100, new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent evt) {\n String dateTime = new Date().toString();\n \n clockLabel.setText(dateTime);\n \n }\n });\n timer.start();\n }", "public void startTiming() {\n elapsedTime = 0;\n startTime = System.currentTimeMillis();\n }", "public synchronized void restart() {\n printReport();\n printGlobalOpsPerSec();\n metrics.clear();\n intervalStartedAt = null;\n startedAt = null;\n\n reportStream.println(\"\");\n reportStream.println(\"Metrics have been reset\");\n reportStream.println(\"\");\n }", "private void updateTimer(float eTime) {\n seconds = (float) round((eTime / 1000), 2);\n timeOutput.setText(String.valueOf(seconds));\n }", "public String timerPause(){\n return mTimer;\n }", "private void startCountTime() {\n\t\tRunnable timerRunnable = () -> {\n\t\t\tinitTimer();\n\t\t\tlong millisWaitTime = 1000/CALCULATIONS_PER_SECOND;\n\t\t\tlong currT, nextT;\n\t\t\t//previous time\n\t\t\tlong prevT = System.nanoTime();\n\t\t\twhile (this.keepRunning) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(millisWaitTime);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t}\n\t\t\t\tcurrT = System.nanoTime();\n\t\t\t\tthis.time = (double)(currT - prevT) * 0.000000001;\n\t\t\t\tprevT = currT;\n\t\t\t\tnextT = prevT + 1000000000 / CALCULATIONS_PER_SECOND;\n\t\t\t\tthis.gameLogic.updateGame(time);\n\t\t\t\t// stop the timer game if the player lose\n\t\t\t\tif(this.gameLogic.playerLose()) {\n\t\t\t\t\tthis.stopCountTime();\n\t\t\t\t}\n\t\t\t\tlong timeWait = Math.max(nextT - System.nanoTime(),0);\n\t\t\t\ttimeWait += INCREASE_WAIT;\n\t\t\t\tmillisWaitTime = timeWait / 1000000;\n\t\t\t}\n\t\t};\n\t\tgameTimeThread = new Thread(timerRunnable);\n\t\tgameTimeThread.start();\n\t}", "private void prepareQuestionTimer() {\n timerQuestion = new Timer(1000, new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent evt) {\n if (questionStartTime == null)\n return;\n DateFormat df = new SimpleDateFormat(\"mm:ss\");\n Date currentDate = new Date();\n // Time elapsed\n long timeElapsed = currentDate.getTime() - questionStartTime.getTime();\n // Show timer\n String timeStr = df.format(new Date(timeElapsed));\n try {\n labelTimeQuestion.setText(\"\" + (Integer.parseInt(labelTimeQuestion.getText()) - 1));\n } catch(NumberFormatException e) {\n labelTimeQuestion.setText(\"15\");\n }\n labelTimeQuestion.repaint();\n if (labelTimeQuestion.getText().equals(\"0\")) {\n verifyQuestion(Answer.NO_ANSWER);\n challengeModel.nextAnswer(null);\n labelTimeQuestion.setText(\"15\");\n }\n }\n \n });\n }", "public void act() \n {\n updateTimerDisplay();\n if(timeCounter < 3600){\n timeCounter++;\n \n }else{\n timeElapsed++;\n timeCounter = 0;\n }\n checkHighScore();\n checkRegScore();\n\n }", "public static void initTimer(){\r\n\t\ttimer = new Timer();\r\n\t timer.scheduleAtFixedRate(new TimerTask() {\r\n\t public void run() {\r\n\t \t//se o player coletar todas os lixos, o tempo para\r\n\t \tif(ScorePanel.getScore() == 100){\r\n\t \t\ttimer.cancel();\r\n\t \t}\r\n\t \t//se o Tempo se esgotar, é game over!!!\r\n\t \telse if (tempo == 0){\r\n\t \t timer.cancel();\r\n \t\tAvatar.noMotion();\r\n \t\t//System.exit(0);\r\n\t }\r\n\t \t//Senão, vai contando\r\n\t \telse{\r\n\t \tlbltimer.setText(\"Tempo: \"+ --tempo);\r\n\t }\r\n\t }\r\n\t\t}, 1000, 1000);\r\n\t}", "public void start(long millisToRestart) throws Exception;", "public void updateTimer(int timeElapsed){\n mTimerText.setText(\n String.format(\"TIME LEFT: %ds\",10 - timeElapsed));\n mTimerProgressBar.setProgress((int)((timeElapsed/10.0)*100.0));\n }", "public TimerDisplay()\n {\n timeElapsed = 0;\n }", "public synchronized void resetTime() {\n }", "@Override\n public float getTimeInSeconds() {\n return getTime() * INVERSE_TIMER_RESOLUTION;\n }", "private void incrementShutdownTimer() {\t\r\n\t\tshutdownTime = Calendar.getInstance();\r\n\t\tshutdownTime.add(Calendar.SECOND, TIMEOUT_SECONDS);\r\n\t}", "public void run()\n \t\t{\n \t\t\t//Update the timer label\n \t\t\tsetTime();\n \t\t}", "public void startTeleopTimer() {\n t.reset();\n t.start();\n }", "@Override\n public int getTimeForNextTicInSeconds() {\n int seconds = Calendar.getInstance().get(Calendar.SECOND);\n return 60 - seconds;\n }", "void startUpdateTimer();", "@Override\n public void run() {\n if (!started) {\n timerTxt.setText(\"00:00:00\");\n }\n else {\n long currentTime = System.currentTimeMillis() - startTime;\n updateTime = currentTime;\n int secs = (int) (updateTime / 1000);\n int mins = secs / 60;\n int hours = mins / 60;\n secs %= 60;\n timerTxt.setText(\"\" + String.format(\"%02d\", hours) + \":\" + String.format(\"%02d\", mins) + \":\" + String.format(\"%02d\", secs), TextView.BufferType.EDITABLE);\n handler.post(this);\n }\n }", "public void startTimer(){\n timer = System.currentTimeMillis();\n System.out.println(\"Receiving file \\'sendingFile.txt\\' for the \" + (fileCount)+ \" time\");\n }", "public void countTimer() {\n\t\t\n\t\ttimerEnd = System.currentTimeMillis();\n\t}", "private void updateCountdownText() {\r\n int minutes = (int) (timeLeftInMillis / 1000) / 60;\r\n int seconds = (int) (timeLeftInMillis / 1000) % 60;\r\n\r\n String timeFormatted = String.format(Locale.getDefault(), \"%02d:%02d\", minutes, seconds);\r\n\r\n mTimer.setText(timeFormatted);\r\n }", "public void StartTimer() {\n\t\tCount = new Timer();\n\t}", "private void updateTime() {\n timer.update();\n frametime = timer.getTimePerFrame();\n }", "public void time(){\n\t\tif(paused){\n\t\t\tpaused = false;\n\t\t\tmusic.play();\n\t\t\tstart = System.nanoTime();\n\t\t} else {\n\t\t\telasped += System.nanoTime() - start;\n\t\t\tstart = System.nanoTime();\n\t\t}\n\t\ttime = (double) elasped/ (double) 1000000000l;\n\t\t//System.out.println(time);\n\t}", "public void updateTimerDisplay(){\n int seconds = timeCounter / 60;\n setImage(new GreenfootImage(\"Time: \"+timeElapsed + \": \" + seconds, 24, Color.BLACK, Color.WHITE));\n }", "private void startClock() {\r\n\t\tTimer timer = new Timer(500, new ActionListener() {\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent theEvent) {\r\n\t\t\t\tadvanceTime();\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n timer.setRepeats(true);\r\n timer.setCoalesce(true);\r\n timer.setInitialDelay(0);\r\n timer.start();\r\n\t}", "public void resetClick (View view){\n \tstopped = false;\n \t((TextView)findViewById(R.id.timer)).setText(\"00:00:00\"); \t\n }", "private void StopTime() {\n timer.stop();\n currentHora = 0;\n currentMinuto = 0;\n currentSegundo = 0;\n lbcronometro.setText(\"00:00:00\");\n }", "private static void timerTest4() {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, 14);\n\t\tcalendar.set(Calendar.MINUTE, 20);\n\t\tcalendar.set(Calendar.SECOND, 0);\n\t\tDate time = calendar.getTime();\n\n\t\tTimer timer = new Timer();\n\t\tSystem.out.println(\"wait ....\");\n\t\ttimer.scheduleAtFixedRate(new TimerTask() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.out.println(\"timertest4\");\n\n\t\t\t}\n\t\t}, time, 24 * 60 * 60 * 1000);\n\n\t}", "public void time() {\n System.out.println(\"Enter the time you wish to free up\");\n }", "private void runTimer() {\n\n // Handler\n final Handler handler = new Handler();\n\n handler.post(new Runnable() {\n @Override\n public void run() {\n\n if (playingTimeRunning) {\n playingSecs++;\n }\n\n handler.postDelayed(this, 1000);\n }\n });\n\n }", "public void trackTime()\n {\n frames += 1;\n\n // Every second (roughly) reduce the time left\n if (frames % 60 == 0)\n {\n time += 1;\n showTime();\n }\n }", "static void loopcomp () {\r\n\t\tint t40k= timer(8000,40000); \r\n\t\tint t1k= timer(8000,1000); \r\n\t\tSystem.out.println(\"Total number of loops for printing every 40k loops = \" + t40k);\r\n\t\tSystem.out.println(\"Total number of loops for printing every 1k loops = \"+ t1k);\r\n\t}" ]
[ "0.72712004", "0.69708663", "0.6891984", "0.6836799", "0.6808457", "0.680696", "0.67826074", "0.67217404", "0.67009455", "0.66859573", "0.6622295", "0.6612435", "0.65798414", "0.65784943", "0.65763676", "0.6574771", "0.65720516", "0.6541926", "0.6536474", "0.6509828", "0.64725643", "0.6465801", "0.64521176", "0.6450599", "0.6435729", "0.64314145", "0.6422128", "0.6419973", "0.6417184", "0.64112324", "0.6407255", "0.64069045", "0.64067745", "0.6395274", "0.6388095", "0.6387843", "0.6386683", "0.6375969", "0.6347628", "0.6327156", "0.63248026", "0.6321981", "0.631726", "0.630923", "0.6296658", "0.6291536", "0.6279946", "0.6262539", "0.62542725", "0.62370455", "0.6232327", "0.62322545", "0.62102693", "0.6202895", "0.61984736", "0.61858785", "0.61757106", "0.61614966", "0.6142114", "0.6140548", "0.61377645", "0.6134426", "0.6130795", "0.61281693", "0.61243564", "0.6115501", "0.6104818", "0.6103239", "0.60973966", "0.60955447", "0.60912186", "0.6089681", "0.6088659", "0.6083938", "0.6077654", "0.606745", "0.6066405", "0.6065056", "0.6059676", "0.60535777", "0.6052636", "0.60494155", "0.60454047", "0.6041592", "0.60411406", "0.6041028", "0.6035442", "0.6034306", "0.60338145", "0.60186714", "0.60114104", "0.6007448", "0.59999216", "0.59934783", "0.5992453", "0.5987062", "0.59840006", "0.5982019", "0.5979255", "0.59721214", "0.5964891" ]
0.0
-1
/ assume a complete input stream
private void debug(String s) { if (debug) System.out.println(s); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void processStreamInput() {\n }", "@Override\n\tpublic void read(InStream inStream) {\n\t}", "InputStream getDataStream();", "public abstract boolean canDecodeInput(BufferedInputStream stream) throws IOException;", "void read(final DataInputStream in) throws IOException {\n // This code is tested over in TestHFileReaderV1 where we read an old hfile w/ this new code.\n int pblen = ProtobufUtil.lengthOfPBMagic();\n byte[] pbuf = new byte[pblen];\n if (in.markSupported()) in.mark(pblen);\n int read = in.read(pbuf);\n if (read != pblen) throw new IOException(\"read=\" + read + \", wanted=\" + pblen);\n if (ProtobufUtil.isPBMagicPrefix(pbuf)) {\n parsePB(HFileProtos.FileInfoProto.parseDelimitedFrom(in));\n } else {\n if (in.markSupported()) {\n in.reset();\n parseWritable(in);\n } else {\n // We cannot use BufferedInputStream, it consumes more than we read from the underlying IS\n ByteArrayInputStream bais = new ByteArrayInputStream(pbuf);\n SequenceInputStream sis = new SequenceInputStream(bais, in); // Concatenate input streams\n // TODO: Am I leaking anything here wrapping the passed in stream? We are not calling close on the wrapped\n // streams but they should be let go after we leave this context? I see that we keep a reference to the\n // passed in inputstream but since we no longer have a reference to this after we leave, we should be ok.\n parseWritable(new DataInputStream(sis));\n }\n }\n }", "public void read() throws IOException {\n\t\twhile (this.in.getReadBytes() != size) {\n\t\t\tString chunkID;\n\t\t\ttry {\n\t\t\t\tchunkID = readString(4);\n\t\t\t} catch (EmptyReadException e) {\n\t\t\t\t/**\n\t\t\t\t * T4L bug 15259: Some encoders must write a byte \"0\" to signify\n\t\t\t\t * EOF?\n\t\t\t\t */\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlong chunkSize = readLong(4);\n\t\t\treadChunk(chunkID, chunkSize);\n\t\t}\n\t}", "Stream<In> getInputStream();", "@SuppressWarnings(\"unused\")\r\n private void addReadStream(InputStream asciiStream) {\n\t\taddReadSize(100);\r\n\t}", "public abstract SeekInputStream getRawInput();", "InputStream getInputStream() throws IOException;", "InputStream getInputStream() throws IOException;", "InputStream getInputStream() throws IOException;", "public abstract InputStream getInputStream();", "public abstract InputStream getInputStream();", "private int readFill(InputStream stream, byte[] buffer)\n throws IOException {\n int r = buffer.length;\n while (r > 0) {\n int p = buffer.length - r;\n int c = stream.read(buffer, p, r);\n if (c == -1) {\n break;\n }\n r -= c;\n }\n return buffer.length - r;\n\n }", "public void readData(InputStream inStream);", "public abstract void read(DataInput input) throws IOException;", "public abstract InputStream mo131998b();", "abstract void read();", "StreamReader underlyingReader();", "@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 }", "@SuppressWarnings(\"unused\")\r\n private void addReadStream(Reader asciiStream) {\n\t\taddReadSize(100);\r\n\t}", "@Override\n public void readFrom(InputStream in) throws IOException {\n }", "protected final InputStream getStream() { return _inputSource; }", "public void inputFromStream(BufferedReader dis) throws IOException {\n String line = dis.readLine();\n setFile(line);\n int lines = Str.strToInt(dis.readLine());\n if (lines != 0) {\n lineNos = new int[lines];\n for (int i = 0; i < lineNos.length; ++i) {\n lineNos[i] = Str.strToInt(dis.readLine());\n }\n }\n }", "public StreamReader() {}", "@Override\r\n\tpublic void read(DataInput in) throws IOException {\n\t\t\r\n\t}", "private void readFromStream(InputStream in) throws IOException {\n\n\t\tdataValue = null;\t// allow gc of the old value before the new.\n\t\tbyte[] tmpData = new byte[32 * 1024];\n\n\t\tint off = 0;\n\t\tfor (;;) {\n\n\t\t\tint len = in.read(tmpData, off, tmpData.length - off);\n\t\t\tif (len == -1)\n\t\t\t\tbreak;\n\t\t\toff += len;\n\n\t\t\tint available = Math.max(1, in.available());\n\t\t\tint extraSpace = available - (tmpData.length - off);\n\t\t\tif (extraSpace > 0)\n\t\t\t{\n\t\t\t\t// need to grow the array\n\t\t\t\tint size = tmpData.length * 2;\n\t\t\t\tif (extraSpace > tmpData.length)\n\t\t\t\t\tsize += extraSpace;\n\n\t\t\t\tbyte[] grow = new byte[size];\n\t\t\t\tSystem.arraycopy(tmpData, 0, grow, 0, off);\n\t\t\t\ttmpData = grow;\n\t\t\t}\n\t\t}\n\n\t\tdataValue = new byte[off];\n\t\tSystem.arraycopy(tmpData, 0, dataValue, 0, off);\n\t}", "public void read(DataInputStream in) throws IOException;", "private static String readIt(InputStream stream) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(stream));\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = br.readLine()) != null) {\n sb.append(line+\"\\n\");\n }\n br.close();\n return sb.toString();\n\t}", "boolean next() throws IOException;", "public boolean next() throws IOException;", "@Override\n public int read() throws IOException {\n return input.read();\n }", "@Override\n public Ini read(InputStream in) throws IOException {\n return read(new InputStreamReader(in));\n }", "@Override\n\tpublic void read() {\n\n\t}", "public StreamInputSplit() {\n // No-op\n }", "void read(StreamOption streamOpt);", "public InputStream getStream();", "private synchronized boolean Iteration() {\n\t if (inputStream == null) {\n\t\treturn false;\n\t }\n\t int c = -1;\n\t try {\n\t\tint avail = inputStream.available();\n\t\tif (avail > 0) {\n\t\t c = inputStream.read();\n\t\t}\n\t } catch (Exception e) {\n\t\treturn false;\n\t }\n\t if (c < 0) {\n\t\treturn true;\n\t }\n\t if (c == '\\n') {\n\t\tlines.offer(buffer);\n\t\tbuffer = new String(\"\");\n\t } else {\n\t\tbuffer += (char)c;\n\t }\n\t return true;\n\t}", "@Override\r\n\tpublic void read() {\n\r\n\t}", "public StorableInput(InputStream stream) {\n Reader r = new BufferedReader(new InputStreamReader(stream));\n fTokenizer = new StreamTokenizer(r);\n fMap = new Vector();\n }", "void deserialize(@NotNull InputStream in) throws IOException;", "public boolean endOfStream()\n {\n return false;\n }", "public synchronized void readInput() throws InterruptedException, IOException \n\t{\n\t\twhile (getDataSourceEOFlag())\n\t\t{\n\t\t\tcontent.set(incomingPipe.take());\n\t\t\t\n\t\t\t// Ensure thread-timing uniformity (a speed-limiter)\n\t\t\t//Thread.sleep(100);\n\t\t\t\n\t\t\tprocess();\n\t\t\t// Discard the text to free up memory.\n\t\t\tcontent.set(null);\n\t\t}\n\t}", "public void load(DataInput stream)\n throws IOException\n {\n final int MAX = 8192;\n byte[] abBuf = new byte[MAX];\n ByteArrayOutputStream streamRaw = new ByteArrayOutputStream(MAX);\n\n int of = 0;\n try\n {\n while (true)\n {\n byte b = stream.readByte();\n\n abBuf[of++] = b;\n\t\t\t\tif (of == MAX)\n {\n streamRaw.write(abBuf, 0, MAX);\n of = 0;\n }\n }\n }\n catch (EOFException e)\n {\n if (of > 0)\n {\n streamRaw.write(abBuf, 0, of);\n }\n }\n\n\n setBytes(streamRaw.toByteArray());\n }", "private void readMoreBytesFromStream() throws IOException {\n if (!innerStreamHasMoreData) {\n return;\n }\n\n int bufferSpaceAvailable = buffer.length - bytesInBuffer;\n if (bufferSpaceAvailable <= 0) {\n return;\n }\n\n int bytesRead =\n stream.read(buffer, bytesInBuffer, bufferSpaceAvailable);\n\n if (bytesRead == -1) {\n innerStreamHasMoreData = false;\n } else {\n bytesInBuffer += bytesRead;\n }\n }", "@Override\n\tpublic void readData(DataInputStream input) throws IOException {\n\t\t\n\t}", "protected void fill() throws IOException {\n ensureOpen();\n len = in.read(buf, 0, buf.length);\n if (len == -1) {\n throw new EOFException(\"Unexpected end of ZLIB input stream\");\n }\n inf.setInput(buf, 0, len);\n }", "void processHeader(InputStream dataInput) throws IOException {\n int formatVersion = dataInput.read();\n if (formatVersion < 0) {\n throw new EOFException();\n }\n ensureCondition(formatVersion == SERIALIZER_VERSION, \"Unsupported format version %d.\", formatVersion);\n }", "InputStream openStream() throws IOException;", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "private String readStream(InputStream in) {\n try {\n ByteArrayOutputStream bo = new ByteArrayOutputStream();\n int i = in.read();\n while(i != -1) {\n bo.write(i);\n i = in.read();\n }\n return bo.toString();\n } catch (IOException e) {\n return \"\";\n }\n }", "public FastaReader(InputStream ins) throws IOException{\n\t\tsuper(ins);\n\t}", "public abstract boolean canDecodeInput(Object source) throws IOException;", "@Override\n\tpublic long bytesRead() {\n\t\treturn 0;\n\t}", "protected abstract InputStream getInStreamImpl(String filename) throws IOException;", "private String readStream(InputStream is) throws IOException {\n StringBuilder sb = new StringBuilder();\n BufferedReader r = new BufferedReader(new InputStreamReader(is),1000);\n for (String line = r.readLine(); line != null; line =r.readLine()){\n sb.append(line);\n }\n is.close();\n return sb.toString();\n }", "public interface Stream {\n\tpublic char getNext();\t\n\tpublic boolean hasNext();\n}", "private void readObject(final ObjectInputStream stream) throws IOException, ClassNotFoundException {\n stream.defaultReadObject();\n answerMarks_.clear();\n }", "public StreamReader(InputStream input) throws IOException {\r\n\t\tthis.setInput(input);\r\n\t}", "public interface EXRInputStream {\r\n \r\n /**\r\n * Read from the stream.\r\n * \r\n * <p>{@code read(dst)} reads <em>n</em> bytes from the stream, where\r\n * <em>n</em> is the number of bytes remaining in the buffer, that is,\r\n * {@code dst.remaining()}, at the moment this method is invoked. The bytes\r\n * are read into the current position of the buffer.</p>\r\n * \r\n * <p>If the stream contains less than <em>n</em> bytes, or if an I/O error\r\n * occurs, {@code read(dst)} throws an exception. If {@code read(dst)}\r\n * reads the last byte from the stream it returns {@code false}, otherwise\r\n * it returns {@code true}.</p>\r\n * \r\n * @param dst The buffer into which bytes are to be transferred \r\n * @return {@code false} if the call read the last byte from the stream,\r\n * {@code true} otherwise.\r\n * @throws EXRIOException if the stream contains less than <em>n</em>\r\n * bytes, or if an I/O error occurs.\r\n */\r\n boolean read(ByteBuffer dst) throws EXRIOException;\r\n \r\n /**\r\n * Get the current reading position, in bytes from the beginning of the\r\n * stream. If the next call to {@code read()} will read the first byte in\r\n * the stream file, {@code position()} returns {@literal 0}.\r\n * \r\n * @return the current reading position, in bytes from the beginning of the\r\n * stream.\r\n * @throws EXRIOException if an I/O error occurs.\r\n */\r\n long position() throws EXRIOException;\r\n \r\n /**\r\n * Set the current position. After calling {@code position(i)},\r\n * {@code position()} returns <em>i</em>.\r\n * \r\n * @param pos the new reading position.\r\n * @throws EXRIOException if an I/O error occurs.\r\n */\r\n void position(long pos) throws EXRIOException;\r\n \r\n}", "private static void read(final InputStream istream, final byte[] bytes)\r\n throws IOException {\r\n int pos = 0;\r\n while (pos < bytes.length) {\r\n int read = istream.read(bytes, pos, bytes.length - pos);\r\n if (read < 0) {\r\n throw new RuntimeException(\"premature EOF\");\r\n }\r\n pos += read;\r\n }\r\n }", "private String eatLine( InputStream stream ) throws IOException {\n buffer = new StringBuffer();\n for ( boolean done = false; ! done; ) {\n int c = stream.read();\n switch ( (char) c ) {\n case '\\n':\n case '\\r':\n case END:\n done = true;\n break;\n default:\n buffer.append( (char) c );\n }\n }\n return buffer.toString();\n }", "SAPL parse(InputStream saplInputStream);", "private DataInputStream readBuffer( DataInputStream in, int count ) throws IOException{\n byte[] buffer = new byte[ count ];\n int read = 0;\n while( read < count ){\n int input = in.read( buffer, read, count-read );\n if( input < 0 )\n throw new EOFException();\n read += input;\n }\n \n ByteArrayInputStream bin = new ByteArrayInputStream( buffer );\n DataInputStream din = new DataInputStream( bin );\n return din;\n }", "public void read(final InputStream stream)\r\n throws IOException, DataFormatException {\r\n decoder.read(stream);\r\n }", "public InputStream getInputStream() throws IOException;", "public InputStream getInputStream() throws IOException;", "public InputStream getInputStream();", "public InputStream getInputStream();", "private void readObjectNoData() throws ObjectStreamException {}", "@Override\n public DataAttributes process(InputStream input) throws Ex {\n return null;\n }", "public interface ObjectInput extends DataInput {\n /**\n * Indicates the number of bytes of primitive data that can be read without\n * blocking.\n *\n * @return the number of bytes available.\n * @throws IOException\n * if an I/O error occurs.\n */\n public int available() throws IOException;\n\n /**\n * Closes this stream. Implementations of this method should free any\n * resources used by the stream.\n *\n * @throws IOException\n * if an I/O error occurs while closing the input stream.\n */\n public void close() throws IOException;\n\n /**\n * Reads a single byte from this stream and returns it as an integer in the\n * range from 0 to 255. Returns -1 if the end of this stream has been\n * reached. Blocks if no input is available.\n *\n * @return the byte read or -1 if the end of this stream has been reached.\n * @throws IOException\n * if this stream is closed or another I/O error occurs.\n */\n public int read() throws IOException;\n\n /**\n * Reads bytes from this stream into the byte array {@code buffer}. Blocks\n * while waiting for input.\n *\n * @param buffer\n * the array in which to store the bytes read.\n * @return the number of bytes read or -1 if the end of this stream has been\n * reached.\n * @throws IOException\n * if this stream is closed or another I/O error occurs.\n */\n public int read(byte[] buffer) throws IOException;\n\n /**\n * Reads at most {@code count} bytes from this stream and stores them in\n * byte array {@code buffer} starting at offset {@code count}. Blocks while\n * waiting for input.\n *\n * @param buffer\n * the array in which to store the bytes read.\n * @param offset\n * the initial position in {@code buffer} to store the bytes read\n * from this stream.\n * @param count\n * the maximum number of bytes to store in {@code buffer}.\n * @return the number of bytes read or -1 if the end of this stream has been\n * reached.\n * @throws IOException\n * if this stream is closed or another I/O error occurs.\n */\n public int read(byte[] buffer, int offset, int count) throws IOException;\n\n /**\n * Reads the next object from this stream.\n *\n * @return the object read.\n *\n * @throws ClassNotFoundException\n * if the object's class cannot be found.\n * @throws IOException\n * if this stream is closed or another I/O error occurs.\n */\n public Object readObject() throws ClassNotFoundException, IOException;\n\n /**\n * Skips {@code toSkip} bytes on this stream. Less than {@code toSkip} byte are\n * skipped if the end of this stream is reached before the operation\n * completes.\n *\n * @param toSkip\n * the number of bytes to skip.\n * @return the number of bytes actually skipped.\n *\n * @throws IOException\n * if this stream is closed or another I/O error occurs.\n */\n public long skip(long toSkip) throws IOException;\n}", "public interface IStreamProcessor {\r\n\r\n\t/**\r\n\t * \r\n\t * @return the mime type the stream processor can detect\r\n\t */\r\n\tString getMimeType();\r\n\t\r\n\t/**\r\n\t * This method is used to detect for an array of bytes if this stream processor can handle that data \r\n\t * \r\n\t * @param buffer the input data\r\n\t * @return true if the buffer contains data this stream processor is able to process \r\n\t * @throws NMEAProcessingException\r\n\t */\r\n\tboolean isValidStreamProcessor(int[] buffer) throws RawDataEventException;\r\n\t\r\n\t/**\r\n\t * reads a single byte from an underlying stream or source\r\n\t * \r\n\t * @param c\r\n\t * @param streamProvider\r\n\t * @return false if processing should stop due user termination\r\n\t * @throws NMEAProcessingException\r\n\t */\r\n\tboolean readByte(int c, String streamProvider) throws RawDataEventException ;\r\n\t\r\n\t/**\r\n\t * actively closes the stream\r\n\t * @throws IOException\r\n\t */\r\n\tvoid close() throws IOException;\r\n\r\n\t/**\r\n\t * This may be used to aid misinterpretations in stream processor detection\r\n\t * \r\n\t * @return if the stream processor accepts binary data or ascii data.\r\n\t */\r\n\tboolean isBinary();\r\n}", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException\n {\n // TODO - temp?\n }", "@Override\n synchronized public void run() {\n try {\n BufferedReader bufferedReader = new BufferedReader(\n new InputStreamReader(inputStream, Charset.defaultCharset())\n );\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n this.result.add(line);\n }\n } catch (IOException ex) {\n log.error(\"Failed to consume and display the input stream of type \" + streamType + \".\", ex);\n } finally {\n this.isStopped = true;\n notify();\n }\n }", "InputStream mo1151a();", "int readFrom(byte[] iStream, int pos, ORecordVersion version);", "public abstract Object decode(InputStream is) ;", "private boolean fill() throws IOException {\n if (in == null)\n return false;\n if (bufEnd == buf.length) {\n Tokenizer.movePosition(buf, posOff, bufStart, pos);\n /* The last read was complete. */\n int keep = bufEnd - bufStart;\n if (keep == 0)\n\tbufEnd = 0;\n else if (keep + READSIZE <= buf.length) {\n\t/*\n\t * There is space in the buffer for at least READSIZE bytes.\n\t * Choose bufEnd so that it is the least non-negative integer\n\t * greater than or equal to <code>keep</code>, such\n\t * <code>bufLength - keep</code> is a multiple of READSIZE.\n\t */\n\tbufEnd = buf.length - (((buf.length - keep)/READSIZE) * READSIZE);\n\tfor (int i = 0; i < keep; i++)\n\t buf[bufEnd - keep + i] = buf[bufStart + i];\n }\n else {\n\tchar newBuf[] = new char[buf.length << 1];\n\tbufEnd = buf.length;\n\tSystem.arraycopy(buf, bufStart, newBuf, bufEnd - keep, keep);\n\tbuf = newBuf;\n }\n bufStart = bufEnd - keep;\n posOff = bufStart;\n }\n int nChars = in.read(buf, bufEnd, buf.length - bufEnd);\n if (nChars < 0) {\n in.close();\n in = null;\n return false;\n }\n bufEnd += nChars;\n bufEndStreamOffset += nChars;\n return true;\n }", "private String readStream(InputStream is) {\n try {\n ByteArrayOutputStream bo = new ByteArrayOutputStream();\n int i = is.read();\n while(i != -1) {\n bo.write(i);\n i = is.read();\n }\n return bo.toString();\n } catch (IOException e) {\n return \"\";\n }\n }", "abstract protected boolean read();", "protected abstract boolean accept(InputStream inputStream) throws IOException;", "public static void readFully(InputStream in, byte[] buffer) {\n int c = read(in, buffer);\n if (c != buffer.length) {\n String msg = c + \" != \" + buffer.length + \": \" + ByteUtils.toHex(buffer);\n throw new IORuntimeException(new EOFException(msg));\n }\n }", "protected abstract Reader read() throws IOException;", "void readObject(InputSerializer in) throws java.io.IOException;", "private int readStream(final DataInputStream dis)\n\t\tthrows IOException {\n\t\tif(dis.readInt() > MAX_PROTOCOL_VERSION) {\n\t\t\treturn E_UNSUPPORTED_PROTOCOL_VERSION;\n\t\t}\n\n\t\tint length = dis.readInt();\n\t\tLog.i(\"PhoneLink\", \"Received a \"+length+\" byte parcel\");\n\t\tbyte[] data = new byte[length];\n\t\tint position = 0;\n\t\tdo {\n\t\t\tposition += dis.read(data, position, length-position);\n\t\t} while(position < length);\n\n\t\tParcel parcel = Parcel.obtain();\n\t\tparcel.unmarshall(data, 0, length);\n\t\tparcel.setDataPosition(0);\n\t\tIntent newIntent = (Intent) parcel.readValue(Intent.class.getClassLoader());\n\t\tmIntentHandler.processIntent(newIntent);\n\t\treturn OK;\n\t}", "public abstract void read(NetInput in) throws IOException;", "static void readRequest(InputStream is) throws IOException {\n out.println(\"starting readRequest\");\n byte[] buf = new byte[1024];\n String s = \"\";\n while (true) {\n int n = is.read(buf);\n if (n <= 0)\n throw new IOException(\"Error\");\n s = s + new String(buf, 0, n);\n if (s.indexOf(\"\\r\\n\\r\\n\") != -1)\n break;\n }\n out.println(\"returning from readRequest\");\n }", "public void read(CCompatibleInputStream is) throws Exception {\n header.read(is);\n super.read(is);\n }", "static String loadStream(InputStream in) throws IOException { \n\t\tint ptr = 0; \n\t\tin = new BufferedInputStream(in); \n\t\tStringBuffer buffer = new StringBuffer(); \n\t\twhile( (ptr = in.read()) != -1 ) { \n\t\t\tbuffer.append((char)ptr); \n\t\t} \n\t\treturn buffer.toString(); \n\t}", "private void processIn() {\n if (state != State.ESTABLISHED) {\n bbin.flip();\n if (bbin.get() != 10) {\n silentlyClose();\n return;\n } else {\n state = State.ESTABLISHED;\n }\n bbin.compact();\n } else {\n switch (intReader.process(bbin)) {\n case ERROR:\n return;\n case REFILL:\n return;\n case DONE:\n var size = intReader.get();\n bbin.flip();\n var bb = ByteBuffer.allocate(size);\n for (var i = 0; i < size; i++) {\n bb.put(bbin.get());\n }\n System.out.println(UTF.decode(bb.flip()).toString());\n bbin.compact();\n intReader.reset();\n break;\n }\n }\n }", "public void read(DataInput in) throws IOException {\r\n int size = in.readInt();\r\n\r\n buffer = new byte[size];\r\n in.readFully(buffer);\r\n }", "protected final int readBytes()\n throws IOException\n {\n _inputPtr = 0;\n _inputEnd = 0;\n if (_inputSource != null) {\n int count = _inputSource.read(_inputBuffer, 0, _inputBuffer.length);\n if (count > 0) {\n _inputEnd = count;\n }\n return count;\n }\n return -1;\n }", "static String loadStream(InputStream in) throws IOException {\n int ptr = 0;\n in = new BufferedInputStream(in);\n StringBuffer buffer = new StringBuffer();\n while( (ptr = in.read()) != -1 ) {\n buffer.append((char)ptr);\n }\n return buffer.toString();\n }", "private static int readFully(InputStream in, byte[] buf, int off, int len) throws IOException {\n/* 1144 */ if (len == 0)\n/* 1145 */ return 0; \n/* 1146 */ int total = 0;\n/* 1147 */ while (len > 0) {\n/* 1148 */ int bsize = in.read(buf, off, len);\n/* 1149 */ if (bsize <= 0)\n/* */ break; \n/* 1151 */ off += bsize;\n/* 1152 */ total += bsize;\n/* 1153 */ len -= bsize;\n/* */ } \n/* 1155 */ return (total > 0) ? total : -1;\n/* */ }", "@Override\n public void doRead() throws IOException {\n if (sc.read(bbin) == -1) {\n state = State.CLOSED;\n }\n processIn();\n updateInterestOps();\n }", "@Override\n\t\tprotected void readStreamHeader() throws IOException {\n\t\t}", "public MyInputStream(InputStream in) {\n super(in);\n this.in = in;\n }", "private static String readStr(InputStream stream, int length, boolean allowEof) throws IOException {\n byte[] b = new byte[length];\n int readBytes = stream.read(b);\n if (readBytes != length && !(allowEof && length == 0)) {\n throw new EOFException(\"Unexpected end of steam. Read bytes \" + readBytes + \"; required \" + length);\n }\n\n return new String(b, ENCODING);\n }", "@Override\n public DataAttributes process(InputStream input,\n DataAttributes dataAttributes) throws Ex {\n return null;\n }" ]
[ "0.7290956", "0.7105609", "0.6629516", "0.6486352", "0.6452103", "0.6449522", "0.64197665", "0.63513905", "0.63070726", "0.63014543", "0.63014543", "0.63014543", "0.62597513", "0.62597513", "0.6255647", "0.62455684", "0.6211243", "0.620065", "0.61962104", "0.61876976", "0.6176768", "0.6160088", "0.6158437", "0.6147166", "0.61168075", "0.6100803", "0.6099687", "0.6088207", "0.6082288", "0.6074402", "0.6051492", "0.6024499", "0.6000351", "0.5988105", "0.5972507", "0.5970926", "0.59625745", "0.59517294", "0.5943513", "0.59422517", "0.5931822", "0.5926767", "0.5888162", "0.58858", "0.58846074", "0.5878619", "0.5871918", "0.5866022", "0.58650374", "0.5863013", "0.58392406", "0.58365756", "0.5834618", "0.5825091", "0.5821704", "0.5814773", "0.5808793", "0.58045995", "0.57928896", "0.5787732", "0.5785111", "0.5784474", "0.5774192", "0.5767662", "0.57669795", "0.57636", "0.57584226", "0.57584226", "0.5758311", "0.5758311", "0.5758182", "0.57571435", "0.5755977", "0.57500374", "0.57485217", "0.57479703", "0.57472295", "0.5744", "0.5741908", "0.5732798", "0.57323056", "0.57314897", "0.5724842", "0.57243747", "0.5718783", "0.57171816", "0.57105976", "0.5709318", "0.570336", "0.5701588", "0.56986815", "0.5698183", "0.5694796", "0.56886816", "0.56869835", "0.56833816", "0.56791764", "0.5659518", "0.5656267", "0.5653061", "0.56515145" ]
0.0
-1
TODO Autogenerated method stub
@Override public void run() { respond(); listen(); }
{ "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
NOTE for a discussion group followers are members
public Integer getFollowers() { if (getGroupType() == Group.DISCUSSION_KEY) { return getMemberCount(); } else { return followers; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void metFollower() {\n metFollowers++;\n }", "public Followers getFollowers() {\n return followers;\n }", "public void follow(int followerId, int followeeId) {\n\n }", "public void addToFollowedUsers(String followedUsers);", "public String getFollowers() {\n return followers;\n }", "public void addFollower(String follower, String following) {\n for (User u : users) {\n System.out.println(\"iterating: \" + u.getName() + \" : \" + following);\n if (u.getName().equals(follower)) {\n for (String f : u.getFollowers()) {\n\n if (f.equals(following)) {\n System.out.println(\"ENDDDDD\");\n return;\n }\n }\n System.out.println(\"adding follower!!!!!!!!\");\n getUser(follower).addFollower(following);\n }\n }\n }", "List<User> getFollowersForUser(User user);", "public void appendToFollowedUsers(String followedUsers);", "public void addToFollowedUsers(List<String> followedUsers);", "public void setFollowUp(String followUp) {\n\t this.followUp = followUp;\n\t}", "public void addFollowers(String follower) {\n\tuserFollowers.add(follower);\n }", "public String getFollowUp() \n {\n return followUp;\n }", "public void addFollower(Follower follower) {\n follower_list.add(follower);\n }", "public void appendToFollowedUsers(List<String> followedUsers);", "public void setFollowers(String followers) {\n this.followers = followers;\n }", "public void setFollowerCount(Integer followerCount) {\n this.followerCount = followerCount;\n }", "public void setFollowUp(final String followID) \n {\n followUp = followID;\n }", "public String getFollowUp() {\n\t return this.followUp;\n\t}", "public Long getFollowerId() {\n return followerId;\n }", "public String getUserFollowers() {\n String temp = userFollowers;\r\n userFollowers = \"Has no followers\";\r\n return temp;\r\n }", "private boolean inspect(Pinner pinner) {\n if (unfollowConfig.getUnfollowOnlyRecordedFollowings()) {\n if (pinbot3.PinBot3.dalMgr.containsObjectExternally(pinner, DALManager.TYPES.duplicates_unfollow_pinners, account)) {\n return false;\n }\n /*for (PinterestObject p : account.getDuplicates_follow()) {\n if (p instanceof Pinner && ((Pinner) p).equals(pinner)\n && (new Date()).getTime() - ((Pinner) p).getTimeFollow() <= unfollowConfig.getTimeBetweenFollowAndUnfollow()) {\n return false;\n }\n }*/\n }\n\n if (!unfollowConfig.getCriteria_Users()) {\n return true;\n }\n\n String url = \"/\" + pinner.getUsername() + \"/\";\n String referer = pinner.getBaseUsername();\n int pincount = pinner.getPinsCount();\n int followerscount = pinner.getFollowersCount();\n\n if (!(pincount >= unfollowConfig.getCriteria_UserPinsMin() && pincount <= unfollowConfig.getCriteria_UserPinsMax())) {\n return true;\n }\n if (!(followerscount >= unfollowConfig.getCriteria_UserFollowersMin() && followerscount <= unfollowConfig.getCriteria_UserFollowersMax())) {\n return true;\n }\n\n try {\n if (!Http.validUrl(base_url + url)) {\n return false;\n }\n\n String rs = MakeRequest(base_url + url, referer, Http.ACCEPT_HTML);\n if (rs == null) {\n return false;\n }\n\n Pattern pattern = Pattern.compile(\"name=\\\"pinterestapp:following\\\" content=\\\"(\\\\d+)\\\"\", Pattern.DOTALL | Pattern.CASE_INSENSITIVE & Pattern.MULTILINE);\n Matcher matcher = pattern.matcher(rs);\n if (matcher.find()) {\n int followingcount = Integer.parseInt(matcher.group(1));\n if (!(followingcount >= unfollowConfig.getCriteria_UserFollowingMin() && followingcount <= unfollowConfig.getCriteria_UserFollowingMax())) {\n return true;\n }\n }\n\n pattern = Pattern.compile(\"name=\\\"pinterestapp:boards\\\" content=\\\"(\\\\d+)\\\"\", Pattern.DOTALL | Pattern.CASE_INSENSITIVE & Pattern.MULTILINE);\n matcher = pattern.matcher(rs);\n if (matcher.find()) {\n int boardcount = Integer.parseInt(matcher.group(1));\n if (!(boardcount >= unfollowConfig.getCriteria_UserBoardsMin() && boardcount <= unfollowConfig.getCriteria_UserBoardsMax())) {\n return true;\n }\n }\n return true;\n } catch (InterruptedException ex) {\n //ignore\n config.isInterrupt = true;\n return false;\n } catch (Exception ex) {\n common.ExceptionHandler.reportException(ex);\n return false;\n }\n }", "public Boolean isFollowing() {\n Integer groupType = getGroupType();\n if (groupType != null && groupType == Group.DISCUSSION_KEY) {\n return isMember();\n } else {\n return isFollowing;\n }\n }", "public void setFollow(String follow) {\r\n this.follow = follow;\r\n }", "Data<List<User>> getFollowers();", "public String getFollow() {\r\n return follow;\r\n }", "public followerRelation(User follower, User followee) {\n this.follower = follower;\n this.followee = followee;\n }", "@Override\n\tpublic void onFollow(User source, User followedUser) {\n\n\t}", "private void checkFollowingUser() {\n Log.d(TAG, \"checkFollowingUser: Called\");\n FirebaseDatabase.getInstance().getReference().child(\"Follow\").child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n .child(\"following\").addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n Log.d(TAG, \"onDataChange: Getting Following List\");\n followingList.clear();\n for(DataSnapshot dataSnapshot:snapshot.getChildren())\n {\n Log.d(TAG, \"onDataChange: getting following list\");\n followingList.add(dataSnapshot.getKey());\n }\n Log.d(TAG, \"onDataChange: going to read post for followings\");\n readPosts(); // get Following people post on Home Activity\n\n }\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n Log.d(TAG, \"onCancelled: Started\");\n\n }\n });\n }", "public Integer getFollowerCount() {\n return followerCount;\n }", "@Override\n\t\tpublic void onFollow(User arg0, User arg1) {\n\t\t\t\n\t\t}", "public boolean isPresent(User followee, User follower) throws UserException, FollowerException {\n\t\tboolean flag = false;\n\t\tList<BigInteger> listfo = followerDao.getFollowersbyUser(follower);\n\t\tif(listfo!=null) {\n\t\tfor(BigInteger i: listfo)\n\t {\n\t \n\t if(followee.getPersonID()==i.longValue()) {\n\t flag=true;\n\t break;\n\t }\n\t }\n\t\t}\n\t\treturn flag;\n\t}", "@Override\n\tpublic boolean followUser(Long us_id) {\n\t\treturn false;\n\t}", "public ArrayList<Follower> getFollower_list(){\n return follower_list;\n }", "@Override\n\tpublic List<User> getFollowers() throws Exception {\n\t\treturn null;\n\t}", "public void addFollowings(String following) {\n\tuserFollowings.add(following);\n }", "public void setFollowing(String following) {\n this.following = following;\n }", "private void setFollowersCount() {\n ParseQuery<Follow> query = ParseQuery.getQuery(Follow.class);\n query.whereEqualTo(Follow.KEY_TO, user);\n query.countInBackground((count, e) -> {\n mFollowersTextView.setText(String.valueOf(count));\n });\n }", "public void getFollowList(String un, UserFriends uf) {\n // accessing follow list table (collection)\n MongoCollection<Document> followColl = db.getCollection(\"followList\");\n\n // find user's document\n Document followDoc = followColl.find(Filters.eq(\"username\", un)).first();\n //System.out.println(followDoc.toJson());\n\n // get username of everyone that this user is following into UserFriends class\n if (!uf.friendsList.isEmpty())\n uf.friendsList.clear();\n\n uf.friendsList.addAll((ArrayList<String>) followDoc.get(\"following\"));\n\n // debugging\n /*\n for (String followingWho: uf.friendsList) {\n System.out.println(\"Following: \" + followingWho.toString());\n //GetUser(followingWho.toString());\n }\n */\n }", "public void follow(int followerId, int followeeId) {\n if (followeeId == followerId) {\n return;\n }\n if (!userId2Followers.containsKey(followeeId)) {\n userId2Followers.put(followeeId, new HashSet<>());\n }\n userId2Followers.get(followeeId).add(followerId);\n\n if (!userId2Followees.containsKey(followerId)) {\n userId2Followees.put(followerId, new HashSet<>());\n }\n\n // 自己关注的人,如果不包含当前操作的用户,就添加到set中,并且修改tweet\n if (!userId2Followees.get(followerId).contains(followeeId)) {\n userId2Followees.get(followerId).add(followeeId);\n if (userId2AllTweets.containsKey(followeeId)) {\n List<Tweet> followeeTweets = userId2AllTweets.get(followeeId);\n for (Tweet followeeTweet : followeeTweets) {\n putFollowerTweet(followerId, followeeTweet);\n }\n }\n }\n }", "public Long getFollowedId() {\n return followedId;\n }", "public void follow(int followerId, int followeeId) {\n if (followeeId != followerId) {\n Set<Integer> friendSet = friends.computeIfAbsent(followerId, e -> new HashSet<>());\n friendSet.add(followeeId);\n }\n }", "public String getFollowerIds() {\n\t\treturn restClient.getFollowers();\n\t}", "public void follow(int followerId, int followeeId) {\n if (followerId == followeeId) return;\n User follower = getOrCreateUser(followerId);\n User followee = getOrCreateUser(followeeId);\n\n if (!follower.following.contains(followee))\n follower.following.add(followee);\n }", "public void setFollowerId(Long followerId) {\n this.followerId = followerId;\n }", "public Boolean getFollowing() { return following; }", "public boolean hasFollowUp() \n {\n return followUp.equals(Constants.CLOSE);\n }", "@Override\n\tpublic void follow(String username) throws Exception {\n\t\t\n\t}", "public boolean follow(Node n) { return true; }", "public void follow(int followerId, int followeeId) {\n if(!users.containsKey(followerId) && followerId != followeeId){ // If user is not in database\n HashSet<Integer> u_id = new HashSet<>();\n users.put(followerId, u_id);\n }\n users.get(followerId).add(followeeId); // Add the user and the followee to the hashmap\n }", "@Override\n public Set<User> followersOfUser(String usernname) {\n return userDataMapper.getFollowersOfUser(getUser(usernname).getId());\n }", "public void follow(int followerId, int followeeId) {\n u_map.putIfAbsent(followerId, new User(followerId));\n u_map.putIfAbsent(followeeId, new User(followeeId));\n u_map.get(followerId).follow(followeeId);\n }", "public String getFollowing() {\n return following;\n }", "public void follow(final int followerId, final int followeeId) {\n follows.computeIfAbsent(followerId, x -> new HashSet<>()).add(followeeId);\n }", "public List<Message> getUserFollowersMessages(String userName) {\n List<Message> followerMessages = new ArrayList<Message>();\n\n if (getUser(userName) != null) {\n for (Message message : messages) {\n for (String u : getUser(userName).getFollowers()) {\n if (message.getUserName().equals(u)) {\n followerMessages.add(message);\n }\n }\n }\n }\n\n return followerMessages;\n }", "List<User> getFollowingForUser(User user);", "public Boolean getFollowUpReplaced() {\n\t return this.followUpReplaced;\n\t}", "public String getMembers() {\r\n \t\tString members = _creator;\r\n \t\tfor (String member : _otherMembersList) {\r\n \t\t\tmembers.concat(\", \" + member);\r\n \t\t}\r\n \t\treturn members;\r\n \t}", "private static Achievement createFollowedAchievement(){\n\n ArrayList<String> picturesPaths = new ArrayList<>();\n picturesPaths.add(\"followed_none\");\n picturesPaths.add(\"followed_bronze\");\n picturesPaths.add(\"followed_silver\");\n picturesPaths.add(\"followed_diamond\");\n\n ArrayList<String> picturesLabels = new ArrayList<>();\n picturesLabels.add(\"No followers\");\n picturesLabels.add(\"Followed Chef\");\n picturesLabels.add(\"Famous Chef\");\n picturesLabels.add(\"Renowned Chef\");\n\n ArrayList<Integer> levelSteps = new ArrayList<>();\n levelSteps.add(1);\n levelSteps.add(30);\n levelSteps.add(100);\n\n Function<User, Integer> getUserNbFollowers = u -> u.getSubscribers().size();\n\n return new Achievement(\"followed\", STANDARD_NB_LEVELS, picturesPaths, picturesLabels, levelSteps, getUserNbFollowers);\n }", "@Override\r\n\tpublic void update(FollowUp followup) {\n\t\t\r\n\t}", "public UserDTOBuilder setFollowers(List<UserDTO> followers) {\n this.followers = followers;\n return this;\n }", "public void follow(int followerId, int followeeId) {\n if (!followMap.containsKey(followerId)) followMap.put(followerId, new HashSet<Integer>());\n followMap.get(followerId).add(followeeId);\n }", "private boolean isFollowing(User user, String target)\n{\n \n DefaultListModel following = user.getFollowings();\n if (following.contains(target))\n {\n return true;\n }\n return false;\n}", "public void follow(int followerId, int followeeId) {\n User source = null, target = null;\n for (User user : users) {\n if (user.id == followerId) {\n source = user;\n } else if (user.id == followeeId) {\n target = user;\n }\n }\n if (source == null) {\n source = new User(followerId);\n }\n if (target == null) {\n target = new User(followeeId);\n }\n source.follow(target);\n }", "public FollowerResp getUsersFollowing(Dataset dataset, Dataset clusterizedDataset) throws InterruptedException {\n Chrono c = new Chrono(\"Downloading user friendships....\");\n FollowerResp resp = new FollowerResp(dataset.getName());\n Twitter twitter = new TwitterFactory().getInstance();\n\n List<UserModel> users = this.getSortedUsers(dataset);\n int current_user = 0; // keeps tack of current user\n\n while (current_user < users.size()) {\n UserModel u = users.get(current_user);\n System.out.println(String.format(\"Downloading friends of user %s...\", current_user));\n\n try {\n String stringUserId = u.getName(dataset);\n long userId = Integer.parseInt(stringUserId);\n User user = twitter.showUser(userId);\n if (user.getStatus() == null) {\n u.setIsPrivate(true);\n resp.addPrivateUserId(stringUserId);\n } else {\n IDs ids = twitter.getFriendsIDs(userId, -1);\n HashSet<String> friends = new HashSet<String>();\n for (long i : ids.getIDs()) {\n if (clusterizedDataset.exixstObj(i + \"\")) {\n friends.add(i + \"\");\n// UserModel followed = clusterizedDataset.getUser(i + \"\");\n// TwitterObjectFactory tof = new TwitterObjectFactory(clusterizedDataset);\n// UserModel following = tof.getUser(userId + \"\", dataset.getName());\n// following.addFollowOut(followed);\n }\n }\n resp.addFriends(stringUserId, friends);\n }\n\n current_user++;\n } catch (TwitterException e) {\n boolean cause = manageRequestError(e, u, resp, dataset);\n current_user += cause ? 1 : 0;\n }\n }\n c.millis();\n return resp;\n }", "public void follow(int followerId, int followeeId) {\n if (!followees.containsKey(followerId)) {\n followees.put(followerId, new HashSet<>());\n followees.get(followerId).add(followerId);\n }\n followees.get(followerId).add(followeeId);\n }", "public void follow(int followerId, int followeeId) {\n if(!map.containsKey(followerId)){\n User u = new User(followerId);\n map.put(followerId, u);\n }\n if(!map.containsKey(followeeId)){\n User u = new User(followeeId);\n map.put(followeeId, u);\n }\n map.get(followerId).follow(map.get(followeeId));\n }", "private void setFollowingCount() {\n ParseQuery<Follow> query = ParseQuery.getQuery(Follow.class);\n query.whereEqualTo(Follow.KEY_FROM, user);\n query.countInBackground((count, e) -> {\n mFollowingTextView.setText(String.valueOf(count));\n });\n }", "public Followers() {\n }", "@Override\n public User addFollower(String followerName, String userToFollow) {\n int id = userDataMapper.addFollower(getUser(followerName).getId(), getUser(userToFollow).getId());\n if (id == -1)\n return null;\n return userDataMapper.getUserByID(id);\n }", "static int getFollowers(int amountFollowers, int amountFollowers2)\n {\n int followers = amountFollowers2 - amountFollowers;\n return followers;\n }", "public void setFollowing(Boolean newValue) { following = newValue; }", "public void follow(int followerId, int followeeId) {\n\t\t\tif (!userRelation.containsKey(followerId))\n\t\t\t\tuserRelation.put(followerId, new HashSet<>());\n\t\t\tuserRelation.get(followerId).add(followeeId);\n\t\t}", "Data<List<User>> getFollowers(Integer limit);", "public followerRelation(Long followerId, Long followeeId) {\n this.follower = User.findById(followerId);\n this.followee = User.findById(followeeId);\n }", "public void addMeetingFollowupItem(MeetingFollowupItem mfi)\n throws Exception\n {\n }", "public void followUser(User user) \r\n\t{\n\t\tUser follow = user;\r\n\t\tthis.following.add(follow);//follows the user used as a parameter\r\n\t\tnotifyObservers(follow);//notifies observers of the user\r\n\t\tfollowers.add(follow);//adds you to their followers\r\n\t}", "public Follower(int dancer_number)\n\t{\n\t\tsuper(dancer_number);\n\t\tthis.mName = \"Follower \" + Integer.toString(mNumber);\n\t}", "@Override\n public List<DiscussionFollower> findAll() {\n return (List<DiscussionFollower>) discussionFollowerRepository.findAll();\n }", "public void follow(int followerId, int followeeId) {\n\t\t//\n\t\tif (!followees.containsKey(followerId)) {\n\t\t\tfollowees.put(followerId, new HashSet<>());\n\t\t}\n\t\tfollowees.get(followerId).add(followeeId);\n\t}", "public void setFollowing(ArrayList<Following> followings) {\n following_list = followings;\n }", "public void setFollowerNotifiableStatusByFollower(User follower, FollowerNotifiable notifiable) {\n fstRepository.findAllByFollower(follower)\n .forEach( fst -> {\n fst.setFollowerNotifiable(notifiable);\n logger.debug(\"fstId: {} -> notifiable: {})\", fst.getId(), fst.getFollowerNotifiable());\n fstRepository.save(fst);\n });\n }", "public String memberList() {\n\treturn roomMembers.stream().map(id -> {\n\t try {\n\t\treturn api.getUserById(id).get().getNicknameMentionTag();\n\t } catch (InterruptedException | ExecutionException e) {\n\t\te.printStackTrace();\n\t }\n\t return \"\";\n\t}).collect(Collectors.joining(\"\\n\"));\n }", "public void printAllFollowing(String userName) {\r\n int followingCounter = 0;\r\n int userColumn = 0;\r\n for (int i = 0; i < users.size(); i++) {\r\n if (users.get(i).getUserName().equalsIgnoreCase(userName))\r\n userColumn = i;\r\n }\r\n for (int i = 0; i < connections[userColumn].length; i++) {\r\n if (connections[userColumn][i] == true) {\r\n followingCounter++;\r\n }\r\n }\r\n System.out.println(followingCounter);\r\n }", "public void follow(int followerId, int followeeId) {\n if (!usersMap.containsKey(followerId))\n usersMap.put(followerId, new User(followerId));\n\n if (!usersMap.containsKey(followeeId))\n usersMap.put(followeeId, new User(followeeId));\n\n usersMap.get(followerId).follow(followeeId);\n }", "public void unfollow(int followerId, int followeeId) {\n if(users.containsKey(followerId) && followerId != followeeId){\n users.get(followerId).remove(followeeId); // Remove as required\n } \n }", "@Override\n\tpublic List<User> getFollowingUsers() throws Exception {\n\t\treturn null;\n\t}", "public ArrayList<Following> getFollowing(){\n return following_list;\n }", "@Override\n public String toString() {\n return \"[WallFollower: \" + super.toString() + \"]\";\n }", "Boolean sendFollowRequest(User user);", "static String thanks(int followers, String where)\n {\n String thanks = (\"Perfect! \" + followers + \" followers have been added to your \" + where + \" account. Thanks for using our website!\");return thanks;\n }", "public void setFollowUpInstr(String followUpInstr) {\r\n\t\tthis.followUpInstr = followUpInstr;\r\n\t}", "public void setFollowUpReplaced(Boolean followUpReplaced) {\n\t this.followUpReplaced = followUpReplaced;\n\t}", "private void setupUserFollowButton() {\n if (!Helper.isPrismUserCurrentUser(prismUser)) {\n userFollowButton.setVisibility(View.VISIBLE);\n\n InterfaceAction.toggleSmallFollowButton(context, CurrentUser.isFollowingPrismUser(prismUser), userFollowButton);\n\n userFollowButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n boolean performFollow = !CurrentUser.isFollowingPrismUser(prismUser);\n InterfaceAction.handleFollowButtonClick(context, performFollow, userFollowButton, prismUser);\n }\n });\n }\n }", "public Builder setFollowers(Followers followers) {\n this.followers = followers;\n return this;\n }", "public void removeFromFollowedUsers(String followedUsers);", "public ArrayList<Project> getFollowedProjects() { return this.followedProjects; }", "public void unfollow(int followerId, int followeeId) {\n\n }", "public void withUserByFolloweeId() {\n _query.xdoNss(() -> _query.queryUserByFolloweeId());\n }", "public it.grpc.tokenRing.Node getFollowingN() {\n if (followingNBuilder_ == null) {\n return followingN_ == null ? it.grpc.tokenRing.Node.getDefaultInstance() : followingN_;\n } else {\n return followingNBuilder_.getMessage();\n }\n }", "protected boolean processAnnouncement(String username, String message){return false;}" ]
[ "0.677376", "0.6675716", "0.66304123", "0.6584495", "0.6582836", "0.6464789", "0.6350499", "0.63450587", "0.62966985", "0.6291083", "0.6286141", "0.6281229", "0.6263171", "0.6213689", "0.619528", "0.6136315", "0.6126873", "0.6121319", "0.61206007", "0.61084825", "0.610607", "0.6099241", "0.60881245", "0.60867876", "0.6063133", "0.6057847", "0.6004449", "0.6000963", "0.59699255", "0.59534776", "0.5950674", "0.5947646", "0.59381497", "0.59355307", "0.58993727", "0.58957076", "0.58949965", "0.5879466", "0.58695596", "0.5831083", "0.5824472", "0.58030015", "0.577899", "0.57695985", "0.57465583", "0.57305783", "0.56973493", "0.5688519", "0.568794", "0.56829464", "0.56785166", "0.5653682", "0.56456405", "0.5637733", "0.5631118", "0.5622973", "0.5620557", "0.5612753", "0.5611925", "0.560599", "0.5597599", "0.5597262", "0.5583234", "0.5579057", "0.5571631", "0.55684495", "0.5561122", "0.5559851", "0.5557116", "0.5550743", "0.5545646", "0.55424803", "0.55370533", "0.55351907", "0.55275255", "0.55216587", "0.55175424", "0.55104584", "0.55066144", "0.5486216", "0.5479429", "0.54784155", "0.5467605", "0.5463192", "0.5460664", "0.54545915", "0.54505545", "0.5424991", "0.5418685", "0.5418418", "0.54143375", "0.5410636", "0.54086155", "0.53895855", "0.53733844", "0.5363962", "0.53602016", "0.53574115", "0.5357316", "0.5351539" ]
0.6568427
5
NOTE for a discussion group followers are members
public Boolean isFollowing() { Integer groupType = getGroupType(); if (groupType != null && groupType == Group.DISCUSSION_KEY) { return isMember(); } else { return isFollowing; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void metFollower() {\n metFollowers++;\n }", "public Followers getFollowers() {\n return followers;\n }", "public void follow(int followerId, int followeeId) {\n\n }", "public void addToFollowedUsers(String followedUsers);", "public String getFollowers() {\n return followers;\n }", "public Integer getFollowers() {\n if (getGroupType() == Group.DISCUSSION_KEY) {\n return getMemberCount();\n } else {\n return followers;\n }\n }", "public void addFollower(String follower, String following) {\n for (User u : users) {\n System.out.println(\"iterating: \" + u.getName() + \" : \" + following);\n if (u.getName().equals(follower)) {\n for (String f : u.getFollowers()) {\n\n if (f.equals(following)) {\n System.out.println(\"ENDDDDD\");\n return;\n }\n }\n System.out.println(\"adding follower!!!!!!!!\");\n getUser(follower).addFollower(following);\n }\n }\n }", "List<User> getFollowersForUser(User user);", "public void appendToFollowedUsers(String followedUsers);", "public void addToFollowedUsers(List<String> followedUsers);", "public void setFollowUp(String followUp) {\n\t this.followUp = followUp;\n\t}", "public void addFollowers(String follower) {\n\tuserFollowers.add(follower);\n }", "public String getFollowUp() \n {\n return followUp;\n }", "public void addFollower(Follower follower) {\n follower_list.add(follower);\n }", "public void appendToFollowedUsers(List<String> followedUsers);", "public void setFollowers(String followers) {\n this.followers = followers;\n }", "public void setFollowerCount(Integer followerCount) {\n this.followerCount = followerCount;\n }", "public void setFollowUp(final String followID) \n {\n followUp = followID;\n }", "public String getFollowUp() {\n\t return this.followUp;\n\t}", "public Long getFollowerId() {\n return followerId;\n }", "public String getUserFollowers() {\n String temp = userFollowers;\r\n userFollowers = \"Has no followers\";\r\n return temp;\r\n }", "private boolean inspect(Pinner pinner) {\n if (unfollowConfig.getUnfollowOnlyRecordedFollowings()) {\n if (pinbot3.PinBot3.dalMgr.containsObjectExternally(pinner, DALManager.TYPES.duplicates_unfollow_pinners, account)) {\n return false;\n }\n /*for (PinterestObject p : account.getDuplicates_follow()) {\n if (p instanceof Pinner && ((Pinner) p).equals(pinner)\n && (new Date()).getTime() - ((Pinner) p).getTimeFollow() <= unfollowConfig.getTimeBetweenFollowAndUnfollow()) {\n return false;\n }\n }*/\n }\n\n if (!unfollowConfig.getCriteria_Users()) {\n return true;\n }\n\n String url = \"/\" + pinner.getUsername() + \"/\";\n String referer = pinner.getBaseUsername();\n int pincount = pinner.getPinsCount();\n int followerscount = pinner.getFollowersCount();\n\n if (!(pincount >= unfollowConfig.getCriteria_UserPinsMin() && pincount <= unfollowConfig.getCriteria_UserPinsMax())) {\n return true;\n }\n if (!(followerscount >= unfollowConfig.getCriteria_UserFollowersMin() && followerscount <= unfollowConfig.getCriteria_UserFollowersMax())) {\n return true;\n }\n\n try {\n if (!Http.validUrl(base_url + url)) {\n return false;\n }\n\n String rs = MakeRequest(base_url + url, referer, Http.ACCEPT_HTML);\n if (rs == null) {\n return false;\n }\n\n Pattern pattern = Pattern.compile(\"name=\\\"pinterestapp:following\\\" content=\\\"(\\\\d+)\\\"\", Pattern.DOTALL | Pattern.CASE_INSENSITIVE & Pattern.MULTILINE);\n Matcher matcher = pattern.matcher(rs);\n if (matcher.find()) {\n int followingcount = Integer.parseInt(matcher.group(1));\n if (!(followingcount >= unfollowConfig.getCriteria_UserFollowingMin() && followingcount <= unfollowConfig.getCriteria_UserFollowingMax())) {\n return true;\n }\n }\n\n pattern = Pattern.compile(\"name=\\\"pinterestapp:boards\\\" content=\\\"(\\\\d+)\\\"\", Pattern.DOTALL | Pattern.CASE_INSENSITIVE & Pattern.MULTILINE);\n matcher = pattern.matcher(rs);\n if (matcher.find()) {\n int boardcount = Integer.parseInt(matcher.group(1));\n if (!(boardcount >= unfollowConfig.getCriteria_UserBoardsMin() && boardcount <= unfollowConfig.getCriteria_UserBoardsMax())) {\n return true;\n }\n }\n return true;\n } catch (InterruptedException ex) {\n //ignore\n config.isInterrupt = true;\n return false;\n } catch (Exception ex) {\n common.ExceptionHandler.reportException(ex);\n return false;\n }\n }", "public void setFollow(String follow) {\r\n this.follow = follow;\r\n }", "Data<List<User>> getFollowers();", "public String getFollow() {\r\n return follow;\r\n }", "public followerRelation(User follower, User followee) {\n this.follower = follower;\n this.followee = followee;\n }", "@Override\n\tpublic void onFollow(User source, User followedUser) {\n\n\t}", "private void checkFollowingUser() {\n Log.d(TAG, \"checkFollowingUser: Called\");\n FirebaseDatabase.getInstance().getReference().child(\"Follow\").child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n .child(\"following\").addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n Log.d(TAG, \"onDataChange: Getting Following List\");\n followingList.clear();\n for(DataSnapshot dataSnapshot:snapshot.getChildren())\n {\n Log.d(TAG, \"onDataChange: getting following list\");\n followingList.add(dataSnapshot.getKey());\n }\n Log.d(TAG, \"onDataChange: going to read post for followings\");\n readPosts(); // get Following people post on Home Activity\n\n }\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n Log.d(TAG, \"onCancelled: Started\");\n\n }\n });\n }", "public Integer getFollowerCount() {\n return followerCount;\n }", "@Override\n\t\tpublic void onFollow(User arg0, User arg1) {\n\t\t\t\n\t\t}", "public boolean isPresent(User followee, User follower) throws UserException, FollowerException {\n\t\tboolean flag = false;\n\t\tList<BigInteger> listfo = followerDao.getFollowersbyUser(follower);\n\t\tif(listfo!=null) {\n\t\tfor(BigInteger i: listfo)\n\t {\n\t \n\t if(followee.getPersonID()==i.longValue()) {\n\t flag=true;\n\t break;\n\t }\n\t }\n\t\t}\n\t\treturn flag;\n\t}", "@Override\n\tpublic boolean followUser(Long us_id) {\n\t\treturn false;\n\t}", "public ArrayList<Follower> getFollower_list(){\n return follower_list;\n }", "@Override\n\tpublic List<User> getFollowers() throws Exception {\n\t\treturn null;\n\t}", "public void addFollowings(String following) {\n\tuserFollowings.add(following);\n }", "public void setFollowing(String following) {\n this.following = following;\n }", "private void setFollowersCount() {\n ParseQuery<Follow> query = ParseQuery.getQuery(Follow.class);\n query.whereEqualTo(Follow.KEY_TO, user);\n query.countInBackground((count, e) -> {\n mFollowersTextView.setText(String.valueOf(count));\n });\n }", "public void getFollowList(String un, UserFriends uf) {\n // accessing follow list table (collection)\n MongoCollection<Document> followColl = db.getCollection(\"followList\");\n\n // find user's document\n Document followDoc = followColl.find(Filters.eq(\"username\", un)).first();\n //System.out.println(followDoc.toJson());\n\n // get username of everyone that this user is following into UserFriends class\n if (!uf.friendsList.isEmpty())\n uf.friendsList.clear();\n\n uf.friendsList.addAll((ArrayList<String>) followDoc.get(\"following\"));\n\n // debugging\n /*\n for (String followingWho: uf.friendsList) {\n System.out.println(\"Following: \" + followingWho.toString());\n //GetUser(followingWho.toString());\n }\n */\n }", "public void follow(int followerId, int followeeId) {\n if (followeeId == followerId) {\n return;\n }\n if (!userId2Followers.containsKey(followeeId)) {\n userId2Followers.put(followeeId, new HashSet<>());\n }\n userId2Followers.get(followeeId).add(followerId);\n\n if (!userId2Followees.containsKey(followerId)) {\n userId2Followees.put(followerId, new HashSet<>());\n }\n\n // 自己关注的人,如果不包含当前操作的用户,就添加到set中,并且修改tweet\n if (!userId2Followees.get(followerId).contains(followeeId)) {\n userId2Followees.get(followerId).add(followeeId);\n if (userId2AllTweets.containsKey(followeeId)) {\n List<Tweet> followeeTweets = userId2AllTweets.get(followeeId);\n for (Tweet followeeTweet : followeeTweets) {\n putFollowerTweet(followerId, followeeTweet);\n }\n }\n }\n }", "public Long getFollowedId() {\n return followedId;\n }", "public void follow(int followerId, int followeeId) {\n if (followeeId != followerId) {\n Set<Integer> friendSet = friends.computeIfAbsent(followerId, e -> new HashSet<>());\n friendSet.add(followeeId);\n }\n }", "public String getFollowerIds() {\n\t\treturn restClient.getFollowers();\n\t}", "public void follow(int followerId, int followeeId) {\n if (followerId == followeeId) return;\n User follower = getOrCreateUser(followerId);\n User followee = getOrCreateUser(followeeId);\n\n if (!follower.following.contains(followee))\n follower.following.add(followee);\n }", "public void setFollowerId(Long followerId) {\n this.followerId = followerId;\n }", "public Boolean getFollowing() { return following; }", "public boolean hasFollowUp() \n {\n return followUp.equals(Constants.CLOSE);\n }", "@Override\n\tpublic void follow(String username) throws Exception {\n\t\t\n\t}", "public boolean follow(Node n) { return true; }", "public void follow(int followerId, int followeeId) {\n if(!users.containsKey(followerId) && followerId != followeeId){ // If user is not in database\n HashSet<Integer> u_id = new HashSet<>();\n users.put(followerId, u_id);\n }\n users.get(followerId).add(followeeId); // Add the user and the followee to the hashmap\n }", "@Override\n public Set<User> followersOfUser(String usernname) {\n return userDataMapper.getFollowersOfUser(getUser(usernname).getId());\n }", "public void follow(int followerId, int followeeId) {\n u_map.putIfAbsent(followerId, new User(followerId));\n u_map.putIfAbsent(followeeId, new User(followeeId));\n u_map.get(followerId).follow(followeeId);\n }", "public String getFollowing() {\n return following;\n }", "public void follow(final int followerId, final int followeeId) {\n follows.computeIfAbsent(followerId, x -> new HashSet<>()).add(followeeId);\n }", "public List<Message> getUserFollowersMessages(String userName) {\n List<Message> followerMessages = new ArrayList<Message>();\n\n if (getUser(userName) != null) {\n for (Message message : messages) {\n for (String u : getUser(userName).getFollowers()) {\n if (message.getUserName().equals(u)) {\n followerMessages.add(message);\n }\n }\n }\n }\n\n return followerMessages;\n }", "List<User> getFollowingForUser(User user);", "public Boolean getFollowUpReplaced() {\n\t return this.followUpReplaced;\n\t}", "public String getMembers() {\r\n \t\tString members = _creator;\r\n \t\tfor (String member : _otherMembersList) {\r\n \t\t\tmembers.concat(\", \" + member);\r\n \t\t}\r\n \t\treturn members;\r\n \t}", "private static Achievement createFollowedAchievement(){\n\n ArrayList<String> picturesPaths = new ArrayList<>();\n picturesPaths.add(\"followed_none\");\n picturesPaths.add(\"followed_bronze\");\n picturesPaths.add(\"followed_silver\");\n picturesPaths.add(\"followed_diamond\");\n\n ArrayList<String> picturesLabels = new ArrayList<>();\n picturesLabels.add(\"No followers\");\n picturesLabels.add(\"Followed Chef\");\n picturesLabels.add(\"Famous Chef\");\n picturesLabels.add(\"Renowned Chef\");\n\n ArrayList<Integer> levelSteps = new ArrayList<>();\n levelSteps.add(1);\n levelSteps.add(30);\n levelSteps.add(100);\n\n Function<User, Integer> getUserNbFollowers = u -> u.getSubscribers().size();\n\n return new Achievement(\"followed\", STANDARD_NB_LEVELS, picturesPaths, picturesLabels, levelSteps, getUserNbFollowers);\n }", "@Override\r\n\tpublic void update(FollowUp followup) {\n\t\t\r\n\t}", "public UserDTOBuilder setFollowers(List<UserDTO> followers) {\n this.followers = followers;\n return this;\n }", "public void follow(int followerId, int followeeId) {\n if (!followMap.containsKey(followerId)) followMap.put(followerId, new HashSet<Integer>());\n followMap.get(followerId).add(followeeId);\n }", "private boolean isFollowing(User user, String target)\n{\n \n DefaultListModel following = user.getFollowings();\n if (following.contains(target))\n {\n return true;\n }\n return false;\n}", "public void follow(int followerId, int followeeId) {\n User source = null, target = null;\n for (User user : users) {\n if (user.id == followerId) {\n source = user;\n } else if (user.id == followeeId) {\n target = user;\n }\n }\n if (source == null) {\n source = new User(followerId);\n }\n if (target == null) {\n target = new User(followeeId);\n }\n source.follow(target);\n }", "public FollowerResp getUsersFollowing(Dataset dataset, Dataset clusterizedDataset) throws InterruptedException {\n Chrono c = new Chrono(\"Downloading user friendships....\");\n FollowerResp resp = new FollowerResp(dataset.getName());\n Twitter twitter = new TwitterFactory().getInstance();\n\n List<UserModel> users = this.getSortedUsers(dataset);\n int current_user = 0; // keeps tack of current user\n\n while (current_user < users.size()) {\n UserModel u = users.get(current_user);\n System.out.println(String.format(\"Downloading friends of user %s...\", current_user));\n\n try {\n String stringUserId = u.getName(dataset);\n long userId = Integer.parseInt(stringUserId);\n User user = twitter.showUser(userId);\n if (user.getStatus() == null) {\n u.setIsPrivate(true);\n resp.addPrivateUserId(stringUserId);\n } else {\n IDs ids = twitter.getFriendsIDs(userId, -1);\n HashSet<String> friends = new HashSet<String>();\n for (long i : ids.getIDs()) {\n if (clusterizedDataset.exixstObj(i + \"\")) {\n friends.add(i + \"\");\n// UserModel followed = clusterizedDataset.getUser(i + \"\");\n// TwitterObjectFactory tof = new TwitterObjectFactory(clusterizedDataset);\n// UserModel following = tof.getUser(userId + \"\", dataset.getName());\n// following.addFollowOut(followed);\n }\n }\n resp.addFriends(stringUserId, friends);\n }\n\n current_user++;\n } catch (TwitterException e) {\n boolean cause = manageRequestError(e, u, resp, dataset);\n current_user += cause ? 1 : 0;\n }\n }\n c.millis();\n return resp;\n }", "public void follow(int followerId, int followeeId) {\n if (!followees.containsKey(followerId)) {\n followees.put(followerId, new HashSet<>());\n followees.get(followerId).add(followerId);\n }\n followees.get(followerId).add(followeeId);\n }", "public void follow(int followerId, int followeeId) {\n if(!map.containsKey(followerId)){\n User u = new User(followerId);\n map.put(followerId, u);\n }\n if(!map.containsKey(followeeId)){\n User u = new User(followeeId);\n map.put(followeeId, u);\n }\n map.get(followerId).follow(map.get(followeeId));\n }", "private void setFollowingCount() {\n ParseQuery<Follow> query = ParseQuery.getQuery(Follow.class);\n query.whereEqualTo(Follow.KEY_FROM, user);\n query.countInBackground((count, e) -> {\n mFollowingTextView.setText(String.valueOf(count));\n });\n }", "public Followers() {\n }", "@Override\n public User addFollower(String followerName, String userToFollow) {\n int id = userDataMapper.addFollower(getUser(followerName).getId(), getUser(userToFollow).getId());\n if (id == -1)\n return null;\n return userDataMapper.getUserByID(id);\n }", "static int getFollowers(int amountFollowers, int amountFollowers2)\n {\n int followers = amountFollowers2 - amountFollowers;\n return followers;\n }", "public void setFollowing(Boolean newValue) { following = newValue; }", "public void follow(int followerId, int followeeId) {\n\t\t\tif (!userRelation.containsKey(followerId))\n\t\t\t\tuserRelation.put(followerId, new HashSet<>());\n\t\t\tuserRelation.get(followerId).add(followeeId);\n\t\t}", "Data<List<User>> getFollowers(Integer limit);", "public followerRelation(Long followerId, Long followeeId) {\n this.follower = User.findById(followerId);\n this.followee = User.findById(followeeId);\n }", "public void addMeetingFollowupItem(MeetingFollowupItem mfi)\n throws Exception\n {\n }", "public void followUser(User user) \r\n\t{\n\t\tUser follow = user;\r\n\t\tthis.following.add(follow);//follows the user used as a parameter\r\n\t\tnotifyObservers(follow);//notifies observers of the user\r\n\t\tfollowers.add(follow);//adds you to their followers\r\n\t}", "public Follower(int dancer_number)\n\t{\n\t\tsuper(dancer_number);\n\t\tthis.mName = \"Follower \" + Integer.toString(mNumber);\n\t}", "@Override\n public List<DiscussionFollower> findAll() {\n return (List<DiscussionFollower>) discussionFollowerRepository.findAll();\n }", "public void follow(int followerId, int followeeId) {\n\t\t//\n\t\tif (!followees.containsKey(followerId)) {\n\t\t\tfollowees.put(followerId, new HashSet<>());\n\t\t}\n\t\tfollowees.get(followerId).add(followeeId);\n\t}", "public void setFollowing(ArrayList<Following> followings) {\n following_list = followings;\n }", "public void setFollowerNotifiableStatusByFollower(User follower, FollowerNotifiable notifiable) {\n fstRepository.findAllByFollower(follower)\n .forEach( fst -> {\n fst.setFollowerNotifiable(notifiable);\n logger.debug(\"fstId: {} -> notifiable: {})\", fst.getId(), fst.getFollowerNotifiable());\n fstRepository.save(fst);\n });\n }", "public String memberList() {\n\treturn roomMembers.stream().map(id -> {\n\t try {\n\t\treturn api.getUserById(id).get().getNicknameMentionTag();\n\t } catch (InterruptedException | ExecutionException e) {\n\t\te.printStackTrace();\n\t }\n\t return \"\";\n\t}).collect(Collectors.joining(\"\\n\"));\n }", "public void printAllFollowing(String userName) {\r\n int followingCounter = 0;\r\n int userColumn = 0;\r\n for (int i = 0; i < users.size(); i++) {\r\n if (users.get(i).getUserName().equalsIgnoreCase(userName))\r\n userColumn = i;\r\n }\r\n for (int i = 0; i < connections[userColumn].length; i++) {\r\n if (connections[userColumn][i] == true) {\r\n followingCounter++;\r\n }\r\n }\r\n System.out.println(followingCounter);\r\n }", "public void follow(int followerId, int followeeId) {\n if (!usersMap.containsKey(followerId))\n usersMap.put(followerId, new User(followerId));\n\n if (!usersMap.containsKey(followeeId))\n usersMap.put(followeeId, new User(followeeId));\n\n usersMap.get(followerId).follow(followeeId);\n }", "public void unfollow(int followerId, int followeeId) {\n if(users.containsKey(followerId) && followerId != followeeId){\n users.get(followerId).remove(followeeId); // Remove as required\n } \n }", "@Override\n\tpublic List<User> getFollowingUsers() throws Exception {\n\t\treturn null;\n\t}", "public ArrayList<Following> getFollowing(){\n return following_list;\n }", "@Override\n public String toString() {\n return \"[WallFollower: \" + super.toString() + \"]\";\n }", "Boolean sendFollowRequest(User user);", "static String thanks(int followers, String where)\n {\n String thanks = (\"Perfect! \" + followers + \" followers have been added to your \" + where + \" account. Thanks for using our website!\");return thanks;\n }", "public void setFollowUpInstr(String followUpInstr) {\r\n\t\tthis.followUpInstr = followUpInstr;\r\n\t}", "public void setFollowUpReplaced(Boolean followUpReplaced) {\n\t this.followUpReplaced = followUpReplaced;\n\t}", "private void setupUserFollowButton() {\n if (!Helper.isPrismUserCurrentUser(prismUser)) {\n userFollowButton.setVisibility(View.VISIBLE);\n\n InterfaceAction.toggleSmallFollowButton(context, CurrentUser.isFollowingPrismUser(prismUser), userFollowButton);\n\n userFollowButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n boolean performFollow = !CurrentUser.isFollowingPrismUser(prismUser);\n InterfaceAction.handleFollowButtonClick(context, performFollow, userFollowButton, prismUser);\n }\n });\n }\n }", "public Builder setFollowers(Followers followers) {\n this.followers = followers;\n return this;\n }", "public void removeFromFollowedUsers(String followedUsers);", "public ArrayList<Project> getFollowedProjects() { return this.followedProjects; }", "public void unfollow(int followerId, int followeeId) {\n\n }", "public void withUserByFolloweeId() {\n _query.xdoNss(() -> _query.queryUserByFolloweeId());\n }", "public it.grpc.tokenRing.Node getFollowingN() {\n if (followingNBuilder_ == null) {\n return followingN_ == null ? it.grpc.tokenRing.Node.getDefaultInstance() : followingN_;\n } else {\n return followingNBuilder_.getMessage();\n }\n }", "protected boolean processAnnouncement(String username, String message){return false;}" ]
[ "0.677376", "0.6675716", "0.66304123", "0.6584495", "0.6582836", "0.6568427", "0.6464789", "0.6350499", "0.63450587", "0.62966985", "0.6291083", "0.6286141", "0.6281229", "0.6263171", "0.6213689", "0.619528", "0.6136315", "0.6126873", "0.6121319", "0.61206007", "0.61084825", "0.610607", "0.60881245", "0.60867876", "0.6063133", "0.6057847", "0.6004449", "0.6000963", "0.59699255", "0.59534776", "0.5950674", "0.5947646", "0.59381497", "0.59355307", "0.58993727", "0.58957076", "0.58949965", "0.5879466", "0.58695596", "0.5831083", "0.5824472", "0.58030015", "0.577899", "0.57695985", "0.57465583", "0.57305783", "0.56973493", "0.5688519", "0.568794", "0.56829464", "0.56785166", "0.5653682", "0.56456405", "0.5637733", "0.5631118", "0.5622973", "0.5620557", "0.5612753", "0.5611925", "0.560599", "0.5597599", "0.5597262", "0.5583234", "0.5579057", "0.5571631", "0.55684495", "0.5561122", "0.5559851", "0.5557116", "0.5550743", "0.5545646", "0.55424803", "0.55370533", "0.55351907", "0.55275255", "0.55216587", "0.55175424", "0.55104584", "0.55066144", "0.5486216", "0.5479429", "0.54784155", "0.5467605", "0.5463192", "0.5460664", "0.54545915", "0.54505545", "0.5424991", "0.5418685", "0.5418418", "0.54143375", "0.5410636", "0.54086155", "0.53895855", "0.53733844", "0.5363962", "0.53602016", "0.53574115", "0.5357316", "0.5351539" ]
0.6099241
22
anim++; if (anim > 9999) anim = 0;
public void update() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateAnimation() {\n\t\tif (anim < 1000) {\n\t\t\tanim++;\n\t\t} else anim = 0;\n\t}", "private void idleAnimation(){\n timer++;\n if( timer > 4 ){\n setImage(loadTexture());\n animIndex++;\n timer= 0;\n if(animIndex > maxAnimIndex ){\n animIndex = 0;\n }\n }\n }", "private void animate() {\r\n\t\tif (spriteCounter > 50) {\r\n\t\t\tanimationFrame = 0;\r\n\t\t} else {\r\n\t\t\tanimationFrame = -16;\r\n\t\t}\r\n\t\t\r\n\t\tif (spriteCounter > 100) {\r\n\t\t\tspriteCounter = 0;\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\tspriteCounter++;\r\n\t\tsetImage((Graphics2D) super.img.getGraphics());\r\n\t}", "private void animationSpeedLeft() \n {\n if(animationCounter % 4 == 0){\n animateLeft();\n }\n }", "protected abstract void animate(int anim);", "public void onAnimationRepeat(Animation animation) {\n\r\n }", "@Override\n\tpublic void update() {\n\t\tif(!canSwoop)\n\t\tif(System.currentTimeMillis() - lastAnim >= 200){\t\n\t\t\tif(currentAnim < 2){\n\t\t\t\tcurrentAnim++;\n\t\t\t} else {\n\t\t\t\tcurrentAnim = 0;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"ANIMATING image: \" + currentAnim);\n\t\t\tlastAnim = System.currentTimeMillis();\t\t\n\t\t\t}\n\t\t\n\t\tthis.texture = Assets.shadowAnim[currentAnim];\n\t}", "public void setAnimation()\n {\n if(speed<0)\n {\n if(animationCount % 4 == 0)\n animateLeft();\n }\n else\n {\n if(animationCount % 4 == 0)\n animateRight();\n }\n }", "public void mo5968e() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{-((float) C1413m.f5711i.getHeight()), 0.0f}).setDuration(240);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{0.0f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f}).setDuration(240);\n duration.start();\n duration2.start();\n long j = (long) 160;\n ObjectAnimator.ofFloat(this.f5436pa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.6f, 0.5f, 0.4f, 0.3f, 0.2f, 0.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5438qa, \"alpha\", new float[]{1.0f, 0.0f}).setDuration(j).start();\n duration.addListener(new C1302Xa(this));\n }", "@Override\n public void onAnimationStart(Animation animation) {\n number++;\n }", "public void inicia(){\n\t \tanimacion2.start();\n\t \tSystem.out.print(num);\n\t num++;\t\n\t }", "public void e()\n/* */ {\n/* 193 */ if (!this.g) {\n/* 194 */ AnimatorSet localAnimatorSet = new AnimatorSet();\n/* 195 */ localAnimatorSet.play(a(this.b)).with(b(this.c));\n/* 196 */ localAnimatorSet.setDuration(this.f).start();\n/* 197 */ this.c.setVisibility(View.VISIBLE);\n/* 198 */ this.g = true;\n/* */ }\n/* */ }", "@Override\n public void onTick(long millisUntilFinished) {\n\n odliczanie2--;\n Animation animationprzyciski= AnimationUtils.loadAnimation(getApplicationContext(),R.anim.mixed_anim);\n odliczanie.startAnimation(animationprzyciski);\n odliczanie.setText(odliczanie2+\"\");\n\n }", "public void onAnimationRepeat(Animation animation) {\n }", "public void mo5969f() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{0.0f, -((float) C1413m.f5711i.getHeight())}).setDuration(350);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.55f, 0.35f, 0.2f, 0.1f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}).setDuration(350);\n duration.start();\n duration2.start();\n long j = (long) 240;\n ObjectAnimator.ofFloat(this.f5386F, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5384D, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5385E, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n this.f5384D.getTexView().setText(getResources().getString(R.string.pause));\n duration.addListener(new C1298Va(this));\n }", "@Override\r\n public void onAnimationRepeat(Animator arg0)// 动画重复\r\n {\n\r\n }", "public void animateMovementDown()\n {\n if(animationCount%frameRate == 0)\n {\n imageNumber = (imageNumber + 1)% (downMvt.length);\n setImage(downMvt[imageNumber]);\n } \n }", "@Override\n public void onAnimationRepeat(Animation arg0) {\n \n }", "@Override public void onAnimationRepeat(Animator arg0) {\n\n }", "private void m106722c() {\n if (this.f86017d != null) {\n this.f86018e = (AnimationImageView) this.f86017d.findViewById(R.id.b9t);\n try {\n if (C43127fh.m136806a(this.f86017d.getContext())) {\n ((TextView) this.f86017d.findViewById(R.id.avl)).setText(R.string.bei);\n this.f86018e.setScaleX(-1.0f);\n }\n } catch (Exception unused) {\n }\n if (this.f86018e != null && !f86014a) {\n this.f86018e.setRepeatCount(3);\n this.f86018e.setAnimation(\"right_pic.json\");\n this.f86018e.setProgress(0.0f);\n this.f86018e.mo7078b();\n f86014a = true;\n m106725f();\n }\n }\n }", "@Override\n public void onAnimationRepeat(Animation animation) {\n\n }", "@Override\n public void onAnimationRepeat(Animation animation) {\n\n }", "@Override\n\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\n\t}", "public void animateMovementUp()\n {\n if(animationCount%frameRate == 0)\n {\n imageNumber = (imageNumber + 1)% (upMvt.length);\n setImage(upMvt[imageNumber]);\n } \n }", "public void onAnimationRepeat(Animation arg0) {\n\t}", "@Override\n protected void animStop() {\n }", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\n\t\t\t\t\t\t\t}", "public void animate()\n\t{\n\t\tanimation.read();\n\t}", "private void rerunAnimation() {\n transition.playFromStart();\r\n}", "private void m23259e() {\n boolean z;\n if (this.f19138f != null) {\n ValueAnimator valueAnimator = this.f19137e;\n if (valueAnimator != null) {\n z = valueAnimator.isStarted();\n this.f19137e.cancel();\n this.f19137e.removeAllUpdateListeners();\n } else {\n z = false;\n }\n this.f19137e = ValueAnimator.ofFloat(0.0f, ((float) (this.f19138f.f19131u / this.f19138f.f19130t)) + 1.0f);\n this.f19137e.setRepeatMode(this.f19138f.f19129s);\n this.f19137e.setRepeatCount(this.f19138f.f19128r);\n this.f19137e.setDuration(this.f19138f.f19130t + this.f19138f.f19131u);\n this.f19137e.addUpdateListener(this.f19133a);\n if (z) {\n this.f19137e.start();\n }\n }\n }", "public void act() { \n check = borde(flag);\n if(check == true )\n restaura();\n moveRandom(move);\n if(animationE % 3 == 0){\n checkanimation();\n } \n animationE++; \n alive=checkfire();\n if(alive == true){\n enemyoff();\n } \n \n }", "public void setAnimateCount(int count) {\n this.mAnimCount = count;\n }", "public void nextTextureIndexX() {\n/* 245 */ this.particleTextureIndexX++;\n/* */ }", "public void setGreenAnimation(){\n va.setDuration(75);\n va.setEvaluator(new ArgbEvaluator());\n va.setRepeatCount(ValueAnimator.INFINITE);\n va.setRepeatMode(ValueAnimator.REVERSE);\n va.start();\n\n //va.cancel();\n }", "public void mo5964b() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{0.0f, -((float) C1413m.f5711i.getHeight())}).setDuration(350);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.55f, 0.35f, 0.2f, 0.1f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}).setDuration(350);\n duration.start();\n duration2.start();\n long j = (long) 240;\n ObjectAnimator.ofFloat(this.f5436pa, \"alpha\", new float[]{0.0f, 0.3f, 0.5f, 0.7f, 0.9f, 1.0f}).setDuration(j).start();\n this.f5438qa.getMeasuredHeight();\n this.f5384D.getmImageViewHeight();\n C1413m.m6828a(27, this.f5389I);\n ObjectAnimator.ofFloat(this.f5386F, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5384D, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5385E, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n this.f5384D.getTexView().setText(getResources().getString(R.string.pause));\n this.f5384D.getmImageView().setImageResource(R.drawable.iqoo_buttonanimation);\n this.f5393M = (AnimationDrawable) this.f5384D.getmImageView().getDrawable();\n this.f5393M.start();\n duration.addListener(new C1300Wa(this));\n }", "@Override\n\t\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\t\n\t\t}", "@Override\n public void onAnimationRepeat(Animation animation) {\n }", "@Override\n public void onAnimationRepeat(Animation animation) {\n }", "@Override\n public void onAnimationRepeat(Animation animation) {\n }", "@Override\n public void onAnimationRepeat(Animation animation) {\n }", "public abstract void animation(double seconds);", "@Override\r\n public void update() {\r\n // Animate sprite\r\n if (this.spriteTimer++ >= 4) {\r\n this.spriteIndex++;\r\n this.spriteTimer = 0;\r\n }\r\n if (this.spriteIndex >= this.animation.length) {\r\n this.destroy();\r\n } else {\r\n this.sprite = this.animation[this.spriteIndex];\r\n }\r\n }", "@Override\r\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\r\n\t\t\t}", "@Override\n\t\tpublic void onAnimationRepeat(Animator animation) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onAnimationRepeat(Animator animation) {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\n\t\t}", "public void act() \n {\n if(images != null)\n {\n if(animationState == AnimationState.ANIMATING)\n {\n if(animationCounter++ > delay)\n {\n animationCounter = 0;\n currentImage = (currentImage + 1) % images.length;\n setImage(images[currentImage]);\n }\n }\n else if(animationState == AnimationState.SPECIAL)\n {\n setImage(specialImage);\n }\n else if(animationState == AnimationState.RESTING)\n {\n animationState = AnimationState.FROZEN;\n animationCounter = 0;\n currentImage = 0;\n setImage(images[currentImage]);\n }\n }\n }", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationRepeat(Animator animation) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "@Override\n\tpublic void onAnimationRepeat(Animator arg0) {\n\n\t}", "@Override\n protected void animateWalking() {\n if (seqIdx > 7) {\n seqIdx = 0;\n }\n if (walking) {\n this.setImage(\"images/bat/bat_\" + seqIdx + FILE_SUFFIX);\n } else {\n this.setImage(\"images/bat/bat_0.png\");\n }\n seqIdx++;\n }", "@Override\n\tpublic void onAnimationRepeat(Animation animation) {\n\n\t}", "@Override\r\n\t\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\r\n\t\t\t\t}", "boolean updateFrame() {\n counter++; // update the counter every time this method is called\n switch (currAnimation) {\n case STANDING:\n case CROUCHING:\n if (currFrame == 1) {\n if (counter > BLINK_TIME) {\n currFrame = 0; // open Kirby's eyes\n counter = 0;\n return true;\n } else {\n return false;\n }\n } else if (currFrame == 0 && counter > noBlinkPeriod) {\n currFrame = 1; // change to a blinking state (eyes closed)\n noBlinkPeriod = (int) (Math.random() * 750) + 50;\n counter = 0;\n return true;\n } else {\n currFrame = 0;\n return true;\n }\n case WALKING:\n case RUNNING:\n return nextFrame();\n case FLOATING:\n if (inAir) {\n return nextFrame();\n } else {\n dy = 0;\n if (rightKeyPressed || leftKeyPressed) {\n setAnimation(Animation.WALKING);\n } else {\n setAnimation(Animation.STANDING);\n }\n return true;\n }\n case FALLING:\n if (inAir) {\n if (currFrame < 6) { \n // 6 is the last frame of the falling animation\n return nextFrame(); \n } else { return false; }\n } else {\n dy = 0;\n if (downKeyPressed) {\n setAnimation(Animation.CROUCHING);\n currFrame = 0;\n } else if (rightKeyPressed || leftKeyPressed) {\n setAnimation(Animation.WALKING);\n } else {\n dx = 0;\n setAnimation(Animation.STANDING);\n }\n return true;\n }\n case SLIDING:\n if (counter > SLIDING_TIME) {\n dx = 0;\n if (downKeyPressed) {\n setAnimation(Animation.CROUCHING);\n } else if (rightKeyPressed || leftKeyPressed) {\n setAnimation(Animation.WALKING);\n } else {\n setAnimation(Animation.STANDING);\n }\n \n return true;\n } else { return false; }\n case ENTERING:\n if (currFrame < 3) {\n // 3 being the final frame of the ENTERING animation\n return nextFrame();\n } else if (currFrame == 3) {\n entered = true; // signal that Kirby has entered the door\n return false; // then return false, since the animation didn't change\n } else { return false; }\n default:\n return false;\n }\n }", "@Override\r\n\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void onAnimationRepeat(Animator animation) {\n }", "public void checkanimation(){ \n if(super.movecheck(flag) == 1)\n animationup();\n if( super.movecheck(flag)== 2)\n animationdown();\n if(super.movecheck(flag) == 3)\n animationleft();\n if(super.movecheck(flag)== 4)\n animationright(); \n }", "public void mo5967d() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{-((float) C1413m.f5711i.getHeight()), 0.0f}).setDuration(240);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{0.0f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f}).setDuration(240);\n duration.start();\n duration2.start();\n long j = (long) 240;\n ObjectAnimator.ofFloat(this.f5436pa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.6f, 0.5f, 0.4f, 0.3f, 0.2f, 0.0f}).setDuration(j).start();\n LinearLayout linearLayout = this.f5438qa;\n ObjectAnimator.ofFloat(linearLayout, \"translationY\", new float[]{0.0f, (float) ((linearLayout.getMeasuredHeight() - this.f5384D.getmImageViewHeight()) - C1413m.m6828a(27, this.f5389I))}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5438qa, \"alpha\", new float[]{1.0f, 0.0f}).setDuration(j).start();\n duration.addListener(new C1304Ya(this));\n }", "@Override\n\t\t\t\t\tpublic void onAnimationRepeat(Animator animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\t\n\t\t\t}", "public void anim() {\n // start the timer\n t.start();\n }", "private void animateRight(){\n if(frame == 1){\n setImage(run1);\n }\n else if(frame == 2){\n setImage(run2);\n }\n else if(frame == 3){\n setImage(run3);\n }\n else if(frame == 4){\n setImage(run4);\n }\n else if(frame == 5){\n setImage(run5);\n }\n else if(frame == 6){\n setImage(run6);\n }\n else if(frame == 7){\n setImage(run7);\n }\n else if(frame == 8){\n setImage(run8);\n frame =1;\n return;\n }\n frame ++;\n }", "@Override\n protected void animStart() {\n }", "private void animateLeft(){\n if(frame == 1){\n setImage(run1_l);\n }\n else if(frame == 2){\n setImage(run2_l);\n }\n else if(frame == 3){\n setImage(run3_l);\n }\n else if(frame == 4){\n setImage(run4_l);\n }\n else if(frame == 5){\n setImage(run5_l);\n }\n else if(frame == 6){\n setImage(run6_l);\n }\n else if(frame == 7){\n setImage(run7_l);\n }\n else if(frame == 8){\n setImage(run8_l);\n frame =1;\n return;\n }\n frame ++;\n }", "@Override\n\t\t\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "private void animationSpeedRight()\n {\n if(animationCounter % 4 == 0){\n animateRight();\n changeThrowing(false);\n }\n }", "@Override\n public void onAnimationRepeat(Animator animation) {\n\n }", "public void cycle(){\r\n \r\n \r\n if(collision()){\r\n endtime = 1;\r\n animator.stop();\r\n }else{\r\n if(max_h == false)\r\n ch.v--;\r\n if(ch.v == 150)\r\n max_h = true;\r\n\r\n if(max_h == true & ch.v <= 330){\r\n ch.v++;\r\n if(ch.v == 330){\r\n done = true;\r\n \r\n }\r\n }\r\n }\r\n }", "@Override\n\t\t\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\n\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\t\r\n\t\t\t}", "public void incrementFrameNumber()\n {\n\tframeNumber++;\n }", "@Override\n public void onAnimationEnd(Animation animation) {\n if (animation == animBlink) {\n }\n\n }", "public void onAnimationStart(Animation animation) {\n\r\n }", "@Override\n\tpublic void draw() {\n\t\tfloat delta = Gdx.graphics.getDeltaTime();\n\t\ti+= delta;\n\t\timage.setRegion(animation.getKeyFrame(i, true));\n\t\t//this.getSpriteBatch().draw(animation.getKeyFrame(i, true), 0, 0);\n\t\t\n\t\tGdx.app.log(\"tag\", \"delta = \" + i);\n\t\t\n\t\tsuper.draw();\n\t}", "public void setAnimaciones( ){\n\n int x= 0;\n Array<TextureRegion> frames = new Array<TextureRegion>();\n for(int i=1;i<=8;i++){\n frames.add(new TextureRegion(atlas.findRegion(\"demon01\"), x, 15, 16, 15));\n x+=18;\n }\n this.parado = new Animation(1 / 10f, frames);//5 frames por segundo\n setBounds(0, 0, 18, 15);\n\n }", "@Override\n public void onAnimationRepeat(Animator arg0) {\n\n }", "@Override\n public void onAnimationRepeat(Animation animation) {\n\n }", "@Override\n public void onAnimationRepeat(Animation animation) {\n\n }", "@Override\n public void setAnim(int nextIn, int nextOut, int quitIn, int quitOut) {\n if (manager != null) {\n manager.setAnim(nextIn, nextOut, quitIn, quitOut);\n }\n }", "public void animateDice() {\n pos += vel*tickCounter + ACC*tickCounter*tickCounter/2;\n if(pos<(TILE_SIZE*15-DICE_SIZE)/2){\n if(this.pIndex%3==0)\n diceImg = diceAnimation[tickCounter%diceAnimation.length];\n else\n diceImg = diceAnimation[diceAnimation.length-1-(tickCounter%diceAnimation.length)];\n tickCounter++;\n vel += ACC;}\n else{\n diceImg = dice[result-1];\n pos=(TILE_SIZE*15-DICE_SIZE)/2;}\n setCoordinates(pos);\n //System.out.println(\"dice pos \"+pos);\n }", "public void start() {\n if(mCancelAnim){\n setCancelAnimator(false);\n onEnd();\n return;\n }\n if (count <= 0) {\n setCancelNext(true);\n onEnd();\n return; //end\n }\n //start once now\n /* Logger.d(\"AnimateHelper\",\"start_before_start\",\"count = \" + count +\n \",already started ?=\" + anim.isStarted());*/\n --count;\n anim.start();\n }", "private void play() {\n play(Animation.INDEFINITE);\n }", "public void incWalkSpeed(int n)\n{\n walkSpeed = walkSpeed - n;\n}", "public void startAnimation() {\n animationStart = System.currentTimeMillis();\n }", "public void faster()\n {\n if(speed < 9){\n speed += 1;\n }\n }", "@Override\r\n\t\t\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "public void onAnimationRepeat(Animation animation) {\n\t }", "public void playerAnimation(){\r\n \r\n switch (gif) {\r\n case 5:\r\n j= new ImageIcon(getClass().getResource(\"/\" + Character.choosen_char + \"_1.png\"));\r\n img = j.getImage().getScaledInstance(200, 200, Image.SCALE_DEFAULT);\r\n ;\r\n break;\r\n case 15:\r\n j = new ImageIcon(getClass().getResource(\"/\"+ Character.choosen_char + \"_2.png\"));\r\n img = j.getImage().getScaledInstance(200, 200, Image.SCALE_DEFAULT);\r\n break;\r\n case 20:\r\n j = new ImageIcon(getClass().getResource(\"/\"+ Character.choosen_char + \"_3.png\"));\r\n img = j.getImage().getScaledInstance(200, 200, Image.SCALE_DEFAULT);\r\n\r\n break;\r\n case 35:\r\n j = new ImageIcon(getClass().getResource(\"/\" + Character.choosen_char + \"_4.png\"));\r\n img = j.getImage().getScaledInstance(200, 200, Image.SCALE_DEFAULT);\r\n\r\n break;\r\n case 45:\r\n j = new ImageIcon(getClass().getResource(\"/\" + Character.choosen_char + \"_5.png\"));\r\n img = j.getImage().getScaledInstance(200, 200, Image.SCALE_DEFAULT);\r\n\r\n break;\r\n case 55:\r\n j = new ImageIcon(getClass().getResource(\"/\" + Character.choosen_char + \"_6.png\"));\r\n img = j.getImage().getScaledInstance(200, 200, Image.SCALE_DEFAULT);\r\n\r\n break;\r\n case 65:\r\n // j= new ImageIcon(\"D:\\\\Netbeans\\\\Projects\\\\ProjectZ\\\\src\\\\shi_1.png\");\r\n // img = j.getImage().getScaledInstance(200, 200, Image.SCALE_DEFAULT);\r\n // \r\n gif = 0;\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n }", "public void act() \n {\n //plays animation with a delay between frames\n explosionSound.play();\n i = (i+1)%(frames.length); \n setImage(frames[i]);\n if(i == 0) getWorld().removeObject(this);\n }", "private void changeDelay() {\n delay = ((int) (Math.random() * 10000) + 1000) / MAX_FRAMES;\n }" ]
[ "0.7608462", "0.7103758", "0.6625172", "0.6588189", "0.6558712", "0.65328205", "0.6382354", "0.6339463", "0.6332944", "0.630374", "0.6300714", "0.6255513", "0.625149", "0.6249328", "0.6235751", "0.6222183", "0.62019116", "0.61956376", "0.619547", "0.61928916", "0.6192335", "0.6192335", "0.6185149", "0.6185149", "0.6169", "0.61656666", "0.6161006", "0.6155374", "0.6155374", "0.6135611", "0.61216587", "0.6112635", "0.61032665", "0.60682523", "0.6066712", "0.60562265", "0.60261256", "0.6022586", "0.6004749", "0.6004749", "0.6004749", "0.6004749", "0.5992206", "0.59770334", "0.5975949", "0.5975949", "0.5975949", "0.5973944", "0.5973944", "0.59549683", "0.59549683", "0.5954832", "0.5948641", "0.59367895", "0.59123", "0.59107006", "0.590614", "0.5895676", "0.5895676", "0.5889387", "0.58770347", "0.5866339", "0.5864983", "0.5861781", "0.58534104", "0.58507645", "0.58507645", "0.58507645", "0.58507645", "0.58452386", "0.58438504", "0.58398074", "0.5824637", "0.5824232", "0.58189917", "0.5793621", "0.57865506", "0.5783232", "0.5783232", "0.5772195", "0.576745", "0.5765004", "0.57594573", "0.5755732", "0.5754826", "0.5753748", "0.57500714", "0.57500714", "0.57451296", "0.573747", "0.57314396", "0.5724362", "0.5720335", "0.571387", "0.57083595", "0.5703742", "0.5703742", "0.5702606", "0.5700301", "0.5696716", "0.56892973" ]
0.0
-1
DO NOT MODIFY THIS
public Player(String name) { this.name = name; // Maxnum = 0; special = 0; index = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void interr() {\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\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private void m50366E() {\n }", "@Override\n protected void prot() {\n }", "public void mo38117a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public abstract void mo70713b();", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n public int describeContents() { return 0; }", "protected void mo6255a() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void method_4270() {}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "public void mo4359a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public abstract void mo56925d();", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void logic() {\n\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\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\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void init() {\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "public abstract void mo6549b();", "public abstract void mo27385c();", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n void init() {\n }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\n\tprotected void getData() {\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}" ]
[ "0.6356579", "0.62645423", "0.62139237", "0.619229", "0.61598027", "0.61233497", "0.6116932", "0.6092031", "0.60851425", "0.6047324", "0.6047324", "0.59899783", "0.59500545", "0.5928273", "0.59234875", "0.58702064", "0.58558726", "0.58550787", "0.5853466", "0.58395135", "0.58384705", "0.5813122", "0.5799232", "0.5767484", "0.57625633", "0.57488304", "0.5734935", "0.5731983", "0.57215536", "0.5721339", "0.57092404", "0.57034177", "0.57022315", "0.5690893", "0.5689097", "0.5661021", "0.5658098", "0.56578", "0.565765", "0.5650143", "0.56437856", "0.5642015", "0.5638614", "0.5637629", "0.5637629", "0.56305623", "0.56248206", "0.5621952", "0.5619819", "0.56157327", "0.559767", "0.559767", "0.559767", "0.559767", "0.559767", "0.559767", "0.559767", "0.5592282", "0.5582921", "0.5566618", "0.5566618", "0.5560368", "0.5556265", "0.5555347", "0.55550945", "0.5553747", "0.5553747", "0.555009", "0.55499524", "0.5548568", "0.5547378", "0.5543471", "0.5533726", "0.5533726", "0.5533726", "0.5533726", "0.5533726", "0.5516252", "0.5515185", "0.5506196", "0.55060524", "0.5492409", "0.54886824", "0.54886824", "0.54886824", "0.54886824", "0.54886824", "0.54886824", "0.5487163", "0.546396", "0.54584837", "0.5457461", "0.5455935", "0.5455494", "0.5452944", "0.5447584", "0.5447292", "0.54465276", "0.54465276", "0.54465276", "0.54423" ]
0.0
-1
DO NOT MODIFY THIS
public String getName() { return this.name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void interr() {\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\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private void m50366E() {\n }", "@Override\n protected void prot() {\n }", "public void mo38117a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public abstract void mo70713b();", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n public int describeContents() { return 0; }", "protected void mo6255a() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void method_4270() {}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "public void mo4359a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public abstract void mo56925d();", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void logic() {\n\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\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\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void init() {\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "public abstract void mo6549b();", "public abstract void mo27385c();", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n void init() {\n }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\n\tprotected void getData() {\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}" ]
[ "0.6356579", "0.62645423", "0.62139237", "0.619229", "0.61598027", "0.61233497", "0.6116932", "0.6092031", "0.60851425", "0.6047324", "0.6047324", "0.59899783", "0.59500545", "0.5928273", "0.59234875", "0.58702064", "0.58558726", "0.58550787", "0.5853466", "0.58395135", "0.58384705", "0.5813122", "0.5799232", "0.5767484", "0.57625633", "0.57488304", "0.5734935", "0.5731983", "0.57215536", "0.5721339", "0.57092404", "0.57034177", "0.57022315", "0.5690893", "0.5689097", "0.5661021", "0.5658098", "0.56578", "0.565765", "0.5650143", "0.56437856", "0.5642015", "0.5638614", "0.5637629", "0.5637629", "0.56305623", "0.56248206", "0.5621952", "0.5619819", "0.56157327", "0.559767", "0.559767", "0.559767", "0.559767", "0.559767", "0.559767", "0.559767", "0.5592282", "0.5582921", "0.5566618", "0.5566618", "0.5560368", "0.5556265", "0.5555347", "0.55550945", "0.5553747", "0.5553747", "0.555009", "0.55499524", "0.5548568", "0.5547378", "0.5543471", "0.5533726", "0.5533726", "0.5533726", "0.5533726", "0.5533726", "0.5516252", "0.5515185", "0.5506196", "0.55060524", "0.5492409", "0.54886824", "0.54886824", "0.54886824", "0.54886824", "0.54886824", "0.54886824", "0.5487163", "0.546396", "0.54584837", "0.5457461", "0.5455935", "0.5455494", "0.5452944", "0.5447584", "0.5447292", "0.54465276", "0.54465276", "0.54465276", "0.54423" ]
0.0
-1
DO NOT MODIFY THIS
public void setCards(Card[] cards) { this.cards = cards; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void interr() {\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\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private void m50366E() {\n }", "@Override\n protected void prot() {\n }", "public void mo38117a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public abstract void mo70713b();", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n public int describeContents() { return 0; }", "protected void mo6255a() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void method_4270() {}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "public void mo4359a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public abstract void mo56925d();", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void logic() {\n\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\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\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void init() {\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "public abstract void mo6549b();", "public abstract void mo27385c();", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n void init() {\n }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\n\tprotected void getData() {\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}" ]
[ "0.6356579", "0.62645423", "0.62139237", "0.619229", "0.61598027", "0.61233497", "0.6116932", "0.6092031", "0.60851425", "0.6047324", "0.6047324", "0.59899783", "0.59500545", "0.5928273", "0.59234875", "0.58702064", "0.58558726", "0.58550787", "0.5853466", "0.58395135", "0.58384705", "0.5813122", "0.5799232", "0.5767484", "0.57625633", "0.57488304", "0.5734935", "0.5731983", "0.57215536", "0.5721339", "0.57092404", "0.57034177", "0.57022315", "0.5690893", "0.5689097", "0.5661021", "0.5658098", "0.56578", "0.565765", "0.5650143", "0.56437856", "0.5642015", "0.5638614", "0.5637629", "0.5637629", "0.56305623", "0.56248206", "0.5621952", "0.5619819", "0.56157327", "0.559767", "0.559767", "0.559767", "0.559767", "0.559767", "0.559767", "0.559767", "0.5592282", "0.5582921", "0.5566618", "0.5566618", "0.5560368", "0.5556265", "0.5555347", "0.55550945", "0.5553747", "0.5553747", "0.555009", "0.55499524", "0.5548568", "0.5547378", "0.5543471", "0.5533726", "0.5533726", "0.5533726", "0.5533726", "0.5533726", "0.5516252", "0.5515185", "0.5506196", "0.55060524", "0.5492409", "0.54886824", "0.54886824", "0.54886824", "0.54886824", "0.54886824", "0.54886824", "0.5487163", "0.546396", "0.54584837", "0.5457461", "0.5455935", "0.5455494", "0.5452944", "0.5447584", "0.5447292", "0.54465276", "0.54465276", "0.54465276", "0.54423" ]
0.0
-1
int pairnum = 0;
public void Pairs() { int pairsize = 0; int ind1 = 0; for(int i = 0; i < 5; i++){ // while(cards[i].getNumber() != pairnum){ for(int j = i+1; j < 5; j++) { if(cards[i].getFace().equals(cards[j].getFace())) { ind1 = i; if(pairsize < 3){ pairsize += 1; // paircounts += 1; } if(cards[i].compareTo(cards[ind1]) > 0){ // Maxpair = cards[i].getNumber(); index = i; } } } // } } if(pairsize == 1) Judge = 2; if(pairsize == 2) Judge = 3; if(pairsize == 3) Judge = 6; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumPairs()\n\t{\n\t\treturn pairs.size();\n\t}", "private int pairValue() {\n int pValue = 0;\n \n for (int i = 0; i < combos.length; i++) {\n if (combos[i].length == 2 && combos[i][0].charAt(0) == combos[i][1].charAt(0)) {\n pValue += 2;\n }\n }\n \n return pValue;\n }", "@Test\r\n\tpublic void shouldReturn2PairsWhen000() {\n\t\tA = new ArrayList<Integer>(Arrays.asList(0, 0, 0));\r\n\t\tassertEquals(2, Coins.countPairs(A));\r\n\t}", "private int twoPairs() {\n\t\tint check = 0;\n\t\tint[] pairPos = new int[2];\n\t\tfor (int counter = POS_ONE; counter < Constants.HAND_SIZE; counter++) {\n\t\t\tif (hand[counter - 1].getValueIndex() == hand[counter].getValueIndex()) {\n\t\t\t\tpairPos[check] = counter;\n\t\t\t\tcheck++;\n\t\t\t}\n\t\t}\n\t\tif (check == 2) {\n\t\t\tresult.setPrimaryValuePos(hand[pairPos[1]].getValueIndex());\n\t\t\tresult.setSecondaryValuePos(hand[pairPos[0]].getValueIndex());\n\t\t\tList<Card> tertiaryValue = Arrays.stream(hand)\n\t\t\t\t\t.filter(card -> card.getValueIndex() != hand[pairPos[0]].getValueIndex())\n\t\t\t\t\t.filter(card -> card.getValueIndex() != hand[pairPos[1]].getValueIndex())\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t\tresult.setTertiaryValuePos(tertiaryValue.get(0).getValueIndex());\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "static int countFriendsPairings(int n) \n { \n int a = 1, b = 2, c = 0; \n if (n <= 2) { \n return n; \n } \n for (int i = 3; i <= n; i++) { \n c = b + (i - 1) * a; \n a = b; \n b = c; \n } \n return c; \n }", "int getPairedRoommate(int roommate){\n\r\n for(int j = 0; j < pairA.length; j++) {\r\n if (pairA[j][0] == roommate)//if roommate's pair is found, return the number of the roommate paired to them\r\n return pairA[j][1];\r\n else if (pairA[j][1] == roommate)//if roommate's pair is found, return the number of the roommate paired to them\r\n return pairA[j][0];\r\n }\r\n\r\n System.out.println(\"Unstable\");//if no pair is found for the given roommate, the system is unstable\r\n System.exit(1);\r\n return -1;\r\n }", "public long countFriendsPairings(int n) \n {\n if(n<3){\n return n;\n }\n else{\n long mod=(long)Math.pow(10,9)+7;\n long b=1;\n long a=2;\n long curr=0;\n for(int i=3;i<n+1;i++){\n curr=(a+(i-1)*b)%mod;\n b=a;\n a=curr;\n \n } \n \n \n \n return curr; } \n }", "int getXYPairCount();", "@Test\r\n\tpublic void shouldReturn2PairsWhen110100() {\n\t\tA = new ArrayList<Integer>(Arrays.asList(1, 1, 0, 1, 0, 0));\r\n\t\tassertEquals(2, Coins.countPairs(A));\r\n\t}", "@Test\r\n\tpublic void shouldReturn1PairsWhen11() {\n\t\tA = new ArrayList<Integer>(Arrays.asList(1, 1));\r\n\t\tassertEquals(1, Coins.countPairs(A));\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\tint arr[] = {5,7,2,4,1,9,3,6};\r\n\t\tint num = 9;\r\n\t\tint pairarr[][] = new int[arr.length][2];\r\n\t\tint x=0;\r\n\t\tfor(int i=0; i<arr.length; i++){\r\n\t\t\tif(arr[i]<num){\r\n\t\t\t\tfor(int j=i+1; j<arr.length; j++){\r\n\t\t\t\t\tif(arr[i]+arr[j] == num){\r\n\t\t\t\t\t\tSystem.out.println(\"The pair is : \" + arr[i] + \" and \" + arr[j]);\r\n\t\t\t\t\t\tpairarr[x][0] = arr[i];\r\n\t\t\t\t\t\tpairarr[x][1] = arr[j];\r\n\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0; i<x ; i++){\r\n\t\t\tfor(int j=0; j<2; j++){\r\n\t\t\t\tSystem.out.print(pairarr[i][j] + \", \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t}", "static int printpairs(int arr[],int k)\n {\n\t\tint count = 0; // Initialize count\n\t\tint size = arr.length;\n\t\t // Declares and initializes the whole array as false\n boolean[] binmap = new boolean[MAX];\n\n // Insert array elements to hashmap\n for(int i=0; i<size; i++)\n \t binmap[arr[i]] = true;\n \n for(int i=0; i<size; i++)\n {\n \t int temp = arr[i]- k;\n \t\n \t if (temp >= 0 && binmap[temp])\n \t {\n \t\t System.out.println(\"Pair with given diff \" + k + \" is (\" + arr[i] + \", \"+temp+\")\");\n \t\t count++;\n \t }\n \n \t temp = arr[i]+ k;\n if (temp < MAX && binmap[temp])\n {\n \t\t System.out.println(\"Pair with given diff \" + k + \" is (\" + arr[i] + \", \"+temp+\")\");\n \t\t count++;\n \t }\n binmap[temp] = false;\n }\n \n return count++;\n }", "public static long taskOfPairing(List<Long> freq) {\n // Write your code here\n long pairs = 0;\n boolean isOdd = false;\n boolean hasRemained = false;\n long curNum = 0;\n for (int weight = 1; weight <= freq.size(); weight++) {\n curNum = freq.get(weight - 1);\n pairs += (curNum / 2);\n if (curNum % 2 != 0) {\n if (hasRemained) {\n pairs++;\n hasRemained = false;\n } else {\n hasRemained = true;\n }\n isOdd = true;\n } else {\n if (!isOdd) {\n hasRemained = false;\n }\n isOdd = false;\n }\n\n }\n\n return pairs;\n\n }", "@Test\r\n\tpublic void shouldReturn0PairsWhen1() {\n\t\tA = new ArrayList<Integer>(Arrays.asList(1));\r\n\t\tassertEquals(0, Coins.countPairs(A));\r\n\t}", "@Override\n\tpublic int hashCode()\n\t{\n\t\treturn pairs.hashCode();\n\t}", "private int Pair(int i) {\r\n int count=0;\r\n for (int j = i+1; j < Card.length; j++) {\r\n if (Card[i].equals(Card[j])){\r\n System.out.println(\"Error Input, With Same Cards\");\r\n System.exit(0);\r\n }\r\n if (Card[i].substring(0,1).equals(Card[j].substring(0,1)) && !Card[i].substring(1,2).equals(Card[j].substring(1,2))){\r\n count++;\r\n }\r\n }\r\n return count;\r\n }", "@Test\r\n\tpublic void shouldReturn0PairsWhen10() {\n\t\tA = new ArrayList<Integer>(Arrays.asList(1, 0));\r\n\t\tassertEquals(0, Coins.countPairs(A));\r\n\t}", "public int numIdenticalPairs(int[] nums) {\n int count = 0;\n for (int i = 0; i < nums.length; i++) {\n for (int j = i + 1; j < nums.length; j++) {\n if (nums[i] == nums[j]) {\n count++;\n }\n }\n }\n return count;\n }", "public static void main(String[] args) {\n\t\tint i,j,z,sumA,sumB,sumPairs;\r\n\r\n\t\tsumPairs = 0;\r\n\r\n\t\tfor (i=1;i<10000;i++){\r\n\t\t sumA = 0;\r\n\t\t for (j=1;j<i;j++){\r\n\t\t if (i%j==0) \r\n\t\t sumA += j;\r\n\t\t }\r\n\r\n\t\t sumB = 0;\r\n\t\t for (z=1;z<sumA;z++){\r\n\t\t if (sumA%z==0)\r\n\t\t sumB += z;\r\n\t\t }\r\n\r\n\t\t if (sumB == i && sumB != sumA)\r\n\t\t sumPairs += i; \r\n\t\t}\r\nSystem.out.println(sumPairs);\r\n\t\t\r\n\t}", "protected boolean checkPair(ReturnValue returnValue) {\n\t\tboolean returnBool = false;\n\t\tint localCheck = 0;\n\t\tint localPoint = 0;\n\t\tint localDiceInt = 0;\n\t\tboolean localBool = false;\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tfor (int j = 0; j < 5; j++) {\n\t\t\t\tif (intList.get(i) == intList.get(j)) {\n\t\t\t\t\tlocalCheck++;\n\t\t\t\t\tif (localCheck == 2) {\n\t\t\t\t\t\tlocalBool = true;\n\t\t\t\t\t\tif (localPoint < intList.get(i) * 2) {\n\t\t\t\t\t\t\tlocalPoint = intList.get(i) * 2;\n\t\t\t\t\t\t\tlocalDiceInt = intList.get(i);\n\t\t\t\t\t\t\treturnValue.setTheDiceInt(localDiceInt);\n\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\tlocalCheck = 0;\n\t\t}\n\t\treturnValue.setValue(localBool, localPoint, Box.ONE__PAIR);\n\t\treturnValue.setTheDiceInt(localDiceInt);\n\t\treturnBool = true;\n\t\treturn returnBool;\n\t}", "public static void main(String[] args) {\n // int[] a = {1, 2, 1, 4, 5, 4, 4};\n int[] a = {1,2,1,2,1,2,1};\n System.out.println(pairs(a));\n }", "@Override\r\n\t\tpublic int hashCode() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.hashCode();\r\n\t\t\t}\r\n\t\t}", "private static void numberOfInOrderPairs(int[] arr, int first_index, int pairs) {\n if (first_index+1 != arr.length) {\n if (arr[first_index] < arr[first_index+1]) {\n pairs++;\n }\n numberOfInOrderPairs(arr, first_index+1, pairs);\n } else \n System.out.println(\"The number of pairs is : \" + pairs);\n }", "public void search() {\n while (!done) {\n num2 = mNums.get(cntr);\n num1 = mSum - num2;\n\n if (mKeys.contains(num1)) {\n System.out.printf(\"We found our pair!...%d and %d\\n\\n\",num1,num2);\n done = true;\n } //end if\n\n mKeys.add(num2);\n cntr++;\n\n if (cntr > mNums.size()) {\n System.out.println(\"Unable to find a matching pair of Integers. Sorry :(\\n\");\n done = true;\n }\n } //end while\n }", "private void generatePointPairs() {\n\t\tfinal int mod = SIZE_OF_ORIGINAL_LIST * 8; \n\t\t\n\t\tif(DEBUG) System.out.println(\"----- Generating Point Pairs...\");\n\n\t\tint counter = 0;\n\t\tint j = 0;\n\t\t\n\t\tfor(int i = 0; i < myPoints.length; i++) {\n\t\t\t//while(j++ < myPoints.length) {\n\t\t\tfor( ; j < myPoints.length; j++) {\n\t\t\t\t// i and j are the same point, so ignore that pair.\n\t\t\t\tif(i != j) {\n\t\t\t\t\tmyPairs.add(new PointPair(myPoints[i], myPoints[j]));\n\t\t\t\t\tif(DEBUG && ++counter % mod == 0) System.out.print(\"pair \");\n\t\t\t\t}\n\t\t\t\t// Not yet colinear, just a unique pair to use later.\n\t\t\t}\n\n\t\t}\n\t\tif(DEBUG) System.out.println(\"\\n----- ----- \" + counter + \" pairs found.\\n\");\n\t}", "private void checkPair(Player player) {\n\t\tfor (int j = 6; j > 0; j--) {\n\t\t\tif (player.getSevenCardsTempHand().get(j).getRank()\n\t\t\t\t\t.equals(player.getSevenCardsTempHand().get(j - 1).getRank())) {\n\t\t\t\tplayer.setPair(true);\n\t\t\t\tplayer.setHandRank(HandRank.PAIR);\n\n\t\t\t\t// add the pair to the 5 cards hand\n\t\t\t\thand[0] = player.getSevenCardsTempHand().get(j);\n\t\t\t\thand[1] = player.getSevenCardsTempHand().get(j - 1);\n\t\t\t\tplayer.getSevenCardsTempHand().remove(j);\n\t\t\t\tplayer.getSevenCardsTempHand().remove(j - 1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n System.out.println(countPairs(\"aba\"));\n }", "public EliminationAnswer() {\n pairs = new Vector<>();\n }", "public boolean isPair() {\r\n\r\n return getHighestConsecutive() == 2;\r\n }", "private static int findPair(boolean[][] isFriends, boolean[] alreadyPaired, int numStudents) {\n int target = -1;\n for (int i = 0; i < numStudents; i++) {\n if (!alreadyPaired[i]) {\n target = i;\n break;\n }\n }\n \n if (target == -1)\n return 1;\n \n int count = 0;\n \n for (int i = target + 1; i < numStudents; i++) {\n if (!alreadyPaired[i] && isFriends[target][i]) {\n alreadyPaired[i] = true;\n alreadyPaired[target] = true;\n count += findPair(isFriends, alreadyPaired, numStudents);\n alreadyPaired[i] = false;\n alreadyPaired[target] = false;\n \n }\n }\n return count;\n }", "private static void printPairs(int[] a, int sum) {\n\t\tfor(int i=0;i<a.length;i++) {\n\t\t//for (int j = 0; j < n; j++) {/Is the reverse of pair is acceptable\n\t\t\tfor(int j=i+1;j<a.length;j++) {\n\t\t\t\tif(a[i]+a[j]==sum) {\n\t\t\t\t\tSystem.out.println(\"(\"+a[i]+\"+\"+a[j]+\") = \"+sum);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static void pairSum(int[] input, int x){\n \tint n = input.length;\n\t\tint a, b;\n\t\tfor (int i = 0; i < n - 1; i++) { \n\t\t\tfor (int j = i + 1; j < n; j++) { \n\t\t\t\tif (input[i] + input[j] == x) {\n\t\t\t\t\tif(input[j] < input[i]) {\n\t\t\t\t\t\ta = input[j];\n\t\t\t\t\t\tb = input[i];\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\ta = input[i];\n\t\t\t\t\t\tb = input[j];\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(a + \" \" + b); \n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t\t\n\t}", "void onPairingComplete(int errorCode);", "public static void main(String[] args) {\n ListNode n1 = new ListNode(1);\n ListNode n2 = new ListNode(2);\n ListNode n3 = new ListNode(3);\n ListNode n4 = new ListNode(4);\n n1.next=n2;\n n2.next=n3;\n n3.next=n4;\n SwapPairs24 a = new SwapPairs24();\n a.print(a.swapPairs(n1));\n }", "Project1() {//constructor\r\n\r\n Scanner scanner = null;//creates instance of Scanner\r\n\r\n try {//attempts to open input file, if it fails, exit the program\r\n scanner = new Scanner(new File(\"input.txt\"));\r\n } catch (FileNotFoundException e) {\r\n System.exit(1);\r\n }\r\n\r\n int pairCount = scanner.nextInt();//reads in the amount of pairs\r\n preferenceA = new int[pairCount * 2][pairCount * 2 - 1];//resizes pref array based off of pairCount\r\n pairA = new int[pairCount][2];//resizes pairA based on pairCount\r\n\r\n for (int i = 0; i < preferenceA.length; i++)//uses scanner to add values preferenceA\r\n for (int j = 0; j < preferenceA[i].length; j++)\r\n if (scanner.hasNextInt())//exits if input file has run out of values\r\n preferenceA[i][j] = scanner.nextInt();\r\n else\r\n System.exit(1);\r\n\r\n for (int i = 0; i < pairA.length; i++)//uses scanner to add values pairA\r\n for (int j = 0; j < pairA[i].length; j++)\r\n if (scanner.hasNextInt())//exits if input file has run out of values\r\n pairA[i][j] = scanner.nextInt();\r\n else\r\n System.exit(1);\r\n }", "public DListNode2 correspondingPair(){\r\n return this.correspondingPair;\r\n }", "public static int numberOfPairs(int[] a, long k) {\n\t\t\n\t\tArrayList<Integer> list = new ArrayList<>();\n\t\t\n\t\tfor(int x : a) {\n\t\t\tlist.add(x);\n\t\t}\n\n\t\tArrayList<String> distinct = new ArrayList<>();\n\t\t\n\t\tfor(Integer curr : list) {\n\t\t\t\n\t\t\tint indexCurr = list.indexOf(curr);\n\t\t\t\n\t\t\tint anotherOne = (int) (k - curr);\n\t\t\t\n\t\t\tlist.set(indexCurr, curr*(-1));\n\t\t\t\n\t\t\tif(list.contains(anotherOne)) {\n\t\t\t\t\n\t\t\t\tint indexAnotherOne = list.indexOf(anotherOne);\n\t\t\t\t\n\t\t\t\tif(indexAnotherOne!=indexCurr) {\n\t\t\t\t\tString Way1 = curr+\"\"+anotherOne;\n\t\t\t\t\tString Way2 = anotherOne+\"\"+curr;\n\t\t\t\t\tif(!distinct.contains(Way1) && !distinct.contains(Way2)) {\n\t\t\t\t\t\tdistinct.add(Way1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tlist.set(indexCurr, curr);\n\t\t\n\t\t}\n\t\t\n\t\treturn distinct.size();\n\t\t\n }", "public boolean isPair() {\n \t\n return (rankSet().size() ==4);\n }", "public boolean pairTest()\n\t{\n\t\tboolean pair = false;\n\t\tint index = 0;\n\t\t\n\t\twhile (index<(hand.length-1) && (!pair))\n\t\t{\n\t\t\tif (intRep[index] == intRep[index+1])\n\t\t\t{\n\t\t\t\tpair = true;\n\t\t\t\thandScore = 10000;\n\t\t\t\thandScore += 2 * (100 * intRep[index]);\n\t\t\t}\n\t\t\telse index++;\n\t\t}\n\t\t\n\t\t// If there's a pair, resolve kickers\n\t\tif (pair)\n\t\t{\n\t\t\tswitch (index)\n\t\t\t{\n\t\t\t\tcase 0:\t\t// Pair includes first two cards\n\t\t\t\t\tif (!twoPairTest(index)) {\n\t\t\t\t\t\tfor (int i=2; i<MAX_CARDS; i++)\n\t\t\t\t\t\t\thandScore += intRep[i]; }\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 1:\t\t// Pair excludes first card, includes 2nd-3rd\n\t\t\t\t\tif (!twoPairTest(index)) {\n\t\t\t\t\t\thandScore += intRep[0];\n\t\t\t\t\t\thandScore += (intRep[3] + intRep[4]); }\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 2:\t\t// Pair excludes first two, includes 3-4\n\t\t\t\t\tif (!twoPairTest(index)) {\n\t\t\t\t\t\thandScore += (intRep[0] + intRep[1]);\n\t\t\t\t\t\thandScore += intRep[4]; }\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\t// Anything else where the kickers are higher than pair\n\t\t\t\t\tif (!twoPairTest(index))\n\t\t\t\t\t\thandScore += (intRep[0] + intRep[1] + intRep[2]);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn pair;\n\t}", "boolean isTwoPair();", "private static int findPairs(int[] nums, int k) {\n if(nums == null || nums.length == 0 || k < 0)\n return 0;\n\n int count = 0;\n Map<Integer, Integer> map = new HashMap<>();\n for(int i : nums)\n map.put(i, map.getOrDefault(i, 0) + 1);\n\n for(Map.Entry<Integer, Integer> entry : map.entrySet()) {\n if(k == 0) {\n if(entry.getValue() >= 2)\n count++;\n } else {\n if(map.containsKey(entry.getKey() + k))\n count++;\n }\n }\n return count;\n }", "public static void main(String[] args) {\n int[] a={11, 15, 6, 8, 9, 10,4};\n int sum =2;\n //SORTING AND FIND PAIRS\n /*Arrays.sort(a);\n \n int i=0,j=a.length-1;\n while(i<j)\n {\n\t if(a[i]+a[j]==sum)\n\t {\n\t\t System.out.println(\"pair is+\"+a[i]+\" \"+a[j]);\n\t\t i++;j++;\n\t\t }\n\t else if(a[i]+a[j]<sum)\n\t {\n\t\t i++;\n\t }\n\t else if(a[i]+a[j]>sum)\n\t {\n\t\t j--;\n\t }\n }*/\n //Arrays.sort(a);\n LinkedHashSet<Integer> m = new LinkedHashSet<Integer>();\n int temp;\n for(int i=0;i<a.length;i++)\n {\n\t temp=sum+a[i];\n\t if(m.contains(temp))\n\t {\n\t\t System.out.println(\"par is:\"+a[i]+\" \"+temp);\n\t }\n\t else\n\t\t m.add(a[i]);\n }\n\n\t}", "private HandRankingValue checkAbovePair() {\n HandRankingValue aboveTrips = checkAboveTrips();\n if(aboveTrips != null)\n return aboveTrips;\n else {\n if(validTwoPair())\n return HandRankingValue.TWOPAIR;\n makePair();\n return HandRankingValue.PAIR;\n }\n }", "Pair<Integer, Integer> getInitialPosition();", "public Pair(int row, int col)\n {\n this.row = row;\n this.col = col;\n }", "public static int findPairs(int[] nums, int k) {\n \tif(k<0){\n \t\treturn 0;\n \t}\n \t\n int re=0;\n Map<Integer, Integer> map=new HashMap<Integer, Integer>();\n for(int num: nums){\n \tif(map.containsKey(num)){\n \t\tif(k==0&&map.get(num)==1){\n \t\t\tre++;\n \t\t\tmap.put(num, 0);\n \t\t}\n \t\tcontinue;\n \t}\n \tif(map.containsKey(num+k)){\n \t\tre++;\n \t}\n \tif(map.containsKey(num-k)){\n \t\tre++;\n \t}\n \tmap.put(num, 1);\n }\n return re;\n }", "static\nint\ncountPairs(String str) \n\n{ \n\nint\nresult = \n0\n; \n\nint\nn = str.length(); \n\n\nfor\n(\nint\ni = \n0\n; i < n; i++) \n\n\n// This loop runs at most 26 times \n\nfor\n(\nint\nj = \n1\n; (i + j) < n && j <= MAX_CHAR; j++) \n\nif\n((Math.abs(str.charAt(i + j) - str.charAt(i)) == j)) \n\nresult++; \n\n\nreturn\nresult; \n\n}", "public Pair() {\r\n\t}", "boolean isOnePair();", "public int get_num_p(){ return num_p; }", "public void qtadeDeNumeros(){\n for(int i = 0; i < 9; i++){\n qtadePorNum.add(i, new Pair(i+1, numeroDeElementos(i+1)));\n }\n }", "static int doCountPairSocks(int n, int[] ar) {\n\t\tSet<Integer> socks = new HashSet<Integer>();\n\t\tint pairs=0;\n\t\tfor(int i=0;i<ar.length;i++){\n\t\t\tif(!socks.contains(ar[i])){\n\t\t\t\tsocks.add(ar[i]);\n\t\t\t}else{\n\t\t\t\tpairs++;\n\t\t\t\tsocks.remove(ar[i]);\n\t\t\t}\n\t\t}\n\t\treturn pairs;\n\t}", "public static long pair(long a, long b) {\n if (a > -1 || b > -1) {\n //Creating an array of the two inputs for comparison later\n long[] input = {a, b};\n\n //Using Cantors paring function to generate unique number\n long result = (long) (0.5 * (a + b) * (a + b + 1) + b);\n\n /*Calling depair function of the result which allows us to compare\n the results of the depair function with the two inputs of the pair\n function*/\n if (Arrays.equals(depair(result), input)) {\n return result; //Return the result\n } else {\n return -1; //Otherwise return rouge value\n }\n } else {\n return -1; //Otherwise return rouge value\n }\n }", "public int findPairs(int[] nums, int k) {\n if (k < 0) {\n return 0;\n }\n Set<Integer> unique = new HashSet<>();\n Set<Integer> duplicate = new HashSet<>();\n for (int n : nums) {\n if (!unique.add(n)) {\n duplicate.add(n);\n }\n }\n if (k == 0) {\n return duplicate.size();\n }\n int count = 0;\n for (int v : unique) {\n if (unique.contains(v + k)) {\n count += 1;\n }\n }\n return count;\n }", "public Pair findNumbers_sorting(int[] input) {\r\n\t\tPair p = new Pair();\r\n\t\tArrays.sort(input); // O(n log n)\r\n\t\tfor (int i = 0; i < input.length - 1; i++) {\r\n\t\t\tif (input[i] == input[i + 1])\r\n\t\t\t\tp.repeating = input[i];\r\n\t\t\tif (input[i] != i + 1)\r\n\t\t\t\tp.missing = i + 1;\r\n\t\t}\r\n\t\treturn p;\r\n\t}", "public Integer getClusterNum(Integer key)\n{\n return NPchains.get(key);\n}", "protected Pair() {\n\t\t\n\t\tsuper(2);\n\t}", "Iterator<Map.Entry<String, Integer>> getNextPair(){\r\n return entrySet.iterator();\r\n }", "public void calculateKeypair() {\n\n BigInteger nTotient = p.subtract(BigInteger.ONE).multiply(q.subtract(BigInteger.ONE));\n\n ExtendedEuclideanAlgorithm eea = new ExtendedEuclideanAlgorithm();\n d = eea.calculateEea(nTotient, e);\n\n while(d.signum() == -1) d = d.add(nTotient);\n\n sbPrivate.append(\"(\");\n sbPrivate.append(n.toString());\n sbPrivate.append(\",\");\n sbPrivate.append(d.toString());\n sbPrivate.append(\")\");\n\n sbPublic.append(\"(\");\n sbPublic.append(n.toString());\n sbPublic.append(\",\");\n sbPublic.append(e.toString());\n sbPublic.append(\")\");\n\n }", "public int getNumberOfpairs(int[] returnArray, int k) {\n\t\tint[] temp = new int[returnArray.length];\r\n\t\ttemp = mergeSort(returnArray, temp, 0, returnArray.length - 1);\r\n\t\tint p1 = 0;\r\n\t\tint p2 = temp.length - 1;\r\n\t\tint cnt = 0;\r\n\t\twhile(p1<p2){\r\n\t\t\tint sum = temp[p1] + temp[p2];\r\n\t\t\tif (sum == k) {\r\n\t\t\t\tcnt++;\r\n\t\t\t\tp1++;\r\n\t\t\t\tp2--;\r\n\t\t\t} else if (sum < k)\r\n\t\t\t\tp1++;\r\n\t\t\telse\r\n\t\t\t\tp2--;\r\n\t\t}\r\n\t\tSystem.out.print(cnt + \" \");\r\n\t\tSystem.out.println();\r\n\t\treturn cnt;\r\n\t}", "public long reversePairs(int[] A) {\n // write your code here\n if(A == null || A.length < 2){\n return 0;\n }\n long p = 0L;\n\n for(int i = 0; i < A.length; i++){\n for(int j = i+1; j < A.length; j++){\n if(A[i] > A[j]){\n p++;\n }\n }\n }\n return p;\n }", "int findPair(String a, String b)\r\n\t{\r\n\t\tfor (int i = 0; i < connectlist.size()/2; i++) \r\n\t\t{\r\n\t\t\tif (connectlist.get(i*2).compareToIgnoreCase(a)== 0)\r\n\t\t\t{\r\n\t\t\t\tif (connectlist.get(i*2+1).compareToIgnoreCase(b) == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\treturn i*2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (connectlist.get(i*2).compareToIgnoreCase(b)== 0)\r\n\t\t\t{\r\n\t\t\t\tif (connectlist.get(i*2+1).compareToIgnoreCase(a) == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\treturn i*2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tTreeSet<Integer> treeset = new TreeSet<Integer>();\n\t\ttreeset.add(1);\n\t\tint a=0,b=0;\n\t\tint number = sc.nextInt();\n\t\tint pairnumber = sc.nextInt();\n\t\tArrayList<matching> arraylist = new ArrayList<matching>();\n\t\t//연결 정보를 arraylist에 저장\n\t\tfor(int i =0;i<pairnumber;i++) {\n\t\t\ta=sc.nextInt();\n\t\t\tb=sc.nextInt();\n\t\t\tarraylist.add(new matching(a,b));\n\t\t}\n\n\t\tIterator<matching> itr = arraylist.iterator();\n\t\t//연결된 컴퓨터를 set에 넣는다.\n\t\tfor(int i =0;i<pairnumber;i++)\n\t\t{\n\t\t\titr = arraylist.iterator();\n\t\t\twhile(itr.hasNext()) {\n\t\t\t\tmatching temp2 = itr.next();\n\t\t\t\t//System.out.println(temp2.getnum1());\n\t\t\t\tif(treeset.contains(temp2.getnum1())|| treeset.contains(temp2.getnum2())) {\n\t\t\t\t\ttreeset.add(temp2.getnum2());\n\t\t\t\t\ttreeset.add(temp2.getnum1());\n\t\t\t\t\titr.remove();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(treeset.size()-1);\n\t}", "Pair<Double, Integer> bid();", "public static void main(String[] args) {\n Pair p1 = new Pair(2,3);\n Pair p5 = new Pair();\n System.out.println(\"The Value of p5 = \" + p5);\n p5.first(7);\n p5.second(9);\n System.out.println(\"The Value of p5 = \" + p5);\n System.out.println(p1.first());\n System.out.println(p1.second());\n Pair p2 = new Pair(5,4);\n Pair p3 = new Pair(2,3);\n String str = new String(\"randi\");\n System.out.println(p1.equals(str));\n System.out.println(p1.equals(p3));\n System.out.println(p1);\n System.out.println(p2);\n System.out.println(p3);\n\n }", "public Pair(int first, int second) {\n this.first = first;\n this.second = second;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic void colleceRelatedPairs() {\n\t\trelatedPairs = new HashSet[words.size()];\n\t\tfor(int i = 0; i < relatedPairs.length; i++){\n\t\t\tSet<Integer> related = new HashSet<Integer>();\n\t\t\trelatedPairs[i] = related;\n\t\t}\n\t\t\n\t\tlong uniquePairs = 0;\n\t\tfor(int i = 0; i < words.size(); i++){\n\t\t\tif(goodWords.get(i)){\n\t\t\t\tString word1 = words.get(i);\n\t\t\t\tfor(int j = i+1; j < words.size(); j++){\n\t\t\t\t\tif(goodWords.get(j)){\n\t\t\t\t\t\tString word2 = words.get(j);\n\t\t\t\t\t\t\n\t\t\t\t\t\tuniquePairs++;\n\t\t\t\t\t\tint similarity = binDst.getSimilarity(word1, word2);\n\t\t\t\t\t\tif(similarity == 1){\n\t\t\t\t\t\t\t//System.out.println(word1 + \"\\t\" + word2);\n\t\t\t\t\t\t\taddPair(i, j);\n\t\t\t\t\t\t\taddPair(j, i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(i % 1000 == 0){\n\t\t\t\tLOGGER.info(\"Pairs: \" + i);\n\t\t\t}\n\t\t}\n\t\tLOGGER.info(\"Unique Pairs: \" + uniquePairs);\n\t}", "public void compressPairsGreedy(final List<GPairRecord<S, S>> pairApperances, final List<GPairRecord<S, S>> crossingPairs, final int largestTerminal) {\n\n BitSet bitSet = new BitSet(largestTerminal);\n BitSet leftSigma = new BitSet(largestTerminal);\n BitSet rightSigma = new BitSet(largestTerminal);\n\n List<List<Pair<S, Long>>> right = new ArrayList<>(largestTerminal);\n List<List<Pair<S, Long>>> left = new ArrayList<>(largestTerminal);\n\n // initial tables left and right\n for(int i = 0; i < largestTerminal; i++) {\n right.add(new ArrayList<Pair<S, Long>>());\n left.add(new ArrayList<Pair<S, Long>>());\n }\n\n // fill tables with k_{ab} and k_{ba}\n for(GPairRecord<S, S> record : pairApperances) {\n right.get(record.pair.a.getId()).add(new Pair<S, Long>(record.pair.b, record.getAppearences()));\n left.get(record.pair.b.getId()).add(new Pair<S, Long>(record.pair.a, record.getAppearences()));\n }\n\n for(GPairRecord<S, S> record : crossingPairs) {\n bitSet.set(record.pair.a.getId());\n bitSet.set(record.pair.b.getId());\n }\n\n int[] countR = new int[largestTerminal];\n int[] countL = new int[largestTerminal];\n\n for(int a = 0; a < bitSet.size(); a++) {\n if(bitSet.get(a)) {\n int[] count = null;\n if(countR[a] >= countL[a]) {\n leftSigma.set(a);\n count = countL;\n }\n else {\n rightSigma.set(a);\n count = countR;\n }\n\n Iterator<Pair<S, Long>> rightIterator = right.get(a).iterator();\n while (rightIterator.hasNext()) {\n Pair<S, Long> entry = rightIterator.next();\n count[entry.a.getId()] += entry.b;\n rightIterator.remove();\n }\n\n Iterator<Pair<S, Long>> leftIterator = left.get(a).iterator();\n while (leftIterator.hasNext()) {\n Pair<S, Long> entry = leftIterator.next();\n count[entry.a.getId()] += entry.b;\n leftIterator.remove();\n }\n }\n }\n\n long sumL = 0;\n long sumR = 0;\n\n // Sum up appearances: O(|G|)\n for(GPairRecord<S, S> record : pairApperances) {\n Pair<S,S> pair = record.pair;\n if(leftSigma.get(pair.a.getId()) && rightSigma.get(pair.b.getId())) {\n sumL += record.getAppearences();\n }\n\n if(rightSigma.get(pair.a.getId()) && leftSigma.get(pair.b.getId())) {\n sumR += record.getAppearences();\n }\n }\n\n // swap\n if(sumL < sumR) {\n BitSet tmp = rightSigma;\n rightSigma = leftSigma;\n leftSigma = tmp;\n }\n\n Iterator<GPairRecord<S, S>> pairRecordIterator = crossingPairs.iterator();\n while (pairRecordIterator.hasNext()) {\n Pair<S, S> pair = pairRecordIterator.next().pair;\n if(!leftSigma.get(pair.a.getId()) || !rightSigma.get(pair.b.getId())) {\n pairRecordIterator.remove();\n }\n }\n final BitSet fixedRightSigma = rightSigma;\n final BitSet fixedLeftSigma = leftSigma;\n\n // remove pairs we don't wanna compress: O(|G|)\n final List<GPairRecord<S,S>> uncrossedPairs = crossingPairs.stream()\n .filter(rec -> !rec.isCrossingPair())\n .filter(rec -> wordProperties.isPairAt(rec.node, rec.pair))\n .filter(rec -> fixedLeftSigma.get(rec.pair.a.getId()) && fixedRightSigma.get(rec.pair.b.getId()))\n .collect(Collectors.toList());\n\n // gather the uncrossed ones: O(|G|)\n if(!uncrossedPairs.isEmpty()) {\n final List<GPairRecord<S,S>> trash = new LinkedList<>();\n final Function<Pair<S, S>, Consumer<GPairRecord<S, S>>> consumerFunction = p ->\n {\n if(fixedLeftSigma.get(p.a.getId()) && fixedRightSigma.get(p.b.getId())) {\n return uncrossedPairs::add;\n }\n else {\n return trash::add;\n }\n };\n\n BiFunction<S, Integer, Boolean> doGreedyLeftPop = (nonTerminal, j) -> doLeftPop(nonTerminal, head -> head.isTerminal() && fixedRightSigma.get(head.getId()));\n\n BiFunction<S, Integer, Boolean> doGreedyRightPop = (nonTerminal, j) -> doRightPop(nonTerminal, tail -> tail.isTerminal() && fixedLeftSigma.get(tail.getId()));\n\n //pop: O(n+m)\n pop(phase, nonTerminal -> doGreedyLeftPop.apply(nonTerminal, 0), nonTerminal -> doGreedyRightPop.apply(nonTerminal, 0), consumerFunction);\n\n // O(|G|)\n sortPairs(uncrossedPairs);\n\n // O(|G|)\n compressUncrossedPairs(uncrossedPairs);\n }\n }", "public boolean isTwoPair() {\n int numbersSame = 0;\n int pairs = 0;\n for (int i = 0; i < dice.length && numbersSame < 3; i++) {\n numbersSame = 0;\n for (int x = 0; x < dice.length; x++) {\n if (dice[i].getFaceValue() == dice[x].getFaceValue()) {\n numbersSame++;\n }\n }\n if (numbersSame == 2) {\n pairs++;\n }\n }\n return (pairs == 4);\n }", "int columnPairsSize();", "public coOrdPair(int x, int y)\n {\n this.x = x;\n this.y = y;\n }", "public Pair() {\n // nothing to do here\n }", "private static void findPairSum(int[] pairSumArray, int k) {\n\t\tint count = 0;\r\n\t\tint pair = 0;\r\n\t\tfor (int i = 0; i < pairSumArray.length; i++) {\r\n\t\t\tfor (int j = pairSumArray.length - 1; j > i; j--) {\r\n\t\t\t\tpair = pairSumArray[j] + pairSumArray[i];\r\n\t\t\t\tif (pair == k) {\r\n\t\t\t\t\tSystem.out.println(\" ( \" + pairSumArray[j] + \"+\"\r\n\t\t\t\t\t\t\t+ pairSumArray[i] + \" ) \" + pair);\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"count of pairs : \" + count);\r\n\t}", "protected double[] getPairCounts(Hashtable<Integer, Double> words) {\n\t\tdouble positiveCount = 0;\n\t\tdouble negativeCount = 0;\n\t\tfor(int word1 : words.keySet()){\n\t\t\tfor(int word2 : words.keySet()){\n\t\t\t\tif(word1 != word2){\n\t\t\t\t\tif(relatedPairs[word1].contains(word2)){\n\t\t\t\t\t\tpositiveCount+= words.get(word1) * words.get(word2); //pairs with feature same SG\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tnegativeCount+= words.get(word1) * words.get(word2); // pairs with feature different SG\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn new double[]{positiveCount, negativeCount};//return both\n\t}", "private boolean twoPairTest(int index)\n\t{\n\t\tboolean twopair = false;\n\t\tint last = index;\n\t\tindex += 2;\n\t\t\n\t\twhile (index<(hand.length-1) && (!twopair))\n\t\t{\n\t\t\tif (intRep[index] == intRep[index+1])\n\t\t\t{\n\t\t\t\ttwopair = true;\n\t\t\t\thandScore += 10000;\n\t\t\t\thandScore += 2 * (100 * intRep[index]);\n\t\t\t}\n\t\t\telse index++;\n\t\t}\n\t\t\n\t\t// resolve kickers\n\t\tif (twopair)\n\t\t{\n\t\t\tif (index==2) handScore += intRep[4];\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (last==0) handScore += intRep[2];\n\t\t\t\telse handScore += intRep[0];\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn twopair;\n\t}", "public Pair findNumbers(int input[]) {\r\n\t\tPair p = new Pair();\r\n\t\tfor (int i = 0; i < input.length; i++) {\r\n\t\t\tif (input[Math.abs(input[i]) - 1] < 0) {\r\n\t\t\t\tp.repeating = Math.abs(input[i]);\r\n\t\t\t} else {\r\n\t\t\t\tinput[Math.abs(input[i]) - 1] = -input[Math.abs(input[i]) - 1];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < input.length; i++) {\r\n\t\t\tif (input[i] < 0) {\r\n\t\t\t\tinput[i] = -input[i];\r\n\t\t\t} else {\r\n\t\t\t\tp.missing = i + 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn p;\r\n\t}", "public static String noPairFound() {\n return \"No pair found, try again.\";\n }", "public static int getMaximum(int digit,int pair){\n \t Scanner sc = new Scanner(System.in);\n \t int[] input = new int[n];\n \t for(int i = 0; i < digit; i++) \n\t {\n input[i]=sc.nextInt();\n\t }\n if(pair == 1)\n\t {\n Arrays.sort(input);\n \treturn input[0];\n }\n\t else if(pair == 2) \n\t {\n \treturn (Math.max(input[0],input[digit-1]);\n\t } \n\t else \n\t {\n \tArrays.sort(input);\n return input[digit-1];\n\t }\n }", "public String getType() {return \"Pair\";}", "public int reversePairs1(int[] nums) {\n int res = 0;\n List<Integer> sorted = new ArrayList<>();\n for (int num : nums) {\n res += sorted.size() - find(sorted, (long)num * 2 + 1);\n sorted.add(find(sorted, num), num);\n }\n return res;\n }", "Pair<Integer, Integer> getPosition();", "private int pairContains(HashMap<Integer,HashSet<Integer>> pairs, int k1, int k2){\n\t\t\n\t\t\n\t\t\tif(pairs.containsKey(k1))\n\t\t\t\tif(pairs.get(k1).contains(k2))\n\t\t\t\t\treturn 2;\n\t\t\t\telse\n\t\t\t\t\treturn 1;\n\t\t\n\t\treturn 0;\n\t}", "public int getTwoHeads() \n {\n return numTwoHeads; \n }", "public int findPairsTwoPointers(int[] nums, int k) {\n if (k < 0) {\n return 0;\n }\n Arrays.sort(nums); // O(N*logN)\n\n int i = 0;\n int j = 1;\n int count = 0;\n while (j < nums.length) { // O(N)\n if (i == j || nums[j] - nums[i] < k) {\n j++;\n } else if (nums[j] - nums[i] > k) {\n i++;\n } else {\n count += 1;\n j++;\n while (j < nums.length && nums[j] == nums[j - 1]) {\n j++;\n }\n }\n }\n return count;\n }", "public static void main(final String[] args) {\n Scanner scan = new Scanner(System.in);\n int num = scan.nextInt();\n int pairs = scan.nextInt();\n final int n = 600;\n MinPQ<Taxicab> min = new MinPQ<Taxicab>();\n for (int i = 0; i <= n; i++) {\n min.insert(new Taxicab(i, i));\n }\n int c = 0;\n int tem = 1;\n while (!min.isEmpty()) {\n Taxicab current = min.delMin();\n if (tem == current.getSum()) {\n c++;\n } else {\n c = 0;\n }\n if (c == pairs - 1) {\n num--;\n if (num == 0) {\n System.out.println(current.getSum());\n break;\n }\n }\n tem = current.getSum();\n if (current.getnum2() < n) {\n min.insert(new Taxicab(\n current.getnum1(), current.getnum2() + 1));\n }\n }\n }", "public boolean isTwoPair(){\r\n int temp[] = getIntArr();\r\n\r\n if(temp[0] == temp[1] && temp[2] == temp[3])\r\n return true;\r\n\r\n else if(temp[0] == temp[1] && temp[3] == temp[4])\r\n return true;\r\n\r\n else if(temp[1] == temp[2] && temp[3] == temp[4])\r\n return true;\r\n\r\n else return false;\r\n }", "public static void fourSum(int[] data){\n HashMap<Integer,Pair> set = new HashMap<>();//integer = sum, pair are the nums\n for(int i = 0; i < data.length; i++)\n for(int j = i+1; j < data.length; j++) {\n Pair check = set.get(i+j);\n if(check != null) {\n System.out.println(\"fauifa\");\n return;\n }\n set.put(check.a()+check.b(), check);\n }\n System.out.println(\"None found.\");\n }", "int numberOfCandidates();", "int countPairs(int[] X, int[] Y, int m, int n){\n int out = 0;\n\n // System.out.println(Arrays.toString(X));\n // System.out.println(Arrays.toString(Y));\n // System.out.println(m);\n // System.out.println(n);\n\n\n \n\n int[] NoOfY = new int[m+n]; \n\n for (int i = 0; i < n; i++){\n if (Y[i] < 5){\n NoOfY[Y[i]]++; \n } \n }\n\n Arrays.sort(Y);\n\n // Take every element of X and count pairs with it \n for (int i=0; i<m; i++) {\n out += count(X[i], Y, n, NoOfY); \n }\n\n\n\n return out;\n }", "public boolean getPair()\n {\n return die1.getFacevalue() == die2.getFacevalue();\n }", "public void add(Pair pair){\r\n\t\t\tif(pairs.size() == 0){\r\n\t\t\t\tpairs.add(pair);\r\n\t\t\t\treturn;\r\n\t\t\t}\t\t\t\r\n\t\t\tif(pairs.get(0).freq <= pair.freq){\r\n\t\t\t\tpairs.add(0, pair);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif(pairs.get(pairs.size()-1).freq >= pair.freq){\r\n\t\t\t\tpairs.add(pair);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tint i, j, l;\r\n\t\t\ti = 0;\r\n\t\t\tj = pairs.size() - 1;\r\n\t\t\twhile(i < j){\r\n\t\t\t\tl = (i+j)/2;\r\n\t\t\t\tif(pair.freq == pairs.get(l).freq){\r\n\t\t\t\t\tpairs.add(l, pair);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif(pair.freq < pairs.get(l).freq){\r\n\t\t\t\t\ti = Math.max(l, i+1);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tj = Math.min(l, j-1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(pairs.get(i).freq > pair.freq){\r\n\t\t\t\tpairs.add(i+1, pair);\r\n\t\t\t}else{\r\n\t\t\t\tpairs.add(i, pair);\r\n\t\t\t}\r\n\t\t}", "public int reversePairs(int[] nums) {\n int res = 0;\n List<Integer> sorted = new ArrayList<>();\n for (int i = nums.length - 1; i >= 0; i--) {\n int target = nums[i];\n // int index = Collections.binarySearch(sorted, target);\n // if (index < 0) {\n // index = -index - 1;\n // }\n // for (; index > 0 && target == sorted.get(index - 1); index--) {}\n // res += index;\n res += find(sorted, target);\n if (target < Integer.MIN_VALUE / 2) {\n res += i;\n } else if (target <= Integer.MAX_VALUE / 2) {\n // int index = Collections.binarySearch(sorted, target * 2);\n // if (index < 0) {\n // index = -index - 1;\n // }\n int index = sorted.isEmpty() ? 0 : find(sorted, target * 2);\n sorted.add(index, target * 2);\n }\n }\n return res;\n }", "public static int pairs (int[] arr) {\n int c = 0;\n Arrays.sort(arr);\n for (int i = 0; i < arr.length - 1; i++) {\n if (arr[i] == arr[i+1]) {\n c += 1;\n }\n }\n return c;\n }", "public int reversePairs2_2(int[] nums) {\n int res = 0;\n Node root = null;\n for (int i = 0; i < nums.length; i++) {\n int num = nums[i];\n if (num < Integer.MIN_VALUE / 2) {\n res += i;\n } else {\n if (root == null) {\n root = new Node(num);\n } else {\n res += root.count((long)num * 2);\n root.add(num);\n }\n }\n }\n return res;\n }", "public boolean hasTwoPairs() {\n\t\t\n\t\tboolean paired = false;\n\t\t\n\t\tif (firstDigit == secondDigit && thirdDigit == forthDigit) {paired = true;}\n\t\telse if (firstDigit == thirdDigit && secondDigit == forthDigit) {paired = true;}\n\t\telse if (firstDigit == forthDigit && secondDigit == thirdDigit) {paired = true;}\n\t\t\n\t\treturn paired;\n\t}", "int kelilingPP(int a, int b){\r\n return 2*(a+b);\r\n }", "private Pair p(int i, int j) {\n return new Pair(i, j);\n }", "private static Pair closest_pair(ArrayList<Point> pointset){\n\t\treturn null;\n\t}", "public static void main(String[] args) {\n\n\t\tint[] arr = { 1, 5, 3, 4, 2 };\n\n\t\tint k = 2;\n\n\t\tfindPairs(arr, k);\n\n\t}", "protected int numSpecialTokensToAdd(boolean pair) {\n\t\treturn buildInputsWithSpecialTokens(new int[0], pair ? new int[0] : null).length;\n\t}" ]
[ "0.6878934", "0.62091553", "0.60927606", "0.5962648", "0.59573865", "0.5931112", "0.5928748", "0.591089", "0.5895358", "0.5888876", "0.58544844", "0.566908", "0.56407267", "0.562337", "0.5612619", "0.5596171", "0.5585961", "0.554624", "0.5519823", "0.55120313", "0.54950094", "0.5483668", "0.54796064", "0.5459054", "0.54353595", "0.5406609", "0.53915966", "0.5389378", "0.5386977", "0.5383899", "0.53571177", "0.53511745", "0.53346604", "0.53266424", "0.5318761", "0.5317751", "0.5311836", "0.53032297", "0.53010833", "0.5293298", "0.5291986", "0.5291938", "0.5289334", "0.52742743", "0.5273817", "0.5259824", "0.5256305", "0.524856", "0.5237413", "0.52327764", "0.5231261", "0.52276164", "0.520627", "0.5205111", "0.52003586", "0.51965404", "0.5195381", "0.51952475", "0.51949465", "0.51916516", "0.51818573", "0.5180988", "0.5180549", "0.518049", "0.5177321", "0.5170492", "0.5159223", "0.51558846", "0.5148684", "0.5134757", "0.51262116", "0.5125831", "0.5113028", "0.5106008", "0.51023054", "0.5099298", "0.50987303", "0.5098211", "0.50963986", "0.5094027", "0.5085916", "0.5085783", "0.5080662", "0.50765365", "0.50703895", "0.5068178", "0.5067653", "0.50578576", "0.5056315", "0.50515383", "0.5051364", "0.50343555", "0.5031922", "0.50152457", "0.5012645", "0.5002171", "0.5002087", "0.4972744", "0.49716264", "0.4970913" ]
0.6988908
0
Creates and returns a new Stopwatch object
public static Stopwatch getStopwatch(String id) { if (id == null) { logger.info("id is null"); throw new IllegalArgumentException("id is null"); } if (id.isEmpty()) { logger.info("id is empty"); throw new IllegalArgumentException("id is empty"); } if (stopwatchMap.containsKey(id)) { logger.info("id is already taken"); throw new IllegalArgumentException("id is already taken"); } synchronized (lock) { final Stopwatch stopwatch = new StopwatchImpl(id); stopwatchMap.put(id, stopwatch); logger.info("Created new stopwatch: " + id); return stopwatch; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StopWatch() {\n }", "public interface Stopwatch {\n\n /** Mark the start time. */\n void start();\n\n /** Mark the end time. */\n void stop();\n\n /** Reset the stopwatch so that it can be used again. */\n void reset();\n\n /** Returns the duration in the specified time unit. */\n long getDuration(TimeUnit timeUnit);\n\n /** Returns the duration in nanoseconds. */\n long getDuration();\n}", "public Stopwatch stop() {\n/* 123 */ long tick = this.ticker.read();\n/* 124 */ Preconditions.checkState(this.isRunning);\n/* 125 */ this.isRunning = false;\n/* 126 */ this.elapsedNanos += tick - this.startTick;\n/* 127 */ return this;\n/* */ }", "public void startStopwatch() {\n startingTime = System.nanoTime();\n currentNanoTime = () -> System.nanoTime() - startingTime;\n }", "public Stopwatch start() {\n/* 110 */ Preconditions.checkState(!this.isRunning);\n/* 111 */ this.isRunning = true;\n/* 112 */ this.startTick = this.ticker.read();\n/* 113 */ return this;\n/* */ }", "@Override\n protected Stopwatch initialValue() {\n return Stopwatch.createUnstarted(ticker);\n }", "public Timer()\n {\n // initialise instance variables\n startTime = 0;\n bonusTime = 0;\n }", "public Timer() {\n\t\tthis.start = 0L;\n\t\tthis.end = 0L;\n\t}", "public Stopwatch reset() {\n/* 135 */ this.elapsedNanos = 0L;\n/* 136 */ this.isRunning = false;\n/* 137 */ return this;\n/* */ }", "public Stopwatch(String msg) {\n\t\tthis.msg = msg;\n\t\tstart();\n\t}", "public double getStopTime();", "Timer getTimer();", "public Timer() {}", "public void startTiming() {\n elapsedTime = 0;\n startTime = System.currentTimeMillis();\n }", "public Time() {\n this(System.currentTimeMillis());\n }", "public Timer()\r\n\t{\r\n\t\tcurrentstate = TIMER_STOP;\r\n\t}", "TimerType createTimerType();", "public void start(){\n\n stopWatchStartTimeNanoSecs = magicBean.getCurrentThreadCpuTime();\n\n }", "public org.landxml.schema.landXML11.TimingDocument.Timing addNewTiming()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.TimingDocument.Timing target = null;\r\n target = (org.landxml.schema.landXML11.TimingDocument.Timing)get_store().add_element_user(TIMING$2);\r\n return target;\r\n }\r\n }", "public Timer start() {\r\n timestamp = System.currentTimeMillis();\r\n return this;\r\n }", "public Stopwatch(Ticker ticker) {\n/* 92 */ this.ticker = Preconditions.<Ticker>checkNotNull(ticker);\n/* */ }", "public void stopStopwatch() {\n timeCount = currentNanoTime.getAsLong();\n currentNanoTime = () -> timeCount;\n }", "public static void startTimer() {\n elapsedTime = 0;\r\n timerIsWorking = true;\r\n startTime = System.nanoTime() / 1000000; // ms\r\n }", "Timer(int tempTotalTime) {\n totalTime = tempTotalTime;\n }", "public static void startTimeMeasure() {\n \tstartTime = System.nanoTime();\n }", "public Time() {\r\n\t\tsecond = (System.currentTimeMillis() / 1000) % 60;\r\n\t\tminute = (System.currentTimeMillis() / 1000) / 60 % 60;\r\n\t\thour = ((System.currentTimeMillis() / 1000) / 3600) % 24;\r\n\t}", "private void startTiming() {\n m_startTime = Calendar.getInstance().getTimeInMillis();\n }", "public long startTime();", "public void start()\n\t{\n\t\t//do nothing if the stopwatch is already running\n\t\tif (m_running)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tm_running = true;\n\n\t\t//get the time information as last part for better precision\n\t\tm_lastMs = SystemClock.elapsedRealtime();\n\t}", "public static TimeTakenLogEntry create() {\n return builder().build();\n }", "SwTimerResource createSwTimerResource();", "RampDownTimer getRampDownTimer();", "private void createWaveTimer()\n\t{\n\t\twaveTimer = new WaveTimer(\n\t\t\t\titemManager.getImage(INFERNAL_CAPE),\n\t\t\t\tthis,\n\t\t\t\tInstant.now().minus(Duration.ofSeconds(6)),\n\t\t\t\tnull\n\t\t);\n\t\tif (config.waveTimer())\n\t\t{\n\t\t\tinfoBoxManager.addInfoBox(waveTimer);\n\t\t}\n\t}", "public TimerDisplay()\n {\n timeElapsed = 0;\n }", "public static synchronized SimpleTimer getInstance(AccumuloConfiguration conf) {\n int threadPoolSize;\n if (conf != null) {\n threadPoolSize = conf.getCount(Property.GENERAL_SIMPLETIMER_THREADPOOL_SIZE);\n } else {\n threadPoolSize = DEFAULT_THREAD_POOL_SIZE;\n }\n return getInstance(threadPoolSize);\n }", "protected abstract T create(final double idealStartTime);", "public GameTimer()\n \t{\n \t\tsuper();\n \t\tt = new Task();\n \t\tscheduleAtFixedRate( t, 0, 1000 );\n \t\tstartTime = System.currentTimeMillis();\n \t}", "Meter createMeter();", "TimeConstant createTimeConstant();", "public Timer getTimer() {\n\t//if (heartbeat_==null) heartbeat_ = new Timer(100, 1000); // on demand: don't slow down startup\n\tif (timer_==null) timer_ = new java.util.Timer();\n\treturn timer_;\n }", "private void trackerTimer() {\n\n Thread timer;\n timer = new Thread() {\n\n @Override\n public void run() {\n while (true) {\n\n if (Var.timerStart) {\n try {\n Var.sec++;\n if (Var.sec == 59) {\n Var.sec = 0;\n Var.minutes++;\n }\n if (Var.minutes == 59) {\n Var.minutes = 0;\n Var.hours++;\n }\n Thread.sleep(1000);\n } catch (Exception cool) {\n System.out.println(cool.getMessage());\n }\n\n }\n timerText.setText(Var.hours + \":\" + Var.minutes + \":\" + Var.sec);\n }\n\n }\n };\n\n timer.start();\n }", "public SimpleSandTimer(final TemporalAmount duration) {\n this(duration, Instant::now);\n }", "public void startTime() {\n if (!isRunning) {\n timer = new Timer();\n clock = new Clock();\n timer.scheduleAtFixedRate(clock,0,1000);\n isRunning = true;\n }\n }", "public SlowTimer(MutableTime time, SlowBeat slowBeat, String owner) {\t\t\n\t\tsuper(time, slowBeat.getBeat(SlowBeat.timeUnit, owner, \"SlowTimer\"));\n\t}", "public long startTimeNanos();", "private void startTime()\n {\n timer.start();\n }", "public interface Timer\n\textends SampledProbe<TimerSnapshot>\n{\n\t/**\n\t * Start timing something.\n\t */\n\tStopwatch start();\n}", "public double getStartTime();", "public SlowTimer(MutableTime time, SlowBeat slowBeat, TimerDurationSeconds durationOfTimer, String owner) {\t\t\n\t\tsuper(time, slowBeat, durationOfTimer);\n\t}", "public SlowTimer(MutableTime time, TimerDurationSeconds durationOfTimer, String owner) {\t\t\n\t\tsuper(time, new SlowHeartbeat(owner).getBeat(SlowBeat.timeUnit, owner, \"SlowTimer\"), durationOfTimer);\n\t}", "static public Timer theTimer() {\n return TheTimer;\n }", "private TimeUtil() {}", "TimeSpent createTimeSpent();", "TimerSchedule createTimerSchedule();", "public abstract double calculateStartTime();", "public SimpleSandTimer(final TemporalAmount duration, final Supplier<Instant> now) {\n this(now.get().plus(duration), now);\n }", "RampUpTimer getRampUpTimer();", "public static void insertStopwatchBefore(String methodName){\r\n if(!times.containsKey(methodName)){\r\n //System.out.println(\"Measuring method: \" + methodName);\r\n TimeMeasurement timeMeasurementUnit = new TimeMeasurement();\r\n timeMeasurementUnit.methodName = methodName;\r\n times.put(methodName, timeMeasurementUnit);\r\n }else{\r\n times.get(methodName).createNewMethodRun();\r\n }\r\n //System.out.println(times.size());\r\n }", "public Timer (String name, int duration, boolean starttimer, boolean loop)\n {\n Name = name;\n Timer = duration;\n TimerMax = duration;\n Loop = loop;\n isRunning = starttimer;\n \n }", "@Nonnull\n public final MutableClock stop() {\n getOrCreateNow();\n return this;\n }", "@Override\n\tpublic String toString()\n\t{\n\t\treturn \"Stopwatch: \" + \"Elapsed millis: \" + getElapsedMs() + (m_running ? \" Running\" : \" Not running\");\n\t}", "long getElapsedTime();", "public void start() {timer.start();}", "public final Pair<String, Integer> startTimer() {\r\n long j = (long) 1000;\r\n this.remainTime -= j;\r\n long j2 = this.remainTime;\r\n long j3 = j2 - j;\r\n long j4 = j3 / ((long) 3600000);\r\n long j5 = (long) 60;\r\n long j6 = (j3 / ((long) 60000)) % j5;\r\n long j7 = (j3 / j) % j5;\r\n double d = (double) j2;\r\n double d2 = (double) this.totalRemainTime;\r\n Double.isNaN(d);\r\n Double.isNaN(d2);\r\n double d3 = d / d2;\r\n double d4 = (double) AbstractSpiCall.DEFAULT_TIMEOUT;\r\n Double.isNaN(d4);\r\n double d5 = d3 * d4;\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(designTimeUnit(j4));\r\n String str = \" : \";\r\n sb.append(str);\r\n sb.append(designTimeUnit(j6));\r\n sb.append(str);\r\n sb.append(designTimeUnit(j7));\r\n return new Pair<>(sb.toString(), Integer.valueOf((int) Math.ceil(d5)));\r\n }", "public MyTime nextSecond(){\n\t\tint second = getSeconds();\n\t\tint minute = getMinute();\n\t\tint hour = getHours();\n\t\tif (second != 59){\n\t\t\tsecond++; \n\t\t}\n\t\telse{\n\t\t\tif (minute!=59){\n\t\t\t\tminute++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tminute = 0;\n\t\t\t\tif (hours!=23){\n\t\t\t\t\thour++;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\thour = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsecond = 0;\n\t\t}\n\t\t\n\t\treturn new MyTime(hour,minute,second);\n\t}", "Start createStart();", "public void startTimer() {\n startTime = System.currentTimeMillis();\n }", "public Timer(TimeSpan tickperiod)\r\n\t{\r\n\t\tcurrentstate = TIMER_STOP;\r\n\t\ttickPeriod = tickperiod.Ticks();\r\n\t}", "public Time(){\r\n Seconds = 0; \r\n }", "private Time(int end) {\r\n\t\tcurrentTime = 0;\r\n\t\tendOfTime = end;\r\n\t\tobservers = new ArrayList<TimeObserver>();\r\n\t}", "public AnimationTimer createTimer() {\n return new AnimationTimer() {\n @Override\n public void handle(long now) {\n if (!levelController.getLevelControllerMethods().getGamePaused()) {\n levelController.getBubbles().forEach(Monster.this::checkCollision);\n move();\n }\n\n setChanged();\n notifyObservers();\n }\n };\n\n }", "MeterProvider create();", "public Timer getOverallTimer();", "public void measure(){\n \tend = System.nanoTime(); \n \tlong elapsedTime = end - start;\n\n \t//convert to seconds \n \tseconds = (double)elapsedTime / 1000000000.0f;\n \tend =0; //歸零\n \tstart =0;\n }", "public SlowTimer(MutableTime time, SlowBeat slowBeat, TimerDurationSeconds durationOfTimer, String owner, Observer timerObserver) {\t\t\n\t\tsuper(time, slowBeat, durationOfTimer, timerObserver);\n\t}", "@Override\n\tpublic Seconds addTime() {\n\t\treturn new HTLSeconds();\n\n\t}", "public long getStartTime () {\n if (isPerformance) {\n return System.currentTimeMillis();\n }\n else\n {\n return 0;\n }\n }", "public static void calTime() {\n time = new Date().getTime() - start;\n }", "public float getSecondsElapsed() { return _startTime==0? 0 : (System.currentTimeMillis() - _startTime)/1000f; }", "public static FpsTimer singleton() {\n return singleton == null ? singleton = new FpsTimer() : singleton;\n }", "public Clock()\n {\n hour = 11;\n min = 28;\n sec = 12;\n }", "public void start()\r\n\t{\r\n\t\tcurrentstate = TIMER_START;\r\n\t\tstarttime = Calendar.getInstance();\r\n\t\tamountOfPause = 0;\r\n\t\trunningTime = 0;\r\n\t\tlastRunningTime = 0;\r\n\t\tpassedTicks = 0;\r\n\t}", "public MyTimerPanel(){\r\n\t\t//set up the body\r\n\t\tstopWatchTimer = new StopWatch (0, 0, 0);\r\n timer = new TimerListener();\r\n javaTimer = new Timer(100, timer);\r\n //javaTimer.start();\r\n javaTimer.setRepeats(flag);\r\n\r\n //set the layout\r\n setLayout(new GridLayout(4,3));\r\n\t\tsetBackground(Color.BLUE);\r\n\t\t\r\n\t\t//initialize JButttons\r\n\t\tstart = new JButton(\"START\");\r\n\t\tstop = new JButton(\"STOP\");\r\n\t\treset = new JButton(\"RESET\");\r\n\t\tadd = new JButton(\"ADD\");\r\n\t\tsub = new JButton(\"SUBTRACT\");\r\n\t\t\r\n\t\t//make text fields initially 0\r\n\t\tmin = new JTextField(\"0\");\r\n\t\tsec = new JTextField(\"0\");\r\n\t\tmilli = new JTextField(\"0\");\r\n\t\t\r\n\t\t//initialize JLabels\r\n\t\ttime = new JLabel(\"Time: \" + stopWatchTimer.toString());\r\n\t\tminL = new JLabel(\"Minute: \");\r\n\t\tsecL = new JLabel(\"Second: \");\r\n\t\tmilliL = new JLabel(\"Millisecond: \");\r\n\t\t\r\n\t\t//add to menu bar\r\n//\t\t\t\tJMenuBar menuBar = new JMenuBar();\r\n//\t\t\t\tmenuBar.add(file);\r\n\t\t\r\n\t\t\r\n\t //timer = new TimerListener();\r\n\t\tmin.addActionListener(timer);\r\n\t\tsec.addActionListener(timer);\r\n\t\tmilli.addActionListener(timer);\r\n\t\tstart.addActionListener(timer);\r\n\t\tstop.addActionListener(timer);\r\n\t\treset.addActionListener(timer);\r\n\t\tadd.addActionListener(timer);\r\n\t\tsub.addActionListener(timer);\r\n\t\t\r\n\t\t//add everything to panel\r\n\t\tadd(time);\r\n\t\t\r\n\t\tadd(reset);\r\n\t\tadd(add);\r\n\t\tadd(minL);\r\n\t\tadd(min);\r\n\t\tadd(start);\r\n\t\tadd(secL);\r\n\t\tadd(sec);\r\n\t\tadd(stop);\r\n\t\tadd(milliL);\r\n\t\tadd(milli);\r\n\t\tadd(sub);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static long startTimer() {\n return System.currentTimeMillis();\n }", "public ClockTime(String value) {\n this(value,null);\n }", "public static void startTiming(CheckType theCheck, UUID identifier) {\n if (!ENABLED) return;\n purge(theCheck);\n\n STARTED_TIMINGS.get(theCheck).put(identifier, System.nanoTime());\n }", "public FreeTime() {}", "public void startTimer(){\n timerStarted = System.currentTimeMillis();\n }", "public void testElapsedStartStop() throws Exception {\n \n if (isFastJUnitTesting()){\n return;\n }\n\n String testName = this.getName();\n\n /**\n * Number of second to wait before starting and stopping contest clock.\n */\n int secondsToWait = 3;\n\n long ms = secondsToWait * Constants.MS_PER_SECONDS;\n\n ContestTime contestTime = new ContestTime();\n\n contestTime.startContestClock();\n\n debugPrint(testName + \": sleep for \" + secondsToWait + \" seconds.\");\n Thread.sleep(ms);\n\n contestTime.stopContestClock();\n long actualSecs = contestTime.getElapsedSecs();\n assertTrue(\"After stop, expecting elapsed time secs > \" + secondsToWait + \", was=\" + secondsToWait, actualSecs >= secondsToWait);\n\n long actualMS = contestTime.getElapsedMS();\n assertTrue(\"After stop, expecting elapsed time ms > \" + ms + \", was=\" + actualMS, actualMS >= ms);\n\n contestTime.startContestClock();\n actualSecs = contestTime.getElapsedSecs();\n assertTrue(\"After stop, expecting elapsed time secs > \" + secondsToWait + \", was=\" + secondsToWait, actualSecs >= secondsToWait);\n\n debugPrint(testName + \": sleep for \" + secondsToWait + \" seconds.\");\n Thread.sleep(ms);\n\n actualMS = contestTime.getElapsedMS();\n assertTrue(\"After start, expecting elapsed time ms > \" + ms + \", was=\" + actualMS, actualMS >= ms);\n }", "public LogWatch() {\n\t\tsuper();\n\t\tthis.start();\n\t}", "public Timer(Cpu cpu) {\n this.cpu = Objects.requireNonNull(cpu);\n DIV = 0;\n TIMA = 0;\n TMA = 0;\n TAC = 0;\n }", "private UimaTimer getTimer() throws Exception {\n String uimaTimerClass = cpeFactory.getCPEConfig().getCpeTimer().get();\n if (uimaTimerClass != null) {\n new TimerFactory(uimaTimerClass);\n return TimerFactory.getTimer();\n }\n // If not timer defined return default timer based on System.currentTimeMillis()\n return new JavaTimer();\n }", "@Test\n\tpublic void testObjectConstructor(){\n\t\tCountDownTimer s1 = new CountDownTimer(1, 30, 0);\n\t\tCountDownTimer s2 = new CountDownTimer(s1);\n\t\tassertEquals(s2.toString(), \"1:30:00\");\n\t}", "public interface TimeTracker {\n\n /**\n * Tell tracker to start timer\n */\n void startTracking();\n\n /**\n * Get time elapsed since tracker was started (#startTracking)\n * @return elapsed time\n */\n long getElapsedTime();\n\n /**\n * Get type\n * @return tracker type\n */\n Type type();\n\n\n /**\n * Type of time trackers available\n */\n public enum Type {\n /**\n * Millisecond time tracking (System.currentTimeMillis)\n */\n MILLIS (\"ms\") {\n @Override\n TimeTracker get() {\n return new TimeTracker() {\n private long start;\n @Override\n public void startTracking() {\n start = System.currentTimeMillis();\n }\n @Override\n public long getElapsedTime() {\n return System.currentTimeMillis() - start;\n }\n @Override\n public Type type() {\n return MILLIS;\n }\n };\n }\n },\n /**\n * Nanosecond time tracking (System.nanoTime)\n */\n NANOS (\"ns\") {\n @Override\n TimeTracker get() {\n return new TimeTracker() {\n private long start;\n @Override\n public void startTracking() {\n start = System.nanoTime();\n }\n @Override\n public long getElapsedTime() {\n return System.nanoTime() - start;\n }\n @Override\n public Type type() {\n return NANOS;\n }\n };\n }\n };\n\n private String units;\n Type(String units) {\n this.units = units;\n }\n\n /**\n * Provide time units based on tracker ('ms', 'ns')\n * @return time units string\n */\n public String getUnits() {\n return units;\n }\n\n abstract TimeTracker get();\n }\n}", "@Override\n protected AngularSpeed createMeasurement(double value, AngularSpeedUnit unit) {\n return new AngularSpeed(value, unit);\n }", "Timing(SimulationRun simulationRun) {\n this.simulationRun = simulationRun;\n }", "public org.landxml.schema.landXML11.GPSTime xgetStopTime()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.GPSTime target = null;\r\n target = (org.landxml.schema.landXML11.GPSTime)get_store().find_attribute_user(STOPTIME$24);\r\n return target;\r\n }\r\n }", "Instant getStart();", "public void startTimer()\n {\n\n timeVal = 0;\n timer = new Timer();\n\n timer.scheduleAtFixedRate(new TimerTask() {\n @Override\n public void run() {\n timeVal++;\n timeText.setText(\"Time: \" + timeVal);\n }\n }, 0, 1000);\n }", "public static IRubyObject s_new(IRubyObject recv, IRubyObject[] args, Block block) {\n Ruby runtime = recv.getRuntime();\n RubyTime time = new RubyTime(runtime, (RubyClass) recv, new DateTime(getLocalTimeZone(runtime)));\n time.callInit(args,block);\n return time;\n }" ]
[ "0.7248647", "0.67722905", "0.6726164", "0.65338844", "0.63577574", "0.6248568", "0.6152319", "0.59904665", "0.5950838", "0.5857835", "0.5855284", "0.58466107", "0.58055985", "0.57870936", "0.5775024", "0.574383", "0.573303", "0.5691167", "0.56903964", "0.5687201", "0.5682044", "0.56601137", "0.56476796", "0.5603087", "0.55735666", "0.5553382", "0.5525813", "0.55197203", "0.54963386", "0.5483106", "0.54782456", "0.54283637", "0.5419772", "0.5412737", "0.5392141", "0.53893524", "0.53701764", "0.534959", "0.5327435", "0.5317403", "0.5308038", "0.5293714", "0.5281433", "0.52781045", "0.5272729", "0.5260563", "0.5260185", "0.52476645", "0.52346486", "0.52307045", "0.52278125", "0.5202125", "0.51989615", "0.5187492", "0.51868", "0.51755244", "0.51692736", "0.51688534", "0.5166635", "0.51652074", "0.51448566", "0.5138206", "0.51237744", "0.51198125", "0.5115612", "0.5115435", "0.51153874", "0.51031905", "0.5083098", "0.50626725", "0.5057613", "0.50483567", "0.5044002", "0.50250685", "0.5020932", "0.5011234", "0.50069934", "0.5003458", "0.49815786", "0.4981456", "0.49709845", "0.49657357", "0.49560606", "0.4942929", "0.49398464", "0.493684", "0.4936205", "0.4936088", "0.49287966", "0.49257886", "0.49200994", "0.49114075", "0.4906544", "0.49063843", "0.4903505", "0.49030194", "0.489592", "0.48932418", "0.48911354", "0.48883688" ]
0.6587541
3
Returns a list of all created stopwatches
public static List<Stopwatch> getStopwatches() { synchronized (lock) { final List<Stopwatch> stopwatchList = new ArrayList<Stopwatch>(stopwatchMap.values()); return stopwatchList; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NonNull\n public List<Swatch> getSwatches() {\n return Collections.unmodifiableList(mSwatches);\n }", "public List<WatchRecord> getWatchList() throws Exception {\r\n List<WatchRecord> watchList = new Vector<WatchRecord>();\r\n List<WatchRecordXML> chilluns = this.getChildren(\"watch\", WatchRecordXML.class);\r\n for (WatchRecordXML wr : chilluns) {\r\n watchList.add(new WatchRecord(wr.getPageKey(), wr.getLastSeen()));\r\n }\r\n return watchList;\r\n }", "public VirtualZone[] getWatchers() {\n/* 3094 */ if (this.watchers != null) {\n/* 3095 */ return this.watchers.<VirtualZone>toArray(new VirtualZone[this.watchers.size()]);\n/* */ }\n/* 3097 */ return emptyWatchers;\n/* */ }", "List<Stop> getStops();", "private List<IntWatcher> getWatchers(String name) {\n List<IntWatcher> ws = watchers.get(name);\n if (ws == null) {\n ws = new ArrayList<>();\n watchers.put(name, ws);\n }\n return ws;\n }", "public static List<Stop> getAllStops() {\n return allStops;\n }", "public List<DBObject> WhichWatch();", "public List<Stop> getStopsMap()\r\n {\r\n return stops_map;\r\n }", "public List<Script> getWatchedScripts() {\n try {\n return new ArrayList<Script>(watchedScripts);\n } finally {\n }\n }", "public List<AbstractMap.SimpleImmutableEntry<Stop, Integer>> getStops() { return stops;}", "public Set<AngularClientVariableWatcher> getAngularWatchers()\n\t{\n\t\tif (angularWatchers == null)\n\t\t{\n\t\t\tangularWatchers = new LinkedHashSet<>();\n\t\t}\n\t\treturn angularWatchers;\n\t}", "private List<RouteInfo> createList() {\r\n\r\n List<RouteInfo> results = new ArrayList<>();\r\n\r\n for (String temp [] : stops) {\r\n\r\n RouteInfo info = new RouteInfo();\r\n info.setTitle(temp[0]);\r\n info.setRouteName(\"Stop ID: \" + temp[1]);\r\n info.setRouteDescription(\"Next bus at: \");\r\n results.add(info);\r\n }\r\n\r\n return results;\r\n }", "List<Map.Entry<Long, String>> getStopTimeTable(String stopId) throws Exception;", "public List<Device> getRunningDevices();", "private void pollAllWatchersOfThisTile() {\n/* 1287 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 1291 */ if (vz.getWatcher() instanceof Player)\n/* */ {\n/* 1293 */ if (!vz.getWatcher().hasLink())\n/* */ {\n/* */ \n/* */ \n/* 1297 */ removeWatcher(vz);\n/* */ }\n/* */ }\n/* */ }\n/* 1301 */ catch (Exception e) {\n/* */ \n/* 1303 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }", "private void expungeAllWatchListsFiles()\r\n {\r\n debug(\"expungeAllWatchListsFiles() - Delete ALL WATCHLIST Files\");\r\n\r\n java.io.File fileList = new java.io.File(\"./\");\r\n String rootName = getString(\"WatchListTableModule.edit.watch_list_basic_name\");\r\n String[] list = fileList.list(new MyFilter(rootName));\r\n for (int i = 0; i < list.length; i++)\r\n {\r\n StockMarketUtils.expungeListsFile(list[i]);\r\n }\r\n\r\n debug(\"expungeAllWatchListsFiles() - Delete ALL WATCHLIST Files - Complete\");\r\n }", "public java.util.List<java.lang.String> getDebugRunningsList() {\n return java.util.Collections.unmodifiableList(result.debugRunnings_);\n }", "public synchronized final void deleteWidgetWatchers() {\n _watchers.removeAllElements();\n }", "public ListBuild watch(Boolean watch) {\n put(\"watch\", watch);\n return this;\n }", "public ListConsole watch(Boolean watch) {\n put(\"watch\", watch);\n return this;\n }", "public List<Map> getWatchListBasedOnUserName(String userName);", "public java.util.List<java.lang.String> getRunningsList() {\n return java.util.Collections.unmodifiableList(result.runnings_);\n }", "public List<String> getRunLogAsList();", "@GetMapping(\"tv_watching_sessions\")\n\tpublic List<TvWatchingSession> listSessions(){\n\t\treturn svc.allActiveSessionsByUser(userName);\n\t}", "public void startWatching(){\n this.listWatcher.start();\n }", "private void processWatchers(MethodSpec.Builder createdMethodBuilder) {\n createdMethodBuilder\n .addStatement(\"Proto p = $T.cast(vue().$L().getComponentExportedTypePrototype())\",\n Js.class, \"$options\");\n getMethodsWithAnnotation(component, Watch.class)\n .forEach(method -> processWatcher(createdMethodBuilder, method));\n }", "public ListAPIServer watch(Boolean watch) {\n put(\"watch\", watch);\n return this;\n }", "protected List<RunListener> getRunListeners() {\n return Collections.emptyList();\n }", "private List<FileStatus> findTimestampedDirectories() throws IOException {\n List<FileStatus> fsList = JobHistoryUtils.localGlobber(doneDirFc,\n doneDirPrefixPath, DONE_BEFORE_SERIAL_TAIL);\n return fsList;\n }", "public LinkedList<TearDownService> getTearDownServices() {\n return tearDownServices;\n }", "public static void getWatch() {\n for ( String nodeId : getNodes() ){\n Wearable.MessageApi.sendMessage(\n mGoogleApiClient, nodeId, \"GET_WATCH\", new byte[0]).setResultCallback(\n new ResultCallback<MessageApi.SendMessageResult>() {\n @Override\n public void onResult(MessageApi.SendMessageResult sendMessageResult) {\n if (!sendMessageResult.getStatus().isSuccess()) {\n Log.i(\"MessageApi\", \"Failed to send message with status code: \"\n + sendMessageResult.getStatus().getStatusCode());\n } else if (sendMessageResult.getStatus().isSuccess()) {\n Log.i(\"MessageApi\", \"onResult successful!\");\n }\n }\n }\n );\n }\n }", "@Override\n\tpublic List<StopPoint> listStopPoints() {\n\t\tString jql = \"SELECT s FROM StopPoint s\";\n\t\tList<StopPoint> listStopPoints = this.entityManager.createQuery(jql, StopPoint.class ).getResultList();\n\t\treturn listStopPoints;\n\t}", "private List<Map<Species, Integer>> getObservedSpeciesMaps() {\n List<Map<Species, Integer>> observedSpeciesMap = new ArrayList<>(observedSpecies.size());\n for (WatchList watchList : observedSpecies.values()) {\n observedSpeciesMap.add(watchList.getObservedSpeciesMap());\n }\n return observedSpeciesMap;\n }", "public ListScheduler watch(Boolean watch) {\n put(\"watch\", watch);\n return this;\n }", "public List<Stop> findStopsByName(String name) {\n return stops.values()\n .stream()\n .filter(stop -> stop.getName().toLowerCase(Locale.ROOT).contains(name.toLowerCase(Locale.ROOT)))\n .collect(Collectors.toCollection(() -> new TiraArrayList<>()));\n }", "java.util.List<org.tensorflow.proto.distruntime.JobDeviceFilters> \n getJobsList();", "public ArrayList<Recording> getAll() {\r\n synchronized (lastUpdate) {\r\n if (System.currentTimeMillis() - lastUpdate > 60000) {\r\n update();\r\n }\r\n }\r\n return recordings;\r\n }", "public ListNamespacedConfiguration watch(Boolean watch) {\n put(\"watch\", watch);\n return this;\n }", "public void watchAndClean() {\n runtimeClient.watchWithWatcher(new Watcher<Event>() {\n\n @Override\n public void eventReceived(Action action, Event resource) {\n if ((resource.getInvolvedObject().getKind().equals(\"Deployment\") ||\n resource.getInvolvedObject().getKind().equals(\"Service\"))\n && resource.getInvolvedObject().getName().startsWith(Constants.BPG_APP_TYPE_LAUNCHER)\n && (action == Action.DELETED || action == Action.MODIFIED)) {\n\n log.info(\"Received \"\n + action.toString() + \" event for \"\n + resource.getInvolvedObject().getKind() + \" \"\n + resource.getInvolvedObject().getName());\n\n cleanOrphanDeployments();\n cleanOrphanServices();\n } else {\n log.debug(\"Received action \" + action.toString() + \" for resource \"\n + resource.getInvolvedObject().getKind() + \":\"\n + resource.getInvolvedObject().getName());\n }\n }\n\n @Override\n public void onClose(KubernetesClientException cause) {\n log.info(\"Shutting down Event Watcher...\");\n }\n });\n }", "public synchronized List<WebElement> list_ColorSwatchName() throws Exception {\n\n\t\treturn utils.findElementsByLocator(driver, \"PDP_ColorSwatchName\",\n\t\t\t\t\"| PDP: Color swatch Name Not Displayed On PDP\");\n\t}", "public List<Widget> getWidgets() {\n return widgets;\n }", "public ArrayList<Location> getDocks() {\n return locations.stream().filter(loc -> loc.getClass().getSimpleName().equals(\"Dock\")).collect(Collectors.toCollection(ArrayList::new));\n }", "private void loadPersistantWatchLists()\r\n {\r\n\r\n debug(\"loadPersistantWatchLists() called - \");\r\n\r\n expungeAllHistoricFiles();\r\n\r\n final int watchListCount =\r\n ParseData.parseNum(appProps.getProperty(getString(\"WatchListTableModule.application_watchlist_count_key_title\")), 0);\r\n\r\n for (int index = 0; index < watchListCount; index++)\r\n {\r\n // Create a NEW header Vector\r\n Vector headers = new Vector();\r\n headers.removeAllElements();\r\n for (int i = 0; i < StockData.columns.length; i++)\r\n {\r\n headers.addElement(StockData.columns[i]);\r\n }\r\n\r\n // Create a new DATA Vector\r\n Vector data = new Vector();\r\n data.removeAllElements();\r\n // Are we in DEMO mode ior in Live Mode\r\n // Populate the Vectors\r\n if (DEMO_MODE)\r\n {\r\n getDemoData(data);\r\n }\r\n else\r\n {\r\n //getDemoData(data);\r\n getLiveData(data, index);\r\n }\r\n\r\n // Create a new Table Model with our headers and data\r\n StockDataTableModel tableModel = new StockDataTableModel(headers, data);\r\n\r\n // Create a new Table with our Tablemodel\r\n JTable table = new HGTable(tableModel);\r\n\r\n // This method will add a timer ( via the index ) the table and tableModel\r\n // the appropriate vector containers.\r\n addDataToVectorContainers(table, tableModel, index);\r\n // This Method will add the Popup menu to the this table\r\n addPopupMenuToTable(table);\r\n // Create a new ScrollPane and add our table to it\r\n JScrollPane scrollPane = new JScrollPane();\r\n scrollPane.getViewport().add(table);\r\n JPanel panel = new JPanel(new BorderLayout());\r\n\r\n // Creae a new Vertical Panel and add our Menu and JScrollPane Table\r\n JPanel lblPanel = createVerticalPanel(true);\r\n\r\n lblPanel.add(createDropDownMenu());\r\n panel.add(lblPanel, BorderLayout.NORTH);\r\n panel.add(scrollPane, BorderLayout.CENTER);\r\n\r\n // Create a default name for that tab and tab name lookup\r\n String tabName = getString(\"WatchListTableModule.edit.watch_list_basic_name\") + index;\r\n // Get the WatchList title via Properties\r\n // Get the Property\r\n tabName = appProps.getProperty(tabName, tabName);\r\n tabPane.addTab(tabName, null, panel, new String(\"Click here to view \" + tabName));\r\n\r\n // Set the selected index to the first in the list\r\n tabPane.setSelectedIndex(0);\r\n // Repaint the tabpane with the current data\r\n tabPane.repaint();\r\n\r\n // Load the Historical Data on the Util Event Thread as \r\n // to get our primary data up and going as fast as possible\r\n // So we can get out of here - This Inner class thread\r\n // invokes class instance method loadHistoricData(index);\r\n // NOTE: Startup Initial delay of 5 seconds, give the application,\r\n // Time to load.\r\n TimerTask historicDataTask = new LoadHistoricListDataTask(index);\r\n Timer timer = new Timer(true);\r\n timer.schedule(historicDataTask, ONE_SECOND ); // ONE_SECOND * 6);\r\n\r\n this.setStatusBar(\"Loading watch list [\" + index + \"] complete.\");\r\n }\r\n\r\n this.MODULE_READY = true;\r\n\r\n this.monitorTask = new WatchListMonitorTask();\r\n Timer timer = new Timer(true); // Non-Deamon\r\n timer.scheduleAtFixedRate(monitorTask, MONITOR_DELAY, MONITOR_DELAY);\r\n\r\n debug(\"loadPersistantWatchLists() complete - \");\r\n\r\n }", "@Override\n\tpublic List<Watch> getWatchByUser(String userId) throws Exception {\n\t\treturn null;\n\t}", "@Deprecated\n public Map<File, FileWatcher> getWatchers() {\n final Map<File, FileWatcher> map = new HashMap<>(watchers.size());\n for (Map.Entry<Source, ConfigurationMonitor> entry : watchers.entrySet()) {\n if (entry.getValue().getWatcher() instanceof ConfigurationFileWatcher) {\n map.put(entry.getKey().getFile(), (FileWatcher) entry.getValue().getWatcher());\n } else {\n map.put(entry.getKey().getFile(), new WrappedFileWatcher((FileWatcher) entry.getValue().getWatcher()));\n }\n }\n return map;\n }", "@PostConstruct\n public void init() {\n for (final Entry<String, Set<String>> aggregateEntry : processor.getTaskIndex().entrySet()) {\n final AggregateStopwatch stopwatchEntry = new AggregateStopwatch();\n\n aggregatedTasks.put(aggregateEntry.getKey(), stopwatchEntry);\n\n for (final String nameEntry : aggregateEntry.getValue()) {\n logger.info(\"adding stopwatchEntry - aggregate: \" + aggregateEntry.getKey() + \" task: \" + nameEntry);\n stopwatchEntry.getTimedTasks().put(nameEntry, new TaskStopwatch());\n }\n }\n }", "List<Stopsinlinedb> fetchStopsInLines();", "ArrayList<String> getWorkspaceNames() {\n ArrayList<String> result = new ArrayList<String>();\n for (WorkspaceInfo ws : getCatalog().getWorkspaces()) {\n result.add(ws.getName());\n }\n Collections.sort(result);\n result.add(0, \"*\");\n return result;\n }", "public ListOAuth watch(Boolean watch) {\n put(\"watch\", watch);\n return this;\n }", "private void shutdownWatchListTimers()\r\n {\r\n debug(\"shutdownWatchListTimers() all timers\");\r\n // Null our our parser, It is not needed now.\r\n if (populateListVector == null)\r\n {\r\n return;\r\n }\r\n // Stop All of our timers.\r\n for (int i = 0; i < populateListVector.size(); i++)\r\n {\r\n PopulateWatchListTask task = (PopulateWatchListTask) populateListVector.elementAt(i);\r\n task.cancel();\r\n this.setStatusBar(\"WatchList [\" + tabPane.getTitleAt(i) + \"] - Stopped.\");\r\n debug(\"WatchList [\" + tabPane.getTitleAt(i) + \"] - Stopped.\");\r\n }\r\n // Clear all objects from the Timer List\r\n populateListVector.removeAllElements();\r\n populateListVector = null;\r\n // Signal the Garbage Collector to reclaim anything it may see neccessary\r\n System.gc();\r\n debug(\"shutdownWatchListTimers() all timers - complete\");\r\n }", "public ArrayList<TimeWindow> getTimeWindows() {\n\t\treturn timeWindows;\n\t}", "public static ArrayList<WatchHistory> getWatchHistory() {\n File file = new File(\"./data/customer_ratings.csv\");\n Scanner scan;\n try {\n scan = new Scanner(file);\n\n } catch (IOException e) {\n throw new Error(\"Could not open customer ratings file\");\n }\n scan.nextLine();\n\n // Read File to get Watch Histories\n ArrayList<WatchHistory> watchHistories = new ArrayList<WatchHistory>();\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n String[] ratingParts = line.split(\"\\t\");\n double rating = Double.parseDouble(ratingParts[2]);\n WatchHistory wh = new WatchHistory(ratingParts[1], ratingParts[4], rating, ratingParts[3]);\n watchHistories.add(wh);\n }\n\n // Close Scanner\n scan.close();\n\n // Return Watch Histories\n return watchHistories;\n }", "public ListFeatureGate watch(Boolean watch) {\n put(\"watch\", watch);\n return this;\n }", "public void testWatchService2 () throws Throwable {\n final Path base = selected.resolve(getName());\n try {\n Files.createDirectory(base);\n try (final WatchService service = fs.newWatchService()) {\n base.register(service, AndroidWatchEventKinds.CREATE);\n base.register(service, AndroidWatchEventKinds.DELETE);\n final Path foo = base.resolve(\"foo\");\n Files.createFile(foo);\n Files.delete(foo);\n final Path bar = base.resolve(\"bar\");\n Files.createFile(bar);\n Files.delete(bar);\n\n final HashMap<WatchEvent.Kind<?>, Integer> expected = new HashMap<>();\n expected.put(AndroidWatchEventKinds.CREATE, 2);\n expected.put(AndroidWatchEventKinds.DELETE, 2);\n do {\n final WatchKey key = service.poll(2, TimeUnit.SECONDS);\n assertNotNull(\"timeout\", key);\n for (final WatchEvent<?> event : key.pollEvents()) {\n Log.i(getName(), event.toString());\n final Integer remaining = expected.get(event.kind());\n assertNotNull(remaining);\n if (remaining > event.count())\n expected.put(event.kind(), remaining - event.count());\n else\n expected.remove(event.kind());\n }\n key.reset();\n } while (!expected.isEmpty());\n }\n }\n finally {\n Files.walkFileTree(base, Utils.DELETE_FILE_VISITOR);\n }\n }", "public List<LocationGroup> getStopLocationList() {\n return stopLocationList;\n }", "@Nonnull\n List<Telegraf> findTelegrafs();", "public ListNamespacedComponent watch(Boolean watch) {\n put(\"watch\", watch);\n return this;\n }", "private String viewListOfStops() {\n StringBuilder result = new StringBuilder();\n for (TTC stops : this.listOfStops) {\n result.append(stops.toString());\n result.append(\" -> \");\n }\n return (result.toString()).substring(0, result.length() - 2);\n }", "public abstract List<? extends AbstractSctlThreadEntry> getThreads();", "public ListInfrastructure watch(Boolean watch) {\n put(\"watch\", watch);\n return this;\n }", "public void getRunningInstances() {\n LogContainerResultCallback resultCallback = new LogContainerResultCallback();\n //override method onNext of resultcallback\n dockerClient.logContainerCmd(\"id\").exec(resultCallback);\n dockerClient.attachContainerCmd(\"id\").withStdIn(new ByteArrayInputStream(\"list\\n\".getBytes()));\n }", "public ListProject watch(Boolean watch) {\n put(\"watch\", watch);\n return this;\n }", "public List<Window> getWindows(){\n\t\treturn windows;\n\t}", "public List<P> getListProgramsAtWatchTime(LocalDateTime targetWatchTime) {\n\t\treturn getJavaRDDProgramsAtWatchTime(targetWatchTime).collect();\n\t}", "public static void listByWatched(){\r\n System.out.println('\\n'+\"List by Watched\");\r\n CompareWatched compareWatched = new CompareWatched();\r\n Collections.sort(movies, compareWatched);\r\n for (Movie watch:movies){\r\n System.out.println('\\n'+\"Times Watched \"+ watch.getTimesWatched()+'\\n'+\"Title: \"+ watch.getName()+'\\n'+\"Rating: \"+ watch.getRating()+'\\n');\r\n }\r\n }", "public List<List<IThreadInfo>> getCycles() {\n return (_objectProcessor != null ? _objectProcessor : _processor).getCycles();\n }", "public List<LocalDateTime> getAllTimes() {\n\t\tList<LocalDateTime> allTimes = new ArrayList<LocalDateTime>();\n\t\tallTimes.add(shiftStartTime);\n\t\tallTimes.add(bedtime);\n\t\tallTimes.add(shiftEndTime);\n\t\treturn allTimes;\n\t}", "public void listRunningTests() {\r\n\t\tList<Configuration> tests = testCache.getAllTests();\r\n\t\tlog.info(\"List of running tests in the framework.\\n\");\r\n\t\tlog.info(HEADER);\r\n\t\tlog.info(\"S.No\\tTest\");\r\n\t\tlog.info(HEADER);\r\n\t\tint i = 1;\r\n\t\tfor (Configuration test : tests) {\r\n\t\t\tlog.info(String.format(\"%d.\\t%s\\n\", i++, test));\r\n\t\t}\r\n\t}", "public static String getStopWords() throws IOException{\n\t\tString filepath1 = \"C:/Naveen/CCS/IR/AP89_DATA/AP_DATA/stoplist.txt\";\n\t\tPath path1 = Paths.get(filepath1);\n\t\tScanner scanner1 = new Scanner(path1);\n\t\tStringBuffer stopWords = new StringBuffer();\n\t\t\n\t\twhile (scanner1.hasNextLine()){\n\t\t\tString line = scanner1.nextLine();\n\t\t\tstopWords.append(line);\n\t\t\tstopWords.append(\"|\");\n\t } \n\t\t\n\t\tstopWords.append(\"document|discuss|identify|report|describe|predict|cite\");\n\t\tString allStopwords = stopWords.toString();\n\t\t//System.out.println(\"\"+allStopwords);\n\t\treturn allStopwords;\n\t}", "public List<RunningQuery> getRunningQueries() {\n return jdbi.withHandle(handle -> {\n handle.registerRowMapper(ConstructorMapper.factory(RunningQuery.class));\n return handle.createQuery(RunningQuery.extractQuery)\n .mapTo(RunningQuery.class)\n .list();\n });\n }", "public RunConfiguration[] getRunConfigurations()\n\t{\n\t\treturn runConfigurations;\n\t}", "private ArrayList<String> gettemplates(){\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\ttry {\n\t\t String[] cmd = {\n\t\t \t\t\"/bin/sh\",\n\t\t \t\t\"-c\",\n\t\t \t\t\"ls -p | grep -v / | grep -v 'pom.xml' \"\n\t\t \t\t};\n\n\t\t Process p = Runtime.getRuntime().exec(cmd); //Runtime r = Runtime.getRuntime(); Process p = r.exec(cmd);\n\t\t BufferedReader in =\n\t\t new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t String inputLine;\n\t\t while ((inputLine = in.readLine()) != null) {\n\t\t result.add(inputLine);\n\t\t }\n\t\t in.close();\n\n\t\t} catch (IOException e) {\n\t\t System.out.println(e);\n\t\t}\n\t\t\n\t\treturn result;\n\t\t}", "public List<GeobatchRunInfo> search(String fileId) {\n SearchFilter filter;\n if(fileId != null){\n filter = new AndFilter(new FieldFilter(BaseField.DESCRIPTION,\n fileId, SearchOperator.EQUAL_TO), new CategoryFilter(CATEGORY_NAME,\n SearchOperator.EQUAL_TO));\n }else{\n filter = new CategoryFilter(CATEGORY_NAME,\n SearchOperator.EQUAL_TO);\n }\n ResourceList list = geostoreClient.searchResources(filter, 0,\n Integer.MAX_VALUE, true, false);\n List<GeobatchRunInfo> resources = new LinkedList<GeobatchRunInfo>();\n if (list.getList() != null && !list.getList().isEmpty()) {\n for (Resource resource : list.getList()) {\n resources.add(getRunStatus(resource));\n }\n }\n \n // sort by last execution\n Collections.sort(resources, new GeoBatchRunInfoComparator());\n \n return resources;\n }", "public void listAction() {\n TextWin newWindow = new TextWin(getSelectedCell());\n WindowUtils.avoidParent(newWindow, parentFrame);\n watchers.add(newWindow);\n }", "private void watched(boolean w){\n for (Movie temp:\n baseMovieList) {\n if(temp.isWatched() == w)\n movieList.add(temp);\n }\n }", "public ListClusterOperator watch(Boolean watch) {\n put(\"watch\", watch);\n return this;\n }", "@Override\n\tpublic WatchService newWatchService() throws IOException {\n\t\treturn null;\n\t}", "public List<Address> getWatchedAddresses() {\n try {\n List<Address> addresses = new LinkedList<Address>();\n for (Script script : watchedScripts)\n if (script.isSentToAddress())\n addresses.add(script.getToAddress(params));\n return addresses;\n } finally {\n }\n }", "@RequestMapping(path = \"/last24hCreatedRoutes\", method = RequestMethod.GET)\n public List<RouteCreated> getLast24hCreatedRoutes() {\n Query queryObject = new Query(\"Select * from route_created\", \"blablamove\");\n QueryResult queryResult = BlablamovebackendApplication.influxDB.query(queryObject);\n\n InfluxDBResultMapper resultMapper = new InfluxDBResultMapper();\n System.out.println(\"queryResult : \" + queryResult);\n List<RouteCreated> routeCreatedList = resultMapper\n .toPOJO(queryResult, RouteCreated.class);\n\n LocalDateTime stop = LocalDateTime.now().minusHours(0);\n LocalDateTime start = LocalDateTime.now().minusHours(24).withSecond(0).withMinute(0).withNano(0);\n\n return routeCreatedList.stream().filter(routeCreated -> instantIsBetweenDates(routeCreated.getTime(), start, stop)).collect(Collectors.toList());\n }", "public ArrayList<String> storeTimelines(String outputPath) {\n\t\tArrayList<String> timelineNames = new ArrayList<String>();\n\n\t\tfor (Timeline timeline : this.timelines) {\n\t\t\tString timelineName = outputPath + timeline.getName();\n\t\t\ttimelineNames.add(timeline.getName());\n\t\t\ttimeline.store(700, 105, timelineName);\n\t\t}\n\t\treturn timelineNames;\n\t}", "public ListOperatorHub watch(Boolean watch) {\n put(\"watch\", watch);\n return this;\n }", "static List<Entry<String,Runnable>> getRunners(GrammarTestSuite suite) {\n var runners = new LinkedList<Entry<String,Runnable>>();\n var sources = suite.getStageFiles();\n var testsuite = new SuiteOfStages(sources);\n for (var stage : testsuite.getStages()) {\n for (var target : stage.getTargets()) {\n var i = 0;\n for (var test : target.getTests()) {\n var name = test.getStage() + ':' + test.getTarget() + ':' + (i++);\n runners.add(new SimpleEntry<String,Runnable>( name, () -> testParsing(suite,test) ));\n }\n }\n }\n return runners;\n }", "public Collection<String> getStopCodons() {\n\t\t\treturn stopCodons;\n\t\t}", "public static List<Stop> findStop(String name) {\n List<Stop> matchingStops = new ArrayList<>();\n String pattern = \"(?i)(.*)\" + name + \"(.*)\";\n for (Stop s : getAllStops()) {\n if (s.getName().matches(pattern)) {\n matchingStops.add(s);\n }\n }\n return matchingStops;\n }", "public ListNamespacedSubscription watch(Boolean watch) {\n put(\"watch\", watch);\n return this;\n }", "public List<Monitor> retrieveMonitorsForServer(ServerDetail serverDetail) {\n List<Monitor> monitors = new ArrayList<Monitor>();\n ArrayList<Class> monitorClasses = (ArrayList<Class>) availableMonitors.getMonitorList();\n try{\n for (Class klass: monitorClasses){\n Monitor obj = (Monitor) klass.newInstance();\n // Set default variables for Monitors\n obj.serverDetail = serverDetail;\n obj.realtimeThoth = realTimeThoth;\n obj.shrankThoth = historicalDataThoth;\n obj.mailer = mailer;\n monitors.add(obj);\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n return monitors;\n }", "@Override\n\tpublic List<TaskKeeper> getList() {\n\t\treturn (List<TaskKeeper>) taskKeeperRepositories.findAll();\n\t}", "public synchronized List<WebElement> list_ColorSwatch() throws Exception {\n\n\t\tif (Utils.isDeviceMobile() && Utils.isBrandFullPrice())\n\t\t\treturn utils.findElementsByLocator(driver, \"MBL_PDP_Lnk_ColorSwatch\",\n\t\t\t\t\t\"| PDP: Color swatch Not Displayed On PDP\");\n\n\t\treturn utils.findElementsByLocator(driver, \"PDP_Lnk_ColorSwatch\", \"| PDP: Color swatch Not Displayed On PDP\");\n\t}", "public static ArrayList<File> findDevices() {\n return findDevices(\"/dev/\");\n }", "private List<Kill> getMockKillList() {\r\n\r\n\t\tList<Kill> mockList = new ArrayList<>();\r\n\t\tKill kill;\r\n\r\n\t\tkill = new Kill();\r\n\t\tkill.setId(1);\r\n\t\tkill.setMatch(100);\r\n\t\tkill.setKilltime(LocalTime.now());\r\n\t\tkill.setKiller(\"Manuel\");\r\n\t\tkill.setKilled(\"Joaquim\");\r\n\t\tkill.setWeapon(\"Canivete\");\r\n\t\tmockList.add(kill);\r\n\r\n\t\tkill = new Kill();\r\n\t\tkill.setId(2);\r\n\t\tkill.setMatch(100);\r\n\t\tkill.setKilltime(LocalTime.now());\r\n\t\tkill.setKiller(\"Manuel\");\r\n\t\tkill.setKilled(\"Maria\");\r\n\t\tkill.setWeapon(\"Canivete\");\r\n\t\tmockList.add(kill);\r\n\r\n\t\tkill = new Kill();\r\n\t\tkill.setId(3);\r\n\t\tkill.setMatch(100);\r\n\t\tkill.setKilltime(LocalTime.now());\r\n\t\tkill.setKiller(\"Joaquim\");\r\n\t\tkill.setKilled(\"Manuel\");\r\n\t\tkill.setWeapon(\"Pedrada\");\r\n\t\tmockList.add(kill);\r\n\r\n\t\tkill = new Kill();\r\n\t\tkill.setId(4);\r\n\t\tkill.setMatch(100);\r\n\t\tkill.setKilltime(LocalTime.now());\r\n\t\tkill.setKiller(\"Maria\");\r\n\t\tkill.setKilled(\"Joaquim\");\r\n\t\tkill.setWeapon(\"Vassourada\");\r\n\t\tmockList.add(kill);\r\n\r\n\t\tkill = new Kill();\r\n\t\tkill.setId(5);\r\n\t\tkill.setMatch(100);\r\n\t\tkill.setKilltime(LocalTime.now());\r\n\t\tkill.setKiller(\"Manuel\");\r\n\t\tkill.setKilled(\"Maria\");\r\n\t\tkill.setWeapon(\"Soco\");\r\n\t\tmockList.add(kill);\r\n\r\n\t\treturn mockList;\r\n\t}", "@Test\n @Timeout(value = 30)\n public void testRemoveNodeCreatedWatches() throws Exception {\n List<EventType> expectedEvents = new ArrayList<>();\n expectedEvents.add(EventType.DataWatchRemoved);\n MyWatcher myWatcher1 = new MyWatcher(\"/testnode1\", expectedEvents, 1);\n MyWatcher myWatcher2 = new MyWatcher(\"/testnode1/testnode2\", expectedEvents, 1);\n // Adding pre-created watcher\n LOG.info(\"Adding NodeCreated watcher\");\n zk.exists(\"/testnode1\", myWatcher1);\n zk.exists(\"/testnode1/testnode2\", myWatcher2);\n\n String cmdstring1 = \"removewatches /testnode1 -d\";\n LOG.info(\"Remove watchers using shell command : {}\", cmdstring1);\n zkMain.cl.parseCommand(cmdstring1);\n assertTrue(zkMain.processZKCmd(zkMain.cl), \"Removewatches cmd fails to remove pre-create watches\");\n myWatcher1.matches();\n assertEquals(1, zk.getExistWatches().size(), \"Failed to remove pre-create watches :\" + zk.getExistWatches());\n assertTrue(zk.getExistWatches().contains(\"/testnode1/testnode2\"), \"Failed to remove pre-create watches :\" + zk.getExistWatches());\n\n String cmdstring2 = \"removewatches /testnode1/testnode2 -d\";\n LOG.info(\"Remove watchers using shell command : {}\", cmdstring2);\n zkMain.cl.parseCommand(cmdstring2);\n assertTrue(zkMain.processZKCmd(zkMain.cl), \"Removewatches cmd fails to remove data watches\");\n\n myWatcher2.matches();\n assertEquals(0, zk.getExistWatches().size(), \"Failed to remove pre-create watches : \" + zk.getExistWatches());\n }", "@Override\n\tpublic List<TimeInit> getAllTimeInit() {\n\t\treturn timeInitDao.getAllTimeInit();\n\t}", "CloudwatchFactory getCloudwatchFactory();", "java.util.List<com.google.search.now.wire.feed.mockserver.MockServerProto.MockUpdate> \n getMockUpdatesList();", "public List<StyleRun> getStyleRuns() {\n return styleRuns;\n }", "public static void readStopList() throws FileNotFoundException {\n String tempBuffer = \"\";\n Scanner sc_obj = new Scanner(new File(\"./inputFiles/Stopword-List.txt\"));\n\n while(sc_obj.hasNext()) {\n tempBuffer = sc_obj.next();\n stopWords.add(tempBuffer);\n }\n sc_obj.close();\n }", "public ArrayList<Train> getAllTrains() {\n\t\tArrayList<Train> dispatchedTrains = new ArrayList<Train>(trains.size());\n\t\tfor (Train t : dispatchedTrains) {\n\t\t\tif (t.currentBlock != 0) {\n\t\t\t\tdispatchedTrains.add(t);\n\t\t\t}\n\t\t}\n\t\tif (dispatchedTrains.size() > 0) {\n\t\t\treturn dispatchedTrains;\n\t\t}\n\t\treturn null;\n\t}", "public List<Status> getTweets() {\r\n\t\tincrementShutdownTimer();\r\n\t\treturn tweets;\r\n\t}", "public List<Drawing> getChangedDrawings() {\n// Set<String> changedDrawingNames = new HashSet<String>();\n// for (Drawing drawing : _changedDrawings) {\n// changedDrawingNames.add(drawing.getName());\n// }\n return new ArrayList<Drawing>(_changedDrawings);\n }", "public List<String> getWindowsList() {\r\n\t\treturn new ArrayList<String>();\r\n\t}" ]
[ "0.64785606", "0.61937386", "0.61155885", "0.6008245", "0.5961535", "0.58428603", "0.575698", "0.55515206", "0.54817474", "0.5405839", "0.53684586", "0.5275579", "0.5242566", "0.5158634", "0.5158314", "0.51328135", "0.5115917", "0.5104432", "0.50998634", "0.5096551", "0.50859874", "0.5026476", "0.5019179", "0.50100327", "0.49870703", "0.49836534", "0.49803475", "0.49641016", "0.496024", "0.49525174", "0.49419078", "0.49416754", "0.49223927", "0.49167082", "0.49156553", "0.49153218", "0.49142802", "0.49065748", "0.48893455", "0.48461828", "0.4840049", "0.4838879", "0.48377267", "0.48094139", "0.48030466", "0.48021865", "0.47959477", "0.47878835", "0.47797832", "0.47784516", "0.47778833", "0.47768307", "0.47737902", "0.47647268", "0.47621867", "0.47542575", "0.4749342", "0.4746898", "0.47460312", "0.47458085", "0.47389734", "0.47349465", "0.47345036", "0.47337177", "0.47177637", "0.47105587", "0.47077394", "0.47026315", "0.46862987", "0.4683699", "0.46775147", "0.46770534", "0.46647534", "0.46457547", "0.46399513", "0.46342146", "0.46309498", "0.46289232", "0.4626016", "0.4622858", "0.4618537", "0.46030125", "0.45982787", "0.45974854", "0.45943314", "0.45923612", "0.45872056", "0.45738798", "0.4562677", "0.45577836", "0.45562032", "0.45548552", "0.4552049", "0.455096", "0.45415053", "0.4538156", "0.45353293", "0.45350522", "0.4531337", "0.45241314" ]
0.7940721
0
Creates new form rumahSakit
public rumahSakit() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public tambahtoko() {\n initComponents();\n tampilkan();\n form_awal();\n }", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "public form_utama_kasir() {\n initComponents(); \n koneksi DB = new koneksi(); \n con = DB.getConnection();\n aturtext();\n tampilkan();\n nofakturbaru();\n loadData();\n panelEditDataDiri.setVisible(false);\n txtHapusKodeTransaksi.setVisible(false);\n txtHapusQtyTransaksi.setVisible(false);\n txtHapusStokTersedia.setVisible(false);\n }", "public void insert() {\n SiswaModel m = new SiswaModel();\n m.setNisn(view.getTxtNis().getText());\n m.setNik(view.getTxtNik().getText());\n m.setNamaSiswa(view.getTxtNama().getText());\n m.setTempatLahir(view.getTxtTempatLahir().getText());\n \n //save date format\n String date = view.getDatePickerLahir().getText();\n DateFormat df = new SimpleDateFormat(\"MM/dd/yyyy\"); \n Date d = null;\n try {\n d = df.parse(date);\n } catch (ParseException ex) {\n System.out.println(\"Error : \"+ex.getMessage());\n }\n m.setTanggalLahir(d);\n \n //Save Jenis kelamin\n if(view.getRadioLaki().isSelected()){\n m.setJenisKelamin(JenisKelaminEnum.Pria);\n }else{\n m.setJenisKelamin(JenisKelaminEnum.Wanita);\n }\n \n m.setAsalSekolah(view.getTxtAsalSekolah().getText());\n m.setHobby(view.getTxtHoby().getText());\n m.setCita(view.getTxtCita2().getText());\n m.setJumlahSaudara(Integer.valueOf(view.getTxtNis().getText()));\n m.setAyah(view.getTxtNamaAyah().getText());\n m.setAlamat(view.getTxtAlamat().getText());\n \n if(view.getRadioLkkAda().isSelected()){\n m.setLkk(LkkEnum.ada);\n }else{\n m.setLkk(LkkEnum.tidak_ada);\n }\n \n //save agama\n m.setAgama(view.getComboAgama().getSelectedItem().toString());\n \n dao.save(m);\n clean();\n }", "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "FORM createFORM();", "private void btntambahActionPerformed(java.awt.event.ActionEvent evt) {\n\tdiaTambahKelas.pack();\n\tdiaTambahKelas.setVisible(true);\n\trefreshTableKelas();\n//\tDate date = jdWaktu.getDate();\n//\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"YYYY-MM-dd\");\n//\tString strDate = dateFormat.format(date);\n//\tif (validateKelas()) {\n//\t int result = fungsi.executeUpdate(\"insert into kelas values ('\" + txtidkls.getText() + \"', '\" + txtkls.getText() + \"', '\" + txtpertemuan.getText() + \"', '\" + strDate + \"', '\" + txtRuang.getText() + \"')\");\n//\t if (result > 0) {\n//\t\trefreshTableKelas();\n//\t }\n//\t}\n\t\n }", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }", "@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar autor\n String key = request().getQueryString(\"apikey\");\n if (!SeguridadFunctions.esAutorReceta(nuevoPaso.p_receta.getId(), key))\n return Results.badRequest();\n\n // Checkeamos y guardamos\n if (nuevoPaso.checkAndCreate()) {\n Cachefunctions.vaciarCacheListas(\"pasos\", Paso.numPasos(), cache);\n Cachefunctions.vaciarCacheListas(\"recetas\", Receta.numRecetas(), cache);\n return Results.created();\n } else {\n return Results.badRequest();\n }\n\n }", "@RequestMapping(value = \"/absensi/tambah/submit\", method = RequestMethod.POST)\n public String tambahSubmit (@NotNull Authentication auth, Model model, @ModelAttribute(\"newAbsen\") AbsenModel newAbsen)\n {\n UserWeb penggunaLogin = (UserWeb)auth.getPrincipal();\n if (penggunaLogin.getUsername().equalsIgnoreCase(null)) {\n return \"redirect:/login\";\n }\n else if (penggunaDAO.selectPenggunaByUsername(penggunaLogin.getUsername())==null) {\n return \"redirect:/logout\";\n }\n else if (!penggunaLogin.getRole().contains(\"ROLE_EMPLOYEE\")) {\n return \"redirect:/\";\n }\n //end of check\n\n int id_employee = absenDAO.selectIdByUsername(penggunaLogin.getUsername());\n newAbsen.setId_employee(id_employee);\n if(absenDAO.cekAbsen(newAbsen) == null){\n absenDAO.addAbsen(newAbsen);\n return \"redirect:/absen/kelola?success=menambah\";\n } else {\n model.addAttribute(\"message\", \"Absensi pada tanggal \" +newAbsen.getTanggal_absen() + \" gagal dibuat\");\n return \"redirect:/absen/kelola?gagal=menambah\";\n }\n\n }", "@GetMapping(\"/addPharmacist\")\n public String pharmacistForm(Model model) {\n model.addAttribute(\"pharmacist\", new Pharmacist());\n return \"addPharmacist\";\n }", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "@RequestMapping(value = \"/form\",method = RequestMethod.GET)\r\n public String tampilkanForm(@RequestParam(value = \"id\",required=false) String id,\r\n Model m){\n m.addAttribute(\"peserta\",new Peserta());\r\n if(id!=null && !id.isEmpty()){\r\n Peserta p=pd.findOne(id);\r\n if(p !=null){\r\n m.addAttribute(\"peserta\",p);\r\n }\r\n }\r\n return \"peserta/form\";\r\n \r\n }", "@RequestMapping(value = \"/pegawai/tambah\", method = RequestMethod.GET)\n\tprivate String add(Model model) {\n\t\tList<ProvinsiModel> provinsiList = provinsiService.getAllProvinsi();\n\t\tList<JabatanModel> jabatanList = jabatanService.getAllJabatan();\n\t\tList<InstansiModel> listInstansi = instansiService.getInstansiByProvinsi(provinsiList.get(0));\n\t\t\n\t\tPegawaiModel pegawai = new PegawaiModel();\n\t\tpegawai.setListJabatan(new ArrayList<JabatanModel>());\n\t\tpegawai.getListJabatan().add(new JabatanModel());\n\t\t\n\t\tmodel.addAttribute(\"pegawai\", pegawai);\n\t\tmodel.addAttribute(\"listInstansi\", listInstansi);\n\t\tmodel.addAttribute(\"listJabatan\", jabatanList);\n\t\tmodel.addAttribute(\"listProvinsi\", provinsiList);\n\t\treturn \"addPegawai\";\n\t}", "public frm_tutor_subida_prueba() {\n }", "private void btnTambahActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnTambahActionPerformed\n tambahUbah = 1;\n TambahUbahTIK t = new TambahUbahTIK();\n t.setVisible(true);\n this.dispose();\n }", "public FormInserir() {\n initComponents();\n }", "@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public Form_soal() {\n initComponents();\n tampil_soal();\n }", "@GetMapping(\"/createRegistro\")\n\tpublic String crearValidacion(Model model) {\n\t\tList<Barrio> localidades = barrioService.obtenerBarrios();\n\t\tmodel.addAttribute(\"localidades\",localidades);\n\t\tmodel.addAttribute(\"persona\",persona);\n\t\tmodel.addAttribute(\"validacion\",validacion);\n\t\tmodel.addAttribute(\"registro\",registro);\n\t\tmodel.addAttribute(\"barrio\",barrio);\n\t\treturn \"RegistroForm\";\n\t}", "private void TambahData(String judul,String penulis,String harga){\n try{ // memanipulasi kesalahan\n String sql = \"INSERT INTO buku VALUES(NULL,'\"+judul+\"','\"+penulis+\"',\"+harga+\")\"; // menambahkan data dengan mengkonekan dari php\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n stt.executeUpdate(sql); \n model.addRow(new Object[]{judul,penulis,harga}); // datanya akan tertambah dibaris baru di tabel model\n \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "public Angkot createAngkot(Angkot angkot) {\n \n // membuat sebuah ContentValues, yang berfungsi\n // untuk memasangkan data dengan nama-nama\n // kolom pada database\n ContentValues values = new ContentValues();\n values.put(HelperAngkot.COLUMN_NAME, angkot.getName());\n values.put(HelperAngkot.COLUMN_DESCRIPTION, angkot.getDescription());\n values.put(HelperAngkot.COLUMN_TIME, angkot.getTime());\n \n // mengeksekusi perintah SQL insert data\n // yang akan mengembalikan sebuah insert ID \n long insertId = database.insert(HelperAngkot.TABLE_NAME, null,\n values);\n \n // setelah data dimasukkan, memanggil perintah SQL Select \n // menggunakan Cursor untuk melihat apakah data tadi benar2 sudah masuk\n // dengan menyesuaikan ID = insertID \n Cursor cursor = database.query(HelperAngkot.TABLE_NAME,\n allColumns, HelperAngkot.COLUMN_ID + \" = \" + insertId, null,\n null, null, null);\n \n // pindah ke data paling pertama \n cursor.moveToFirst();\n \n // mengubah objek pada kursor pertama tadi\n // ke dalam objek barang\n Angkot newAngkot = cursorToAngkot(cursor);\n \n // close cursor\n cursor.close();\n \n // mengembalikan barang baru\n return newAngkot;\n }", "public FormPencarianBuku() {\n initComponents();\n kosong();\n datatable();\n textfieldNamaFileBuku.setVisible(false);\n textfieldKodeBuku.setVisible(false);\n bukuRandom();\n }", "private void addOrUpdate() {\n try {\n Stokdigudang s = new Stokdigudang();\n if (!tableStok.getSelectionModel().isSelectionEmpty()) {\n s.setIDBarang(listStok.get(row).getIDBarang());\n }\n s.setNamaBarang(tfNama.getText());\n s.setHarga(new Integer(tfHarga.getText()));\n s.setStok((int) spJumlah.getValue());\n s.setBrand(tfBrand.getText());\n s.setIDKategori((Kategorimotor) cbKategori.getSelectedItem());\n s.setIDSupplier((Supplier) cbSupplier.getSelectedItem());\n s.setTanggalDidapat(dateChooser.getDate());\n\n daoStok.addOrUpdateStok(s);\n JOptionPane.showMessageDialog(this, \"Data berhasil disimpan!\");\n showAllDataStok();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Data gagal disimpan!\");\n }\n }", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "private void btnSimpanActionPerformed(java.awt.event.ActionEvent evt) {\n if (txtAlamat.getText().equals(\"\") || txtEmail.getText().equals(\"\") || txtHp.getText().equals(\"\") || txtNama.getText().equals(\"\") || !validate(txtEmail.getText()) || txtPasar.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(this, \"Isi data dengan benar!\");\n return;\n }\n \n SimpleDateFormat formatDate = new SimpleDateFormat(\"yyyyMMdd\");\n\n if (pelanggan.getPgn_id().equals(\"\")) {\n pelanggan.setPgn_id(controlpelanggan.getLastID());\n }\n\n pelanggan.setPgn_nama(txtNama.getText());\n pelanggan.setPgn_no_hp(txtHp.getText());\n pelanggan.setPgn_email(txtEmail.getText());\n pelanggan.setPgn_alamat(txtAlamat.getText());\n pelanggan.setPgn_jumlah_transaksi(0);\n pelanggan.setPgn_nama_pasar(txtPasar.getText());\n pelanggan.setPgn_nama_toko(txtToko.getText());\n pelanggan.setPgn_total_hutang(0);\n pelanggan.setPgn_uang_transaksi(0);\n\n \n if(controlpelanggan.simpanPelanggan(pelanggan)){\n JOptionPane.showMessageDialog(this, \"Berhasil menambah ...\");\n }else{\n JOptionPane.showMessageDialog(this, \"Gagal menambah ...\");\n }\n \n\n addData();\n clear();\n }", "public Result addNewRoomType() {\n\n DynamicForm dynamicform = Form.form().bindFromRequest();\n if (dynamicform.get(\"AdminAddRoom\") != null) {\n\n return ok(views.html.AddRoomType.render());\n }\n\n\n return ok(\"Something went wrong\");\n }", "@RequestMapping(value=\"/komponenGaji/ubah\", method = RequestMethod.POST)\n private String ubahKomponenGajiSubmit(\n @ModelAttribute KomponenPengaliModel komponenGaji,\n Model model) {\n payrollService.ubahKomponenGaji(komponenGaji);\n model.addAttribute(\"komponenGaji\", komponenGaji);\n model.addAttribute(\"message\", \"Komponen Gaji berhasil diubah.\");\n return \"payroll-notifs\";\n }", "public void performTambah() {\n\n dialogEntry.postInit();\n dialogEntry.clearFields();\n dialogEntry.setRowToBeEdited(-1);\n //dialogEntry.clearFields ();\n dialogEntry.show(true); // -- modal dialog ya, jd harus menunggu..\n //if (isDirty()) {\n loadTable();\n // TODO : select last item added\n //}\n }", "private void razia(){\n /* Mereset semua Error dan fokus menjadi default */\n mViewUser.setError(null);\n mViewPassword.setError(null);\n View fokus = null;\n boolean cancel = false;\n\n /* Mengambil text dari form User dan form Password dengan variable baru bertipe String*/\n String user = mViewUser.getText().toString();\n String password = mViewPassword.getText().toString();\n\n /* Jika form user kosong atau TIDAK memenuhi kriteria di Method cekUser() maka, Set error\n * di Form User dengan menset variable fokus dan error di Viewnya juga cancel menjadi true*/\n if (TextUtils.isEmpty(user)){\n mViewUser.setError(\"This field is required\");\n fokus = mViewUser;\n cancel = true;\n }else if(!cekUser(user)){\n mViewUser.setError(\"This Username is not found\");\n fokus = mViewUser;\n cancel = true;\n }\n\n /* Sama syarat percabangannya dengan User seperti di atas. Bedanya ini untuk Form Password*/\n if (TextUtils.isEmpty(password)){\n mViewPassword.setError(\"This field is required\");\n fokus = mViewPassword;\n cancel = true;\n }else if (!cekPassword(password)){\n mViewPassword.setError(\"This password is incorrect\");\n fokus = mViewPassword;\n cancel = true;\n }\n\n /* Jika cancel true, variable fokus mendapatkan fokus */\n if (cancel) fokus.requestFocus();\n else masuk();\n }", "@GetMapping(\"/komponenGaji/ubah\")\n private String ubahKomponenGajiForm(\n @RequestParam(value=\"id\") Long id,\n Model model) {\n KomponenPengaliModel komponenGaji = payrollService.getKomponenGajiById(id);\n model.addAttribute(\"komponenGaji\", komponenGaji);\n return \"komponen-pengali-gaji-form\";\n }", "public TambahProduk() {\n initComponents();\n conn = new Koneksi();\n dapat_produk();\n loadTable();\n }", "public FrmKashidashi() {\n initComponents();\n }", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "public static Result postAddPaper() {\n Form<PaperFormData> formData = Form.form(PaperFormData.class).bindFromRequest();\n Paper info1 = new Paper(formData.get().title, formData.get().authors, formData.get().pages,\n formData.get().channel);\n info1.save();\n return redirect(routes.PaperController.listProject());\n }", "public Result createRoom() {\n\n DynamicForm dynamicForm = Form.form().bindFromRequest();\n String roomType = dynamicForm.get(\"roomType\");\n Double price = Double.parseDouble(dynamicForm.get(\"price\"));\n int bedCount = Integer.parseInt(dynamicForm.get(\"beds\"));\n String wifi = dynamicForm.get(\"wifi\");\n String smoking = dynamicForm.get(\"smoking\");\n\n RoomType roomTypeObj = new RoomType(roomType, price, bedCount, wifi, smoking);\n\n if (dynamicForm.get(\"AddRoomType\") != null) {\n\n Ebean.save(roomTypeObj);\n String message = \"New Room type is created Successfully\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n } else{\n\n String message = \"Failed to create a new Room type\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n\n }\n\n\n\n }", "public FormUtama() {\n initComponents();\n }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "@RequestMapping(value=\"/addpiiriloiguhaldaja\", method=RequestMethod.POST)\r\n\tpublic String addPiiriloiguHaldaja(@ModelAttribute PiiriloiguHaldaja piiriloiguhaldaja, Model model, \r\n\t\t\tHttpServletRequest request) {\n\t\t\r\n\t\tinsertPiiriloiguHaldaja(piiriloiguhaldaja, Integer.parseInt(request.getParameter(\"drp_piiripunkt\")),Integer.parseInt(request.getParameter(\"drp_piiriloik\")));\r\n\t\t\r\n\t\t\r\n\t\treturn \"redirect:/\";\r\n\t}", "public void registrarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.create(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDialog').hide()\");\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se registró con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n }", "public String crea() {\n c.setId(0);\n clienteDAO.crea(c); \n //Post-Redirect-Get\n return \"visualiza?faces-redirect=true&id=\"+c.getId();\n }", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "public static Result newProduct() {\n Form<models.Product> productForm = form(models.Product.class).bindFromRequest();\n if(productForm.hasErrors()) {\n return badRequest(\"Tag name cannot be 'tag'.\");\n }\n models.Product product = productForm.get();\n product.save();\n return ok(product.toString());\n }", "@RequestMapping(value = \"/report.create\", method = RequestMethod.GET)\n @ResponseBody public ModelAndView newreportForm(HttpSession session) throws Exception {\n ModelAndView mav = new ModelAndView();\n mav.setViewName(\"/sysAdmin/reports/details\");\n\n //Create a new blank provider.\n reports report = new reports();\n \n mav.addObject(\"btnValue\", \"Create\");\n mav.addObject(\"reportdetails\", report);\n\n return mav;\n }", "@RequestMapping(value = \"/pegawai/tambah\", method = RequestMethod.POST)\n\tprivate String tambahPegawai(@ModelAttribute PegawaiModel pegawai, Model model) {\n\t\tProvinsiModel provinsi = pegawai.getInstansi().getProvinsi();\n\t\tString nip = \"\";\n\t\tnip = nip + provinsi.getId();\n\t\tint instansiLine = provinsi.getInstansiProvinsi().indexOf(pegawai.getInstansi()) + 1;\n\t\t\n\t\tif(instansiLine < 10) { \n\t\t\tnip = nip + \"0\"+ instansiLine;\n\t\t}else { \n\t\t\tnip = nip + instansiLine; \n\t\t\t}\n\t\t\n\t\tString formatTanggal = pegawai.getTanggal_lahir().toString();\n\t\tString formatDateBaru = formatTanggal.substring(8) + formatTanggal.substring(5, 7) + formatTanggal.substring(2, 4);\n\t\tnip = nip + formatDateBaru;\n\t\tnip+=pegawai.getTahun_masuk();//menambahkan tahun masuk untuk membuat nip\n\t\t\n\t\t//menambahkan urutan masuk untuk membuat nip\n\t\tInstansiModel instansi = pegawai.getInstansi();\n\t\tint nomorDepan=1;\n\t\tfor(PegawaiModel comparePegawai: instansi.getListPegawaiInstansi()) {\n\t\t\tif(nip.equals(comparePegawai.getNip().substring(0, 14))) {\n\t\t\t\tnomorDepan = nomorDepan + 1;\n\t\t\t}\n\t\t}\n\t\tif(nomorDepan < 10) {\n\t\t\tnip = nip + \"0\"+nomorDepan;\n\t\t}else {\n\t\t\tnip = nip + nomorDepan;\n\t\t}\n\t\t\n\t\tpegawai.setNip(nip);\n\t\tpegawaiService.addPegawai(pegawai);\n\t\tmodel.addAttribute(\"pegawai\", pegawai);\n\t\treturn \"dataBertambah\";\n\t}", "public void nuevaRestriccion(RestricionPredio cd) {\n Map<String, List<String>> params = null;\n List<String> p = null;\n if (cd != null) {\n params = new HashMap<>();\n p = new ArrayList<>();\n p.add(cd.getId() + \"\");\n params.put(\"idRestriccion\", p);\n if (ver) {\n p = new ArrayList<>();\n p.add(ver.toString());\n params.put(\"ver\", p);\n ver = false;\n }\n } else {\n\n }\n Utils.openDialog(\"/restricciones/restriccionPredio\", params, \"500\", \"80\");\n }", "private void nuevaLiga() {\r\n\t\tif(Gestion.isModificado()){\r\n\t\t\tint opcion = JOptionPane.showOptionDialog(null, \"¿Desea guardar los cambios?\", \"Nueva Liga\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,null, null);\r\n\t\t\tswitch(opcion){\r\n\t\t\tcase JOptionPane.YES_OPTION:\r\n\t\t\t\tguardar();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.NO_OPTION:\r\n\t\t\t\tGestion.reset();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.CANCEL_OPTION:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\tGestion.reset();\r\n\t\tfrmLigaDeFtbol.setTitle(\"Liga de Fútbol\");\r\n\t}", "@RequestMapping(value = \"/create\", method = RequestMethod.POST)\n public ModelAndView create(@RequestParam(\"horasalida\") Date horasalida,@RequestParam(\"horallegada\") Date horallegada,@RequestParam(\"aeropuerto_idaeropuerto\") Long aeropuerto_idaeropuerto,\n \t\t@RequestParam(\"aeropuerto_idaeropuerto2\") Long aeropuerto_idaeropuerto2,@RequestParam(\"avion_idavion\") Long avion_idavion) {\n Vuelo post=new Vuelo();\n post.setHorallegada(horallegada);\n post.setHorasalida(horasalida);\n\t\t\n post.setAeropuerto_idaeropuerto(aeropuerto_idaeropuerto);\n post.setAeropuerto_idaeropuerto2(aeropuerto_idaeropuerto2);\n post.setAvion_idavion(avion_idavion);\n repository.save(post);\n return new ModelAndView(\"redirect:/vuelos\");\n }", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "private void save() {\n if (String.valueOf(tgl_pengobatanField.getText()).equals(null)\n || String.valueOf(waktu_pengobatanField.getText()).equals(null) ) {\n Toast.makeText(getApplicationContext(),\n \"Ada Yang Belum Terisi\", Toast.LENGTH_SHORT).show();\n } else {\n SQLite.insert(nama_pasien2,\n nama_dokter2,\n tgl_pengobatanField.getText().toString().trim(),\n waktu_pengobatanField.getText().toString(),\n keluhan_pasienField.getText().toString().trim(),\n hasil_diagnosaField.getText().toString().trim(),\n biayaField.getText().toString().trim());\n blank();\n finish();\n }\n }", "@RequestMapping(value={\"/projects/add\"}, method= RequestMethod.GET)\r\n\tpublic String createProjectForm(Model model) {\r\n\t\tUser loggedUser= sessionData.getLoggedUser();\r\n\t\tmodel.addAttribute(\"loggedUser\", loggedUser);\r\n\t\tmodel.addAttribute(\"projectForm\", new Project());\r\n\t\treturn \"addProject\";\r\n\t}", "public ServerskaForma() {\n initComponents();\n \n \n \n }", "@RequestMapping(value = \"/artisan/societe/valider-horaires\", method = RequestMethod.POST)\n\tpublic String sauvegarderHoraires(HttpServletRequest request,\n\t\t\t@Valid @ModelAttribute(\"horairesForm\") HorairesForm form, BindingResult result, Model model) {\n\t\t\n\t\tif (result.hasErrors()) {\n\t\t\tif (result.getFieldError().getField().toString().equals(\"email\")) {\n\t\t\t\tmodel.addAttribute(\"msg\", \"Errreur : le format de l'adresse email n'est pas correct !\");\n\t\t\t} else {\n\t\t\t\tmodel.addAttribute(\"msg\", \"Errreur : au moins un des champs n'a pas été correctement rempli !\");\n\t\t\t}\n\t\t\tmodel.addAttribute(\"errors\", result);\n\n\t\t\tmodel.addAttribute(\"horairesForm\", form);\n\t\t\treturn (\"redirect:artisan/modifier-horaires\");\n\t\t}\n\t\tSociete s = societeDao.findById((long) request.getSession().getAttribute(\"societeId\"));\n\n\t\tHoraire h = horaireDao.findById(form.getHoraireId());\n\t\tSystem.out.println(\"form.getAmOpenHeure() = \" + form.getAmOpenHeure());\n\n\t\tif (form.getAmOpenHeure().equals(\"Fermé\")) {\n\t\t\tSystem.out.println(\"C'est bien fermé\");\n\t\t\th.setAmOpen(\"Fermé\");\n\t\t\th.setAmClose(\"Fermé\");\n\t\t\t\n\t\t} else {\n\t\t\th.setAmOpen(form.getAmOpenHeure() + \":\" + form.getAmOpenMinutes());\n\t\t\th.setAmClose(form.getAmCloseHeure() + \":\" + form.getAmCloseMinutes());\n\t\t}\n\n\t\tif (form.getPmOpenHeure().equals(\"Fermé\")) {\n\t\t\th.setPmOpen(\"Fermé\");\n\t\t\th.setPmClose(\"Fermé\");\n\t\t\ts.setPmCloseToDay(true);\n\t\t} else {\n\t\t\th.setPmOpen(form.getPmOpenHeure() + \":\" + form.getPmOpenMinutes());\n\t\t\th.setPmClose(form.getPmCloseHeure() + \":\" + form.getPmCloseMinutes());\n\t\t\ts.setPmCloseToDay(false);\n\t\t\t\n\t\t}\n\t\ttry {\n\t\t\tsocieteDao.update(s);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\thoraireDao.update(h);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// Pour l'envoi de mails à tous le sutilisateurs ayant accepté la nexsletter\n\t\t// on récupère la liste de newsletters de la société\n\t\t\n\t\t\n\t\tList<Newsletter> news = new ArrayList<Newsletter>();\n\t\tList<String> emails = new ArrayList<>();\n\n\t\tnews = newsletterDao.findBySociete_id(s.getId());\n\t\tfor (Newsletter n : news) {\n\t\t\tUtilisateur utilisateur = utilisateurDao.findById(n.getUtilisateur_id());\n\t\t\tif (utilisateur != null)\n\t\t\t\temails.add(utilisateur.getEmail());\n\t\t}\n\t\t// on envoie les mails\n\t\tString msgMail = \"La société \" + s.getNom() + \" a modifié ses horaires pour le \" +\n\t\th.getJour() + \". Désormais les horaires seront : \";\n\t\tif(h.getAmOpen().equals(\"Fermé\") && h.getPmOpen().equals(\"Fermé\")) {\n\t\t\tmsgMail += \" << Fermé toute la journée >>\";\n\t\t}\n\t\telse if (!h.getAmOpen().equals(\"Fermé\") && h.getPmOpen().equals(\"Fermé\")) {\n\t\t\tmsgMail += \" << Ouvert le matin de \" + h.getAmOpen() + \" à \" + h.getAmClose() + \" mais fermé l'après-midi >>\";\n\t\t}\n\t\telse if(h.getAmOpen().equals(\"Fermé\") && !h.getPmOpen().equals(\"Fermé\")) {\n\t\t\tmsgMail += \" << Fermé le matin mais ouvert l'après-midi de \" + h.getPmOpen() + \" à \" + h.getPmClose() + \">>\";\n\t\t}\n\t\telse {\n\t\t\tmsgMail += \" << le matin de \" + h.getAmOpen() + \" à \" + h.getAmClose();\n\t\t\tmsgMail += \" et l'après-midi de \" + h.getPmOpen() + \" à \" + h.getPmClose() + \" >> \";\n\t\t}\n\t\t\n\t\tUtilisateur u = new Utilisateur();\n\n\t\tif(request.getSession().getAttribute(\"user_id\")!= null) {\n\t\t\tu = utilisateurDao.findById((long) request.getSession().getAttribute(\"user_id\"));\n\t\t}\n\t\telse {\n\t\t\treturn \"login\";\n\t\t}\n\t\tString sujet = s.getNom() + \" vient de modifier ses horaires pour \" + h.getJour() + \" !!!\";\n\t\tString msgEnvoiMail = \"\";\n\t\tfor (String email : emails) {\n\t\t\ttry {\n\t\t\t\tEmailTools.sendEmailToClient(u.getEmail(), sujet, msgMail, email);\n\t\t\t\tmsgEnvoiMail = \"Un email a été envoyé à tous vos clients ayant accepté la newsletter\";\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Erreur = \" + e.getMessage());\n\t\t\t\tmsgEnvoiMail = \"L'envoi de mail a échoué, veuillez contacter l'administrateur du site\";\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tmodel.addAttribute(\"msgEnvoiMail\", msgEnvoiMail);\n\t\t}\n\t\t// Fin Envoi mails\n\n\t\tif (request.getSession().getAttribute(\"user_id\") != null) {\n\t\t\treturn \"redirect:/artisan/societe/mes-horaires?id=\" + request.getSession().getAttribute(\"societeId\");\n\t\t}\n\t\treturn \"login\";\n\t}", "public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}", "@RequestMapping(\"/recipe/new\")\n public String newRecipe(Model model){\n model.addAttribute(\"recipe\", new RecipeCommand());\n \n return \"recipe/recipeForm\";\n }", "@RequestMapping(\"/save\")\n\tpublic String createProjectForm(Project project, Model model) {\n\t\t\n\tproRep.save(project);\n\tList<Project> getall = (List<Project>) proRep.getAll();\n\tmodel.addAttribute(\"projects\", getall);\n\t\n\treturn \"listproject\";\n\t\t\n\t}", "@GetMapping(\"/students/new\")\r\n\tpublic String createStudentForm(Model model) {\n\t\tStudent student =new Student();\r\n\t\tmodel.addAttribute(\"student\",student);\r\n\t\treturn \"create_student\";\r\n\t}", "public FrmIntPasienLama() {\n initComponents();\n\n /* Memberi nilai isian pasien dari form penambahan pasien (FormInternal) */\n txtNoRm.setText(FrmIntPasienBaru.ID);\n txtNamaPasien.setText(FrmIntPasienBaru.nama);\n txtAlamat.setText(FrmIntPasienBaru.alamat);\n txtJenkel.setText(FrmIntPasienBaru.jk);\n txtTglLahir.setText(FrmIntPasienBaru.tglLahir);\n\n /* Mengisi comboBox pilihPoliTujuan dari database */\n tms.setData(ss.serviceGetAllSpesialis());\n int a = tms.getRowCount();\n pilihPoliTujuan.setModel(new javax.swing.DefaultComboBoxModel(ss.serviceGetAllNamaSpesialis(a)));\n\n /* Mengisi comboBox pilihJaminan dari database */\n tmj.setData(js.serviceGetAllJaminan());\n int b = tmj.getRowCount();\n pilihJaminan.setModel(new javax.swing.DefaultComboBoxModel(js.serviceGetAllIdJaminan(b)));\n\n tmsf.setData(sfs.serviceGetAllStaf());\n int c = tmsf.getRowCount();\n pilihStaf.setModel(new javax.swing.DefaultComboBoxModel(sfs.serviceGetAllNamaStaf(c)));\n\n Date dt = new Date();\n tglPendaftaran.setDate(dt);\n\n /* Mengisi pilihan dokter berdasarkan pilihan spesialis */\n //isiPilihanDokter();\n\n /* Menampilkan konfirmasi apabila form pendaftaran ini di-close */\n this.addInternalFrameListener(new InternalFrameAdapter() {\n\n @Override\n public void internalFrameClosing(InternalFrameEvent e) {\n if (txtNamaPasien.getText() == null ? \"\" == null : txtNamaPasien.getText().equals(\"\")) {\n dispose();\n } else {\n int pilih = JOptionPane.showConfirmDialog(rootPane,\n \"Yakin ingin membatalkan pendaftaran ke Poliklinik?\",\n \"Konfirmasi\",\n JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n if (pilih == JOptionPane.OK_OPTION) {\n dispose();\n /* Menghilangan nilai dari form penambahan pasien (internal) */\n FrmIntPasienBaru.ID = \"\";\n FrmIntPasienBaru.nama = \"\";\n FrmIntPasienBaru.alamat = \"\";\n FrmIntPasienBaru.jk = \"\";\n FrmIntPasienBaru.tglLahir = \"\";\n }\n }\n }\n });\n\n /* Apabila pilihan poli tujuan berubah, maka pilihan dokter akan ikut berubah */\n pilihPoliTujuan.addItemListener(new ItemListener() {\n\n public void itemStateChanged(ItemEvent e) {\n try {\n isiPilihanDokter();\n } catch (Throwable t) {\n }\n }\n });\n\n\n }", "@RequestMapping(value = \"/add\",method = RequestMethod.GET)\n \tpublic String addPackageForm (@RequestParam(value=\"id\", required=true) Integer programId, Model model) {\n \t\tlogger.info (\"Generated new package form.\");\n\n \t\tmodel.addAttribute (\"pack\", new Package());\n \t\tmodel.addAttribute(\"programId\", programId);\n \t\t\n \t\treturn \"packageAddNew\";\n \t}", "protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }", "public void clickCreate() {\n\t\tbtnCreate.click();\n\t}", "public StavkaFaktureInsert() {\n initComponents();\n CBFakture();\n CBProizvod();\n }", "public String formCreated()\r\n {\r\n return formError(\"201 Created\",\"Object was created\");\r\n }", "@GetMapping(\"/producto/nuevo\")\n\tpublic String nuevoProductoForm(Model model) {\n\t\tmodel.addAttribute(\"producto\", new Producto());\n\t\treturn \"app/producto/form\";\n\t}", "public FrmInsertar() {\n initComponents();\n }", "@RequestMapping(value = \"/newrecipe\", method = RequestMethod.GET)\n\tpublic String newRecipeForm(Model model) {\n\t\tmodel.addAttribute(\"recipe\", new Recipe()); //empty recipe object\n\t\tmodel.addAttribute(\"categories\", CatRepo.findAll());\n\t\treturn \"newrecipe\";\n\t}", "@GetMapping(\"/restaurante/new\")\n\tpublic String newRestaurante(Model model) {\n\t\tmodel.addAttribute(\"restaurante\", new Restaurante());\n\t\tControllerHelper.setEditMode(model, false);\n\t\tControllerHelper.addCategoriasToRequest(categoriaRestauranteRepository, model);\n\t\t\n\t\treturn \"restaurante-cadastro\";\n\t\t\n\t}", "public F_Registrasi() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setExtendedState(JFrame.MAXIMIZED_BOTH);\n this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);\n kon = new koneksi();\n// btn_ubah.setVisible(false);\n model = new DefaultTableModel ();\n jTable1.setModel(model);\n model.addColumn(\"Id\");\n model.addColumn(\"Nama\");\n model.addColumn(\"Alamat\");\n model.addColumn(\"Nomor\");\n }", "private void srediFormu() {\n List<PoslovniPartner> lpp = new ArrayList<>();\n try {\n lpp = Kontroler.vratiInstancu().vratiPoslovnePartnere();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"ERROR\", JOptionPane.ERROR_MESSAGE);\n ex.printStackTrace();\n }\n\n List<NačinPlaćanja> lnp = new ArrayList<>();\n try {\n lnp = Kontroler.vratiInstancu().vratiNačinePlaćanja();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"ERROR\", JOptionPane.ERROR_MESSAGE);\n ex.printStackTrace();\n }\n\n List<Proizvod> lp = new ArrayList<>();\n try {\n lp = Kontroler.vratiInstancu().vratiProizvode();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"ERROR\", JOptionPane.ERROR_MESSAGE);\n ex.printStackTrace();\n }\n\n jcbPartner.setModel(new DefaultComboBoxModel(lpp.toArray()));\n jcbNačinPlaćanja.setModel(new DefaultComboBoxModel(lnp.toArray()));\n\n Faktura izabranaFaktura = (Faktura) Util.vratiInstancu().vrati(\"izabrana_faktura\");\n if (izabranaFaktura != null) {\n jcbPartner.setSelectedItem(izabranaFaktura.getPoslovniPartner());\n jcbNačinPlaćanja.setSelectedItem(izabranaFaktura.getNačinPlaćanja());\n jtxtNapomena.setText(izabranaFaktura.getNapomena());\n if (izabranaFaktura.getDatumFakturisanja() != null) {\n jtxtDatumFakturisanja.setText(df.format(izabranaFaktura.getDatumFakturisanja()));\n }\n if (izabranaFaktura.getRok() != null) {\n jtxtRok.setText(df.format(izabranaFaktura.getRok()));\n }\n jlbKompletirana.setText(izabranaFaktura.getKompletirana() ? \"(KOMPLETIRANA)\" : \"(DRAFT)\");\n jlblBrojFakture1.setText(izabranaFaktura.getBrojFakture());\n jtblStavkeFakture.setModel(new StavkaFaktureTableModel((izabranaFaktura)));\n Double netoIznos = 0d;\n for (StavkaFakture stavkaFakture : izabranaFaktura.getStavke()) {\n netoIznos += stavkaFakture.getJediničnaCena() * stavkaFakture.getKoličina();\n }\n jtxtNetoVrednost.setText(String.valueOf(Math.round(netoIznos * 1000.0) / 1000.0));\n jbtnKreirajNovuFakturu.setVisible(false);\n jbtnSačuvajFakturu.setText(\"Izmeni fakturu\");\n if (izabranaFaktura.getKompletirana()) {\n enableAllComponents(false);\n jtxtUkupnaVrednost.setText(String.valueOf((double) Math.round(izabranaFaktura.getUkupanIznos() * 1000) / 1000));\n jtxtPDV.setText(String.valueOf((double) Math.round(izabranaFaktura.getUkupanPorez() * 1000) / 1000));\n jtxtFakturisao.setText(slavko.baze2.procesnabavke.gui.util.Util.vratiInstancu().vrati(\"prijavljeni_korisnik\").toString());\n }\n Util.vratiInstancu().obriši(\"izabrana_faktura\");\n\n } else {\n jlblBrojFakture1.setText(\"\");\n jlbKompletirana.setVisible(false);\n jcbPartner.setSelectedItem(null);\n jcbNačinPlaćanja.setSelectedItem(null);\n jtblStavkeFakture.setModel(new StavkaFaktureTableModel(new Faktura()));\n jtxtNetoVrednost.setText(\"0.0\");\n enableAllComponents(false);\n }\n\n }", "@GetMapping(\"/add\")\n public String showSocioForm(Model model, Persona persona) {\n List<Cargo> cargos = cargoService.getCargos();\n model.addAttribute(\"cargos\", cargos);\n return \"/backoffice/socioForm\";\n }", "public KorisnikForma() {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tsetBounds(100, 100, 629, 613);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\t\t\n\t\tJLabel lblRegistracija = new JLabel(\"Registracija !!!\");\n\t\tlblRegistracija.setFont(new Font(\"Tahoma\", Font.BOLD, 26));\n\t\tlblRegistracija.setBounds(189, 35, 306, 36);\n\t\tcontentPane.add(lblRegistracija);\n\t\t\n\t\ttfImePrezime = new JTextField();\n\t\ttfImePrezime.setBounds(425, 143, 153, 20);\n\t\tcontentPane.add(tfImePrezime);\n\t\ttfImePrezime.setColumns(10);\n\t\t\n\t\ttfUser = new JTextField();\n\t\ttfUser.setBounds(425, 207, 153, 20);\n\t\tcontentPane.add(tfUser);\n\t\ttfUser.setColumns(10);\n\t\t\n\t\ttfPass = new JTextField();\n\t\ttfPass.setBounds(425, 267, 153, 20);\n\t\tcontentPane.add(tfPass);\n\t\ttfPass.setColumns(10);\n\t\t\n\t\ttfTelefon = new JTextField();\n\t\ttfTelefon.setBounds(425, 382, 153, 20);\n\t\tcontentPane.add(tfTelefon);\n\t\ttfTelefon.setColumns(10);\n\t\tImage img2= new ImageIcon(this.getClass().getResource(\"/download.png\")).getImage();\n\t\t\n\t\tJLabel lblImePrezime = new JLabel(\"Ime i prezime :\");\n\t\tlblImePrezime.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblImePrezime.setBounds(273, 143, 89, 17);\n\t\tcontentPane.add(lblImePrezime);\n\t\t\n\t\tJLabel lblzvezda = new JLabel(\"*\");\n\t\tlblzvezda.setForeground(Color.RED);\n\t\tlblzvezda.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblzvezda.setBounds(396, 144, 19, 14);\n\t\tcontentPane.add(lblzvezda);\n\t\t\n\t\tJLabel label = new JLabel(\"*\");\n\t\tlabel.setForeground(Color.RED);\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel.setBounds(396, 208, 19, 14);\n\t\tcontentPane.add(label);\n\t\t\n\t\tJLabel label_1 = new JLabel(\"*\");\n\t\tlabel_1.setForeground(Color.RED);\n\t\tlabel_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_1.setBounds(396, 268, 19, 14);\n\t\tcontentPane.add(label_1);\n\t\t\n\t\tJLabel label_2 = new JLabel(\"*\");\n\t\tlabel_2.setForeground(Color.RED);\n\t\tlabel_2.setBackground(Color.WHITE);\n\t\tlabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_2.setBounds(396, 325, 19, 14);\n\t\tcontentPane.add(label_2);\n\t\t\n\t\tJLabel label_3 = new JLabel(\"*\");\n\t\tlabel_3.setForeground(Color.RED);\n\t\tlabel_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_3.setBounds(396, 383, 19, 14);\n\t\tcontentPane.add(label_3);\n\t\t\n\t\tJLabel lblUserName = new JLabel(\"Username : \");\n\t\tlblUserName.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblUserName.setBounds(273, 207, 89, 17);\n\t\tcontentPane.add(lblUserName);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"* Obavezna polja za unos ! \");\n\t\tlblNewLabel.setForeground(Color.RED);\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 14));\n\t\tlblNewLabel.setBounds(375, 523, 211, 23);\n\t\tcontentPane.add(lblNewLabel);\n\t\t\n\t\tJLabel lblPass = new JLabel(\"Password :\");\n\t\tlblPass.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblPass.setBounds(273, 267, 89, 17);\n\t\tcontentPane.add(lblPass);\n\t\t\n\t\tJLabel lblDate = new JLabel(\"Datum rodjenja : \");\n\t\tlblDate.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblDate.setBounds(273, 324, 113, 17);\n\t\tcontentPane.add(lblDate);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Telefon :\");\n\t\tlblNewLabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblNewLabel_2.setBounds(273, 382, 100, 17);\n\t\tcontentPane.add(lblNewLabel_2);\n\t\t\n\t\tJLabel lblImage = new JLabel(\"\");\n\t\tImage img3 = new ImageIcon(this.getClass().getResource(\"/admin.png\")).getImage();\n\t\tlblImage.setIcon(new ImageIcon(img3));\n\t\tlblImage.setBounds(38, 82, 170, 357);\n\t\tcontentPane.add(lblImage);\n\t\t\n\t\tJButton btnSacuvaj = new JButton(\"Sacuvaj\");\n\t\tbtnSacuvaj.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tImage img4 = new ImageIcon(this.getClass().getResource(\"/download.png\")).getImage();\n\t\tbtnSacuvaj.setIcon(new ImageIcon(img4));\n\t\tbtnSacuvaj.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tDateFormat df= new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\n\t\t\t\t if(tfImePrezime.getText().length()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfUser.getText().length ()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfPass.getText().length()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(dcDatum.getDate() == null) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfTelefon.getText().length ()==0) // Checking for empty field\n\t\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else{\n\t\t\t\ttry {\n\t\t\t\tString imePrezime = tfImePrezime.getText().toString();\n\t\t\t\tString userName = tfUser.getText().toString();\n\t\t\t\tString password = tfPass.getText().toString();\n\t\t\t\tString date =df.format(dcDatum.getDate());\n\t\t\t\tString telefon = tfTelefon.getText().toString();\n\t\t\t\t\n\t\t\t\tKontroler.getInstanca().upisiKorisnika(imePrezime,userName,password,date,telefon);\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Uspesna registracija\");\n\t\t\t\t\n\t\t\t\t}catch(Exception e1) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnSacuvaj.setBounds(450, 451, 128, 23);\n\t\tcontentPane.add(btnSacuvaj);\n\t\t\n\t\tJButton btnNazad = new JButton(\"Nazad\");\n\t\tImage img5 = new ImageIcon(this.getClass().getResource(\"/nazad1.png\")).getImage();\n\t\tbtnNazad.setIcon(new ImageIcon(img5));\n\t\tbtnNazad.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tLogovanje l = new Logovanje();\n\t\t\t\tl.setVisible(true);\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tbtnNazad.setBounds(10, 11, 105, 23);\n\t\tcontentPane.add(btnNazad);\n\t\t\n\t\tdcDatum = new JDateChooser();\n\t\tdcDatum.setBounds(425, 319, 153, 20);\n\t\tcontentPane.add(dcDatum);\n\t\t\n\t\n\t\t\n\t}", "public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}", "private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }", "@RequestMapping(method = RequestMethod.POST, value = {\"\",\"/\"})\r\n\tpublic ResponseEntity<FormularioDTO> add(@RequestBody @Valid Formulario formulario) throws AuthenticationException {\r\n\t\tformulario.setInstituicao(new Instituicao(authService.getDados().getInstituicaoId()));\r\n\t\treturn new ResponseEntity<>(formularioService.create(formulario), HttpStatus.CREATED);\r\n\t}", "@RequestMapping(\"/fotografo/{idPh}/addAlbum\")\n\tpublic String addAlbum(@PathVariable (\"idPh\") Long idPh, Model model) {\n\n\t\tmodel.addAttribute(\"album\", new Album());\n\t\tmodel.addAttribute(\"fotografo\", this.fotografoService.fotografoPerId(idPh).get());\n\n\t\treturn \"albumForm.html\";\n\t}", "@RequestMapping(value=\"/formpaciente\")\r\n\tpublic String crearPaciente(Map<String, Object> model) {\t\t\r\n\t\t\r\n\t\tPaciente paciente = new Paciente();\r\n\t\tmodel.put(\"paciente\", paciente);\r\n\t\tmodel.put(\"obrasociales\",obraSocialService.findAll());\r\n\t\t//model.put(\"obrasPlanesForm\", new ObrasPlanesForm());\r\n\t\t//model.put(\"planes\", planService.findAll());\r\n\t\tmodel.put(\"titulo\", \"Formulario de Alta de Paciente\");\r\n\t\t\r\n\t\treturn \"formpaciente\";\r\n\t}", "public FormularioPregunta() {\n initComponents();\n \n setLocationRelativeTo(this);\n }", "public Perumahan() {\n initComponents();\n aturModelTabel();\n Tipe();\n showForm(false);\n showData(\"\");\n }", "@RequestMapping(\"/book/new\")\n public String newBook(Model model){\n model.addAttribute(\"book\", new Book ());\n return \"bookform\";\n }", "private void createContents() throws SQLException {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM);\n\t\tshell.setImage(user.getIcondata().BaoduongIcon);\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\tsetText(\"Tạo Công việc (Đợt Bảo dưỡng)\");\n\t\tshell.setSize(777, 480);\n\t\tnew FormTemplate().setCenterScreen(shell);\n\n\t\tFill_ItemData fi = new Fill_ItemData();\n\n\t\tSashForm sashForm = new SashForm(shell, SWT.NONE);\n\t\tsashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));\n\n\t\tSashForm sashForm_3 = new SashForm(sashForm, SWT.VERTICAL);\n\n\t\tSashForm sashForm_2 = new SashForm(sashForm_3, SWT.NONE);\n\t\tComposite composite = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setText(\"Tên đợt Bảo dưỡng*:\");\n\n\t\ttext_Tendot_Baoduong = new Text(composite, SWT.BORDER);\n\t\ttext_Tendot_Baoduong.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\n\t\tLabel label_3 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_3 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_3.verticalIndent = 3;\n\t\tlabel_3.setLayoutData(gd_label_3);\n\t\tlabel_3.setText(\"Loại phương tiện:\");\n\n\t\tcombo_Loaiphuongtien = new Combo(composite, SWT.READ_ONLY);\n\t\tcombo_Loaiphuongtien.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\tFill_ItemData f = new Fill_ItemData();\n\t\t\t\t\tif ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Xemay()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Xemay());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t} else if ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Oto()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Oto());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tcombo_Loaiphuongtien.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 1, 1));\n\t\tfi.setComboBox_LOAIPHUONGTIEN_Phuongtien_Giaothong(combo_Loaiphuongtien, 0);\n\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_4 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_4.verticalIndent = 3;\n\t\tlabel_4.setLayoutData(gd_label_4);\n\t\tlabel_4.setText(\"Mô tả:\");\n\n\t\ttext_Mota = new Text(composite, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\n\t\ttext_Mota.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true, 1, 1));\n\t\tnew Label(composite, SWT.NONE);\n\n\t\tbtnNgunSaCha = new Button(composite, SWT.NONE);\n\t\tGridData gd_btnNgunSaCha = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNgunSaCha.widthHint = 85;\n\t\tbtnNgunSaCha.setLayoutData(gd_btnNgunSaCha);\n\t\tbtnNgunSaCha.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tChonNguonSuachua_Baoduong cnsb = new ChonNguonSuachua_Baoduong(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\tcnsb.open();\n\t\t\t\t\tnsb = cnsb.getResult();\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null) {\n\t\t\t\t\t\tfillNguonSuachuaBaoduong(nsb);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (nsb == null) {\n\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_QUESTION | SWT.YES | SWT.NO | SWT.CLOSE);\n\t\t\t\t\t\tm.setText(\"Xóa dữ liệu cũ?\");\n\t\t\t\t\t\tm.setMessage(\"Bạn muốn xóa dữ liệu cũ?\");\n\t\t\t\t\t\tint rc = m.open();\n\t\t\t\t\t\tswitch (rc) {\n\t\t\t\t\t\tcase SWT.CANCEL:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.YES:\n\t\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(-1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.NO:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t}\n\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG(ViewAndEdit_MODE_dsb);\n\t\t\t\t\tfillNguonSuachuaBaoduong(ViewAndEdit_MODE_dsb);\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNgunSaCha.setText(\"Liên hệ\");\n\t\tbtnNgunSaCha.setImage(user.getIcondata().PhoneIcon);\n\n\t\tComposite composite_1 = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite_1.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblSXut = new Label(composite_1, SWT.NONE);\n\t\tlblSXut.setText(\"Số đề xuất: \");\n\n\t\ttext_Sodexuat = new Text(composite_1, SWT.NONE);\n\t\ttext_Sodexuat.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Sodexuat.setEditable(false);\n\t\ttext_Sodexuat.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyThng = new Label(composite_1, SWT.NONE);\n\t\tlblNgyThng.setText(\"Ngày tháng: \");\n\n\t\ttext_NgaythangVanban = new Text(composite_1, SWT.NONE);\n\t\ttext_NgaythangVanban.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_NgaythangVanban.setEditable(false);\n\t\ttext_NgaythangVanban.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblnV = new Label(composite_1, SWT.NONE);\n\t\tlblnV.setText(\"Đơn vị: \");\n\n\t\ttext_Donvi = new Text(composite_1, SWT.NONE);\n\t\ttext_Donvi.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Donvi.setEditable(false);\n\t\ttext_Donvi.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyXL = new Label(composite_1, SWT.NONE);\n\t\tlblNgyXL.setText(\"Ngày xử lý:\");\n\n\t\ttext_Ngaytiepnhan = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaytiepnhan.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaytiepnhan.setEditable(false);\n\t\ttext_Ngaytiepnhan.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyGiao = new Label(composite_1, SWT.NONE);\n\t\tlblNgyGiao.setText(\"Ngày giao:\");\n\n\t\ttext_Ngaygiao = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaygiao.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaygiao.setEditable(false);\n\t\ttext_Ngaygiao.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblTrchYu = new Label(composite_1, SWT.NONE);\n\t\tGridData gd_lblTrchYu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblTrchYu.verticalIndent = 3;\n\t\tlblTrchYu.setLayoutData(gd_lblTrchYu);\n\t\tlblTrchYu.setText(\"Ghi chú: \");\n\n\t\ttext_Trichyeu = new Text(composite_1, SWT.NONE);\n\t\ttext_Trichyeu.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Trichyeu.setEditable(false);\n\t\tGridData gd_text_Trichyeu = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n\t\tgd_text_Trichyeu.heightHint = 27;\n\t\ttext_Trichyeu.setLayoutData(gd_text_Trichyeu);\n\t\tnew Label(composite_1, SWT.NONE);\n\n\t\tbtnThemDexuat = new Button(composite_1, SWT.NONE);\n\t\tbtnThemDexuat.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tInsert_dx = null;\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null\n\t\t\t\t\t\t\t&& ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() > 0) {\n\t\t\t\t\t\tInsert_dx = controler.getControl_DEXUAT().get_DEXUAT(ViewAndEdit_MODE_dsb);\n\t\t\t\t\t}\n\t\t\t\t\tif (Insert_dx != null) {\n\t\t\t\t\t\tTAPHOSO ths = controler.getControl_TAPHOSO().get_TAP_HO_SO(Insert_dx.getMA_TAPHOSO());\n\t\t\t\t\t\tTaphoso_View thsv = new Taphoso_View(shell, SWT.DIALOG_TRIM, user, ths, false);\n\t\t\t\t\t\tthsv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tNhapDeXuat ndx = new NhapDeXuat(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\t\tndx.open();\n\t\t\t\t\t\tInsert_dx = ndx.result;\n\t\t\t\t\t\tif (Insert_dx == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tboolean ict = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(\n\t\t\t\t\t\t\t\t\t\tViewAndEdit_MODE_dsb, Ma_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tif (ict) {\n\t\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_WORKING);\n\t\t\t\t\t\t\tm.setText(\"Hoàn tất\");\n\t\t\t\t\t\t\tm.setMessage(\"Thêm Đề xuất Hoàn tất\");\n\t\t\t\t\t\t\tm.open();\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (NullPointerException | SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnThemDexuat.setImage(user.getIcondata().DexuatIcon);\n\t\tbtnThemDexuat.setLayoutData(new GridData(SWT.FILL, SWT.BOTTOM, false, false, 1, 1));\n\t\tbtnThemDexuat.setText(\"Thêm Hồ sơ\");\n\t\tsashForm_2.setWeights(new int[] { 1000, 618 });\n\n\t\tSashForm sashForm_1 = new SashForm(sashForm_3, SWT.NONE);\n\t\ttree_PTTS = new Tree(sashForm_1, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI);\n\t\ttree_PTTS.setLinesVisible(true);\n\t\ttree_PTTS.setHeaderVisible(true);\n\t\ttree_PTTS.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event arg0) {\n\t\t\t\tTreeItem[] til = tree_PTTS.getSelection();\n\t\t\t\tif (til.length > 0) {\n\t\t\t\t\tRow_PTTSthamgia_Baoduong pttg = (Row_PTTSthamgia_Baoduong) til[0].getData();\n\t\t\t\t\tsetHinhthuc_Baoduong(pttg.getHtbd());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttree_PTTS.addListener(SWT.SetData, new Listener() {\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tif (tree_PTTS.getItems().length > 0) {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(false);\n\t\t\t\t} else {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tTreeColumn trclmnStt = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnStt.setWidth(50);\n\t\ttrclmnStt.setText(\"Stt\");\n\n\t\tTreeColumn trclmnTnMT = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnTnMT.setWidth(100);\n\t\ttrclmnTnMT.setText(\"Tên, mô tả\");\n\n\t\tTreeColumn trclmnHngSnXut = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnHngSnXut.setWidth(100);\n\t\ttrclmnHngSnXut.setText(\"Hãng sản xuất\");\n\n\t\tTreeColumn trclmnDngXe = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnDngXe.setWidth(100);\n\t\ttrclmnDngXe.setText(\"Dòng xe\");\n\n\t\tTreeColumn trclmnBinS = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBinS.setWidth(100);\n\t\ttrclmnBinS.setText(\"Biển số\");\n\n\t\tTreeColumn trclmnNgySDng = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnNgySDng.setWidth(100);\n\t\ttrclmnNgySDng.setText(\"Ngày sử dụng\");\n\n\t\tTreeColumn trclmnMPhngTin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnMPhngTin.setWidth(90);\n\t\ttrclmnMPhngTin.setText(\"Mã PTTS\");\n\n\t\tMenu menu = new Menu(tree_PTTS);\n\t\ttree_PTTS.setMenu(menu);\n\n\t\tMenuItem mntmThmPhngTin = new MenuItem(menu, SWT.NONE);\n\t\tmntmThmPhngTin.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tThem_PTGT();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmThmPhngTin.setText(\"Thêm phương tiện tài sản\");\n\n\t\tMenuItem mntmXoa = new MenuItem(menu, SWT.NONE);\n\t\tmntmXoa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tdelete();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\tmntmXoa.setText(\"Xóa\");\n\n\t\tTreeColumn trclmnThayNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayNht.setWidth(70);\n\t\ttrclmnThayNht.setText(\"Thay nhớt\");\n\n\t\tTreeColumn trclmnThayLcNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNht.setWidth(100);\n\t\ttrclmnThayLcNht.setText(\"Thay lọc nhớt\");\n\n\t\tTreeColumn trclmnThayLcGi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcGi.setWidth(100);\n\t\ttrclmnThayLcGi.setText(\"Thay lọc gió\");\n\n\t\tTreeColumn trclmnThayLcNhin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNhin.setWidth(100);\n\t\ttrclmnThayLcNhin.setText(\"Thay lọc nhiên liệu\");\n\n\t\tTreeColumn trclmnThayDuPhanh = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuPhanh.setWidth(100);\n\t\ttrclmnThayDuPhanh.setText(\"Thay Dầu phanh - ly hợp\");\n\n\t\tTreeColumn trclmnThayDuHp = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuHp.setWidth(100);\n\t\ttrclmnThayDuHp.setText(\"Thay Dầu hộp số\");\n\n\t\tTreeColumn trclmnThayDuVi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuVi.setWidth(100);\n\t\ttrclmnThayDuVi.setText(\"Thay Dầu vi sai\");\n\n\t\tTreeColumn trclmnLcGiGin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnLcGiGin.setWidth(100);\n\t\ttrclmnLcGiGin.setText(\"Lọc gió giàn lạnh\");\n\n\t\tTreeColumn trclmnThayDuTr = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuTr.setWidth(100);\n\t\ttrclmnThayDuTr.setText(\"Thay dầu trợ lực lái\");\n\n\t\tTreeColumn trclmnBoDngKhcs = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBoDngKhcs.setWidth(100);\n\t\ttrclmnBoDngKhcs.setText(\"Bảo dưỡng khác\");\n\n\t\tExpandBar expandBar = new ExpandBar(sashForm_1, SWT.V_SCROLL);\n\t\texpandBar.setForeground(SWTResourceManager.getColor(SWT.COLOR_LIST_FOREGROUND));\n\n\t\tExpandItem xpndtmLoiHnhBo = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setText(\"Loại hình bảo dưỡng\");\n\n\t\tComposite grpHnhThcBo = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setControl(grpHnhThcBo);\n\t\tgrpHnhThcBo.setLayout(new GridLayout(1, false));\n\n\t\tbtnDaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDaudongco.setText(\"Dầu động cơ\");\n\n\t\tbtnLocdaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocdaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocdaudongco.setText(\"Lọc dầu động cơ\");\n\n\t\tbtnLocgio = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgio.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgio.setText(\"Lọc gió\");\n\n\t\tbtnLocnhienlieu = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocnhienlieu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocnhienlieu.setText(\"Lọc nhiên liệu\");\n\n\t\tbtnDauphanh_lyhop = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauphanh_lyhop.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauphanh_lyhop.setText(\"Dầu phanh và dầu ly hợp\");\n\n\t\tbtnDauhopso = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauhopso.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauhopso.setText(\"Dầu hộp số\");\n\n\t\tbtnDauvisai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauvisai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauvisai.setText(\"Dầu vi sai\");\n\n\t\tbtnLocgiogianlanh = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgiogianlanh.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgiogianlanh.setText(\"Lọc gió giàn lạnh\");\n\n\t\tbtnDautroluclai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDautroluclai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDautroluclai.setText(\"Dầu trợ lực lái\");\n\n\t\tbtnBaoduongkhac = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnBaoduongkhac.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBaoduongkhac.setText(\"Bảo dưỡng khác\");\n\t\txpndtmLoiHnhBo.setHeight(xpndtmLoiHnhBo.getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT).y);\n\n\t\tExpandItem xpndtmLinH = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLinH.setText(\"Liên hệ\");\n\n\t\tComposite composite_2 = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLinH.setControl(composite_2);\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblTnLinH = new Label(composite_2, SWT.NONE);\n\t\tlblTnLinH.setText(\"Tên liên hệ: \");\n\n\t\ttext_Tenlienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Tenlienhe.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblGiiThiu = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblGiiThiu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblGiiThiu.verticalIndent = 3;\n\t\tlblGiiThiu.setLayoutData(gd_lblGiiThiu);\n\t\tlblGiiThiu.setText(\"Giới thiệu: \");\n\n\t\ttext_Gioithieu = new Text(composite_2, SWT.BORDER);\n\t\ttext_Gioithieu.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t\tLabel lblLinH = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblLinH = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblLinH.verticalIndent = 3;\n\t\tlblLinH.setLayoutData(gd_lblLinH);\n\t\tlblLinH.setText(\"Liên hệ: \");\n\n\t\ttext_Lienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Lienhe.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\txpndtmLinH.setHeight(120);\n\t\tsashForm_1.setWeights(new int[] { 543, 205 });\n\t\tsashForm_3.setWeights(new int[] { 170, 228 });\n\t\tsashForm.setWeights(new int[] { 1000 });\n\n\t\tbtnLuu = new Button(shell, SWT.NONE);\n\t\tbtnLuu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (dataCreate != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTaoMoi_DotSuachua_Baoduong();\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate void TaoMoi_DotSuachua_Baoduong() throws SQLException {\n\t\t\t\tif (checkTextNotNULL()) {\n\t\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = getDOT_SUACHUA_BAODUONG();\n\t\t\t\t\tint key = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.InsertDOT_THUCHIEN_SUACHUA_BAODUONG(dsb, null, null);\n\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\tif (key >= 0) {\n\t\t\t\t\t\tif (nsb != null)\n\t\t\t\t\t\t\tdsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG().update_DOT_THUCHIEN_SUACHUA_BAODUONG(dsb);\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien > 0)\n\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(dsb,\n\t\t\t\t\t\t\t\t\t\t\tMa_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tTreeItem[] til = tree_PTTS.getItems();\n\t\t\t\t\t\tif (til.length > 0) {\n\t\t\t\t\t\t\tfor (TreeItem ti : til) {\n\t\t\t\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\t\t\t\tRow_PTTSthamgia_Baoduong rp = (Row_PTTSthamgia_Baoduong) ti.getData();\n\t\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG_TAISAN()\n\t\t\t\t\t\t\t\t\t\t.set_DOT_THUCHIEN_SUACHUA_TAISAN(dsb, rp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tshowMessage_Succes();\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tGiaoViec gv = new GiaoViec(user);\n\t\t\t\t\t\tgv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowMessage_Fail();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tshowMessage_FillText();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate DOT_THUCHIEN_SUACHUA_BAODUONG getDOT_SUACHUA_BAODUONG() {\n\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = new DOT_THUCHIEN_SUACHUA_BAODUONG();\n\t\t\t\tdsb.setTEN_DOT_THUCHIEN_SUACHUA_BAODUONG(text_Tendot_Baoduong.getText());\n\t\t\t\tdsb.setLOAI_PHUONG_TIEN(\n\t\t\t\t\t\tInteger.valueOf((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText())));\n\t\t\t\tdsb.setSUACHUA_BAODUONG(fi.getInt_Baoduong());\n\t\t\t\tdsb.setMO_TA(text_Mota.getText());\n\t\t\t\treturn dsb;\n\t\t\t}\n\n\t\t});\n\t\tGridData gd_btnLu = new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1);\n\t\tgd_btnLu.widthHint = 75;\n\t\tbtnLuu.setLayoutData(gd_btnLu);\n\t\tbtnLuu.setText(\"Xong\");\n\n\t\tbtnDong = new Button(shell, SWT.NONE);\n\t\tbtnDong.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// if (Insert_dx != null)\n\t\t\t\t\t\t// controler.getControl_DEXUAT().delete_DEXUAT(Insert_dx);\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tGridData gd_btnDong = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnDong.widthHint = 75;\n\t\tbtnDong.setLayoutData(gd_btnDong);\n\t\tbtnDong.setText(\"Đóng\");\n\t\tinit_loadMODE();\n\t\tinit_CreateMode();\n\t}", "public frmPengembalian() {\n initComponents();\n model = new DefaultTableModel();\n \n //memberi nama header pada tabel\n tblKembali.setModel(model);\n model.addColumn(\"NAMA\");\n model.addColumn(\"ALAMAT\");\n model.addColumn(\"NO. HP\");\n model.addColumn(\"NAMA KAMERA\");\n model.addColumn(\"KODE KAMERA\");\n model.addColumn(\"TANGGAL DISEWAKAN\");\n model.addColumn(\"TANGGAL DIKEMBALIKAN\");\n model.addColumn(\"TERLAMBAT\");\n\n \n //fungsi ambil data\n getDataKategori();\n }", "public FormUtama() {\n initComponents();\n setUkuranLokasiFrame(0.85, true);\n setExtendedState(JFrame.MAXIMIZED_BOTH);\n setTanggal();\n setJam();\n setIp();\n tampilKonek();\n }", "public beli_kredit() {\n initComponents();\n koneksitoko();\n }", "@GetMapping(\"/create\")\n public ModelAndView create(@ModelAttribute(\"form\") final CardCreateForm form) {\n return getCreateForm(form);\n }", "@RequestMapping(value = \"/new\", method = RequestMethod.POST)\n public Object newAuctionx(@ModelAttribute @Valid AuctionForm form, BindingResult result) throws SQLException {\n if(result.hasErrors()) {\n StringBuilder message = new StringBuilder();\n for(FieldError error: result.getFieldErrors()) {\n message.append(error.getField()).append(\" - \").append(error.getRejectedValue()).append(\"\\n\");\n }\n ModelAndView modelAndView = (ModelAndView)newAuction();\n modelAndView.addObject(\"message\", message);\n modelAndView.addObject(\"form\", form);\n return modelAndView;\n }\n String username = SecurityContextHolder.getContext().getAuthentication().getName();\n UserAuthentication userAuth = UserAuthentication.select(UserAuthentication.class, \"SELECT * FROM user_authentication WHERE username=#1#\", username);\n AuctionWrapper wrapper = new AuctionWrapper();\n wrapper.setDemandResourceId(form.getDemandedResourceId());\n wrapper.setDemandAmount(form.getDemandedAmount());\n wrapper.setOfferResourceId(form.getOfferedResourceId());\n wrapper.setOfferAmount(form.getOfferedAmount());\n wrapper.setSellerId(userAuth.getPlayerId());\n auctionRestTemplate.post(auctionURL + \"/new\", wrapper, String.class);\n return new RedirectView(\"/player/trading\");\n }", "private void submitForm(){\n String toast_message;\n\n int time = getValueOfField(R.id.at_editTextNumberSigned_timeValue);\n int easyNumber = getValueOfField(R.id.at_editTextNumberSigned_levelEasyValue);\n int mediumNumber = getValueOfField(R.id.at_editTextNumberSigned_levelMiddleValue);\n int highNumber = getValueOfField(R.id.at_editTextNumberSigned_levelHighValue);\n int hardcoreNumber = getValueOfField(R.id.at_editTextNumberSigned_levelExpertValue);\n\n // if time is between 0 and 1440 min\n if (time > 0){\n if(time < 24*60){\n // if numbers are positives\n if (easyNumber >= 0 && mediumNumber >= 0 && highNumber >= 0 && hardcoreNumber >= 0){\n\n // save data\n int id = this.controller.getLastIdTraining() + 1;\n\n ArrayList<Level> listLevel = new ArrayList<>();\n listLevel.add(new Level(\"EASY\", easyNumber));\n listLevel.add(new Level(\"MEDIUM\", mediumNumber));\n listLevel.add(new Level(\"HIGHT\", highNumber));\n listLevel.add(new Level(\"HARDCORE\", hardcoreNumber));\n\n Training training = new Training(id, inputCalendar.getTime(), time, listLevel);\n\n this.controller.AddTraining(training);\n\n // init values of Form\n initForm(null);\n\n // redirection to stats page\n Navigation.findNavController(getActivity(),\n R.id.nav_host_fragment).navigate(R.id.navigation_list_training);\n\n toast_message = \"L'entrainement a bien été ajouté !\";\n }else toast_message = \"Erreur:\\nToutes les valeurs de voies ne sont pas positive !\";\n }else toast_message = \"La durée ne doit pas exceder 1440 min.\";\n }else toast_message = \"La durée doit être supérieur à 0 min.\\n\";\n\n // Send alert\n Toast.makeText(getContext(), toast_message, Toast.LENGTH_LONG).show();\n }", "@RequestMapping(value = \"/save\", method = RequestMethod.POST) \n public RedirectView getData(@RequestParam(required = true) String isbn, String judul, String penulis, String penerbit, \n String tahun_terbit, String jenis_cover, String jml_hal, String bahasa, String deskripsi, String gambar, int harga, \n int stok, Long category){\n this.bukuService.insert(new Buku(isbn, judul, penulis, penerbit, tahun_terbit, jenis_cover, jml_hal, bahasa, \n deskripsi, gambar, harga, stok, new Category(category)));\n return new RedirectView(\"/admin/buku/list\", true); \n }", "public void simpanDataBuku(){\n String sql = (\"INSERT INTO buku (judulBuku, pengarang, penerbit, tahun, stok)\" \n + \"VALUES ('\"+getJudulBuku()+\"', '\"+getPengarang()+\"', '\"+getPenerbit()+\"'\"\n + \", '\"+getTahun()+\"', '\"+getStok()+\"')\");\n \n try {\n //inisialisasi preparedstatmen\n PreparedStatement eksekusi = koneksi. getKoneksi().prepareStatement(sql);\n eksekusi.execute();\n \n //pemberitahuan jika data berhasil di simpan\n JOptionPane.showMessageDialog(null,\"Data Berhasil Disimpan\");\n } catch (SQLException ex) {\n //Logger.getLogger(modelPelanggan.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null, \"Data Gagal Disimpan \\n\"+ex);\n }\n }", "public FormFuncionario(FormMenu telaPai) {\n initComponents();\n this.telaPai = telaPai;\n\n txtNome.setText(\"Nome\");\n lblNome.setVisible(false);\n txtSobrenome.setText(\"Sobrenome\");\n lblSobrenome.setVisible(false);\n campoMensagem.setVisible(false);\n lblMensagem.setVisible(false);\n\n }", "public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}", "@Override\n public boolean createApprisialForm(ApprisialFormBean apprisial) {\n apprisial.setGendate(C_Util_Date.generateDate());\n return in_apprisialformdao.createApprisialForm(apprisial);\n }", "public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic();\n }", "@PostMapping(\"/creargrupo\")\n public String create(@ModelAttribute (\"grupo\") Grupo grupo) throws Exception {\n try {\n grupoService.create(grupo);\n return \"redirect:/pertenezco\";\n }catch (Exception e){\n LOG.log(Level.WARNING,\"grupos/creargrupo\" + e.getMessage());\n return \"redirect:/error\";\n }\n }", "private void initFormulario() {\n btnCadastro = findViewById(R.id.btnCadastro);\n editNome = findViewById(R.id.editNome);\n editEmail = findViewById(R.id.editEmail);\n editSenhaA = findViewById(R.id.editSenha);\n editSenhaB = findViewById(R.id.editSenhaB);\n chTermo = findViewById(R.id.chTermos);\n isFormOk = false;\n }", "@PostMapping(\"/addFormation/{eid}\")\n\t\tpublic Formation createFormation(@PathVariable(value = \"eid\") Long Id, @Valid @RequestBody Formation formationDetails) {\n\n\t\t \n\t\t Formation me=new Formation();\n\t\t\t Domaine domaine = Domainev.findById(Id).orElseThrow(null);\n\t\t\t \n\t\t\t \n\t\t\t\t me.setDom(domaine);\n\t\t\t me.setTitre(formationDetails.getTitre());\n\t\t\t me.setAnnee(formationDetails.getAnnee());\n\t\t\t me.setNb_session(formationDetails.getNb_session());\n\t\t\t me.setDuree(formationDetails.getDuree());\n\t\t\t me.setBudget(formationDetails.getBudget());\n\t\t\t me.setTypeF(formationDetails.getTypeF());\n\t\t\t \n\t\t\t \n\n\t\t\t //User affecterUser= \n\t\t\t return Formationv.save(me);\n\t\t\t//return affecterUser;\n\t\t\n\n\t\t}", "@GetMapping(\"/students/new\")\n\tpublic String createStudentForm(Model model) throws ParseException\n\t{\n\t\t\n\t\tStudent student=new Student(); //To hold form Data.\n\t\t\n\t\tmodel.addAttribute(\"student\",student);\n\t\t\n\t\t// go to create_student.html page\n\t\treturn \"create_student\";\n\t}", "public tambah() {\n initComponents();\n }" ]
[ "0.63815135", "0.6344696", "0.63037866", "0.62579346", "0.61300397", "0.61088115", "0.6086701", "0.6080209", "0.6012039", "0.59935886", "0.599058", "0.5940737", "0.5929978", "0.5910936", "0.59040064", "0.58954", "0.5860694", "0.5859152", "0.5828531", "0.582043", "0.58188766", "0.58131707", "0.58021736", "0.58018035", "0.5791161", "0.5772992", "0.5745705", "0.573774", "0.5711572", "0.5679999", "0.5659939", "0.5652135", "0.5647142", "0.56405", "0.5638393", "0.5635648", "0.56226945", "0.5621902", "0.5619915", "0.5611627", "0.56038547", "0.5600626", "0.55931485", "0.55919784", "0.5590634", "0.5583449", "0.55795515", "0.5577119", "0.55762887", "0.5574045", "0.5564842", "0.55618584", "0.5556128", "0.55528855", "0.5551787", "0.5544013", "0.55374694", "0.5536991", "0.5536863", "0.55320334", "0.5527088", "0.552279", "0.5521266", "0.5520026", "0.5501773", "0.5494116", "0.549209", "0.54888284", "0.5474567", "0.5463154", "0.54521847", "0.54434544", "0.5442772", "0.5439882", "0.5435583", "0.5429057", "0.5423858", "0.5423423", "0.54223996", "0.54195297", "0.5403811", "0.5400053", "0.53993666", "0.53912055", "0.53910446", "0.5390708", "0.5390518", "0.5389884", "0.538797", "0.53876716", "0.53816384", "0.53803074", "0.5380205", "0.537972", "0.5378763", "0.5374904", "0.53712565", "0.5355367", "0.5352741", "0.5349296" ]
0.56738895
30
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { buttonGroup1 = new javax.swing.ButtonGroup(); jPanel1 = new javax.swing.JPanel(); jPanel2 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jPanel4 = new javax.swing.JPanel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); txtTL = new javax.swing.JTextField(); txtNama = new javax.swing.JTextField(); txtUsia = new javax.swing.JTextField(); jRadioButton1 = new javax.swing.JRadioButton(); jRadioButton2 = new javax.swing.JRadioButton(); jLabel15 = new javax.swing.JLabel(); jLabel16 = new javax.swing.JLabel(); jLabel17 = new javax.swing.JLabel(); jLabel18 = new javax.swing.JLabel(); jScrollPane2 = new javax.swing.JScrollPane(); jLDiagnosa = new javax.swing.JList<>(); cmbRuangan = new javax.swing.JComboBox<>(); txtTglMasuk = new javax.swing.JTextField(); cmbDokter = new javax.swing.JComboBox<>(); jLabel2 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jPanel5 = new javax.swing.JPanel(); Keluar = new javax.swing.JButton(); jPanel6 = new javax.swing.JPanel(); Simpan = new javax.swing.JButton(); tambah = new javax.swing.JButton(); jScrollPane3 = new javax.swing.JScrollPane(); jtData = new javax.swing.JTable(); jPanel7 = new javax.swing.JPanel(); txtCari = new javax.swing.JTextField(); comboCari = new javax.swing.JComboBox<>(); jLabel8 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); addComponentListener(new java.awt.event.ComponentAdapter() { public void componentShown(java.awt.event.ComponentEvent evt) { formComponentShown(evt); } }); jPanel1.setBackground(new java.awt.Color(102, 153, 0)); jPanel2.setBackground(new java.awt.Color(255, 255, 255)); jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 0), 3)); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N jLabel1.setForeground(new java.awt.Color(153, 204, 0)); jLabel1.setText("FORM PASIEN RUMAH SAKIT"); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel1) .addGap(179, 179, 179)) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel1) .addContainerGap()) ); jPanel4.setBackground(new java.awt.Color(255, 255, 255)); jPanel4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 0), 3)); jLabel3.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel3.setText("Nama"); jLabel4.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel4.setText("Tgl Lahir"); jLabel5.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel5.setText("Usia"); jLabel6.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel6.setText("Jenis Kelamin"); txtTL.setBackground(new java.awt.Color(204, 255, 153)); txtTL.setToolTipText("format penulisan tanggal :\n2017-04-10"); txtTL.setEnabled(false); txtTL.addCaretListener(new javax.swing.event.CaretListener() { public void caretUpdate(javax.swing.event.CaretEvent evt) { txtTLCaretUpdate(evt); } }); txtNama.setBackground(new java.awt.Color(204, 255, 153)); txtNama.setEnabled(false); txtNama.addCaretListener(new javax.swing.event.CaretListener() { public void caretUpdate(javax.swing.event.CaretEvent evt) { txtNamaCaretUpdate(evt); } }); txtUsia.setBackground(new java.awt.Color(204, 255, 153)); txtUsia.setEnabled(false); txtUsia.addCaretListener(new javax.swing.event.CaretListener() { public void caretUpdate(javax.swing.event.CaretEvent evt) { txtUsiaCaretUpdate(evt); } }); txtUsia.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { txtUsiaKeyTyped(evt); } }); buttonGroup1.add(jRadioButton1); jRadioButton1.setText("L"); jRadioButton1.setToolTipText("Laki-Laki"); jRadioButton1.setEnabled(false); buttonGroup1.add(jRadioButton2); jRadioButton2.setText("P"); jRadioButton2.setToolTipText("Perempuan\n"); jRadioButton2.setEnabled(false); jLabel15.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel15.setText("Diagnosa"); jLabel16.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel16.setText("Dokter"); jLabel17.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel17.setText("Ruangan"); jLabel18.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel18.setText("Tgl Masuk"); jLDiagnosa.setBackground(new java.awt.Color(204, 255, 153)); jLDiagnosa.setModel(new javax.swing.AbstractListModel<String>() { String[] strings = { "Kanker ", "TBC", "Alergi", "Tumor", "Miopi", "Diabetes Melitus", "Asam Urat", "Demam", "Diare", "Sakit Hati", "Galau", "Sakit Gigi" }; public int getSize() { return strings.length; } public String getElementAt(int i) { return strings[i]; } }); jLDiagnosa.setEnabled(false); jScrollPane2.setViewportView(jLDiagnosa); cmbRuangan.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Poly Pulmonary", "Poly Bedah", "Poly Fisioterapi", "Poly Kulit & Kelamin", "Poly Radiologi" })); cmbRuangan.setEnabled(false); txtTglMasuk.setBackground(new java.awt.Color(204, 255, 153)); txtTglMasuk.setToolTipText("format penulisan tanggal :\n2017-04-10"); txtTglMasuk.setEnabled(false); txtTglMasuk.addCaretListener(new javax.swing.event.CaretListener() { public void caretUpdate(javax.swing.event.CaretEvent evt) { txtTglMasukCaretUpdate(evt); } }); cmbDokter.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "dr. Gatot C. Sasmita, SpP ", "dr. Saharawati Mahmudin, SpP ", "dr. Satrio Tjondro, SpRM ", "dr. A. Kosasi, SpKK ", "dr. Ade Indrawan I, SpRad" })); cmbDokter.setEnabled(false); jLabel2.setFont(new java.awt.Font("Tahoma", 2, 11)); // NOI18N jLabel2.setForeground(new java.awt.Color(255, 0, 0)); jLabel2.setText("* Format YYYY-MM-DD"); jLabel7.setFont(new java.awt.Font("Tahoma", 2, 11)); // NOI18N jLabel7.setForeground(new java.awt.Color(255, 0, 0)); jLabel7.setText("* Format YYYY-MM-DD"); jLabel9.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jLabel9.setText("Tahun"); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel5) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(jLabel6) .addGap(18, 18, 18) .addComponent(jRadioButton1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jRadioButton2)) .addGroup(jPanel4Layout.createSequentialGroup() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel4) .addComponent(jLabel3)) .addGap(39, 39, 39) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(txtUsia, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel9)) .addComponent(txtNama) .addComponent(txtTL, javax.swing.GroupLayout.PREFERRED_SIZE, 238, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGap(18, 18, 18) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel15) .addComponent(jLabel17) .addComponent(jLabel18) .addComponent(jLabel16)) .addGap(33, 33, 33) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(cmbDokter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(txtTglMasuk) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(cmbRuangan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 119, Short.MAX_VALUE)) .addComponent(jScrollPane2)) .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(61, Short.MAX_VALUE)) ); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(txtNama, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4) .addComponent(txtTL, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(4, 4, 4) .addComponent(jLabel2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5) .addComponent(txtUsia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel9)) .addGap(18, 18, 18) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6) .addComponent(jRadioButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButton2)) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(jPanel4Layout.createSequentialGroup() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel15) .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel16) .addComponent(cmbDokter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(9, 9, 9) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel17) .addComponent(cmbRuangan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(15, 15, 15) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel18) .addComponent(txtTglMasuk, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel7))) .addContainerGap()) ); jPanel5.setBackground(new java.awt.Color(255, 255, 255)); jPanel5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 0), 3)); Keluar.setBackground(new java.awt.Color(153, 204, 0)); Keluar.setText("Keluar"); Keluar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { KeluarActionPerformed(evt); } }); javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5); jPanel5.setLayout(jPanel5Layout); jPanel5Layout.setHorizontalGroup( jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(Keluar) .addContainerGap()) ); jPanel5Layout.setVerticalGroup( jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(Keluar) .addContainerGap()) ); jPanel6.setBackground(new java.awt.Color(255, 255, 255)); jPanel6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 0), 3)); Simpan.setBackground(new java.awt.Color(153, 204, 0)); Simpan.setText("Simpan"); Simpan.setEnabled(false); Simpan.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { SimpanActionPerformed(evt); } }); tambah.setBackground(new java.awt.Color(153, 204, 0)); tambah.setText("Tambah"); tambah.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tambahActionPerformed(evt); } }); javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6); jPanel6.setLayout(jPanel6Layout); jPanel6Layout.setHorizontalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addGap(21, 21, 21) .addComponent(tambah) .addGap(18, 18, 18) .addComponent(Simpan) .addContainerGap(25, Short.MAX_VALUE)) ); jPanel6Layout.setVerticalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(Simpan) .addComponent(tambah)) .addContainerGap()) ); jtData.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null} }, new String [] { "Nama", "Tgl Lahir", "Usia", "Jenis Kelamin", "Diagnosa", "Dokter", "Ruangan", "Tgl Masuk" } )); jtData.setEnabled(false); jScrollPane3.setViewportView(jtData); jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 3), "Pencarian", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 14), new java.awt.Color(255, 255, 255))); // NOI18N jPanel7.setOpaque(false); txtCari.setBackground(new java.awt.Color(204, 255, 153)); txtCari.setToolTipText("Pencarian berdasarkan nama Pasien/Dokter"); txtCari.setEnabled(false); txtCari.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { txtCariKeyTyped(evt); } }); comboCari.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "nama_pasien", "dokter" })); comboCari.setEnabled(false); jLabel8.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jLabel8.setForeground(new java.awt.Color(255, 255, 255)); jLabel8.setText("by :"); javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7); jPanel7.setLayout(jPanel7Layout); jPanel7Layout.setHorizontalGroup( jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel7Layout.createSequentialGroup() .addComponent(txtCari, javax.swing.GroupLayout.PREFERRED_SIZE, 358, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel8) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(comboCari, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel7Layout.setVerticalGroup( jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel7Layout.createSequentialGroup() .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtCari, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(comboCari, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel8)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane3) .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, Short.MAX_VALUE) .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public Soru1() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public quotaGUI() {\n initComponents();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public PatientUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Magasin() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public kunde() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MusteriEkle() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "public sinavlar2() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73195183", "0.7290407", "0.7290407", "0.7290407", "0.72855854", "0.7248445", "0.7213232", "0.72084314", "0.7195551", "0.71902007", "0.71835697", "0.7158979", "0.71473545", "0.70928645", "0.70807934", "0.70575565", "0.6987147", "0.6976941", "0.69544566", "0.69541115", "0.6943778", "0.6942792", "0.6935224", "0.6931817", "0.6928287", "0.69246083", "0.6924253", "0.69117594", "0.6910518", "0.68936557", "0.68927425", "0.6891522", "0.68911785", "0.6889459", "0.68826854", "0.68823767", "0.6880858", "0.6878632", "0.68753785", "0.68741786", "0.68710285", "0.68593234", "0.6856001", "0.6855885", "0.685485", "0.68537056", "0.68532616", "0.68519884", "0.68519884", "0.6843908", "0.6836617", "0.68361354", "0.68289286", "0.68281245", "0.6826939", "0.682426", "0.68220174", "0.68170464", "0.6816829", "0.68109316", "0.6808785", "0.6808737", "0.6808307", "0.6807784", "0.6801649", "0.67936075", "0.67933095", "0.67924714", "0.67911524", "0.67894745", "0.67889065", "0.6787865", "0.6781763", "0.6766413", "0.67660075", "0.6765137", "0.6756547", "0.6756297", "0.67528564", "0.6752207", "0.67416096", "0.67398196", "0.6737052", "0.6736384", "0.6734045", "0.67276424", "0.6726131", "0.6721189", "0.6715488", "0.671506", "0.67148006", "0.6708023", "0.67061347", "0.67027885", "0.6701509", "0.670121", "0.6699335", "0.66989076", "0.6694664", "0.6690946", "0.6688705" ]
0.0
-1
Check which request we're responding to
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == GALLERY_INTETN && resultCode==RESULT_OK) { dialog.setMessage("Uploading"); dialog.show(); Uri uri= data.getData(); StorageReference filepath= mStorage.child("volunteer_aadhar_pic").child(uri.getLastPathSegment()); try { compressed = MediaStore.Images.Media.getBitmap(ApplyAsVolunteer.this.getContentResolver(), uri); } catch (IOException e) { e.printStackTrace(); } ByteArrayOutputStream baos = new ByteArrayOutputStream(); compressed.compress(Bitmap.CompressFormat.JPEG, 30, baos); byte[] cimg = baos.toByteArray(); filepath.putBytes(cimg).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() { @Override public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) { path = taskSnapshot.getDownloadUrl(); //accountref = FirebaseDatabase.getInstance().getReference().child("user_details").child(auth.getUid()); //accountref.child("userImgUrl").setValue(String.valueOf(path)); Toast.makeText(ApplyAsVolunteer.this, "Document uploaded", Toast.LENGTH_LONG).show(); //finish(); //startActivity(getIntent()); afterText.setVisibility(View.VISIBLE); clicksubmit.setVisibility(View.GONE); dialog.dismiss(); } }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean isAppropriateRequest(Request request);", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "private void checkRequest(Request req) throws MethodNotAllowed, NotFound {\n if (!req.getHeader(\"Method\").equals(\"GET\") ||\n !req.getHeader(\"Version\").equals(\"HTTP/1.1\")) {\n throw new MethodNotAllowed();\n }\n if (req.getHeader(\"Path\").endsWith(\"/\")) {\n throw new NotFound();\n }\n }", "public boolean hasRequest() {\n return request_ != null;\n }", "public boolean hasRequest() {\n return request_ != null;\n }", "public boolean hasRequest() {\n return request_ != null;\n }", "public boolean isRequest(){\n return false;\n }", "public boolean hasRequest() {\n return requestBuilder_ != null || request_ != null;\n }", "public boolean hasRequest() {\n return requestBuilder_ != null || request_ != null;\n }", "protected void checkForFirstRequest() throws IOException {\n if(firstRequest) {\n while (!connected || (serveResponse = in.readLine()).isEmpty());\n firstRequest = false;\n }\n }", "boolean match(final HttpServletRequest request) {\n\t\t\tString lMetodo = request.getMethod().toUpperCase();\n\t\t\tString lUrl = request.getRequestURL().toString();\n\t\t\treturn lMetodo.equals(this.metodo.toString()) && lUrl.contains(this.url);\n\t\t}", "private boolean isRequestOrReply(final Message.MessageType type) {\n return MESSAGE_TYPE_REQUESTS.contains(type);\n }", "@Override\r\n public boolean isRequest() {\n return false;\r\n }", "public void checkRequest(String theRequest, HttpServletRequest request, HttpServletResponse response) {\n try {\n\n Method requestMethod = this.getClass().getDeclaredMethod(theRequest, HttpServletRequest.class, HttpServletResponse.class);\n requestMethod.invoke(this, request, response);\n\n } catch (IllegalAccessException ex) {\n System.err.println(\"IllegalAccessException Error: \" + ex.getCause());\n } catch (IllegalArgumentException ex) {\n System.err.println(\"IllegalArgumentException Error: \" + ex.getCause());\n } catch (NoSuchMethodException ex) {\n System.err.println(\"NoSuchMethodException Error: \" + ex.getCause());\n } catch (SecurityException ex) {\n System.err.println(\"SecurityException Error: \" + ex.getCause());\n } catch (InvocationTargetException ex) {\n System.err.println(\"InvocationTargetException Error: \" + ex.getCause());\n }\n }", "boolean hasSystemRequest();", "private void caseForfeit(Request request) {\n }", "private boolean processRequest(Connection conn)\n {\n String line = null;\n URL url;\n String path;\n\n /*\n * Read the request line.\n */\n try {\n line = DataInputStreamUtil.readLineIntr(conn.getInputStream());\n }\n catch(InterruptedException e) {\n logError(\"Cannot read request line: connection timeout\");\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST, \"connection timeout\");\n return false;\n }\n catch(IOException e) {\n logError(\"Cannot read request line: I/O error\"\n + getExceptionMessage(e));\n _req.sendHtmlErrorPage(HTTPStatusCode.SRVCE_NOT_AVAILABLE,\n \"I/O error\" + getExceptionMessage(e));\n return false;\n }\n\n /*\n * Parse the request line, and read the request headers.\n */\n try {\n _req.read(line);\n }\n catch(MalformedURLException e) {\n logError(\"Malformed URI in HTTP request\" + getExceptionMessage(e));\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"Invalid URI in HTTP request\"\n + getExceptionMessage(e));\n return false;\n }\n catch(MalformedHTTPReqException e) {\n logError(\"Malformed HTTP request\" + getExceptionMessage(e));\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"Invalid HTTP request\" + getExceptionMessage(e));\n return false;\n }\n catch(InterruptedException e) {\n logError(\"Cannot read request: connection timeout\");\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST, \"connection timeout\");\n return false;\n }\n catch(IOException e) {\n logError(\"Cannot read request: I/O error\" + getExceptionMessage(e));\n _req.sendHtmlErrorPage(HTTPStatusCode.SRVCE_NOT_AVAILABLE,\n \"I/O error\" + getExceptionMessage(e));\n return false;\n }\n\n if (DEBUG && _debugLevel > 1) {\n debugPrintLn(\"Request: '\" + _req.getReqLine() + \"'\");\n }\n\n /*\n * Process the request based on the request-URI type. The asterisk\n * option (RFC2068, sec. 5.1.2) is not supported.\n */\n if ( (path = _req.getPath()) != null) {\n return redirectClient(path);\n }\n else {\n if ( (url = _req.getURL()) != null) {\n // The redirector is being accessed as a proxy.\n\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"Cannot retrieve URL \" + url\n + \"\\n<P>\\n\"\n + \"Invalid URL: unexpected access protocol \"\n + \"(e.g., `http://')\\n\");\n }\n else {\n logError(\"unsupported request-URI: \" + _req.getReqLine());\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"unsupported request-URI\");\n }\n return false;\n }\n }", "boolean isValid()\n {\n return isRequest() && isResponse();\n }", "boolean hasClientRequest();", "public boolean hasRequest() {\n return instance.hasRequest();\n }", "private void handleRequest(Request request) throws IOException{\n switch (request){\n case NEXTODD:\n case NEXTEVEN:\n new LocalThread(this, request, nextOddEven).start();\n break;\n case NEXTPRIME:\n case NEXTEVENFIB:\n case NEXTLARGERRAND:\n new NetworkThread(this, userID, serverIPAddress, request).start();\n break;\n default:\n break;\n }\n }", "public boolean hasRequest() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "@Override\r\n\tprotected byte[] handleSpecificRequest(String request) {\r\n\t\tif (!Utils.isEmpty(request)) {\r\n\t\t\tlogger.info(\"$$$$$$$$$$$$Message received at Tracking Server:\" + request);\r\n\t\t\tif (request.startsWith(NODE_REQUEST_TO_SERVER.FILE_LIST.name())) {\r\n\t\t\t\thandleFileUpdateMessage(request);\r\n\t\t\t\treturn Utils.stringToByte(SharedConstants.COMMAND_SUCCESS);\r\n\t\t\t} else if (request.startsWith(NODE_REQUEST_TO_SERVER.FIND.name())) {\r\n\t\t\t\tString peers = handleFindFileRequest(request);\r\n\t\t\t\treturn Utils.stringToByte((Utils.isEmpty(peers) ? SharedConstants.COMMAND_FAILED\r\n\t\t\t\t\t\t: SharedConstants.COMMAND_SUCCESS) + SharedConstants.COMMAND_PARAM_SEPARATOR + peers);\r\n\r\n\t\t\t} else if (request.startsWith(NODE_REQUEST_TO_SERVER.FAILED_PEERS.name())) {\r\n\t\t\t\thandleFailedPeerRequest(request);\r\n\t\t\t\treturn Utils.stringToByte(SharedConstants.COMMAND_SUCCESS);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn Utils.stringToByte(SharedConstants.INVALID_COMMAND);\r\n\r\n\t}", "public boolean hasRequest() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "public boolean hasRequest() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasRequest() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "@Override\n\tpublic boolean matches(HttpServletRequest request) {\n\t\treturn !orRequestMatcher.matches(request);\n\t}", "public boolean hasRequest() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasRequest() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "@java.lang.Override\n public boolean hasHttpRequest() {\n return httpRequest_ != null;\n }", "public boolean hasRequests(){\n return (tradeRequests.size() > 0 || userRequests.size() > 0);\n }", "public boolean hasRequest() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasRequest() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public abstract boolean mo9094a(Request request);", "protected boolean handleRequest(String request) {\n if (request.equals(Server.GAME_PLAY)) {\n if (this.gamesCounter == server.hangmanGames.size()) {\n writeToClient(Server.GAME_OVER);\n return false;\n } else {\n String word = server.hangmanWords.get(this.gamesCounter);\n int tries = server.hangmanGames.get(word);\n Hangman game = new Hangman(word, tries);\n playThisGame(game);\n this.gamesCounter++;\n return true;\n }\n } else if (request.equals(Server.GAME_STOP)) {\n return false;\n }\n return false;\n }", "protected boolean isApplicable(SPRequest req) {\n\n Log.debug(\"isApplicable ? \" + req.getPath() + \" vs \" + getRoute());\n\n if (!req.getMethod().equals(getHttpMethod()))\n return false;\n\n String[] uri = req.getSplitUri();\n String[] tok = splitPath;\n if (uri.length != tok.length && splatIndex == -1)\n return false;\n\n if (uri.length <= splatIndex)\n return false;\n\n for (int i = 0; i < tok.length; i++) {\n if (tok[i].charAt(0) != ':' && tok[i].charAt(0) != '*' && !tok[i].equals(uri[i]))\n return false;\n }\n\n return true;\n }", "public boolean hasRequest() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasRequest() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public Boolean checkAJAX(HttpServletRequest request) {\n\t\tBoolean flgXhr = false;\n\t\tString strXhr = (String) request.getHeader(\"X-Requested-With\");\n\t\tif (strXhr == null) {\n\t\t\tstrXhr = (String) request.getAttribute(\"xhr\");\n\t\t\tif (strXhr == null || !strXhr.equalsIgnoreCase(\"true\"))\n\t\t\t\tstrXhr = null;\n\t\t}\n\t\tflgXhr = (strXhr != null && !strXhr.equals(\"com.android.browser\"));\n\t\treturn (flgXhr);\n\t}", "public Boolean IsIOrequest() {\n Random r = new Random();\n int k = r.nextInt(100);\n //20%\n if (k <= 20) {\n return true;\n }\n return false;\n }", "static boolean Requested(HttpServletRequest request, String paramName)\n {\n \n String value = request.getParameter(paramName);\n Logging.debug(\"Got parameter \"+paramName+\"=\" + value);\n \n if (value != null) {\n if (yesMatcher.matcher(value).lookingAt()) {\n return true;\n } else {\n return false;\n }\n } else {\n return false;\n }\n }", "private boolean requestLimitReached() {\n\t\treturn (requestCount >= maximumRequests);\n\t}", "private int indexOfRequestToServe() {\n // if there is no barrier currently active, avoid the iteration\n if (this.spmdManager.isCurrentBarriersEmpty()) {\n return 0;\n } else { // there is at least one active barrier\n int index = -1;\n boolean isServable = false;\n Iterator it = this.requestQueue.iterator();\n \n // look for the first request in the queue we can serve\n while (!isServable && it.hasNext()) {\n index++;\n MethodCall mc = ((Request) it.next()).getMethodCall();\n \n // FT : mc could be an awaited request\n if (mc == null) {\n return -1;\n }\n isServable = this.spmdManager.checkExecution(mc.getBarrierTags());\n }\n return isServable ? index : (-1);\n }\n }", "private void processRequest(HttpServletRequest request, HttpServletResponse response) {\n }", "private boolean checkForTaskQueue(HttpServletRequest request, HttpServletResponse response) {\n if (request.getHeader(\"X-AppEngine-QueueName\") == null) {\n log.log(Level.SEVERE, \"Received unexpected non-task queue request. Possible CSRF attack.\");\n try {\n response.sendError(\n HttpServletResponse.SC_FORBIDDEN, \"Received unexpected non-task queue request.\");\n } catch (IOException ioe) {\n throw new RuntimeException(\"Encountered error writing error\", ioe);\n }\n return false;\n }\n return true;\n }", "public boolean isTooManyRequests() {\n if (this.getCode() != null && this.getCode() == CODE_TOO_MANY_REQUESTS) {\n return true;\n }\n return false;\n }", "public boolean isSetRequests() {\n return this.requests != null;\n }", "private boolean checkBackend() {\n \ttry{\n \t\tif(sendRequest(generateURL(0,\"1\")) == null ||\n \tsendRequest(generateURL(1,\"1\")) == null)\n \t\treturn true;\n \t} catch (Exception ex) {\n \t\tSystem.out.println(\"Exception is \" + ex);\n\t\t\treturn true;\n \t}\n\n \treturn false;\n \t}", "boolean hasInitialResponse();", "public boolean isConsumable(HttpServletRequest request);", "void check()\n {\n checkUsedType(responseType);\n checkUsedType(requestType);\n }", "protected abstract String getAllowedRequests();", "public void Request_type()\n {\n\t boolean reqtypepresent =reqtype.size()>0;\n\t if(reqtypepresent)\n\t {\n\t\t //System.out.println(\"Request type report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Request type report is not present\");\n\t }\n }", "public boolean sendRequest(com.webobjects.appserver.WORequest request){\n return false; //TODO codavaj!!\n }", "HttpServletRequest getCurrentRequest();", "public boolean canServeRequest() {\n return outputWSService.isRunnningAndDbInstancesAvailable(false);\n }", "private void processRequest(String targetID, HttpServerRequest req) throws Exception {\n\t\tString result = retrieveDetails(targetID);\n\t\tif(result != null)\n\t\t\treq.response().end(result);\t\n\t\telse\n\t\t\treq.response().end(\"No resopnse received\");\n\t}", "private synchronized void processHttpRequest\n\t\t(HttpRequest request,\n\t\t HttpResponse response)\n\t\tthrows IOException\n\t\t{\n\t\tlong now = System.currentTimeMillis();\n\n\t\t// Reject an invalid HTTP request.\n\t\tif (! request.isValid())\n\t\t\t{\n\t\t\tresponse.setStatusCode\n\t\t\t\t(HttpResponse.Status.STATUS_400_BAD_REQUEST);\n\t\t\tPrintWriter out = response.getPrintWriter();\n\t\t\tprintStatusHtmlStart (out, now);\n\t\t\tout.println (\"<P>\");\n\t\t\tout.println (\"400 Bad Request\");\n\t\t\tprintStatusHtmlEnd (out);\n\t\t\t}\n\n\t\t// Reject all methods except GET.\n\t\telse if (! request.getMethod().equals (HttpRequest.GET_METHOD))\n\t\t\t{\n\t\t\tresponse.setStatusCode\n\t\t\t\t(HttpResponse.Status.STATUS_501_NOT_IMPLEMENTED);\n\t\t\tPrintWriter out = response.getPrintWriter();\n\t\t\tprintStatusHtmlStart (out, now);\n\t\t\tout.println (\"<P>\");\n\t\t\tout.println (\"501 Not Implemented\");\n\t\t\tprintStatusHtmlEnd (out);\n\t\t\t}\n\n\t\t// Print the status document.\n\t\telse if (request.getUri().equals (\"/\") ||\n\t\t\t\t\trequest.getUri().equals (\"/?\"))\n\t\t\t{\n\t\t\tPrintWriter out = response.getPrintWriter();\n\t\t\tprintStatusHtmlStart (out, now);\n\t\t\tprintStatusHtmlBody (out, now);\n\t\t\tprintStatusHtmlEnd (out);\n\t\t\t}\n\n\t\t// Print the debug document.\n\t\telse if (request.getUri().equals (\"/debug\"))\n\t\t\t{\n\t\t\tPrintWriter out = response.getPrintWriter();\n\t\t\tprintDebugHtmlStart (out, now);\n\t\t\tprintDebugHtmlBody (out);\n\t\t\tprintStatusHtmlEnd (out);\n\t\t\t}\n\n\t\t// Reject all other URIs.\n\t\telse\n\t\t\t{\n\t\t\tresponse.setStatusCode\n\t\t\t\t(HttpResponse.Status.STATUS_404_NOT_FOUND);\n\t\t\tPrintWriter out = response.getPrintWriter();\n\t\t\tprintStatusHtmlStart (out, now);\n\t\t\tout.println (\"<P>\");\n\t\t\tout.println (\"404 Not Found\");\n\t\t\tprintStatusHtmlEnd (out);\n\t\t\t}\n\n\t\t// Send the response.\n\t\tresponse.close();\n\t\t}", "public void service_REQ(){\n if ((eccState == index_HasRequest) && (PEExit.value)) state_BagPassedEye();\n else if ((eccState == index_IDLE) && (TokenIn.value)) state_START();\n else if ((eccState == index_IDLE) && (PERequest.value)) state_NoTokenButRequest();\n else if ((eccState == index_NoTokenButRequest) && (TokenIn.value)) state_START();\n else if ((eccState == index_START) && (NoPERequest.value)) state_IDLE();\n }", "public boolean request() {\n if (connection == null) {\n return false;\n }\n String json = new JsonBuilder(getRequestMessage()).getJson();\n if (UtilHelper.isEmptyStr(json)) {\n return false;\n }\n return connection.sendMessage(json);\n }", "public boolean hasReqMethod() {\n return fieldSetFlags()[6];\n }", "private boolean isPreflight(HttpServletRequest request) {\n return request.getMethod().equals(\"OPTIONS\");\n }", "public void processRequest(String request) {\r\n // Request for closing connection\r\n if (request.equals(\"CLOSE\")) {\r\n isOpen = false;\r\n\r\n // Request for getting all of the text on the Server's text areas\r\n } else if (request.equals(\"GET ALL TEXT\")) {\r\n String [] array = FileIOFunctions.getAllTexts();\r\n\r\n sendMessage(\"GET ALL TEXT\");\r\n sendMessage(array[0]);\r\n sendMessage(array[1]);\r\n } else {}\r\n }", "@Override\n\tpublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object object) throws Exception {\n\t\tlogger.info(request.getRequestURI());\n\t //method\n\t\tlogger.info(request.getMethod());\n\t //ip\n\t\tlogger.info(request.getRemoteAddr());\n\t\tEnumeration enu=request.getParameterNames(); \n\t\twhile(enu.hasMoreElements()){ \n\t\t\tString paraName=(String)enu.nextElement(); \n\t\t\tlogger.info(paraName+\": \"+request.getParameter(paraName));\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "void handleRequest();", "public boolean isSetReq() {\n return this.req != null;\n }", "public boolean isSetReq() {\n return this.req != null;\n }", "public boolean isSetReq() {\n return this.req != null;\n }", "public boolean isSetReq() {\n return this.req != null;\n }", "public int getIsOnRequest() {\n return isOnRequest;\n }", "public synchronized boolean hasFriendRequest(FriendRequest req) {\n \t\treturn indexOfFriendRequest(req) != -1;\n \t}", "public boolean request() {\n\t\tif (inAnySession()) {\n\t\t\tplayer.exchangeSession.reset();\n\t\t\treturn false;\n\t\t}\n\t\t\n if (!PlayerRight.isDeveloper(player) && !PlayerRight.isDeveloper(other)) {\n if (player.playTime < 3000) {\n player.message(\"You cannot trade until you have 30 minutes of playtime. \" + Utility.getTime(3000 - player.playTime) + \" minutes remaining.\");\n return false;\n }\n if (other.playTime < 3000) {\n player.message(other.getName() + \" cannot trade until they have 30 minutes of playtime.\");\n return false;\n }\n }\n\t\t \n\t\tif (getSession(other).isPresent() && getSession(other).get().inAnySession()) {\n\t\t\tplayer.message(\"This player is currently is a \" + type.name + \" with another player.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (Objects.equals(player, other)) {\n\t\t\tplayer.message(\"You cannot \" + type.name + \" with yourself.\");\n\t\t\treturn false;\n\t\t}\n if (PlayerRight.isIronman(player) && !PlayerRight.isDeveloper(other)) {\n player.message(\"You can not \" + type.name + \" as you are an iron man.\");\n return false;\n }\n if (PlayerRight.isIronman(other) && !PlayerRight.isDeveloper(player)) {\n player.message(other.getName() + \" can not be \" + type.name + \"d as they are an iron man.\");\n return false;\n }\n\t\tif (player.exchangeSession.requested_players.contains(other)) {\n\t\t\tplayer.message(\"You have already sent a request to this player.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (player.locking.locked()) {\n\t\t\tplayer.message(\"You cannot send a \" + type.name + \" request right now.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (other.locking.locked()) {\n\t\t\tplayer.message(other.getName() + \" is currently busy.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (player.playerAssistant.busy()) {\n\t\t\tplayer.message(\"Please finish what you are doing before you do that.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (other.playerAssistant.busy()) {\n\t\t\tplayer.message(other.getName() + \" is currently busy.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (player.inActivity(ActivityType.DUEL_ARENA)) {\n\t\t\tplayer.message(\"You can not do that whilst in a duel!\");\n\t\t\treturn false;\n\t\t}\n\t\tif (other.inActivity(ActivityType.DUEL_ARENA)) {\n\t\t\tother.message(\"You can not do that whilst in a duel!\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!onRequest()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn SESSIONS.add(this);\n\t}", "public void handleRequest(Request req) {\n\n }", "private AylaCallResponse checkRequest(int method, AylaRestService rs) {\n\t\tBundle responseBundle = null;\n\t\tAylaCallResponse commitResponse = null;\n\n\t\t// If this is a LAN mode request other than a notification, and we are not on the LAN, then fail immediately\n\t\tif ( (method != AylaRestService.PROPERTY_CHANGE_NOTIFIER) &&\n (method != AylaRestService.SEND_NETWORK_PROFILE_LANMODE) &&\n\t\t\t\tsupportsLanModeResponse(method) &&\n\t\t\t\t!AylaReachability.isWiFiConnected(null) &&\n // While we are in secure setup mode, wifi connectivity can report strange things\n AylaLanMode.getSecureSetupDevice() == null) {\n\t\t\tAylaSystemUtils.saveToLog(\"%s, %s, %s:%d, %s\", \"E\", \"ExecuteRequest\", \"!LAN && supportsLanModeResponse\", method, \"execute\");\n\t\t\tresponseBundle = new Bundle();\n\t\t\tresponseBundle.putString(\"result\", rs.jsonResults); // response v3.07\n\t\t\tresponseBundle.putInt(\"subTask\", rs.subTaskFailed);\n\t\t\tresponseCode = AylaNetworks.AML_ERROR_UNREACHABLE;\n\n\t\t\tif (async) {\n\t\t\t\treceiver.send(responseCode, responseBundle);\n\t\t\t} else {\n\t\t\t\tcommitResponse = new AylaCallResponse(responseCode, responseBundle);\n\t\t\t}\n\t\t\treturn commitResponse;\n\t\t}\n\n\t\t// If this is request is going to a device directly, make sure the device we want to\n\t\t// contact is reachable. First get the URL from the rest service and see if it's a real\n\t\t// URL. If so, we'll see if it's addressed to one of our local devices.\n\t\tURL destinationURL;\n\t\ttry {\n\t\t\tdestinationURL = new URL(this.url);\n\t\t} catch (MalformedURLException ex) {\n\t\t\t// Ignore\n\t\t\tdestinationURL = null;\n\t\t}\n\n\t\t// If we got a valid URL for the destination, see if it's destined for a local device.\n\t\t// We will know that if DeviceManager finds it by the URL host, which will be the\n\t\t// device's IP address if this is in fact destined for a device.\n\t\tAylaDevice targetDevice = null;\n\t\tif ( destinationURL != null ) {\n\t\t\ttargetDevice = AylaDeviceManager.sharedManager().deviceWithLanIP(destinationURL.getHost());\n\t\t\tif ( targetDevice != null\n\t\t\t // Special case for getting the new device registration token during same lan registration flow\n\t\t\t && method != AylaRestService.GET_MODULE_REGISTRATION_TOKEN\n\t\t\t) {\n\t\t\t\t// Make sure the target device is reachable via the LAN\n\t\t\t\tint canReach = AylaReachability.getDeviceReachability(targetDevice);\n\t\t\t\tif ( canReach != AylaNetworks.AML_REACHABILITY_REACHABLE ) {\n\t\t\t\t\t// Throw out this request- we know now that it will fail, and don't want to\n\t\t\t\t\t// take the time to wait for it to do so.\n\t\t\t\t\tAylaSystemUtils.saveToLog(\"%s, %s, %s:%s, %s, %s.\", \"E\", \"ExecuteRequest\",\n\t\t\t\t\t\t\t\"LM device not reachable\", destinationURL.toString(),\n\t\t\t\t\t\t\t\"canReach:\" + canReach, \"execute\");\n\t\t\t\t\tresponseBundle = new Bundle();\n\t\t\t\t\tresponseBundle.putString(\"result\", rs.jsonResults); // response v3.07\n\t\t\t\t\tresponseBundle.putInt(\"subTask\", rs.subTaskFailed);\n\t\t\t\t\tresponseCode = AylaNetworks.AML_ERROR_UNREACHABLE;\n\n\t\t\t\t\tif (async) {\n\t\t\t\t\t\treceiver.send(responseCode, responseBundle);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcommitResponse = new AylaCallResponse(responseCode, responseBundle);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// If this is a cloud request, and we can't reach the cloud, fail immediately\n\t\tif (!AylaReachability.isCloudServiceAvailable()) {\n\t\t\tif (AylaReachability.isDeviceLanModeAvailable(null) && supportsLanModeResponse(method)) {\n\t\t\t\t// We aren't connected to the cloud, but we are connected to the LAN mode device\n\t\t\t\tAylaSystemUtils.saveToLog(\"%s, %s, %s:%d, %s\", \"V\", \"ExecuteRequest\", \"lanMode\", method, \"execute\");\n\t\t\t} else if (!supportsOfflineResponse(method)) {\n\t\t\t\t// Make sure the method supports cached results if we cannot reach the service.\\\n\t\t\t\t// return failure here\n\t\t\t\tAylaSystemUtils.saveToLog(\"%s, %s, %s:%d, %s\", \"E\", \"ExecuteRequest\", \"!cloud && !supportOffline\", method, \"execute\");\n\t\t\t\tresponseBundle = new Bundle();\n\t\t\t\tresponseBundle.putString(\"result\", rs.jsonResults); // response v3.07\n\t\t\t\tresponseBundle.putInt(\"subTask\", rs.subTaskFailed);\n\t\t\t\tresponseCode = AylaNetworks.AML_ERROR_UNREACHABLE;\n\n\t\t\t\tif (async) {\n\t\t\t\t\treceiver.send(responseCode, responseBundle);\n\t\t\t\t} else {\n\t\t\t\t\tcommitResponse = new AylaCallResponse(responseCode, responseBundle);\n\t\t\t\t}\n\t\t\t\treturn commitResponse;\n\t\t\t} else {\n\t\t\t\tAylaSystemUtils.saveToLog(\"%s, %s, %s:%d, %s\", \"V\", \"ExecuteRequest\", \"cached\", method, \"execute\");\n\t\t\t}\n\t\t}\n\n\t\treturn commitResponse;\n\t}", "boolean hasJsonReqMsg();", "protected synchronized void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/plain;charset=UTF-8\");\n String remoteHost = request.getRemoteHost();\n String localhost = request.getLocalName();\n String localIP = request.getLocalAddr();\n\n\n PrintWriter out = response.getWriter();\n try {\n out.println(\"healthy=true\");\n out.println(\"ip=\" + localIP);\n out.println(\"host=\" + localhost);\n out.println(\"client=\" + remoteHost);\n if (lastHeathCheck != null) {\n out.println(\"lastCheck=\" + sdf.format(lastHeathCheck));\n out.println(\"lastCheckClient=\" + lastCheckClient);\n }\n\n } finally {\n if (!\"true\".equals(request.getParameter(\"nolog\"))) {\n lastHeathCheck = new Date();\n lastCheckClient = remoteHost;\n }\n out.close();\n }\n }", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "public boolean hasRequest (String name)\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"hasRequest\", true);\n $out.write_string (name);\n $in = _invoke ($out);\n boolean $result = $in.read_boolean ();\n return $result;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n return hasRequest (name );\n } finally {\n _releaseReply ($in);\n }\n }", "public static int getRequestNum(){\n return requestNum;\n }", "protected boolean isHeadRequest(ActionInvocation actionInvocation) {\n return actionInvocation.method != null && HTTPMethod.HEAD.is(actionInvocation.method.httpMethod);\n }", "private void processRequestRange(String targetID, HttpServerRequest req) throws Exception {\n\t\tString result = retrieveDetails(targetID);\n\t\tif(result != null)\n\t\t\treq.response().end(result);\n\t\telse\n\t\t\treq.response().end(\"No resopnse received\");\n\t}", "private void filterAndHandleRequest () {\n\t// Filter the request based on the header.\n\t// A response means that the request is blocked.\n\t// For ad blocking, bad header configuration (http/1.1 correctness) ... \n\tHttpHeaderFilterer filterer = proxy.getHttpHeaderFilterer ();\n\tHttpHeader badresponse = filterer.filterHttpIn (this, channel, request);\n\tif (badresponse != null) {\n\t statusCode = badresponse.getStatusCode ();\n\t sendAndClose (badresponse);\n\t} else {\n\t status = \"Handling request\";\n\t if (getMeta ())\n\t\thandleMeta ();\n\t else\n\t\thandleRequest ();\n\t}\n }", "public void handleRequest () {\n\t// TODO: move this method to separate thread, \n\t// TODO: it may block in many places.\n\tRequestHandler rh = new RequestHandler ();\t\n\tCache<HttpHeader, HttpHeader> cache = proxy.getCache ();\n\tString method = request.getMethod ();\n\tif (!method.equals (\"GET\") && !method.equals (\"HEAD\"))\n\t cache.remove (request);\n\t\t\n\trh.entry = cache.getEntry (request);\n\tif (rh.entry != null)\n\t rh.dataHook = rh.entry.getDataHook (proxy.getCache ());\n\n\tcheckNoStore (rh.entry);\n\tif (!rh.cond.checkMaxStale (request, rh) && checkMaxAge (rh))\n\t setMayUseCache (false);\n\t\n\trh.conditional = rh.cond.checkConditional (this, request, rh);\n\tif (partialContent (rh)) \n\t fillupContent (rh);\n\tcheckIfRange (rh);\n\n\tboolean mc = getMayCache ();\n\tif (getMayUseCache ()) {\n\t // in cache?\n\t if (rh.entry != null) {\n\t\tCacheChecker cc = new CacheChecker ();\n\t\tif (cc.checkCachedEntry (this, request, rh)) {\n\t\t return;\n\t\t}\n\t }\n\t}\n\t\n\tif (rh.content == null) {\n\t // Ok cache did not have a usable resource, \n\t // so get the resource from the net.\n\t // reset value to one before we thought we could use cache...\n\t mayCache = mc;\n\t SWC swc = new SWC (this, proxy.getOffset (), request, requestBuffer,\n\t\t\t tlh, clientResourceHandler, rh);\n\t swc.establish ();\n\t} else {\n\t resourceEstablished (rh);\n\t}\n }", "public void procRequest ()\r\n\t{\r\n\t\tthis.simTime = this.sim.getTimer();\r\n\t\tthis.request.setStartTime(simTime);\r\n\t\t//Debug/System.out.println(Fmt.time(simTime)\r\n\t\t//Debug/\t+ \": <procRequest> \" + request);\r\n\r\n\t\t//\tNeed to move from current cylinder to requested cylinder.\r\n\t\t//\tIf current == requested, no action.\r\n\t\tif (this.cylinder != this.request.getCylinder())\r\n\t\t\tthis.simTime += this.calcSeekTime(this.request.getCylinder());\r\n\t\tthis.sim.addEvent(new Event(Event.SEEK_SATISFIED, this.simTime));\r\n\t}" ]
[ "0.7172721", "0.7070074", "0.7070074", "0.7070074", "0.7070074", "0.7070074", "0.7070074", "0.7070074", "0.7070074", "0.7070074", "0.7070074", "0.6552328", "0.6549139", "0.6549139", "0.6549139", "0.65356266", "0.65148705", "0.65148705", "0.6458744", "0.6406288", "0.63191277", "0.63083833", "0.6266757", "0.62661946", "0.6249708", "0.6241839", "0.6228975", "0.61898655", "0.6181854", "0.61811453", "0.6110781", "0.6088693", "0.60745484", "0.6059997", "0.6059997", "0.6027525", "0.6021966", "0.6021966", "0.6017393", "0.6007195", "0.6002936", "0.6002936", "0.59979737", "0.5985373", "0.59734046", "0.5964567", "0.5964567", "0.5900588", "0.5889099", "0.58838624", "0.5872475", "0.5813098", "0.5795748", "0.57645506", "0.5750446", "0.57408166", "0.57399535", "0.57296246", "0.5719213", "0.57136166", "0.5698331", "0.5690937", "0.5690325", "0.56798214", "0.56752026", "0.56701696", "0.56691355", "0.56661606", "0.5665618", "0.5663857", "0.5663383", "0.56549436", "0.56539744", "0.56449825", "0.5644285", "0.5644285", "0.5644285", "0.5644285", "0.56365263", "0.5633014", "0.56202304", "0.56198335", "0.5610526", "0.5610093", "0.5608469", "0.5605944", "0.5605944", "0.5605944", "0.5605944", "0.5605944", "0.5605944", "0.5605944", "0.5605944", "0.5605944", "0.560288", "0.5596521", "0.5596278", "0.55901736", "0.55602926", "0.5554683", "0.55524725" ]
0.0
-1
Generates the kernel from the specified values
public static double[][] gaussianFunction(int size_x, int size_y, double sigma) { double[][] kernel; int center_x = size_x/2; int center_y = size_y/2; kernel = new double[size_y][size_x]; for (int y=0; y<size_y; y++) { for (int x=0; x<size_x; x++) { double tmp_x = (double)((x - center_x) * (x - center_x)) / (2 * sigma * sigma); double tmp_y = (double)((y - center_y) * (y - center_y)) / (2 * sigma * sigma); kernel[y][x] = 1.0 / (2 * Math.PI * sigma * sigma) * Math.exp(-(tmp_x + tmp_y)); } } return kernel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double Generate(double[] par);", "private void multiply(float... values) {\n buffer(() -> {\n try (Pooled<Matrix4F> mat = Matrix4F.of(values)) {\n kernel.get().multiply(mat.get());\n }\n trans.set(kernel.get().asArray());\n });\n }", "private static WeightsAndOffsets GenerateGaussShaderKernelWeightsAndOffsets(int kernelSize){\n float[] inputKernel = GetAppropriateSeparableGauss(kernelSize);\n\n float[] oneSideInputs = new float[kernelSize/2 + 1];\n for( int i = (kernelSize/2); i >= 0; i-- )\n {\n if( i == (kernelSize/2) )\n oneSideInputs[i] = ( (float)inputKernel[i] * 0.5f );\n else\n oneSideInputs[i] = ( (float)inputKernel[i] );\n }\n\n assert( (oneSideInputs.length % 2) == 0 );\n int numSamples = oneSideInputs.length/2;\n\n float[] weights = new float[numSamples];\n\n for( int i = 0; i < numSamples; i++ )\n {\n float sum = oneSideInputs[i*2+0] + oneSideInputs[i*2+1];\n weights[i] = sum;\n }\n\n float[] offsets = new float[numSamples];\n\n for( int i = 0; i < numSamples; i++ )\n {\n offsets[i] = ( i*2.0f + oneSideInputs[i*2+1] / weights[i] );\n }\n\n return new WeightsAndOffsets(weights, offsets);\n }", "public int kernelSize();", "public abstract double[] generate(double[] inputs, Matrix metaData);", "public ConstantGen (double val) {\n this.val = val;\n }", "public void generateB(){\n\t\t\tfor(int i = 0;i < w.length;i++){\n\t\t\t\tb[i] = w[i].multiply(r).mod(q);\n\t\t\t}\n\t}", "private static Picture kernel(Picture picture, double[][] weights) {\n Picture target = new Picture(picture);\n\n for (int tcol = 0; tcol < picture.width(); tcol++) {\n for (int trow = 0; trow < picture.height(); trow++) {\n double sumR = 0;\n double sumG = 0;\n double sumB = 0;\n int wLen = weights.length;\n int center = wLen / 2;\n\n for (int i = 0; i < wLen; i++) {\n for (int j = 0; j < wLen; j++) {\n double coefficient = weights[i][j];\n\n // Periodic pixels & their colors.\n int scol = Math.floorMod(tcol - center + i, picture.width());\n int srow = Math.floorMod(trow - center + j, picture.height());\n\n Color color = picture.get(scol, srow);\n int r = color.getRed();\n int g = color.getGreen();\n int b = color.getBlue();\n sumR += r * coefficient;\n sumG += g * coefficient;\n sumB += b * coefficient;\n }\n }\n\n Color c = new Color(format(sumR), format(sumG), format(sumB));\n target.set(tcol, trow, c);\n }\n }\n return target;\n }", "Kernel kernelToTest();", "public Kernels2D createCustomKernel2D(Sequence kernel2D, int t, int z, int c)\n {\n this.width = kernel2D.getSizeX();\n this.height = kernel2D.getSizeY();\n if (width % 2 == 0 || height % 2 == 0) throw new IllegalArgumentException(\"Kernel sequence must have odd dimensions\");\n this.data = SequenceUtil.convertToType(kernel2D, DataType.DOUBLE, false).getDataXYAsDouble(t, z, c);\n normalize(data);\n return this;\n }", "@Test\n public void testKernel() {\n assert (ff.getKernel().inside(-1, -1, 0, 50, 0, -30, 0, 10));\n }", "public abstract double getGen(int i);", "public static interface Kernel {\n /**\n * Gets the maximum memory size the kernel may manage.\n */\n public int getKernelSize();\n\n /**\n * Evaluates moving average memory.\n * @param headIndex starting position for circular buffer.\n * @param memory memory as circular buffer.\n */\n public double eval(final double[] memory, final int headIndex);\n }", "public int generate(int k) {\n // PUT YOUR CODE HERE\n }", "public static void generator(){\n int vector[]= new int[5];\r\n vector[10]=20;\r\n }", "public KernelPolynomial()\r\n\t{\r\n\t\tthis(0, 0, 3);\r\n\t}", "public int getKernelSize();", "public static KernelInterface getKernel(int type, double a, double b, double c) {\n\t\tswitch (type) {\n\t\tcase 0:\n\t\t\treturn new SimpleKernel();\n\t\tcase 1:\n\t\t\treturn new RBFKernel(a);\n\t\tcase 2:\n\t\t\treturn new SigmoidKernel(a, b);\n\t\tcase 3:\n\t\t\treturn new PolynomialKernel(a, b, c);\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException(\"The selected Kernel does not exist!: \" + type);\n\t\t}\n\t}", "private void computeKernelMatrix(double[][] featureVectors, double[][] kernel, double factor) {\r\n\t\tfor (int i = 0; i < featureVectors.length; i++) {\r\n\t\t\tfor (int j = i; j < featureVectors.length; j++) {\t\t\t\r\n\t\t\t\tkernel[i][j] += KernelUtils.dotProduct(featureVectors[i], featureVectors[j]) * factor;\r\n\t\t\t\tkernel[j][i] = kernel[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private String getKernelName(int idx){\r\n String[] kernels = {\"Line\",\"Poly\",\"RBF\",\"Sigmoid\",\"Precomputed kernel\"};\r\n return kernels[idx];\r\n }", "public static void main( String[] args ){\n\t\tDoubleGenerator g = gaussian();\n\t\t// DoubleGenerator g = power_law();\n\t\t// DoubleGenerator g = symmetric_power_law();\n\t\tint n = 10;\n\t\t// Generating an array of ten random values\n\t\tdouble[] x = g.generate(n);\n\t\tfor( int i=0; i<n; i++ ){\n\t\t\tSystem.out.println( x[i] );\n\t\t}\n\t\tSystem.out.println(\"****************\");\n\t\t// Generating ten random values\n\t\tfor( int i=0; i<n; i++ ){\n\t\t\tSystem.out.println(g.next());\n\t\t}\n\t}", "@Override\n\tpublic double apply(double value) {\n\t\tfor (int i = 0; i < constants.length; i++) {\n\t\t\tnextConstant = new Constant(constants[constants.length - i - 1]);\n\t\t\tnextExponent = new LinearProduct(nextConstant, new Exponent(i));\n\t\t\tresult += nextExponent.apply(value);\n\t\t}\n\t\treturn result;\n\t}", "private double getExponentTerm(final double[] values) {\n //final double[] centered = new double[values.length];\n //for (int i = 0; i < centered.length; i++) {\n // centered[i] = values[i] - means[i];\n //}\n // I think they are already centered from earlier?\n //final double[] preMultiplied = covariance_rpt_inv_normal.multiply(values/*centered*/);\n double sum = 0;\n for (int i = 0; i < values.length; i++) {\n sum += (Math.exp(-0.5 * values[i]) / constant_normal);//centered[i];\n }\n return sum;\n }", "public double [] generate(double[] scalings) {\n\t\tMatrix scale = new Matrix(this.eigenvalues.length, 1);\n\t\t\n\t\tfor (int i=0; i<Math.min(eigenvalues.length, scalings.length); i++)\n\t\t\tscale.set(i, 0, scalings[i]);\n\t\t\n\t\tMatrix meanMatrix = new Matrix(new double[][]{mean}).transpose();\n\t\t\n\t\treturn meanMatrix.plus(eigenvectors.times(scale)).getColumnPackedCopy();\n\t}", "private void doBlur(int times){\n \n int pixel, x,y;\n long s,r,g,b;\n //times the image will be blurred with the kernel\n for (int t = 0; t < times; t++) {\n //march pixels\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < size; j++) {\n //reset colors\n r = g = b = s = 0;\n //march pixels inside kernel\n for (int k = 0; k < kernelSize; k++) {\n for (int l = 0; l < kernelSize; l++) {\n //get rgb color from pixel\n x = j + l - kernelCenter; \n y = i + k - kernelCenter;\n try{\n if( x>=0 && x<512 && y>=0 && y<512 ){\n pixel = imageKerneled.getRGB(x,y);\n //multiply the rgb by the number in kernel\n r += ((pixel >> 16) & 0xff) * kernel[k][l];\n g += ((pixel >> 8) & 0xff) * kernel[k][l];\n b += ((pixel) & 0xff) * kernel[k][l];\n s += kernel[k][l];\n }\n }catch(ArrayIndexOutOfBoundsException e){\n System.out.println(\"Error en \"+x+\",\"+y);\n }\n }\n }\n //averages\n r = Math.round(r/s);\n if(r>255) {System.out.println(r+\" entro r > 255 en \"+j+\",\"+i); r=255; }\n else if(r<0) {System.out.println(r+\" entro r < 255 en \"+j+\",\"+i); r=0; }\n g = Math.round(g/s);\n if(g>255) {System.out.println(g+\" entro g > 255 en \"+j+\",\"+i); g=255; }\n else if(g<0) {System.out.println(g+\" entro g < 255 en \"+j+\",\"+i); g=0; }\n b = Math.round(b/s);\n if(b>255) {System.out.println(b+\" entro b > 255 en \"+j+\",\"+i); b=255; }\n else if(b<0) {System.out.println(b+\" entro b < 255 en \"+j+\",\"+i); b=0; }\n //set the new rgb\n imageKerneled2.setRGB(j,i,new Color((int)r,(int)g,(int)b).getRGB());\n }\n }\n copyKerneled2ToKerneled();\n System.out.println(\"Finished blur: \"+(t+1));\n }\n }", "public Kernel getKernel()\n {\n return this.kernel;\n }", "public Kernels2D createCustomKernel2D(double[] kernel, int width, int height, boolean isNormalized)\n {\n this.width = width;\n this.height = height;\n this.data = new double[width * height];\n System.arraycopy(kernel, 0, this.data, 0, kernel.length);\n if (!isNormalized) normalize(this.data);\n return this;\n }", "public IndexMapKey(final int[] kernel, final int[] output) {\n super();\n this.kernel = kernel;\n this.output = output;\n }", "private void generateParameterValues()\n\t{\n\t\t/*\n\t\t * Initialize variables for storage of the actual parameter data and prepare the histogram bins aggregating them. \n\t\t */\n\t\t\n\t\t// Init storage.\n\t\tparameterValues.clear();\n\t\tparameterValues.put(\"alpha\", new ArrayList<Double>(numberOfDivisions));\n\t\tparameterValues.put(\"eta\", new ArrayList<Double>(numberOfDivisions));\n\t\tparameterValues.put(\"kappa\", new ArrayList<Double>(numberOfDivisions));\n\t\t\n\t\t// Init bins.\n\t\tfinal int numberOfBins \t\t\t\t\t= 50;\n\t\tMap<String, int[]> parameterBinLists\t= new HashMap<String, int[]>();\n\t\tparameterBinLists.put(\"alpha\", new int[numberOfBins]);\n\t\tparameterBinLists.put(\"eta\", new int[numberOfBins]);\n\t\tparameterBinLists.put(\"kappa\", new int[numberOfBins]);\n\t\t\n\t\t// Init random number generator.\n\t\tRandom randomGenerator\t= new Random();\n\t\t\n\t\t/*\n\t\t * Generate numberOfDivisions values for each parameter.\n\t\t */\n\t\t\n\t\tswitch (sampling_combobox.getValue())\n\t\t{\n\t\t\tcase \"Random\":\n\t\t\t\t// Generated values are allowed to be up to rangeSlider.getHighValue() and as low as rangeSlider.getLowValue().\n\t\t\t\tdouble intervalAlpha \t= rangeSliders.get(\"alpha\").getHighValue() - rangeSliders.get(\"alpha\").getLowValue();\n\t\t\t\tdouble intervalEta\t\t= rangeSliders.get(\"eta\").getHighValue() - rangeSliders.get(\"eta\").getLowValue();\n\t\t\t\tdouble intervalKappa\t= rangeSliders.get(\"kappa\").getHighValue() - rangeSliders.get(\"kappa\").getLowValue();\n\t\t\t\t\n\t\t\t\t// Generate random parameter values.\t\t\n\t\t\t\tfor (int i = 0; i < numberOfDivisions; i++) {\n\t\t\t\t\tparameterValues.get(\"alpha\").add(rangeSliders.get(\"alpha\").getLowValue() + randomGenerator.nextFloat() * intervalAlpha);\n\t\t\t\t\tparameterValues.get(\"eta\").add(rangeSliders.get(\"eta\").getLowValue() + randomGenerator.nextFloat() * intervalEta);\n\t\t\t\t\tparameterValues.get(\"kappa\").add(rangeSliders.get(\"kappa\").getLowValue() + randomGenerator.nextFloat() * intervalKappa);\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"Cartesian\":\n\t\t\t\tfor (String param : LDAConfiguration.SUPPORTED_PARAMETERS) {\n\t\t\t\t\tfinal double interval = (rangeSliders.get(param).getHighValue() - rangeSliders.get(param).getLowValue()) / (numberOfDivisions);\n\t\t\t\t\t\n\t\t\t\t\tfor (int i = 0; i < numberOfDivisions; i++) {\n\t\t\t\t\t\tparameterValues.get(param).add(rangeSliders.get(param).getLowValue() + interval * i + interval / 2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"Latin Hypercube\":\n\t\t\t\tfor (String param : LDAConfiguration.SUPPORTED_PARAMETERS) {\n\t\t\t\t\t// Calcualte bin interval.\n\t\t\t\t\tfinal double interval \t\t= (rangeSliders.get(param).getHighValue() - rangeSliders.get(param).getLowValue()) / (numberOfDivisions);\n\n\t\t\t\t\tfor (int i = 0; i < numberOfDivisions; i++) {\n\t\t\t\t\t\t// Minimal value allowed for current bin.\n\t\t\t\t\t\tfinal double currentBinMin = rangeSliders.get(param).getLowValue() + interval * i;\n\t\t\t\t\t\t// Generate value for this bin.\n\t\t\t\t\t\tparameterValues.get(param).add(currentBinMin + randomGenerator.nextFloat() * interval);\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t//\t\t\t\t\tto do:\n\t//\t\t\t\t\t\t- test: check generate.txt.\n\t//\t\t\t\t\t\t- after that: START WRITING PAPER (SATURDAY!).\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t/*\n\t\t * Bin data for use in histograms/scented widgets.\n\t\t */\n\t\t\n\t\t// Bin data.\n\t\tfor (Map.Entry<String, ArrayList<Double>> entry : parameterValues.entrySet()) {\n\t\t\tdouble binInterval = (rangeSliders.get(entry.getKey()).getMax() - rangeSliders.get(entry.getKey()).getMin()) / numberOfBins;\n\t\t\t\n\t\t\t// Check every value and assign it to the correct bin.\n\t\t\tfor (double value : entry.getValue()) {\n\t\t\t\tint index_key = (int) ( (value - rangeSliders.get(entry.getKey()).getMin()) / binInterval);\n\t\t\t\t// Check if element is highest allowed entry.\n\t\t\t\tindex_key = index_key < numberOfBins ? index_key : numberOfBins - 1;\n\t\t\t\t\n\t\t\t\t// Increment content of corresponding bin.\n\t\t\t\tparameterBinLists.get(entry.getKey())[index_key]++;\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t * Transfer data to scented widgets.\n\t\t */\n\t\t\n\t\t// Clear old data.\n\t\talpha_barchart.getData().clear();\n\t\teta_barchart.getData().clear();\n\t\tkappa_barchart.getData().clear();\n\n\t\t// Add data series to barcharts.\n\t\talpha_barchart.getData().add(generateParameterHistogramDataSeries(\"alpha\", parameterBinLists, numberOfBins));\n\t\teta_barchart.getData().add(generateParameterHistogramDataSeries(\"eta\", parameterBinLists, numberOfBins));\n\t\tkappa_barchart.getData().add(generateParameterHistogramDataSeries(\"kappa\", parameterBinLists, numberOfBins));\n\t}", "public interface Kernel {\n\n\tvoid run(int i);\n\tint size();\n}", "public float work(float ds, float v);", "public int addKernel(float[] kernel){\n\n synchronized (instance) {\n SQLiteDatabase currentWork = this.openDatabase(Constants.DATABASE_PATH);\n\n if (currentWork == null) {\n // Will show some text when connecting to view layer.\n return -1;\n }\n\n // Content Value is a class that hold <key, value> pair\n // Instead writing the whole query, we do this for simple purpose\n\n ContentValues insertValues = new ContentValues();\n\n String kernelValue = CastHelper.getStringArrayFromFloat(kernel);\n insertValues.putNull(\"KERNEL_ID\");\n insertValues.put(\"KERNEL_VALUE\", kernelValue);\n\n currentWork.beginTransaction();\n\n try {\n long id = currentWork.insertOrThrow(\"KERNEL\", null, insertValues);\n\n if (id == -1)\n throw new Exception(\"Can't insert\");\n // if id different from -1 then we create a folder in internal storage that stand for the\n // album.\n\n currentWork.setTransactionSuccessful();\n } catch (Exception e) {\n Log.e(\"ERROR INSERT\", e.getMessage());\n return -1;\n } finally {\n currentWork.endTransaction();\n currentWork.close();\n }\n\n instance.notify();\n return getKernelLatestId();\n }\n }", "public Kernels2D createCustomKernel2D(double[][] kernel, boolean isNormalized)\n {\n this.width = kernel.length;\n this.height = kernel[0].length;\n this.data = new double[width * height];\n int offset = 0;\n for (double[] line : kernel)\n {\n System.arraycopy(line, 0, this.data, offset, line.length);\n offset += line.length;\n }\n if (!isNormalized) normalize(this.data);\n return this;\n }", "public double train(double[] X, double argValue);", "public static HashMap<LonLat,ArrayList<STPoint>> clustering2dKNSG(IKernel kernel,ArrayList<STPoint> data,double h,double e) {\n\t\tHashMap<LonLat,ArrayList<STPoint>> result = new HashMap<LonLat,ArrayList<STPoint>>();\n\t\tint N = data.size();\n\t\t//\t\tSystem.out.println(\"#number of points : \"+N);\n\n\t\tfor(STPoint point:data) {\n\t\t\t// seek mean value //////////////////\n\t\t\tLonLat mean = new LonLat(point.getLon(),point.getLat());\n\n\t\t\t//loop from here for meanshift\n\t\t\twhile(true) {\n\t\t\t\tdouble numx = 0d;\n\t\t\t\tdouble numy = 0d;\n\t\t\t\tdouble din = 0d;\n\t\t\t\tfor(int j=0;j<N;j++) {\n\t\t\t\t\tLonLat p = new LonLat(data.get(j).getLon(),data.get(j).getLat());\n\t\t\t\t\tdouble k = kernel.getDensity(mean,p,h);\n\t\t\t\t\tnumx += k * p.getLon();\n\t\t\t\t\tnumy += k * p.getLat();\n\t\t\t\t\tdin += k;\n\t\t\t\t}\n\t\t\t\tLonLat m = new LonLat(numx/din,numy/din);\n\t\t\t\tif( mean.distance(m) < e ) { mean = m; break; }\n\t\t\t\tmean = m;\n\t\t\t}\n\t\t\t//\t\t\tSystem.out.println(\"#mean is : \" + mean);\n\t\t\t// make cluster /////////////////////\n\t\t\tArrayList<STPoint> cluster = null;\n\t\t\tfor(LonLat p:result.keySet()) {\n\t\t\t\tif( mean.distance(p) < e ) { cluster = result.get(p); break; }\n\t\t\t}\n\t\t\tif( cluster == null ) {\n\t\t\t\tcluster = new ArrayList<STPoint>();\n\t\t\t\tresult.put(mean,cluster);\n\t\t\t}\n\t\t\tcluster.add(point);\n\t\t}\n\t\treturn result;\n\t}", "V build(K input);", "@Override\n\t\tpublic double[] generate(double[] input, Matrix metaData)\n\t\t{\n\t\t\t\n\t\t\tList<DiscreteDistribution<Double>> distForInput = outputDistributions.get(input);\n\t\t\tif (distForInput == null)\n\t\t\t{\n\t\t\t\tfor (int c : new Range(input.length, metaData.cols()))\n\t\t\t\t{\t\n\t\t\t\t\t// Randomly choose how many outputs this input can map to.\n\t\t\t\t\tint numOutputValues = rand.nextInt(metaData.getValueCount(c)) + 1;\n\t\t\t\t\t\n\t\t\t\t\tList<Integer> options = Helper.iteratorToList(new Range(metaData.getValueCount(c)));\n\t\n\t\t\t\t\t// Sample from options without replacement.\n\t\t\t\t\tList<Double> outputValues = new ArrayList<>();\n\t\t\t\t\tfor (int ignored = 0; ignored < numOutputValues; ignored++)\n\t\t\t\t\t{\n\t\t\t\t\t\tint i = rand.nextInt(options.size());\n\t\t\t\t\t\toutputValues.add((double)(int)options.get(i));\n\t\t\t\t\t\toptions.remove(i);\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\tList<Double> weights = new ArrayList<Double>();\n\t\t\t\t\tfor (int i = 0; i < outputValues.size(); i++)\n\t\t\t\t\t\tweights.add(rand.nextDouble());\n\t\t\t\t\t\n\t\t\t\t\tDiscreteDistribution<Double> outputDist = new DiscreteDistribution<>(outputValues, weights, rand);\n\t\t\t\t\toutputDistributions.add(input, outputDist);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tdistForInput = outputDistributions.get(input);\n\t\t\tdouble[] result = new double[metaData.getNumLabelColumns()];\n\t\t\tfor (int c : new Range(metaData.getNumLabelColumns()))\n\t\t\t{\n\t\t\t\tresult[c] = distForInput.get(c).sample();\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\treturn result;\n\t\t}", "public int generate(int k) {\n int r = 0;\n for (int i = 0; i < k; i++) {\n r = (r*2) + step();\n }\n return r;\n }", "@Test\n public void joinComputationsTest() {\n try (Context context = GrCUDATestUtil.buildTestContext().build()) {\n Value createStream = context.eval(\"grcuda\", \"cudaStreamCreate\");\n Value stream1 = createStream.execute();\n Value stream2 = createStream.execute();\n\n final int numElements = 100;\n final int numBlocks = (numElements + NUM_THREADS_PER_BLOCK - 1) / NUM_THREADS_PER_BLOCK;\n Value deviceArrayConstructor = context.eval(\"grcuda\", \"DeviceArray\");\n Value x = deviceArrayConstructor.execute(\"float\", numElements);\n Value y = deviceArrayConstructor.execute(\"float\", numElements);\n Value z = deviceArrayConstructor.execute(\"float\", numElements);\n Value buildkernel = context.eval(\"grcuda\", \"buildkernel\");\n Value squareKernel = buildkernel.execute(SQUARE_KERNEL, \"square\", \"pointer, pointer, sint32\");\n Value sumKernel = buildkernel.execute(SUM_KERNEL, \"square\", \"pointer, pointer, sint32\");\n\n for (int i = 0; i < numElements; ++i) {\n x.setArrayElement(i, 2.0);\n }\n // Set the custom streams;\n Value configuredSquareKernel1 = squareKernel.execute(numBlocks, NUM_THREADS_PER_BLOCK, stream1);\n Value configuredSquareKernel2 = squareKernel.execute(numBlocks, NUM_THREADS_PER_BLOCK, stream2);\n Value configuredSquareKernel3 = sumKernel.execute(numBlocks, NUM_THREADS_PER_BLOCK, stream1);\n\n Value createEvent = context.eval(\"grcuda\", \"cudaEventCreate\");\n Value eventRecord = context.eval(\"grcuda\", \"cudaEventRecord\");\n Value streamEventWait = context.eval(\"grcuda\", \"cudaStreamWaitEvent\");\n\n configuredSquareKernel1.execute(x, y, numElements);\n configuredSquareKernel2.execute(x, z, numElements);\n\n // Create an event to ensure that kernel 2 executes after kernel 1 is completed;\n Value event = createEvent.execute();\n eventRecord.execute(event, stream2);\n streamEventWait.execute(stream1, event);\n\n configuredSquareKernel3.execute(y, z, numElements);\n\n Value syncStream = context.eval(\"grcuda\", \"cudaStreamSynchronize\");\n syncStream.execute(stream1);\n\n for (int i = 0; i < numElements; i++) {\n assertEquals(8, y.getArrayElement(i).asFloat(), 0.01);\n }\n }\n }", "public void climber()\n {\n Scanner keyboard = new Scanner(System.in);\n\n //calls the desiredVector() method to create a desired vector.\n DesiredVector aDesiredVector = new DesiredVector();\n aDesiredVector.desiredVector();\n\n System.out.println(\"Enter the number of times to cycle through. \");\n MAX = keyboard.nextInt();\n System.out.println(\"Enter Number of Random Vectors to create\");\n N = keyboard.nextInt();\n\n // calls the randomVector() method to generate random Vectors\n for ( int k = 0; k < MAX; k++ )\n {\n RandomVectorGenerator aRandomGenerator = new RandomVectorGenerator();\n aRandomGenerator.randomVector(N);\n }\n\n System.out.format(\" f(v_c) 'Desired Function Value' = %.2f%n%n\",\n aDesiredVector.getDesiredFunctionValue());\n\n }", "public abstract boolean generate(int i0,int j0,int k0) throws InterruptedException;", "public abstract void setGen(int i, double value);", "public void setKernelAndName(double[][] kernel, String name){\n\t\tthis.name = name;\n\t\tthis.kernel = kernel;\n\t}", "IVec3 mult(float k);", "public org.apache.spark.ml.param.ParamPair<double[]> w (java.util.List<java.lang.Double> value) { throw new RuntimeException(); }", "public VMKernel()\n {\n super();\n }", "@Override\n public T generate() {\n counter = calculate();\n return values[counter];\n }", "public static int[] LoGFilter(int[] data, int w, int h) {\n int[] newData = new int[w * h];\n\n // apply filter\n int kernel_size = 3; // kernel size\n double s = 1.1; // sigma value\n double i2ss = 0.5 / s / s, issss = 1d / s / s / s / s;\n\n double[][] kernel = new double[kernel_size * 2 + 1][kernel_size * 2 + 1];\n for (int i = -kernel_size; i <= kernel_size; i++) {\n for (int j = -kernel_size; j <= kernel_size; j++) {\n double ss = (i * i + j * j) * i2ss;\n kernel[i + kernel_size][j + kernel_size] = (ss - 1d) * Math.exp(-ss) * issss / Math.PI;\n }\n }\n\n for (int x = 0; x < w; x++) {\n for (int y = 0; y < h; y++) {\n double sum = 0d;\n for (int i = -kernel_size; i <= kernel_size; i++) {\n for (int j = -kernel_size; j <= kernel_size; j++) {\n int xx = x + i, yy = y + j;\n if (xx >= 0 && xx < w && yy >= 0 && yy < h) {\n sum += kernel[i + kernel_size][j + kernel_size] * RGB.luminance(data[yy * w + xx]);\n }\n }\n }\n\n newData[y * w + x] = (int) sum;\n }\n }\n\n return newData;\n }", "public static final int[] MSC(double[][] users, double kernelSize) {\n\t\tif(users.length==0) return null;\n\t\t\n\t\tint dimension = users[0].length;\n\t\tint points = users.length;\n\t\t// TODO revisar el codigo y optimizar\n\t\t// TODO Entender esta linea. Sirve para copiar arrays, pero quiero aprender como funciona stream\n\t\tdouble[][] clusterPoints = Arrays.stream(users).map(double[]::clone).toArray(double[][]::new);\n\t\tboolean[] hasConverged = new boolean[points];\n\t\tint totalConverged = 0;\n\t\twhile(totalConverged < points)\n\t\t\tfor(int i = 0; i < points; i++) {\n\t\t\t\tif(hasConverged[i]==true) continue;\n\t\t\t\t\n\t\t\t\tdouble[] shift = new double[dimension];\n\t\t\t\tint totalMove = 0;\n\t\t\t\t\n\t\t\t\tfor(int j = 0; j < points;j++) \n\t\t\t\t\tif(Metrics.flatKernel(clusterPoints[i],kernelSize, users[j])>0) {\n\t\t\t\t\t\tshift = Vectors.sumV(shift, users[j]);\n\t\t\t\t\t\ttotalMove++;\n\t\t\t\t\t}\n\t\t\t\tshift = Vectors.divVC(shift, totalMove);\n\t\t\t\tif(Vectors.isZero(Vectors.subV(shift, clusterPoints[i]))) {\n\t\t\t\t\thasConverged[i] = true;\n\t\t\t\t\ttotalConverged++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tclusterPoints[i] = shift.clone();\n\t\t\t}\n\t\t\n\t\tint[] resultClusters = new int[points];\n\t\tint actCluster = 0;\n\t\tfor(int i = 0; i < points-1; i++) {\n\t\t\tif(hasConverged[i]==false) continue;\n\t\t\tresultClusters[i] = ++actCluster;\n\t\t\tfor(int j = i+1; j < points; j++) \n\t\t\t\tif(Vectors.isEqual(clusterPoints[i], clusterPoints[j])) {\n\t\t\t\t\thasConverged[j] = false;\n\t\t\t\t\tresultClusters[j] = actCluster;\n\t\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn resultClusters;\n\t}", "public void testEvaluate()\n {\n Vector zero = new Vector3();\n Vector x = new Vector3(RANDOM.nextGaussian(), RANDOM.nextGaussian(), RANDOM.nextGaussian());\n Vector y = new Vector3(RANDOM.nextGaussian(), RANDOM.nextGaussian(), RANDOM.nextGaussian());\n \n double weight = RANDOM.nextDouble();\n WeightedKernel<Vector> instance = new WeightedKernel<Vector>(\n weight, LinearKernel.getInstance());\n \n double expected = weight * x.dotProduct(y);\n assertEquals(expected, instance.evaluate(x, y));\n assertEquals(expected, instance.evaluate(y, x));\n assertEquals(0.0, instance.evaluate(x, zero));\n assertEquals(0.0, instance.evaluate(y, zero));\n assertEquals(0.0, instance.evaluate(zero, zero));\n }", "public LinearGaussian(double[] values) {\n\t\tsuper();\n\t\tthis.values = values;\n\t\t\n\t\t/*calculate mean*/\n\t\tmean = Utilities.averageValueOfArray(values);\n\t\tvariance = Utilities.averageValueOfArray(varianceArray());\n\t}", "private void LoadKernels(ArrayList<Double> data)\r\n\t{\r\n\t\tint max = Integer.MIN_VALUE;\r\n\t\tfor (int val : data)\r\n\t\t{\r\n\t\t\tif (val > max)\r\n\t\t\t{\r\n\t\t\t\tmax = val;\r\n\t\t\t}\r\n\t\t}\r\n\t\tdouble[] meanFrec = new double[max + 1];\r\n\t\tfor (int val : data)\r\n\t\t{\r\n\t\t\tmeanFrec[val] = meanFrec[val] + 1;\r\n\t\t}\r\n\t\tdEst = new DensityEstim(s, maxIterations, maxClasses);\r\n\t\tdEst.LoadDist(new ArrayList<Double>(meanFrec));\r\n\t}", "public Kernel getKernel() {\n return kernel;\n }", "public void setKernelSize(float s) {\r\n kernelSizeOpen = s;\r\n }", "M generateNoise();", "@Override\n\tpublic void update(Kernel kernel, float t, float dt) {}", "public int calcKernelSize() {\n\t\treturn 1+(int)Math.round(getStd()*3)*2;\n\t}", "void kernel_load_parameters(double max_point_distance) {\n\t Matrix3 covariance_xyz = node.m_covariance;\n\t Matrix3 jacobian_normal = new Matrix3();\n Vector4d n = node.normal1.Normalized();\n // Jacobian Matrix calculation\n //double t=1.0;\n double EPS2 = 0.00001; //epsilon?\n Vector4d p = n.multiply(rho);\n double w = (p.x * p.x) + (p.y * p.y);\n double p2 = w + (p.z * p.z);\n double sqrtW = Math.sqrt(w);\n jacobian_normal.set(0,0, n.x);\n\t jacobian_normal.set(0,1, n.y);\n\t jacobian_normal.set(0,2, n.z);\n jacobian_normal.set(1,0, sqrtW<EPS2?(p.x * p.z)/EPS2:(p.x * p.z) / (sqrtW * p2)); \n\t jacobian_normal.set(1,1, sqrtW<EPS2?(p.y * p.z)/EPS2:(p.y * p.z) / (sqrtW * p2)); \n\t jacobian_normal.set(1,2, p2<EPS2?-sqrtW/EPS2:(-sqrtW / p2));\n jacobian_normal.set(2,0, (w<EPS2)?-p.y/EPS2:-p.y / w);\n\t jacobian_normal.set(2,1, (w<EPS2)?p.x/EPS2:p.x / w);\n\t jacobian_normal.set(2,2, 0.0);\n \n\t // Area importance (w_a) \n double w_a = 0.75;\n // Number-of-points importance (w_d)\n double w_d = 1- w_a;\n // w_a times node size over octree size plus w_d times samples in cluster over total samples in cloud\n node.representativeness = ( ((double)node.m_size/(double)node.m_root.m_size) * w_a ) + \n\t\t\t\t\t\t\t\t( ((double)node.m_indexes.size()/(double)node.m_root.m_points.size()) * w_d );\n\n // Uncertainty propagation\n\t Matrix3 jacobian_transposed_normal = Matrix3.transpose(jacobian_normal);\n\t // calculate covariance matrix\n\t // First order uncertainty propagation analysis generates variances and covariances in theta,phi,rho space \n\t // from euclidian space.\n covariance_rpt_normal = jacobian_normal.multiply(covariance_xyz).multiply(jacobian_transposed_normal);\n \n // Cluster representativeness\n covariance_rpt_normal.set(0,0, covariance_rpt_normal.get(0,0)+NONZERO);\n constant_normal = Math.sqrt(Math.abs(covariance_rpt_normal.determinant())*root22pi32);\n // if matrix is singular determinant is zero and constant_normal is 0\n // Supposedly adding epsilon averts this according to paper and in normal circumstances\n // a singular matrix would mean coplanar samples and voting should be done with bivariate kernel over theta,phi\n if( constant_normal == 0 ) {\n \t if( DEBUG ) {\n \t\t System.out.println(\"kernel_t kernel_load_parameters determinant is 0 for \"+this);\n \t }\n \t voting_limit = 0;\n \t return;\n }\n // if invert comes back null then the matrix is singular, which means the samples are coplanar\n covariance_rpt_inv_normal = covariance_rpt_normal.invert();\n if( covariance_rpt_inv_normal == null ) {\n \t if( DEBUG ) {\n \t\t System.out.println(\"kernel_t kernel_load_parameters covariance matrix is singular for \"+this);\n \t }\n \t voting_limit = 0;\n \t return;\n }\n\t EigenvalueDecomposition eigenvalue_decomp = new EigenvalueDecomposition(covariance_rpt_normal);\n\t double[] eigenvalues_vector = eigenvalue_decomp.getRealEigenvalues();\n\t Matrix3 eigenvectors_matrix = eigenvalue_decomp.getV();\n // Sort eigenvalues\n int min_index = 0;\n if (eigenvalues_vector[min_index] > eigenvalues_vector[1])\n min_index = 1;\n if (eigenvalues_vector[min_index] > eigenvalues_vector[2])\n min_index = 2;\n if( DEBUG )\n \t System.out.println(\"kernel_t kernel_load_parameters eigenvalues_vector=[\"+eigenvalues_vector[0]+\" \"+eigenvalues_vector[1]+\" \"+eigenvalues_vector[2]+\"] min_index=\"+min_index);\n // Voting limit calculation (g_min)\n double radius = Math.sqrt( eigenvalues_vector[min_index] ) * 2;\n voting_limit = trivariated_gaussian_dist_normal( eigenvectors_matrix.get(0, min_index) * radius, \n\t\t\t\t\t\t\t\t\t\t\t\t\t eigenvectors_matrix.get(1, min_index) * radius, \n\t\t\t\t\t\t\t\t\t\t\t\t\t eigenvectors_matrix.get(2, min_index) * radius);\n if(DEBUG)\n \t System.out.println(\"kernel_t kernel_load_parameters voting limit=\"+voting_limit);\n }", "public VMKernel() {\n }", "public CmdFitPow(Kernel kernel) {\n\t\tsuper(kernel);\n\t}", "public KernelHistogram(int index, int size) {\n\n this.size = size / 2;\n value = index == MIDDLE ? size * size / 2 : index;\n\n }", "protected static float[] getBinomialKernelSigmaOneSQRT2() {\n float a = 1.f/256.f;\n return new float[]{a*3, a*12, a*27, a*28,\n 0, -28*a, -27*a, -12*a, -3*a};\n }", "public void DiskRandCompute(int i, int j) {\n\n\t}", "RedSphere(int[] vals) {\n for (int i = 0; i < 6; i++) {\n value[i] = vals[i];\n }\n }", "public static double f(Double[] genotype) {\n\t\t//first, interpret genotype\n\t\tDouble[] variables = new Double[variableNum];\n\t\tfor(int i = 0; i < variableNum; i++) {\n\t\t\tvariables[i] = (genotype[i] - minValue)/(maxValue - minValue)*(actMax - actMin) + actMin;\n\t\t}\n\t\t//calculate the value\n\t\tdouble value = 0.0;\n//\t\tvalue = variables[0]*variables[0]+variables[1]*variables[1]+1;\n//\t\tvalue = variables[0]*variables[0]+variables[1]*variables[1]+variables[2]*variables[2]+variables[3]*variables[3]+1;\n\t\tfor(int i = 0; i < variableNum; i++) value+=(parameters[i]*Math.pow(variables[i], pows[i]));\n\t\treturn value;\n\t}", "public int[] rgbvalues(int x, int y, int[] node, int[] values){\n \tvalues[0] = x;\n \tvalues[1] = y;\n \tint nodeplace = 0;\n \tfor(int i = 2; i < values.length; i++){\n \t\tint f = values[node[nodeplace++]];\n \t\tint g = values[node[nodeplace++]];\n \t\tint function = node[nodeplace++];\n \t\tif (function == 0) {\n\t\t\t\tvalues[i] = (f | g);\n\t\t\t}\n\t\t\telse if (function == 1) {\n\t\t\t\tvalues[i] = (f % (g + 1));\n\t\t\t}\n\t\t\telse if (function == 2) {\n\t\t\t\tvalues[i] = ((int)(f / 3.0));\n\t\t\t}\n\t\t\telse if (function == 3) {\n\t\t\t\tvalues[i]= (int)(Math.abs(Math.cos(Math.toRadians(f))*255));\n\t\t\t}\n\t\t\telse if (function == 4) {\n\t\t\t\tvalues[i] = (int)(Math.abs(Math.sin(Math.toRadians(f))*255));\n\t\t\t}\n\t\t\telse if (function == 5) {\n\t\t\t\tvalues[i] = (int)(Math.abs(Math.atan(Math.toRadians(f)) / (Math.PI / 2) * 255));\n\t\t\t}\n\t\t\telse if (function == 6) {\n\t\t\t\tvalues[i] = ((f & g));\n\t\t\t}\n\t\t\telse if (function == 7) {\n\t\t\t\tvalues[i] = (f + g);\n\t\t\t}\n\t\t\telse if (function == 8) {\n\t\t\t\tvalues[i] = (f == g) ? f : (f > g) ? f - g : g - f;\n\t\t\t}\n\t\t\telse if (function == 9) {\n\t\t\t\tvalues[i] = (int)(Math.abs(255 - f));\n\t\t\t}\n\t\t\telse if (function == 10) {\n\t\t\t\tvalues[i] = (int)Math.sqrt(Math.pow(f - 400, 2.0) + Math.pow(g - 400, 2.0));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tLog.e(\"OOPS\", \"function choice of \" + Integer.toString(function));\n\t\t\t}\n \t}\n \t\n \tint[] rgb = new int[3];\n \trgb[0] = values[node[node.length-3]] % 255;\n \trgb[1] = values[node[node.length-2]] % 255;\n \trgb[2] = values[node[node.length-1]] % 255;\n \treturn rgb;\n }", "static void set_bnd ( int N, int b, double[] x )\r\n{\nint i;\r\nfor ( i=1 ; i<=N ; i++ ) {\r\nx[getIndex(0 ,i)] = b==1 ? -x[getIndex(1,i)] : x[getIndex(1,i)];\r\nx[getIndex(N+1,i)] = b==1 ? -x[getIndex(N,i)] : x[getIndex(N,i)];\r\nx[getIndex(i,0 )] = b==2 ? -x[getIndex(i,1)] : x[getIndex(i,1)];\r\nx[getIndex(i,N+1)] = b==2 ? -x[getIndex(i,N)] : x[getIndex(i,N)];\r\n}\r\nx[getIndex(0 ,0 )] = 0.5f*(x[getIndex(1,0 )]+x[getIndex(0 ,1)]);\r\nx[getIndex(0 ,N+1)] = 0.5f*(x[getIndex(1,N+1)]+x[getIndex(0 ,N )]);\r\nx[getIndex(N+1,0 )] = 0.5f*(x[getIndex(N,0 )]+x[getIndex(N+1,1)]);\r\nx[getIndex(N+1,N+1)] = 0.5f*(x[getIndex(N,N+1)]+x[getIndex(N+1,N )]);\r\n\r\n//System.out.println(\"dopo\");\r\n//draw_dens ( N, x );\r\n}", "public int g2dsg(int v) { return g2dsg[v]; }", "public int generate(int k) {\n int result = 0;\n\n for (int i = 0; i < k; i++) {\n result = 2 * result + step();\n }\n return result;\n }", "public void byConstant(double k){\r\n if (k<0){\r\n double aux = firstExtreme;\r\n firstExtreme = k*secondExtreme;\r\n secondExtreme = k*aux;\r\n }else{\r\n firstExtreme = k*firstExtreme;\r\n secondExtreme = k*secondExtreme;\r\n }\r\n }", "public void testGetKernels()\n {\n this.testSetKernels();\n }", "default DiscreteDoubleMap2D times(double value) {\r\n\t\treturn pushForward(d -> d * value);\r\n\t}", "private int[] generate(int[] cells) {\n // Placeholder\n int[] newCells = new int[cells.length];\n\n // Boundary-elements, simply ignoring them..\n for (int x = 1; x < cells.length - 1; x++) {\n\n // Neighborhood\n int left = cells[x - 1];\n int mid = cells[x];\n int right = cells[x + 1];\n\n int newState = next(left, mid, right);\n\n newCells[x] = newState;\n }\n\n return newCells;\n }", "private double RepulsionFactorSourceNodes(){\n \tdouble RepulsionFactor=10000.0d *(contextNodeSize*5);\n \t\n \treturn RepulsionFactor;\n }", "private double genMultiplier() {\n return (random.nextInt(81) + 60)/100.0;\n }", "public Function generateSMap() {\n\t\tFunction sMap = new Function();\n\t\t\n\t\t//initialize all targets to zero\n\t\tfor(Integer index : allMonomials.keySet()) {\n\t\t\tList<int[]> monomialList = allMonomials.get(index);\n\t\t\tfor(int[] monomial : monomialList) {\n\t\t\t\tsMap.set(monomial, new MilnorElement(0));\n\t\t\t}\n\t\t}\n\t\t\n\t\tsMap.set(new int[0], new MilnorElement(new int[0]));\n\t\t\n\t\t//TODO there should be a method which does what the next 6 lines do. almost filteredDimensions() but need AmodAn info, etc\n\t\tDualSteenrod AmodAn = new DualSteenrod(null);\n\t\tAmodAn.setGenerators(DualSteenrod.getDualAModAnGenerators(N));\n\t\t\n\t\tint topClassDim = Tools.milnorDimension(topClass());\n\t\tInteger[] AmodAnKeys = Tools.keysToSortedArray(AmodAn.getMonomialsAtOrBelow(topClassDim));\n\t\tMap<Integer, List<int[]>> filteredMonomials = getMonomialsByFilter(AmodAnKeys);\n\t\tInteger[] dualAnKeys = Tools.keysToSortedArray(filteredMonomials);\n\t\t\n\t\t//this is the only place where the targets of the s map can be NONZERO\n\t\tfor(int i = 0; i < dualAnKeys.length; i++) {\n\t\t\tList<int[]> monomialList = filteredMonomials.get(dualAnKeys[i]);\n\t\t\tfor(int[] monomial : monomialList) {\n\t\t\t\tsMap.set(monomial, new MilnorElement(0));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn sMap;\n\t}", "protected void generate() {\n\t\tcpGenerator( nx, ny, nz, ClosePackedLattice.HCP);\n\t}", "public static int[] bilateralFilter(int[] data, int w, int h) {\n int[] newData = new int[w * h];\n\n // apply filter\n int kernel = 3; // kernel size\n double s1 = 100, s2 = 10; // sigma values\n double i2ss1 = 0.5 / s1 / s1, i2ss2 = 0.5 / s2 / s2;\n\n for (int x = 0; x < w; x++) {\n for (int y = 0; y < h; y++) {\n double deno_sum = 0d;\n double nume_sum_l = 0d, nume_sum_a = 0d, nume_sum_b = 0d;\n\n for (int i = -kernel; i <= kernel; i++) {\n for (int j = -kernel; j <= kernel; j++) {\n int xx = x + i, yy = y + j;\n if (xx >= 0 && xx < w && yy >= 0 && yy < h) {\n int c = data[yy * w + xx];\n double ii = i * i, jj = j * j;\n double S = Math.exp(-(ii + jj) * i2ss1) * Math.exp(-Lab.distance_not_sqrt(data[y * w + x], c) * i2ss2);\n deno_sum += S;\n nume_sum_l += Lab.l(c) * S;\n nume_sum_a += Lab.a(c) * S;\n nume_sum_b += Lab.b(c) * S;\n }\n }\n }\n\n newData[y * w + x] = Lab.lab(\n (int) (nume_sum_l / deno_sum),\n (int) (nume_sum_a / deno_sum),\n (int) (nume_sum_b / deno_sum));\n }\n }\n\n return newData;\n }", "private static void vel_step ( int N, double[] u, double[] v, double[] u0, double[] v0,\r\n\t\tfloat visc, float dt )\r\n\t\t{\r\n\t\tadd_source ( N, u, u0, dt ); add_source ( N, v, v0, dt );\r\n\t\t\r\n\t\t/*\r\n\t\tdraw_dens ( N, v );\r\n\t\tdraw_dens ( N, v0 );\r\n\t\t*/\r\n\t\t\r\n\t\t//SWAP ( u0, u ); \r\n\t\t\r\n\t\tdouble[] temp;\r\n\t\ttemp=u0;\r\n\t\tu0=u;\r\n\t\tu=temp;\r\n\t\t//draw_dens ( N, u );\r\n\t\tdiffuse ( N, 1, u, u0, visc, dt );\r\n\t\t//draw_dens ( N, u );\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t//SWAP ( v0, v ); \r\n\t\t//double[] temp;\r\n\t\ttemp=v0;\r\n\t\tv0=v;\r\n\t\tv=temp;\r\n\t\t//draw_dens ( N, v );\r\n\t\t//draw_dens ( N, v0 );\r\n\t\tdiffuse ( N, 2, v, v0, visc, dt );\r\n\t\t//draw_dens ( N, v );\r\n\t\t//System.out.println(\"V\");\r\n\t\t//draw_dens ( N, v );\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\tdraw_dens ( N, v );\r\n\t\tdraw_dens ( N, v0 );\r\n\t\t*/\r\n\t\tproject ( N, u, v, u0, v0 );\r\n\t\t//SWAP ( u0, u ); \r\n\t\ttemp=u0;\r\n\t\tu0=u;\r\n\t\tu=temp;\r\n\t\t\r\n\t\t//SWAP ( v0, v );\r\n\t\ttemp=v0;\r\n\t\tv0=v;\r\n\t\tv=temp;\r\n\t\t//System.out.println(\"V\");\r\n\t\t//draw_dens ( N, v );\r\n\t\t\r\n\t\t/*\r\n\t\tdraw_dens ( N, v );\r\n\t\tdraw_dens ( N, v0 );\r\n\t\t*/\r\n\t\t\r\n\t\tadvect ( N, 1, u, u0, u0, v0, dt ); \r\n\t\tadvect ( N, 2, v, v0, u0, v0, dt );\r\n\t\tproject ( N, u, v, u0, v0 );\r\n\t\t}", "private static float[] GetAppropriateSeparableGauss(int kernelSize){\n final double epsilon = 2e-2f / kernelSize;\n double searchStep = 1.0;\n double sigma = 1.0;\n while( true )\n {\n\n double[] kernelAttempt = GenerateSeparableGaussKernel( sigma, kernelSize );\n if( kernelAttempt[0] > epsilon )\n {\n if( searchStep > 0.02 )\n {\n sigma -= searchStep;\n searchStep *= 0.1;\n sigma += searchStep;\n continue;\n }\n\n float[] retVal = new float[kernelSize];\n for (int i = 0; i < kernelSize; i++)\n retVal[i] = (float)kernelAttempt[i];\n return retVal;\n }\n\n sigma += searchStep;\n\n if( sigma > 1000.0 )\n {\n assert( false ); // not tested, preventing infinite loop\n break;\n }\n }\n\n return null;\n }", "public static int [][] generateValues (int sources) {\n\t\t\tRandom rand = new Random();\n\t\t\tint [][] tempGridValues = new int[gridSize.getValue()][gridSize.getValue()]; //holds new values temporarily\n\t\t\t\n\t\t\t//random 2D array of either ones and zeros\n\t\t\tif (sources == -1) {\n\t\t\t\tfor (int i = 0; i < gridSize.getValue(); i++ ) {\n\t\t\t\t\tfor (int j = 0; j < gridSize.getValue(); j++) {\n\t\t\t\t\t\tgridValues[i][j] = rand.nextInt(2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn gridValues;\n\t\t\t}\n\t\t\t//assigns new grid values based on game rules\n\t\t\telse {\n\t\t\t\tfor (int i = 0; i < gridSize.getValue(); i++ ) {\n\t\t\t\t\tfor (int j = 0; j < gridSize.getValue(); j++) {\n\t\t\t\t\t\tint alivePoints = checkAlive(i, j);\n\t\t\t\t\t\tif (gridValues[i][j] == 0 && alivePoints == 3) {\n\t\t\t\t\t\t\ttempGridValues[i][j] = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (gridValues[i][j] == 1 && (alivePoints < 2 ||alivePoints > 3)) {\n\t\t\t\t\t\t\ttempGridValues[i][j] = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\ttempGridValues[i][j] = gridValues[i][j];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tgridValues = tempGridValues;\n\t\t\t\treturn gridValues;\n\t\t\t}\n\t\t\t\n\t\t}", "@Override\n /**\n * @param X The input vector. An array of doubles.\n * @return The value returned by th LUT or NN for this input vector\n */\n\n public double outputFor(double[] X) {\n int i = 0, j = 0;\n for(i=0;i<argNumInputs;i++){\n S[0][i] = X[i];\n NeuronCell[0][i] = X[i];\n }\n //then add the bias term\n S[0][argNumInputs] = 1;\n NeuronCell[0][argNumInputs] = customSigmoid(S[0][argNumInputs]);\n S[1][argNumHidden] = 1;\n NeuronCell[1][argNumHidden] = customSigmoid(S[1][argNumInputs]);\n\n for(i=0;i<argNumHidden;i++){\n for(j=0;j<=argNumInputs;j++){\n //Wji : weigth from j to i\n WeightSum+=NeuronCell[0][j]*Weight[0][j][i];\n }\n //Sj = sigma(Wji * Xi)\n S[1][i]=WeightSum;\n NeuronCell[1][i]=(customSigmoid(WeightSum));\n //reset weigthsum\n WeightSum=0;\n }\n\n for(i = 0; i < argNumOutputs; i++){\n for(j = 0;j <= argNumHidden;j++){\n WeightSum += NeuronCell[1][j] * Weight[1][j][i];\n }\n NeuronCell[2][i]=customSigmoid(WeightSum);\n S[2][i]=WeightSum;\n WeightSum=0;\n }\n //if we only return 1 double, it means we only have one output, so actually we can write return NeuronCell[2][0]\n return NeuronCell[2][0];\n }", "public static float[] getBinomialKernelSigmaZeroPointFive() {\n //1 -1 norm=0.5\n return new float[]{0.5f, 0.0f, -0.5f};\n }", "public abstract double[] evaluateAt(double u, double v);", "public static void main(String[] args) {\n Random r=new Random();\n int values[] = new int [50];\n\n\n for(int i=0;i< values.length;i++) {\n values[i] = r.nextInt(400);\n\n System.out.println(values[i]);\n }\n\n }", "public abstract Case[][] generate();", "public Kernels2D createGaborKernel2D(double sigma, double k_x, double k_y, boolean isSymmetric)\n {\n int k = (int) Math.floor(sigma * 3.0);\n \n this.width = 2 * k + 1;\n this.height = 2 * k + 1;\n this.data = new double[width * height];\n \n if (isSymmetric)\n {\n for (int i = -k; i <= k; i++)\n for (int j = -k; j <= k; j++)\n data[(i + k) + (j + k) * width] = (double) (Math.cos(k_x * i + k_y * j) * Math.exp(-0.5f * (i * i + j * j) / (sigma * sigma)));\n }\n else\n {\n for (int i = -k; i <= k; i++)\n for (int j = -k; j <= k; j++)\n data[(i + k) + (j + k) * width] = (double) (Math.sin(k_x * i + k_y * j) * Math.exp(-0.5f * (i * i + j * j) / (sigma * sigma)));\n }\n \n normalize(data);\n \n return this;\n }", "default DiscreteDoubleMap2D dividedBy(double value) {\r\n\t\treturn pushForward(d -> d / value);\r\n\t}", "protected static float[] getBinomialKernelSigmaFour() {\n // sigma=4 n=64\n // NOTE: the curvature tests for the non-binomial kernal sigma four \n // are better, so use those.\n float a = 1.f/82.0f;\n return new float[]{\n (float) (1.4677788298671463E-5) * a, (float) (5.577559553495156E-5) * a,\n (float) (1.924887094025772E-4) * a, (float) (6.059829740451504E-4) * a,\n (float) (0.0017466568075419043) * a, (float) (0.004623503314081511) * a,\n (float) (0.011267648817280127) * a, (float) (0.02533103004787036) * a,\n (float) (0.05261060086865382) * a, (float) (0.10104575722392242) * a,\n (float) (0.17954411407556464) * a, (float) (0.2950768483502758) * a,\n (float) (0.4480796586059744) * a, (float) (0.627311522048364) * a,\n (float) (0.8065433854907539) * a, (float) (0.9459459459459458) * a,\n (float) (1.0) * a, (float) (0.9310344827586206) * a, (float) (0.7241379310344828) * a,\n (float) (0.3971078976640712) * a, (float) (0.0) * a, (float) (-0.3971078976640712) * a,\n (float) (-0.7241379310344828) * a, (float) (-0.9310344827586206) * a,\n (float) (-1.0) * a, (float) (-0.9459459459459458) * a, (float) (-0.8065433854907539) * a,\n (float) (-0.627311522048364) * a, (float) (-0.4480796586059744) * a,\n (float) (-0.2950768483502758) * a, (float) (-0.17954411407556464) * a,\n (float) (-0.10104575722392242) * a, (float) (-0.05261060086865382) * a,\n (float) (-0.02533103004787036) * a, (float) (-0.011267648817280127) * a,\n (float) (-0.004623503314081511) * a, (float) (-0.0017466568075419043) * a,\n (float) (-6.059829740451504E-4) * a, (float) (-1.924887094025772E-4) * a,\n (float) (-5.577559553495156E-5) * a, (float) (-1.4677788298671463E-5) * a\n };\n }", "protected static float[] getBinomialKernelSigmaTwo() {\n double a = 1.f/33300l;\n return new float[]{\n (float) (1l * a), (float) (14l * a), (float) (90l * a),\n (float) (350l * a), (float) (910l * a), (float) (1638l * a),\n (float) (2002l * a), (float) (1430l * a), (float) (0l * a),\n (float) (-1430l * a), (float) (-2002l * a), (float) (-1638l * a),\n (float) (-910l * a), (float) (-350l * a), (float) (-90l * a),\n (float) (-14l * a), (float) (-1l * a)\n };\n }", "private static native long createGraphSegmentation_0(double sigma, float k, int min_size);", "protected static float[] getBinomialKernelSigmaOne() {\n float a = 1.f/16.f;\n return new float[]{2*a, 4*a, 0, -4*a, -2*a};\n }", "public static int getMaxValueDynamicGFG(int[] val, int[] weight, int index){\n\t\treturn 0;\n\t}", "public double[] randv()\n\t{\n\t\tdouble p = a * (1.0 - e * e);\n\t\tdouble cta = Math.cos(ta);\n\t\tdouble sta = Math.sin(ta);\n\t\tdouble opecta = 1.0 + e * cta;\n\t\tdouble sqmuop = Math.sqrt(this.mu / p);\n\n\t\tVectorN xpqw = new VectorN(6);\n\t\txpqw.x[0] = p * cta / opecta;\n\t\txpqw.x[1] = p * sta / opecta;\n\t\txpqw.x[2] = 0.0;\n\t\txpqw.x[3] = -sqmuop * sta;\n\t\txpqw.x[4] = sqmuop * (e + cta);\n\t\txpqw.x[5] = 0.0;\n\n\t\tMatrix cmat = PQW2ECI();\n\n\t\tVectorN rpqw = new VectorN(xpqw.x[0], xpqw.x[1], xpqw.x[2]);\n\t\tVectorN vpqw = new VectorN(xpqw.x[3], xpqw.x[4], xpqw.x[5]);\n\n\t\tVectorN rijk = cmat.times(rpqw);\n\t\tVectorN vijk = cmat.times(vpqw);\n\n\t\tdouble[] out = new double[6];\n\n\t\tfor (int i = 0; i < 3; i++)\n\t\t{\n\t\t\tout[i] = rijk.x[i];\n\t\t\tout[i + 3] = vijk.x[i];\n\t\t}\n\n\t\treturn out;\n\t}", "public native MagickImage convolveImage(int order, double[] kernel)\n\t\t\tthrows MagickException;", "public void compute(double[] values, int[] groupStart) {\n\t\tdouble[] mu = new double[groupStart.length];\n\t\tdouble[] sigma = new double[groupStart.length];\n\t\tint[] n = new int[groupStart.length];\n\t\t\n\t\tfor (int i=0; i<groupStart.length; i++) {\n\t\t\tint s = groupStart[i];\n\t\t\tint e = i<groupStart.length-1?groupStart[i+1]:values.length;\n\t\t\tmu[i] = mean.evaluate(values, s, e-s);\n\t\t\tsigma[i] = stddev.evaluate(values, mu[i], s, e-s);\n\t\t\tn[i] = e-s;\n\t\t}\n\t\t\n\t\tcompute(n,mu,sigma);\n\t}", "public void startNewKernel (String nodeId) {\n Runnable task = () -> {\n Kernel k = new Kernel(nodeId, this);\n\n kernels.put(nodeId, k);\n };\n\n Thread thread = new Thread(task);\n thread.start();\n\n }", "static <T> Nda<T> of( Iterable<T> values ) { return Tensor.of(values); }", "@Override\n\tpublic Parameter[] getGridSearchParameters() {\n\t\treturn new Parameter[] { kernelCoefficient, kernelDegree, kernelGamma, parameterC, parameterNu };\n\t}", "private void generateCombination() {\r\n\r\n\t\tfor (byte x = 0; x < field.length; x++) {\r\n\t\t\tfor (byte y = 0; y < field[x].length; y++) {\r\n\t\t\t\tfield[x][y].setValue((byte) newFigure(Constants.getRandom()));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tint[][] mat = {\n\t\t\t\t{1,2,3,4,5},\n\t\t\t\t{6,7,8,9,10},\n\t\t\t\t{11,12,13,14,15},\n\t\t\t\t{16,17,18,19,20}\n\t\t};\n\t\tfor(int x: generate(4,5,mat)){\n System.out.print(x +\" \");\n\t\t}\n\t}" ]
[ "0.5443299", "0.5392206", "0.5262114", "0.52487326", "0.5226256", "0.51882154", "0.50916815", "0.5063808", "0.5060561", "0.5030512", "0.5027551", "0.5011943", "0.5008703", "0.4982979", "0.4936276", "0.492294", "0.49006325", "0.48717177", "0.48670205", "0.4859909", "0.4846636", "0.4839837", "0.48251426", "0.48153067", "0.48125327", "0.48091114", "0.47935545", "0.476359", "0.47600946", "0.4755919", "0.47151363", "0.47050336", "0.4686239", "0.46771452", "0.46672034", "0.4661893", "0.46530303", "0.46470755", "0.4639069", "0.4608153", "0.46058822", "0.4573397", "0.45553648", "0.4543192", "0.45396456", "0.45170906", "0.45107955", "0.4481172", "0.44788828", "0.44785407", "0.44557425", "0.4449259", "0.44485882", "0.44451568", "0.44428456", "0.44423112", "0.4437088", "0.44280633", "0.44259912", "0.44218877", "0.44200623", "0.4408869", "0.43983427", "0.43875155", "0.43861297", "0.4385001", "0.43831867", "0.4382677", "0.4381228", "0.4375421", "0.43726042", "0.43657154", "0.43579525", "0.43548828", "0.43485248", "0.43483663", "0.43450725", "0.43430352", "0.43409383", "0.4340822", "0.43387598", "0.43386748", "0.43383628", "0.43368348", "0.43243322", "0.43241492", "0.43240175", "0.43194702", "0.43128154", "0.4309475", "0.43016258", "0.429465", "0.42921048", "0.42913142", "0.4287611", "0.42853448", "0.4276383", "0.42691782", "0.42576715", "0.4251959", "0.4251912" ]
0.0
-1
/ Record for every new level
public void recordGameScores(String gold, String lives, String level) throws IOException{ String endpoint = "recordscore"; URL url = new URL(baseURL + endpoint); String json = "{\"gold\": \"" + gold + "\",\"lives\":\""+lives+"\",\"level\":\""+level+"\"}"; String response = executeRequest(url, json, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addLevel()\r\n {\r\n tables.addFirst( new HashMap<String,T>() );\r\n counts.addFirst( 0 );\r\n }", "void createNewLevel(int level);", "private void increaseLevel(boolean list)\n\t{\n\t\tlevel++;\n\n\t\tif(hasData.length == level)\n\t\t{\n\t\t\t// Grow lists when needed\n\t\t\thasData = Arrays.copyOf(hasData, hasData.length * 2);\n\t\t\tlists = Arrays.copyOf(lists, hasData.length * 2);\n\t\t}\n\n\t\thasData[level] = false;\n\t\tlists[level] = list;\n\n\t\tnextKey = ! list;\n\t}", "public void setLevel(String newLevel) {\n level = newLevel;\n }", "public void createLevel() {\n room = 1;\n currentLevelFinish = false;\n createRoom();\n }", "public void incrementLevel()\r\n {\r\n counts.addFirst( counts.removeFirst() + 1 );\r\n }", "@Override\n\tpublic void genLevel(File f) {\n\t\t\n\t}", "public void saveMap(){\n dataBase.updateMap(level);\n }", "public BuildALevel(List<String> level) {\n this.level = level;\n this.map = new TreeMap<String, String>();\n // call the splitLevelDetails method\n splitLevelDetails();\n }", "void addLevel(Level level) {\r\n\t\tif (level != null) {\r\n\t\t\tlevelList.addItem(level.toString());\r\n\t\t}\r\n\t}", "public void setLevel(String level){\n\t\tthis.level = level;\n\t}", "protected abstract Level[] getLevelSet();", "public void setLevel(int newlevel)\n {\n level = newlevel; \n }", "public void setLevel(Level level) { this.currentLevel = level; }", "public void setLevel(String level) {\n this.level = level;\n }", "public void setLevel(String level) {\n this.level = level;\n }", "public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }", "public void setLevel(String level);", "public int getLevel(){\n return level;\n }", "public int getLevel(){\n return level;\n }", "public void setLevel(int level) {\n this.level = level;\n }", "public void setLevel(int level) {\n this.level = level;\n }", "public void extendGraph(int level) {\n\t\tmaxLevel++;\n\t\tsteps.put(maxLevel+1, steps.get(maxLevel));\n\t\tif (maxLevel == graph.countLevels()){\n\t\t\tgraph.extend();\n\t\t}\n\t\t\t\n\t\t\n\t\t/* start at highest level and move each level up until we get to insert level*/\n\t\tfor(int i = maxLevel; i > level; i--) {\n\t\t\tsteps.put(i, steps.get(i-1));\n\t\t\tfacts.put(i, facts.get(i-1));\n\t\t\tinconsistencies.put(i, inconsistencies.get(i-1));\n\t\t}\n\t\t\n\t\t/* add new sets to level */\n\t\t// Set<PlanGraphStep> newSteps = new HashSet<PlanGraphStep>();\n\t\tsteps.put(level, new HashSet<PlanGraphStep>());\n\t\tfacts.put(level, new HashSet<PlanGraphLiteral>());\n\t\tinconsistencies.put(level, new HashSet<LPGInconsistency>());\n\t\t\n\t\t/* propagate facts from previous level via no-ops\n\t\tfor (PlanGraphLiteral pgLiteral : facts.get(level-1)) {\n\t\t\taddStep(persistentSteps.get(pgLiteral), level, false);\n\t\t}*/\n\t\tfacts.get(level).addAll(facts.get(level-1));\n\t\t \n\t}", "public int getLevel()\n {\n return level; \n }", "public void setDataLevel(int dataLevel);", "public void setLevel(int level){\n\t\tthis.level = level;\n\t}", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "protected void setLevel(int level){\r\n this.level = level;\r\n }", "@Override\n public void levelUp(){\n //System.out.println(\"Level: \" + getLevel());\n if (getLevel() > 5) return;\n\n /* System.out.println(\"\\n-------\");\n System.out.println(\"Level: \" + getLevel());\n System.out.println(\"Se va a aumentar: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n*/\n double percentage = growth(getLevel()) + growthRate;\n\n setHealth((int) (getHealth() + getHealth() * percentage));\n strokePerTime = (int) (strokePerTime + strokePerTime * percentage);\n\n // Aumenta el rango si el nivel es 3 o 5\n // Luego quedan muy rotos xD\n if (getLevel() % 2 != 0) range++;\n setLevel(getLevel() + 1);\n\n /* System.out.println(\"resultado: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n System.out.println(\"-------\\n\");*/\n }", "public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }", "private void nextLevel()\n\t{\n\t\tMapInstance.getInstance().setSelectedLevel(MapInstance.getInstance().getSelectedLevel() + 1);\n\t}", "public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}", "private void setLevel(int level) {\n setStat(level, currentLevel);\n }", "public int getLevel()\r\n {\r\n return level;\r\n }", "public int getLevel()\n {\n return level;\n }", "public void newlevel() {\n\t\tblack = new Background(COURT_WIDTH, COURT_HEIGHT); // reset background\n\t\tcannon = new Cannon(COURT_WIDTH, COURT_HEIGHT); // reset cannon\n\t\tdeadcannon = null;\n\t\tbullet = null;\n\t\tshot1 = null;\n\t\tshot2 = null;\n\t\t// reset top row\n\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\talien1[i] = new Alien(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien1[i].pos_x = alien1[i].pos_x + 30*i;\n\t\t\talien1[i].v_x = level + alien1[i].v_x;\n\t\t}\n\t\t// reset second row\n\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\talien2[i] = new Alien2(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien2[i].pos_x = alien2[i].pos_x + 30*i;\n\t\t\talien2[i].v_x = level + alien2[i].v_x;\n\t\t}\n\t\t// reset third row\n\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\talien3[i] = new Alien3(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien3[i].pos_x = alien3[i].pos_x + 30*i;\n\t\t\talien3[i].v_x = level + alien3[i].v_x;\n\t\t}\n\t}", "@Test\r\n\tpublic final void testAddLevel() {\r\n\t\tlevels.add(lostLevel2);\r\n\t\tgameStatisticsLoss.addLevel(lostLevel2);\r\n\t\tassertTrue(gameStatisticsLoss.getLevels().equals(levels));\r\n\t}", "private void createAggLevels() {\n\t\t\tAoiLevel aggTableLevel\t\t= errorTable.getAoiLevel();\n\t\t\tAoiHierarchy aoiHierarchy \t= aggTableLevel.getHierarchy();\n\t\t\tAoiDimension aoiDim \t\t= getAoiDimension( aoiHierarchy );\n//\t\t\tField<Integer> aoiField \t= errorTable.getAoiField();\n\t\t\t\n//\t\t\tAggLevel aggLevel = new AggLevel( aoiDim.getHierarchy().getName() , aoiLevel.getName() , aoiField.getName() );\n//\t\t\taggLevels.add(aggLevel);\n//\t\t\t\n\t\t\t\n//\t\t\tAoiDimension aoiDim = getAoiDimension(aoiHierarchy);\n\t\t\tfor ( AoiLevel level : aoiHierarchy.getLevels() ) {\n\t\t\t\tif ( level.getRank() <= aggTableLevel.getRank() ) {\n\t\t\t\t\tField<Integer> field = errorTable.getAoiIdField( level );\n\t\t\t\t\tAggLevel aggLevel = new AggLevel(aoiDim.getHierarchy().getName(), level.getName(), field.getName());\n\t\t\t\t\taggLevels.add(aggLevel);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void setLevel(Level level) {\n\t\tthis.level = level;\n\t}", "protected void setLevel(int level)\n {\n this.level = level;\n }", "public void updateLevel(){\n level = parent.level+1;\n if(noOfChildren != 0){\n for (int i = 0; i<noOfChildren; i++) {\n getChild(i).updateLevel();\n }\n }\n }", "public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}", "public int getLevel() {\r\n return level;\r\n }", "public String getLevel ()\n {\n return level;\n }", "public Level create(Long id,String level){\n \n System.out.println(\"level\"+level);\n Level l=new Level(1,\"Beginner\");\n Level l2=new Level(2,\"Intermediate\");\n Level l3=new Level(3,\"professional\");\n levelRepository.save(l);\n levelRepository.save(l2);\n return levelRepository.save(l3);\n \n }", "int insert(AgentLevel record);", "private void updateGroup(String newGroupName, int level) {\r\n Equals levelFilter = new Equals(fieldName[level], previousNodeValue);\r\n CoeusVector cvFilteredData = (CoeusVector)cvHierarchyData.filter(levelFilter);\r\n if(cvFilteredData != null && cvFilteredData.size()>0) {\r\n for (int index=0; index < cvFilteredData.size(); index++) {\r\n sponsorHierarchyBean = (SponsorHierarchyBean)cvFilteredData.get(index);\r\n sponsorHierarchyBean.setAcType(TypeConstants.UPDATE_RECORD);\r\n switch(level) {\r\n case 1:\r\n sponsorHierarchyBean.setLevelOne(newGroupName);\r\n break;\r\n case 2:\r\n sponsorHierarchyBean.setLevelTwo(newGroupName);\r\n break;\r\n case 3:\r\n sponsorHierarchyBean.setLevelThree(newGroupName);\r\n break;\r\n case 4:\r\n sponsorHierarchyBean.setLevelFour(newGroupName);\r\n break;\r\n case 5:\r\n sponsorHierarchyBean.setLevelFive(newGroupName);\r\n break;\r\n case 6:\r\n sponsorHierarchyBean.setLevelSix(newGroupName);\r\n break;\r\n case 7:\r\n sponsorHierarchyBean.setLevelSeven(newGroupName);\r\n break;\r\n case 8:\r\n sponsorHierarchyBean.setLevelEight(newGroupName);\r\n break;\r\n case 9:\r\n sponsorHierarchyBean.setLevelNine(newGroupName);\r\n break;\r\n case 10:\r\n sponsorHierarchyBean.setLevelTen(newGroupName);\r\n break;\r\n }\r\n }\r\n }\r\n }", "public int getLevel(){\n return this.level;\n }", "public int getLevel(){\n return this.level;\n }", "public void setLevel(int level) {\n \t\tthis.level = level;\n \t}", "public void setLevel(int level) {\n\t\tthis.level = level;\n\t}", "public void setLevel(int level) {\n\t\tthis.level = level;\n\t}", "public void setItemLevel(int level) { this.level = level; }", "public int getLevel(){\n\t\treturn level;\n\t}", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "int insertSelective(AgentLevel record);", "public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}", "public int getDataLevel();", "void incrementNewDepth() {\n mNewDepth++;\n }", "public void loadLevel(int level) {\n if (level == 0) {\n return;\n }\n if (this.levels[level] == null) {\n this.elevatorLevelsUnlocked = Math.max(this.elevatorLevelsUnlocked,\n (int)((level-1)/5.0));\n \n this.levels[level] = new MineLevel.Builder(level).buildLevel(this);\n }\n Iterator<Gateway> gateways = this.levels[level-1].getGateways();\n Gateway nextGateway;\n while (gateways.hasNext()) {\n nextGateway = gateways.next();\n if (nextGateway.getDestinationGateway() == null) {\n nextGateway.setDestinationArea(this.levels[level]);\n nextGateway.setDestinationGateway(this.levels[level].getEntranceGateway());\n }\n }\n }", "@Override\n public int getLevelNumber() {\n return 0;\n }", "public int getLevel() { \r\n\t\treturn level; \r\n\t}", "void printLevel()\r\n\t {\r\n\t int h = height(root);\r\n\t int i;\r\n\t for (i=1; i<=h+1; i++)\r\n\t printGivenLevel(root, i);\r\n\t }", "public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n return level_;\n }", "public void setLevel(int level) {\n if(level > Constant.MAX_LEVEL){\n this.level = Constant.MAX_LEVEL;\n }else {\n this.level = level;\n }\n this.expToLevelUp = this.expValues[this.level];\n }", "protected int getLevel(){\r\n return this.level;\r\n }", "public String getLevelName(){\n return levelName;\n }", "public String getLevel()\n {\n return level;\n }", "@Override\n\tdouble updateLevel() {\n\t\treturn 0;\n\t}", "private void updateSkiTreeLevel(SkiNode head) {\n\t\tfor (SkiNode nextNode : head.next) {\n\t\t\tif (nextNode != null) {\n\t\t\t\tupdateSkiTreeLevel(nextNode);\n\t\t\t\thead.level = Math.max(head.level, nextNode.level + 1);\n\t\t\t}\n\t\t}\n\t\thead.level = Math.max(head.level, 1);\n\t\thMap[head.i][head.j] = head.level;\n\t}", "private void splitLevelDetails() {\n final int zero = 0;\n final int one = 1;\n // goes over all of the levels\n for (int i = 0; i < level.size(); i++) {\n // if the level.get(i) contains \":\"\n if (level.get(i).contains(\":\")) {\n // split the line\n String[] keyAndVal = level.get(i).trim().split(\":\");\n // put the key and the value in the map\n this.map.put(keyAndVal[zero], keyAndVal[one].trim());\n } else {\n break;\n }\n }\n }", "public String getLevel() {\n return level;\n }", "public void\t\t\t\t\t\t\tincreaseLevel()\t\t\t\t\t\t\t\t{ this.currentLevel += 1; }", "public String getLevel(){\n\t\treturn level;\n\t}", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public static void makeLevelsForTesting() {\n\t\tBuilder builder = new Builder();\n\t\tbuilder.setLevels(new ArrayList<Level>());\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tbuilder.addNewLevel(i % 3, 12);\n\t\t\tint[] nothing = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n\t\t\t\t\t0, 0, 0, 0, 0 };\n\t\t\tbuilder.saveLevel(nothing);\n\t\t\tSystem.out.println(builder.getLevels());\n\t\t}\n\t\tbuilder.saveToDisc();\n\t}", "public void helper(TreeNode node, int level) {\n if (levels.size() == level)\n levels.add(new ArrayList<Integer>());\n\n // fulfil the current level\n levels.get(level).add(node.val);\n\n // process child nodes for the next level\n if (node.left != null)\n helper(node.left, level + 1);\n if (node.right != null)\n helper(node.right, level + 1);\n }", "private void addLevelsToArray(){\n\t\tfor(int i = 0; i < lvl_num; i++)\n\t\t\tstage_text[i] = i + 1 + \"\";\n\t}", "public void generateLevel() {\n\t\tfor (int y = 0; y < this.height; y++) {\n\t\t\tfor (int x = 0; x < this.width; x++) {\n\t\t\t\tif (x * y % 10 < 5)\n\t\t\t\t\ttiles[x + y * width] = Tile.GRASS.getId();\n\t\t\t\telse\n\t\t\t\t\ttiles[x + y * width] = Tile.STONE.getId();\n\t\t\t}\n\t\t}\n\t}", "public int getLevel() {\n \t\treturn level;\n \t}", "public void setLevel(int value) {\n this.level = value;\n }", "@Override\n public void onCreate(SQLiteDatabase db) { db.execSQL(\"create table vanyrLevel(lvl int(1));\"); }" ]
[ "0.72531426", "0.66599184", "0.6213527", "0.61827344", "0.6174899", "0.61246705", "0.6123786", "0.60333216", "0.6032266", "0.60009956", "0.59588474", "0.5914411", "0.5903081", "0.5898619", "0.58955765", "0.58955765", "0.5878987", "0.5873693", "0.5858218", "0.5858218", "0.58562315", "0.58562315", "0.585375", "0.5842651", "0.583496", "0.5821432", "0.58140254", "0.58140254", "0.58140254", "0.58140254", "0.58140254", "0.58118397", "0.5800246", "0.57924294", "0.5783722", "0.57742566", "0.5765479", "0.5763773", "0.5754185", "0.5752543", "0.57491004", "0.57453537", "0.5734584", "0.57269907", "0.5712436", "0.57015413", "0.5686927", "0.5685293", "0.56842595", "0.5674035", "0.5668594", "0.5661849", "0.5661849", "0.56597364", "0.5656322", "0.5656322", "0.56557024", "0.56553495", "0.564784", "0.564784", "0.564784", "0.564784", "0.564784", "0.564784", "0.564784", "0.564784", "0.564784", "0.564784", "0.56433004", "0.56313777", "0.5625721", "0.5622767", "0.56223595", "0.5598181", "0.55950093", "0.55805004", "0.5574008", "0.55648696", "0.55648696", "0.5563897", "0.55599236", "0.5543699", "0.5543189", "0.55295634", "0.55239743", "0.55236065", "0.55157006", "0.5499501", "0.5498048", "0.5490988", "0.5490988", "0.5490988", "0.5490988", "0.5490988", "0.54901814", "0.547873", "0.5478114", "0.54761064", "0.54744416", "0.5473809", "0.5467215" ]
0.0
-1
/ Record for every new level
public void logScore(String score) throws IOException{ String endpoint = "logScore"; URL url = new URL(baseURL + endpoint); String json = "{\"score\": \"" + score + "\"}"; String response = executeRequest(url, json, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addLevel()\r\n {\r\n tables.addFirst( new HashMap<String,T>() );\r\n counts.addFirst( 0 );\r\n }", "void createNewLevel(int level);", "private void increaseLevel(boolean list)\n\t{\n\t\tlevel++;\n\n\t\tif(hasData.length == level)\n\t\t{\n\t\t\t// Grow lists when needed\n\t\t\thasData = Arrays.copyOf(hasData, hasData.length * 2);\n\t\t\tlists = Arrays.copyOf(lists, hasData.length * 2);\n\t\t}\n\n\t\thasData[level] = false;\n\t\tlists[level] = list;\n\n\t\tnextKey = ! list;\n\t}", "public void setLevel(String newLevel) {\n level = newLevel;\n }", "public void createLevel() {\n room = 1;\n currentLevelFinish = false;\n createRoom();\n }", "public void incrementLevel()\r\n {\r\n counts.addFirst( counts.removeFirst() + 1 );\r\n }", "@Override\n\tpublic void genLevel(File f) {\n\t\t\n\t}", "public void saveMap(){\n dataBase.updateMap(level);\n }", "public BuildALevel(List<String> level) {\n this.level = level;\n this.map = new TreeMap<String, String>();\n // call the splitLevelDetails method\n splitLevelDetails();\n }", "void addLevel(Level level) {\r\n\t\tif (level != null) {\r\n\t\t\tlevelList.addItem(level.toString());\r\n\t\t}\r\n\t}", "public void setLevel(String level){\n\t\tthis.level = level;\n\t}", "protected abstract Level[] getLevelSet();", "public void setLevel(int newlevel)\n {\n level = newlevel; \n }", "public void setLevel(Level level) { this.currentLevel = level; }", "public void setLevel(String level) {\n this.level = level;\n }", "public void setLevel(String level) {\n this.level = level;\n }", "public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }", "public void setLevel(String level);", "public int getLevel(){\n return level;\n }", "public int getLevel(){\n return level;\n }", "public void setLevel(int level) {\n this.level = level;\n }", "public void setLevel(int level) {\n this.level = level;\n }", "public void extendGraph(int level) {\n\t\tmaxLevel++;\n\t\tsteps.put(maxLevel+1, steps.get(maxLevel));\n\t\tif (maxLevel == graph.countLevels()){\n\t\t\tgraph.extend();\n\t\t}\n\t\t\t\n\t\t\n\t\t/* start at highest level and move each level up until we get to insert level*/\n\t\tfor(int i = maxLevel; i > level; i--) {\n\t\t\tsteps.put(i, steps.get(i-1));\n\t\t\tfacts.put(i, facts.get(i-1));\n\t\t\tinconsistencies.put(i, inconsistencies.get(i-1));\n\t\t}\n\t\t\n\t\t/* add new sets to level */\n\t\t// Set<PlanGraphStep> newSteps = new HashSet<PlanGraphStep>();\n\t\tsteps.put(level, new HashSet<PlanGraphStep>());\n\t\tfacts.put(level, new HashSet<PlanGraphLiteral>());\n\t\tinconsistencies.put(level, new HashSet<LPGInconsistency>());\n\t\t\n\t\t/* propagate facts from previous level via no-ops\n\t\tfor (PlanGraphLiteral pgLiteral : facts.get(level-1)) {\n\t\t\taddStep(persistentSteps.get(pgLiteral), level, false);\n\t\t}*/\n\t\tfacts.get(level).addAll(facts.get(level-1));\n\t\t \n\t}", "public int getLevel()\n {\n return level; \n }", "public void setDataLevel(int dataLevel);", "public void setLevel(int level){\n\t\tthis.level = level;\n\t}", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "protected void setLevel(int level){\r\n this.level = level;\r\n }", "@Override\n public void levelUp(){\n //System.out.println(\"Level: \" + getLevel());\n if (getLevel() > 5) return;\n\n /* System.out.println(\"\\n-------\");\n System.out.println(\"Level: \" + getLevel());\n System.out.println(\"Se va a aumentar: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n*/\n double percentage = growth(getLevel()) + growthRate;\n\n setHealth((int) (getHealth() + getHealth() * percentage));\n strokePerTime = (int) (strokePerTime + strokePerTime * percentage);\n\n // Aumenta el rango si el nivel es 3 o 5\n // Luego quedan muy rotos xD\n if (getLevel() % 2 != 0) range++;\n setLevel(getLevel() + 1);\n\n /* System.out.println(\"resultado: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n System.out.println(\"-------\\n\");*/\n }", "public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }", "private void nextLevel()\n\t{\n\t\tMapInstance.getInstance().setSelectedLevel(MapInstance.getInstance().getSelectedLevel() + 1);\n\t}", "public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}", "private void setLevel(int level) {\n setStat(level, currentLevel);\n }", "public int getLevel()\r\n {\r\n return level;\r\n }", "public int getLevel()\n {\n return level;\n }", "public void newlevel() {\n\t\tblack = new Background(COURT_WIDTH, COURT_HEIGHT); // reset background\n\t\tcannon = new Cannon(COURT_WIDTH, COURT_HEIGHT); // reset cannon\n\t\tdeadcannon = null;\n\t\tbullet = null;\n\t\tshot1 = null;\n\t\tshot2 = null;\n\t\t// reset top row\n\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\talien1[i] = new Alien(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien1[i].pos_x = alien1[i].pos_x + 30*i;\n\t\t\talien1[i].v_x = level + alien1[i].v_x;\n\t\t}\n\t\t// reset second row\n\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\talien2[i] = new Alien2(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien2[i].pos_x = alien2[i].pos_x + 30*i;\n\t\t\talien2[i].v_x = level + alien2[i].v_x;\n\t\t}\n\t\t// reset third row\n\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\talien3[i] = new Alien3(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien3[i].pos_x = alien3[i].pos_x + 30*i;\n\t\t\talien3[i].v_x = level + alien3[i].v_x;\n\t\t}\n\t}", "@Test\r\n\tpublic final void testAddLevel() {\r\n\t\tlevels.add(lostLevel2);\r\n\t\tgameStatisticsLoss.addLevel(lostLevel2);\r\n\t\tassertTrue(gameStatisticsLoss.getLevels().equals(levels));\r\n\t}", "private void createAggLevels() {\n\t\t\tAoiLevel aggTableLevel\t\t= errorTable.getAoiLevel();\n\t\t\tAoiHierarchy aoiHierarchy \t= aggTableLevel.getHierarchy();\n\t\t\tAoiDimension aoiDim \t\t= getAoiDimension( aoiHierarchy );\n//\t\t\tField<Integer> aoiField \t= errorTable.getAoiField();\n\t\t\t\n//\t\t\tAggLevel aggLevel = new AggLevel( aoiDim.getHierarchy().getName() , aoiLevel.getName() , aoiField.getName() );\n//\t\t\taggLevels.add(aggLevel);\n//\t\t\t\n\t\t\t\n//\t\t\tAoiDimension aoiDim = getAoiDimension(aoiHierarchy);\n\t\t\tfor ( AoiLevel level : aoiHierarchy.getLevels() ) {\n\t\t\t\tif ( level.getRank() <= aggTableLevel.getRank() ) {\n\t\t\t\t\tField<Integer> field = errorTable.getAoiIdField( level );\n\t\t\t\t\tAggLevel aggLevel = new AggLevel(aoiDim.getHierarchy().getName(), level.getName(), field.getName());\n\t\t\t\t\taggLevels.add(aggLevel);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void setLevel(Level level) {\n\t\tthis.level = level;\n\t}", "protected void setLevel(int level)\n {\n this.level = level;\n }", "public void updateLevel(){\n level = parent.level+1;\n if(noOfChildren != 0){\n for (int i = 0; i<noOfChildren; i++) {\n getChild(i).updateLevel();\n }\n }\n }", "public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}", "public int getLevel() {\r\n return level;\r\n }", "public String getLevel ()\n {\n return level;\n }", "public Level create(Long id,String level){\n \n System.out.println(\"level\"+level);\n Level l=new Level(1,\"Beginner\");\n Level l2=new Level(2,\"Intermediate\");\n Level l3=new Level(3,\"professional\");\n levelRepository.save(l);\n levelRepository.save(l2);\n return levelRepository.save(l3);\n \n }", "int insert(AgentLevel record);", "private void updateGroup(String newGroupName, int level) {\r\n Equals levelFilter = new Equals(fieldName[level], previousNodeValue);\r\n CoeusVector cvFilteredData = (CoeusVector)cvHierarchyData.filter(levelFilter);\r\n if(cvFilteredData != null && cvFilteredData.size()>0) {\r\n for (int index=0; index < cvFilteredData.size(); index++) {\r\n sponsorHierarchyBean = (SponsorHierarchyBean)cvFilteredData.get(index);\r\n sponsorHierarchyBean.setAcType(TypeConstants.UPDATE_RECORD);\r\n switch(level) {\r\n case 1:\r\n sponsorHierarchyBean.setLevelOne(newGroupName);\r\n break;\r\n case 2:\r\n sponsorHierarchyBean.setLevelTwo(newGroupName);\r\n break;\r\n case 3:\r\n sponsorHierarchyBean.setLevelThree(newGroupName);\r\n break;\r\n case 4:\r\n sponsorHierarchyBean.setLevelFour(newGroupName);\r\n break;\r\n case 5:\r\n sponsorHierarchyBean.setLevelFive(newGroupName);\r\n break;\r\n case 6:\r\n sponsorHierarchyBean.setLevelSix(newGroupName);\r\n break;\r\n case 7:\r\n sponsorHierarchyBean.setLevelSeven(newGroupName);\r\n break;\r\n case 8:\r\n sponsorHierarchyBean.setLevelEight(newGroupName);\r\n break;\r\n case 9:\r\n sponsorHierarchyBean.setLevelNine(newGroupName);\r\n break;\r\n case 10:\r\n sponsorHierarchyBean.setLevelTen(newGroupName);\r\n break;\r\n }\r\n }\r\n }\r\n }", "public int getLevel(){\n return this.level;\n }", "public int getLevel(){\n return this.level;\n }", "public void setLevel(int level) {\n \t\tthis.level = level;\n \t}", "public void setLevel(int level) {\n\t\tthis.level = level;\n\t}", "public void setLevel(int level) {\n\t\tthis.level = level;\n\t}", "public void setItemLevel(int level) { this.level = level; }", "public int getLevel(){\n\t\treturn level;\n\t}", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "int insertSelective(AgentLevel record);", "public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}", "public int getDataLevel();", "void incrementNewDepth() {\n mNewDepth++;\n }", "public void loadLevel(int level) {\n if (level == 0) {\n return;\n }\n if (this.levels[level] == null) {\n this.elevatorLevelsUnlocked = Math.max(this.elevatorLevelsUnlocked,\n (int)((level-1)/5.0));\n \n this.levels[level] = new MineLevel.Builder(level).buildLevel(this);\n }\n Iterator<Gateway> gateways = this.levels[level-1].getGateways();\n Gateway nextGateway;\n while (gateways.hasNext()) {\n nextGateway = gateways.next();\n if (nextGateway.getDestinationGateway() == null) {\n nextGateway.setDestinationArea(this.levels[level]);\n nextGateway.setDestinationGateway(this.levels[level].getEntranceGateway());\n }\n }\n }", "@Override\n public int getLevelNumber() {\n return 0;\n }", "public int getLevel() { \r\n\t\treturn level; \r\n\t}", "void printLevel()\r\n\t {\r\n\t int h = height(root);\r\n\t int i;\r\n\t for (i=1; i<=h+1; i++)\r\n\t printGivenLevel(root, i);\r\n\t }", "public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n return level_;\n }", "public void setLevel(int level) {\n if(level > Constant.MAX_LEVEL){\n this.level = Constant.MAX_LEVEL;\n }else {\n this.level = level;\n }\n this.expToLevelUp = this.expValues[this.level];\n }", "protected int getLevel(){\r\n return this.level;\r\n }", "public String getLevelName(){\n return levelName;\n }", "public String getLevel()\n {\n return level;\n }", "@Override\n\tdouble updateLevel() {\n\t\treturn 0;\n\t}", "private void updateSkiTreeLevel(SkiNode head) {\n\t\tfor (SkiNode nextNode : head.next) {\n\t\t\tif (nextNode != null) {\n\t\t\t\tupdateSkiTreeLevel(nextNode);\n\t\t\t\thead.level = Math.max(head.level, nextNode.level + 1);\n\t\t\t}\n\t\t}\n\t\thead.level = Math.max(head.level, 1);\n\t\thMap[head.i][head.j] = head.level;\n\t}", "private void splitLevelDetails() {\n final int zero = 0;\n final int one = 1;\n // goes over all of the levels\n for (int i = 0; i < level.size(); i++) {\n // if the level.get(i) contains \":\"\n if (level.get(i).contains(\":\")) {\n // split the line\n String[] keyAndVal = level.get(i).trim().split(\":\");\n // put the key and the value in the map\n this.map.put(keyAndVal[zero], keyAndVal[one].trim());\n } else {\n break;\n }\n }\n }", "public String getLevel() {\n return level;\n }", "public void\t\t\t\t\t\t\tincreaseLevel()\t\t\t\t\t\t\t\t{ this.currentLevel += 1; }", "public String getLevel(){\n\t\treturn level;\n\t}", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public static void makeLevelsForTesting() {\n\t\tBuilder builder = new Builder();\n\t\tbuilder.setLevels(new ArrayList<Level>());\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tbuilder.addNewLevel(i % 3, 12);\n\t\t\tint[] nothing = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n\t\t\t\t\t0, 0, 0, 0, 0 };\n\t\t\tbuilder.saveLevel(nothing);\n\t\t\tSystem.out.println(builder.getLevels());\n\t\t}\n\t\tbuilder.saveToDisc();\n\t}", "public void helper(TreeNode node, int level) {\n if (levels.size() == level)\n levels.add(new ArrayList<Integer>());\n\n // fulfil the current level\n levels.get(level).add(node.val);\n\n // process child nodes for the next level\n if (node.left != null)\n helper(node.left, level + 1);\n if (node.right != null)\n helper(node.right, level + 1);\n }", "private void addLevelsToArray(){\n\t\tfor(int i = 0; i < lvl_num; i++)\n\t\t\tstage_text[i] = i + 1 + \"\";\n\t}", "public void generateLevel() {\n\t\tfor (int y = 0; y < this.height; y++) {\n\t\t\tfor (int x = 0; x < this.width; x++) {\n\t\t\t\tif (x * y % 10 < 5)\n\t\t\t\t\ttiles[x + y * width] = Tile.GRASS.getId();\n\t\t\t\telse\n\t\t\t\t\ttiles[x + y * width] = Tile.STONE.getId();\n\t\t\t}\n\t\t}\n\t}", "public int getLevel() {\n \t\treturn level;\n \t}", "public void setLevel(int value) {\n this.level = value;\n }", "@Override\n public void onCreate(SQLiteDatabase db) { db.execSQL(\"create table vanyrLevel(lvl int(1));\"); }" ]
[ "0.72531426", "0.66599184", "0.6213527", "0.61827344", "0.6174899", "0.61246705", "0.6123786", "0.60333216", "0.6032266", "0.60009956", "0.59588474", "0.5914411", "0.5903081", "0.5898619", "0.58955765", "0.58955765", "0.5878987", "0.5873693", "0.5858218", "0.5858218", "0.58562315", "0.58562315", "0.585375", "0.5842651", "0.583496", "0.5821432", "0.58140254", "0.58140254", "0.58140254", "0.58140254", "0.58140254", "0.58118397", "0.5800246", "0.57924294", "0.5783722", "0.57742566", "0.5765479", "0.5763773", "0.5754185", "0.5752543", "0.57491004", "0.57453537", "0.5734584", "0.57269907", "0.5712436", "0.57015413", "0.5686927", "0.5685293", "0.56842595", "0.5674035", "0.5668594", "0.5661849", "0.5661849", "0.56597364", "0.5656322", "0.5656322", "0.56557024", "0.56553495", "0.564784", "0.564784", "0.564784", "0.564784", "0.564784", "0.564784", "0.564784", "0.564784", "0.564784", "0.564784", "0.56433004", "0.56313777", "0.5625721", "0.5622767", "0.56223595", "0.5598181", "0.55950093", "0.55805004", "0.5574008", "0.55648696", "0.55648696", "0.5563897", "0.55599236", "0.5543699", "0.5543189", "0.55295634", "0.55239743", "0.55236065", "0.55157006", "0.5499501", "0.5498048", "0.5490988", "0.5490988", "0.5490988", "0.5490988", "0.5490988", "0.54901814", "0.547873", "0.5478114", "0.54761064", "0.54744416", "0.5473809", "0.5467215" ]
0.0
-1
/ Updated game score within the level
public void updateGameScores(String field, String level, String value) throws IOException{ //System.out.println("Update game scores: "+field+": "+value); String endpoint = "updatescore"; URL url = new URL(baseURL + endpoint); String json = "{\"updated_field\": \"" + field + "\",\"value\":\""+value+"\",\"level\":[\""+level+"\"]}"; //System.out.println("UPDATE JSON: "+json); String response = executeRequest(url, json, true); //System.out.println(response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateScore(int score){ bot.updateScore(score); }", "public void updateScore() {\n\n Main.rw.readFile();\n setScore(Main.rw.getStackInfo());\n\n\n }", "public void updatePlayerScore()\n\t{\n\t\tthis.score = (int)(getBalance() - 500) - (getNumberOfLoans()*500); \n\t}", "private void updateScore() {\n\t\tscoreString.updateString(Integer.toString(score));\n\t}", "public void updatescore() {\n scorelabel.setText(\"\" + score + \" points\");\n if (100 - score <= 10) win();\n }", "void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }", "public void updateScore(int playerScore){\n\t\tscore += playerScore;\n\t\tscoreTotalLabel.setText(\"\" + score);\n\t}", "public static void incrementScore() {\n\t\tscore++;\n\t}", "void update(Level level) {\r\n calculateLeaderboardScores(level);\r\n bubbleSort();\r\n }", "public void updateScore(){\n scoreChange++;\n if(scoreChange % 2 == 0){\n if(score_val < 999999999)\n score_val += 1;\n if(score_val > 999999999)\n score_val = 999999999;\n score.setText(\"Score:\" + String.format(\"%09d\", score_val));\n if(scoreChange == 10000)\n scoreChange = 0;\n }\n }", "private void updateHighScore() {\n\t\tif (pacman.getCurrentCell().getContainsFood() == true) {\n\t\t\tpacman.getCurrentCell().setContainsFood(false);\n\t\t\thighScore.update(10);\n\t\t}\n\t\tif (highScore.getScore() / 2440 == actualLevel) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tinitNewLevel();\n\t\t\t++actualLevel;\n\t\t}\n\t}", "public void updateScore()\n {\n nextPipe = pipes.get(score);\n if(CHARACTER_X > nextPipe.getPipeCapX() + 35)\n {\n score++;\n }\n if(score > highScore)\n {\n highScore = score;\n }\n }", "public void updateScoreboard() {\r\n \tif(parentActivity instanceof GameActivity) {\r\n \t\t((TextView)(((GameActivity)parentActivity).getScoreboard())).setText(\"\"+score);\r\n \t}\r\n }", "void updateScore () {\n scoreOutput.setText(Integer.toString(score));\n }", "public void updateScores() {\n\t\tscoreText.setText(\"Score: \" + ultraland.getScore());\n\t}", "private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }", "public void updateScore(){\r\n if (this.isArtist || winners.contains(this)) {\r\n this.score += pointsGainedLastRound;\r\n }\r\n pointsGainedLastRound = 0;\r\n placeLastRound = 0;\r\n }", "protected void setScore(int s)\r\n\t{\r\n\t\tGame.score = s;\r\n\t}", "void setScore(long score);", "private void updateScore(int point) {\n SharedPreferences preferences = getSharedPreferences(SHARED_PREFERENCES, MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putInt(SCORE_KEY, mScore);\n\n }", "@Override\npublic void update(int score) {\n\t\n}", "@Override\n\tpublic int updateScore(int score) {\n\t\t\n\t\t// decrease the score by this amount:\n\t\tscore -= 50;\n\t\t\n\t\treturn score;\n\t}", "public void updateScore() {\n\t\tif (pellet.overlapsWith(avatar)) {\n\t\t\tavatar.addScore(1);\n\t\t\tpellet.removePellet(avatar.getLocation());\n\t\t\tSystem.out.println(\"collected pellet\");\n\t\t}\n\t}", "public void setScore(int score)\n\t{\n\t\tthis.score += score;\n\t}", "public void setScore (int newScore)\n {\n this.score = newScore;\n }", "public void updateScoreBoard() {\n Player player1 = playerManager.getPlayer(1);\n Player player2 = playerManager.getPlayer(2);\n MainActivity mainActivity = (MainActivity) this.getContext();\n\n mainActivity.updateScoreBoard(player1, player2);\n }", "@Override\n\tpublic void update() {\n\t\tif(isSaveScore()){\n\t\t\tsaveScore();\n\t\t\tmanager.reconstruct();\n\t\t}\n\t\tmanager.move();\n\t}", "public void addScore()\n {\n score += 1;\n }", "public synchronized void setScore(Integer score) {\n this.score += score;\n }", "public void setScore(int score) { this.score = score; }", "public void updateScoreUI() {\n\t\tMap<Integer, Integer> scoreMap = gameLogic.getScoreboard().getTotalScore();\n\n\t\tlblScoreA.setText(String.valueOf(scoreMap.get(0)));\n lblScoreB.setText(String.valueOf(scoreMap.get(1)));\n lblScoreC.setText(String.valueOf(scoreMap.get(2)));\n lblScoreD.setText(String.valueOf(scoreMap.get(3)));\n\t}", "public void setScore(int score) {this.score = score;}", "public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }", "public void updateScores(double attempt) {\r\n \tif(previousScore == 0){\r\n \t\tpreviousScore = currentScore;\r\n \t}else{\r\n \t\tbeforePreviousScore = previousScore;\r\n \t\tpreviousScore = currentScore;\r\n \t}\r\n this.currentScore = 100*(attempt \r\n\t\t\t\t- (benchmark - (maximumMark - benchmark)/NUMBEROFLEVEL))\r\n\t\t\t\t/(((maximumMark - benchmark)/NUMBEROFLEVEL)*2);\r\n }", "private void updateScore(int changeScore) {\n score += changeScore;\n scoreText = \"Score: \" + score + \"\\t\\tHigh Score: \" + highScore;\n scoreView.setText(scoreText);\n }", "public void modifyScore(int modAmount)\r\n\t{\r\n\t\tscore += modAmount;\r\n\t}", "void addGameScoreToMainScore(){\n sharedPreferences= PreferenceManager.getDefaultSharedPreferences(this);\n editor=sharedPreferences.edit();\n int score=sharedPreferences.getInt(\"gameScore\",0);\n score=score+userCoins;\n editor.putInt(\"gameScore\",score);\n editor.commit();\n\n }", "public void setScore(int newScore){\n\t\tthis.score = newScore;\n\t}", "@Override\n public void updateScore(int winner)\n {\n if (winner == 0)\n {\n playerOneScore++;\n }\n else\n {\n playerTwoScore++;\n }\n }", "public void hitAlienScore() {\r\n //Add 5 to the score\r\n score += 5;\r\n System.out.println(\"Current Score = \"+score);\r\n }", "void setScoreValue(int scoreValue);", "public void update()\n {\n scorecard.update();\n scorer.update();\n }", "private void increaseScore() {\n this.game.getPlayers().values().forEach(ship -> {\n ship.increaseScore();\n if (ship.getScore() % 5 == 0) {\n this.asteroidsLimit++;\n }\n });\n }", "public void updateScore(double d) {\n\t\tscore+=d;\t\n\t}", "public void increaseScore(int p) {\n score += p;\n //Minden novelesnel megnezzuk, hogy elertuk-e a gyozelem szukseges pandaszamot.\n if(score >= 25 && game.getSelectedMode() == Game.GameMode.FinitPanda){\n //Ha elertuk, szolunk a jateknak hogy vege.\n game.SaveHighScore(score);\n game.gameOver();\n }\n }", "private void updateScore(int point){\n mScoreView.setText(\"\" + mScore);\n }", "public void updateScoreboards(String gameId, String levelId) {\n List<Score> highscore = getPersistence().getTopScores(gameId, levelId, 50);\n for (Scoreboard scoreboard : scoreboards.get(Tuple.of(gameId, levelId))) {\n scoreboard.update(highscore);\n }\n }", "public void calculateScore() {\n\n turnScore();\n\n if (turn == 1) {\n p1.setScore(p1.getScore() - turnScore);\n\n } else if (turn == 2) {\n p2.setScore(p2.getScore() - turnScore);\n\n }\n\n\n }", "public void score(){\r\n\t\tint playerLocation = player.getLocationX();\r\n\t\tint obstacleX = obstacle.getLocationX();\r\n\t\tint obstacleY = obstacle.getLocationY();\r\n\r\n\r\n\t\tstr =\"\" + countCoins;\r\n\r\n\t\t//if you hit a coin, the number of points goes up by one.\r\n\t\tif(obstacleY == 280 && obstacleX==300 && playerLocation == 250){\r\n\t\t\tcountCoins++;\r\n\t\t}\r\n\t\tif(obstacleY== 450 && obstacleX==300 && playerLocation ==450){\r\n\t\t\tcountCoins++;\r\n\t\t}\r\n\r\n\t\t//if you hit the green monster, you lose one point.\r\n\t\tif((obstacleX-50) == 250 && (obstacleY-240) == 250 && playerLocation ==250){\r\n\t\t\tcountCoins--;\r\n\t\t}\r\n\r\n\t\t//if you hit the blue monster, you lose 3 points.\r\n\t\tif((obstacleX+180) == 480 && (obstacleY+180) == 250 && playerLocation ==450){\r\n\t\t\tcountCoins-=3;\r\n\t\t}\r\n\t}", "private void updateScore(int point){\n sScore.setText(\"\" + mScore + \"/\" + mQuizLibrary.getLength());\n\n }", "public void addScore(int score) {\n currentScore += score;\n }", "public void updateScore(Player player, Piece piece, Move move) {\n var newScore = player.getScore();\n newScore += Math.abs(move.getSource().x() - move.getDestination().x());\n newScore += Math.abs(move.getSource().y() - move.getDestination().y());\n player.setScore(newScore);\n System.out.println(\"score \" + newScore);\n }", "private static void updateGame()\n {\n GameView.gameStatus.setText(\"Score: \" + computerScore + \"-\" + playerScore);\n if (computerScore + playerScore == NUM_CARDS_PER_HAND) {\n if (computerScore > playerScore) {\n GameView.gameText.setText(\"Computer Wins!\");\n Timer.stop = true;\n }\n else if (playerScore > computerScore) {\n GameView.gameText.setText(\"You win!\");\n Timer.stop = true;\n }\n else {\n GameView.gameText.setText(\"Tie game!\"); \n Timer.stop = true;\n }\n }\n }", "private void update() {\n if(!Constants.GAME_OVER) {\n deltaTime = (int) (System.currentTimeMillis() - startTime);\n startTime = System.currentTimeMillis();\n elapsedTime = (int) (System.currentTimeMillis() - initTime)/1000;\n Constants.ELAPSED_TIME = elapsedTime;\n //Log.d(\"FRAMES \", \"\"+ Constants.FRAME_COUNT);\n //call update on every object\n player.update();\n enemyManager.update(player);\n starManager.update(player.getSpeed());\n asteroidManager.update(player);\n } else {\n playing = false;\n sound.stopBg();\n for(int i = 0; i < highScore.length; i++) {\n if (Constants.SCORE > highScore[i]) {\n final int endI = i;\n highScore[i] = Constants.SCORE;\n // Log.d(\"SCORE \", \"\" + highScore[i]);\n break;\n }\n }\n\n SharedPreferences.Editor editor = sharedPreferences.edit();\n for(int i = 0; i < highScore.length; i++) {\n int index = i + 1;\n editor.putInt(\"score\" + index, highScore[i]);\n }\n editor.apply();\n }\n }", "private void showGameScore() {\n System.out.println(messageProvider.provideMessage(\"score\"));\n System.out.println(settings.getPlayers().get(0).getScore()\n + \" vs \" + settings.getPlayers().get(1).getScore());\n }", "@Test\n void updateScore() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setTurn(true);\n p.updateScore(3);\n assertTrue(p.getScore()==3);\n\n p = new RealPlayer('b', \"ciccia\");\n p.updateScore(-1);\n assertTrue(p.getScore()==0);\n }", "@Override\r\n\tpublic boolean updateScore(int score) {\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"update member set score=score+\"+score+\" where id='\"+LoginServiceImpl.getCurrentUser().getID()+\"'\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\t\r\n\t\t\tif(ps.executeUpdate()==0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}else\r\n\t\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}", "public void setScore(int score)\n {\n this.score = score;\n }", "public synchronized void updateScore(PlayerHandler playerHandler) {\n\n int points = teams.length * Server.TEAM_SCORE / numMaxPlayers;\n playerHandler.increaseCorrectAnswers();\n\n if(points < 3){\n points = 3;\n }\n\n if (playerHandler.getTeam() == teams[0]) {\n score -= points;\n System.out.println(score);\n return;\n }\n score += points;\n }", "private void updateScore(double distance){\n\t\tint baseScore = 100 * difficulty;\n\t\tdouble distanceMultiplier = 1 + (distance / 370.0);\n\t\tdouble fastModeMultiplier = (fastMode)?1.99 + (currentLevel/100.0):1;\n\t\tdouble streakMultiplier = 1 + (streak/20.0);\n\t\tSystem.out.println(\"Total multiplier: \" + (distanceMultiplier * fastModeMultiplier * streakMultiplier));\n\t\tscore += baseScore * distanceMultiplier * fastModeMultiplier * streakMultiplier;\n\t\tstreak++;\n\n\t}", "public void changeScore(String score) {\n typeScore(score);\n saveChanges();\n }", "public void setScore(int score) {\r\n this.score = score;\r\n }", "public void setScore(int score) {\r\n this.score = score;\r\n }", "public abstract Scoreboard update(Player player);", "public void increaseScore(final int score) {\n setChanged();\n notifyObservers(new Pair<>(\"increaseScore\", score));\n }", "public void setScore(int score){\n\t\tthis.score = score;\n\t}", "public void setScore(int score) {\n this.score = score;\n }", "public void addToScore(int score)\n {\n this.score += score;\n }", "public static void score() {\n\t\tSystem.out.println(\"SCORE: \");\n\t\tSystem.out.println(player1 + \": \" + score1);\n\t\tSystem.out.println(player2 + \": \" + score2);\n\t}", "public void addOneToScore() {\r\n score++;\r\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(double score) {\r\n this.score = score;\r\n }", "private void drawScore() {\n\t\tString score = myWorld.getScore() + \"\";\n\n\t\t// Draw shadow first\n\t\tAssetLoader.shadow.draw(batcher, \"\" + myWorld.getScore(), (136 / 2)\n\t\t\t\t- (3 * score.length()), 12);\n\t\t// Draw text\n\t\tAssetLoader.font.draw(batcher, \"\" + myWorld.getScore(), (136 / 2)\n\t\t\t\t- (3 * score.length() - 1), 11);\n\n\t}", "public void incrementScore(int val) {\n score += val;\n }", "public void setScore(int score)\n\t{\n\t\tthis.score=score;\n\t}", "public void updatePlayerHealthUI() {\n CharSequence text = String.format(\"Score: %d\", getscore());\n scoreLabel.setText(text);\n }", "public int score(){\r\n\t\t//to be implemented: should return game score \r\n\t\tfor(int i=0; i<10; i++)\r\n\t\t{\r\n\t\t\tscore= frames.get(i).score();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn score + bonusGame;\r\n\t}", "protected void addScoreToLeaderboard() {\n\n\t\tif (onlineLeaderboard) {\n\t\t jsonFunctions = new JSONFunctions();\n\t\t jsonFunctions.setUploadScore(score);\n\t\t \n\t\t Handler handler = new Handler() {\n\t\t\t @Override\n\t\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t @SuppressWarnings(\"unchecked\")\n\t\t\t\t ArrayList<Score> s = (ArrayList<Score>) msg.obj;\n\t\t\t\t globalScores = helper.sortScores(s);\n\t\t\t }\n\t\t };\n\t\t \n\t\t jsonFunctions.setHandler(handler);\n\t\t jsonFunctions\n\t\t\t .execute(\"http://brockcoscbrickbreakerleaderboard.web44.net/\");\n\t\t}\n\t\tsaveHighScore();\n }", "public void setScore(Integer score) {\r\n this.score = score;\r\n }", "public static void calculateScore(){\n boolean gameOver = false;\n int score = 3000;\n int levelCompleted = 8;\n int bonus = 200;\n\n System.out.println(\"Running method calculateScore: \");\n\n if(score < 4000){\n int finalScore = score + (levelCompleted*bonus);\n System.out.println(\"Your final score = \" + finalScore);\n }else{\n System.out.println(\"The game is still on\");\n }\n\n System.out.println(\"Exit method calculateScore--\\n\");\n }", "protected void adjustScore() {\r\n scoreMultiplier = (int) (mineField.getDensity() * 100);\r\n maxScore = scoreMultiplier * (int) Math.pow( mineField.getFieldLength(), 2.0 );\r\n }", "public static void setPlayerScore(int score)\r\n\t{\r\n\t\tGame.playerScore = score;\r\n\t}", "public void setNewScore(String player, int score) {\n\t\t\n\t}", "public int getScore() {\n return currentScore;\n }", "public void setScore(Integer score) {\n this.score = score;\n }", "@Override\n\tpublic void saveScore() {\n\t\t\n\t}", "public void setScore(int paScore) {\n this.score = paScore;\n }", "public void addScore(int score);", "public void setScore(java.lang.Integer value);", "public void setScore(){\n\t\t//get player's score and change it to the string\n\t\tthis.scoreLabel.setSize(scoreLabel.getPreferredSize().width, \n\t\t\t\tscoreLabel.getPreferredSize().height);\n\t\tthis.scoreLabel.setText(String.valueOf(this.player.getScore()));\n\t}", "public void updateScore( Realization realization ){\n\t\trealization.setScore( calcScore(realization) ) ;\n\t}", "public void updateScore(JsonObject inputMsg) {\n\t\tString name = format(inputMsg.get(\"ScoredPlayer\").toString());\n\t\tfor (int i = 0; i < playerList.size(); i++) {\n\t\t\tif (playerList.get(i).getPlayerName().equals(name)) {\n\t\t\t\tplayerList.get(i).setPlayerScore(playerList.get(i).getPlayerScore()\n\t\t\t\t\t\t+ Integer.parseInt(format(inputMsg.get(\"Score\").toString())));\n\t\t\t\tscoreBoard[i].setText(\"Player: \" + playerList.get(i).getPlayerName() + \"\\t\"\n\t\t\t\t\t\t+ \"Score: \" + playerList.get(i).getPlayerScore());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void setGameScore(Integer gameScore) {\n this.gameScore = gameScore;\n }", "public void calcScore(int score) {\r\n\t\tif (initFinish)\r\n\t\t\tthis.score += score * this.multy;\r\n\t\t// TODO delete\r\n//\t\tSystem.out.println(\"score: \" + this.score + \"multy: \" + this.multy);\r\n\t}", "public static void editScores(League theLeague, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Edit Scores---\");\r\n\t\tfor (int x = 0; x < theLeague.getNumTeams(); x++) {\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\ttheLeague.getTeam(x).teamManNameToString();\r\n\t\t\tSystem.out.println(\"Current score: \" + theLeague.getTeam(x).getScore());\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tSystem.out.println(\"Enter a score for \" + theLeague.getTeam(x).getTeamName() + \": (max 512)\");\r\n\t\t\tSystem.out.println(\"0 - Return to Team Menu\");\r\n\t\t\t\r\n\t\t\tint newScore = Input.validInt(0, 512, keyboard);\r\n\t\t\tif (newScore == 0) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\ttheLeague.getTeam(x).setScore(newScore);\r\n\t\t}\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"***Scores Updated***\");\r\n\t}", "public int getScore()\n {\n return currentScore;\n }", "public void incLevel(int lvl){this.Level=this.XP/(100);}" ]
[ "0.8227967", "0.7914071", "0.790967", "0.78044283", "0.76453084", "0.76396704", "0.7517743", "0.74484795", "0.740412", "0.7363208", "0.72864246", "0.7267524", "0.7253804", "0.7249709", "0.71885", "0.71729565", "0.71612316", "0.7141828", "0.7140618", "0.7139166", "0.7138487", "0.7100676", "0.70992243", "0.70938754", "0.70601267", "0.7054517", "0.70515996", "0.70514995", "0.70471156", "0.70345205", "0.7013021", "0.69833064", "0.6963289", "0.69492525", "0.69411284", "0.69318056", "0.69228286", "0.690799", "0.6902761", "0.6892465", "0.68723375", "0.6865845", "0.68604296", "0.6850093", "0.6847664", "0.68448627", "0.68364817", "0.68334776", "0.68271816", "0.6824856", "0.6812671", "0.68084395", "0.6794696", "0.6791334", "0.6778871", "0.67641693", "0.6758779", "0.67575324", "0.67451084", "0.67445624", "0.6743859", "0.67297626", "0.67297626", "0.6717626", "0.6716401", "0.6712072", "0.6703179", "0.66963136", "0.66896576", "0.66770977", "0.66765934", "0.66765934", "0.66765934", "0.66765934", "0.6676098", "0.66757625", "0.6653928", "0.66473585", "0.6637001", "0.6633344", "0.66275847", "0.6616582", "0.6601608", "0.659879", "0.6590138", "0.6586294", "0.6584345", "0.65842545", "0.6579539", "0.6578387", "0.6577694", "0.6577126", "0.65762764", "0.65756637", "0.65755045", "0.65748906", "0.6573855", "0.6573074", "0.6566714", "0.6566552" ]
0.74763405
7
executeRequest executes the actual API call
private String executeRequest(URL url, String json, boolean post) throws IOException{ URLConnection urlConnection = url.openConnection(); urlConnection.setDoOutput(post); //false if post urlConnection.setRequestProperty("Content-Type", "application/json; charset=utf-8"); urlConnection.connect(); OutputStream outputStream = urlConnection.getOutputStream(); outputStream.write((json).getBytes("UTF-8")); outputStream.flush(); //Get Response InputStream in = urlConnection.getInputStream(); BufferedReader rd = new BufferedReader(new InputStreamReader(in)); String line; StringBuffer response = new StringBuffer(); while((line = rd.readLine()) != null) { response.append(line); response.append('\r'); } rd.close(); return response.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Api(1.1)\n public Response execute() throws HaloNetException {\n return mBuilder.mClient.request(mRequest);\n }", "ServiceResponse execute(RequestParameters request);", "public IOgcResponse executeRequest(Map<String, String> params);", "private synchronized String execute(final HttpUriRequest request) {\n request.setParams(params);\n\n // Set the request's headers\n for (Entry<String, String> header : headers.entrySet()) {\n request.setHeader(header.getKey(), header.getValue());\n }\n\n // Execute the request and get it's content\n HttpResponse response;\n String content;\n try {\n\n // Execute the request\n response = getClient().execute(request);\n\n // Get the response content\n content = EntityUtils.toString(response.getEntity(), charset);\n } catch (IOException e) {\n throw new JsogClientException(\"Get request failed.\", e);\n }\n\n // Check the response code\n StatusLine sl = response.getStatusLine();\n if (sl.getStatusCode() != 200) {\n throw new Non200ResponseCodeException(\n sl.getStatusCode(),\n sl.getReasonPhrase(),\n content);\n }\n\n return content;\n }", "protected HttpResponse executeRequest(RPCRequest invocation) throws Exception {\n\t\treturn getHttpInvokerRequestExecutor().executeRequest(getServiceUrl(), invocation);\n\t}", "@Test\n\tpublic void execute() {\n\t\tcommand.execute(request);\n\t}", "private String executeRequest(String url) throws Exception {\n\t\t//final String METHODNAME = \"executeRequest\";\n\t\tString responseString = null;\n\t\t\n\t\tHttpURLConnection conn = null;\n\t\ttry{\n\t\t\tif(url != null){\n\t\t\t\tURL jsonURL = new URL(url);\n\t\t\t\tconn = (HttpURLConnection)jsonURL.openConnection();\n\t\t\t\tconn.setConnectTimeout(2000);\n\t\t\t\tconn.setReadTimeout(2000);\n\t\t\t\tconn.setRequestMethod(\"POST\");\n\t\t\t\t\n\t\t\t\tInputStream in = new BufferedInputStream(conn.getInputStream());\n\t\t\t\tresponseString = org.apache.commons.io.IOUtils.toString(in, \"UTF-8\");\n\t\t\t}\n\t\t}\n\t\tcatch(IOException io){\n\t\t\tio.printStackTrace();\n\t\t\tlog.severe(\"Failed calling json service IO Error: \" + url + \" - \" + io.getMessage());\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tlog.severe(\"Failed calling json service: \" + url + \" - \" + e.getMessage());\n\t\t}\n\t\tfinally {\n\t\t\tif (conn != null) {\n\t\t\t\tconn.disconnect();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn responseString;\n\t}", "ResponseEntity execute();", "String execute(HttpServletRequest request);", "public void performHttpRequest(Request request) throws Exception {\n LOGGER.debug(\"Performing HTTP request with these parameters: {}\", request);\n\n try (Response response = invokeHttpRequest(request, null)) {\n validateResponse(response);\n } catch (ProcessingException | IOException e) {\n LOGGER.debug(\"HTTP request failed!\", e);\n throw e;\n }\n }", "String execute(HttpServletRequest request) throws Exception;", "public String execute() throws DomainApiException {\n try {\n initConnection();\n if (method == POST || method == PUT) {\n sendHttpRequest(buildBody());\n }\n return readHttpResponse();\n } catch (MalformedURLException ex) {\n throw new DomainApiException(ex);\n } catch (IOException ex) {\n throw new DomainApiException(ex);\n }\n }", "CompletableFuture<RawContentResponse> executeSingleRequest(Request<?> request);", "public static int executeHttpRequest(HttpRequest request) {\n try {\n HttpResponse<String> response = client.send(request, HttpResponse.BodyHandler.asString());\n System.out.println(\"Status code: \" + response.statusCode());\n System.out.println(response.body());\n return response.statusCode();\n } catch (InterruptedException | IOException e) {\n e.printStackTrace();\n }\n return -1;\n }", "public static CloseableHttpResponse callAPI(HttpRequestBase httpRequest, String token)\r\n\t throws Exception {\r\n\t final StringBuilder stringBuilder = new StringBuilder();\r\n\t final String methodName = \"/callAPI\";\r\n\t \r\n\t LOGGER.info(\"Entering \"\r\n\t + stringBuilder.delete(0, stringBuilder.length())\r\n\t .append(CLASSNAME).append(methodName).toString());\r\n\t CloseableHttpResponse response = null;\r\n\t try {\r\n\t httpRequest.addHeader(OktaConstantUtils.CONTENT_TYPE,\r\n\t OktaConstantUtils.APPL_JSON);\r\n\t httpRequest.addHeader(OktaConstantUtils.AUTHORIZATION, token);\r\n\t httpRequest.addHeader(OktaConstantUtils.CHARSET, OktaConstantUtils.UTF);\r\n\t response = client.execute(httpRequest);\r\n\t LOGGER.info(\"Exiting \"\r\n\t\t\t\t\t+ stringBuilder.delete(0, stringBuilder.length()).append(CLASSNAME)\r\n\t\t\t\t\t.append(methodName).toString());\r\n\t return response;\r\n\t } \r\n\t \r\n\t catch (Exception genExp) {\r\n\t \tLOGGER.error(\"Exception \"\r\n\t \t\t + stringBuilder.delete(0, stringBuilder.length())\r\n\t \t\t .append(CLASSNAME).append(genExp.getMessage()).toString());\r\n\t \tthrow genExp;\r\n\t } \r\n\t }", "public void beginExecute(WebRequest request) throws Exception {\r\n request.addParameter(\"aid\", \"123\");\r\n }", "void sendRequest(String invocationId, HttpRequest request);", "private void executeRequest(String sql) {\n\t}", "public static void operation() {\n try ( QueryExecution qExec = QueryExecutionHTTP.service(dataURL).query(\"ASK{}\").build() ) {\n qExec.execAsk();\n System.out.println(\"Operation succeeded\");\n } catch (QueryException ex) {\n System.out.println(\"Operation failed: \"+ex.getMessage());\n }\n System.out.println();\n }", "public Response execute(Request request) throws RestException {\n\n try {\n Log.i(\"Request\", request.toString());\n\n // Se a conexao nao esta online nao faz requisicao\n if (!NetworkUtil.isNetworkAvailable(AmadorfcApplication.getInstance())) {\n throw new RestException(\"Internet indísponivel, sua mensagem será enviada assim que a rede normalizar.\");\n }\n\n String json = JsonHelper.toJson(request);\n JSONObject jo = new JSONObject(json); //\n\n Map<String, Object> map = new HashMap();\n Iterator keys = jo.keys();\n String parametros=\"\";\n\n if (keys !=null){\n parametros = parametros.concat(\"?\");\n }\n\n while (keys.hasNext()) {\n String key = (String) keys.next();\n parametros = parametros.concat(key).concat(\"=\");\n parametros = parametros.concat(jo.get(key).toString()).concat(\"&\");\n map.put(key, fromJson(jo.get(key)));\n }\n\n String responseString = get(getURL().getUrl().concat(parametros));\n\n Response response = JsonHelper.fromJson(responseString, getResponseClass());\n\n Log.i(\"Request\", response.toString());\n\n if (response == null) {\n throw new RestException(\"Serviço indísponivel, por favor, tente novamente dentro de alguns instantes.\");\n }\n\n return response;\n\n } catch (RestException re) {\n throw re;\n } catch (Exception e) {\n throw new RestException(\"Serviço indísponivel, por favor, tente novamente dentro de alguns instantes.\");\n }\n\n }", "Object executeMethodCall(String actionName, String inMainParamValue) throws APIException;", "void execute(HttpServletRequest request, HttpServletResponse response)\n throws Exception;", "private RawHttpResponse<?> executeRequest(String method, String path) throws IOException {\r\n\t\tSocket socket = new Socket(\"localhost\", 8080);\r\n\t\treturn executeRequest(method, path, \"\", socket);\r\n\t}", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "private static String executeRequest(String url) throws IOException {\n\n\t\tLog.d(RiotJsonRequest.class.getSimpleName() , url);\n\t\t\n\t\tSocket s = new Socket(IP, PORT);\n\t\tPrintStream ps = new PrintStream(s.getOutputStream());\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"PS OPENED\");\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(\n\t\t\t\ts.getInputStream()));\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"BR OPENED\");\n\t\tps.println(url);\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"URL PRNTED\");\n\t\tString response = r.readLine();\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"RESPONSE: \" + response);\n\t\treturn response;\n\n\t\t// boolean unsuccessful = true;\n\t\t// int tries = 0;\n\t\t// String response = \"\";\n\t\t// while(unsuccessful && tries != 3){\n\t\t// unsuccessful = false;\n\t\t// URL requestUrl = new URL(url);\n\t\t// HttpsURLConnection connection = (HttpsURLConnection)\n\t\t// requestUrl.openConnection();\n\t\t// try{\n\t\t// Log.d(RiotJsonRequest.class.getSimpleName() , url);\n\t\t// connection.setRequestMethod(\"GET\");\n\t\t// connection.getResponseCode();\n\t\t//\n\t\t// //connection.\n\t\t//\n\t\t// connection.connect();\n\t\t//\n\t\t//\n\t\t//\n\t\t//\n\t\t// //Needs error checking on connection\n\t\t//\n\t\t// InputStream in = new\n\t\t// BufferedInputStream(connection.getInputStream());\n\t\t// BufferedReader reader = new BufferedReader(new\n\t\t// InputStreamReader(in));\n\t\t// StringBuffer buffer = new StringBuffer();\n\t\t// String line;\n\t\t//\n\t\t// //reads response in and appends it to buffer\n\t\t// do{\n\t\t// line = reader.readLine();\n\t\t// buffer.append(line);\n\t\t// }while (line != null);\n\t\t//\n\t\t// //disconnects the HttpURLConnection so other requests can be made\n\t\t// connection.disconnect();\n\t\t// //Log.d(RiotJsonRequest.class.getSimpleName() , \"RECEIVED: \" +\n\t\t// buffer.toString());\n\t\t// response = buffer.toString();\n\t\t// }catch(Exception e){\n\t\t// String code = Integer.toString(connection.getResponseCode());\n\t\t// Log.d(RiotJsonRequest.class.getSimpleName() , \"CODE: \" + code);\n\t\t// if(code.equals(\"404\")){\n\t\t// return code;\n\t\t// }\n\t\t// unsuccessful = true;\n\t\t// tries++;\n\t\t// connection.disconnect();\n\t\t// connection = null;\n\t\t// requestUrl = null;\n\t\t// try {\n\t\t// Thread.sleep(1000);\n\t\t// } catch (InterruptedException e1) {\n\t\t// e1.printStackTrace();\n\t\t// }\n\t\t// }\n\t\t// }\n\t\t// return response;\n\t}", "@Override\r\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\t\r\n\t}", "@SuppressWarnings(\"WeakerAccess\")\n protected void makeRequest() {\n if (mCallback == null) {\n CoreLogger.logError(addLoaderInfo(\"mCallback == null\"));\n return;\n }\n\n synchronized (mWaitLock) {\n mWaitForResponse.set(true);\n }\n\n doProgressSafe(true);\n\n Utils.runInBackground(true, new Runnable() {\n @Override\n public void run() {\n try {\n CoreLogger.log(addLoaderInfo(\"makeRequest\"));\n makeRequest(mCallback);\n }\n catch (Exception exception) {\n CoreLogger.log(addLoaderInfo(\"makeRequest failed\"), exception);\n callbackHelper(false, wrapException(exception));\n }\n }\n });\n }", "Object executeMethodCall(ActionType actionType, String actionName, Map<String, Object> inParams) throws APIException;", "public void request() {\n }", "public void execute(String url) {\n\n this.url = url;\n\n Log.d(this.getClass().getName(), \"Request URL: \" + url);\n Log.d(this.getClass().getName(), \"Request Body: \" + jsonBody);\n\n ErrorListener errorListener = new ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n if (retryCountForNetworkError < 3) {\n retryCountForNetworkError++;\n Log.d(\"\", \"retryCountForNetworkError: \" + retryCountForNetworkError + \"\");\n execute(PoolNetworkRequest.this.url);\n } else if (listener != null) {\n listener.onError(error);\n }\n }\n };\n\n Request<String> request = new Request<String>(requestMethod, url, errorListener) {\n\n @Override\n public byte[] getBody() throws AuthFailureError {\n if (jsonBody != null) {\n return jsonBody.getBytes();\n }\n\n return super.getBody();\n }\n\n @Override\n protected void deliverResponse(String response) {\n }\n\n @Override\n protected Response<String> parseNetworkResponse(NetworkResponse response) {\n try {\n String json = new String(response.data, HttpHeaderParser.parseCharset(response.headers));\n Log.d(\"\", \"Response: \" + json);\n\n if (listener != null) {\n final T parseData = listener.parseData(json);\n ((Activity) context).runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (listener != null) {\n listener.onResponse(parseData);\n }\n }\n });\n\n return Response.success(\"success\", HttpHeaderParser.parseCacheHeaders(response));\n }\n } catch (Exception e) {\n if (e != null) {\n e.printStackTrace();\n }\n return Response.error(new VolleyError(response));\n }\n return Response.success(\"success\", HttpHeaderParser.parseCacheHeaders(response));\n\n }\n\n @Override\n public Priority getPriority() {\n Priority mPriority = Priority.HIGH;\n return mPriority;\n }\n\n @Override\n public Map<String, String> getParams() throws AuthFailureError {\n if (params != null) {\n return params;\n } else {\n return super.getParams();\n }\n }\n\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = super.getHeaders();\n\n if (headers == null || headers.equals(Collections.emptyMap())) {\n headers = new HashMap<>();\n }\n\n headers.put(\"Content-Type\", \"application/json\");\n if (header != null) {\n headers.putAll(header);\n }\n\n setLoggerHeader(headers);\n\n return headers;\n }\n };\n request.setRetryPolicy(new DefaultRetryPolicy(REQUEST_TIMEOUT, MAX_RETRIES, BACKOFF_MULTIPLIER));\n request.setShouldCache(false);\n VolleySingleton.getInstance(context).addToRequestQueue(request);\n }", "protected abstract ClassicHttpResponse execute(ClassicHttpRequest request, HttpClientContext context) throws IOException;", "protected abstract String invoke(HttpServletRequest request) throws DriverException, WorkflowException;", "void request(RequestParams params);", "public void postRequest() {\n apiUtil = new APIUtil();\n // As this is an API call , we are not setting up any base url but defining the individual calls\n apiUtil.setBaseURI(configurationReader.get(\"BaseURL\"));\n //This is used to validate the get call protected with basic authentication mechanism\n basicAuthValidation();\n scenario.write(\"Request body parameters are :-\");\n SamplePOJO samplePOJO = new SamplePOJO();\n samplePOJO.setFirstName(scenarioContext.getContext(\"firstName\"));\n samplePOJO.setLastName(scenarioContext.getContext(\"lastName\"));\n\n ObjectMapper objectMapper = new ObjectMapper();\n try {\n apiUtil.setRequestBody(objectMapper.writeValueAsString(samplePOJO));\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n }", "protected HttpResponse executeRequest(\n\t\t\tRPCRequest invocation, MethodInvocation originalInvocation) throws Exception {\n\t\treturn executeRequest(invocation);\n\t}", "private void sendRequest(Request request) {\n\t\tif (url==null) {\n\t\t\trequest.response(false, null);\n\t\t\treturn;\n\t\t}\n\t\tif (request.cmd==null) {\n\t\t\t// allows running custom request in Postman thread\n\t\t\trequest.response(false, null);\n\t\t\treturn;\n\t\t}\n\t\tif (request.requiresServerToken && this.serverToken==null) {\n\t\t\trequest.response(false, null);\n\t\t\treturn;\n\t\t}\n\t\tJSONObject answer = null;\n\t\ttry {\n\t\t\tHttpURLConnection conn = createHttpURLConnection(url);\n\t\t\tconn.setUseCaches(false);\n\t\t\tconn.setRequestProperty(\"connection\", \"close\"); // disable keep alive\n\t\t\tconn.setRequestMethod(\"POST\");\n\t\t\tif (serverToken!=null) {\n\t\t\t\tconn.setRequestProperty(\"X-EPILOG-SERVER-TOKEN\", serverToken);\n\t\t\t}\n\t\t\tconn.setRequestProperty(\"X-EPILOG-COMMAND\", request.cmd);\n\t\t\tconn.setRequestProperty(\"X-EPILOG-VERSION\", this.plugin.version);\n\t\t\tconn.setRequestProperty(\"X-EPILOG-TIME\", \"\"+System.currentTimeMillis());\n\t\t\tJSONObject info = request.info;\n\t\t\tinfo.put(\"logSendLimit\", this.logSendLimit);\n\t\t\tinfo.put(\"logCacheSize\", this.logQueue.size() + this.pendingLogs.size());\n\t\t\tinfo.put(\"nLogs\", request.data==null ? 0 : request.data.size());\n\t\t\tconn.setRequestProperty(\"X-EPILOG-INFO\", info.toString());\n\t\t\tconn.setDoOutput(true);\n\t\t\t\n\t\t\tGZIPOutputStream out = new GZIPOutputStream(conn.getOutputStream());\n\t\t\tif (request.data!=null) {\n\t\t\t\tfor (JSONObject json : request.data) {\n\t\t\t\t\tout.write(json.toString().getBytes());\n\t\t\t\t\tout.write(0xA); // newline\n\t\t\t\t}\n\t\t\t}\n\t\t\tout.close();\n\t\t\t\n\t\t\tInputStream in = conn.getInputStream();\n\t\t\tString response = convertStreamToString(in);\n\t\t\tin.close();\n\t\t\tconn.disconnect();\n\t\t\t\n\t\t\ttry {\n\t\t\t\tanswer = new JSONObject(response);\n\t\t\t\thandleRequestResponse(answer);\n\t\t\t} catch (Exception e) {\n\t\t\t\tthis.plugin.getLogger().warning(\"invalid server response\");\n\t\t\t\tthis.plugin.getLogger().log(Level.INFO, response);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tboolean success = answer!=null;\n\t\tif (success) {\n\t\t\tString status = answer.optString(\"status\");\n\t\t\tif (!status.equalsIgnoreCase(\"ok\")) {\n\t\t\t\tsuccess = false;\n\t\t\t\tthis.plugin.getLogger().warning(\"server error\");\n\t\t\t\tthis.plugin.getLogger().log(Level.INFO, answer.toString());\n\t\t\t}\n\t\t}\n\t\trequest.response(success, answer);\n\t}", "CompletableFuture<HttpResponse> sendRequest(HttpRequest request);", "public void execute() {\n //this.$context.$Request.initialize();\n this.$context.$Request.extractAllVars();\n\n this.$context.$Response.writeHeader(\"Content-type\", \"text/html; charset=UTF-8\");\n\n // Check security code\n if (!this.$context.$Request.contains(\"code\")) {\n this.$context.$Response.end(\"Code is required!\");\n return;\n }\n String $code = this.$context.$Request.get(\"code\");\n if (!EQ($code, Config.SECURITY_CODE)) {\n this.$context.$Response.end(\"Incorrect code!\");\n return;\n }\n\n // Check package\n if (!this.$context.$Request.contains(\"package\")) {\n this.$context.$Response.end(\"Package is required!\");\n return;\n }\n String $package = this.$context.$Request.get(\"package\");\n if (BLANK($package)) {\n this.$context.$Response.end(\"Empty package!\");\n return;\n }\n String[] $packageChunks = Strings.split(\"-\", $package);\n for (int $n = 0; $n < SIZE($packageChunks); $n++)\n $packageChunks[$n] = Strings.firstCharToUpper($packageChunks[$n]);\n $package = Strings.join(\"/\", $packageChunks);\n\n // Check class\n if (!this.$context.$Request.contains(\"class\")) {\n this.$context.$Response.end(\"Class is required!\");\n return;\n }\n String $className = this.$context.$Request.get(\"class\");\n if (BLANK($className)) {\n this.$context.$Response.end(\"Empty class!\");\n return;\n }\n\n // Check method\n if (!this.$context.$Request.contains(\"method\")) {\n this.$context.$Response.end(\"Method is required!\");\n return;\n }\n String $method = this.$context.$Request.get(\"method\");\n if (BLANK($method)) {\n this.$context.$Response.end(\"Empty method!\");\n return;\n }\n\n // Fill array with parameters\n int $count = 0;\n TArrayList $pars = new TArrayList();\n for (int $n = 1; $n <= 6; $n++) {\n String $parName = CAT(\"par\", $n);\n if (!this.$context.$Request.contains($parName))\n break;\n String $parValue = this.$context.$Request.get($parName);\n if (EQ($parValue, \"_\"))\n $parValue = \"\";\n //$parsArray[] = $parValue;\n $pars.add($parValue);\n $count++;\n }\n\n String $buffer = null;\n Object $result = null;\n\n String $fullClass = CAT($package, \"/\", $className);\n\n $fullClass = Strings.replace(\"/\", \".\", $fullClass);\n TArrayList $pars0 = new TArrayList(new Object[] { this.$context.$Connection });\n $result = Bula.Internal.callMethod($fullClass, $pars0, $method, $pars);\n\n if ($result == null)\n $buffer = \"NULL\";\n else if ($result instanceof DataSet)\n $buffer = ((DataSet)$result).toXml(EOL);\n else\n $buffer = STR($result);\n this.$context.$Response.write($buffer);\n this.$context.$Response.end();\n }", "interface RequestExecution\n\t{\n\t\tvoid execute(AbstractResponseBuilder response);\n\t}", "private <T> ResponseEntity<T> executeRequest(String url, HttpMethod method, HttpEntity<?> reqEntity,\n\t\t\tClass<T> responseType) {\n\t\ttry {\n\t\t\treturn restTemplate.exchange(url, method, reqEntity, responseType);\n\n\t\t} catch (final HttpClientErrorException | HttpServerErrorException e) {\n\t\t\tthrow new MicroserviceException(\n\t\t\t\t\t\"HttpResponse code : \" + e.getStatusCode() + \" , cause: \" + e.getResponseBodyAsString());\n\t\t}\n\n\t}", "public void getResultsFromApi() {\n// if (! isGooglePlayServicesAvailable()) {\n// acquireGooglePlayServices();\n// } else if (mCredential.getSelectedAccountName() == null) {\n// chooseAccount();\n// } else if (! isDeviceOnline()) {\n//// mOutputText.setText(\"No network connection available.\");\n// } else {\n MakeRequestTask req = new MakeRequestTask(mCredential);\n AsyncTaskCompat.executeParallel(req);\n// }\n }", "@NonNull\n\tpublic HttpResponse executeRequest(Context context, HttpClient client, HttpUriRequest req)\n\t\t\tthrows IOException\n\t{\n\t\treturn client.execute(req, localContext);\n\t}", "public void performHttpRequest(Request request, Object payload) throws Exception {\n LOGGER.debug(\"Performing HTTP request with these parameters: {}\", request);\n\n Response response = null;\n\n try {\n String json = objectMapper.writeValueAsString(payload);\n Entity<String> entity = Entity.json(json);\n response = invokeHttpRequest(request, entity);\n validateResponse(response);\n } catch (ProcessingException | IOException e) {\n LOGGER.debug(\"HTTP request failed!\", e);\n throw e;\n } finally {\n if (response != null) {\n response.close();\n }\n }\n }", "@Override\n public void run() {\n super.run(); // obtain connection\n if (connection == null)\n return; // problem obtaining connection\n\n try {\n request_spec.context.setAttribute\n (ExecutionContext.HTTP_CONNECTION, connection);\n\n doOpenConnection();\n\n HttpRequest request = (HttpRequest) request_spec.context.\n getAttribute(ExecutionContext.HTTP_REQUEST);\n request_spec.executor.preProcess\n (request, request_spec.processor, request_spec.context);\n\n response = request_spec.executor.execute\n (request, connection, request_spec.context);\n\n request_spec.executor.postProcess\n (response, request_spec.processor, request_spec.context);\n\n doConsumeResponse();\n\n } catch (Exception ex) {\n if (exception != null)\n exception = ex;\n\n } finally {\n conn_manager.releaseConnection(connection, -1, null);\n }\n }", "String execute(HttpServletRequest req, HttpServletResponse res);", "protected final ClientHttpResponse executeInternal(HttpHeaders headers, byte[] bufferedOutput)\r\n/* 39: */ throws IOException\r\n/* 40: */ {\r\n/* 41:65 */ RequestExecution requestExecution = new RequestExecution(null);\r\n/* 42: */ \r\n/* 43:67 */ return requestExecution.execute(this, bufferedOutput);\r\n/* 44: */ }", "public abstract void processExecuteRequest(ContentExecuteRequest contentExecuteRequest, Message message);", "@Override\r\n\tpublic void execute(HttpServletRequest request) {\n\r\n\t}", "public void run() {\n\t\t\t\tHttpURLConnection connection = null;\r\n\r\n\t\t\t\tPrintWriter printWriter = null;\r\n\t\t\t\tBufferedReader bufferedReader = null;\r\n\r\n\t\t\t\tStringBuffer response = new StringBuffer();\r\n\t\t\t\tStringBuffer request = new StringBuffer();\r\n\r\n\t\t\t\t// 组织请求参数\r\n\t\t\t\tif (null != params && !params.isEmpty()){\r\n\t\t\t\t\tfor (Map.Entry<String, String> entry : params.entrySet()){\r\n\t\t\t\t\t\trequest.append(entry.getKey()).append(\"=\").append(entry.getValue()).append(\"&\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//< 删除多余的&\r\n\t\t\t\t\trequest.deleteCharAt(request.length() - 1);\r\n\t\t\t\t}\r\n\t\t\t\tLog.d(\"HttpUtil\", request.toString());\r\n\r\n\t\t\t\ttry{\r\n\t\t\t\t\tURL url = new URL(address);\r\n\t\t\t\t\tconnection = (HttpURLConnection) url.openConnection();\r\n\t\t\t\t\tconnection.setRequestMethod(\"POST\");\r\n\t\t\t\t\tconnection.setRequestProperty(\"Content-Length\", String.valueOf(request.length()));\r\n\t\t\t\t\tconnection.setDoInput(true);\r\n\t\t\t\t\tconnection.setDoOutput(true);\r\n\t\t\t\t\tprintWriter = new PrintWriter(connection.getOutputStream());\r\n\t\t\t\t\tprintWriter.write(request.toString());\r\n\t\t\t\t\tprintWriter.flush();\r\n\r\n\t\t\t\t\tint responseCode = connection.getResponseCode();\r\n\t\t\t\t\tif(responseCode != 200){\r\n\t\t\t\t\t\tLog.d(\"HttpUtil\", \"Post Fail\");\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tLog.d(\"HttpUtil\", \"Post Success\");\r\n\t\t\t\t\t\tbufferedReader = new BufferedReader(new InputStreamReader(connection.getInputStream()));\r\n\t\t\t\t\t\tString line;\r\n\t\t\t\t\t\twhile ((line = bufferedReader.readLine()) != null) {\r\n\t\t\t\t\t\t\tresponse.append(line);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif(listener != null){\r\n\t\t\t\t\t\tlistener.onFinish(response.toString());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tif(listener != null){\r\n\t\t\t\t\t\tlistener.onError(e);\r\n\t\t\t\t\t}\r\n\t\t\t\t}finally{\r\n\t\t\t\t\tif(connection != null){\r\n\t\t\t\t\t\tconnection.disconnect();\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tif (printWriter != null) {\r\n\t\t\t\t\t\t\tprintWriter.close();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (bufferedReader != null) {\r\n\t\t\t\t\t\t\tbufferedReader.close();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (IOException ex) {\r\n\t\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tprotected Object execute(String apiRequest, HttpServletRequest req) throws SiDCException, Exception {\n\t\tfinal LaundryOrderReceiveRequest enity = (LaundryOrderReceiveRequest) APIParser.getInstance().parse(apiRequest,\n\t\t\t\tLaundryOrderReceiveRequest.class);\n\n\t\treturn new LaundryOrderReceiveProcess(enity).executeByAuthToken(req.getServletPath());\n\t}", "void execute(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException;", "public void sendHttp() {\n String url = \"https://openwhisk.ng.bluemix.net/api/v1/namespaces/1tamir198_tamirSpace/actions/testing_trigger\";\n //api key that i got from blumix EndPoins\n String apiKey = \"530f095a-675e-4e1c-afe0-4b421201e894:0HriiSRoYWohJ4LGOjc5sGAhHvAka1gwASMlhRN8kA5eHgNu8ouogt8BbmXtX21N\";\n try {\n //JSONObject jsonObject = new JSONObject().put(\"openwhisk.ng.bluemix.net\" ,\"c1165fd1-f4cf-4a62-8c64-67bf20733413:hdVl64YRzbHBK0n2SkBB928cy2DUO5XB3yDbuXhQ1uHq8Ir0dOEwT0L0bqMeWTTX\");\n String res = (new HttpRequest(url)).prepare(HttpRequest.Method.POST).withData(apiKey).sendAndReadString();\n //String res = new HttpRequest(url).prepare(HttpRequest.Method.POST).withData(jsonObject.toString()).sendAndReadString();\n System.out.println( res + \"***********\");\n\n } catch ( IOException exception) {\n exception.printStackTrace();\n System.out.println(exception + \" some some some\");\n System.out.println(\"catched error from response ***********\");\n }\n }", "@Override\n protected CloseableHttpResponse doExecute(\n HttpHost httpHost, HttpRequest httpRequest, HttpContext httpContext) throws IOException, ClientProtocolException {\n return wrappedClient.execute(httpHost, httpRequest, httpContext);\n }", "@Override\n public byte[] execute() {\n return buildResponse();\n }", "private HttpResponse executeHttpGet(String apiUrl) throws OAuthMessageSignerException,\r\n\t\t\tOAuthExpectationFailedException, OAuthCommunicationException, IOException {\r\n\t\tHttpGet httprequest = new HttpGet(apiUrl);\r\n\t\tgetOAuthConsumer().sign(httprequest);\r\n\t\tHttpClient client = new DefaultHttpClient();\r\n\t\tHttpResponse httpresponse = client.execute(httprequest);\r\n\t\tint statusCode = httpresponse.getStatusLine().getStatusCode();\r\n\t\tSystem.out.println(statusCode + \":\" + httpresponse.getStatusLine().getReasonPhrase());\r\n\t\treturn httpresponse;\r\n\t}", "private void getResultsFromApi() {\r\n if (!isGooglePlayServicesAvailable()) {\r\n acquireGooglePlayServices();\r\n } else if (mCredential.getSelectedAccountName() == null) {\r\n chooseAccount();\r\n } else if (!isDeviceOnline()) {\r\n Toast.makeText(getActivity(), \"No network connection available.\", Toast.LENGTH_LONG).show();\r\n } else {\r\n new MakeRequestTask(mCredential).execute();\r\n }\r\n }", "private Result performRequest(String endpointUrl, List<NameValuePair> nameValuePairs) {\n Status status = Status.FAILED_UNRECOVERABLE;\n String response = null;\n try {\n // the while(retries) loop is a workaround for a bug in some Android HttpURLConnection\n // libraries- The underlying library will attempt to reuse stale connections,\n // meaning the second (or every other) attempt to connect fails with an EOFException.\n // Apparently this nasty retry logic is the current state of the workaround art.\n int retries = 0;\n boolean succeeded = false;\n while (retries < 3 && !succeeded) {\n InputStream in = null;\n BufferedInputStream bin = null;\n OutputStream out = null;\n BufferedOutputStream bout = null;\n HttpURLConnection connection = null;\n\n try {\n final URL url = new URL(endpointUrl);\n connection = (HttpURLConnection) url.openConnection();\n if (null != nameValuePairs) {\n connection.setDoOutput(true);\n final UrlEncodedFormEntity form = new UrlEncodedFormEntity(nameValuePairs, \"UTF-8\");\n connection.setRequestMethod(\"POST\");\n connection.setFixedLengthStreamingMode((int)form.getContentLength());\n out = connection.getOutputStream();\n bout = new BufferedOutputStream(out);\n form.writeTo(bout);\n bout.close();\n bout = null;\n out.close();\n out = null;\n }\n in = connection.getInputStream();\n bin = new BufferedInputStream(in);\n response = StringUtils.inputStreamToString(in);\n bin.close();\n bin = null;\n in.close();\n in = null;\n succeeded = true;\n } catch (final EOFException e) {\n if (MPConfig.DEBUG) Log.d(LOGTAG, \"Failure to connect, likely caused by a known issue with Android lib. Retrying.\");\n retries = retries + 1;\n } finally {\n if (null != bout)\n try { bout.close(); } catch (final IOException e) { ; }\n if (null != out)\n try { out.close(); } catch (final IOException e) { ; }\n if (null != bin)\n try { bin.close(); } catch (final IOException e) { ; }\n if (null != in)\n try { in.close(); } catch (final IOException e) { ; }\n if (null != connection)\n connection.disconnect();\n }\n }// while\n } catch (final MalformedURLException e) {\n Log.e(LOGTAG, \"Cannot iterpret \" + endpointUrl + \" as a URL\", e);\n status = Status.FAILED_UNRECOVERABLE;\n } catch (final IOException e) {\n if (MPConfig.DEBUG) Log.d(LOGTAG, \"Cannot post message to Mixpanel Servers (ok, can retry.)\");\n status = Status.FAILED_RECOVERABLE;\n } catch (final OutOfMemoryError e) {\n Log.e(LOGTAG, \"Cannot post message to Mixpanel Servers, will not retry.\", e);\n status = Status.FAILED_UNRECOVERABLE;\n }\n\n if (null != response) {\n status = Status.SUCCEEDED;\n if (MPConfig.DEBUG) Log.d(LOGTAG, \"Request returned:\\n\" + response);\n }\n\n return new Result(status, response);\n }", "default void getExecution(\n com.google.cloud.aiplatform.v1.GetExecutionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Execution> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetExecutionMethod(), responseObserver);\n }", "void handleRequest();", "public synchronized void tryExecuteRequests(){\n Object lpid = getLocalProcessID();\n\n JDSUtility.debug(\"[PBFTSever:handle(token)] s\" + lpid + \", at time \" + getClockValue() + \", is going to execute requests.\");\n\n //if(isValid(proctoken)){\n long startSEQ = getStateLog().getNextExecuteSEQ();\n long finalSEQ = getHCWM();//proctoken.getSequenceNumber();\n long lcwm = getLCWM();\n\n PBFTRequestInfo rinfo = getRequestInfo();\n\n int viewn = getCurrentViewNumber();\n\n int f = getServiceBFTResilience();\n\n for(long currSEQ = startSEQ; currSEQ <= finalSEQ && currSEQ > lcwm; currSEQ ++){\n\n if(!(getPrepareInfo().count(viewn, currSEQ) >= (2* f) && getCommitInfo().count(viewn, currSEQ) >= (2 * f +1))){\n return;\n }\n\n if(rinfo.hasSomeRequestMissed(currSEQ)){\n JDSUtility.debug(\"[tryExecuteRequests()] s\" + lpid+ \", at time \" + getClockValue() + \", couldn't executed \" + currSEQ + \" because it has a missed request.\");\n return;\n }\n\n if(rinfo.wasServed(currSEQ)){\n continue;\n }\n\n executeSequencedComand(currSEQ);\n//\n// PBFTPrePrepare preprepare = getPrePrepareInfo().get(viewn, currSEQ);\n//\n// for(String digest : preprepare.getDigests()){\n// StatedPBFTRequestMessage loggedRequest = rinfo.getStatedRequest(digest);\n// PBFTRequest request = loggedRequest.getRequest();//rinfo.getRequest(digest); //statedReq.getRequest();\n//\n// IPayload result = lServer.executeCommand(request.getPayload());\n//\n// PBFTReply reply = createReplyMessage(request, result);\n// loggedRequest.setState(RequestState.SERVED);\n// loggedRequest.setReply(reply);\n//\n// JDSUtility.debug(\n// \"[tryExecuteRequests()] s\" + lpid + \", at time \" + getClockValue() + \", executed \" + request + \" (CURR-VIEWN{ \" + viewn + \"}; SEQN{\" + currSEQ + \"}).\"\n// );\n//\n// JDSUtility.debug(\"[tryExecuteRequests()] s\" + lpid + \", at time \" + getClockValue() + \", has the following state \" + lServer.getCurrentState());\n//\n// loggedRequest.setReplySendTime(getClockValue());\n//\n// if(rinfo.isNewest(request)){\n// IProcess client = new BaseProcess(reply.getClientID());\n// emit(reply, client);\n// }\n//\n// }//end for each leafPartDigest (tryExecuteRequests and reply)\n \n IRecoverableServer lServer = (IRecoverableServer)getServer();\n JDSUtility.debug(\n \"[tryExecuteRequests()] s\" + lpid + \", at time \" + getClockValue() + \", after execute SEQN{\" + currSEQ + \"} has the following \" +\n \"state \" + lServer.getCurrentState()\n );\n\n getStateLog().updateNextExecuteSEQ(currSEQ);\n\n long execSEQ = getStateLog().getNextExecuteSEQ() -1;\n long chkPeriod = getCheckpointPeriod();\n\n\n if(execSEQ > 0 && (((execSEQ+1) % chkPeriod) == 0)){\n PBFTCheckpoint checkpoint;\n try {\n checkpoint = createCheckpointMessage(execSEQ);\n getDecision(checkpoint);\n rStateManager.addLogEntry(\n new CheckpointLogEntry(\n checkpoint.getSequenceNumber(),\n rStateManager.byteArray(),\n checkpoint.getDigest()\n )\n );\n\n\n emit(checkpoint, getLocalGroup().minus(getLocalProcess()));\n handle(checkpoint);\n } catch (Exception ex) {\n Logger.getLogger(PBFTServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n if(rinfo.hasSomeWaiting()){\n if(isPrimary()){\n batch();\n }else{\n scheduleViewChange();\n }\n }\n }\n }", "public void execute() {\n\t\tif (nameidRequest != null) {nameidRequest.execute();}\n\t}", "static String request(String requestMethod, String input, String endURL)\n {\n StringBuilder result;\n result = new StringBuilder();\n try\n {\n String targetURL = firstURL + endURL;\n URL ServiceURL = new URL(targetURL);\n HttpURLConnection httpConnection = (HttpURLConnection) ServiceURL.openConnection();\n httpConnection.setRequestMethod(requestMethod);\n httpConnection.setRequestProperty(\"Content-Type\", \"application/json; charset=UTF-8\");\n httpConnection.setDoOutput(true);\n\n switch (requestMethod) {\n case \"POST\":\n\n httpConnection.setDoInput(true);\n OutputStream outputStream = httpConnection.getOutputStream();\n outputStream.write(input.getBytes());\n outputStream.flush();\n\n result = new StringBuilder(\"1\");\n break;\n case \"GET\":\n\n BufferedReader responseBuffer = new BufferedReader(new InputStreamReader((httpConnection.getInputStream())));\n String tmp;\n while ((tmp = responseBuffer.readLine()) != null) {\n result.append(tmp);\n }\n break;\n }\n\n if (httpConnection.getResponseCode() != 200)\n throw new RuntimeException(\"HTTP GET Request Failed with Error code : \" + httpConnection.getResponseCode());\n\n httpConnection.disconnect();\n\n } catch (IOException exception) {\n exception.printStackTrace();\n }\n return result.toString();\n }", "@Override\n protected AccGitHuber doInBackground(Void... voids) {\n return executeRequest();\n }", "private void doRequest() {\n\n try {\n JsonObject request = new JsonObject()\n .put(\"action\", Math.random() < 0.5 ? \"w\" : \"r\")\n .put(\"timeOfRequest\", System.currentTimeMillis());\n\n if (request.getString(\"action\") == \"w\") {\n request.put(\"data\", new JsonObject()\n .put(\"key\", \"value\")\n );\n logger.debug(\"requesting write: \" + request.toString());\n eb.send(\"storage-write-address\", request, new DeliveryOptions().setSendTimeout(1000), this);\n } else {\n Random random = new Random();\n List<String> keys = new ArrayList<String>(map.keySet());\n String randomKey = keys.get(random.nextInt(keys.size()));\n request.put(\"id\", randomKey);\n logger.debug(\"waiting for read: \" + request.toString());\n eb.send(\"storage-read-address\", request, new DeliveryOptions().setSendTimeout(1000), this);\n }\n } catch (Exception e) {\n logger.warn(\"Error\");\n makeRequest();\n }\n\n }", "@Override\n public GetDeploymentResponse executeRequest() throws MorpheusApiRequestException {\n return (GetDeploymentResponse) RequestHelper.executeRequest(GetDeploymentResponse.class, this, \"/api/deployments/\" + deploymentId, HttpPut.METHOD_NAME);\n }", "void execute(final T response);", "@Override\n\t\t\tpublic Boolean execute() throws EvrythngException {\n\t\t\t\tHttpClient client = new DefaultHttpClient();\n\t\t\t\ttry {\n\t\t\t\t\t// Execute request (response status code will be automatically checked):\n\t\t\t\t\treturn command.execute(client) != null;\n\t\t\t\t} finally {\n\t\t\t\t\tcommand.shutdown(client);\n\t\t\t\t}\n\t\t\t}", "private Response execute_work(Request request){\n if (request.getFname().equals(\"tellmenow\")){\n int returnValue = tellMeNow();\n }\n else if(request.getFname().equals(\"countPrimes\")){\n int returnValue = countPrimes(request.getArgs()[0]);\n }\n else if(request.getFname().equals(\"418Oracle\")){\n int returnValue = oracle418();\n }\n else{\n System.out.println(\"[Worker\"+String.valueOf(this.id)+\"] WARNING function name not recognized, dropping request\");\n }\n\n return new Response(id,request.getId(),request.getFname(),0);//0 meaning ok!\n }", "private OCSPResp performRequest(String urlString)\n throws IOException, OCSPException, URISyntaxException\n {\n OCSPReq request = generateOCSPRequest();\n URL url = new URI(urlString).toURL();\n HttpURLConnection httpConnection = (HttpURLConnection) url.openConnection();\n try\n {\n httpConnection.setRequestProperty(\"Content-Type\", \"application/ocsp-request\");\n httpConnection.setRequestProperty(\"Accept\", \"application/ocsp-response\");\n httpConnection.setRequestMethod(\"POST\");\n httpConnection.setDoOutput(true);\n try (OutputStream out = httpConnection.getOutputStream())\n {\n out.write(request.getEncoded());\n }\n\n int responseCode = httpConnection.getResponseCode();\n if (responseCode == HttpURLConnection.HTTP_MOVED_TEMP ||\n responseCode == HttpURLConnection.HTTP_MOVED_PERM ||\n responseCode == HttpURLConnection.HTTP_SEE_OTHER)\n {\n String location = httpConnection.getHeaderField(\"Location\");\n if (urlString.startsWith(\"http://\") &&\n location.startsWith(\"https://\") &&\n urlString.substring(7).equals(location.substring(8)))\n {\n // redirection from http:// to https://\n // change this code if you want to be more flexible (but think about security!)\n LOG.info(\"redirection to \" + location + \" followed\");\n return performRequest(location);\n }\n else\n {\n LOG.info(\"redirection to \" + location + \" ignored\");\n }\n }\n if (responseCode != HttpURLConnection.HTTP_OK)\n {\n throw new IOException(\"OCSP: Could not access url, ResponseCode \"\n + httpConnection.getResponseCode() + \": \"\n + httpConnection.getResponseMessage());\n }\n // Get response\n try (InputStream in = (InputStream) httpConnection.getContent())\n {\n return new OCSPResp(in);\n }\n }\n finally\n {\n httpConnection.disconnect();\n }\n }", "@SuppressWarnings(\"unchecked\")\n public <T> T execute() {\n return (T) fetchResponse(getCallToExecute());\n }", "private void getResultsFromApi() {\n if (! isGooglePlayServicesAvailable()) {\n acquireGooglePlayServices();\n } else if (mCredential.getSelectedAccountName() == null) {\n chooseAccount();\n } else if (! isDeviceOnline()) {\n\n Toast.makeText(getApplicationContext(), \"No Network Connection\",\n Toast.LENGTH_SHORT).show();\n mOutputText.setText(\"No network connection available.\");\n } else {\n new MakeRequestTask(mCredential).execute();\n }\n }", "HttpApiResponse run(HttpApiRequest request, ThingifierApiConfig config);", "private HttpResponse executeHttpPost(String apiUrl) throws OAuthMessageSignerException,\r\n\t\t\tOAuthExpectationFailedException, OAuthCommunicationException, IOException {\r\n\t\tHttpPost httprequest = new HttpPost(apiUrl);\r\n\t\tgetOAuthConsumer().sign(httprequest);\r\n\t\tHttpClient client = new DefaultHttpClient();\r\n\t\tHttpResponse httpresponse = client.execute(httprequest);\r\n\t\tint statusCode = httpresponse.getStatusLine().getStatusCode();\r\n\t\tSystem.out.println(statusCode + \":\" + httpresponse.getStatusLine().getReasonPhrase());\r\n\t\treturn httpresponse;\r\n\t}", "public void run() {\n try {\n System.out.println(\"Calling Process\");\n processRequest();\n\n } catch (Exception e) {\n System.out.println(\"Run Exception\" + e);\n }\n\n }", "R request();", "@Override\n\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tList<String> headers = readRequest(client);\n\t\t\t\t\t\t\tif (headers != null && headers.size() >= 1) {\n\t\t\t\t\t\t\t\tString requestURL = getRequestURL(headers.get(0));\n\t\t\t\t\t\t\t\tLog.d(TAG, requestURL);\n\n\t\t\t\t\t\t\t\tif (requestURL.startsWith(\"http://\")) {\n\n\t\t\t\t\t\t\t\t\t// HttpRequest request = new\n\t\t\t\t\t\t\t\t\t// BasicHttpRequest(\"GET\", requestURL);\n\n\t\t\t\t\t\t\t\t\tprocessHttpRequest(requestURL, client, headers);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tprocessFileRequest(requestURL, client, headers);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (IllegalStateException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n\tpublic Object invoke(InvokeContext context) throws Exception {\n\t\tnet.sf.json.JSONObject obj = net.sf.json.JSONObject.fromObject(reqUser.getUser_param());\n\t\tString method = obj.getString(\"method\");\n\t\tString version = obj.getString(\"version\");\n\t\tString access_token = obj.getString(\"access_token\");\n\t\n//\t\tZteResponse resp = null;\n\t\tMap params = (Map) context.getParameters();\n\t\tHttpClient httpClient = HttpClientBuilder.create().build();\n\t\t//设置请求地址\n\t\tHttpPost request = new HttpPost(endpoint);\n\t\tlogger.info(endpoint);\n\t\tint timeout = 30000;//超时时间30秒\n\t\t//设置超时\n\t\tif(timeout > 0){\n\t\t\tRequestConfig requestConfig = RequestConfig.custom()\n\t\t\t\t.setSocketTimeout(timeout)\n\t\t\t\t.setConnectTimeout(timeout)\n\t\t\t\t.setConnectionRequestTimeout(timeout)\n\t\t\t\t.setExpectContinueEnabled(false).build();\n\t\t\trequest.setConfig(requestConfig);\n\t\t}\n\n\t\t//组装请求报文\n\t\tMap<String, Object> param = new HashMap<String, Object>();\n\t\tparam.put(\"access_token\", access_token);\n\t\tparam.put(\"method\", method);\n\t\tparam.put(\"version\", version);\n\n\t\t//业务参数 \n\t\tMap<String, String> content = new HashMap<String, String>();\n\t\tcontent.put(\"mail_num\", params.get(\"logi_no\").toString());\n\t\tparam.put(\"content\", content);\n\t\tlogger.info(\"请求参数:\"+param);\n\t\tHttpResponse response = null;\n\t\ttry{\n\t\t\t//请求报文转换成json格式的字符串\n\t\t\tStringEntity entity = new StringEntity(JSON.toJSONString(param), Consts.UTF_8.name());\n\t\t\tentity.setContentEncoding(Consts.UTF_8.name());\n\t\t\tentity.setContentType(ContentType.APPLICATION_JSON.toString());\n\t\t\trequest.setEntity(entity);\n\t\t\t\n\t\t\tcontext.setRequestString(JSON.toJSONString(param));\n\t context.setEndpoint(endpoint);\n\t\t\tcontext.setRequestTime(DateUtil.currentTime());\n\t\t\t\n\t\t\tresponse = httpClient.execute(request);\n\t\t\tint statusCode = response.getStatusLine().getStatusCode();\n\t\t\t//一定要先调用此方法,否则无法关闭连接\n\t\t\tString result = EntityUtils.toString(response.getEntity(), Consts.UTF_8.name());\n\t\t\tif(statusCode == HttpStatus.SC_OK){\n\t\t\t\t//打印响应结果\n\t\t\t\tlogger.info(result);\n\t\t\t}\n\t\t\t/** 调用前先打印连接池使用情况 */\n \tlogger.info(\"HttpEmsRouteQryInvoker==pool,\"+DateFormatUtils.formatDate(\"yyyy-MM-dd HH:mm:ss\")\n \t\t\t+\",connectionsInPool:\"+connectionManager.getConnectionsInPool()\n \t\t\t+\",connectionsInUse:\"+connectionManager.getConnectionsInUse()\n \t\t\t+\",maxConnectionsPerHost:\"+connectionManager.getMaxConnectionsPerHost()\n \t\t\t+\",maxTotalConnections:\"+connectionManager.getMaxTotalConnections());\n// int statusCode = client.executeMethod(postMethod);\n// if(TIME_OUT_STATUS==statusCode) throw new HttpTimeOutException(\"超时异常\");\n// String resContent = getResponseContent(postMethod.getResponseBodyAsStream());\n// //请求报文打印\n// logger.info(\"EMS返回报文: \"+resContent);\n// //异常提示信息,单引号处理\n// if(EcsOrderConsts.AOP_HTTP_STATUS_CODE_200!=statusCode){\n// \tresContent = resContent.replace(\"'\", \"\\'\");\n// \tresContent = resContent.replace(\"\\n\", \",\");//部分浏览器报错,临时解决方案\n// }\n JSONObject respJson = JSON.parseObject(result);\n JSONObject resultJson = respJson.getJSONObject(\"result\");\n String resultString=resultJson.toString(); \n logger.info(resultString);\n Class<?> clazz = Class.forName(rspPath);\n\t\t\tZteResponse resp = (ZteResponse) JsonUtil.fromJson(resultString, clazz);\n if(EcsOrderConsts.AOP_HTTP_STATUS_CODE_200!=statusCode){\n \tnet.sf.json.JSONObject results = net.sf.json.JSONObject.fromObject(result);\n \tresp.setError_code(\"-1\");\n \tresp.setError_msg(\"接口异常:\"+result);\n \tlogColMap.put(\"col2\", \"error\");\n } else{\n \tresp.setError_code(\"0000\");\n \tresp.setError_msg(\"成功\");\n\t\t\t\tlogColMap.put(\"col2\", \"success\");\n }\n\t context.setResultString(result);\n context.setResponeString(result);\n context.setResponseTime(DateUtil.currentTime());\n return resp;\n\t\t}catch(HttpException ex){\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tthrow new IOException(\"接口异常\");\n\t\t}\n\t\tfinally{\n\t\t\tif(response != null){\n\t\t\t\tEntityUtils.consume(response.getEntity());//自动释放连接\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void execute() {\n if (hasError())\n return;\n\n runLocally();\n runRemotely();\n }", "private AylaCallResponse execute(int method, AylaRestService rs)\n\t{\n\n\t\trequestRetryCounter = 3;\n\t\tAylaCallResponse commitResponse = null;\n\t\tBundle responseBundle = null;\n\n if (!AylaReachability.isCloudServiceAvailable()) {\n if (AylaReachability.isDeviceLanModeAvailable(null) && supportsLanModeResponse(method)) {\n // We aren't connected to the cloud, but we are connected to the LAN mode device\n AylaSystemUtils.saveToLog(\"%s, %s, %s:%d, %s\", \"V\", \"ExecuteRequest\", \"lanMode\", method, \"execute\");\n } else if (!supportsOfflineResponse(method)) {\n // Make sure the method supports cached results if we cannot reach the service.\\\n // return failure here\n AylaSystemUtils.saveToLog(\"%s, %s, %s:%d, %s\", \"E\", \"ExecuteRequest\", \"!cloud && !supportOffline\", method, \"execute\");\n responseBundle = new Bundle();\n responseBundle.putString(\"result\", rs.jsonResults); // response v3.07\n responseBundle.putInt(\"subTask\", rs.subTaskFailed);\n responseCode = AylaNetworks.AML_ERROR_UNREACHABLE;\n \n if (async) {\n receiver.send(responseCode, responseBundle);\n } else {\n commitResponse = new AylaCallResponse(responseCode, responseBundle);\n }\n return commitResponse;\n } else {\n AylaSystemUtils.saveToLog(\"%s, %s, %s:%d, %s\", \"V\", \"ExecuteRequest\", \"cached\", method, \"execute\");\n }\n }\n\n\t\tAylaCallResponse failureResponse = checkRequest(method, rs);\n\t\tif ( failureResponse != null ) {\n\t\t\treturn failureResponse;\n\t\t}\n\n\t\ttry{\n\t\t\tswitch(method)\n\t\t\t{\n\t\t\t\tcase AylaRestService.CREATE_GROUP_ZIGBEE:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.UPDATE_GROUP_ZIGBEE:\n\t\t\t\tcase AylaRestService.TRIGGER_GROUP_ZIGBEE:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.DELETE_GROUP_ZIGBEE:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"DELETE\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.CREATE_BINDING_ZIGBEE:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs );\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.UPDATE_BINDING_ZIGBEE:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.DELETE_BINDING_ZIGBEE:\n\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"DELETE\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.CREATE_SCENE_ZIGBEE:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.UPDATE_SCENE_ZIGBEE:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.RECALL_SCENE_ZIGBEE:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.DELETE_SCENE_ZIGBEE:\n\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"DELETE\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.CREATE_USER_SHARE:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.UPDATE_USER_SHARE:\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tcase AylaRestService.GET_USER_SHARE:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"GET\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.DELETE_USER_SHARE:\n\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"DELETE\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\tcase AylaRestService.LOGIN_THROUGH_OAUTH :\t// Compound objects, no service API, just return to handler\n\t\t\t\t{\n\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.CREATE_USER_CONTACT:\n\t\t\t\t\tif (!AylaSystemUtils.ERR_URL.equals(url)) {\n\t\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.UPDATE_USER_CONTACT:\n\t\t\t\t\tif (!AylaSystemUtils.ERR_URL.equals(url)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}// end of if error_url.equals(url)\n\n\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.DELETE_USER_CONTACT:\n\t\t\t\t\tif (!AylaSystemUtils.ERR_URL.equals(url)) {\n\t\t\t\t\t\tsetUrlConnection(\"DELETE\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.CREATE_USER_METADATA:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tresponseBundle = new Bundle();\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.UPDATE_USER_METADATA:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.GET_USER_METADATA_BY_KEY:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"GET\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.DELETE_USER_METADATA:\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"DELETE\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.CREATE_DEVICE_METADATA:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.UPDATE_DEVICE_METADATA:\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.GET_DEVICE_METADATA_BY_KEY:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"GET\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.DELETE_DEVICE_METADATA:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"DELETE\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.CREATE_LOG_IN_SERVICE:\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.CREATE_SCHEDULE_ACTION:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.UPDATE_SCHEDULE_ACTION:\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.DELETE_SCHEDULE_ACTION:\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"DELETE\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t}\n\t\t\t\t\telse { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t//case AylaRestService.CREATE_SCHEDULE:\n\t\t\t\tcase AylaRestService.UPDATE_SCHEDULE:\n\t\t\t\tcase AylaRestService.CLEAR_SCHEDULE:\n\t\t\t\t\t//case AylaRestService.DELETE_SCHEDULE:\n\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\tcase AylaRestService.CREATE_SCHEDULE_ACTIONS: // only called on (url.equals(AylaSystemUtils.ERR_URL)\n\t\t\t\tcase AylaRestService.DELETE_SCHEDULE_ACTIONS: // only called on (url.equals(AylaSystemUtils.ERR_URL)\n\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"DELETE\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase AylaRestService.UPDATE_DEVICE:\n\t\t\t\t\tif(!url.equals(AylaSystemUtils.ERR_URL)){\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase AylaRestService.SEND_NETWORK_PROFILE_LANMODE:\n\t\t\t\tcase AylaRestService.DELETE_NETWORK_PROFILE_LANMODE:\n\n\t\t\t\tcase AylaRestService.GET_DEVICES_LANMODE:\n\t\t\t\tcase AylaRestService.GET_NODES_LOCAL_CACHE:\n\t\t\t\tcase AylaRestService.CREATE_DATAPOINT_LANMODE:\n\t\t\t\tcase AylaRestService.CREATE_NODE_DATAPOINT_LANMODE:\n\n\t\t\t\tcase AylaRestService.GET_DATAPOINT_LANMODE:\n\t\t\t\tcase AylaRestService.GET_DATAPOINTS_LANMODE:\n\t\t\t\tcase AylaRestService.GET_PROPERTIES_LANMODE:\n\t\t\t\tcase AylaRestService.GET_NODES_CONNECTION_STATUS_ZIGBEE_LANMODE:\n\n\t\t\t\tcase AylaRestService.GET_NODE_PROPERTIES_LANMODE:\n\t\t\t\tcase AylaRestService.GET_NODE_DATAPOINT_LANMODE:\n\n\t\t\t\tcase AylaRestService.GET_PROPERTY_DETAIL_LANMODE:\n\t\t\t\t{\n\t\t\t\t\tresponseBundle = new Bundle();\n\t\t\t\t\tresponseBundle.putString(\"result\", rs.jsonResults); // response v3.07\n\t\t\t\t\tresponseBundle.putInt(\"subTask\", rs.subTaskFailed);\n\t\t\t\t\tresponseCode = rs.responseCode;\n\n\t\t\t\t\tif (async) {\n\t\t\t\t\t\treceiver.send(responseCode, responseBundle);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcommitResponse = new AylaCallResponse(responseCode, responseBundle);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.GET_DATAPOINT_BLOB_SAVE_TO_FILE:\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\n\t\t\t\t\t\tsetUrlConnection(\"GET\", url, NETWORK_TIMEOUT_CLOUD, false);\n\t\t\t\t\t\t// For debug, reserved for future.\n//\t\t\t\t\t\tAylaSystemUtils.saveToLog(\"%s, %s, %s, %s, %s, %s.\", \"D\", tag,\n//\t\t\t\t\t\t\t\t\"getDatapointBlobSaveToFile\"\n//\t\t\t\t\t\t\t\t, \"url:\" + urlConnection.getURL()\n//\t\t\t\t\t\t\t\t, \"method:\" + urlConnection.getRequestMethod()\n//\t\t\t\t\t\t\t\t, \"headers:\" + headers);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.GET_DEVICES:\n\t\t\t\tcase AylaRestService.GET_DEVICE_DETAIL:\n\t\t\t\tcase AylaRestService.GET_DEVICE_DETAIL_BY_DSN:\n\t\t\t\tcase AylaRestService.GET_NEW_DEVICE_CONNECTED:\n\t\t\t\tcase AylaRestService.GET_REGISTERED_NODES:\n\t\t\t\tcase AylaRestService.GET_DEVICE_NOTIFICATIONS:\n\t\t\t\tcase AylaRestService.GET_APP_NOTIFICATIONS:\n\t\t\t\tcase AylaRestService.GET_PROPERTIES:\n\t\t\t\tcase AylaRestService.GET_PROPERTY_DETAIL:\n\t\t\t\tcase AylaRestService.GET_DATAPOINTS:\n\t\t\t\tcase AylaRestService.GET_DATAPOINT_BY_ID:\n\n\t\t\t\tcase AylaRestService.GET_DATAPOINT_BLOB:\n\t\t\t\tcase AylaRestService.GET_PROPERTY_TRIGGERS:\n\t\t\t\tcase AylaRestService.GET_APPLICATION_TRIGGERS:\n\t\t\t\tcase AylaRestService.GET_REGISTRATION_CANDIDATE:\n\t\t\t\tcase AylaRestService.GET_GATEWAY_REGISTRATION_CANDIDATES:\n\n\t\t\t\tcase AylaRestService.GET_NEW_DEVICE_STATUS:\n\t\t\t\tcase AylaRestService.GET_NEW_DEVICE_SCAN_RESULTS_FOR_APS:\n\t\t\t\tcase AylaRestService.GET_MODULE_WIFI_STATUS:\n\t\t\t\tcase AylaRestService.GET_NEW_DEVICE_PROFILES:\n\t\t\t\tcase AylaRestService.GET_DEVICE_LANMODE_CONFIG:\n\t\t\t\tcase AylaRestService.GET_USER_INFO:\n\t\t\t\tcase AylaRestService.GET_SCHEDULES:\n\t\t\t\tcase AylaRestService.GET_SCHEDULE:\n\t\t\t\tcase AylaRestService.GET_SCHEDULE_ACTIONS:\n\t\t\t\tcase AylaRestService.GET_SCHEDULE_ACTIONS_BY_NAME:\n\t\t\t\tcase AylaRestService.GET_TIMEZONE:\n\t\t\t\tcase AylaRestService.GET_USER_METADATA:\n\t\t\t\tcase AylaRestService.GET_DEVICE_METADATA:\n\t\t\t\tcase AylaRestService.GET_USER_SHARES:\n\t\t\t\tcase AylaRestService.GET_USER_RECEIVED_SHARES:\n\t\t\t\tcase AylaRestService.GET_GROUP_ZIGBEE:\n\t\t\t\tcase AylaRestService.GET_GROUPS_ZIGBEE:\n\t\t\t\tcase AylaRestService.GET_BINDING_ZIGBEE:\n\t\t\t\tcase AylaRestService.GET_BINDINGS_ZIGBEE:\n\t\t\t\tcase AylaRestService.GET_SCENE_ZIGBEE:\n\t\t\t\tcase AylaRestService.GET_SCENES_ZIGBEE:\n\t\t\t\tcase AylaRestService.GET_NODES_CONNECTION_STATUS_ZIGBEE:\n\t\t\t\tcase AylaRestService.GET_USER_CONTACT:\n\t\t\t\tcase AylaRestService.GET_USER_CONTACT_LIST:\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tString combinedParams = \"\";\n\n\t\t\t\t\t\tif(params!= null && !params.isEmpty()) {\n\t\t\t\t\t\t\tcombinedParams += \"?\";\n\t\t\t\t\t\t\tfor(AylaParcelableNVPair p : params) {\n\t\t\t\t\t\t\t\tif ( p.getName() != null && p.getValue() != null ) {\n\t\t\t\t\t\t\t\t\tString paramString = p.getName() + \"=\" + URLEncoder.encode(p.getValue(), \"UTF-8\");\n\t\t\t\t\t\t\t\t\tif (combinedParams.length() > 1) {\n\t\t\t\t\t\t\t\t\t\tcombinedParams += \"&\" + paramString;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tcombinedParams += paramString;\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\turl+=combinedParams;\n\t\t\t\t\t\tsetUrlConnection(\"GET\", url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.GET_MODULE_REGISTRATION_TOKEN:\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tString combinedParams = \"\";\n\n\t\t\t\t\t\tif(params!= null && !params.isEmpty()) {\n\t\t\t\t\t\t\tcombinedParams += \"?\";\n\t\t\t\t\t\t\tfor(AylaParcelableNVPair p : params) {\n\t\t\t\t\t\t\t\tif ( p.getName() != null && p.getValue() != null ) {\n\t\t\t\t\t\t\t\t\tString paramString = p.getName() + \"=\" + URLEncoder.encode(p.getValue(), \"UTF-8\");\n\t\t\t\t\t\t\t\t\tif (combinedParams.length() > 1) {\n\t\t\t\t\t\t\t\t\t\tcombinedParams += \"&\" + paramString;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tcombinedParams += paramString;\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\turl+=combinedParams;\n\t\t\t\t\t\tsetUrlConnection(\"GET\", url, NETWORK_TIMEOUT_LAN);\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\t\t\t\t\t} else { // return errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.POST_USER_LOGIN:\n\t\t\t\tcase AylaRestService.POST_USER_LOGOUT:\n\t\t\t\tcase AylaRestService.POST_USER_SIGNUP:\n\t\t\t\tcase AylaRestService.POST_USER_RESEND_CONFIRMATION:\n\t\t\t\tcase AylaRestService.POST_USER_RESET_PASSWORD:\n\t\t\t\tcase AylaRestService.POST_USER_REFRESH_ACCESS_TOKEN:\n\t\t\t\tcase AylaRestService.POST_USER_OAUTH_LOGIN:\n\t\t\t\tcase AylaRestService.POST_USER_OAUTH_AUTHENTICATE_TO_SERVICE:\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\n\t\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else { // return user sign-up errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.CREATE_DATAPOINT_BLOB_POST_TO_FILE:\n\t\t\t\t{\n\t\t\t/* Interact with amazon S3\n\t\t\t * authorization mechanism and param already in url\n\t\t\t * do not need header.*/\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD, false);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return user sign-up errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.PUT_USER_CHANGE_PASSWORD:\n\t\t\t\tcase AylaRestService.PUT_RESET_PASSWORD_WITH_TOKEN:\n\t\t\t\tcase AylaRestService.PUT_USER_CHANGE_INFO:\n\t\t\t\tcase AylaRestService.PUT_USER_SIGNUP_CONFIRMATION:\n\t\t\t\tcase AylaRestService.UPDATE_PROPERTY_TRIGGER:\n\t\t\t\tcase AylaRestService.UPDATE_APPLICATION_TRIGGER:\n\t\t\t\tcase AylaRestService.UPDATE_DEVICE_NOTIFICATION:\n\t\t\t\tcase AylaRestService.UPDATE_APP_NOTIFICATION:\n\t\t\t\tcase AylaRestService.PUT_DEVICE_FACTORY_RESET:\n\t\t\t\tcase AylaRestService.BLOB_MARK_FETCHED:\n\t\t\t\tcase AylaRestService.BLOB_MARK_FINISHED:\n\t\t\t\tcase AylaRestService.IDENTIFY_NODE:\n\t\t\t\tcase AylaRestService.UPDATE_USER_EMAIL:\n case AylaRestService.PUT_DISCONNECT_AP_MODE:\n\t\t\t\t{\n\t\t\t\t\tif (!url.equals(AylaSystemUtils.ERR_URL)) {\n\t\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\t\twriteData();\n\t\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\t} else { // return user sign-up errors to handler\n\t\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.CREATE_DATAPOINT:\n\t\t\t\tcase AylaRestService.CREATE_BATCH_DATAPOINT:\n\t\t\t\tcase AylaRestService.CREATE_DATAPOINT_BLOB:\n\t\t\t\tcase AylaRestService.CREATE_PROPERTY_TRIGGER:\n\t\t\t\tcase AylaRestService.CREATE_APPLICATION_TRIGGER:\n\t\t\t\tcase AylaRestService.START_NEW_DEVICE_SCAN_FOR_APS:\n\t\t\t\tcase AylaRestService.REGISTER_DEVICE:\n\t\t\t\t\t//\tcase AylaRestService.SET_DEVICE_CONNECT_TO_NETWORK:\n\t\t\t\tcase AylaRestService.POST_LOCAL_REGISTRATION:\n\t\t\t\tcase AylaRestService.OPEN_REGISTRATION_WINDOW:\n\t\t\t\tcase AylaRestService.CREATE_TIMEZONE:\n\t\t\t\tcase AylaRestService.CREATE_DEVICE_NOTIFICATION:\n\t\t\t\tcase AylaRestService.CREATE_APP_NOTIFICATION:\n\t\t\t\t{\n\t\t\t\t\tsetUrlConnection(\"POST\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\twriteData();\n\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tcase AylaRestService.SET_DEVICE_CONNECT_TO_NETWORK:\n\t\t\t\t{\n\t\t\t\t\t// request = new HttpPost(url);\n\n\t\t\t\t\tString urlQueryParams = \"\";\n\t\t\t\t\tif (!params.isEmpty()) {\n\t\t\t\t\t\turlQueryParams += \"?\";\n\t\t\t\t\t\tfor (AylaParcelableNVPair p : params) {\n\t\t\t\t\t\t\tString paramString = p.getName() + \"=\" + URLEncoder.encode(p.getValue(), \"UTF-8\");\n\t\t\t\t\t\t\tif (urlQueryParams.length() > 1) {\n\t\t\t\t\t\t\t\turlQueryParams += \"&\" + paramString;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\turlQueryParams += paramString;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\turl = rs.url + urlQueryParams;\n\t\t\t\t\t//request = new HttpPost(url);\n\n\t\t\t\t\tsetUrlConnection(\"POST\", url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\twriteData();\n\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tcase AylaRestService.PUT_LOCAL_REGISTRATION:\n\t\t\t\tcase AylaRestService.PUT_NEW_DEVICE_TIME:\n\t\t\t\tcase AylaRestService.PUT_DATAPOINT: // used to mark blob fetched\n\t\t\t\tcase AylaRestService.UPDATE_TIMEZONE:\n\t\t\t\t{\n\t\t\t\t\tsetUrlConnection(\"PUT\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\twriteData();\n\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tcase AylaRestService.DELETE:\n\t\t\t\tcase AylaRestService.DESTROY_DEVICE_NOTIFICATION:\n\t\t\t\tcase AylaRestService.DESTROY_APP_NOTIFICATION:\n\t\t\t\tcase AylaRestService.DESTROY_PROPERTY_TRIGGER:\n\t\t\t\tcase AylaRestService.DESTROY_APPLICATION_TRIGGER:\n\t\t\t\tcase AylaRestService.UNREGISTER_DEVICE:\n\t\t\t\tcase AylaRestService.DELETE_DEVICE_WIFI_PROFILE:\n\t\t\t\tcase AylaRestService.DELETE_USER:\n\t\t\t\t{\n\t\t\t\t\tsetUrlConnection(\"DELETE\", rs.url, NETWORK_TIMEOUT_CLOUD);\n\t\t\t\t\tcommitResponse = commit(rs);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t//\t\tcase AylaRestService.SECURE_SETUP_SESSION_COMPLETED:\n\t\t\t\tcase AylaRestService.PROPERTY_CHANGE_NOTIFIER:\n\t\t\t\t{\n\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.REACHABILITY:\n\t\t\t\t{\n\t\t\t\t\tsendToReceiver(rs);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.REGISTER_NEW_DEVICE:\t\t\t// Compound objects, no service API, just return to handler\n\t\t\t\t{\n\t\t\t\t\t// wait for completion if it's a synchronous call\n\t\t\t\t\tif (async == false) {\n\t\t\t\t\t\twhile (rs.jsonResults == null) {\n\t\t\t\t\t\t\ttry { //NOP\n\t\t\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tresponseBundle = new Bundle();\n\t\t\t\t\tresponseBundle.putString(\"result\", rs.jsonResults); // response v3.07\n\t\t\t\t\tresponseBundle.putInt(\"subTask\", rs.subTaskFailed);\n\t\t\t\t\tresponseCode = rs.responseCode;\n\t\t\t\t\tif (async) {\n\t\t\t\t\t\treceiver.send(responseCode, responseBundle);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcommitResponse = new AylaCallResponse(responseCode, responseBundle);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.CONNECT_TO_NEW_DEVICE: // Compound objects no service API, just return to handler\n\t\t\t\tcase AylaRestService.RETURN_HOST_WIFI_STATE: // Using host local calls, no service API, just return to handler\n\t\t\t\tcase AylaRestService.RETURN_HOST_SCAN:\n\t\t\t\tcase AylaRestService.RETURN_HOST_NETWORK_CONNECTION:\n\t\t\t\tcase AylaRestService.SET_HOST_NETWORK_CONNECTION:\n\t\t\t\tcase AylaRestService.DELETE_HOST_NETWORK_CONNECTION:\n\t\t\t\tcase AylaRestService.DELETE_HOST_NETWORK_CONNECTIONS:\n\t\t\t\tcase AylaRestService.RETURN_HOST_DNS_CHECK:\n\t\t\t\tcase AylaRestService.GROUP_ACK_ZIGBEE:\n\t\t\t\tcase AylaRestService.BINDING_ACK_ZIGBEE:\n\t\t\t\tcase AylaRestService.SCENE_ACK_ZIGBEE:\n\t\t\t\tcase AylaRestService.GET_NODES_CONNECTION_STATUS:\n\t\t\t\t{\n\t\t\t\t\t// wait for completion if it's a synchronous call\n\t\t\t\t\tif (async == false) {\n\t\t\t\t\t\twhile (rs.jsonResults == null) {\n\t\t\t\t\t\t\ttry { //NOP\n\t\t\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tresponseBundle = new Bundle();\n\t\t\t\t\tresponseBundle.putString(\"result\", rs.jsonResults); // response v3.07\n\t\t\t\t\tresponseBundle.putInt(\"subTask\", rs.subTaskFailed);\n\t\t\t\t\tresponseCode = rs.responseCode;\n\t\t\t\t\tif (async) {\n\n\t\t\t\t\t\treceiver.send(responseCode, responseBundle);\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tcommitResponse = new AylaCallResponse(responseCode, responseBundle);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AylaRestService.CONNECT_NEW_DEVICE_TO_SERVICE:\n\t\t\t\tcase AylaRestService.CONFIRM_NEW_DEVICE_TO_SERVICE_CONNECTION: // Compound object\n\t\t\t\tcase AylaRestService.GET_NEW_DEVICE_WIFI_STATUS: // compound object\n\t\t\t\tcase AylaRestService.GET_NODES_CONNECTION_STATUS_LANMODE:\n\t\t\t\t{\n\t\t\t\t\tresponseBundle = new Bundle();\n\t\t\t\t\tresponseBundle.putString(\"result\", rs.jsonResults); // response v3.07\n\t\t\t\t\tresponseBundle.putInt(\"subTask\", rs.subTaskFailed);\n\t\t\t\t\tresponseCode = rs.responseCode;\n\n\t\t\t\t\treceiver.send(responseCode, responseBundle);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\tAylaSystemUtils.saveToLog(\"%s, %s, %s, %s.\", \"E\", tag, \"execute\", \"method \" + method + \" unknown\");\n\t\t\t\t\tbreak;\n\t}\n\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tcloseResources();\n\t\t\tresponseBundle = new Bundle();\n\t\t\tresponseBundle.putString(\"result\", rs.jsonResults); // response v3.07\n\t\t\tresponseBundle.putInt(\"subTask\", rs.subTaskFailed);\n\t\t\tresponseCode = rs.responseCode;\n\t\t\tif (async) {\n\t\t\t\treceiver.send(responseCode, responseBundle);\n\t\t\t} else {\n\t\t\t\tcommitResponse = new AylaCallResponse(responseCode, responseBundle);\n\t\t\t}\n\t\t} finally{\n\t\t\tcloseResources();\n\t\t}\n\t\treturn commitResponse;\n\t}", "public String execute(HttpServletRequest request, \r\n HttpServletResponse response) throws ServletException, IOException;", "RESPONSE_TYPE doSync(final RequestImpl _requestImpl) throws Exception;", "@Override\n protected String doInBackground(String... params){\n\n try {\n //1. Create okHttp Client object\n OkHttpClient client = new OkHttpClient();\n\n Endpoint endpoint = new Endpoint();\n\n //2. Define request being sent to the server\n\n Request request = new Request.Builder()\n .url(endpoint.getUrl())\n .header(\"Connection\", \"close\")\n .build();\n\n //3. Transport the request and wait for response to process next\n Response response = client.newCall(request).execute();\n String result = response.body().string();\n setCode(response.code());\n return result;\n }\n catch(Exception e) {\n return null;\n }\n }", "protected abstract void execute(INPUT input);", "public void process()\n {\n ClientRequest clientRequest = threadPool.remove();\n\n if (clientRequest == null)\n {\n return;\n }\n\n\n // Do the work\n // Create new Client\n ServiceLogger.LOGGER.info(\"Building client...\");\n Client client = ClientBuilder.newClient();\n client.register(JacksonFeature.class);\n\n // Get uri\n ServiceLogger.LOGGER.info(\"Getting URI...\");\n String URI = clientRequest.getURI();\n\n ServiceLogger.LOGGER.info(\"Getting endpoint...\");\n String endpointPath = clientRequest.getEndpoint();\n\n // Create WebTarget\n ServiceLogger.LOGGER.info(\"Building WebTarget...\");\n WebTarget webTarget = client.target(URI).path(endpointPath);\n\n // Send the request and save it to a Response\n ServiceLogger.LOGGER.info(\"Sending request...\");\n Response response = null;\n if (clientRequest.getHttpMethodType() == Constants.getRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n String pathParam = clientRequest.getPathParam();\n\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a GET request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .get();\n }\n else if (clientRequest.getHttpMethodType() == Constants.postRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n ServiceLogger.LOGGER.info(\"Got a POST request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .post(Entity.entity(clientRequest.getRequest(), MediaType.APPLICATION_JSON));\n }\n else if (clientRequest.getHttpMethodType() == Constants.deleteRequest)\n {\n String pathParam = clientRequest.getPathParam();\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a DELETE request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .delete();\n }\n else\n {\n ServiceLogger.LOGGER.warning(ANSI_YELLOW + \"Request was not sent successfully\");\n }\n ServiceLogger.LOGGER.info(ANSI_GREEN + \"Sent!\" + ANSI_RESET);\n\n // Check status code of request\n String jsonText = \"\";\n int httpstatus = response.getStatus();\n\n jsonText = response.readEntity(String.class);\n\n // Add response to database\n String email = clientRequest.getEmail();\n String sessionID = clientRequest.getSessionID();\n ResponseDatabase.insertResponseIntoDB(clientRequest.getTransactionID(), jsonText, email, sessionID, httpstatus);\n\n }", "private String sendRequest(String requestUrl) throws Exception {\n\t\t \n\t\tURL url = new URL(requestUrl);\n\t\tHttpURLConnection connection = (HttpURLConnection) url.openConnection();\n\n\t\tconnection.setRequestMethod(\"GET\");\n\t\tconnection.setRequestProperty(\"User-Agent\", \"Mozilla/5.0\");\n \n\t\tBufferedReader in = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(connection.getInputStream(), \"UTF-8\"));\n\t\t\n\t\tString responseCode = Integer.toString(connection.getResponseCode());\n\t\tif(responseCode.startsWith(\"2\")){\n\t\t\tString inputLine;\n\t\t\tStringBuffer response = new StringBuffer();\n \n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tresponse.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\t\t\tconnection.disconnect();\n\t\t\treturn response.toString();\n \t} else {\n \t\tSystem.out.println(\"Unable to connect to \"+requestUrl+\n \t\t\". Please check whether the instance is up and also the security group settings\"); \n\t\t\tconnection.disconnect();\n \t\treturn null;\n\t \t} \n\t}", "@Override\n\tprotected Object execute(String apiRequest) throws SiDCException, Exception {\n\n\t\tScheduleCommandRequest request = (ScheduleCommandRequest) APIParser.getInstance().parse(apiRequest,\n\t\t\t\tScheduleCommandRequest.class);\n\n\t\treturn new ScheduleCommandProcess(request).execute();\n\t}", "public Response execute(final NetworkHelper networkHelper)\n\t\t\tthrows IOException {\n\t\tnetworkHelper.connListener.onRequest(this);\n\t\tHttpURLConnection urlConnection;\n\t\tif (proxy != null) urlConnection = networkHelper.openConnection(url,\n\t\t\t\tproxy);\n\t\telse\n\t\t\turlConnection = networkHelper.openConnection(url);\n\t\turlConnection.setRequestMethod(method.name());\n\t\turlConnection.setConnectTimeout(connectTimeout > -1 ? connectTimeout\n\t\t\t\t: networkHelper.defaultConnectTimeout);\n\t\turlConnection.setReadTimeout(readTimeout > -1 ? readTimeout\n\t\t\t\t: networkHelper.defaultReadTimout);\n\n\t\tif (!cookies.isEmpty()) CookieManager\n\t\t\t\t.setCookies(urlConnection, cookies);\n\t\tif (useCookies) networkHelper.cookieManager.setupCookies(urlConnection);\n\n\t\turlConnection.setInstanceFollowRedirects(followRedirects);\n\n\t\tMap<String, String> headers = new HashMap<String, String>(\n\t\t\t\tnetworkHelper.defaultHeaderMap);\n\t\theaders.putAll(headerMap);\n\t\tsetupHeaders(urlConnection, headers);\n\n\t\tswitch (method) {\n\t\tcase POST:\n\t\tcase PUT:\n\t\t\tif (urlConnection.getRequestProperty(\"Content-Type\") == null) {\n\t\t\t\turlConnection.setRequestProperty(\"Content-Type\",\n\t\t\t\t\t\t\"application/x-www-form-urlencoded\");\n\t\t\t}\n\t\t\tif (payload == null) break;\n\t\t\turlConnection.setDoOutput(true);\n\t\t\turlConnection.setFixedLengthStreamingMode(payload.length);\n\t\t\tfinal OutputStream output = urlConnection.getOutputStream();\n\t\t\toutput.write(payload);\n\t\t\toutput.close();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t\tInputStream inputStream = null;\n\t\ttry {\n\t\t\tfinal URL url = urlConnection.getURL();\n\t\t\tnetworkHelper.log.info(\"Request {}:{}://{}{}\", method,\n\t\t\t\t\turl.getProtocol(), url.getAuthority(), url.getPath());\n\t\t\turlConnection.connect();\n\t\t\tinputStream = NetworkHelper.getInputStream(urlConnection);\n\t\t\tnetworkHelper.log.info(\"Response {}\",\n\t\t\t\t\turlConnection.getResponseMessage());\n\t\t} catch (final IOException e) {\n\t\t\tfinal int statusCode = urlConnection.getResponseCode();\n\t\t\tif (!ignoreErrorChecks && statusCode >= 400) {\n\t\t\t\tnetworkHelper.log.info(\"Response {}\",\n\t\t\t\t\t\turlConnection.getResponseMessage());\n\t\t\t\tinputStream = NetworkHelper.getErrorStream(urlConnection);\n\t\t\t} else\n\t\t\t\tthrow e;\n\t\t} finally {\n\t\t\tif (useCookies) networkHelper.cookieManager\n\t\t\t\t\t.putCookieList(CookieManager.getCookies(urlConnection));\n\t\t\tnetworkHelper.connListener.onFinish(url, urlConnection);\n\t\t}\n\n\t\treturn getResponse(urlConnection, inputStream);\n\n\t}", "Request _request(String operation);", "private <X, Y extends AmazonWebServiceRequest> Response<X> doInvoke(Request<Y> request, HttpResponseHandler<AmazonWebServiceResponse<X>> responseHandler,\n ExecutionContext executionContext) {\n request.setEndpoint(endpoint);\n request.setTimeOffset(timeOffset);\n\n HttpResponseHandler<AmazonServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(new JsonErrorResponseMetadata());\n\n return client.execute(request, responseHandler, errorResponseHandler, executionContext);\n }", "public void execute();", "public void execute();", "public void execute();", "public void execute();", "@Override\n\tprotected HttpResponse doHttpRequest() throws ClientProtocolException, IOException {\n\t\tHttpRequestGenerator requestor = new HttpRequestGenerator(username, password);\n\t\treturn requestor.makeKeyFetchRequest(keyServerUrl, null);\n\t}", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();" ]
[ "0.72849774", "0.7009365", "0.6921353", "0.66722125", "0.6566413", "0.65541214", "0.6331739", "0.6298758", "0.6295652", "0.6204661", "0.61688524", "0.61267596", "0.6084473", "0.60716516", "0.6023168", "0.6022222", "0.59865826", "0.5961529", "0.59587085", "0.5952305", "0.59451175", "0.594477", "0.5897896", "0.5883243", "0.5878651", "0.58274674", "0.5817143", "0.5815724", "0.58135575", "0.578852", "0.57687694", "0.5758903", "0.5752372", "0.5745958", "0.5745423", "0.5741152", "0.5731657", "0.5719031", "0.57181716", "0.5714647", "0.5701749", "0.5676736", "0.56709707", "0.5669831", "0.56584656", "0.5650895", "0.56408775", "0.56395507", "0.56218624", "0.5611373", "0.5604233", "0.55792224", "0.5572222", "0.5549889", "0.55461353", "0.55440015", "0.5543927", "0.5535938", "0.55356175", "0.552863", "0.5523993", "0.55234736", "0.55044514", "0.55023736", "0.5500318", "0.5498364", "0.5497652", "0.5477068", "0.5471272", "0.5467164", "0.54567283", "0.5455031", "0.545461", "0.54537326", "0.54450846", "0.5428217", "0.541773", "0.53945905", "0.53807205", "0.53755975", "0.5364331", "0.53642017", "0.5362887", "0.53586835", "0.53522354", "0.5351436", "0.5349212", "0.5346098", "0.53423005", "0.53422916", "0.53422916", "0.53422916", "0.53422916", "0.5336839", "0.53137255", "0.53137255", "0.53137255", "0.53137255", "0.53137255", "0.53137255", "0.53137255" ]
0.0
-1
Class implmentation comments go here ... package interface Constructor documentation comments go here ...
POMDPAssetDimensionModel( AssetTypeDimensionModel dim_model ) throws BelievabilityException { if ( dim_model == null ) throw new BelievabilityException ( "POMDPAssetDimensionModel.POMDPAssetDimensionModel()", "Asset model is NULL" ); this._asset_dim_model = dim_model; if ( _logger.isDetailEnabled() ) _logger.detail( "\tCreating POMDP model for dimension: " + _asset_dim_model.getStateDimensionName( ) ); createInitialBeliefState(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public Implementor(){}", "public SgaexpedbultoImpl()\n {\n }", "public OOP_207(){\n\n }", "public ItsNatImpl()\r\n {\r\n }", "public PSRelation()\n {\n }", "public CyanSus() {\n\n }", "private Solution() {\n /**.\n * { constructor }\n */\n }", "@Override\n public void init() {}", "public Pitonyak_09_02() {\r\n }", "private void __sep__Constructors__() {}", "public StudentChoresAMImpl() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void init() {}", "private Rekenhulp()\n\t{\n\t}", "public CSSTidier() {\n\t}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "@Override\n public void init() {\n }", "@Override\n void init() {\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override public void init()\n\t\t{\n\t\t}", "private NfkjBasic()\n\t\t{\n\t\t\t\n\t\t}", "private NaturePackage() {}", "protected abstract void construct();", "public void init() {\r\n\t\t// to override\r\n\t}", "@Override\n public void init() {\n }", "@Override\n public void init() {\n\n }", "public Package() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "protected SourceDocumentInformation() {\n }", "@Override\n protected void init() {\n }", "@Implementation\n protected void __constructor__(IDisplayManager dm) {\n }", "public Clade() {}", "public Mannschaft() {\n }", "@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}", "public Odontologo() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private SolutionsPackage() {}", "private TMCourse() {\n\t}", "public ObjectClassDefinitionImpl() {\n\t\t// empty\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}", "public Soil()\n\t{\n\n\t}", "private Instantiation(){}", "private MApi() {}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "public Chick() {\n\t}", "public AbstractClass() { //Sobrecarga del constructor AbstractClass ya que se puede inicializar de 2 maneras\n }", "public CMN() {\n\t}", "public Ov_Chipkaart() {\n\t\t\n\t}", "public Doc() {\n\n }", "@Override // opcional\n public void init(){\n\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "private IndexBitmapObject() {\n\t}", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "public Cable() {\r\n }", "public Method() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n public void initialize()\r\n {\n }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "protected PrintBill() \r\n\t{/* nothing needed, but this prevents a public no-arg constructor from being created automatically */}", "public _355() {\n\n }", "public XCanopusFactoryImpl()\r\n {\r\n super();\r\n }", "public API() {}", "public Spec__1() {\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private SourcecodePackage() {}", "public RngObject() {\n\t\t\n\t}", "public Demo() {\n\t\t\n\t}", "public Method(String name, String desc) {\n/* 82 */ this.name = name;\n/* 83 */ this.desc = desc;\n/* */ }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "public Mitarbeit() {\r\n }", "public Orbiter() {\n }", "public void init() { }", "public void init() { }", "public SlanjePoruke() {\n }", "@Override\n\tpublic void init() {\n\t}", "public Libro() {\r\n }", "private Driver(){\n }", "@Override\n public void initialize() {\n }", "public Aanbieder() {\r\n\t\t}", "public Anschrift() {\r\n }", "public Pasien() {\r\n }" ]
[ "0.76188344", "0.74455243", "0.71884865", "0.7164969", "0.7114507", "0.70670193", "0.70219326", "0.6980237", "0.6884006", "0.6866421", "0.6846725", "0.6846212", "0.68450195", "0.6826579", "0.68149173", "0.68093354", "0.6788064", "0.6784218", "0.6775639", "0.6773358", "0.67701167", "0.6769294", "0.67585105", "0.67500544", "0.67473507", "0.6714433", "0.6712282", "0.6702052", "0.669639", "0.6681297", "0.6672273", "0.6669623", "0.6662115", "0.665442", "0.6646877", "0.66389227", "0.66389227", "0.66389227", "0.66363317", "0.66345954", "0.66345954", "0.66333973", "0.66293657", "0.66258264", "0.6618579", "0.6618579", "0.6618579", "0.6618579", "0.6618579", "0.6613922", "0.6611712", "0.661072", "0.661068", "0.66062284", "0.6602352", "0.6588914", "0.6587321", "0.65864694", "0.65811324", "0.6579593", "0.65770006", "0.65605986", "0.6551598", "0.65402573", "0.65342844", "0.65342844", "0.65342844", "0.65342844", "0.65342844", "0.65342844", "0.6531627", "0.65310764", "0.65310764", "0.65310764", "0.6530649", "0.65250623", "0.65160227", "0.6514705", "0.65122", "0.651089", "0.65025693", "0.65025693", "0.6501608", "0.6500562", "0.6496604", "0.6495535", "0.64924747", "0.64924747", "0.64924747", "0.64908105", "0.6485003", "0.6483958", "0.6483958", "0.6483412", "0.64825016", "0.6481772", "0.64786273", "0.6474601", "0.64733523", "0.64705735", "0.64704716" ]
0.0
-1
constructor POMDPAssetDimensionModel Simple accessors
BeliefStateDimension getInitialBeliefState() { return _initial_belief; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Dimension_Dimension createDimension_Dimension();", "public ScaleRuleMetricDimension() {\n }", "Dimension createDimension();", "DimensionInner innerModel();", "public CwmDimensionedObject createCwmDimensionedObject();", "POMDPAssetDimensionModel( AssetTypeDimensionModel dim_model )\n throws BelievabilityException\n {\n if ( dim_model == null )\n throw new BelievabilityException\n ( \"POMDPAssetDimensionModel.POMDPAssetDimensionModel()\",\n \"Asset model is NULL\" );\n \n this._asset_dim_model = dim_model;\n\n if ( _logger.isDetailEnabled() )\n _logger.detail( \"\\tCreating POMDP model for dimension: \" \n + _asset_dim_model.getStateDimensionName( ) );\n\n createInitialBeliefState();\n\n }", "Dimension_longueur createDimension_longueur();", "Dimension_hauteur createDimension_hauteur();", "public int getDimension() { return this.nbAttributes;}", "public DimensionProperties() {\n }", "public abstract int getDimension();", "Dimension getDimension();", "public LinesDimension1() {\n \n }", "Dimension dimension();", "public interface Dimension {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the location property: The geo-location where the resource lives.\n *\n * @return the location value.\n */\n String location();\n\n /**\n * Gets the tags property: Resource tags.\n *\n * @return the tags value.\n */\n Map<String, String> tags();\n\n /**\n * Gets the sku property: SKU of the resource.\n *\n * @return the sku value.\n */\n String sku();\n\n /**\n * Gets the etag property: ETag of the resource.\n *\n * @return the etag value.\n */\n String etag();\n\n /**\n * Gets the description property: Dimension description.\n *\n * @return the description value.\n */\n String description();\n\n /**\n * Gets the filterEnabled property: Filter enabled.\n *\n * @return the filterEnabled value.\n */\n Boolean filterEnabled();\n\n /**\n * Gets the groupingEnabled property: Grouping enabled.\n *\n * @return the groupingEnabled value.\n */\n Boolean groupingEnabled();\n\n /**\n * Gets the data property: Dimension data.\n *\n * @return the data value.\n */\n List<String> data();\n\n /**\n * Gets the total property: Total number of data for the dimension.\n *\n * @return the total value.\n */\n Integer total();\n\n /**\n * Gets the category property: Dimension category.\n *\n * @return the category value.\n */\n String category();\n\n /**\n * Gets the usageStart property: Usage start.\n *\n * @return the usageStart value.\n */\n OffsetDateTime usageStart();\n\n /**\n * Gets the usageEnd property: Usage end.\n *\n * @return the usageEnd value.\n */\n OffsetDateTime usageEnd();\n\n /**\n * Gets the nextLink property: The link (url) to the next page of results.\n *\n * @return the nextLink value.\n */\n String nextLink();\n\n /**\n * Gets the inner com.azure.resourcemanager.costmanagement.fluent.models.DimensionInner object.\n *\n * @return the inner object.\n */\n DimensionInner innerModel();\n}", "public interface VDimension extends VDataReference {\r\n\r\n /**\r\n * Whether the dimension is a summable dimension which\r\n * could be used for dragging into the visualization\r\n * or not.\r\n *\r\n * @return Whether the dimension is a summable dimension\r\n * or not.\r\n */\r\n public Boolean isSummable();\r\n\r\n /**\r\n * Sets whether the dimension is a summable dimension\r\n * which could be used for dragging into the visualization\r\n * or not.\r\n *\r\n * @param summable Whether the dimension is a summable\r\n * dimension or not.\r\n */\r\n public void setSummable(Boolean summable);\r\n\r\n /**\r\n * Flag when the dimension is dropped into the graph.\r\n *\r\n * @return Whether the dimension is dropped or not.\r\n */\r\n public boolean isDropped();\r\n\r\n /**\r\n * Sets whether the dimension is dropped or not in the graph.\r\n *\r\n * @param dropped Whether the dimension is dropped or not in the graph.\r\n */\r\n public void setDropped(boolean dropped);\r\n\r\n /**\r\n * Returns whether the dimension contains data for parentable\r\n * usage or not.\r\n *\r\n * @return Whether the dimension contains parentable data or\r\n * not.\r\n */\r\n public Boolean isParentable();\r\n\r\n\r\n /**\r\n * Sets whether the dimension contains data for parentable\r\n * usage or not.\r\n *\r\n * @param parentable Whether the dimension contains parentable\r\n * data or not.\r\n */\r\n public void setParentable(Boolean parentable);\r\n\r\n /**\r\n * Returns whether the dimension is visible or unvisible.\r\n *\r\n * @return Whether the dimension is visible or unvisible.\r\n */\r\n public Boolean isVisible();\r\n\r\n /**\r\n * Sets whether the dimension is visible or unvisible.\r\n *\r\n * @param visible Whether the dimension is visible or unvisible.\r\n */\r\n public void setVisible(Boolean visible);\r\n\r\n /**\r\n * Returns the cubes that supports this dimension.\r\n *\r\n * @return The cubes that supports this dimension.\r\n */\r\n public Set<VCube> getSupportedCubes();\r\n\r\n /**\r\n * Sets the cubes that supports this dimension.\r\n *\r\n * @param supportedCubes The cubes that supports this\r\n * dimension.\r\n */\r\n public void setSupportedCubes(Set<VCube> supportedCubes);\r\n\r\n /**\r\n * Returns the identifiers of the selected values.\r\n *\r\n * @return The identifiers of the selected values.\r\n */\r\n public Set<Filterable> getSelections();\r\n\r\n /**\r\n * Sets the identifiers of the selected values.\r\n *\r\n * @param selections The identifiers of the selected\r\n * values.\r\n */\r\n public void setSelections(Set<Filterable> selections);\r\n\r\n /**\r\n * Returns the size of the selected values.\r\n *\r\n * @return The size of the selected values.\r\n */\r\n public int getSelectionSize();\r\n\r\n /**\r\n * Returns whether the selection of the dimension was changed\r\n * or not.\r\n *\r\n * @return Whether the selection of the dimension was changed\r\n * or not.\r\n */\r\n public boolean isSelectionChanged();\r\n\r\n /**\r\n * Sets whether the selection of the dimension was changed\r\n * or not.\r\n *\r\n * @param selectionChanged Whether the selection of the dimension\r\n * was changed or not.\r\n */\r\n public void setSelectionChanged(boolean selectionChanged);\r\n\r\n /**\r\n * Returns the <code>VDimension</code> that is close to the\r\n * cube.\r\n *\r\n * @return The blueprint that is close to the cube.\r\n */\r\n public VDimension getBlueprint();\r\n}", "@Override\r\n\tpublic void setDimension() {\n\r\n\t}", "@Override\r\n\tpublic void setDimension() {\n\r\n\t}", "public int getDimension() {\n return 0;\n }", "private void crearDimensionContable()\r\n/* 201: */ {\r\n/* 202:249 */ this.dimensionContable = new DimensionContable();\r\n/* 203:250 */ this.dimensionContable.setIdOrganizacion(AppUtil.getOrganizacion().getId());\r\n/* 204:251 */ this.dimensionContable.setIdSucursal(AppUtil.getSucursal().getId());\r\n/* 205:252 */ this.dimensionContable.setNumero(getDimension());\r\n/* 206:253 */ verificaDimension();\r\n/* 207: */ }", "public default int getDimension() {\n\t\treturn 1;\n\t}", "public Point(int dim) {\n this.attributes = new float[dim];\n this.nbAttributes = dim;\n }", "public interface Model3D extends Model {\n public double getZ_Size();\n}", "public int getDimension() {\n \treturn dim;\n }", "MetricModel createMetricModel();", "public VDimension getBlueprint();", "public String getDimension()\r\n/* 277: */ {\r\n/* 278:341 */ return this.dimension;\r\n/* 279: */ }", "public interface IDimension {\n\n /**\n * Gets the type of this dimension (Height, Width, etc.).\n * @return the type of this dimension.\n */\n String getType();\n\n /**\n * Gets the value of this dimension.\n * @return the value of this dimension.\n */\n float getValue();\n}", "@Override\n\tpublic void setDimensions() {\n\t\t\n\t}", "public byte getDimension() {\n return this.dimension;\n }", "public byte getDimension() {\n return this.dimension;\n }", "public J3DAttribute () {}", "BigInteger getDimension();", "private interface Dimension {\n\n\t/**\n\t * @return The placeholder width in px.\n\t */\n\tint getWidth();\n\n\t/**\n\t * @return The placeholder height in px.\n\t */\n\tint getHeight();\n\n }", "public VectorGridSlice() {\n\n }", "public Portfolio(){}", "Dimension getDimensions();", "protected abstract NativeSQLStatement createNativeDimensionSQL();", "public int getDimension() {\n\t\treturn dimension;\n\t}", "void setDimension(Dimension dim);", "@Override\n\tpublic int getDimension() {\n\t\treturn 1;\n\t}", "@Override\n\tpublic int getDimension() {\n\t\treturn 1;\n\t}", "ContextDimension createContextDimension();", "public void setDimensionFromCubicMesh(){\r\n\t\t\r\n\t\t\r\n\t}", "Dimension[] getDimension()\n\t\t{\n\t\t\treturn d;\n\t\t}", "public interface CwmDimensionedObjectClass extends javax.jmi.reflect.RefClass {\n /**\n * The default factory operation used to create an instance object.\n * \n * @return The created instance object.\n */\n public CwmDimensionedObject createCwmDimensionedObject();\n\n /**\n * Creates an instance object having attributes initialized by the passed values.\n * \n * @param name\n * An identifier for the ModelElement within its containing Namespace.\n * @param visibility\n * Specifies extent of the visibility of the ModelElement within its owning Namespace.\n * @param ownerScope\n * Specifies whether the Feature appears in every instance of the Classifier or whether it appears only once\n * for the entire Classifier.\n * @param changeability\n * Specifies whether the value may be modified after the object is created.\n * @param multiplicity\n * The possible number of data values for the feature that may be held by an instance. The cardinality of the\n * set of values is an implicit part of the feature. In the common case in which the multiplicity is 1..1,\n * then the feature is a scalar (i.e., it holds exactly one value).\n * @param ordering\n * Specifies whether the set of instances is ordered. The ordering must be determined and maintained by\n * Operations that add values to the feature. This property is only relevant if the multiplicity is greater\n * than one.\n * @param targetScope\n * Specifies whether the targets are ordinary Instances or are Classifiers.\n * @param initialValue\n * An Expression specifying the value of the attribute upon initialization. It is meant to be evaluated at\n * the time the object is initialized. (Note that an explicit constructor may supersede an initial value.)\n * @return The created instance object.\n */\n public CwmDimensionedObject createCwmDimensionedObject( java.lang.String name,\n org.pentaho.pms.cwm.pentaho.meta.core.VisibilityKind visibility,\n org.pentaho.pms.cwm.pentaho.meta.core.ScopeKind ownerScope,\n org.pentaho.pms.cwm.pentaho.meta.core.ChangeableKind changeability,\n org.pentaho.pms.cwm.pentaho.meta.core.CwmMultiplicity multiplicity,\n org.pentaho.pms.cwm.pentaho.meta.core.OrderingKind ordering,\n org.pentaho.pms.cwm.pentaho.meta.core.ScopeKind targetScope,\n org.pentaho.pms.cwm.pentaho.meta.core.CwmExpression initialValue );\n}", "public Data(int _dimension) {\r\n this.setDimension(_dimension);\r\n }", "VisualizationAttribute createVisualizationAttribute();", "@Override\n\tpublic D3int getDim() {\n\t\treturn myDim;\n\t}", "ArtefactModel getArtefactModel();", "public DimensionContable getDimensionContable()\r\n/* 202: */ {\r\n/* 203:244 */ return this.dimensionContable;\r\n/* 204: */ }", "public int domainDimension() {\n return dvModel.totalParamSize();\r\n }", "private void defineColumn_Dimension() {\r\n\r\n\t\tfinal ColumnDefinition colDef = TableColumnFactory.PHOTO_FILE_DIMENSION.createColumn(_columnManager, _pc);\r\n\r\n\t\tcolDef.setIsDefaultColumn();\r\n\t\tcolDef.setLabelProvider(new CellLabelProvider() {\r\n\t\t\t@Override\r\n\t\t\tpublic void update(final ViewerCell cell) {\r\n\r\n\t\t\t\tfinal Photo photo = (Photo) cell.getElement();\r\n\r\n\t\t\t\tcell.setText(photo.getDimensionText());\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Model\r\n\tpublic Vector() {\r\n\t\tthis(50,50);\r\n\t}", "public CwmDimensionedObject createCwmDimensionedObject( java.lang.String name,\n org.pentaho.pms.cwm.pentaho.meta.core.VisibilityKind visibility,\n org.pentaho.pms.cwm.pentaho.meta.core.ScopeKind ownerScope,\n org.pentaho.pms.cwm.pentaho.meta.core.ChangeableKind changeability,\n org.pentaho.pms.cwm.pentaho.meta.core.CwmMultiplicity multiplicity,\n org.pentaho.pms.cwm.pentaho.meta.core.OrderingKind ordering,\n org.pentaho.pms.cwm.pentaho.meta.core.ScopeKind targetScope,\n org.pentaho.pms.cwm.pentaho.meta.core.CwmExpression initialValue );", "public final int dimension() { return _N; }", "public void setDimension(String dimension)\r\n/* 282: */ {\r\n/* 283:351 */ this.dimension = dimension;\r\n/* 284: */ }", "public int geomDim();", "public AttributeDiscretization() {\n\n }", "public Portfolio(){\n }", "private Asset() {\r\n super(IAsset.TYPE_ID);\r\n }", "public WeightingModel(){}", "public WorldModel(){\t\n\t}", "public OpticalElements() {\n }", "void setCustomDimension1(String customDimension1);", "public Portfolio() {\n}", "public Attribute(String name, int metricFactor, int priority){\n this.name = name;\n this.maxOccurance = 0;\n this.metric = 0.0;\n subGrps = new Vector<SubGroup>();\n this.maxSubGroups = new Vector<SubGroup>();\n this.metricFactor = metricFactor;\n this.priority = priority;\n this.isDominating = true;\n}", "public final int getDimension() {\r\n\t\treturn this.dimension;\r\n\t}", "@Override\n public Dimension getPreferredSize() {\n if (this.model == null)\n return super.getPreferredSize();\n else\n return new Dimension(model.getLength() * stepW + paddingLeft,\n model.getRange().length() * stepH + paddingTop);\n }", "private void setDimensions() {\n IPhysicalVolume physVol_parent = getModule().getGeometry().getPhysicalVolume();\n ILogicalVolume logVol_parent = physVol_parent.getLogicalVolume();\n ISolid solid_parent = logVol_parent.getSolid();\n Box box_parent;\n if (Box.class.isInstance(solid_parent)) {\n box_parent = (Box) solid_parent;\n } else {\n throw new RuntimeException(\"Couldn't cast the module volume to a box!?\");\n }\n _length = box_parent.getXHalfLength() * 2.0;\n _width = box_parent.getYHalfLength() * 2.0;\n\n }", "PriceSummaryModel createInstanceOfPriceSummaryModel();", "public int getDimension() {\n\treturn id2label.size();\n }", "public KmlGeometryFeature(){\r\n }", "public List<Integer> getDimensionList() \n {\n return this.dimList;\n }", "public XDimension Xdimension() throws java.io.IOException {\n return new XDimension(u16(),u16());\n }", "protected DirectProductNodeModel() {\n\t\tsuper(2, 1);\n\t}", "public DimensionContable getDimensionContable()\r\n/* 196: */ {\r\n/* 197:245 */ return this.dimensionContable;\r\n/* 198: */ }", "public Model(JSONObject selfAsJson) {\n try {\n int width = selfAsJson.getInt(\"width\") / PlayGameActivity.PIXELS_PER_PHYSICS_GRID;\n int height = selfAsJson.getInt(\"height\") / PlayGameActivity.PIXELS_PER_PHYSICS_GRID;\n this.physModel = new Physics2D(selfAsJson.getJSONObject(\"physics\"), width, height);\n this.graphModel = new Graphics2D(selfAsJson.getJSONObject(\"graphics\"));\n this.gameStateModel = new GameState(selfAsJson.getJSONObject(\"gamestate\"));\n }catch(JSONException e) {\n e.printStackTrace();\n }\n\n }", "public MeshPart() {\n\t}", "public PedometerEntity() {\n }", "public VersionModel() {\n }", "public DimensionType build() {\n return new DimensionType(fixedTime, hasSkylight, hasCeiling, ultraWarm, natural, coordinateScale, bedWorks,\n respawnAnchorWorks, minY, height, logicalHeight, infiniburn, effectsLocation, ambientLight,\n new DimensionType.MonsterSettings(piglinSafe, hasRaids, UniformInt.of(0, 7), 0));\n }", "public MultiShapeLayer() {}", "public ServicioDimensionContable getServicioDimensionContable()\r\n/* 255: */ {\r\n/* 256:318 */ return this.servicioDimensionContable;\r\n/* 257: */ }", "public FileDicomBaseInner() {}", "public LazyDataModel<DimensionContable> getListaDimensionContable()\r\n/* 245: */ {\r\n/* 246:310 */ return this.listaDimensionContable;\r\n/* 247: */ }", "public DynamicModelPart(int textureWidth, int textureHeight, int textureOffsetU,\n int textureOffsetV) {\n super(textureWidth, textureHeight, textureOffsetU, textureOffsetV);\n this.cuboids = new ObjectArrayList<DynamicModelPart.DynamicCuboid>();\n this.children = new ObjectArrayList<DynamicModelPart>();\n }", "protected IndigoReactionAutomapperNodeModel() {\n super(1, 2);\n }", "@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:08.678 -0500\", hash_original_method = \"9D6AA19EA5B9D87B22803CD155673A0E\", hash_generated_method = \"9D6AA19EA5B9D87B22803CD155673A0E\")\n \nImageDescriptor() {\n width = 0;\n height = 0;\n codingScheme = 0;\n imageId = 0;\n highOffset = 0;\n lowOffset = 0;\n length = 0;\n }", "public DataTypeDescriptor(TypeId typeId, int precision, int scale,\r\n boolean isNullable, int maximumWidth) {\r\n this.typeId = typeId;\r\n this.precision = precision;\r\n this.scale = scale;\r\n this.isNullable = isNullable;\r\n this.maximumWidth = maximumWidth;\r\n }", "public SVGModel() {\n \t\telementToModel = new HashMap<SVGElement, SVGElementModel>();\n \t\ttagNameToTagCount = new HashMap<String, Integer>();\n \t\tgrid = new Grid();\n \t}", "@Override\r\n protected void initModel() {\n model = new Sphere(\"projectil Model\", 5, 5, 0.2f);\r\n model.setModelBound(new BoundingBox());\r\n model.updateModelBound();\r\n }", "void setCustomDimension2(String customDimension2);", "public interface Dimensions {\n /**\n * Lists the dimensions by the defined scope.\n *\n * @param scope The scope associated with dimension operations. This includes '/subscriptions/{subscriptionId}/' for\n * subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup\n * scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department\n * scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for\n * Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for\n * billingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for\n * partners.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return result of listing dimensions as paginated response with {@link PagedIterable}.\n */\n PagedIterable<Dimension> list(String scope);\n\n /**\n * Lists the dimensions by the defined scope.\n *\n * @param scope The scope associated with dimension operations. This includes '/subscriptions/{subscriptionId}/' for\n * subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup\n * scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department\n * scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for\n * Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for\n * billingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for\n * partners.\n * @param filter May be used to filter dimensions by properties/category, properties/usageStart,\n * properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.\n * @param expand May be used to expand the properties/data within a dimension category. By default, data is not\n * included when listing dimensions.\n * @param skiptoken Skiptoken is only used if a previous operation returned a partial result. If a previous response\n * contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that\n * specifies a starting point to use for subsequent calls.\n * @param top May be used to limit the number of results to the most recent N dimension data.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return result of listing dimensions as paginated response with {@link PagedIterable}.\n */\n PagedIterable<Dimension> list(\n String scope, String filter, String expand, String skiptoken, Integer top, Context context);\n\n /**\n * Lists the dimensions by the external cloud provider type.\n *\n * @param externalCloudProviderType The external cloud provider type associated with dimension/query operations.\n * This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated\n * account.\n * @param externalCloudProviderId This can be '{externalSubscriptionId}' for linked account or\n * '{externalBillingAccountId}' for consolidated account used with dimension/query operations.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return result of listing dimensions as paginated response with {@link PagedIterable}.\n */\n PagedIterable<Dimension> byExternalCloudProviderType(\n ExternalCloudProviderType externalCloudProviderType, String externalCloudProviderId);\n\n /**\n * Lists the dimensions by the external cloud provider type.\n *\n * @param externalCloudProviderType The external cloud provider type associated with dimension/query operations.\n * This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated\n * account.\n * @param externalCloudProviderId This can be '{externalSubscriptionId}' for linked account or\n * '{externalBillingAccountId}' for consolidated account used with dimension/query operations.\n * @param filter May be used to filter dimensions by properties/category, properties/usageStart,\n * properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.\n * @param expand May be used to expand the properties/data within a dimension category. By default, data is not\n * included when listing dimensions.\n * @param skiptoken Skiptoken is only used if a previous operation returned a partial result. If a previous response\n * contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that\n * specifies a starting point to use for subsequent calls.\n * @param top May be used to limit the number of results to the most recent N dimension data.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return result of listing dimensions as paginated response with {@link PagedIterable}.\n */\n PagedIterable<Dimension> byExternalCloudProviderType(\n ExternalCloudProviderType externalCloudProviderType,\n String externalCloudProviderId,\n String filter,\n String expand,\n String skiptoken,\n Integer top,\n Context context);\n}", "public Chunk() {\n }", "public ModuleObjectAttributeItem() {}", "public DynamicModelPart(DynamicModel dynamicModel, float[] x, float[] y, float[] z, int[] sizeX,\n int[] sizeY, int[] sizeZ, float[] extra, int[] u, int[] v, float[] rotation,\n ObjectList<DynamicModelPart.DynamicPart[]> seeds, SpriteIdentifier spriteId,\n Function<Identifier, RenderLayer> layerFactory) {\n super(dynamicModel);\n this.dynamicModel = dynamicModel;\n this.cuboids = new ObjectArrayList<DynamicModelPart.DynamicCuboid>();\n this.children = new ObjectArrayList<DynamicModelPart>();\n this.with(false, true, 1, true, false, 50, false, false, 0, true, false, 0, false, false, 0)\n .setX(x).setY(y).setZ(z).setSizeX(sizeX).setSizeY(sizeY).setSizeZ(sizeZ)\n .setExtra(extra).setU(u).setV(v).setRotation(rotation).seeds(seeds)\n .spriteId(spriteId).layerFactory(layerFactory).buildUsingSeeds()\n .buildChildrenUsingSeeds();\n\n }", "private Exemplar (NNge nnge, Instances inst, int size, double classV){\n\n super(inst, size);\n m_NNge = nnge;\n m_ClassValue = classV;\n m_MinBorder = new double[numAttributes()];\n m_MaxBorder = new double[numAttributes()];\n m_Range = new boolean[numAttributes()][];\n for(int i = 0; i < numAttributes(); i++){\n\tif(attribute(i).isNumeric()){\n\t m_MinBorder[i] = Double.POSITIVE_INFINITY;\n\t m_MaxBorder[i] = Double.NEGATIVE_INFINITY;\n\t m_Range[i] = null;\n\t} else {\n\t m_MinBorder[i] = Double.NaN;\n\t m_MaxBorder[i] = Double.NaN;\n\t m_Range[i] = new boolean[attribute(i).numValues() + 1];\n\t for(int j = 0; j < attribute(i).numValues() + 1; j++){\n\t m_Range[i][j] = false;\n\t }\n\t}\n }\n }", "public GameObject setDimensions(Dimension d) {\n\t\tdimensions.width = d.width;\n\t\tdimensions.height = d.height;\n\t\treturn this;\n\t}", "public ScaleInformation() {\n\t\tthis(0.0, 0.0, 800.0, 540.0, 800, 540);\n\t}", "public SolutionAttributes(String name, String type, double lbound,double ubound, \n\t\t\tdouble granularity, double rateOfEvolution, double value, String dfault, String flag, String unit){\n\t\tthis.name = name;\n\t\tthis.type = type;\n\t\tthis.lbound = lbound;\n\t\tthis.ubound = ubound;\n\t\tthis.granularity = granularity;\n\t\tthis.rateOfEvolution = rateOfEvolution;\n\t\tthis.value = value;\n\t\tthis.dfault = dfault;\n\t\tthis.flag = flag;\n\t\tthis.unit = unit;\n\t}" ]
[ "0.68028563", "0.66163355", "0.6577008", "0.6400066", "0.6374505", "0.6279968", "0.6145853", "0.6090917", "0.6065678", "0.6037232", "0.5970412", "0.58524245", "0.5846802", "0.581927", "0.5798026", "0.57795644", "0.577007", "0.577007", "0.5735847", "0.571851", "0.56416744", "0.5560511", "0.55306077", "0.5521672", "0.5488832", "0.5449499", "0.54317236", "0.54207253", "0.5418536", "0.54094124", "0.54094124", "0.53425705", "0.53413945", "0.5324408", "0.5321329", "0.53110707", "0.52865195", "0.52852917", "0.5263001", "0.5245054", "0.5244412", "0.5244412", "0.5243828", "0.52076393", "0.5202645", "0.5202628", "0.5201936", "0.5192468", "0.51849", "0.51783574", "0.5167395", "0.514946", "0.5121758", "0.51174116", "0.510828", "0.51032114", "0.50699234", "0.5052597", "0.5050838", "0.50494057", "0.50428444", "0.50099045", "0.49735674", "0.4966942", "0.49589384", "0.49576378", "0.49543172", "0.49523848", "0.49491015", "0.4947663", "0.49394336", "0.49375197", "0.49347386", "0.4921674", "0.49215072", "0.49128562", "0.49110937", "0.49048817", "0.49045235", "0.48991194", "0.48987454", "0.48974413", "0.48953635", "0.4895145", "0.4885649", "0.4881509", "0.48603216", "0.48564538", "0.48477814", "0.4844644", "0.48401517", "0.48357353", "0.48341873", "0.48219678", "0.48213094", "0.4805071", "0.48035565", "0.48033807", "0.4797248", "0.47969976", "0.47829393" ]
0.0
-1
Constructs the initial belief state for this asset type.
void createInitialBeliefState( ) throws BelievabilityException { if ( _asset_dim_model == null ) throw new BelievabilityException ( "POMDPAssetDimensionModel.createInitialBeliefState()", "Asset model is NULL" ); if ( _logger.isDetailEnabled() ) _logger.detail( "\tCreating POMDP iinitial belief for dimension: " + _asset_dim_model.getStateDimensionName( ) ); int num_vals = _asset_dim_model.getNumStateDimValues( ); if ( num_vals < 0 ) throw new BelievabilityException ( "POMDPAssetDimensionModel.createInitialBeliefState()", "Asset model returning zero values: " + _asset_dim_model.getStateDimensionName( ) ); double[] belief_prob = new double[num_vals]; int default_idx = _asset_dim_model.getDefaultStateIndex( ); if ( default_idx < 0 ) throw new BelievabilityException ( "POMDPAssetDimensionModel.createInitialBeliefState()", "Asset model returning invalid default value: " + _asset_dim_model.getStateDimensionName( ) ); // We assume that each asset state dimension starts off // deterministically in a single possible state value. // belief_prob[default_idx] = 1.0; _initial_belief = new BeliefStateDimension( _asset_dim_model, belief_prob, null ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BeliefStateDimension getInitialBeliefState() \n {\n return _initial_belief; \n }", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5568, \"facing=north\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5569, \"facing=north\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5570, \"facing=north\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5571, \"facing=north\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5572, \"facing=north\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5573, \"facing=north\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5574, \"facing=north\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5575, \"facing=north\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5576, \"facing=north\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5577, \"facing=north\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5578, \"facing=north\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5579, \"facing=north\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5580, \"facing=north\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5581, \"facing=north\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5582, \"facing=north\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5583, \"facing=north\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5584, \"facing=north\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5585, \"facing=north\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5586, \"facing=north\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5587, \"facing=north\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5588, \"facing=south\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5589, \"facing=south\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5590, \"facing=south\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5591, \"facing=south\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5592, \"facing=south\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5593, \"facing=south\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5594, \"facing=south\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5595, \"facing=south\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5596, \"facing=south\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5597, \"facing=south\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5598, \"facing=south\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5599, \"facing=south\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5600, \"facing=south\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5601, \"facing=south\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5602, \"facing=south\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5603, \"facing=south\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5604, \"facing=south\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5605, \"facing=south\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5606, \"facing=south\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5607, \"facing=south\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5608, \"facing=west\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5609, \"facing=west\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5610, \"facing=west\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5611, \"facing=west\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5612, \"facing=west\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5613, \"facing=west\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5614, \"facing=west\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5615, \"facing=west\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5616, \"facing=west\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5617, \"facing=west\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5618, \"facing=west\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5619, \"facing=west\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5620, \"facing=west\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5621, \"facing=west\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5622, \"facing=west\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5623, \"facing=west\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5624, \"facing=west\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5625, \"facing=west\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5626, \"facing=west\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5627, \"facing=west\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5628, \"facing=east\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5629, \"facing=east\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5630, \"facing=east\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5631, \"facing=east\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5632, \"facing=east\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5633, \"facing=east\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5634, \"facing=east\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5635, \"facing=east\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5636, \"facing=east\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5637, \"facing=east\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5638, \"facing=east\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5639, \"facing=east\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5640, \"facing=east\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5641, \"facing=east\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5642, \"facing=east\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5643, \"facing=east\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5644, \"facing=east\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5645, \"facing=east\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5646, \"facing=east\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5647, \"facing=east\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n }", "BeliefStateDimension getRandomBeliefState( )\n throws BelievabilityException\n {\n if ( _asset_dim_model == null )\n throw new BelievabilityException\n ( \"POMDPAssetDimensionModel.getRandomBeliefState()\",\n \"Asset type dimension model is NULL\" );\n \n if ( _logger.isDetailEnabled() )\n _logger.detail( \"\\tCreating POMDP random belief for dimension: \" \n + _asset_dim_model.getStateDimensionName( ) );\n\n int num_vals = _asset_dim_model.getNumStateDimValues( );\n \n if ( num_vals < 0 )\n throw new BelievabilityException\n ( \"POMDPAssetDimensionModel.getRandomBeliefState()\",\n \"Asset dimension model returning zero values: \"\n + _asset_dim_model.getStateDimensionName() );\n\n double[] belief_prob = new double[num_vals];\n \n ProbabilityUtils.setRandomDistribution( belief_prob );\n \n return new BeliefStateDimension( _asset_dim_model,\n belief_prob,\n null );\n\n }", "public InitialState() {\r\n\t\t}", "protected void initialize() {\n \tbrakeFactor = 0.0;\n }", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15071, \"face=floor\", \"facing=north\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15072, \"face=floor\", \"facing=south\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15073, \"face=floor\", \"facing=west\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15074, \"face=floor\", \"facing=east\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15075, \"face=wall\", \"facing=north\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15076, \"face=wall\", \"facing=south\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15077, \"face=wall\", \"facing=west\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15078, \"face=wall\", \"facing=east\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15079, \"face=ceiling\", \"facing=north\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15080, \"face=ceiling\", \"facing=south\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15081, \"face=ceiling\", \"facing=west\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15082, \"face=ceiling\", \"facing=east\"));\n }", "protected void init() {\n currentState.bgColor = appliedState.bgColor = gc.getBackground();\n currentState.fgColor = appliedState.fgColor = gc.getForeground();\n currentState.font = appliedState.font = gc.getFont();\n currentState.lineAttributes = gc.getLineAttributes();\n appliedState.lineAttributes = clone(currentState.lineAttributes);\n currentState.graphicHints |= gc.getLineStyle();\n currentState.graphicHints |= gc.getAdvanced() ? ADVANCED_GRAPHICS_MASK\n : 0;\n currentState.graphicHints |= gc.getXORMode() ? XOR_MASK : 0;\n\n appliedState.graphicHints = currentState.graphicHints;\n\n currentState.relativeClip = new RectangleClipping(gc.getClipping());\n currentState.alpha = gc.getAlpha();\n }", "@Override\n\tpublic void init() {\n\t\tmaterialImages = new JButton[MaterialState.materialLibrary.size()];\n\t\tmaterialNames = new JLabel[MaterialState.materialLibrary.size()];\n\t\tmaterialAmounts = new JLabel[MaterialState.materialLibrary.size()];\n\t\tmaterialColours = new JLabel[MaterialState.materialLibrary.size()];\n\n\t\ttotalRating = 0;\n\t\ttotalToxic = 0;\n\t\ttotalNegative = 0;\n\t\ttotalDamage = 0;\n\n\t}", "private void initialState() {\n forEach(item -> item.setInKnapsack(false));\n\n for (final Item item : this) {\n if (wouldOverpack(item)) {\n break;\n }\n item.switchIsKnapsack();\n }\n }", "public void initialize( )\n\t{\n\t\twakeupOn( m_WakeupCondition );\n\n\t\tColor3f objColor = new Color3f( 1.0f, 0.1f, 0.2f );\n\t\tColor3f black = new Color3f( 0.0f, 0.0f, 0.0f );\n\t\tcollideMaterial = new Material( objColor, black, objColor, black, 80.0f );\n\n\t\tobjColor = new Color3f( 0.0f, 0.1f, 0.8f );\n\t\tmissMaterial = new Material( objColor, black, objColor, black, 80.0f );\n\n\t\tobjectAppearance.setMaterial( missMaterial );\n\t}", "public void resetToInitialBelief() {\n\t\t\t//TODO when do we call this?\n\t\t\tthis.data = new ArrayList<Double>();\n\t\t\tfor(int i = 0; i < _initialBelief.data.size(); i++) {\n\t\t\t\tthis.data.add(_initialBelief.data.get(i));\n\t\t\t}\n\t\t}", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18656, \"facing=north\", \"waterlogged=true\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18657, \"facing=north\", \"waterlogged=false\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18658, \"facing=south\", \"waterlogged=true\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18659, \"facing=south\", \"waterlogged=false\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18660, \"facing=west\", \"waterlogged=true\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18661, \"facing=west\", \"waterlogged=false\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18662, \"facing=east\", \"waterlogged=true\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18663, \"facing=east\", \"waterlogged=false\"));\n }", "public void initState() {\n\n\t\tdouble bsc_p = 0.09; // TODO : doit dependre du souffle !?\n\t\tfor (int i=0; i<n; i++) lambda[i] = 0;\n\t\taddBSCnoise(lambda, bsc_p); \n\t\t// lambda: log likelihood ratio\n\t\tcalc_q0(lambda);\n\n\t\t// initialization of beta\n\t\tfor (int i = 0; i <= m - 1; i++) {\n\t\t\tfor (int j = 0; j <= row_weight[i] - 1; j++) {\n\t\t\t\tbeta[i][j] = 0.0;\n\t\t\t}\n\t\t}\t\t\n\n\t}", "@Override\n public void initState() {\n \n\t//TODO: Complete Method\n\n }", "BeliefStateDimension getUniformBeliefState( )\n throws BelievabilityException\n {\n if ( _asset_dim_model == null )\n throw new BelievabilityException\n ( \"POMDPAssetDimensionModel.getUniformBeliefState()\",\n \"Asset type dimension model is NULL\" );\n \n if ( _logger.isDetailEnabled() )\n _logger.detail( \"\\tCreating POMDP uniform belief for dimension: \" \n + _asset_dim_model.getStateDimensionName( ) );\n\n int num_vals = _asset_dim_model.getNumStateDimValues( );\n \n if ( num_vals < 0 )\n throw new BelievabilityException\n ( \"POMDPAssetDimensionModel.getUniformBeliefState()\",\n \"Asset dimension model returning zero values: \"\n + _asset_dim_model.getStateDimensionName() );\n\n double[] belief_prob = new double[num_vals];\n \n ProbabilityUtils.setUniformDistribution( belief_prob );\n \n return new BeliefStateDimension( _asset_dim_model,\n belief_prob,\n null );\n\n }", "protected abstract void initializeBartender();", "public State(){}", "@Override\n\tpublic void init() {\n\t\tfor(EnumStoneType type: EnumStoneType.values()) {\n\t\t\taddChiselVariation(\"stonebrick\", blockStone, type.getMetadata());\n\t\t}\n\n\t\t//Add chisel variations for Endstone Blocks\n\t\tfor(EnumEndStoneType type: EnumEndStoneType.values()) {\n\t\t\taddChiselVariation(\"endstone\", blockEndstone, type.getMetadata());\n\t\t}\n\n\t\tfor(EnumEndStoneSlabType type: EnumEndStoneSlabType.values()) {\n\t\t\taddChiselVariation(\"endstoneslab\", slabEndstone, type.getMetadata());\n\t\t}\n\n\t\t//Add chisel variations for Limestone Blocks\n\t\tfor(EnumLimestoneType type: EnumLimestoneType.values()) {\n\t\t\taddChiselVariation(\"limestone\", blockLimestone, type.getMetadata());\n\t\t}\n\n\t\tfor(EnumLimestoneSlabType type: EnumLimestoneSlabType.values()) {\n\t\t\taddChiselVariation(\"limestoneslab\", slabLimestone, type.getMetadata());\n\t\t}\n\n\t\t//Add chisel variations for Cobblestone Blocks\n\t\tfor(EnumCobblestoneType type: EnumCobblestoneType.values()) {\n\t\t\taddChiselVariation(\"cobblestone\", blockCobblestone, type.getMetadata());\n\t\t}\n\n\t\taddChiselVariation(\"cobblestoneslab\", Blocks.STONE_SLAB, 3);\n\t\tfor(EnumCobblestoneSlabType type: EnumCobblestoneSlabType.values()) {\n\t\t\taddChiselVariation(\"cobblestoneslab\", slabCobblestone, type.getMetadata());\n\t\t}\n\n\t\tfor(EnumMarbleSlabType type: EnumMarbleSlabType.values()) {\n\t\t\taddChiselVariation(\"marbleslab\", slabMarble, type.getMetadata());\n\t\t}\n\n\t\taddChiselVariation(\"stonebrickstairs\", Blocks.STONE_BRICK_STAIRS, 0);\n\t\tstairsStone.forEach(s -> addChiselVariation(\"stonebrickstairs\", s, 0));\n\n\t\tstairsEndstone.forEach(s -> addChiselVariation(\"endstonestairs\", s, 0));\n\n\t\tstairsLimestone.forEach(s -> addChiselVariation(\"limestonestairs\", s, 0));\n\n\t\taddChiselVariation(\"cobblestonestairs\", Blocks.STONE_STAIRS, 0);\n\t\tstairsCobblestone.forEach(s -> addChiselVariation(\"cobblestonestairs\", s, 0));\n\t\n\t\tstairsMarble.forEach(s -> addChiselVariation(\"marblestairs\", s, 0));\n\t\t\n\t}", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9244, \"facing=north\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9245, \"facing=north\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9246, \"facing=north\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9247, \"facing=north\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9248, \"facing=north\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9249, \"facing=north\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9250, \"facing=north\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9251, \"facing=north\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9252, \"facing=north\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9253, \"facing=north\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9254, \"facing=north\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9255, \"facing=north\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9256, \"facing=north\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9257, \"facing=north\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9258, \"facing=north\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9259, \"facing=north\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9260, \"facing=south\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9261, \"facing=south\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9262, \"facing=south\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9263, \"facing=south\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9264, \"facing=south\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9265, \"facing=south\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9266, \"facing=south\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9267, \"facing=south\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9268, \"facing=south\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9269, \"facing=south\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9270, \"facing=south\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9271, \"facing=south\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9272, \"facing=south\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9273, \"facing=south\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9274, \"facing=south\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9275, \"facing=south\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9276, \"facing=west\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9277, \"facing=west\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9278, \"facing=west\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9279, \"facing=west\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9280, \"facing=west\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9281, \"facing=west\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9282, \"facing=west\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9283, \"facing=west\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9284, \"facing=west\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9285, \"facing=west\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9286, \"facing=west\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9287, \"facing=west\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9288, \"facing=west\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9289, \"facing=west\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9290, \"facing=west\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9291, \"facing=west\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9292, \"facing=east\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9293, \"facing=east\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9294, \"facing=east\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9295, \"facing=east\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9296, \"facing=east\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9297, \"facing=east\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9298, \"facing=east\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9299, \"facing=east\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9300, \"facing=east\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9301, \"facing=east\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9302, \"facing=east\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9303, \"facing=east\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9304, \"facing=east\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9305, \"facing=east\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9306, \"facing=east\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9307, \"facing=east\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=false\"));\n }", "private void init(){\n \tdimension.set(0.5f, 0.5f);\n \tsetAnimation(Assets.instance.goldCoin.animGoldCoin);\n \tstateTime = MathUtils.random(0.0f,1.0f);\n \t\n \t//regGoldCoin = Assets.instance.goldCoin.goldCoin;\n \t // Set bounding box for collision detection\n \tbounds.set(0,0,dimension.x, dimension.y);\n \tcollected = false;\n }", "@Override\r\n\tpublic void init() { \r\n\t\t\r\n\t\tsession = -1;\r\n\t\t\r\n\t\tProgressDif = 0;\r\n\t\tnoisFact = 0;\r\n\t\tcompromiseFact = 0;\r\n\t\t\r\n\t\tcompromiseLearn = 20;\r\n\t\tprogressLearn = 10;\r\n\t\tnoisLearn = 0.2;\r\n\t\t\r\n\t\treservationPanic = 0.2;\r\n\t\tmyBids = new ArrayList<Pair<Bid,Double>>();\r\n\t\topponentBidsA = new Vector<ArrayList<Pair<Bid,Double>>>();\r\n\t\topponentBidsB = new Vector<ArrayList<Pair<Bid,Double>>>();\r\n\r\n\t\tdf = utilitySpace.getDiscountFactor();\r\n\t\tif (df==0) df = 1; \r\n\r\n\t\ttry {\r\n\t\t\tinitStates();\r\n\t\t} catch (Exception e) {\r\n \t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\t}", "public void initialise() {\n number_of_rays = 4; // how many rays are fired from the boat\n ray_angle_range = 145; // the range of the angles that the boat will fire rays out at\n ray_range = 30; // the range of each ray\n ray_step_size = (float) 10;\n regen = false;\n }", "private void initBow()\n {\n bowLeft = AnimCreator.loadImage(bowLeftPath);\n bowRight = bowLeft.getFlippedCopy(true, false);\n currentBow = bowLeft;\n }", "public Block(){\r\n\t\tthis.altitude = 0;\r\n\t\tthis.river = false;\t\r\n\t\tthis.ocean = false;\r\n\t\tthis.river = false;\r\n\t\tborder = false;\r\n\t}", "protected void initialize() {\n \t\n \t// TODO: Switch to execute on changes based on alignment\n \tRobot.lightingControl.set(LightingObjects.BALL_SUBSYSTEM,\n LightingControl.FUNCTION_BLINK,\n LightingControl.COLOR_ORANGE,\n 0,\t\t// nspace - don't care\n 300);\t// period_ms \n }", "public StateVisualizer() {\r\n }", "private ENFAutomaton build() {\n final Set<State> states = new HashSet<State>(this.states.values());\n final Set<State> acceptStates = new HashSet<State>(this.acceptStates.values());\n\n final Set<Input> alphabet = alphabetBuilder.build();\n\n final ENFAutomatonTransferFunction transferFunction = transferFunctionBuilder.build(this.states);\n\n return new ENFAutomaton(states, acceptStates, alphabet, transferFunction, initial);\n }", "public void initialState() {\n\t\t//empty\n\t}", "public BaseStairs(IBlockState modelState)\n\t{\n\t\tsuper(modelState);\n\t\tthis.useNeighborBrightness = true;\n\t}", "CompositeState createCompositeState();", "@Override\n\tpublic void init() {\n\t\tthis.image = Helper.getImageFromAssets(AssetConstants.IMG_ROAD_NORMAL);\n\t}", "public void init(SoState state)\n\n{\n // Set to GL defaults:\n// ivState.ambientColor.copyFrom( getDefaultAmbient());\n// ivState.emissiveColor.copyFrom( getDefaultEmissive());\n// ivState.specularColor.copyFrom( getDefaultSpecular());\n// ivState.shininess = getDefaultShininess();\n// ivState.colorMaterial = false;\n// ivState.blending = false;\n// ivState.lightModel = LightModel.PHONG.getValue();\n \n // Initialize default color storage if not already done\n if (defaultDiffuseColor == null) {\n defaultDiffuseColor = SbColorArray.allocate(1);\n defaultDiffuseColor.get(0).setValue(getDefaultDiffuse());\n defaultTransparency = new float[1];\n defaultTransparency[0] = getDefaultTransparency();\n defaultColorIndices = new int[1];\n defaultColorIndices[0] = getDefaultColorIndex();\n defaultPackedColor = new int[1];\n defaultPackedColor[0] = getDefaultPacked();\n }\n \n //following value will be matched with the default color, must\n //differ from 1 (invalid) and any legitimate nodeid. \n// ivState.diffuseNodeId = 0;\n// ivState.transpNodeId = 0;\n// //zero corresponds to transparency off (default).\n// ivState.stippleNum = 0;\n// ivState.diffuseColors = defaultDiffuseColor;\n// ivState.transparencies = defaultTransparency;\n// ivState.colorIndices = defaultColorIndices;\n// ivState.packedColors = defaultPackedColor;\n//\n// ivState.numDiffuseColors = 1;\n// ivState.numTransparencies = 1;\n// ivState.packed = false;\n// ivState.packedTransparent = false;\n// ivState.transpType = SoGLRenderAction.TransparencyType.SCREEN_DOOR.ordinal(); \n// ivState.cacheLevelSetBits = 0;\n// ivState.cacheLevelSendBits = 0;\n// ivState.overrideBlending = false;\n// \n// ivState.useVertexAttributes = false;\n//\n// ivState.drawArraysCallback = null;\n// ivState.drawElementsCallback = null; \n// ivState.drawArraysCallbackUserData = null;\n// ivState.drawElementsCallbackUserData = null; \n\n coinstate.ambient.copyFrom(getDefaultAmbient());\n coinstate.specular.copyFrom(getDefaultSpecular());\n coinstate.emissive.copyFrom(getDefaultEmissive());\n coinstate.shininess = getDefaultShininess();\n coinstate.blending = /*false*/0;\n coinstate.blend_sfactor = 0;\n coinstate.blend_dfactor = 0;\n coinstate.alpha_blend_sfactor = 0;\n coinstate.alpha_blend_dfactor = 0;\n coinstate.lightmodel = LightModel.PHONG.getValue();\n coinstate.packeddiffuse = false;\n coinstate.numdiffuse = 1;\n coinstate.numtransp = 1;\n coinstate.diffusearray = SbColorArray.copyOf(lazy_defaultdiffuse);\n coinstate.packedarray = IntArrayPtr.copyOf(lazy_defaultpacked);\n coinstate.transparray = FloatArray.copyOf(lazy_defaulttransp);\n coinstate.colorindexarray = IntArrayPtr.copyOf(lazy_defaultindex);\n coinstate.istransparent = false;\n coinstate.transptype = (int)(SoGLRenderAction.TransparencyType.BLEND.getValue());\n coinstate.diffusenodeid = 0;\n coinstate.transpnodeid = 0;\n coinstate.stipplenum = 0;\n coinstate.vertexordering = VertexOrdering.CCW.getValue();\n coinstate.twoside = false ? 1 : 0;\n coinstate.culling = false ? 1 : 0;\n coinstate.flatshading = false ? 1 : 0;\n coinstate.alphatestfunc = 0;\n coinstate.alphatestvalue = 0.5f;\n}", "public void constructor() {\n setEdibleAnimals();\n }", "GameModel() {\n mState = GAME_BEFORE_START;\n mFixCount = 30;\n mReasonable = false;\n mBoard = new BlockState[BOARD_ROWS][BOARD_COLS];\n for (int r = 0; r < BOARD_ROWS; ++r) {\n for (int c = 0; c < BOARD_COLS; ++c) {\n mBoard[r][c] = new BlockState();\n }\n }\n reInit();\n }", "public State()\n {\n this(\"\");\n }", "protected void initialize() {\n\t\tsetBodyColor(Color.BLACK);\r\n\t\tsetGunColor(Color.BLACK);\r\n\t\tsetRadarColor(Color.BLACK);\r\n\t\tsetScanColor(Color.BLUE);\r\n\t\tsetBulletColor(Color.RED);\r\n\t}", "@Override\r\n protected BlockStateContainer createBlockState() {\r\n\t\treturn new BlockStateContainer(this, new IProperty[] {FACING});\r\n }", "public State getInitialState(){\n\t\treturn new AggregateState(gs);\n\t}", "protected BattleBagState bagState(){\n return new BattleBagState(\n this.mFightButton,\n this.mPokemonButton,\n this.mBagButton,\n this.mRunButton,\n this.mActionButton,\n this.mOptionList,\n this.mBattle,\n this.mMessage\n );\n }", "public Billfold()\n {\n \n }", "public void initialState() {\r\n\t\tfor (int i = 0; i < checkBoxes.length; i++) {\r\n\t\t\tamountBoxes[i].setSelectedIndex(0);\r\n\t\t\tcheckBoxes[i].setSelected(false);\r\n\t\t}\r\n\t}", "public Block()\n {\n this.blockType = BlockType.AIR;\n }", "public void initialize()\r\n {\r\n isImageLoaded=false; \r\n isInverted=false;\r\n isBlured=false;\r\n isChanged=false;\r\n isCircularCrop= false;\r\n isRectangularCrop = false;\r\n isReadyToSave = false;\r\n didUndo = false;\r\n brightnessLevel=0.0f;\r\n }", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16014, \"power=0\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16015, \"power=1\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16016, \"power=2\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16017, \"power=3\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16018, \"power=4\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16019, \"power=5\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16020, \"power=6\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16021, \"power=7\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16022, \"power=8\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16023, \"power=9\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16024, \"power=10\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16025, \"power=11\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16026, \"power=12\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16027, \"power=13\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16028, \"power=14\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16029, \"power=15\"));\n }", "public BurnAttributes(BranchGroup burnBG, String name, Color4f color, float volume, float opacity, Point3f diameter,\r\n float burningTime, Point3f center, boolean pickable, boolean clipping, boolean culling,\r\n BitSet burnMask, Point3f entryPoint, Vector3f burnPoint, Transform3D transform) {\r\n this(burnBG, name, color, volume, opacity, diameter, burningTime);\r\n this.center = center;\r\n this.pickable = pickable;\r\n this.clipping = clipping;\r\n this.culling = culling;\r\n this.burnMask = burnMask;\r\n this.entryPoint = entryPoint;\r\n this.burnPoint = burnPoint;\r\n this.transform = transform;\r\n }", "StatePac build();", "@Override\r\n public MachineState getInitialState() {\r\n \tclearpropnet();\r\n \tpropNet.getInitProposition().setValue(true);\r\n\t\tMachineState initial = getStateFromBase();\r\n\t\treturn initial;\r\n }", "public Brand()\n {\n\t\tsuper();\n }", "public void init() {\n\t\tBitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.sb_thumb);\n\t\tLinearGradient colorGradient = new LinearGradient(0.f, 0.f, this.getMeasuredWidth() - bitmap.getWidth(), 0.f, new int[] { 0xFF000000,\n\t\t\t\t0xFF0000FF, 0xFF00FF00, 0xFF00FFFF, 0xFFFF0000, 0xFFFF00FF, 0xFFFFFF00, 0xFFFFFFFF }, null, Shader.TileMode.CLAMP);\n\t\tShapeDrawable shape = new ShapeDrawable(new RectShape(mContext));\n\t\tshape.getPaint().setShader(colorGradient);\n\t\tthis.setProgressDrawable(shape);\n\t\tthis.setMax(256 * 7 - 1);\n\t}", "SpacecraftState getInitialState() throws OrekitException;", "public void setBallInitial(){\n\tvalidBall = new Ball(Player.getxPlayerLoc(),Player.getyPlayerLoc(), angle,true,ballImage,game.getDifficulty());\n}", "public BookState() {\n this(\"AVAILABLE\",new GeoPoint(0,0),null);\n }", "public Boleto() {\n this(3.0);\n }", "public Patch56State()\n {\n this( null, 0 );\n }", "public Breadfruit() {\r\n super(sciPlantName, commonPlantName, hiPlantName, \"\",\r\n origin, status, plantForm, plantSize,\r\n Evergreen.getMinHeightFromSize(plantSize),\r\n Evergreen.getMaxHeightFromSize(plantSize),\r\n Evergreen.getMinWidthFromSize(plantSize),\r\n Evergreen.getMaxWidthFromSize(plantSize),\r\n latitude, longitude);\r\n }", "StateClass() {\r\n restored = restore();\r\n }", "ShapeState getInitialState();", "public void initModel() {\r\n this.stateEngine = new RocketStateEngine();\r\n }", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6756, \"rotation=0\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6757, \"rotation=1\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6758, \"rotation=2\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6759, \"rotation=3\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6760, \"rotation=4\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6761, \"rotation=5\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6762, \"rotation=6\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6763, \"rotation=7\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6764, \"rotation=8\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6765, \"rotation=9\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6766, \"rotation=10\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6767, \"rotation=11\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6768, \"rotation=12\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6769, \"rotation=13\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6770, \"rotation=14\"));\n Block.PLAYER_HEAD.addBlockAlternative(new BlockAlternative((short) 6771, \"rotation=15\"));\n }", "public BType() {\n initComponents();\n }", "@Override\n public void initialize() {\n conveyor.setBallCount(0);\n conveyor.startTime(); \n }", "public State () {\n\t\tthis.stateId = generateStateId();\n\t}", "public Automaton() {\n\t\tstates = new HashSet<>();\n\t\ttransitions = new HashSet<>();\n\t\tfinalStates = new HashSet<>();\n\t\tinitialState = null;\n\t}", "private InheritableBuildingBlock() {\r\n super(IInheritableBuildingBlock.TYPE_ID);\r\n }", "private static State generateInitialState(double initialHeuristic) {\n ArrayList<List<Job>> jobList = new ArrayList<>(RecursionStore.getNumberOfProcessors());\n for (int i = 0; i < RecursionStore.getNumberOfProcessors(); i++) {\n jobList.add(new ArrayList<>());\n }\n int[] procDur = new int[RecursionStore.getNumberOfProcessors()];\n java.util.Arrays.fill(procDur, 0);\n return new State(jobList, procDur, initialHeuristic, 0);\n }", "public WaitingStateDiagram() {\n\t\tsuper(\"/ThreadStatesWaiting.jpg\", true);\n\t\tcreateObjects();\n\t\troot.getChildren().addAll(displayText.getText(), circle, circle2);\n\t}", "public static void init() {\n Handler.log(Level.INFO, \"Loading Blocks\");\n\n oreAluminum = new BaseOre(Config.oreAluminumID).setUnlocalizedName(Archive.oreAluminum)\n .setHardness(3.0F).setResistance(5.0F);\n\n blockGrinder = new BaseContainerBlock(Config.blockGrinderID, Archive.grinderGUID)\n .setUnlocalizedName(Archive.blockGrinder);\n\n blockOven = new BaseContainerBlock(Config.blockOvenID, Archive.ovenGUID)\n .setUnlocalizedName(Archive.blockOven);\n }", "private void initState() {\n Arrays.fill(state = new char[this.mystery.length()], '_');\n }", "public Boat() {\n }", "private State newBasicState(final boolean acceptance) {\n final State state = new BasicState(String.valueOf(states.size()));\n\n states.put(state.getId(), state);\n if (acceptance) {\n acceptStates.put(state.getId(), state);\n }\n\n return state;\n }", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6900, \"inverted=true\", \"power=0\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6901, \"inverted=true\", \"power=1\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6902, \"inverted=true\", \"power=2\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6903, \"inverted=true\", \"power=3\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6904, \"inverted=true\", \"power=4\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6905, \"inverted=true\", \"power=5\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6906, \"inverted=true\", \"power=6\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6907, \"inverted=true\", \"power=7\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6908, \"inverted=true\", \"power=8\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6909, \"inverted=true\", \"power=9\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6910, \"inverted=true\", \"power=10\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6911, \"inverted=true\", \"power=11\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6912, \"inverted=true\", \"power=12\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6913, \"inverted=true\", \"power=13\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6914, \"inverted=true\", \"power=14\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6915, \"inverted=true\", \"power=15\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6916, \"inverted=false\", \"power=0\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6917, \"inverted=false\", \"power=1\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6918, \"inverted=false\", \"power=2\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6919, \"inverted=false\", \"power=3\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6920, \"inverted=false\", \"power=4\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6921, \"inverted=false\", \"power=5\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6922, \"inverted=false\", \"power=6\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6923, \"inverted=false\", \"power=7\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6924, \"inverted=false\", \"power=8\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6925, \"inverted=false\", \"power=9\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6926, \"inverted=false\", \"power=10\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6927, \"inverted=false\", \"power=11\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6928, \"inverted=false\", \"power=12\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6929, \"inverted=false\", \"power=13\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6930, \"inverted=false\", \"power=14\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6931, \"inverted=false\", \"power=15\"));\n }", "@Override\n\tpublic void create() {\n\t\tassetManager = new AssetManager();\n\t\tassetManager.load(ROLIT_BOARD_MODEL, Model.class);\n\t\tassetManager.load(ROLIT_BALL_MODEL, Model.class);\n\t\t\n\t\t//construct the lighting\n\t\tenvironment = new Environment();\n\t\tenvironment.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.4f, 0.4f, 0.4f, 1f));\n\t\tenvironment.add(new DirectionalLight().set(0.8f, 0.8f, 0.8f, -1f, -0.8f, -0.2f));\n\t\t\n\t\tmodelBatch = new ModelBatch();\n\t\t\n\t\tcam = new PerspectiveCamera(67f, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n\t\t\n\t\tGdx.input.setInputProcessor(new InputHandler());\n\t}", "public State getInitialState() {\r\n \t\treturn initialState;\r\n \t}", "public BetalingKontant() {\n initComponents();\n }", "private synchronized void initStateMachine() {\n next = start;\n Deque<StateInfo> stack = getNextToAncestorStackLocked();\n\n // Enter all the states of the new branch.\n while (stack.size() > 0) {\n current = stack.pop();\n current.active = true;\n current.state.enter();\n }\n next = null;\n }", "@Override\n protected void initialize() {\n System.out.println(\"initializing claw state machine\");\n }", "public KripkeStructure() {\n states = new HashMap<>();\n }", "public Building() {\n mElevators = new ArrayList<>();\n mFloors = new ArrayList<>();\n }", "public BSState() {\r\n mIsEnteringState = false;\r\n mIsExitingState = false;\r\n }", "public BiomeCanyon() {\n\t\tsuper(new BiomeProperties(\"Canyon\").setBaseHeight(-1.6F).setHeightVariation(0.5F).setTemperature(2.0F));\n\n\t\ttopBlock = BlockInit.BLOCK_MARBLE.getDefaultState().withProperty(BlockRock.VARIANT, EnumRock.STONE);\n\t\tfillerBlock = BlockInit.BLOCK_MARBLE.getDefaultState().withProperty(BlockRock.VARIANT, EnumRock.STONE);\n\t\t// this.decorator.grassPerChunk = 10;\n\t\t// this.decorator.dirtGen = new\n\t\t// WorldGenMinable(BlockInit.BLOCK_TILE.getDefaultState().withProperty(BlockTile.COLOR,\n\t\t// EnumColor.BLACK), 10);\n\t\tthis.decorator.generateFalls = false;\n\t\tthis.spawnableCreatureList.clear();\n\n\t\t// this.decorator.treesPerChunk = 2;\n\t}", "public Water()\n {\n super(Color.cadetBlue, false, 1.0);\n }", "public void initializeObliqueLaunch(){\r\n world = new Environment();\r\n cannon = new Thrower();\r\n ball = new Projectile();\r\n this.setInitialValues();\r\n }", "@Override\n protected void initialize() {\n led.setLED_M1(false, false, false);\n count = 0;\n led.setLED_M1(true, false, false);\n ledState = status.ONE;\n System.out.println(\"BUTTON PRESSED\");\n }", "public State getInitialState() {\n\t\treturn initialState;\n\t}", "protected Betaling()\r\n\t{\r\n\t\t\r\n\t}", "@Override\n public void init() {\n super.init();\n prev1 = new Gamepad();\n prev2 = new Gamepad();\n armExtended = false;\n\n glyphLiftState = GlyphLiftState.ASCENDING;\n }", "DynamicCompositeState createDynamicCompositeState();", "public DieteticBrotherModel() {\n database = new Database();\n availableFood = database.initializeAvailableFood();\n recipes = database.initializeRecipes(availableFood);\n\n recipe = new Recipe(0, \"My Recipe\");\n }", "public Blocks(int h)\n {\n health=h;\n worth=h;\n setImage(colors[health-1]);\n }", "public void initialize() {\r\n\t\tsetValue(initialValue);\r\n\t}", "StateType createStateType();", "Omnivore(Cell birthplace) {\n super(birthplace);\n skin = Color.BLUE;\n\n // hunger condition\n MAX_HUNGER = 5;\n \n //conditions for birthing\n birth_EMPTY_REQUIRED=3;\n birth_MATES_REQUIRED=1;\n birth_FOOD_REQUIRED=1;\n }", "@Override\n\tprotected void Initialize() {\n\t\tint grayBoxX = (this.width / 2) - 198;\n\t\tint grayBoxY = (this.height / 2) - 83;\n\t\tint color = Color.DARK_GRAY.getRGB();\n\t\tthis.serverConfiguration = Prefab.proxy.getServerConfiguration();\n\t\tthis.houseConfiguration = ClientEventHandler.playerConfig.getClientConfig(\"Starter House\", HouseConfiguration.class);\n\t\tthis.houseConfiguration.pos = this.pos;\n\n\t\t// Create the Controls.\n\t\t// Column 1:\n\t\tthis.btnHouseStyle = new ExtendedButton(grayBoxX + 10, grayBoxY + 20, 90, 20, this.houseConfiguration.houseStyle.getDisplayName(), this::actionPerformed);\n\n\t\tthis.addButton(this.btnHouseStyle);\n\n\t\tthis.btnVisualize = new ExtendedButton(grayBoxX + 10, grayBoxY + 60, 90, 20, GuiLangKeys.translateString(GuiLangKeys.GUI_BUTTON_PREVIEW), this::actionPerformed);\n\t\tthis.addButton(this.btnVisualize);\n\n\t\tint x = grayBoxX + 10;\n\t\tint y = grayBoxY + 10;\n\t\tint secondColumnY = y;\n\t\tint secondColumnX = x + 137;\n\n\t\tthis.btnAddFurnace = new GuiCheckBox(secondColumnX, secondColumnY, GuiLangKeys.translateString(GuiLangKeys.STARTER_HOUSE_ADD_FURNACE), this.houseConfiguration.addFurnace, null);\n\t\tthis.btnAddFurnace.setFGColor(color);\n\t\tthis.btnAddFurnace.setWithShadow(false);\n\t\tthis.btnAddFurnace.visible = false;\n\t\tthis.addButton(this.btnAddFurnace);\n\n\t\tif (this.serverConfiguration.addFurnace) {\n\t\t\tsecondColumnY += 15;\n\t\t}\n\n\t\tthis.btnAddBed = new GuiCheckBox(secondColumnX, secondColumnY, GuiLangKeys.translateString(GuiLangKeys.STARTER_HOUSE_ADD_BED), this.houseConfiguration.addBed, null);\n\t\tthis.btnAddBed.setFGColor(color);\n\t\tthis.btnAddBed.setWithShadow(false);\n\t\tthis.btnAddBed.visible = false;\n\t\tthis.addButton(this.btnAddBed);\n\n\t\tif (this.serverConfiguration.addBed) {\n\t\t\tsecondColumnY += 15;\n\t\t}\n\n\t\tthis.btnAddCraftingTable = new GuiCheckBox(x, y, GuiLangKeys.translateString(GuiLangKeys.STARTER_HOUSE_ADD_CRAFTING_TABLE), this.houseConfiguration.addCraftingTable, null);\n\t\tthis.btnAddCraftingTable.setFGColor(color);\n\t\tthis.btnAddCraftingTable.setWithShadow(false);\n\t\tthis.btnAddCraftingTable.visible = false;\n\t\tthis.addButton(this.btnAddCraftingTable);\n\n\t\tif (this.serverConfiguration.addCraftingTable) {\n\t\t\ty += 15;\n\t\t}\n\n\t\tthis.btnAddTorches = new GuiCheckBox(x, y, GuiLangKeys.translateString(GuiLangKeys.STARTER_HOUSE_ADD_TORCHES), this.houseConfiguration.addTorches, null);\n\t\tthis.btnAddTorches.setFGColor(color);\n\t\tthis.btnAddTorches.setWithShadow(false);\n\t\tthis.btnAddTorches.visible = false;\n\t\tthis.addButton(this.btnAddTorches);\n\n\t\tif (this.serverConfiguration.addTorches) {\n\t\t\ty += 15;\n\t\t}\n\n\t\tthis.btnAddChest = new GuiCheckBox(x, y, GuiLangKeys.translateString(GuiLangKeys.STARTER_HOUSE_ADD_CHEST), this.houseConfiguration.addChest, null);\n\t\tthis.btnAddChest.setFGColor(color);\n\t\tthis.btnAddChest.setWithShadow(false);\n\t\tthis.btnAddChest.visible = false;\n\t\tthis.addButton(this.btnAddChest);\n\n\t\tif (this.serverConfiguration.addChests) {\n\t\t\ty += 15;\n\t\t}\n\n\t\tthis.btnAddMineShaft = new GuiCheckBox(x, y, GuiLangKeys.translateString(GuiLangKeys.STARTER_HOUSE_BUILD_MINESHAFT), this.houseConfiguration.addMineShaft, null);\n\t\tthis.btnAddMineShaft.setFGColor(color);\n\t\tthis.btnAddMineShaft.setWithShadow(false);\n\t\tthis.btnAddMineShaft.visible = false;\n\t\tthis.addButton(this.btnAddMineShaft);\n\n\t\tif (this.serverConfiguration.addMineshaft) {\n\t\t\ty += 15;\n\t\t}\n\n\t\tthis.btnAddChestContents = new GuiCheckBox(x, y, GuiLangKeys.translateString(GuiLangKeys.STARTER_HOUSE_ADD_CHEST_CONTENTS), this.houseConfiguration.addChestContents, null);\n\t\tthis.btnAddChestContents.setFGColor(color);\n\t\tthis.btnAddChestContents.setWithShadow(false);\n\t\tthis.btnAddChestContents.visible = false;\n\t\tthis.addButton(this.btnAddChestContents);\n\n\t\tif (this.allowItemsInChestAndFurnace) {\n\t\t\ty += 15;\n\t\t}\n\n\t\tthis.btnGlassColor = new ExtendedButton(grayBoxX + 10, grayBoxY + 20, 90, 20, GuiLangKeys.translateDye(this.houseConfiguration.glassColor), this::actionPerformed);\n\t\tthis.addButton(this.btnGlassColor);\n\n\t\t// Column 2:\n\n\t\t// Column 3:\n\n\t\t// Tabs:\n\t\tthis.tabGeneral = new GuiTab(this.Tabs, GuiLangKeys.translateString(GuiLangKeys.STARTER_TAB_GENERAL), grayBoxX + 3, grayBoxY - 20);\n\t\tthis.Tabs.AddTab(this.tabGeneral);\n\n\t\tthis.tabConfig = new GuiTab(this.Tabs, GuiLangKeys.translateString(GuiLangKeys.STARTER_TAB_CONFIG), grayBoxX + 54, grayBoxY - 20);\n\t\tthis.Tabs.AddTab(this.tabConfig);\n\n\t\tthis.tabBlockTypes = new GuiTab(this.Tabs, GuiLangKeys.translateString(GuiLangKeys.STARTER_TAB_BLOCK), grayBoxX + 105, grayBoxY - 20);\n\t\tthis.tabBlockTypes.setWidth(70);\n\t\tthis.Tabs.AddTab(this.tabBlockTypes);\n\n\t\t// Create the done and cancel buttons.\n\t\tthis.btnBuild = new ExtendedButton(grayBoxX + 10, grayBoxY + 136, 90, 20, GuiLangKeys.translateString(GuiLangKeys.GUI_BUTTON_BUILD), this::actionPerformed);\n\t\tthis.addButton(this.btnBuild);\n\n\t\tthis.btnCancel = new ExtendedButton(grayBoxX + 147, grayBoxY + 136, 90, 20, GuiLangKeys.translateString(GuiLangKeys.GUI_BUTTON_CANCEL), this::actionPerformed);\n\t\tthis.addButton(this.btnCancel);\n\t}", "public Bifurcator() {\n\t\tinitComponents();\n\t}", "private GameStatePresets()\n {\n\n }", "State getInitialState( int nIdWorkflow );", "public void createStartState(){\n\t\tState startState = new State();\n\t\tstartState.setName(\"qStart\");\n\t\taddState(startState);\n\t\tthis.startState = startState;\n\t}", "public BSState() {\n this.playerTurn=1;\n this.p1TotalHits=0;\n this.p2TotalHits=0;\n this.shipsAlive=10;\n this.shipsSunk=0;\n this.isHit=false;\n this.phaseOfGame=\"SetUp\";\n this.shotLocations=null;\n this.shipLocations=null;\n this.shipType=1;\n this.board=new String[10][20];\n //this.player1=new HumanPlayer;\n //this.player2=new ComputerPlayer;\n\n }", "public JokeState(){\n\t\tsuper();\n\t}", "public BeaconAnalysis() {\n this.left = BeaconColor.UNKNOWN;\n this.right = BeaconColor.UNKNOWN;\n this.confidence = 0.0f;\n this.location = new Rectangle();\n this.leftButton = null;\n this.rightButton = null;\n }" ]
[ "0.70375735", "0.5780741", "0.57237923", "0.5709971", "0.56793535", "0.565612", "0.5648655", "0.5606368", "0.55841625", "0.55668664", "0.5563021", "0.5553743", "0.553831", "0.55252045", "0.5520739", "0.5492917", "0.54547375", "0.54496", "0.54321194", "0.5417561", "0.535641", "0.5355138", "0.5354362", "0.53519094", "0.5317434", "0.53111714", "0.5310443", "0.52947426", "0.5288985", "0.5284003", "0.5266343", "0.526633", "0.5255829", "0.52508426", "0.5246585", "0.5239316", "0.52327836", "0.5232615", "0.5225961", "0.5224548", "0.5217002", "0.5213405", "0.52088594", "0.5207286", "0.51717085", "0.5164963", "0.51582307", "0.5154623", "0.5146808", "0.5143065", "0.5135742", "0.5129609", "0.51239824", "0.51126707", "0.5102752", "0.5096306", "0.5090428", "0.50789744", "0.50775164", "0.5076914", "0.50570655", "0.50567544", "0.50540406", "0.50505465", "0.50486493", "0.5043798", "0.5041194", "0.5026839", "0.50251365", "0.50244105", "0.50185335", "0.50176805", "0.5016638", "0.50111663", "0.50111395", "0.5010469", "0.50081456", "0.500632", "0.49990574", "0.49975643", "0.49962342", "0.49946398", "0.49819824", "0.49647257", "0.4962445", "0.495774", "0.4955692", "0.49549377", "0.49542618", "0.4952792", "0.4950322", "0.49433827", "0.49433324", "0.4939727", "0.49312988", "0.49307457", "0.49301118", "0.49292925", "0.4929263", "0.49259868" ]
0.7746904
0
method createInitialBeliefState Used to update the belief state using the given elapsed time. i.e., just factor in the state transitions due to threats over this time. This returns exact results if there are less than 4 threats and approximate results otherwise.
void updateBeliefStateThreatTrans( BeliefStateDimension prev_belief, long start_time, long end_time, BeliefStateDimension next_belief ) throws BelievabilityException { // The updating of the belief state due to threats is a // relatively complicated process. The complication comes // from the fact that we must allow multiple threats to cause // the same event, and even allow multiple events to affect // the state dimension of an asset. We have models for how // the threats and events act individually, but no models // about how they act in combination. Our job here is trying // to estimate what effect these threats and events could have // on the asset state dimension. (Note that threats cause // events in the techspec model. // // Note that making a simplifying asumption that only one // event will occur at a time does not help us in this // computation: we are not trying to adjust after the fact // when we *know* an event occurred; we are trying to deduce // which of any number of events might have occurred. Thus, // we really do need to reason about combinations of events. // // The prospect of having the techspec encode the full joint // probability distributions for a events is not something // that will be managable, so we must live with the individual // models and make some assumptions. At the heart of the // assumption sare that threats that can generate a given // event will do so independently, and among multiple events, // they too act independently. // // Details of the calculations and assumptions are found in // the parts of the code where the calculations occur. // // All the complications of handling multiple threats happens // in this method call. // double[][] trans_matrix = _asset_dim_model.getThreatTransitionMatrix ( prev_belief.getAssetID(), start_time, end_time ); if ( _logger.isDetailEnabled() ) _logger.detail( "Threat transition matrix: " + _asset_dim_model.getStateDimensionName() + "\n" + ProbabilityUtils.arrayToString( trans_matrix )); double[] prev_belief_prob = prev_belief.getProbabilityArray(); double[] next_belief_prob = new double[prev_belief_prob.length]; // The event transition matrix will model how the asset state // transitions occur. We now need to fold this into the // current belief sate to produce the next belief state. // for ( int cur_state = 0; cur_state < prev_belief_prob.length; cur_state++ ) { for ( int next_state = 0; next_state < prev_belief_prob.length; next_state++ ) { next_belief_prob[next_state] += prev_belief_prob[cur_state] * trans_matrix[cur_state][next_state]; } // for next_state } // for cur_state // We do this before the sanity check, but maybe this isn't // the right thing to do. For now, it allows me to more easily // convert it to a string in the case where there is a // problem. // next_belief.setProbabilityArray( next_belief_prob ); // Add a sanity check to prevent bogus belief from being // propogated to other computations. // double sum = 0.0; for ( int i = 0; i < next_belief_prob.length; i++ ) sum += next_belief_prob[i]; if( ! Precision.isZeroComputation( 1.0 - sum )) throw new BelievabilityException ( "updateBeliefStateThreatTrans()", "Resulting belief doesn't sum to 1.0 : " + next_belief.toString() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createInitialBeliefState( )\n throws BelievabilityException\n {\n if ( _asset_dim_model == null )\n throw new BelievabilityException\n ( \"POMDPAssetDimensionModel.createInitialBeliefState()\",\n \"Asset model is NULL\" );\n \n if ( _logger.isDetailEnabled() )\n _logger.detail( \"\\tCreating POMDP iinitial belief for dimension: \" \n + _asset_dim_model.getStateDimensionName( ) );\n\n int num_vals = _asset_dim_model.getNumStateDimValues( );\n \n if ( num_vals < 0 )\n throw new BelievabilityException\n ( \"POMDPAssetDimensionModel.createInitialBeliefState()\",\n \"Asset model returning zero values: \"\n + _asset_dim_model.getStateDimensionName( ) );\n \n double[] belief_prob = new double[num_vals];\n \n int default_idx = _asset_dim_model.getDefaultStateIndex( );\n \n if ( default_idx < 0 )\n throw new BelievabilityException\n ( \"POMDPAssetDimensionModel.createInitialBeliefState()\",\n \"Asset model returning invalid default value: \"\n + _asset_dim_model.getStateDimensionName( ) );\n\n // We assume that each asset state dimension starts off\n // deterministically in a single possible state value.\n //\n belief_prob[default_idx] = 1.0;\n \n _initial_belief = new BeliefStateDimension( _asset_dim_model,\n belief_prob,\n null );\n\n }", "BeliefStateDimension getInitialBeliefState() \n {\n return _initial_belief; \n }", "private static State generateInitialState(double initialHeuristic) {\n ArrayList<List<Job>> jobList = new ArrayList<>(RecursionStore.getNumberOfProcessors());\n for (int i = 0; i < RecursionStore.getNumberOfProcessors(); i++) {\n jobList.add(new ArrayList<>());\n }\n int[] procDur = new int[RecursionStore.getNumberOfProcessors()];\n java.util.Arrays.fill(procDur, 0);\n return new State(jobList, procDur, initialHeuristic, 0);\n }", "@Override\n\tpublic StateMachine getInitialStateMachine() {\n\t\tlong startTime = System.currentTimeMillis();\n\t\tstateMachines.clear();\n\t\tStateMachine firstMachine = new FirstPropNetStateMachine();\n\t\tlong stopTime = System.currentTimeMillis();\n\t\tpropNetCreationTime = stopTime - startTime;\n\t\tSystem.out.println(\"PropNetCreationTime: \" + propNetCreationTime);\n\t\tstateMachines.add(firstMachine);\n\t\treturn firstMachine;\n\t}", "private void initState() {\r\n double metaintensity=0;\r\n double diffr=0;\r\n for(int ii=0; ii < Config.numberOfSeeds; ii++)\r\n {\r\n Cur_state[ii] = this.seeds[ii].getDurationMilliSec();\r\n// Zeit2 = this.seeds[1].getDurationMilliSec();\r\n// Zeit3 = this.seeds[2].getDurationMilliSec();\r\n// LogTool.print(\"Zeit 1 : \" + Zeit1 + \"Zeit 2 : \" + Zeit2 + \"Zeit 3 : \" + Zeit3, \"notification\");\r\n// LogTool.print(\"initState: Dwelltime Seed \" + ii + \" : \" + Cur_state[ii], \"notification\");\r\n// Cur_state[0] = Zeit1;\r\n// Cur_state[1] = Zeit2;\r\n// Cur_state[2] = Zeit3;\r\n }\r\n \r\n if ((Config.SACostFunctionType==3)||(Config.SACostFunctionType==1)) {\r\n for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) {\r\n for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n// this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n this.body2[x][y][z].metavalue = 0.0;\r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n metaintensity = this.body2[x][y][z].radiationIntensityNoTime((this.seeds2[i].getCoordinate()));\r\n // radiationIntensityNoTime(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (metaintensity>0) {\r\n // LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n // this.body2[x][y][z].addCurrentDosis(metaintensity);\r\n this.body2[x][y][z].metavalue += metaintensity; \r\n// Das ist implementation one\r\n } \r\n } \r\n }\r\n }\r\n// this.body = this.body2;\r\n } else {\r\n \r\n // for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) { \r\n for(int x=0; x < Solver.dimensions[0]; x+= Config.scaleFactor) {\r\n // for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int y=0; y < Solver.dimensions[1]; y+= Config.scaleFactor) {\r\n // for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n for(int z=0; z < Solver.dimensions[2]; z+= Config.scaleFactor) {\r\n // this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n this.body2[x][y][z].metavalue = 0.0;\r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n metaintensity = this.body2[x][y][z].radiationIntensityNoTime((this.seeds2[i].getCoordinate()));\r\n // radiationIntensityNoTime(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (metaintensity>0) {\r\n // LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n // this.body2[x][y][z].addCurrentDosis(metaintensity);\r\n this.body2[x][y][z].metavalue += metaintensity;\r\n this.body[x][y][z].metavalue = 0; \r\n this.body[x][y][z].metavalue += this.body2[x][y][z].metavalue;\r\n // Das ist implementation one\r\n } \r\n } \r\n }\r\n }\r\n// this.body = this.body2;\r\n diffr = ((this.body[43][43][43].metavalue)-(this.body2[43][43][43].metavalue));\r\n LogTool.print(\"Shallowcopy Check, value should be 0 :\" + diffr + \"@ 43,43,43 \",\"notification\");\r\n }\r\n }", "@Override\n\tpublic double timeToInitialize() {\n\t\treturn 0;\n\t}", "public State (){\n for ( int i = 0 ; i < 5; i ++){\n philosopherNum[i] = i;\n currentState[i] = \"thinking\";\n conditions[i] = mutex.newCondition();\n }\n }", "public abstract State getStateAtTime(double t);", "@Override\n\tpublic void runFor(BigDecimal timeDiff) {\n\t\tif (timeDiff.$less(ONE)) {\n\t\t\tthrow new BndNetworkException(\"Network BO uses discrete time. Can't run it for \" + timeDiff + \" time steps.\");\n\t\t}\n\t\tDouble diff = timeDiff.toDouble();\n\t\tfor (int i = 0; i < diff; i++) {\n\t\t\tupdateState();\n\t\t}\n\t}", "@Override\n\tpublic void stateMachineMetaGame(long timeout)\n\t\t\tthrows TransitionDefinitionException, MoveDefinitionException,\n\t\t\tGoalDefinitionException {\n\n\t\tif (propNetCreationTime == 0)\n\t\t\tpropNetCreationTime = 1;\n\t\tlong estimatedThreadsToCreate = (timeout - System.currentTimeMillis())\n\t\t\t\t/ propNetCreationTime;\n\t\tSystem.out.println(\"Estimating I can create \"\n\t\t\t\t+ estimatedThreadsToCreate + \" propNets in given time.\");\n\t\t// int MAX_NUM_THREADS = 4;\n\t\tfor (int i = 1; i < Math\n\t\t\t\t.min(BryceMonteCarloTreeSearch_NoMiniMax_MultiThreaded.MAX_NUM_THREADS,\n\t\t\t\t\t\testimatedThreadsToCreate); i++) {\n\t\t\tFirstPropNetStateMachine first = new FirstPropNetStateMachine();\n\t\t\tfirst.initialize(((FirstPropNetStateMachine) stateMachines.get(0))\n\t\t\t\t\t.getDescription());\n\t\t\tstateMachines.add(first);\n\t\t\tSystem.out.println(\"added new prop machine: \" + i);\n\t\t\tif (System.currentTimeMillis() > timeout)\n\t\t\t\tbreak;\n\t\t}\n\t}", "protected void computeInitialTournamentState(int roundNumber) {\n\t\tcomputePresentPleyers();\n\t\tcomputeCurrentResults(roundNumber);\n\t\tcomputeCollorHistory(roundNumber);\n\t\tcomputePartnersHistory(roundNumber);\n\t\tcomputeUpfloatCounts(roundNumber);\n\t\tcomputeDlownFloatCounts(roundNumber);\n\t}", "@Override\n public float getStateTime() {\n return stateTime;\n }", "protected void initialize() {\n \t\n \tstart_time = System.currentTimeMillis();\n \t\n \tgoal = start_time + duration;\n }", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6900, \"inverted=true\", \"power=0\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6901, \"inverted=true\", \"power=1\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6902, \"inverted=true\", \"power=2\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6903, \"inverted=true\", \"power=3\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6904, \"inverted=true\", \"power=4\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6905, \"inverted=true\", \"power=5\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6906, \"inverted=true\", \"power=6\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6907, \"inverted=true\", \"power=7\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6908, \"inverted=true\", \"power=8\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6909, \"inverted=true\", \"power=9\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6910, \"inverted=true\", \"power=10\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6911, \"inverted=true\", \"power=11\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6912, \"inverted=true\", \"power=12\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6913, \"inverted=true\", \"power=13\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6914, \"inverted=true\", \"power=14\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6915, \"inverted=true\", \"power=15\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6916, \"inverted=false\", \"power=0\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6917, \"inverted=false\", \"power=1\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6918, \"inverted=false\", \"power=2\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6919, \"inverted=false\", \"power=3\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6920, \"inverted=false\", \"power=4\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6921, \"inverted=false\", \"power=5\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6922, \"inverted=false\", \"power=6\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6923, \"inverted=false\", \"power=7\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6924, \"inverted=false\", \"power=8\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6925, \"inverted=false\", \"power=9\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6926, \"inverted=false\", \"power=10\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6927, \"inverted=false\", \"power=11\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6928, \"inverted=false\", \"power=12\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6929, \"inverted=false\", \"power=13\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6930, \"inverted=false\", \"power=14\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6931, \"inverted=false\", \"power=15\"));\n }", "public static POMDPState sampleInitialStates(Domain d) {\n\t\tPOMDPState s = new POMDPState();\n\n\t\t//Retrieve object classes from the domain.\n\t\tObjectClass containerClass = d.getObjectClass(Names.CLASS_CONTAINER);\n\t\tObjectClass babyClass = d.getObjectClass(Names.CLASS_BABY);\n\t\tObjectClass contentClass = d.getObjectClass(Names.CLASS_CONTENT);\n\t\tObjectClass humanClass = d.getObjectClass(Names.CLASS_HUMAN);\n\n\t\t//Create all the objects \n\t\tObjectInstance caregiver = new ObjectInstance(humanClass, Names.OBJ_CAREGIVER);\n\t\tObjectInstance baby = new ObjectInstance(babyClass, Names.OBJ_BABY);\n\t\tObjectInstance ointment = new ObjectInstance(contentClass, Names.OBJ_OINTMENT);\n\t\tObjectInstance oldClothes = new ObjectInstance(contentClass, Names.OBJ_OLD_CLOTHES);\n\t\tObjectInstance newClothes = new ObjectInstance(contentClass, Names.OBJ_NEW_CLOTHES);\n\t\tObjectInstance changingTable = new ObjectInstance(containerClass, Names.OBJ_CHANGING_TABLE);\n\t ObjectInstance hamper = new ObjectInstance(containerClass, Names.OBJ_HAMPER);\n\t\tObjectInstance sideTable = new ObjectInstance(containerClass, Names.OBJ_SIDE_TABLE);\n\t ObjectInstance dresser = new ObjectInstance(containerClass, Names.OBJ_DRESSER);\n\n\t\t//Set the \tproper values for objects' attributes\n\t\tchangingTable.setValue(Names.ATTR_OPEN, 1);\n\t hamper.setValue(Names.ATTR_OPEN, 1);\n\t\tsideTable.setValue(Names.ATTR_OPEN, 1);\n\t\tdresser.setValue(Names.ATTR_OPEN, 0);\n\t\tbaby.setValue(Names.ATTR_RASH, new java.util.Random().nextBoolean() ? 1 : 0);\n\n\t\t//Place contents in the proper initial container\n\t\tplaceObject(newClothes, dresser);\n\t\tplaceObject(oldClothes, changingTable);\n\t\tplaceObject(ointment, sideTable);\n\n\t\t//Add objects to the state, and have the caregiver decide on its mental state\n\t\taddObjects(s, caregiver, baby, oldClothes, newClothes, changingTable, hamper, sideTable, dresser, ointment);\n\t\tcaregiverThink(d, s);\n\n\t\t//Et voila\n\t\treturn s;\n\t}", "public Object setInitialHoldings()\r\n/* */ {\r\n\t\t\t\tlogger.info (count++ + \" About to setInitialHoldings : \" + \"Agent\");\r\n/* 98 */ \tthis.profit = 0.0D;\r\n/* 99 */ \tthis.wealth = 0.0D;\r\n/* 100 */ \tthis.cash = this.initialcash;\r\n/* 101 */ \tthis.position = 0.0D;\r\n/* */ \r\n/* 103 */ return this;\r\n/* */ }", "public static FrequentFlyer withInitialBalanceOf(int b) {\n\t\tFrequentFlyer f = new FrequentFlyer();\n\t\tf.balance = b;\n\t\tif(f.balance < 10000) f.status = \"Bronze\";\n\t\telse if(f.balance >= 10000) f.status = \"Silver\";\n\t\treturn f;\n\t}", "public NewTransitionRecord(){\r\n fromstate = 0;\r\n tostate = 0;\r\n rate = 0.0;\r\n }", "BeliefStateDimension getRandomBeliefState( )\n throws BelievabilityException\n {\n if ( _asset_dim_model == null )\n throw new BelievabilityException\n ( \"POMDPAssetDimensionModel.getRandomBeliefState()\",\n \"Asset type dimension model is NULL\" );\n \n if ( _logger.isDetailEnabled() )\n _logger.detail( \"\\tCreating POMDP random belief for dimension: \" \n + _asset_dim_model.getStateDimensionName( ) );\n\n int num_vals = _asset_dim_model.getNumStateDimValues( );\n \n if ( num_vals < 0 )\n throw new BelievabilityException\n ( \"POMDPAssetDimensionModel.getRandomBeliefState()\",\n \"Asset dimension model returning zero values: \"\n + _asset_dim_model.getStateDimensionName() );\n\n double[] belief_prob = new double[num_vals];\n \n ProbabilityUtils.setRandomDistribution( belief_prob );\n \n return new BeliefStateDimension( _asset_dim_model,\n belief_prob,\n null );\n\n }", "public void randomizeState() {\n\t\t//System.out.print(\"Randomizing State: \");\n\t\tArrayList<Integer> lst = new ArrayList<Integer>();\n\t\tfor(int i = 0; i<9; i++)// adds 0-8 to list\n\t\t\tlst.add(i);\n\t\tCollections.shuffle(lst);//randomizes list\n\t\tString str=\"\";\n\t\tfor(Integer i : lst)\n\t\t\tstr += String.valueOf(i);\n\t\t//System.out.println(str);\n\t\tcurrent = new PuzzleState(str,current.getString(current.getGoalState()));\n\t\t//pathCost++;\n\t}", "private List<MetricalLpcfgMetricalModelState> getAllFirstStepBranches() {\n\t\tList<MetricalLpcfgMetricalModelState> newStates = new ArrayList<MetricalLpcfgMetricalModelState>();\n\t\t\n\t\tlong lastTime = notesToCheck.peek().getOffsetTime();\n\t\tlong lastBeatTime = beatState.getBeats().get(beatState.getBeats().size() - 1).getTime();\n\t\t\n\t\t// No notes have finished yet, we must still wait\n\t\tif (lastBeatTime < lastTime) {\n\t\t\tnewStates.add(this);\n\t\t\treturn newStates;\n\t\t}\n\t\t\n\t\t// A note has finished, add measure hypotheses\n\t\tfor (int subBeatLength = 1; subBeatLength <= 1; subBeatLength++) {\n\t\t\t\n\t\t\tfor (Measure measure : grammar.getMeasures()) {\n\t\t\t\t\n\t\t\t\tint subBeatsPerMeasure = measure.getBeatsPerMeasure() * measure.getSubBeatsPerBeat();\n\t\t\t\tfor (int anacrusisLength = 0; anacrusisLength < subBeatsPerMeasure; anacrusisLength++) {\n\t\t\t\t\t\n\t\t\t\t\tMetricalLpcfgMetricalModelState newState =\n\t\t\t\t\t\t\tnew MetricalLpcfgMetricalModelState(this, grammar, measure, subBeatLength, anacrusisLength);\n\t\t\t\t\tnewState.updateMatchType();\n\t\t\t\t\t\n\t\t\t\t\t// This hypothesis could match the first note\n\t\t\t\t\tif (!newState.isWrong()) {\n\t\t\t\t\t\tnewStates.add(newState);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (Main.VERBOSE) {\n\t\t\t\t\t\t\tSystem.out.println(\"Adding \" + newState);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn newStates;\n\t}", "@Override\r\n\tpublic void init() { \r\n\t\t\r\n\t\tsession = -1;\r\n\t\t\r\n\t\tProgressDif = 0;\r\n\t\tnoisFact = 0;\r\n\t\tcompromiseFact = 0;\r\n\t\t\r\n\t\tcompromiseLearn = 20;\r\n\t\tprogressLearn = 10;\r\n\t\tnoisLearn = 0.2;\r\n\t\t\r\n\t\treservationPanic = 0.2;\r\n\t\tmyBids = new ArrayList<Pair<Bid,Double>>();\r\n\t\topponentBidsA = new Vector<ArrayList<Pair<Bid,Double>>>();\r\n\t\topponentBidsB = new Vector<ArrayList<Pair<Bid,Double>>>();\r\n\r\n\t\tdf = utilitySpace.getDiscountFactor();\r\n\t\tif (df==0) df = 1; \r\n\r\n\t\ttry {\r\n\t\t\tinitStates();\r\n\t\t} catch (Exception e) {\r\n \t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\t}", "@Override\n public A makeDecision(S state) {\n metrics = new Metrics();\n StringBuffer logText = null;\n P player = game.getPlayer(state);\n List<A> results = orderActions(state, game.getActions(state), player, 0);\n timer.start();\n currDepthLimit = 0;\n do {\n incrementDepthLimit();\n if (logEnabled)\n logText = new StringBuffer(\"depth \" + currDepthLimit + \": \");\n heuristicEvaluationUsed = false;\n ActionStore<A> newResults = new ActionStore<>();\n for (A action : results) {\n double value = minValue(game.getResult(state, action), player, Double.NEGATIVE_INFINITY,\n Double.POSITIVE_INFINITY, 1);\n if (timer.timeOutOccurred())\n break; // exit from action loop\n newResults.add(action, value);\n if (logEnabled)\n logText.append(action).append(\"->\").append(value).append(\" \");\n }\n if (logEnabled)\n System.out.println(logText);\n if (newResults.size() > 0) {\n results = newResults.actions;\n if (!timer.timeOutOccurred()) {\n if (hasSafeWinner(newResults.utilValues.get(0)))\n break; // exit from iterative deepening loop\n else if (newResults.size() > 1\n && isSignificantlyBetter(newResults.utilValues.get(0), newResults.utilValues.get(1)))\n break; // exit from iterative deepening loop\n }\n }\n } while (!timer.timeOutOccurred() && heuristicEvaluationUsed);\n return results.get(0);\n }", "@Override\n public void initialize() {\n conveyor.setBallCount(0);\n conveyor.startTime(); \n }", "public void initState() {\n\n\t\tdouble bsc_p = 0.09; // TODO : doit dependre du souffle !?\n\t\tfor (int i=0; i<n; i++) lambda[i] = 0;\n\t\taddBSCnoise(lambda, bsc_p); \n\t\t// lambda: log likelihood ratio\n\t\tcalc_q0(lambda);\n\n\t\t// initialization of beta\n\t\tfor (int i = 0; i <= m - 1; i++) {\n\t\t\tfor (int j = 0; j <= row_weight[i] - 1; j++) {\n\t\t\t\tbeta[i][j] = 0.0;\n\t\t\t}\n\t\t}\t\t\n\n\t}", "public int trainIteration(int initialState) {\n\t\t\n\t\tif(initialState == -1) {\n\t\t\tinitialState = (int)(Math.random() * this.rows);\n\t\t}\n\t\t\n\t\t\n\t\tboolean actionChosen = false;\n\t\tint action = -1;\n\t\t\n\t\tdouble check = Math.random();\n\t\t\n\t\tif(check > explorationRate) {\n\t\t\taction = getOptimalAction(initialState);\n\t\t}else {\n\t\t\twhile(!actionChosen) {\n\t\t\t\taction = (int)(Math.random() * this.columns);\n\t\t\t\tif(!isActionLegal(initialState, action)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}else {\n\t\t\t\t\tactionChosen = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Check if action legal\n\t\t\n\n\t\t\n\t\tSystem.out.println(\"Training iteration! Chosen initialState: \" + initialState + \" and action: \" + action);\n\t\t\n\t\t// Obtain next state\n\t\t\n\t\tint newLocation = getStateActionMap(initialState, action);\n\t\t\n\t\tSystem.out.println(\"New location is: \" + newLocation);\n\t\t\n\t//\tint nCol = newLocation % (int)Math.sqrt(this.rows);\n\t//\tint nRow = (newLocation - nCol)/(int)Math.sqrt(this.rows);\n\t\t\n\t\t// Obtain immediate reward\n\t\t\n\t\tint immediateReward = getReward(initialState, action);\n\t\t\n\t\tSystem.out.println(\"De immediate reward is: \" + immediateReward);\n\t\t\n\t\t// Update Q-table\n\t\t\n\t\tint totalReward = (int)(immediateReward + this.gamma * recurseReward(newLocation));\n\t\tthis.qGrid[initialState][action] = totalReward;\n\t\t\n\t\treturn action;\n\t}", "public void calcTimeTrace() \r\n\t{\r\n\t\t\r\n\t\t\r\n\t\tRandom generator = new Random ();\t\r\n \r\n for (int i=1; i<numFrames;i++){\r\n\t\t\tIJ.showProgress(i, numFrames);\r\n\t\t\tfor (int j=0;j<numParticles;j++){\r\n\t\t\t\tdouble changeState=generator.nextDouble();\r\n\t\t\t\tif (timeTrace[i-1][j]==1){\r\n\t\t\t\t\tif (changeState<switchOff) timeTrace[i][j]=0;\r\n\t\t\t\t\telse timeTrace[i][j]=1;\t\t\r\n\t\t\t\t}\r\n\t\t\t\tif (timeTrace[i-1][j]==0){\r\n\t\t\t\t\tif (changeState<switchOn) timeTrace[i][j]=1;\r\n\t\t\t\t\telse timeTrace[i][j]=0;\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n }\t\r\n\t}", "void create( State state );", "public void compileStates(int timeinterval) {\r\n\t\tif(timeinterval == -1) {\r\n\t\t\t//Add initial State\r\n\t\t\treachableStates.add(initialState);\r\n\t\t\tthis.numReachableState = 1;\r\n\t\t\t\r\n\t\t}else{\t\t\t\t\r\n\t\tState s;\r\n\t\tint index = 0;\r\n\t\treachableStates.clear();\r\n\t\tfor(int i = 0; i < totalWorkloadLevel; i++) {\r\n\t\t\tfor(int j = 0; j < totalGreenEnergyLevel; j++) {\r\n\t\t\t\tfor(int k = 0; k < totalBatteryLevel; k++) {\r\n\t\t\t\t\ts = grid[timeinterval][i][j][k];\r\n\t\t\t\t\tif(s.getProbability() != 0) {\r\n\t\t\t\t\t\t//If probability of state is not 0, put this state into the reachable list. \r\n\t\t\t\t\t\ts.index = index;\r\n\t\t\t\t\t\tindex++;\r\n\t\t\t\t\t\treachableStates.add(s);\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\tthis.numReachableState = index;\r\n\t\t}\r\n\t}", "public PulseTransitTime() {\n currPTT = 0.0;\n hmPeakTimes = new ArrayList<>();\n //maf = new MovingAverage(WINDOW_SIZE);\n }", "protected abstract T create(final double idealStartTime);", "@Override\n\tpublic void makeDecision() {\n\t\tDouble weightedFrontProximity;\n\t\tif (algorithmData.receiveMessageData != null && algorithmData.previousDistance != null) {\n\t\t\tdouble delay = (Time.getTime() - algorithmData.receiveMessageData.getStartTime()) / 100000000;\n\t\t\t//calculate the distance us and our predecessor have travelled since message received\n\t\t\talgorithmData.predictedPredecessorMovement = algorithmData.predecessorSpeed * delay\n\t\t\t\t\t+ 0.5 * algorithmData.predecessorAcceleration * delay * delay;\n\t\t\talgorithmData.predictedMovement = algorithmData.previousSpeed * delay\n\t\t\t\t\t+ 0.5 * algorithmData.previousAcceleration * delay * delay;\n\t\t\talgorithmData.predictedFrontProximity = algorithmData.predictedPredecessorMovement\n\t\t\t\t\t- algorithmData.predictedMovement + algorithmData.previousDistance;\n\n\t\t\talgorithmData.chosenSpeed = algorithmData.predecessorChosenSpeed;\n\t\t\talgorithmData.chosenTurnRate = algorithmData.predecessorTurnRate;\n\t\t} else {\n\t\t\t//no message received or no previous distance\n\t\t\talgorithmData.predictedFrontProximity = null;\n\t\t\talgorithmData.chosenSpeed = algorithmData.speed;\n\t\t\talgorithmData.chosenTurnRate = algorithmData.turnRate;\n\t\t}\n\t\tif (algorithmData.frontProximity != null && algorithmData.frontProximity > maxSensorDist) {\n\t\t\talgorithmData.frontProximity = null;\n\t\t}\n\t\tweightedFrontProximity = weightFrontProximity(algorithmData.predictedFrontProximity,\n\t\t\t\talgorithmData.frontProximity);\n\n\t\t// update previous state variables so that they are correct in next time period\n\t\talgorithmData.previousDistance = weightedFrontProximity;\n\t\talgorithmData.previousSpeed = algorithmData.speed;\n\t\talgorithmData.previousAcceleration = algorithmData.acceleration;\n\n\t\tif (weightedFrontProximity != null) {\n\t\t\tif (weightedFrontProximity < buffDist) {\n\t\t\t\tif (algorithmData.chosenAcceleration >= 0) {\n\t\t\t\t\talgorithmData.chosenAcceleration = algorithmData.chosenAcceleration * weightedFrontProximity / buffDist;\n\t\t\t\t} else {\n\t\t\t\t\t// if braking then divide by value so deceleration decreases if gap too small\n\t\t\t\t\talgorithmData.chosenAcceleration = algorithmData.chosenAcceleration / (weightedFrontProximity / buffDist);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (algorithmData.chosenAcceleration >= 0) {\n\t\t\t\t\talgorithmData.chosenAcceleration = algorithmData.chosenAcceleration\n\t\t\t\t\t\t\t* (0.75 + weightedFrontProximity / (4* buffDist));\n\t\t\t\t} else {\n\t\t\t\t\t// if braking then divide by value so deceleration decreases if gap too small\n\t\t\t\t\talgorithmData.chosenAcceleration = algorithmData.chosenAcceleration\n\t\t\t\t\t\t\t/ (0.75 + weightedFrontProximity / (4* buffDist));\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t//no messages received and proximity sensor not working\n\t\t\talgorithmData.chosenAcceleration = 0;\n\t\t}\n\n\n\t}", "public Agent(StateObservation so, ElapsedCpuTimer elapsedTimer)\n {\n actions = new ArrayList<> ();\n states = new ArrayList<> ();\n success = false;\n step = 0;\n }", "protected void initialize() {\n Timer.delay(7);\n ballIntake.turnOnHorizontalConveyor();\n ballIntake.verticalConveyor.set(-.3);\n }", "@Override\n protected Stopwatch initialValue() {\n return Stopwatch.createUnstarted(ticker);\n }", "public GameState(int initialStones) \n {\n \tif (initialStones < 1) initialStones = 4;\n \tfor (int i=0; i<6; i++)\n \t\tstate[i] = state[i+7] = initialStones;\n }", "long getInitialDelayInSeconds();", "public void updateState() {\n\t\tfloat uptime = .05f;\t\t\t// Amount of Time the up animation is performed\n\t\tfloat downtime = .35f;\t\t\t// Amount of Time the down animation is performed\n\t\tColor colorUp = Color.YELLOW;\t// Color for when a value is increased\n\t\tColor colorDown = Color.RED;\t// Color for when a value is decreased\n\t\tColor color2 = Color.WHITE;\t\t// Color to return to (Default Color. Its White btw)\n\t\t\n\t\t// Check to see if the Time has changed and we are not initializing the label\n\t\tif(!time.getText().toString().equals(Integer.toString(screen.getState().getHour()) + \":00\") && !level.getText().toString().equals(\"\")) {\n\t\t\t// Set the time label and add the animation\n\t\t\ttime.setText(Integer.toString(screen.getState().getHour()) + \":00\");\n\t\t\ttime.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(time.getText().toString().equals(\"\")) {\n\t\t\t// First time setting the label, dont add the animation\n\t\t\ttime.setText(Integer.toString(screen.getState().getHour()) + \":00\");\n\t\t}\n\t\t\n\t\t// Check to see if the Level has changed and we are not initializing the label\n\t\tif(!level.getText().toString().equals(screen.getState().getTitle()) && !level.getText().toString().equals(\"\")) {\n\t\t\tlevel.setText(\"Level: \" + screen.getState().getTitle());\n\t\t\tlevel.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(level.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the level label\n\t\t\tlevel.setText(\"Level: \" + screen.getState().getTitle());\n\t\t}\n\t\t\n\t\t// Check to see if the XP has changed and we are not initializing the label\n\t\tif(!xp.getText().toString().equals(\"XP: \" + Integer.toString(screen.getState().getXp())) && !xp.getText().toString().equals(\"\")) {\n\t\t\txp.setText(\"XP: \" + Integer.toString(screen.getState().getXp()));\n\t\t\txp.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(xp.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the XP label\n\t\t\txp.setText(\"XP: \" + Integer.toString(screen.getState().getXp()));\n\t\t}\n\t\t\n\t\t// Check to see if the Money has changed and we are not initializing the label\n\t\tif(!money.getText().toString().equals(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\") && !money.getText().toString().equals(\"\")) {\n\t\t\t\n\t\t\t// Check to see if the player's money went up. This is a mess but it works\n\t\t\t// Makes the change animation Yellow or Green depending on the change in money\n\t\t\tif(Double.parseDouble(money.getText().substring(1).toString()) <= screen.getState().getMoney())\n\t\t\t\tmoney.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\telse\n\t\t\t\tmoney.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorDown)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\t\n\t\t\t// Set the label to the new money\n\t\t\tmoney.setText(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\");\n\t\t\t\n\t\t} else if(money.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the Money Label\n\t\t\tmoney.setText(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\");\n\t\t}\n\t\t\n\t\t// Check to see if the Energy has changed and we are not initializing the label\n\t\tif(!energy.getText().toString().equals(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\") && !energy.getText().toString().equals(\"\")) {\n\t\t\t\n\t\t\t// Changes the animation to Yellow or Red depending on the change in the energy value\n\t\t\tif(Integer.parseInt(energy.getText().substring(3).split(\"/\")[0].toString()) < screen.getState().getEnergy())\n\t\t\t\tenergy.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\telse\n\t\t\t\tenergy.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorDown)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\t\n\t\t\t// Set the energy label\n\t\t\tenergy.setText(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\");\n\t\t} else if(energy.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the energy label if it isnt set\n\t\t\tenergy.setText(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\");\n\t\t}\n\t\t\n\t\t// Get the current date.\n\t\tint[] curDate = screen.getState().getDate();\n\t\t\t\n\t\t// Check to see if the Date has changed and we are not initializing the label\n\t\tif(!date.getText().toString().equals(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]) && !date.getText().toString().equals(\"\")) {\n\t\t\t// Set the date label and add the change animation\n\t\t\tdate.setText(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]);\n\t\t\tdate.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(date.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the date label\n\t\t\tdate.setText(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]);\n\t\t}\n\t\t\n\t\t// Set the log text\n\t\tlogLabel.setText(screen.getState().getLog());\n\t\t\n\t\t// Update the stats\n\t\tState state = screen.getState();\n\t\tstatsLabel.setText(\"XP: \" + state.getXp() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Level: \" + state.getLevel() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Title: \" + state.getTitle() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Popularity: \" + state.getPopularity() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Year \" + state.getDate()[0] + \" Month \" + state.getDate()[1] + \" Day \" + state.getDate()[2] + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Hour: \" + state.getHour() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Energy: \" + state.getEnergy() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Current Funds: \" + state.getMoney() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Money Earned: \" + state.getEarned_money() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Money Spent: \" + state.getSpent_money());\n\t}", "public void createStartState(){\n\t\tState startState = new State();\n\t\tstartState.setName(\"qStart\");\n\t\taddState(startState);\n\t\tthis.startState = startState;\n\t}", "private void advanceBeliefs(int b) {\n\t\tdouble sum = 0;\n\t\tdouble[][] newbel = new double[beliefs.length][beliefs[0].length];\n\t\tfor (int x =0; x < beliefs.length; x++) {\n\t\t\tfor (int y = 0; y < beliefs[0].length; y++) {\n\t\t\t\tdouble statesum = 0; // belief in each state is the sum of beliefs in possible previous state times the probability of the transition\n\t\t\t\tfor (int px = 0; px < beliefs.length; px++) {\n\t\t\t\t\tfor (int py = 0; py < beliefs[0].length; py++) {\n\t\t\t\t\t\tstatesum += beliefs[px][py] * world.transitionProbability(x, y, px, py, b);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tnewbel[x][y] = statesum;\n\t\t\t\tsum += newbel[x][y];\n\t\t\t}\n\t\t}\n\t\t// now normalise them\n\t\tfor (int x = 0; x < beliefs.length; x++) {\n\t\t\tfor (int y = 0; y < beliefs[0].length; y++) {\n\t\t\t\tnewbel[x][y] /= sum;\n\t\t\t}\n\t\t}\n\t\tbeliefs = newbel;\n\t}", "public S getRandomState();", "private int computeState() {\n int state;\n if (corePd)\n state = 1; //power down state\n else\n state = 2; // core, e.g. crystal on state\n if (!corePd && !biasPd)\n state = 3; // crystal and bias on state\n if (!corePd && !biasPd && !fsPd)\n state = 4; // crystal, bias and synth. on\n if (!corePd && !biasPd && !fsPd && !rxtx && !rxPd)\n state = 5; // receive state\n if (!corePd && !biasPd && !fsPd && rxtx && !txPd)\n state = PA_POW_reg.getPower() + 6;\n return state;\n }", "public TimedStateMachineFactoryImpl() {\n\t\tsuper();\n\t}", "public static void simulate (\r\n double maxtime,\r\n double arrival_rate,\r\n double service_rate0,\r\n double service_rate1,\r\n double service_rate2, \r\n double service_rate3_1,\r\n double service_rate3_2,\r\n double service_rate3_3,\r\n double p1,double p2,double p3,int k, double p01, double p02, double p3out, double p31, double p32)\r\n {\n StateB sysB = new StateB();\r\n \r\n double time= 0;\r\n double value2= ExpB.getExp(arrival_rate);\r\n\r\n EventB e1 = new EventB(time+value2,\"Birth\",\"Null\");\r\n EventB e2= new EventB(time+value2,\"Moniter\",\"Null\");\r\n Schedule.add(e1);\r\n Schedule.add(e2);\r\n \r\n while(time < maxtime){\r\n EventB next = Schedule.remove();\r\n time= next.time;\r\n next.function(maxtime,arrival_rate,service_rate0,service_rate1,service_rate2, service_rate3_1,\r\n service_rate3_2,service_rate3_3,p1,p2,p3,k,p01,p02,p3out,p31,p32,sysB);\r\n \r\n \r\n \r\n\r\n }\r\n // System.out.println(Double.toString(sysB.t_busy_time0) );\r\n // System.out.println(Double.toString(sysB.t_busy_time1) );\r\n // System.out.println(Double.toString(sysB.Qlength0) );\r\n // System.out.println(Double.toString(sysB.Qlength1) );\r\n // System.out.println(Double.toString(sysB.monitering_event) );\r\n // System.out.println(Double.toString(sysB.num_drop) );\r\n // System.out.println(Double.toString(sysB.completed_request) );\r\n // System.out.println(Double.toString(sysB.t_response_time) );\r\n\r\n System.out.println();\r\n double util0 = sysB.t_busy_time0 / maxtime;\r\n System.out.println(\"S0 UTIL:\"+ \" \" + Double.toString(util0) );\r\n double qlen0 = sysB.Qlength0/ sysB.monitering_event;\r\n System.out.println(\"S0 QLEN:\"+\" \"+ Double.toString(qlen0) );\r\n double Tresp0 = sysB.t_response_time0/sysB.completed_request0;\r\n System.out.println(\"S0 TRESP:\" + \" \"+ Double.toString(Tresp0) );\r\n \r\n System.out.println();\r\n \r\n double util11 = sysB.t_busy_time11/ maxtime;\r\n System.out.println(\"S1,1 UTIL:\"+ \" \" + Double.toString(util11) );\r\n double util12 = sysB.t_busy_time12/ maxtime;\r\n System.out.println(\"S1,2 UTIL:\"+ \" \" + Double.toString(util12) );\r\n double qlen11 = sysB.Qlength1/ sysB.monitering_event;\r\n System.out.println(\"S1 QLEN:\"+\" \"+ Double.toString(qlen11) );\r\n double Tresp11 = sysB.t_response_time1/ sysB.completed_request1;\r\n System.out.println(\"S1 TRESP:\" + \" \"+ Double.toString(Tresp11) );\r\n \r\n \r\n // System.out.println();\r\n // double util12 = sysB.t_busy_time12/ maxtime;\r\n // System.out.println(\"S1,2 UTIL:\"+ \" \" + Double.toString(util12) );\r\n // double qlen12 = sysB.Qlength1/ sysB.monitering_event;\r\n // System.out.println(\"S1,2 QLEN:\"+\" \"+ Double.toString(qlen12) );\r\n // double Tresp12 = sysB.t_response_time12/sysB.completed_request12;\r\n // System.out.println(\"S1,2 TRESP:\" + \" \"+ Double.toString(Tresp12) );\r\n\r\n System.out.println();\r\n double util2 = sysB.t_busy_time2/ maxtime;\r\n System.out.println(\"S2 UTIL:\"+ \" \" + Double.toString(util2) );\r\n double qlen2 = sysB.Qlength2/ sysB.monitering_event;\r\n System.out.println(\"S2 QLEN:\"+\" \"+ Double.toString(qlen2) );\r\n double Tresp2 = sysB.t_response_time2/sysB.completed_request2;\r\n System.out.println(\"S2 TRESP:\" + \" \"+ Double.toString(Tresp2) );\r\n System.out.println(\"S2 DROPPED:\" + \" \"+ Integer.toString(sysB.num_drop));\r\n\r\n System.out.println();\r\n double util3 = sysB.t_busy_time3/ maxtime;\r\n System.out.println(\"S3 UTIL:\"+ \" \" + Double.toString(util3) );\r\n double qlen3 = sysB.Qlength3/ sysB.monitering_event;\r\n System.out.println(\"S3 QLEN:\"+\" \"+ Double.toString(qlen3) );\r\n double Tresp3 = sysB.t_response_time3/sysB.completed_request3;\r\n System.out.println(\"S3 TRESP:\" + \" \"+ Double.toString(Tresp3) );\r\n\r\n \r\n\r\n System.out.println();\r\n\r\n double qtotal = (sysB.Qlength0 + sysB.Qlength1 + sysB.Qlength2+sysB.Qlength3) / sysB.monitering_event;\r\n System.out.println(\"QTOT:\"+\" \"+ Double.toString(qtotal) );\r\n // double Totalresp= sysB.t_response_time0 + sysB.t_response_time2 +sysB.t_response_time11 +sysB.t_response_time12 + sysB.t_response_time3;\r\n \r\n double total = sysB.t_response_timefinal/sysB.completed_system;\r\n \r\n System.out.println(\"TRESP:\"+ \" \" + Double.toString(total));\r\n // System.out.println(sysB.Qlength1);\r\n // System.out.println(sysB.Qlength2);\r\n // System.out.println(sysB.Qlength3);\r\n // System.out.println(sysB.Qlength0);\r\n \r\n // System.out.println(\"TRESP:\"+ \" \" + Double.toString(TTRESP));\r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n }", "private void initializeProblemState()\r\n {\r\n\r\n problemState = new JTextArea(problem.getCurrentState().toString());\r\n problemState.setFont(new Font(Font.MONOSPACED, Font.BOLD, 24));\r\n finalProblemState = new JTextArea(problem.getFinalState().toString());\r\n finalProblemState.setFont(problemState.getFont());\r\n finalStateLabel.setBorder(new TitledBorder(\"Final State\"));\r\n finalStateLabel.setLayout(new FlowLayout());\r\n stateLabel.setBorder(new TitledBorder(\"Current State\"));\r\n stateLabel.setLayout(new FlowLayout());\r\n\r\n if (canvas != null)\r\n {\r\n stateLabel.add(canvas);\r\n canvas.render();\r\n stateLabel.setPreferredSize(new Dimension(canvas.getPreferredSize().width\r\n + DEFAULT_BUTTON_SPACING * 5,\r\n canvas.getPreferredSize().height + DEFAULT_BUTTON_SPACING * 5\r\n ));\r\n } else\r\n {\r\n stateLabel.add(problemState);\r\n stateLabel.setPreferredSize(new Dimension(problemState.getPreferredSize().width\r\n + (problemState.getFont().getSize() / 2),\r\n problemState.getPreferredSize().height + problemState.getFont().getSize() * 5 / 4));\r\n }\r\n if (finalStateCanvas != null)\r\n {\r\n finalStateLabel.add(finalStateCanvas);\r\n finalStateCanvas.render();\r\n finalStateLabel.setPreferredSize(stateLabel.getPreferredSize());\r\n } else\r\n {\r\n finalStateLabel.add(finalProblemState);\r\n finalStateLabel.setPreferredSize(stateLabel.getPreferredSize());\r\n }\r\n }", "public double nextArrivalTime() {\n return (-1 / lambda) * Math.log(1 - randomAT.nextDouble());\n }", "private void initProbs(final double recombinationProb, final double errorProb) {\n\n initialProbs = new EnumMap<>(IBDState.class);\n initialProbs.put(IBDState.ZERO, Math.log10(.33));\n initialProbs.put(IBDState.ONE, Math.log10(.33));\n initialProbs.put(IBDState.TWO, Math.log10(.33));\n\n transitionProbs = new EnumMap<>(IBDState.class);\n transitionProbs.put(IBDState.ZERO, new Double[]{Math.log10((1 - recombinationProb) - (errorProb / 2)), Math.log10(recombinationProb - (errorProb / 2)), Math.log10(errorProb)});\n transitionProbs.put(IBDState.ONE, new Double[]{Math.log10((recombinationProb / 2)), Math.log10(1 - recombinationProb), Math.log10(recombinationProb / 2)});\n transitionProbs.put(IBDState.TWO, new Double[]{Math.log10(errorProb), Math.log10(recombinationProb - (errorProb / 2)), Math.log10((1 - recombinationProb) - (errorProb / 2))});\n }", "public HoldingBasedBayesNet(TransitParameters transitParameter)\n\t{\n\t\t/*\n\t\tbayes = new BayesNetwork();\n\t\t\n\t\tdwellTimeNode = new ContinuousNode(\"DwellTime\");\n\t\trunningTimeNode = new ContinuousNode(\"RunningTime\");\n\t\theadwayAdherenceNode = new ContinuousNode(\"HeadwayAdherence\");\n\t\t\n\t\tutilityNode = new UtilityNode(\"Utility\");\n\t\t\n\t\tholdingAction=new DecisionAction(\"holdingaction\");\n\t\tnoAction=new DecisionAction(\"noaction\");\n\t\tactionNode = new DecisionNode(\"Action\",noAction,holdingAction);\n\t\t\n\t\t\n\t\tdwellTimeNode.setType(NodeType.CONTINUOUS_NODE);\n\t\trunningTimeNode.setType(NodeType.CONTINUOUS_NODE);\n\t\theadwayAdherenceNode.setType(NodeType.CONTINUOUS_NODE);\n\t\tactionNode.setType(NodeType.DECISION_NODE);\n\t\tutilityNode.setType(NodeType.UTILITY_NODE);\n\t\t\n\t\t\n\t\tbayes.setRootNodes(dwellTimeNode, runningTimeNode);\n\t\theadwayAdherenceNode.setParents(dwellTimeNode,runningTimeNode);\n\t\theadwayAdherenceNode.setChildren(actionNode);\n\t\tutilityNode.setParents(headwayAdherenceNode,actionNode);\n\t\t\n\t\t\t\n\t\texpectedHeadway = TransitParameters.SCHEDULE_HEADWAY_IN_MINUTE;\n\t\texpectedDeviation = TransitParameters.STANDARD_HEADWAY_DEVIATION_IN_MINUTE;\n\t\t*/\n\t}", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5568, \"facing=north\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5569, \"facing=north\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5570, \"facing=north\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5571, \"facing=north\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5572, \"facing=north\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5573, \"facing=north\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5574, \"facing=north\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5575, \"facing=north\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5576, \"facing=north\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5577, \"facing=north\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5578, \"facing=north\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5579, \"facing=north\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5580, \"facing=north\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5581, \"facing=north\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5582, \"facing=north\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5583, \"facing=north\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5584, \"facing=north\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5585, \"facing=north\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5586, \"facing=north\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5587, \"facing=north\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5588, \"facing=south\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5589, \"facing=south\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5590, \"facing=south\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5591, \"facing=south\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5592, \"facing=south\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5593, \"facing=south\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5594, \"facing=south\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5595, \"facing=south\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5596, \"facing=south\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5597, \"facing=south\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5598, \"facing=south\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5599, \"facing=south\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5600, \"facing=south\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5601, \"facing=south\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5602, \"facing=south\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5603, \"facing=south\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5604, \"facing=south\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5605, \"facing=south\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5606, \"facing=south\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5607, \"facing=south\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5608, \"facing=west\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5609, \"facing=west\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5610, \"facing=west\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5611, \"facing=west\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5612, \"facing=west\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5613, \"facing=west\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5614, \"facing=west\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5615, \"facing=west\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5616, \"facing=west\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5617, \"facing=west\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5618, \"facing=west\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5619, \"facing=west\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5620, \"facing=west\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5621, \"facing=west\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5622, \"facing=west\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5623, \"facing=west\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5624, \"facing=west\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5625, \"facing=west\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5626, \"facing=west\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5627, \"facing=west\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5628, \"facing=east\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5629, \"facing=east\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5630, \"facing=east\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5631, \"facing=east\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5632, \"facing=east\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5633, \"facing=east\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5634, \"facing=east\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5635, \"facing=east\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5636, \"facing=east\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5637, \"facing=east\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5638, \"facing=east\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5639, \"facing=east\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5640, \"facing=east\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5641, \"facing=east\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5642, \"facing=east\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5643, \"facing=east\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5644, \"facing=east\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5645, \"facing=east\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5646, \"facing=east\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5647, \"facing=east\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n }", "public State getState(Action action) { \n\t\tState newstate = new State(getTractor(), getK(), getMax(), getRows(), getColumns());\n\t\tfor (int i = 0; i < getRows(); i++) {\n\t\t\tfor (int j = 0; j < getColumns(); j++) {\n\t\t\t\tnewstate.cells[i][j] = new Square(i, j, cells[i][j].getSand()); \n\t\t\t}\n\t\t} \n\t\tnewstate.getSquare(newstate.getTractor()).setSand(newstate.getSquare(newstate.getTractor()).getSand()-action.distributedAmount());\n\t\tnewstate.tractor=(Square) action.getMovement();\n\t\tSquare[] adjacents = action.getAdjacents();\n\t\tint[] values = action.getValues();\n\n\t\tfor (int i = 0; i < adjacents.length; i++) {\n\t\t\tnewstate.getSquare(adjacents[i]).setSand(newstate.getSquare(adjacents[i]).getSand()+values[i]);\n\t\t}\n\t\treturn newstate;\n\t}", "@Override\n protected void initialize() {\n m_oldTime = Timer.getFPGATimestamp();\n m_oldError= m_desiredDistance;\n }", "public NewTransitionRecord(int from, int to, double r, int t) {\r\n fromstate = from;\r\n tostate = to;\r\n rate = r;\r\n transition = t;\r\n }", "@Test\n public void Test_Maintain_State() {\n Map<String, Integer> inMap = new HashMap<>();\n calc = new StomaStateCalculator(3, 800);\n\n inMap.put(\"UrineColour\", 2);\n inMap.put(\"UrineFrequency\", 3);\n inMap.put(\"Volume\", 600);\n inMap.put(\"Consistency\", 2);\n inMap.put(\"PhysicalCharacteristics\", 6);\n\n assertEquals(\"Green\", calc.getState());\n assertEquals(3.0, calc.getStateVal(), 0.0);\n\n calc.Calculate_New_State(inMap);\n\n assertEquals(\"Green\", calc.getState());\n assertEquals(3.0, calc.getStateVal(), 0.0);\n }", "public State hillClimbing(){\r\n\t\tState currentState = start;\r\n\t\t\r\n\t\twhile(true){\r\n\t\t\tArrayList<State> successors = currentState.generateNeighbours(currentState);\r\n\t\t\tStatesGenerated= StatesGenerated + successors.size();\r\n\t\t\t\r\n\t\t\tState nextState = null;\r\n\t\t\t\r\n\t\t\tfor(int i=0; i<successors.size(); i++){\r\n\t\t\t\tif(successors.get(i).compareTo(currentState) < 0){\r\n\t\t\t\t\tnextState = successors.get(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(nextState==null)\r\n\t\t\t\treturn currentState;\r\n\t\t\t\r\n\t\t\tcurrentState = nextState;\r\n\t\t}\r\n\t}", "public Thresholding(ThresholdsState ts) { // Sets the constants for thresholding for each pitch \n\t\tredBallThresh[0][0] = 130;\n\t\tredBallThresh[0][1] = 90;\n\t\tredBallThresh[0][2] = 90;\n\t\tredBallThresh[1][0] = 170;\n\t\tredBallThresh[1][1] = 170;\n\t\tredBallThresh[1][2] = 170;\n\t\tyellowRobotThresh[0][0] = 140;\n\t\tyellowRobotThresh[0][1] = 140;\n\t\tyellowRobotThresh[0][2] = 170;\n\t\tyellowRobotThresh[1][0] = 150;\n\t\tyellowRobotThresh[1][1] = 190;\n\t\tyellowRobotThresh[1][2] = 140;\n\t\tblueRobotThresh[0][0] = 120;\n\t\tblueRobotThresh[0][1] = 170;\n\t\tblueRobotThresh[0][2] = 90;\n\t\tblueRobotThresh[1][0] = 160;\n\t\tblueRobotThresh[1][1] = 230;\n\t\tblueRobotThresh[1][2] = 215;\n\n\n\t\tgreenPlatesThresh[0][0] = 120;\n\t\tgreenPlatesThresh[1][0] = 205;\n\n\n\t\tthis.ts = ts;\n\n\t}", "public static double[] prepState(double[] b, double[] a,double[] state){\n\t\tdouble kdc = sum(b)/sum(a);\n\t\tdouble[] temp = new double[a.length];\n\t\t//Initialise state if kdc is not infinity or NaN\n\t\tif (Math.abs(kdc) < Double.POSITIVE_INFINITY && !Double.isNaN(kdc)){\n\t\t\t\n\t\t\tfor (int i = 0;i<a.length;++i){\n\t\t\t\ttemp[i] = b[i]-kdc*a[i];\n\t\t\t}\n\t\t\ttemp = reverse(temp);\n\t\t\tfor (int i = 1;i<temp.length;++i){\n\t\t\t\ttemp[i] += temp[i-1];\n\t\t\t}\n\t\t\ttemp = reverse(temp);\n\t\t\tfor (int i = 1;i<temp.length;++i){\n\t\t\t\tstate[i-1] = temp[i];\n\t\t\t}\n\t\t}\n\t\treturn state;\n\t}", "private void initialize(Node startNode, long calculationTime) {\n int games = 0;\n simulationDepth = 0;\n startNode.setParent(null); // Deletes all the previous states by creating floating objects for garbage collection\n long startTime = System.currentTimeMillis();\n while (System.currentTimeMillis() - startTime < calculationTime) {\n run(startNode);\n games++;\n }\n if (System.currentTimeMillis() - startTime > calculationTime + 250) {\n System.out.println(\"Memory issues spotted!\");\n }\n System.out.println(\"Depth: \" + simulationDepth);\n System.out.println(\"Games: \" + games);\n }", "public void start() {\r\n\t\ttimeKeyB = timeAmount + System.nanoTime();\r\n\t}", "public static ElevatorState changeStateFactory(String stateElavator) {\n\t\tif(stateElavator==\"UP\") {\n\t\t\treturn new UpState();\n\t\t}else if(stateElavator==\"DOWN\") {\n\t\t\treturn new DownState();\n\t\t}else {\n\t\t\treturn new StopState();\n\t\t}\n\t}", "public HanabiState(int nbOfPlayers) {\r\n\t\tif (nbOfPlayers < 2 || nbOfPlayers > 5) {\r\n\t\t\tthrow new IllegalStateException(\"The number of players should be between 2 and 5 included\");\r\n\t\t}\r\n\t\tthis.nbOfPlayers = nbOfPlayers;\r\n\t\tinitCardsByColor();\r\n\t\tinitDeck();\r\n\t\tinitCardsByPlayers(nbOfPlayers > 3 ? 4 : 5);\r\n\t}", "public MLPAgent(StateObservation stateObs, ElapsedCpuTimer elapsedTimer) {\n\n }", "@Test\n public void genNeighStateProbability() {\n double[] metrics = new double[STATES.length * STATES.length];\n double sum = 0;\n Random rand = new Random();\n for (int i = 0; i < metrics.length; i++) {\n int x = i / STATES.length;\n int y = i % STATES.length;\n if (x == y) {\n metrics[i] = 0;\n } else {\n double d = Math.abs(rand.nextGaussian());//Math.exp(-Math.abs(STATES[x] - STATES[y]) / 3) * Math.abs(rand.nextGaussian());\n metrics[i] = d;\n sum += d;\n }\n }\n final double finalSum = sum;\n metrics = DoubleStream.of(metrics).map(d -> d / finalSum).toArray();\n for (int i = 0; i < metrics.length; i++) {\n int x = i / STATES.length;\n int y = i % STATES.length;\n if (metrics[i] > 0.01) {\n System.out.printf(\"%d:%d:%.4f\\n\", STATES[x], STATES[y], metrics[i]);\n }\n }\n }", "void reinitialize(double nodeRadius, boolean weighted){\n /* see constructor method for body description*/\n\n double vectorX = x2 - x1;\n double vectorY = y2 - y1;\n double length = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));\n vectorX /= length;\n vectorY /= length;\n\n x1 += (nodeRadius + 2) * vectorX;\n y1 += (nodeRadius + 2) * vectorY;\n x2 -= (nodeRadius + 2) * vectorX;\n y2 -= (nodeRadius + 2) * vectorY;\n\n mainLine = new Line(x1, y1, x2, y2);\n mainLine.setStrokeWidth(3);\n\n double xWproj = -ARROW_WING * vectorX;\n double yWproj = -ARROW_WING * vectorY;\n double x = xWproj * COS_WING - yWproj * SIN_WING;\n double y = xWproj * SIN_WING + yWproj * COS_WING;\n firstWing = new Line(x2, y2, x2 + x, y2 + y);\n firstWing.setStrokeWidth(2);\n\n x = xWproj * COS_WING + yWproj * SIN_WING;\n y = -xWproj * SIN_WING + yWproj * COS_WING;\n secondWing = new Line(x2, y2, x2 + x, y2 + y);\n secondWing.setStrokeWidth(2);\n\n if (((vectorX >= 0) && (vectorY >= 0))\n || ((vectorX <= 0) && (vectorY <= 0))) {\n weightText = new Text((x1 + x2) / 2., (y1 + y2) / 2., String.format(\"%.2f\", weight));\n }\n else {\n weightText = new Text((x1 + x2) / 2. - 30, (y1 + y2) / 2., String.format(\"%.2f\", weight));\n }\n\n weightText.setFont(new Font(15));\n weightText.setFill(TEXT_COLOR);\n weightText.setStroke(Color.BLACK);\n weightText.setStrokeWidth(0.5);\n if (!weighted){\n firstWing.setVisible(false);\n secondWing.setVisible(false);\n weightText.setVisible(false);\n }\n\n initialized = true;\n }", "public void train() {\n while (!environment.inTerminalState()) {\n\n Action action = policy.chooseAction(environment);\n List<Double> stateAction = environment.getStateAction(action);\n\n double knownReward = environment.immediateReward(action);\n double totalReward = environment.performAction(action);\n double unknownReward = totalReward - knownReward;\n\n // Next state of environment is implicitly passed.\n backup(stateAction, unknownReward);\n }\n }", "public void initialize (long step, long startTime)\n {\n this.stepSize = step;\n this.state = new AlgorithmState (step, startTime, getAlgorithmName());\n }", "public double ProcessArrivalTime()\r\n\t{\r\n\t\tdouble U = Math.random();\r\n\t\t//double lambda = 0.04;\r\n\t\tdouble lambda = 0.01;\r\n\t\tdouble V = ( -1 * (Math.log(1.0 - U)) ) / lambda; \r\n\t\treturn V;\r\n\t}", "public ActionState createActionState();", "public long getBorderLerpTime()\n {\n return borderSizeLerpTime;\n }", "public MCTS(State startState, int team, int calculationTime) {\n super(team);\n this.calculationTime = calculationTime;\n minimax = new Minimax(team, calculationTime);\n minimax.setUseTranspo(false);\n curr_node = new Node(startState);\n }", "@Override\n public ArrayList<Position> predictState(double time)\n {\n ArrayList<Position> predictedPosition = new ArrayList<Position>(1);\n\n // Assume position at time with velocity\n double deltaTime = time - lastPosUpdateTime_;\n if(pos_.size() != vel_.size())\n {\n System.out.println(\"Error pos_ size: \" + pos_.size() + \" and vel_ size: \" + vel_.size() +\n \" do not match\");\n }\n for(int i = 0; i < pos_.size(); ++i)\n {\n double position = pos_.get(i).getPosition() + (vel_.get(i).getVelocity() * deltaTime);\n predictedPosition.add( new Position(position));\n }\n return predictedPosition;\n\n }", "public void setBorderLerpTime(long time)\n {\n borderSizeLerpTime = time;\n }", "public MarkovDecisionProcess(int totalWorkloadLevel, int totalGreenEnergyLevel, int totalBatteryLevel, double prob[][][][], int maxTimeInterval) {\r\n\t\tthis.totalWorkloadLevel = totalWorkloadLevel;\r\n\t\tthis.totalGreenEnergyLevel = totalGreenEnergyLevel;\r\n\t\tthis.totalBatteryLevel = totalBatteryLevel;\r\n\t\tthis.prob = prob;\r\n\t\tthis.maxTimeInterval = maxTimeInterval;\r\n\t\t\r\n\t\t//Initial State, we set it at [0,0,0]\r\n\t\tinitialState = new State(0, 0, 0, 1, -999, -1);\r\n\t\tinitialState.setPath(initialState.toString());\r\n\t\t\r\n\t\tgrid = new State[maxTimeInterval][totalWorkloadLevel][totalGreenEnergyLevel][totalBatteryLevel]; \r\n\t\t\r\n\t\t//initialize the reward matix as all 0\r\n\t\trewardMatrix = new double[maxTimeInterval][totalWorkloadLevel*totalGreenEnergyLevel][totalWorkloadLevel*totalGreenEnergyLevel];\r\n\t\tbatteryLevelMatrix = new int[maxTimeInterval][totalWorkloadLevel*totalGreenEnergyLevel][totalWorkloadLevel*totalGreenEnergyLevel];\r\n\t\tactionMatrix = new String[maxTimeInterval][totalWorkloadLevel*totalGreenEnergyLevel][totalWorkloadLevel*totalGreenEnergyLevel];\r\n\t\tfor(int i = 0; i < maxTimeInterval; i++) {\r\n\t\t\tfor(int j = 0; j < totalWorkloadLevel*totalGreenEnergyLevel; j++) {\r\n\t\t\t\tfor(int k = 0; k < totalWorkloadLevel*totalGreenEnergyLevel; k++) {\r\n\t\t\t\t\trewardMatrix[i][j][k] = 0.0;\r\n\t\t\t\t\tbatteryLevelMatrix[i][j][k] = 0;\r\n\t\t\t\t\tactionMatrix[i][j][k] = null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\t//Initialize actions space, \r\n\t\tnumActions = totalWorkloadLevel * totalBatteryLevel;\r\n\t\t\r\n\t\tfor(int t =0; t < maxTimeInterval; t++) {\r\n\t\tfor(int i = 0; i < totalWorkloadLevel; i++) {\r\n\t\t\tfor(int j = 0; j < totalGreenEnergyLevel; j++) {\r\n\t\t\t\tfor(int k = 0; k < totalBatteryLevel; k++) {\r\n\t\t\t\t\tgrid[t][i][j][k] = new State(i ,j, k, prob[t][i][j][k], 0.0, t);\r\n\t\t\t\t\tif( t == maxTimeInterval - 1) {\r\n\t\t\t\t\t\tgrid[t][i][j][k].setTerminate();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t}\t\r\n\t\treachableStates = new Vector(totalWorkloadLevel*totalGreenEnergyLevel*totalBatteryLevel);\r\n\t\t\t\r\n\t}", "LabState state();", "private void initiatePreElection() {\n\t\tpreElectionInProgress = true;\n\t\tbackupHeartbeatTimer.cancel();\n\t\tif (reElectionTimer != null) {\n\t\t\treElectionTimer.cancel();\n\t\t}\n\t\tif (backupHeartbeatBroadcaster != null) {\n\t\t\tbackupHeartbeatBroadcaster.cancel();\n\t\t}\n\t\t// Broadcast election ordinality and reset isElectedFlag for all nodes\n\t\tfor (RemoteLoadBalancer remoteLoadBalancer : remoteLoadBalancers) {\n\t\t\tif (remoteLoadBalancer.isConnected() && remoteLoadBalancer.getState().equals(LoadBalancerState.PASSIVE)) {\n\t\t\t\tByteBuffer buffer = ByteBuffer.allocate(9);\n\t\t\t\tbuffer.put((byte) MessageType.ELECTION_MESSAGE.getValue());\n\t\t\t\tbuffer.putDouble(averageServerLatency);\t\n\t\t\t\tbuffer.flip();\n\t\t\t\ttry {\n\t\t\t\t\twhile (buffer.hasRemaining()) {\n\t\t\t\t\t\tremoteLoadBalancer.getSocketChannel().write(buffer);\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t}\n\t\t\t}\n\t\t\tremoteLoadBalancer.setIsElectedBackup(false);\n\t\t}\n\n\t\t// TimerTask created that will determine the election results after the\n\t\t// timeout occurs.\n\t\tTimerTask timerTask = new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tRemoteLoadBalancer lowestLatencyCandidate = null;\n\t\t\t\tfor (RemoteLoadBalancer remoteLoadBalancer : remoteLoadBalancers) {\n\t\t\t\t\tif (remoteLoadBalancer.getState().equals(LoadBalancerState.PASSIVE)\n\t\t\t\t\t\t\t&& remoteLoadBalancer.getCandidacyValue() != null) {\n\t\t\t\t\t\tif (lowestLatencyCandidate == null\n\t\t\t\t\t\t\t\t&& remoteLoadBalancer.getCandidacyValue() < averageServerLatency) {\n\t\t\t\t\t\t\tlowestLatencyCandidate = remoteLoadBalancer;\n\t\t\t\t\t\t} else if (lowestLatencyCandidate != null && remoteLoadBalancer\n\t\t\t\t\t\t\t\t.getCandidacyValue() < lowestLatencyCandidate.getCandidacyValue()) {\n\t\t\t\t\t\t\tlowestLatencyCandidate = remoteLoadBalancer;\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Didn't get a lowest latency election message so assume this\n\t\t\t\t// load balancer is now the backup\n\t\t\t\tif (lowestLatencyCandidate == null) {\n\t\t\t\t\tbackupHeartbeatTimer.cancel();\n\t\t\t\t\tisElectedBackup = true;\n\t\t\t\t\tbackupHeartbeatBroadcaster = new HeartbeatBroadcaster(remoteLoadBalancers, backupHeartbeatIntervalMillis,\n\t\t\t\t\t\t\tLoadBalancerState.PASSIVE);\n\t\t\t\t\tnew Thread(backupHeartbeatBroadcaster).start();\n\t\t\t\t\t\n\t\t\t\t\t// Start timer for next pre-election\n\t\t\t\t\tstartReElectionTimer();\n\t\t\t\t\t\n\t\t\t\t\tComponentLogger.getInstance().log(LogMessageType.LOAD_BALANCER_ELECTED_AS_BACKUP);\n\t\t\t\t\tSystem.out.println(\"Elected as backup\");\n\t\t\t\t} else {\n\t\t\t\t\tlowestLatencyCandidate.setIsElectedBackup(true);\n\t\t\t\t\tisElectedBackup = false;\n\t\t\t\t\tresetBackupHeartbeatTimer();\n\t\t\t\t\tSystem.out.println(\"Election winner:\" + lowestLatencyCandidate.getAddress().getHostString());\n\t\t\t\t}\n\n\t\t\t\t// Clear candidacy values for future elections\n\t\t\t\tfor (RemoteLoadBalancer remoteLoadBalancer : remoteLoadBalancers) {\n\t\t\t\t\tremoteLoadBalancer.setCandidacyValue(null);\n\t\t\t\t}\n\t\t\t\tpreElectionInProgress = false;\n\t\t\t}\n\t\t};\n\n\t\tpreElectionTimeoutTimer = new Timer();\n\t\tpreElectionTimeoutTimer.schedule(timerTask, defaultTimeoutMillis);\n\t}", "public void initial() {\r\n Timer timer;\r\n setPreferredSize(new Dimension(this.model.maxX() + 50, this.model.maxY() + 50));\r\n setLocation(this.model.getXBounds(), this.model.getYBounds());\r\n timer = new Timer(1000 / this.ticksMultiplier, this);\r\n timer.setInitialDelay(0);\r\n timer.start();\r\n }", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15071, \"face=floor\", \"facing=north\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15072, \"face=floor\", \"facing=south\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15073, \"face=floor\", \"facing=west\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15074, \"face=floor\", \"facing=east\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15075, \"face=wall\", \"facing=north\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15076, \"face=wall\", \"facing=south\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15077, \"face=wall\", \"facing=west\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15078, \"face=wall\", \"facing=east\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15079, \"face=ceiling\", \"facing=north\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15080, \"face=ceiling\", \"facing=south\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15081, \"face=ceiling\", \"facing=west\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15082, \"face=ceiling\", \"facing=east\"));\n }", "@Override\n protected void initialize() {\n desiredTime = System.currentTimeMillis() + (long) (seconds * 1000);\n Robot.driveTrain.configForTeleopMode();\n }", "private static float tock(){\n\t\treturn (System.currentTimeMillis() - startTime);\n\t}", "public LinkedList<State> getNextAvailableStates() {\n LinkedList<Integer> currentSide = new LinkedList<>();\n LinkedList<Integer> otherSide = new LinkedList<>();\n LinkedList<State> newStates = new LinkedList<>();\n if(isLeft) {\n if(leftSide != null) currentSide = new LinkedList<>(leftSide);\n if(rightSide != null) otherSide = new LinkedList<>(rightSide);\n } else {\n if (rightSide != null) currentSide = new LinkedList<>(rightSide);\n if (leftSide != null) otherSide = new LinkedList<>(leftSide);\n }\n\n // add one people to the other side of the bridge\n for (int index=0; index< currentSide.size(); index++) {\n LinkedList<Integer> newCurrentSide = new LinkedList<>(currentSide);\n LinkedList<Integer> newOtherSide = new LinkedList<>(otherSide);\n int firstPeopleMoved = newCurrentSide.remove(index);\n newOtherSide.add(firstPeopleMoved);\n State state = (isLeft) ? new State(newCurrentSide, newOtherSide, !isLeft,timeTaken+firstPeopleMoved, depth+1, highestSpeed) :\n new State(newOtherSide, newCurrentSide, !isLeft, timeTaken+firstPeopleMoved, depth+1, highestSpeed);\n state.setReward(state.calculateReward(firstPeopleMoved));\n // add this as parent to the child\n state.parents = new LinkedList<>(this.parents);\n state.addParent(this);\n // set the action that get to this state\n String currentAction = \"move \" + firstPeopleMoved;\n currentAction += (isLeft) ? \" across\" : \" back\";\n state.copyActions(this); // copy all the previous actions from the parent\n state.addActions(currentAction); // add new action to state generated by parent\n // add to the new states of list\n newStates.add(state);\n // add two people to the other side of the bridge\n for (int second=0; second < newCurrentSide.size(); second++) {\n LinkedList<Integer> newSecondCurrentSide = new LinkedList<>(newCurrentSide);\n LinkedList<Integer> newSecondOtherSide = new LinkedList<>(newOtherSide);\n int secondPeopleMoved = newSecondCurrentSide.remove(second);\n newSecondOtherSide.add(secondPeopleMoved);\n int slowerSpeed = (firstPeopleMoved > secondPeopleMoved) ? firstPeopleMoved : secondPeopleMoved;\n state = (isLeft) ? new State(newSecondCurrentSide, newSecondOtherSide, !isLeft, timeTaken+slowerSpeed, depth+1, highestSpeed) :\n new State(newSecondOtherSide, newSecondCurrentSide, !isLeft, timeTaken+slowerSpeed, depth+1, highestSpeed);\n state.setReward(state.calculateReward(firstPeopleMoved, secondPeopleMoved));\n // add this as parent to the child\n state.parents = new LinkedList<>(this.parents);\n state.addParent(this);\n // set the action that get to this state\n currentAction = \"move \"+ firstPeopleMoved + \" \" + secondPeopleMoved;\n currentAction += (isLeft) ? \" across\" : \" back\";\n state.copyActions(this);\n state.addActions(currentAction);\n // add to the new states of list\n newStates.add(state);\n }\n\n }\n return newStates;\n }", "ShipmentTimeEstimate createShipmentTimeEstimate();", "public Cost(boolean time) {\r\n defaultCost = 5;\r\n haveSchedule = time;\r\n }", "@Override\r\n public LocalDateTime bake_350degrees(LocalDateTime time) {\r\n System.out.println(\"Baking \"+quantity+\" batch(es) of cookies\");\r\n for(int count = 1; count <= quantity; count++) {\r\n \t time = time.plusMinutes(20);\r\n }\r\n return time;\r\n }", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18656, \"facing=north\", \"waterlogged=true\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18657, \"facing=north\", \"waterlogged=false\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18658, \"facing=south\", \"waterlogged=true\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18659, \"facing=south\", \"waterlogged=false\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18660, \"facing=west\", \"waterlogged=true\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18661, \"facing=west\", \"waterlogged=false\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18662, \"facing=east\", \"waterlogged=true\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18663, \"facing=east\", \"waterlogged=false\"));\n }", "com.google.protobuf.Timestamp getCurrentStateTime();", "private static void fakePole() {\n\t\tint turns = 1000;\n\t\tModelLearnerHeavy modeler = new ModelLearnerHeavy(100, new int[] {30},\n\t\t\t\tnew int[] {30}, new int[] {30}, ActivationFunction.SIGMOID0p5, turns);\n\n\t\tfinal boolean NN_FORM = false;\n\t\tdouble[] mins = Pole.stateMins;\n\t\tdouble[] maxes = Pole.stateMaxes;\n\t\tEnvTranslator stateTranslator = EnvTranslator.rbfEnvTranslator(mins, maxes, new int[] {12,12}, .5);\n\t\tEnvTranslator actTranslator = Pole.actionTranslator;\n\t\tList<double[]> actions = Pole.actionChoices;\n\t\tactions.add(new double[] {1,0});\n//\t\tactions.add(new double[] {0,0});\n\t\tactions.add(new double[] {0,1});\n\t\tfinal Collection<double[]> tmpCorrel = new ArrayList<double[]>();\n\t\tfor (int t = 0; t < turns; t++) {\n\t\t\tdouble[] preState = new double[mins.length];\n\t\t\tfor (int i = 0; i < preState.length; i++) {\n\t\t\t\tfinal double spread = (maxes[i] - mins[i]) / 10;\n\t\t\t\tpreState[i] = RandomUtils.randBetween(mins[i] - spread, maxes[i] + spread);\t\n\t\t\t}\n\t\t\tdouble[] inNN = stateTranslator.toNN(preState);\n\t\t\tdouble[] action = RandomUtils.randomOf(actions);\n\t\t\tmodeler.observePreState(inNN);\n\t\t\tmodeler.observeAction(action);\n\t\t\t\n\t\t\tdouble[] postState = new double[mins.length];\n\t\t\tdouble act = Math.random() < 0.99 ? action[0] - action[1] : (2*Math.round(Math.random())-1);\n\t\t\tdouble r = act/100;\n\t\t\tfor (int i = 0; i < postState.length; i++) {\n\t\t\t\tpostState[i] = preState[i] * Math.exp(Math.signum(preState[i]) * (i == 0 ? r : -r));\n\t\t\t} // act0 moves state[0] up and state[1] down, act1 moves state[0] down and state[1] up\n\t\t\ttmpCorrel.add(new double[] {act, postState[0] - preState[0]});\n\t\t\tmodeler.observePostState(stateTranslator.toNN(postState));\n\t\t\tmodeler.saveMemory();\n\t\t}\n\t\tmodeler.learnFromMemory(1.5, 0.5, 0, false, 1000, 0.0003); // IT SEEMS CONFIDENCE IS NOT RELIABLE INDICATOR\n//\t\tfor (double[] dd : tmpCorrel) {\n//\t\t\tString s = \"\"; for (double d : dd) s += d + \"\t\";\n//\t\t\tSystem.out.println(s);\n//\t\t}\n\t\tfor (int i = 0; i < 10; i++) System.out.println(\"*********\");\n\t\tSystem.out.println(modeler.getModelVTA().getConfidenceEstimate());\n//\t\tmodeler.testit(1000, mins, maxes, stateTranslator, actTranslator, actions, NN_FORM);\n\t\t\n\t\tfor (int t = 0; t < 500; t++) {\n\t\t\tfinal double[] state = new double[mins.length];\n\t\t\tfor (int i = 0; i < state.length; i++) state[i] = RandomUtils.randBetween(mins[i], maxes[i]);\n\t\t\tString s = \"\";\n\t\t\tfor (double d : state) s += d + \"\t\";\n\t\t\tfor (double[] act : actions) {\n\t\t\t\tdouble[] foresight = Foresight.montecarlo(modeler, stateTranslator.toNN(state), act, 1, 100, 30);\n\t\t\t\tdouble[] postV = stateTranslator.fromNN(foresight);\n\t\t\t\ts += \"act:\" + actTranslator.fromNN(act) + \":\t\";\n\t\t\t\tfor (double d : postV) s += Utils.round(d * 100, 2) + \"\t\";\n\t\t\t}\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}", "SpacecraftState getInitialState() throws OrekitException;", "public void createChallenger() {\n\n Random random = new Random();\n if(currentTurn.getActivePlayers().size() != 1) {\n currentTurn.setCurrentPlayer(currentTurn.getActivePlayers().get(random.nextInt(currentTurn.getActivePlayers().size() - 1)));\n } else {\n currentTurn.setCurrentPlayer(currentTurn.getActivePlayers().get(0));\n }\n int i = onlinePlayers.indexOf(currentTurn.getCurrentPlayer());\n stateList.set(i, new Initialized(getCurrentTurn().getCurrentPlayer(), this));\n\n }", "public BaseWindowedBolt<T> withStateSize(Time size) {\n long s = size.toMilliseconds();\n ensurePositiveTime(s);\n ensureStateSizeGreaterThanWindowSize(this.size, s);\n\n this.stateSize = s;\n if (WindowAssigner.isEventTime(this.windowAssigner)) {\n this.stateWindowAssigner = TumblingEventTimeWindows.of(s);\n } else if (WindowAssigner.isProcessingTime(this.windowAssigner)) {\n this.stateWindowAssigner = TumblingProcessingTimeWindows.of(s);\n } else if (WindowAssigner.isIngestionTime(this.windowAssigner)) {\n this.stateWindowAssigner = TumblingIngestionTimeWindows.of(s);\n }\n\n return this;\n }", "@Override\n\tpublic void makeDecision() {\n\t\tint powerMax = (int)(initPower) / 100;\n\t\tint powerMin = (int)(initPower * 0.3) / 100;\n\n\t\t// The value is calculated randomly from 0 to 10% of the initial power\n\t\tRandom rand = new Random();\n\t\tint actualPower = rand.nextInt((powerMax - powerMin) + 1) + powerMin;\n\t\tanswer.setConsumption(actualPower);\n\t}", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16014, \"power=0\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16015, \"power=1\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16016, \"power=2\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16017, \"power=3\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16018, \"power=4\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16019, \"power=5\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16020, \"power=6\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16021, \"power=7\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16022, \"power=8\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16023, \"power=9\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16024, \"power=10\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16025, \"power=11\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16026, \"power=12\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16027, \"power=13\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16028, \"power=14\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16029, \"power=15\"));\n }", "IfaceState createState(int nlocal,IfaceSafetyStatus sts);", "public NewTransitionRecord(int from, int to, double r) {\r\n fromstate = from;\r\n tostate = to;\r\n rate = r;\r\n }", "public float getTimeLeft() {\n return this.state.getTime();\n }", "State(Main aMain) {\n\tmain = aMain;\n\tback = Integer.parseInt(main.myProps.getProperty(\"yesterdays\"));\n\tfront = Integer.parseInt(main.myProps.getProperty(\"tomorrows\"));\n\tmaps = new Hashtable();\n availWeath = new Hashtable();\n\n main.myFrw.listen(new MapListener(), ScaledMap.TYPE, null);\n main.myFrw.announce(this);\n stateDoc = Framework.parse(main.myPath + \"state.xml\", \"state\");\n availWeath = loadFromDoc();\n }", "public TimeSeriesTally() {\n\tsuper();\n\tfPrevTime = 0.0;\n }", "private void sleep() {\n\t\ttargetFlower = null;\n\t\tif(startForaging()) {\n\t\t\t// add food to bee's crop for upcoming foraging run\n\t\t\tif(food < startingCrop){\n\t\t\t\thive.food -= (startingCrop - food);\n\t\t\t\tfood = startingCrop;\n\t\t\t}\n\t\t\tif(startScouting() || hive.dancingBees.size() <= 0) {\n\t\t\t\tstate = \"SCOUTING\";\n\t\t\t\tcurrentAngle = RandomHelper.nextDoubleFromTo(0, 2*Math.PI);\n\t\t\t}\n\t\t\telse{ // else follow a dance\n\t\t\t\t// if bee follows dance, store angle and distance in the bee object\n\t\t\t\tint index = RandomHelper.nextIntFromTo(0, hive.dancingBees.size() - 1);\n\t\t\t\tNdPoint flowerLoc = space.getLocation(hive.dancingBees.get(index).targetFlower);\n\t\t\t\tNdPoint myLoc = space.getLocation(this);\n\t\t\t\tdouble ang = SpatialMath.calcAngleFor2DMovement(space, myLoc, flowerLoc);\n\t\t\t\tdouble dist = space.getDistance(flowerLoc, myLoc);\n\t\t\t\t\n\t\t\t\t// start following dance at correct angle\n\t\t\t\tcurrentAngle = ang;\n\t\t\t\tfollowDist = dist;\n\t\t\t\tstate = \"FOLLOWING\";\n\t\t\t}\n\t\t}\n\t\telse { // continue sleeping\n\t\t\thive.food -= lowMetabolicRate/2;\n\t\t\thover(grid.getLocation(hive));\n\t\t\t// update energy and food storage\n\t\t\tif(food > startingCrop){\n\t\t\t\tfood -= foodTransferRate;\n\t\t\t\thive.food += foodTransferRate;\n\t\t\t}\n\t\t}\n\t}", "private State calculatePM25(double longi, double lati) {\n Double breath = 0.0;\n Double density = PM25Density;\n boolean isConnected = ShortcutUtil.isNetworkAvailable(this);\n String inOutStr = aCache.getAsString(Const.Cache_Indoor_Outdoor);\n if(!ShortcutUtil.isStringOK(inOutStr)){\n inOutStr = String.valueOf(LocationService.Indoor);\n aCache.put(Const.Cache_Indoor_Outdoor,inOutStr);\n }\n inOutDoor = Integer.valueOf(inOutStr);\n /*double ratio;\n if (!isConnected) {\n ratio = this.getLastSevenDaysInOutRatio();\n FileUtil.appendStrToFile(DBRunTime,\"no network connection, using ratio == \"+ratio);\n density = ratio * density + (1-ratio)*density/3;\n FileUtil.appendStrToFile(DBRunTime,\"no network connection, using ratio to get density \"+density);\n if (ratio > 0.5) inOutDoor = LocationService.Indoor;\n else inOutDoor = LocationService.Outdoor;\n } else {\n if (inOutDoor == LocationService.Indoor) density /= 3;\n }*/\n\n double static_breath = ShortcutUtil.calStaticBreath(cacheUtil.getAsString(Const.Cache_User_Weight));\n\n if (static_breath == 0.0) {\n if(isBackground != null && isBackground.equals(bgStr))\n Toast.makeText(getApplicationContext(), Const.Info_Weight_Null, Toast.LENGTH_SHORT).show();\n static_breath = 6.6; // using the default one\n }\n if (mMotionStatus == Const.MotionStatus.STATIC) {\n breath = static_breath;\n } else if (mMotionStatus == Const.MotionStatus.WALK) {\n breath = static_breath * 2.1;\n } else if (mMotionStatus == Const.MotionStatus.RUN) {\n breath = static_breath * 6;\n }\n venVolToday += breath;\n breath = breath / 1000; //change L/min to m3/min\n PM25Today += density * breath;\n State state = new State(IDToday, aCache.getAsString(Const.Cache_User_Id), Long.toString(System.currentTimeMillis()),\n String.valueOf(longi),\n String.valueOf(lati),\n String.valueOf(inOutDoor),\n mMotionStatus == Const.MotionStatus.STATIC ? \"1\" : mMotionStatus == Const.MotionStatus.WALK ? \"2\" : \"3\",\n Integer.toString(numStepsForRecord), avg_rate, String.valueOf(venVolToday), density.toString(), String.valueOf(PM25Today), String.valueOf(PM25Source), 0, isConnected ? 1 : 0);\n numStepsForRecord = 0;\n return state;\n }", "@Override\n protected int getRevealTime()\n {\n // If not Line chart or Trace.Disabled, return default\n Trace trace = getTrace();\n boolean showPointsOrArea = trace.isShowPoints() || trace.isShowArea();\n if (showPointsOrArea || getTrace().isDisabled())\n return ContentView.DEFAULT_REVEAL_TIME;\n\n // Calc factor to modify default time\n double maxLen = getTraceLineShapeArcLength();\n double factor = Math.max(1, Math.min(maxLen / 500, 2));\n\n // Return default time times factor\n return (int) Math.round(factor * ContentView.DEFAULT_REVEAL_TIME);\n }", "public void showTimeLeft(int time, String state);", "@Override\n protected GoladState getInitialState() {\n int width = configuration.getInt(\"fieldWidth\");\n int height = configuration.getInt(\"fieldHeight\");\n int playerCount = this.playerProvider.getPlayers().size();\n\n GoladBoardGenerator generator = new GoladBoardGenerator(width, height, playerCount);\n GoladBoard board = generator.generate();\n\n // Create initial player states\n ArrayList<GoladPlayerState> playerStates = new ArrayList<>();\n for (GoladPlayer player : this.playerProvider.getPlayers()) {\n GoladPlayerState playerState = new GoladPlayerState(player.getId());\n playerStates.add(playerState);\n }\n\n // Create initial state\n GoladState state = new GoladState(playerStates, board);\n\n // Update initial player states\n state.updatePlayerStates();\n\n return state;\n }" ]
[ "0.6240206", "0.55958843", "0.5431668", "0.5427341", "0.54044396", "0.52355814", "0.51751256", "0.5141828", "0.51067215", "0.509274", "0.5069529", "0.50115305", "0.49298108", "0.48487484", "0.48430207", "0.48339808", "0.48331496", "0.4827097", "0.48255253", "0.47980514", "0.4774359", "0.47700065", "0.4764458", "0.47247908", "0.47212353", "0.4719634", "0.47190014", "0.4708525", "0.4705372", "0.47042516", "0.46987388", "0.4631967", "0.46239257", "0.45904115", "0.45902154", "0.45895582", "0.45723084", "0.4571516", "0.45236188", "0.452337", "0.4513876", "0.4506776", "0.45049503", "0.45009285", "0.44997832", "0.44985396", "0.4495772", "0.4487582", "0.44856164", "0.4480426", "0.44766462", "0.44708025", "0.4447098", "0.44467106", "0.4443267", "0.4436924", "0.44317976", "0.44284984", "0.44173405", "0.4410309", "0.44064876", "0.44029403", "0.43917572", "0.43757433", "0.43729052", "0.43726856", "0.43726233", "0.43707186", "0.43688536", "0.4368686", "0.43677315", "0.43643817", "0.43626022", "0.4360779", "0.43535605", "0.4351891", "0.43482178", "0.43470928", "0.43429276", "0.43423453", "0.4341759", "0.4340132", "0.43382475", "0.43334776", "0.43306762", "0.4329143", "0.4329122", "0.4323329", "0.43192655", "0.43156376", "0.43133417", "0.4312763", "0.43119904", "0.43103853", "0.4304341", "0.43001696", "0.42949903", "0.4292247", "0.4287119", "0.42839822" ]
0.5331793
5
method updateBeliefStateThreatTrans Used to update the belief state using the given elapsed time. i.e., just factor in the state transitions over this time. Will use action and threat effects to determine new belief state.
void updateBeliefStateActionTrans( BeliefStateDimension prev_belief, BelievabilityAction action, BeliefStateDimension next_belief ) throws BelievabilityException { if (( prev_belief == null ) || ( action == null ) || ( next_belief == null )) throw new BelievabilityException ( "updateBeliefStateActionTrans()", "NULL parameter(s) sent in." ); // If the action does not pertain to this state dimension // (shouldn't happen), then we assume the state remains // unchanged (identiy matrix). Note that we copy the // probability values from prev_belief to next_belief, even // though the next_belief likely starts out as a clone of the // prev_belief. We do this because we were afraid of assuming // it starts out as a clone, as this would make this more // tightly coupled with the specific implmentation that calls // this method. Only if this becomes a performance problem // should this be revisited. // double[] prev_belief_prob = prev_belief.getProbabilityArray(); double[] next_belief_prob = new double[prev_belief_prob.length]; // The action transition matrix will model how the asset state // change will happen when the action is taken.. // double[][] action_trans = _asset_dim_model.getActionTransitionMatrix( action ); if ( _logger.isDetailEnabled() ) _logger.detail( "Action transition matrix: " + _asset_dim_model.getStateDimensionName() + "\n" + ProbabilityUtils.arrayToString( action_trans )); // We check this, but it really should never be null. // if ( action_trans == null ) throw new BelievabilityException ( "updateBeliefStateActionTrans()", "Could not find action transition matrix for: " + prev_belief.getAssetID().getName() ); // Start the probability calculation // for ( int cur_state = 0; cur_state < prev_belief_prob.length; cur_state++ ) { for ( int next_state = 0; next_state < prev_belief_prob.length; next_state++ ) { next_belief_prob[next_state] += prev_belief_prob[cur_state] * action_trans[cur_state][next_state]; } // for next_state } // for cur_state // We do this before the sanity check, but maybe this isn't // the right thing to do. For now, it allows me to more easily // convert it to a string in the case where there is a // problem. // next_belief.setProbabilityArray( next_belief_prob ); // Add a sanity check to prevent bogus belief from being // propogated to other computations. // double sum = 0.0; for ( int i = 0; i < next_belief_prob.length; i++ ) sum += next_belief_prob[i]; if( ! Precision.isZeroComputation( 1.0 - sum )) throw new BelievabilityException ( "updateBeliefStateActionTrans()", "Resulting belief doesn't sum to 1.0 : " + next_belief.toString() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateBeliefStateThreatTrans( BeliefStateDimension prev_belief,\n long start_time,\n long end_time,\n BeliefStateDimension next_belief )\n throws BelievabilityException\n {\n\n // The updating of the belief state due to threats is a\n // relatively complicated process. The complication comes\n // from the fact that we must allow multiple threats to cause\n // the same event, and even allow multiple events to affect\n // the state dimension of an asset. We have models for how\n // the threats and events act individually, but no models\n // about how they act in combination. Our job here is trying\n // to estimate what effect these threats and events could have\n // on the asset state dimension. (Note that threats cause\n // events in the techspec model.\n //\n // Note that making a simplifying asumption that only one\n // event will occur at a time does not help us in this\n // computation: we are not trying to adjust after the fact\n // when we *know* an event occurred; we are trying to deduce\n // which of any number of events might have occurred. Thus,\n // we really do need to reason about combinations of events.\n //\n // The prospect of having the techspec encode the full joint\n // probability distributions for a events is not something\n // that will be managable, so we must live with the individual\n // models and make some assumptions. At the heart of the\n // assumption sare that threats that can generate a given\n // event will do so independently, and among multiple events,\n // they too act independently.\n // \n // Details of the calculations and assumptions are found in\n // the parts of the code where the calculations occur.\n //\n\n // All the complications of handling multiple threats happens\n // in this method call.\n //\n double[][] trans_matrix\n = _asset_dim_model.getThreatTransitionMatrix\n ( prev_belief.getAssetID(),\n start_time,\n end_time );\n\n if ( _logger.isDetailEnabled() )\n _logger.detail( \"Threat transition matrix: \" \n + _asset_dim_model.getStateDimensionName() + \"\\n\" \n + ProbabilityUtils.arrayToString( trans_matrix ));\n\n double[] prev_belief_prob = prev_belief.getProbabilityArray();\n double[] next_belief_prob = new double[prev_belief_prob.length];\n\n // The event transition matrix will model how the asset state\n // transitions occur. We now need to fold this into the\n // current belief sate to produce the next belief state.\n //\n\n for ( int cur_state = 0; \n cur_state < prev_belief_prob.length; \n cur_state++ ) \n {\n \n for ( int next_state = 0; \n next_state < prev_belief_prob.length; \n next_state++ ) \n {\n\n next_belief_prob[next_state] \n += prev_belief_prob[cur_state] \n * trans_matrix[cur_state][next_state];\n \n } // for next_state\n } // for cur_state\n\n // We do this before the sanity check, but maybe this isn't\n // the right thing to do. For now, it allows me to more easily\n // convert it to a string in the case where there is a\n // problem. \n //\n next_belief.setProbabilityArray( next_belief_prob );\n\n // Add a sanity check to prevent bogus belief from being\n // propogated to other computations. \n //\n double sum = 0.0;\n for ( int i = 0; i < next_belief_prob.length; i++ )\n sum += next_belief_prob[i];\n\n if( ! Precision.isZeroComputation( 1.0 - sum ))\n throw new BelievabilityException\n ( \"updateBeliefStateThreatTrans()\",\n \"Resulting belief doesn't sum to 1.0 : \"\n + next_belief.toString() );\n\n }", "public void setAttackState(String state, \n int loadingTime, \n int activeTime, \n int recoveryTime) {\n this.setSpecialState(state, loadingTime+activeTime+recoveryTime);\n this.resetXMovement();\n TimedEventQueue.addTask(new TimedTask(this, \"activeAttackState\", loadingTime));\n TimedEventQueue.addTask(new TimedTask(this, \"activeAttackStateOver\", \n loadingTime+activeTime));\n \n }", "public void update() {\r\n\t\ttimePassed++; //increment time\r\n\t\t\r\n\t\tswitch(state) {\r\n\t\tcase GNS_REW:\r\n\t\t\tif (timePassed > greenNS) {\r\n\t\t\t\tstate = LightState.YNS_REW; // turn NS light yellow\r\n\t\t\t\ttimePassed = 0;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase YNS_REW:\r\n\t\t\tif (timePassed > yellowNS) {\r\n\t\t\t\tstate = LightState.RNS_GEW; // turn NS light red and EW light green\r\n\t\t\t\ttimePassed = 0;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase RNS_GEW:\r\n\t\t\tif (timePassed > greenEW) {\r\n\t\t\t\tstate = LightState.RNS_YEW; // turn EW light yellow\r\n\t\t\t\ttimePassed = 0;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase RNS_YEW:\r\n\t\t\tif (timePassed > yellowEW) {\r\n\t\t\t\tstate = LightState.GNS_REW; // turn NS light green and EW light red\r\n\t\t\t\ttimePassed = 0;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\t//if the state is something other than these four options, we have a serious issue...\r\n\t\t\tSystem.out.println(\"update(StopLight): something has gone horribly wrong\"); \r\n\t\t}\r\n\t}", "void updateActiveTime(int T);", "@Override\n\tpublic void \t\t\t\t\t\tuserDefinedInternalTransition (\n\t\t\t\t\t\t\t\tDuration elapsedTime)\n\t{\n\t\tDuration d1 = new Duration (\n\t\t\t\tthis.interDayDelay , \n\t\t\t\tthis.getSimulatedTimeUnit()\n\t\t\t) ; \n\t\t\n\t\tassert d1 != null ;\n\t\t\n\t\tTime t = this.getCurrentStateTime().add(d1) ; \n\t\tdouble dur = 2.0 * this.meanRunDuration * this.rg.nextBeta(1.75, 1.75) ; \n\t\tdouble temp = 2.0 * this.meanTemperature * this.rg.nextBeta(1.75, 1.75) ; \n\t\t// impossible to set temperature more than MAX_TEMPERATURE\n\t\ttemp = (temp > OvenModel.MAX_TEMPERATURE)?OvenModel.MAX_TEMPERATURE:temp ;\n\t\tthis.scheduleEvent(new RunOven(t, dur , temp));\n\t}", "protected void updateTime(float deltaTime) {\n }", "public void update(float deltatime)\r\n {\r\n\tif (!_paused)\r\n\t{\r\n\t _level.update(deltatime);\r\n\t}\r\n\t_coin.update(deltatime);\r\n\t_transition = null;\r\n }", "public void updateLastAttackTime(long nowTime) {\r\n\t\tthis.lastAttackTime = nowTime;\r\n\t}", "public void tick() {\n if (this.entity.hurtResistantTime == 19) {\n this.entity.resetActiveHand();\n }\n LivingEntity target = this.entity.getAttackTarget();\n if (target != null) {\n boolean isSee = this.entity.getEntitySenses().canSee(target);\n boolean isSeeTimeFound = this.seeTime > 0;\n if (isSee != isSeeTimeFound) {\n this.seeTime = 0;\n }\n\n if (isSee) {\n ++this.seeTime;\n } else {\n --this.seeTime;\n }\n\n this.entity.getLookController().setLookPositionWithEntity(target, 30.0F, 30.0F);\n\n if (this.entity.isHandActive()) {\n if (!isSee && this.seeTime < -10) {\n this.entity.resetActiveHand();\n } else if (isSee) {\n int i = this.entity.getItemInUseMaxCount();\n if (i >= 20) {\n this.entity.resetActiveHand();\n this.entity.attackEntityWithRangedAttack(target, BowItem.getArrowVelocity(i));\n this.attackTime = this.attackCooldown;\n }\n }\n } else if (--this.attackTime <= 0 && this.seeTime >= -10) {\n this.entity.setActiveHand(ProjectileHelper.getHandWith(this.entity, Items.BOW));\n }\n\n }\n }", "public static void new_speed( Body body, double t ){\r\n body.currentState.vx = body.currentState.vx + body.currentState.ax * t; // new x velocity\r\n body.currentState.vy = body.currentState.vy + body.currentState.ay * t; // new y velocity\r\n body.currentState.vz = body.currentState.vz + body.currentState.az * t; // new z velocity\r\n }", "public void updateState(){\n\t\t\n\t\t\n\t\t\n\t\tArrayList<String> toAdd = new ArrayList<String>();\n\t\tArrayList<String> toRemove = new ArrayList<String>();\n\n\t\tthis.lastAdded.clear();\n\t\tthis.lastFulfilled.clear();\n\t\tthis.lastViolated.clear();\n\t\t\n\t\ttry {\n\n\t\t\tdo{\n\t\t\t\ttoAdd.clear();\n\t\t\t\ttoRemove.clear();\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iActive = reasoner.findall(\"xactive(A,Fa,Fm,Fd,Fr,Timeout)&not(as(A,Fa,Fm,Fd,Fr,Timeout))\");\n\t\t\t\twhile(iActive.hasNext()){\n\t\t\t\t\tUnifier un = iActive.next();\n\t\t\t\t\ttoAdd.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+ adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastAdded.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+ adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iViol = reasoner.findall(\"xviol(A,Fa,Fm,Fd,Fr,Timeout)&not(vs(A,Fa,Fm,Fd,Fr,Timeout))\");\n\t\t\t\twhile(iViol.hasNext()){\n\t\t\t\t\tUnifier un = iViol.next();\n\t\t\t\t\ttoAdd.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastViolated.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iDeactF = reasoner.findall(\"xdeact_f(A,Fa,Fm,Fd,Fr,Timeout)\");\n\t\t\t\twhile(iDeactF.hasNext()){\n\t\t\t\t\tUnifier un = iDeactF.next();\n\t\t\t\t\ttoAdd.add(\"ds(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString()+\",\"+un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastFulfilled.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iDeactR = reasoner.findall(\"xdeact_r(A,Fa,Fm,Fd,Fr,Timeout)\");\n\t\t\t\twhile(iDeactR.hasNext()){\n\t\t\t\t\tUnifier un = iDeactR.next();\n\t\t\t\t\ttoAdd.add(\"ds(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastFulfilled.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iFailed = reasoner.findall(\"xfailed(A,Fa,Fm,Fd,Fr,Timeout)\");\n\t\t\t\twhile(iFailed.hasNext()){\n\t\t\t\t\tUnifier un = iFailed.next();\n\t\t\t\t\ttoAdd.add(\"fs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//norms deactivated (fulfilled) whose maintenance condition does not hold can be removed.\n\t\t\t\t//if they are not removed, new instances of the same norm are not activated\n\t\t\t\tIterator<Unifier> iDeactivated_to_remove = reasoner.findall(\"ds(A,Fa,Fm,Fd,Fr,Timeout)&not(Fm)\");\n\t\t\t\twhile(iDeactivated_to_remove.hasNext()){\n\t\t\t\t\tUnifier un = iDeactivated_to_remove.next();\n\t\t\t\t\ttoRemove.add(\"ds(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t\tfor(String s:toAdd){\n\t\t\t\t\treasoner.assertValue(s);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(String s:toRemove){\n\t\t\t\t\treasoner.retract(s);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}while(toAdd.size()>0|toRemove.size()>0);\t\t\t\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "public void updateTimedTasks() {\n if (TimedEventQueue.validTask(this)) {\n String action = TimedEventQueue.getTask().getAction();\n if (action.equals(\"gravityCancelOver\")) {\n this.gravityCancel = false;\n this.yVel = 0;\n } else if (action.equals(\"dodgeCoolDownOver\")) {\n this.dodgeCoolDown = false;\n } else if (action.equals(\"breakSpecialState\")) {\n this.breakSpecialState();\n } else if (action.equals(\"activeAttackState\")) {\n this.activeAttackState = true;\n } else if (action.equals(\"activeAttackStateOver\")) {\n this.activeAttackState = false;\n } else if (action.equals(\"heavySideSpeedUp\")) {\n this.setxTargetSpeed(Util.scaleX(25));\n } else if (action.equals(\"resetXMovement\")) {\n this.resetXMovement();\n }\n } \n }", "public\tvoid spendTime(int t) {\n\t\tthis.currentAction.spendTime(t);\n\t}", "public void setStateTime(long newStateTime) {\n _stateTime = newStateTime;\n }", "private void updateTamingProcess() {\n\n if (!mseEntity.isTameable())\n return;\n\n int tamingIncrease = mseEntity.updateHunger();\n if (tamingIncrease > 0) {\n mseEntity.eatAnimation();\n }\n\n int tamingProgress = tamingHandler.getTamingProgress();\n tamingProgress += tamingIncrease;\n tamingHandler.setTamingProgress(tamingProgress);\n if (tamingProgress < 0)\n tamingProgress = 0;\n if (tamingProgress >= mseEntity.getMaxTamingProgress())\n tamingHandler.setSuccessfullyTamed();\n\n }", "@Override\n public void timerTicked() {\n //subtracts one second from the timer of the current team\n if(state.getCurrentTeamsTurn() == Team.RED_TEAM) {\n state.setRedTeamSeconds(state.getRedTeamSeconds() - 1);\n } else {\n state.setBlueTeamSeconds(state.getBlueTeamSeconds() - 1);\n }\n }", "protected abstract void update(double deltaTime);", "@Override\r\n public int actionDelayTime(Entity attacker) {\n return 4000;\r\n }", "private void performTransition() {\r\n\t\t// Do something only if the time has been reached\r\n\t\tif (transitionTime <= System.currentTimeMillis()) {\r\n\t\t\t// Clear the transition time\r\n\t\t\ttransitionTime = Long.MAX_VALUE;\r\n\r\n\t\t\t// If there are no lives left, the game is over. Show the final\r\n\t\t\t// screen.\r\n\t\t\tif (lives <= 0) {\r\n\t\t\t\t// Updates the highScore\r\n\t\t\t\tif (numScore > highScore) {\r\n\t\t\t\t\thighScore = numScore;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Updates the HighScore label in enhanced mode\r\n\t\t\t\tif (enhanced == true) {\r\n\t\t\t\t\tdisplay.setHighScore(highScore);\r\n\t\t\t\t}\r\n\t\t\t\t// Brings up the final screen\r\n\t\t\t\tfinalScreen();\r\n\t\t\t\t// JOptionPane.showMessageDialog(null, numLiveUpdated);\r\n\t\t\t}\r\n\r\n\t\t\t// If the ship was destroyed, place a new one and continue\r\n\t\t\telse if (ship == null) {\r\n\t\t\t\tplaceShip();\r\n\t\t\t}\r\n\t\t\tif (pstate.countAsteroids() == 0) {\r\n\r\n\t\t\t\t// increase the level and speed markers\r\n\t\t\t\tnumLevel += 1;\r\n\t\t\t\tspeed += 0.5;\r\n\r\n\t\t\t\t// Update the level display\r\n\t\t\t\tdisplay.setLevel(numLevel);\r\n\t\t\t\tParticipant.expire(alien);\r\n\t\t\t\tplaceAsteroids();\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// Place a new alien when one has been destroyed\r\n\t\t\tif (pstate.countAliens() == 0 && ship != null) {\r\n\t\t\t\tif (numLevel == 2) {\r\n\t\t\t\t\tplaceAlien(1);\r\n\r\n\t\t\t\t} else if (numLevel >= 3) {\r\n\t\t\t\t\tplaceAlien(0);\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tclipAlienDestroyed.stop();\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "@Override\n\tpublic void execute(Entity entity, float deltaTime) {\n\t\tTransformComponent tc = transformMapper.get(entity);\n\t\tif(tc == null) {\n\t\t\tthrow new RuntimeException(\"State applied to entity without position.\");\n\t\t}\n\t\t\n\t\tVector2 diff = new Vector2(wanderGoal);\n\t\tdiff.sub(tc.position);\n\t\tif( diff.len2() <= SEEK_TOLERANCE*SEEK_TOLERANCE) {\n\t\t\t// If close enough, move into a new wander state.\n\t\t\tstateMachine.changeState(entity, new WanderState(entity, stateMachine));\n\t\t}\n\t\telse {\n\t\t\tPlayerControlComponent pcc = controlMapper.get(entity);\n\t\t\tpcc.shipControl.resetThrust();\n\t\t\t\n\t\t\t// Is the target in our front arc?\n\t\t\tfloat bearing = (diff.angle() - tc.rotation) % 360f;\n\t\t\tif( Math.abs(bearing) <= ARC_HALF_WIDTH) {\n\t\t\t\t// fire forward\n\t\t\t\tpcc.shipControl.setForwardThrust(1f);\n\t\t\t}\n\t\t\tif( bearing < -COURSE_TOLERANCE ) {\n\t\t\t\tpcc.shipControl.setCWThrust(1f);\n\t\t\t\t// turn left\n\t\t\t}\n\t\t\telse if( bearing > COURSE_TOLERANCE) {\n\t\t\t\tpcc.shipControl.setCCWThrust(1f);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public void update() {\r\n\t\tdiffuse();\r\n\t\tdecay();\r\n\t}", "@Override\n\tpublic void act(float dt){\n\t\t\n\t}", "@Override public void setTime(UpodWorld w)\n{\n StateRepr sr = getState(w);\n sr.checkAgain(0);\n}", "@Override\n public void update(float dt) {\n //bulletUpdate(dt,b2body);\n stateTime += dt;\n bulletUpdate(b2body,bulletSprite1);\n bulletUpdate(b2body2,bulletSprite2);\n bulletUpdate(b2body3,bulletSprite3);\n\n\n\n }", "public abstract void update(float deltaTime);", "public abstract void update(float deltaTime);", "public abstract void update(float deltaTime);", "public static void updateTimeOflastAttack(Label timeOfLastAttack) {\n try {\n\t\t\ttimeOfLastAttack.setText(DatabaseInteraction.getSnortAndPortCaptureTime().toString());\n\t\t} catch (Exception e) {\n\t\t\ttimeOfLastAttack.setText(\"Null\");\n\t\t}\n }", "public void act() \n {\n updateTimerDisplay();\n if(timeCounter < 3600){\n timeCounter++;\n \n }else{\n timeElapsed++;\n timeCounter = 0;\n }\n checkHighScore();\n checkRegScore();\n\n }", "public void update() {\n if (_isRunning) {\n //System.out.println(\"update()#\" + _aiOwner.getName() + \"#\" + AIServiceProvider.getInstance().getDeltaTime());\n _states.get(_currentStateHandler).update(AIServiceProvider.getInstance().getDeltaTime());\n }\n }", "public abstract void update(float time);", "@Override\r\n public void updateModel(Bid opponentBid, double time) {\r\n if (negotiationSession.getOpponentBidHistory().size() < 2) {\r\n return;\r\n }\r\n int numberOfUnchanged = 0;\r\n // get the current bid of the opponent\r\n BidDetails oppBid = negotiationSession.getOpponentBidHistory().getHistory()\r\n .get(negotiationSession.getOpponentBidHistory().size() - 1);\r\n // get the previous bid of the opponent\r\n BidDetails prevOppBid = negotiationSession.getOpponentBidHistory().getHistory()\r\n .get(negotiationSession.getOpponentBidHistory().size() - 2);\r\n HashMap<Integer, Integer> diffSet = determineDifference(prevOppBid, oppBid);\r\n\r\n // count the number of unchanged issues in value\r\n for (Integer i : diffSet.keySet()) {\r\n if (diffSet.get(i) == 0)\r\n numberOfUnchanged++;\r\n }\r\n\r\n // This is the value to be added to weights of unchanged issues before normalization.\r\n // Also the value that is taken as the minimum possible weight,\r\n // (therefore defining the maximum possible also).\r\n double goldenValue = learnCoef / (double) amountOfIssues;\r\n // The total sum of weights before normalization.\r\n double totalSum = 1D + goldenValue * (double) numberOfUnchanged;\r\n // The maximum possible weight\r\n double maximumWeight = 1D - ((double) amountOfIssues) * goldenValue / totalSum;\r\n\r\n // re-weighing issues while making sure that the sum remains 1\r\n for (Integer i : diffSet.keySet()) {\r\n if (diffSet.get(i) == 0 && opponentUtilitySpace.getWeight(i) < maximumWeight)\r\n opponentUtilitySpace.setWeight(opponentUtilitySpace.getDomain().getObjectives().get(i),\r\n (opponentUtilitySpace.getWeight(i) + goldenValue) / totalSum);\r\n else\r\n opponentUtilitySpace.setWeight(opponentUtilitySpace.getDomain().getObjectives().get(i),\r\n opponentUtilitySpace.getWeight(i) / totalSum);\r\n }\r\n\r\n // Then for each issue value that has been offered last time, a constant\r\n // value is added to its corresponding ValueDiscrete.\r\n try {\r\n for (Entry<Objective, Evaluator> e : opponentUtilitySpace.getEvaluators()) {\r\n // cast issue to discrete and retrieve value. Next, add constant\r\n // learnValueAddition to the current preference of the value to\r\n // make it more important\r\n ((EvaluatorDiscrete) e.getValue()).setEvaluation(\r\n oppBid.getBid().getValue(((IssueDiscrete) e.getKey()).getNumber()),\r\n (learnValueAddition + ((EvaluatorDiscrete) e.getValue()).getEvaluationNotNormalized(\r\n ((ValueDiscrete) oppBid.getBid().getValue(((IssueDiscrete) e.getKey()).getNumber())))));\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "@ScheduledMethod(start = 1, interval = 1)\n\tpublic void update() {\n\t\tupdateParameters();\t\t\t// update bee coefficients using parameters UI\n\t\tkillBee();\t\t\t\t\t// (possibly) kill the bee (not currently used)\n\t\tlowFoodReturn();\n\t\tif(state == \"SLEEPING\"){\n\t\t\tsleep();\n\t\t}\n\t\tif(state == \"SCOUTING\"){\n\t\t\tscout();\n\t\t}\n\t\tif(state == \"TARGETING\"){\n\t\t\ttarget();\n\t\t}\n\t\tif(state == \"HARVESTING\"){\n\t\t\tharvest();\n\t\t}\n\t\tif(state == \"RETURNING\"){\n\t\t\treturnToHive();\n\t\t}\n\t\tif(state == \"AIMLESSSCOUTING\"){\n\t\t\taimlessScout();\n\t\t}\n\t\tif(state == \"DANCING\"){\n\t\t\tdance();\n\t\t}\n\t\tif(state == \"FOLLOWING\"){\n\t\t\tfollow();\n\t\t}\n\t}", "void threadDelay() {\n saveState();\n if (pauseSimulator) {\n halt();\n }\n try {\n Thread.sleep(Algorithm_Simulator.timeGap);\n\n } catch (InterruptedException ex) {\n Logger.getLogger(RunBFS.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (pauseSimulator) {\n halt();\n }\n }", "public void update() {\n super.update();\n // Code specific to the ship gameObject\n action = ctrl.action();\n direction.rotate(action.turn * STEER_RATE * Constants.DT);\n velocity.addScaled(direction, (MAG_ACC * Constants.DT * action.thrust));\n position.addScaled(velocity, DRAG * Constants.DT);\n position.wrap(Constants.FRAME_WIDTH, Constants.FRAME_HEIGHT);\n\n // Checks if the user is pressing forwards\n if(action.thrust == 1){\n thrusting = true;\n } else{\n thrusting = false;\n }\n time -= 1;\n if(action.shoot && time <= 0){\n mkBullet();\n time = 30;\n }\n\n if(invincible)\n color = Color.blue;\n else\n color = Color.cyan;\n }", "private void reconciliationUpdate(Integer[] keysPressed, double mouseHeldTime) {\n log(\"recon\", \"update\");\n\n game.entityHandler.setDrivingForce(game.tankID, 0);\n if (keysPressed == null)\n return;\n\n for (int key : keysPressed) {\n switch (key) {\n case GLFW_KEY_D:\n log(\"recon\", \"Applying D.\");\n game.entityHandler.setDrivingForce(game.tankID, 10000f);\n break;\n case GLFW_KEY_A:\n log(\"recon\", \"Applying A.\");\n game.entityHandler.setDrivingForce(game.tankID, -10000f);\n break;\n }\n }\n if (mouseHeldTime > 0)\n if (((Tank) game.entityHandler.getEntity(game.tankID)).checkIfCanFire())\n game.entityHandler.fireProjectile(game.tankID, (float) mouseHeldTime);\n\n game.entityHandler.constrainEntityToGround(game.tankID, game.map);\n game.entityHandler.constrainTurret(game.tankID, Input.cursorPos);\n }", "public void update(Entity e1, double heartBeat, double dt) {\n\t\t\r\n\t}", "public void tick() {\n if (ShulkerEntity.this.world.getDifficulty() != Difficulty.PEACEFUL) {\n --this.attackTime;\n LivingEntity livingentity = ShulkerEntity.this.getAttackTarget();\n ShulkerEntity.this.getLookController().setLookPositionWithEntity(livingentity, 180.0F, 180.0F);\n double d0 = ShulkerEntity.this.getDistanceSq(livingentity);\n if (d0 < 400.0D) {\n if (this.attackTime <= 0) {\n this.attackTime = 20 + ShulkerEntity.this.rand.nextInt(10) * 20 / 2;\n ShulkerEntity.this.world.addEntity(new ShulkerBulletEntity(ShulkerEntity.this.world, ShulkerEntity.this, livingentity, ShulkerEntity.this.getAttachmentFacing().getAxis()));\n ShulkerEntity.this.playSound(SoundEvents.ENTITY_SHULKER_SHOOT, 2.0F, (ShulkerEntity.this.rand.nextFloat() - ShulkerEntity.this.rand.nextFloat()) * 0.2F + 1.0F);\n }\n } else {\n ShulkerEntity.this.setAttackTarget((LivingEntity)null);\n }\n\n super.tick();\n }\n }", "private void learn(float startTime, float endTime) throws SimulationException {\r\n \t\tIterator ruleIter = myPlasticityRules.keySet().iterator();\r\n \t\twhile (ruleIter.hasNext()) {\r\n \t\t\tString name = (String) ruleIter.next();\r\n \t\t\tDecodedTermination termination = myDecodedTerminations.get(name);\r\n \t\t\tPlasticityRule rule = myPlasticityRules.get(name);\r\n \t\t\t\r\n \t\t\tIterator termIter = myDecodedTerminations.keySet().iterator();\r\n \t\t\twhile (termIter.hasNext()) {\r\n \t\t\t\tDecodedTermination t = myDecodedTerminations.get(termIter.next());\r\n \t\t\t\trule.setTerminationState(t.getName(), new RealOutputImpl(t.getOutput(), Units.UNK, endTime), endTime);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tOrigin[] origins = getOrigins();\r\n \t\t\tfor (int i = 0; i < origins.length; i++) {\r\n \t\t\t\tif (origins[i] instanceof DecodedOrigin) {\r\n \t\t\t\t\trule.setOriginState(origins[i].getName(), origins[i].getValues(), endTime);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tfloat[][] transform = termination.getTransform();\r\n \t\t\tfloat[][] derivative = rule.getDerivative(transform, termination.getInput(), endTime);\r\n \t\t\tfloat scale = (termination.getInput() instanceof SpikeOutput) ? 1 : (endTime - startTime); \r\n \t\t\tfor (int i = 0; i < transform.length; i++) {\r\n \t\t\t\tfor (int j = 0; j < transform[i].length; j++) {\r\n \t\t\t\t\ttransform[i][j] += derivative[i][j] * scale;\r\n \t\t\t\t}\r\n \t\t\t}\t\r\n \t\t}\r\n \t}", "public static void updateTime(Basic b, int timePassed, int clock) {\n\t\t\n\t\tWorkFrame_Sim.b = b;\n\t\tStack<Object> stack = b.getCurrentWorkFrame();\n\t\t\n\t\tif (stack.size() <= 0) { //this may happen if agent/obj has no active wf\n\t\t\treturn;\n\t\t}\n\t\tif (!(stack.peek() instanceof ActivityInstance))\n\t\t\tthrow new RuntimeException(\"Top of the stack should hold an \" +\n\t\t\t\t\t\"activity or nothing! This is neither! WF_Sim.updateTime\");\n\t\tActivityInstance ai = (ActivityInstance) stack.peek();\n\t\tif (!(ai.getActivity() instanceof CompositeActivity)) {\n\t\t\t\n\t\t\tint oldTime = ai.getDuration();\n\t\t\tif (oldTime == ai.getStartDuration()) {\n\t\t\t\tActivity_Sim.performActivity(ai.getActivity(), b, \"start\", clock-timePassed);\n\t\t\t}\n\t\t\tint newTime = oldTime - timePassed;\n\t\t\tif (newTime < 0)\n\t\t\t\tthrow new RuntimeException(\"you got the wrong min time! WF_Sim\");\n\t\t\telse if (newTime == 0) {\n\t\t\t\t//perform activities at the end\n\t\t\t\tActivity_Sim.performActivity(ai.getActivity(), b, \"end\", clock); \n\t\t\t\tstack.pop(); //done with this activity\n\t\t\t\t((WorkFrame) stack.peek()).incIndex();\n\t\t\t\tstack = concludesAfterActivity(b, stack);\n\t\t\t\tb.setCurrentWorkFrame(stack);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tai.setDuration(newTime);\n\t\t\t}\n\t\t}\n\t}", "public void updateEntity()\n {\n\t\tif ((++ticksSinceSync % 20) == 0) \n {\n\t\t\tsync();\n\t\t}\n\t\t\n boolean var1 = this.furnaceBurnTime > 0;\n boolean checkBurning = false;\n boolean prevIsBurning = isBurning;\n\n if(this.canSmelt() && this.fuel > 0)\n {\n\t\t\t++this.furnaceCookTime;\n\t\t\tisBurning = true;\n\n\t\t\tif (this.furnaceCookTime == furnaceTimeBase) \n\t\t\t{\n\t\t\t\tthis.furnaceCookTime = 0;\n\t\t\t\t--this.fuel;\n\t\t\t\tthis.smeltItem();\n\t\t\t\tcheckBurning = true;\n\t\t\t}\n }\n else\n {\n this.furnaceCookTime = 0;\n isBurning = false;\n }\n \n \n if(prevIsBurning != isBurning)\n {\n \tcheckBurning = true;\n NF_BlockNetherForge.updateFurnaceBlockState(this.isBurning, this.worldObj, this.xCoord, this.yCoord, this.zCoord);\n }\n\n if (checkBurning)\n {\n this.onInventoryChanged();\n\t\t\tint id = worldObj.getBlockId(xCoord, yCoord, zCoord);\n\t\t\tsync();\n }\n }", "public void applyNewState() {\n this.setAlive(this.newState);\n }", "public void Update(double elapsedTime){\n }", "public void setThunderTime(int time)\n {\n thunderTime = time;\n }", "public void advance(double time) {\n\t\tSet<String> currentActors = new LinkedHashSet<String>(actors.keySet());\n\t\tfor(String actor: currentActors) {\n\t\t\tLog.v(\"Want actor \" + actor);\n\t\t\tActorMachine m = actors.get(actor);\n\t\t\tLog.v(\"Found actor \" + actor);\n\t\t\tif(m != null && m.time < time) {\n\t\t\t\ta = m.nextAction(param);\n\t\t\t\tcurActor = m;\n\t\t\t\tif(a != null) {\n\t\t\t\t\tLog.v(\"Returned action is: \" + a);\n\t\t\t\t\tWorkflow w = context(a);\n\t\t\t\t\tif(w != null) {\n\t\t\t\t\t\tLog.v(\"Workflow returned: \" + w);\n\t\t\t\t\t\ta = impl.addParameters(a, w);\n\t\t\t\t\t\tif(a != null) {\n\t\t\t\t\t\t\tLog.v(\"Parameter'd action is: \" + a);\n\n\t\t\t\t\t\t\t//m.transition(a);\n\t\t\t\t\t\t\ttimeMeasure.preExecMeasurement(this);\n\t\t\t\t\t\t\tm.transition(a);\n\t\t\t\t\t\t\tm.occupy((Integer) timeMeasure.getCurCost());\n\t\t\t\t\t\t\tw.execute(a);\n\t\t\t\t\t\t\tif(w.isComplete()) {\n\t\t\t\t\t\t\t\tworkflows.remove(w);\n\t\t\t\t\t\t\t\tcompletedWorkflows.add(w);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdeterministicExecute(a);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tLog.d(\"Null action returned from addParameters.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tLog.d(\"Null workflow returned from context\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tLog.d(\"No action returned by actor\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tLog.d(\"Actor \" + actor + \" too busy or deleted\");\n\t\t\t}\n\t\t}\n\n\t\tif(SimLogger.LOGLEVEL == Level.FINEST) {\n\t\t\tString str = \"\";\n\t\t\tstr += \"Currently incomplete workflows: \\n\";\n\t\t\tfor(Workflow w : workflows) {\n\t\t\t\tstr += \"\" + w + \"\\n\";\n\t\t\t}\n\t\t\tstr += \"Currently completed workflows: \\n\";\n\t\t\tfor(Workflow w : completedWorkflows) {\n\t\t\t\tstr += \"\" + w + \"\\n\";\n\t\t\t}\n\t\t\tSimLogger.log(Level.FINEST, str);\n\t\t}\n\t}", "public void update(ActorRef out) {\t\n\t\t/* Buff animation */\n\t\tEffectAnimation buff = BasicObjectBuilders.loadEffect(StaticConfFiles.f1_buff);\n\t\tBasicCommands.playEffectAnimation(out, buff, this.currentTile);\n\t\ttry {Thread.sleep(1000);} catch (InterruptedException e) {e.printStackTrace();}\n\t\t\n\t\t/* Update health & attack */\n\t\tthis.addHealth(1, out);\n\t\tthis.addAttack(1, out);\n\t\t\n\t\t/* testing */\n\t\tSystem.out.println(\"SpellThief effect applied to \" + getName());\n\t}", "private void sleep() {\n\t\ttargetFlower = null;\n\t\tif(startForaging()) {\n\t\t\t// add food to bee's crop for upcoming foraging run\n\t\t\tif(food < startingCrop){\n\t\t\t\thive.food -= (startingCrop - food);\n\t\t\t\tfood = startingCrop;\n\t\t\t}\n\t\t\tif(startScouting() || hive.dancingBees.size() <= 0) {\n\t\t\t\tstate = \"SCOUTING\";\n\t\t\t\tcurrentAngle = RandomHelper.nextDoubleFromTo(0, 2*Math.PI);\n\t\t\t}\n\t\t\telse{ // else follow a dance\n\t\t\t\t// if bee follows dance, store angle and distance in the bee object\n\t\t\t\tint index = RandomHelper.nextIntFromTo(0, hive.dancingBees.size() - 1);\n\t\t\t\tNdPoint flowerLoc = space.getLocation(hive.dancingBees.get(index).targetFlower);\n\t\t\t\tNdPoint myLoc = space.getLocation(this);\n\t\t\t\tdouble ang = SpatialMath.calcAngleFor2DMovement(space, myLoc, flowerLoc);\n\t\t\t\tdouble dist = space.getDistance(flowerLoc, myLoc);\n\t\t\t\t\n\t\t\t\t// start following dance at correct angle\n\t\t\t\tcurrentAngle = ang;\n\t\t\t\tfollowDist = dist;\n\t\t\t\tstate = \"FOLLOWING\";\n\t\t\t}\n\t\t}\n\t\telse { // continue sleeping\n\t\t\thive.food -= lowMetabolicRate/2;\n\t\t\thover(grid.getLocation(hive));\n\t\t\t// update energy and food storage\n\t\t\tif(food > startingCrop){\n\t\t\t\tfood -= foodTransferRate;\n\t\t\t\thive.food += foodTransferRate;\n\t\t\t}\n\t\t}\n\t}", "void updateIdleTime(int T);", "public void update(float dt) {\n gameStates.peek().update(dt);\n }", "public void update()\n\t{\n\t\tif (active)\n\t\t{\n\t\t\t// Increases speed to accelerate.\n\t\t\tif (speed < max_speed) speed += acceleration;\n\n\t\t\tif (speed > max_speed) speed = max_speed;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Negates speed to slow down.\n\t\t\tif (speed > 0) speed = -speed;\n\t\t\tif (speed < 0) speed += acceleration;\n\n\t\t\tif (speed > 0) speed = 0;\n\t\t}\n\n\t\t// Sets the speed for thrust.\n\t\thost.momentum.addVelocity(new Displacement(speed * Math.cos(angle), speed * Math.sin(angle)));\n\t}", "public void updateTime(){\r\n\t\tBlock selectedBlock = experiment.getBlocking().getSelectedBlockStructure();\r\n\t\testimatedTimeTotal.setText(secondsToString(estimateTime()));\r\n\t\testimatedTimeSubject.setText(secondsToString((long)(estimateTime()/selectedBlock.get(0).getReplications())));\r\n\t}", "protected void tick() {\n\t\tentities.updateEntities();\n\t\tentities.lateUpdateEntities();\n\t\tentities.killUpdateEntities();\n\t\tif(Game.isServer) entities.updateRespawnEntities();\n\t}", "public void updateState() {\n\t\tfloat uptime = .05f;\t\t\t// Amount of Time the up animation is performed\n\t\tfloat downtime = .35f;\t\t\t// Amount of Time the down animation is performed\n\t\tColor colorUp = Color.YELLOW;\t// Color for when a value is increased\n\t\tColor colorDown = Color.RED;\t// Color for when a value is decreased\n\t\tColor color2 = Color.WHITE;\t\t// Color to return to (Default Color. Its White btw)\n\t\t\n\t\t// Check to see if the Time has changed and we are not initializing the label\n\t\tif(!time.getText().toString().equals(Integer.toString(screen.getState().getHour()) + \":00\") && !level.getText().toString().equals(\"\")) {\n\t\t\t// Set the time label and add the animation\n\t\t\ttime.setText(Integer.toString(screen.getState().getHour()) + \":00\");\n\t\t\ttime.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(time.getText().toString().equals(\"\")) {\n\t\t\t// First time setting the label, dont add the animation\n\t\t\ttime.setText(Integer.toString(screen.getState().getHour()) + \":00\");\n\t\t}\n\t\t\n\t\t// Check to see if the Level has changed and we are not initializing the label\n\t\tif(!level.getText().toString().equals(screen.getState().getTitle()) && !level.getText().toString().equals(\"\")) {\n\t\t\tlevel.setText(\"Level: \" + screen.getState().getTitle());\n\t\t\tlevel.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(level.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the level label\n\t\t\tlevel.setText(\"Level: \" + screen.getState().getTitle());\n\t\t}\n\t\t\n\t\t// Check to see if the XP has changed and we are not initializing the label\n\t\tif(!xp.getText().toString().equals(\"XP: \" + Integer.toString(screen.getState().getXp())) && !xp.getText().toString().equals(\"\")) {\n\t\t\txp.setText(\"XP: \" + Integer.toString(screen.getState().getXp()));\n\t\t\txp.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(xp.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the XP label\n\t\t\txp.setText(\"XP: \" + Integer.toString(screen.getState().getXp()));\n\t\t}\n\t\t\n\t\t// Check to see if the Money has changed and we are not initializing the label\n\t\tif(!money.getText().toString().equals(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\") && !money.getText().toString().equals(\"\")) {\n\t\t\t\n\t\t\t// Check to see if the player's money went up. This is a mess but it works\n\t\t\t// Makes the change animation Yellow or Green depending on the change in money\n\t\t\tif(Double.parseDouble(money.getText().substring(1).toString()) <= screen.getState().getMoney())\n\t\t\t\tmoney.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\telse\n\t\t\t\tmoney.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorDown)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\t\n\t\t\t// Set the label to the new money\n\t\t\tmoney.setText(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\");\n\t\t\t\n\t\t} else if(money.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the Money Label\n\t\t\tmoney.setText(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\");\n\t\t}\n\t\t\n\t\t// Check to see if the Energy has changed and we are not initializing the label\n\t\tif(!energy.getText().toString().equals(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\") && !energy.getText().toString().equals(\"\")) {\n\t\t\t\n\t\t\t// Changes the animation to Yellow or Red depending on the change in the energy value\n\t\t\tif(Integer.parseInt(energy.getText().substring(3).split(\"/\")[0].toString()) < screen.getState().getEnergy())\n\t\t\t\tenergy.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\telse\n\t\t\t\tenergy.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorDown)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\t\n\t\t\t// Set the energy label\n\t\t\tenergy.setText(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\");\n\t\t} else if(energy.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the energy label if it isnt set\n\t\t\tenergy.setText(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\");\n\t\t}\n\t\t\n\t\t// Get the current date.\n\t\tint[] curDate = screen.getState().getDate();\n\t\t\t\n\t\t// Check to see if the Date has changed and we are not initializing the label\n\t\tif(!date.getText().toString().equals(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]) && !date.getText().toString().equals(\"\")) {\n\t\t\t// Set the date label and add the change animation\n\t\t\tdate.setText(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]);\n\t\t\tdate.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(date.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the date label\n\t\t\tdate.setText(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]);\n\t\t}\n\t\t\n\t\t// Set the log text\n\t\tlogLabel.setText(screen.getState().getLog());\n\t\t\n\t\t// Update the stats\n\t\tState state = screen.getState();\n\t\tstatsLabel.setText(\"XP: \" + state.getXp() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Level: \" + state.getLevel() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Title: \" + state.getTitle() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Popularity: \" + state.getPopularity() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Year \" + state.getDate()[0] + \" Month \" + state.getDate()[1] + \" Day \" + state.getDate()[2] + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Hour: \" + state.getHour() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Energy: \" + state.getEnergy() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Current Funds: \" + state.getMoney() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Money Earned: \" + state.getEarned_money() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Money Spent: \" + state.getSpent_money());\n\t}", "@Override\n\tpublic void runFor(BigDecimal timeDiff) {\n\t\tif (timeDiff.$less(ONE)) {\n\t\t\tthrow new BndNetworkException(\"Network BO uses discrete time. Can't run it for \" + timeDiff + \" time steps.\");\n\t\t}\n\t\tDouble diff = timeDiff.toDouble();\n\t\tfor (int i = 0; i < diff; i++) {\n\t\t\tupdateState();\n\t\t}\n\t}", "public void update(int time);", "protected void stateChanged(final SpacecraftState state) {\n final AbsoluteDate date = state.getDate();\n final boolean forward = date.durationFrom(getStartDate()) >= 0.0;\n for (final DoubleArrayDictionary.Entry changed : state.getAdditionalStatesValues().getData()) {\n final TimeSpanMap<double[]> tsm = unmanagedStates.get(changed.getKey());\n if (tsm != null) {\n // this is an unmanaged state\n if (forward) {\n tsm.addValidAfter(changed.getValue(), date, false);\n } else {\n tsm.addValidBefore(changed.getValue(), date, false);\n }\n }\n }\n }", "public Types.ACTIONS act(StateObservation stateObs, ElapsedCpuTimer elapsedTimer) {\n\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if (step == 0) {\n dfs(stateObs);\n }\n return actions.get(step++);\n }", "public void resolve(){\n logger.log(Level.FINE,attacker.getName()+\" withering attacked \"+defender.getName());\n AttackState state=new AttackState();\n state.weaponDamage=weapon.getDamage();\n state.initialAttackpool=baseAttackdice+baseAccuracy-woundpenalty;\n attacker.declareWitheringAttack(state); // If the attacker wants to change the pool, he modifies the state accordingly.\n defender.declareWitheringDV(state); // Defender declares their dv against this specific attack. This sets both initialdv and changedDv\n state.initialAttackRoll= new DiceThrow(state.changedAttackpool);\n attacker.modifyWitheringAttackRollAttacker(state); //This sets stuff like modifiedAttackRollAttacker and AttackerRollValuation\n defender.modifyWitheringAttackRollDefender(state); //This sets defender modifiedAttackRollDefender\n state.attackRollSuccesses=state.modifiedAttackRollDefender.evaluateResults(state.AttackRollValuationAttacker);\n state.threshholdSuccesses=state.attackRollSuccesses-state.changedDv;\n logger.log(Level.FINE,attacker.getName()+\" rolled \"+state.changedAttackpool+\" dice against \"+defender.getName()+\"'s dv of \"+state.changedDv+\" and gained \"+state.attackRollSuccesses+\" successes.\");\n attacker.changeWitheringThreshholdAttacker(state); //This sets thresholdModifiedAttacker\n defender.changeWitheringThreshholdDefender(state); //This sets thresholdModifiedDefender\n if(state.thresholdModifiedDefender>=0) {\n logger.log(Level.FINE,attacker.getName()+\" hit \"+defender.getName()+\" with \"+state.thresholdModifiedDefender+\" threshhold successes.\");\n attacker.modifyWitheringRawDamageAttacker(state); //Sets normal raw damageType, based on strength and weapon damageType, and then sets rawDamagemModifiedAttacker\n defender.modifyWitheringRawDamageDefender(state); //this sets rawDamageModifiedDefender, and sets up the various soak values, so natural soak and armor soak.\n logger.log(Level.FINE, \"The raw damage of the attack is: \"+state.rawDamageModifiedDefender);\n state.totalSoak = Math.max(state.defenderArmorSoak - ignoredArmorSoak, 0) + state.defenderNaturalSoak; //\n attacker.modifyTotalSoakAttacker(state); //This sets totalSoakmodifiedAttacker. Don't think this actually has support in the solar charmset, but giving opportunities to work with.\n defender.modifyTotalSoakDefender(state); // This sets totalSoakmodifiedDefender.\n state.postSoakSuccesses=Math.max(state.rawDamageModifiedDefender-state.totalSoakModifiedDefender,weapon.getOverwhelming());\n logger.log(Level.FINE,state.totalSoakModifiedDefender+\" damage is soaked, leading to post soak dice of \"+state.postSoakSuccesses);\n attacker.declarePostSoakAttacker(state); //sets postSoakSuccessesModifiedAttacker\n defender.declarePostSoakDefender(state); //sets postSoakSuccessesModifiedDefender\n DiceThrow droll=new DiceThrow(state.postSoakSuccessesModifiedDefender);\n state.damageRoll=droll;\n attacker.modifyWitheringDamageRollAttacker(state); //sets damageRollmodifiedAttacker and damageRollvValuation\n defender.modifyWitheringDamageRollDefender(state); //sets damageRollmodifiedDefender\n state.initiativeDamageDone=state.damageRollModifiedDefender.evaluateResults(state.damageRollValuation);\n logger.log(Level.FINE,attacker.getName()+\" rolls \"+state.postSoakSuccessesModifiedDefender+\" dice and achieves \"+state.initiativeDamageDone+\" successes.\");\n attacker.modifyInitiativeDamageAttacker(state);\n defender.modifyInitiativeDamageDefender(state); //Since this is the last change of initiative, we can check whether the defender was crashed here.\n attacker.updateInitiativeAttacker(state);\n defender.updateInitiativeDefender(state);//Here we should handle all the initiative changes respectively, with checking if people are crashed etc.\n }\n else{\n attacker.failedWitheringAttackAttacker(state);\n defender.failedWitheringAttackDefender(state);\n }\n\n }", "@Override\n\tpublic void update(Kernel kernel, float t, float dt) {}", "@Override\n public void update(EntityModel model) {\n\n super.update(model);\n EntityModel.AnimDirection modelDir = model.getAnimDirection();\n\n if(hurtTime < 0) {\n model.setHurt(false);\n hurtTime = 0;\n } else if(model.isHurt() && hurtTime == 0) {\n hurtTime = HURT_FRAMES;\n }\n\n if(this.direction != modelDir) {\n this.previousDirection = this.direction;\n this.stateTime = 0;\n }\n\n this.direction = modelDir;\n model.setAnimDirection(EntityModel.AnimDirection.NONE);\n }", "public void UpdateTrafficLights(TrafficLight t1, TrafficLight t2, TrafficLight t3){\n String t1StatusWord;\n String t2StatusWord;\n String t3StatusWord;\n if(t1.status == 1)\n t1StatusWord = \"Green\";\n else if(t1.status == 0)\n t1StatusWord = \"Red\";\n else\n t1StatusWord = \"Unknown\";\n \n if(t2.status == 1)\n t2StatusWord = \"Green\";\n else if(t2.status == 0)\n t2StatusWord = \"Red\";\n else\n t2StatusWord = \"Unknown\";\n\n if(t3.status == 1)\n t3StatusWord = \"Green\";\n else if(t3.status == 0)\n t3StatusWord = \"Red\";\n else\n t3StatusWord = \"Unknown\";\n\n trafficModel.setValueAt(t1StatusWord, 0, 1);\n if(t1.status == 1)\n trafficModel.setValueAt(t1.time, 0, 2);\n else\n trafficModel.setValueAt(\"--\", 0, 2); \n trafficModel.setValueAt(t2StatusWord, 1, 1);\n if(t2.status == 1)\n trafficModel.setValueAt(t2.time, 1, 2);\n else\n trafficModel.setValueAt(\"--\", 1, 2);\n trafficModel.setValueAt(t3StatusWord, 2, 1);\n if(t3.status == 1)\n trafficModel.setValueAt(t3.time, 2, 2);\n else\n trafficModel.setValueAt(\"--\", 2, 2);\n }", "public abstract void update(float dt);", "public abstract void update(float dt);", "public abstract void update(float dt);", "public void update() {\n\n if (!isSelected){\n goalManagement();\n }\n\n if (chair != null){ // si une chaise lui est désigné\n if (!hasAGoal && !isSelected){ // et qu'il n'a pas d'objectif\n setSit(true);\n position.setX(chair.getX());\n }\n\n if (isSit){\n chair.setChairState(Chair.ChairState.OCCUPIED);\n }else {\n chair.setChairState(Chair.ChairState.RESERVED);\n }\n }\n\n if (tired > 0 ){\n tired -= Constants.TIRED_LOSE;\n }\n\n if (isSit && comfort>0){\n comfort -= Constants.COMFORT_LOSE;\n }\n\n if (isSitOnSofa && comfort<100){\n comfort += Constants.COMFORT_WIN;\n }\n\n if (!hasAGoal && moveToCoffee && coffeeMachine!=null){\n moveToCoffee = false;\n tired=100;\n\n coffeeMachine.setCoffeeTimer(new GameTimer()) ;\n coffeeMachine.getCoffeeTimer().setTimeLimit(Constants.COFFEE_TIME_TO_AVAILABLE);\n coffeeMachine = null;\n backToSpawn();\n }\n\n if (!hasAGoal && moveToSofa){\n moveToSofa = false;\n isSitOnSofa = true;\n dir = 0 ;\n position.setY(position.getY()-Constants.TILE_SIZE);\n }\n\n if (isSelected){\n flashingColor ++;\n if (flashingColor > 2 * flashingSpeed){\n flashingColor = 0;\n }\n }\n\n }", "public void setState(int newState, float blendTime) {\n _states.get(_currentStateHandler).onExit();\n _currentStateHandler = newState;\n _states.get(_currentStateHandler).onEnter();\n }", "void update( State state );", "public void update(float dt) {\n SystemManager.find(UpdateAction.class).forEach(ua -> ((UpdateAction) ua).update(dt));\n }", "@Override\r\n\t\tpublic int threat() {\n\t\t\treturn state.getThreat();\r\n\t\t}", "private void graduallyChange() {\r\n\t\t\tif(governmentLegitimacy> 0.2) governmentLegitimacy -= 0.01;\r\n\t\t}", "public void update(float time){\n\t\t//Check if there is a train to wait for.\n\t\tif (hasTrainPassed(wait))\n\t\t{\n\t\t\tthis.wait = null;\n\t\t\t//Check if the train to be joined is not intersecting the current train (we have to wait for having space between two vehicles before joining)\n\t\t\tif (hasTrainPassed(join) && canJoin())\n\t\t\t{\n\t\t\t\t//Update each vehicle in the train.\n\t\t\t\tupdatePositions(time);\n\t\t\t\t//Make trains joining each other.\n\t\t\t\tthis.effectivlyJoin();\n\t\t\t\tjoin = null;\n\t\t\t}\n\t\t}\n\t}", "public void setActtime(String acttime) {\r\n this.acttime = acttime;\r\n }", "public boolean update(float timeElapsed) {\n\t\t/** Sets the \"real\" time elapsed to that time since the football was constructed\n\t\t * and reduces it into seconds from milliseconds */\n\t\ttimeElapsed_ = (timeElapsed-startTime_)/1000;\n\t\t\n\t\t/** Explode if necessary */\n\t\tfloat expTimeElapsed_ = (timeElapsed-explosionStartTime_)/1000;\n\t\tif (currentSprite_ == explosion_ && expTimeElapsed_ < EXPLOSION_DURATION) {\n\t\t\tscale_ = EXPLOSION_SCALE_FACTOR*expTimeElapsed_*(expTimeElapsed_-EXPLOSION_DURATION);\n\t\t} else {\n\t\t\tsetTheta(getTFcn_().TrajFcn(timeElapsed_));\n\t\t\tsetY(getYFcn_().TrajFcn(timeElapsed_));\n\t\t\tsetX(getXFcn_().TrajFcn(timeElapsed_));\n\t\t}\n\t\t\n\t\treturn isInPlay();\n\t}", "public void updateTime()\n {\n lblStatus.setText(\"Up: \" + time);\n\n if (time.getTimeRan() >= 60)\n {\n lblRPM.setText(\"Avg RPM: \"\n + (int) (recoveryAttempts\n / (time.getTimeRan() / 60)));\n ti.setToolTip(\"AR v4 - \"\n + (int) (recoveryAttempts\n / (time.getTimeRan() / 60)) + \" rpm\");\n }\n }", "@Override\n public void detectAndSendChanges() {\n super.detectAndSendChanges();\n\n final int newStoredFuel = this.tileAdvancedFurnace.getStoredFuel();\n final int newSmeltTime = this.tileAdvancedFurnace.getRemainingSmeltTime();\n if ((lastStoredFuel != newStoredFuel) || (lastSmeltTime != newSmeltTime)) {\n this.lastStoredFuel = newStoredFuel;\n this.lastSmeltTime = newSmeltTime;\n for (int i = 0; i < this.crafters.size(); ++i) {\n final ICrafting icrafting = (ICrafting) this.crafters.get(i);\n icrafting.sendProgressBarUpdate(this, UPDATEID_STORED_OPERATIONS, newStoredFuel);\n icrafting.sendProgressBarUpdate(this, UPDATEID_SMELTTIME_REMAINING, newSmeltTime);\n }\n }\n }", "public static void increaseDifficaulty() {\r\n\t\tif (Enemy._timerTicker > 5)\r\n\t\t\tEnemy._timerTicker -= 2;\r\n\t\tif (Player._timerTicker < 100)\r\n\t\t\tPlayer._timerTicker += 2;\r\n\t}", "private void updateBoard(double timeDelta) {\n // Initialize timeDeltas for all gadgets\n for (Gadget gadget : gadgets) {\n gadget.setTime(timeDelta);\n }\n // Initialize timeDeltas for all balls\n for (Ball ball : this.balls) {\n ball.setTime(timeDelta);\n }\n // Translate all balls\n for (Ball ball : this.balls) {\n double ballTime = ball.getTime();\n if (ballTime != 0) {\n this.translate(ball, ballTime);\n }\n }\n // Update all of the balls' velocities to account for acceleration.\n for (Ball ball : this.balls) {\n this.updateVelWithAccel(ball, timeDelta);\n }\n // Makes a gadget acting if it wasn't triggered this iteration, but is\n // still moving.\n for (Gadget gadget : gadgets) {\n if (gadget.isActing()) {\n gadget.Action();\n }\n }\n checkRep();\n }", "public void update (float dt){\n if(tryb ==1) {\n timeCount += dt;\n if (timeCount >= 1) {\n worldTimer--;\n countdownLabel.setText(String.format(\"%03d\", worldTimer));\n timeCount = 0;\n }\n }\n if(tryb == 2){\n if( worldTimer > 0){\n updateScore(5);\n worldTimer --;\n countdownLabel.setText(String.format(\"%03d\", worldTimer));\n }\n if( worldTimer < 0){\n updateScore(-5);\n worldTimer ++;\n countdownLabel.setText(String.format(\"%03d\", worldTimer));\n }\n\n }\n }", "public void updateIntention() {\n\n // First, rotate the front line\n double distanceToGoal = MathUtils.quickRoot1((float)((anchorX - goalX) * (anchorX - goalX) + (anchorY - goalY) * (anchorY - goalY)));\n double moveAngle, moveSpeed;\n double moveSpeedX, moveSpeedY;\n double speedModifier;\n double[] deltaVel;\n switch (state) {\n case FIGHTING:\n // TODO(sonpham): Come up with a way to change FIGHTING to IN_POSITION when comebat with a unit is over.\n if (unitFoughtAgainst.getNumAlives() == 0) {\n state = UnitState.STANDING;\n anchorAngle = goalAngle;\n unitFoughtAgainst = null;\n break;\n }\n goalAngle = MathUtils.atan2(unitFoughtAgainst.getAverageY() - averageY,\n unitFoughtAgainst.getAverageX() - averageX);\n goalX = unitFoughtAgainst.getAverageX();\n goalY = unitFoughtAgainst.getAverageY();\n\n // If army still rotating, half the speed\n moveAngle = MathUtils.atan2(goalY - anchorY, goalX - anchorX); // TODO: This is currently repeated too much\n moveSpeed = speed / 2;\n\n // Apply speed modifier by terrain\n moveSpeedX = Math.cos(moveAngle) * moveSpeed;\n moveSpeedY = Math.sin(moveAngle) * moveSpeed;\n deltaVel = terrain.getDeltaVelFromPos(anchorX, anchorY);\n speedModifier = MathUtils.ratioProjection(deltaVel[0], deltaVel[1], moveSpeedX, moveSpeedY);\n speedModifier = MathUtils.capMinMax(speedModifier,\n UniversalConstants.MINIMUM_TERRAIN_EFFECT,\n UniversalConstants.MAXIMUM_TERRAIN_EFFECT);\n moveSpeed *= (1 + speedModifier);\n if (distanceToGoal > moveSpeed) {\n double moveUnitX = Math.cos(moveAngle);\n double moveUnitY = Math.sin(moveAngle);\n anchorX += moveUnitX * moveSpeed;\n anchorY += moveUnitY * moveSpeed;\n } else {\n anchorX = goalX;\n anchorY = goalY;\n }\n\n // Update flanker status. If the flank has not engaged with the enemy for a long time, they will join\n // the flanker, which will have a different goal position.\n if (gameSettings.isEnableFlankingMechanics()) {\n for (int i = 0; i < width; i++) {\n if (flankersCount[i] < troops.size() / width && aliveTroopsFormation[flankersCount[i]][i] != null) {\n if (aliveTroopsFormation[0][i].getCombatDelay() < 0) {\n frontLinePatientCounters[i] += 1;\n } else {\n frontLinePatientCounters[i] = 0;\n }\n }\n if (frontLinePatientCounters[i] == GameplayConstants.FLANKER_PATIENT) {\n // If the front-liner has waited for too long, they will join the flanker.\n flankersCount[i] += 1;\n\n // Pick an offset for the flankers\n Triplet<Integer, Integer, Integer> pos;\n Iterator<Triplet<Integer, Integer, Integer>> it;\n // TODO: If the flanker troop is right in the middle, then it should select either\n // iterator half the time.\n if (i < width / 2) {\n it = leftFlankerIndices.iterator();\n } else {\n it = rightFlankerIndices.iterator();\n }\n pos = it.next();\n\n // Generate a new goal offset position for that flanker\n double flankingSpacing = GameplayConstants.FLANKING_SPACING_RATIO * unitStats.spacing;\n double[] offset = MathUtils.generateOffsetBasedOnHexTripletIndices(\n pos.x, pos.y, pos.z, flankingSpacing);\n double positionalJiggling = GameplayConstants.FLANKING_POSITION_JIGGLING_RATIO * flankingSpacing;\n offset[0] += MathUtils.randDouble(-1.0, 1.0) * positionalJiggling;\n offset[1] += MathUtils.randDouble(-1.0, 1.0) * positionalJiggling;\n\n // Assign that position to flanker positions\n flankerOffsets[i].add(offset);\n\n // Change the set of candidates\n leftFlankerIndices.remove(pos);\n rightFlankerIndices.remove(pos);\n if (leftFlankerIndices.size() == 0) {\n leftRingIndex += 1;\n leftFlankerIndices = MathUtils.getHexagonalIndicesRingAtOffset(leftRingIndex);\n Set<Triplet<Integer, Integer, Integer>> removalSet = new HashSet<>();\n for (Triplet<Integer, Integer, Integer> triplet : leftFlankerIndices) {\n if (triplet.z > 0) {\n removalSet.add(triplet);\n } else if (triplet.y < triplet.x) {\n removalSet.add(triplet);\n }\n }\n for (Triplet<Integer, Integer, Integer> triplet : removalSet) {\n leftFlankerIndices.remove(triplet);\n }\n }\n if (rightFlankerIndices.size() == 0) {\n rightRightIndex += 1;\n rightFlankerIndices = MathUtils.getHexagonalIndicesRingAtOffset(rightRightIndex);\n Set<Triplet<Integer, Integer, Integer>> removalSet = new HashSet<>();\n for (Triplet<Integer, Integer, Integer> triplet : rightFlankerIndices) {\n if (triplet.z > 0) {\n removalSet.add(triplet);\n } else if (triplet.y > triplet.x) {\n removalSet.add(triplet);\n }\n }\n for (Triplet<Integer, Integer, Integer> triplet : removalSet) {\n rightFlankerIndices.remove(triplet);\n }\n }\n\n // Reset patient counters.\n frontLinePatientCounters[i] = 0;\n }\n }\n }\n break;\n case ROUTING:\n // Update the direction that the unit ought to run away from, it should be the opposite vector of\n // the sum of difference in unit location difference.\n double dx = 0;\n double dy = 0;\n int numVisibleEnemies = 0;\n for (BaseUnit unit : visibleUnits) {\n if (unit.getPoliticalFaction() != politicalFaction) {\n numVisibleEnemies += 1;\n dx += unit.getAliveTroopsSet().size() * (averageX - unit.averageX);\n dy += unit.getAliveTroopsSet().size() * (averageY - unit.averageY);\n }\n }\n // Invert dx and dy. We need to run in the opposite direction.\n // Also, only change goalAngle if there are more than 1 visible enemy units. Otherwise, atan2 function\n // will return PI / 2 and change the unit direction, which is undesirable. It doesn't make sense for\n // unit to change their direction once they no longer see their enemy.\n if (numVisibleEnemies > 0) {\n goalAngle = MathUtils.atan2(dy, dx);\n }\n break;\n case MOVING:\n // If army is moving, the the army shall move at normal speed.\n moveAngle = MathUtils.atan2(goalY - anchorY, goalX - anchorX); // TODO: This is currently repeated too much\n moveSpeed = speed * turningSpeedRatio;\n\n // Apply speed modifier by terrain\n moveSpeedX = Math.cos(moveAngle) * moveSpeed;\n moveSpeedY = Math.sin(moveAngle) * moveSpeed;\n deltaVel = terrain.getDeltaVelFromPos(anchorX, anchorY);\n speedModifier = MathUtils.ratioProjection(deltaVel[0], deltaVel[1], moveSpeedX, moveSpeedY);\n speedModifier = MathUtils.capMinMax(speedModifier,\n UniversalConstants.MINIMUM_TERRAIN_EFFECT,\n UniversalConstants.MAXIMUM_TERRAIN_EFFECT);\n moveSpeed *= (1 + speedModifier);\n\n if (MathUtils.doubleEqual(moveAngle, anchorAngle)) {\n isTurning = false;\n turningSpeedRatio = 1.0;\n } else {\n isTurning = true;\n turningSpeedRatio = 1.0;\n turningSpeedRatio = Math.max(\n 0.0, turningSpeedRatio - GameplayConstants.TURNING_UNIT_SPEED_DECELERATION_RATIO);\n }\n\n // Rotate towards the goal\n anchorAngle = MovementUtils.rotate(anchorAngle, moveAngle, unitStats.rotationSpeed);\n\n if (distanceToGoal > moveSpeed) {\n double moveUnitX = Math.cos(anchorAngle);\n double moveUnitY = Math.sin(anchorAngle);\n anchorX += moveUnitX * moveSpeed;\n anchorY += moveUnitY * moveSpeed;\n } else {\n anchorX = goalX;\n anchorY = goalY;\n if (path != null && node == path.getNodes().getLast()) {\n path = null;\n node = null;\n state = UnitState.STANDING;\n } else if (path != null) {\n path.getNodes().pollFirst();\n node = path.getNodes().get(0);\n goalX = node.getX();\n goalY = node.getY();\n } else {\n path = null;\n node = null;\n state = UnitState.STANDING;\n }\n }\n break;\n case STANDING:\n anchorAngle = MovementUtils.rotate(anchorAngle, goalAngle, unitStats.rotationSpeed);\n isTurning = false;\n break;\n }\n\n // Update goal positions\n updateGoalPositions();\n\n // Update troop intentions\n for (BaseSingle single : aliveTroopsMap.keySet()) {\n single.updateIntention();\n }\n }", "public void update(double timeStep) {\r\n for (int i = 0; i < targets.length; i++) {\r\n targets[i].update(timeStep);\r\n }\r\n\r\n //when the program is in mouseListeningMode...\r\n if (mouseListeningMode) {\r\n\r\n // if the mouse is currently pressed\r\n if (PennDraw.mousePressed()) { \r\n mouseWasPressedLastUpdate = true;\r\n bird.setVelocityFromMousePos();\r\n }\r\n\r\n //when the player just released the mouse button\r\n if (PennDraw.mousePressed() == false &&\r\n mouseWasPressedLastUpdate == true) {\r\n //game transition from mouse-listening mode to bird-flight mode\r\n mouseWasPressedLastUpdate = false;\r\n mouseListeningMode = false;\r\n bird.decrementThrows();\r\n }\r\n }\r\n\r\n else {\r\n bird.update(timeStep);\r\n\r\n //bird checks if it overlaps each target\r\n for (int i = 0; i < targets.length; i++) {\r\n bird.testAndHandleCollision(targets[i]);\r\n }\r\n\r\n //if target is hit in round its health decreases\r\n if (birdIsOffscreen()) {\r\n for (int i = 0; i < targets.length; i++) {\r\n if (targets[i].isHit()) {\r\n targets[i].decreaseHP();\r\n targets[i].setHitThisShot(false);\r\n }\r\n }\r\n //game is back to mouse listening mode when bird flies offscreen\r\n bird.reset();\r\n mouseListeningMode = true;\r\n }\r\n }\r\n }", "public void update(float deltatime)\n {\n pinkyMotion(deltatime);\n\n if(!((SuperPacmanArea)this.getOwnerArea()).voisinageGate(this) && getScared())\n {\n motionScared(deltatime);\n }\n super.update(deltatime);\n }", "private void updatePhysics ( ECSEntity entity, long t )\n {\n // Constants.\n \n final double SCREEN_HEIGHT = 600.0;\n final double FRICTION_COEFFICIENT = 0.0001 / SCREEN_HEIGHT;\n final double ACCELERATION = 0.001 / SCREEN_HEIGHT;\n \n // Initialize working variables.\n \n double ax = 0.0;\n double ay = 0.0;\n \n // Retrieve the entity's components.\n \n this.transform = ( ComponentTransform ) entity.getComponent ( Constants.COMPONENT_TRANSFORM );\n this.physics = ( ComponentPhysics ) entity.getComponent ( Constants.COMPONENT_PHYSICS );\n \n // Initialize working variables.\n \n Vector2D a = new Vector2D ( this.physics.acceleration );\n Vector2D v = new Vector2D (); \n Vector2D d = new Vector2D ();\n Vector2D u = new Vector2D ();\n Vector2D dUp = new Vector2D ( 0.0, 1.0 );\n Vector2D dDown = new Vector2D ( 0.0, -1.0 );\n Vector2D dRight = new Vector2D ( 1.0, 0.0 );\n Vector2D dLeft = new Vector2D ( -1.0, 0.0 );\n double p = FRICTION_COEFFICIENT;\n double vMax = this.physics.vMax;\n \n // Calculate velocity.\n \n v.setVector ( a.scale ( t ) ); // Acceleration: a = v/t ↔ v = a·t (Newtonian acceleration).\n \n // Apply accelerator.\n \n if ( v.magnitude() < vMax / t )\n { \n if ( this.physics.accelerateUp ) { a.setVector ( a.add ( dUp.scale ( ACCELERATION ) ) ); }\n if ( this.physics.accelerateDown ) { a.setVector ( a.add ( dDown.scale ( ACCELERATION ) ) ); }\n if ( this.physics.accelerateRight ) { a.setVector ( a.add ( dRight.scale ( ACCELERATION ) ) ); }\n if ( this.physics.accelerateLeft ) { a.setVector ( a.add ( dLeft.scale ( ACCELERATION ) ) ); } \n } \n else\n { \n if ( this.physics.accelerateUp ) { a.setVector ( a.subtract ( dUp.scale ( ACCELERATION ) ) ); }\n if ( this.physics.accelerateDown ) { a.setVector ( a.subtract ( dDown.scale ( ACCELERATION ) ) ); }\n if ( this.physics.accelerateRight ) { a.setVector ( a.subtract ( dRight.scale ( ACCELERATION ) ) ); }\n if ( this.physics.accelerateLeft ) { a.setVector ( a.subtract ( dLeft.scale ( ACCELERATION ) ) ); }\n }\n \n // Calculate displacement. ( Distance to move in this time slice ).\n \n d.setVector ( v.scale ( t ) ); // Velocity: v = d/t ↔ d = v·t (Newtonian velocity).\n \n // Apply friction coefficient.\n \n double a2 = 4.0; // Friction amplifier. Used to speed up lateral deceleration, which improves the sense of control response experienced by the user.\n \n ax = a.getX ();\n ay = a.getY ();\n \n if ( this.physics.accelerateUp || this.physics.accelerateDown )\n {\n // If the user is currently accelerating up or down, then use the friction amplifier to speed up deceleration along the horizontal axis.\n \n if ( ax < 0 ) ax += p*a2;\n if ( ax > 0 ) ax -= p*a2;\n if ( ay < 0 ) ay += p;\n if ( ay > 0 ) ay -= p;\n }\n else if ( this.physics.accelerateLeft || this.physics.accelerateRight )\n {\n // If the user is currently accelerating left or right, then use the friction amplifier to speed up deceleration along the vertical axis.\n \n if ( ax < 0 ) ax += p;\n if ( ax > 0 ) ax -= p;\n if ( ay < 0 ) ay += p*a2;\n if ( ay > 0 ) ay -= p*a2;\n }\n else\n {\n // If the user is not accelerating in any direction, then just apply the normal friction coefficient in all direction.\n \n if ( ax < 0 ) { ax += p; if ( ax > 0.0 ) ax = 0.0; }\n if ( ax > 0 ) { ax -= p; if ( ax < 0.0 ) ax = 0.0; }\n if ( ay < 0 ) { ay += p; if ( ay > 0.0 ) ay = 0.0; }\n if ( ay > 0 ) { ay -= p; if ( ay < 0.0 ) ay = 0.0; }\n }\n \n a.setVector ( ax, ay );\n \n // Update physics.\n \n this.physics.acceleration.setVector ( a );\n this.physics.velocity.setVector ( v );\n \n // Update translation.\n \n this.transform.translation.setVector ( this.transform.translation.add ( d ) );\n }", "public void update(float deltaTime) \n\t{\n\t\tif (isGameOver() || goalReached)\n\t\t{\n\t\t\tGdx.input.setInputProcessor(null);\n\t\t\tlevel.update(deltaTime);\n\t\t\ttestCollisions();\n\t\t\tb2world.step(deltaTime, 8, 3);\n\t\t\tcameraHelper.update(deltaTime);\n\t\t\ttimeLeftGameOverDelay -= deltaTime;\n\t\t\tif (timeLeftGameOverDelay < 0)\n\t\t\t{\n\t\t\t\t//backToMenu();\n\t\t\t\treturn; \n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\thandleInputGame(deltaTime);\n\t\t\t\n\t\t\tif (timeLeftDoublePointsup <= 0)\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttimeLeftDoublePointsup-= deltaTime;\n\t\t\t}\n\t\t\t\n\t\t\tb.applyForceToCenter(2, 0, true); //3\n\t\t\tb.setLinearDamping(1);\n\t\t\t\n\t\t\tlevel.update(deltaTime);\n\t\t\ttestCollisions();\n\t\t\tb2world.step(deltaTime, 8, 3);\n\t\t\tcameraHelper.update(deltaTime);\n\t\n\t\t\tif (scoreVisual < score)\n\t\t\t{\n\t\t\t\tscoreVisual = Math.min(score, scoreVisual + 250 * deltaTime);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic Action senseAndAct(Cell[][] view, long timeStep) {\n\t\t// Process the Tanker's view and create Events for new Cells and Tasks\n\t\tdiscoverCells(view);\n\n\t\t// Check that the Tanker is within ample fuel range of a Pump, and create a\n\t\t// CriticalFuelEvent if not\n\t\tPosition.NearestResult nearestFuel = Position.getNearest(position, fuelList.getAdjacent());\n\t\tif (getFuelLevel() < nearestFuel.distance + 2) events.add(new CriticalFuelEvent(getFuelLevel()));\n\n\t\t// Create a PendingTaskEvent is there is a discovered, incomplete Task\n\t\tif (!discoveredTasks.isEmpty()) events.add(new PendingTaskEvent());\n\n\t\t// Check that the current Plan is not complete or made invalid by the Events. Select a new\n\t\t// Plan if this is the case\n\t\tif (currentPlan.isComplete() || !currentPlan.checkValidity(events)) currentPlan = deliberateNewPlan(events);\n\n\t\t// Get the next Action from the current Plan\n\t\tAction action = currentPlan.getNextAction();\n\n\t\t// Transform the Action from the current Plan to one which is accepted by the environment if\n\t\t// necessary. Perform relevant bookkeeping if this moves the Tanker or changes a Task\n\t\tif (action instanceof WanderAction) {\n\t\t\taction = wanderAway(nearestFuel.position);\n\t\t} else if (action instanceof MoveToPositionAction) {\n\t\t\taction = moveTowardsPosition(((MoveToPositionAction) action).getPosition());\n\t\t} else if (action instanceof LoadWasteAction) {\n\t\t\tdiscoveredTasks.remove(position);\n\t\t\tboolean success = stationTaskList.removeAt(position.x, position.y);\n\t\t\tif (!success) throw new IllegalStateException();\n\t\t}\n\n\t\t// Return an environment-friendly Action to be executed\n\t\treturn action;\n\t}", "public static void alarmStateChange(Alarm alarm) {\n\n\t\t/*\n\t\t * Get the Scenario associated to the current thread\n\t\t */\n\t\tScenario theScenario = ScenarioThreadLocal.getScenario();\n\n\t\t/*\n\t\t * Get the logger used for the current scenario and check if enabled ie\n\t\t * defined in log4j.xml\n\t\t */\n\t\tif (theScenario.getLogger().isInfoEnabled()) {\n\t\t\t/* Display simplest text description of the alarm */\n\t\t\ttheScenario.getLogger().info(\n\t\t\t\t\t\"Alarm received: \\n\" + alarm.toString());\n\t\t\ttheScenario\n\t\t\t\t\t.getLogger()\n\t\t\t\t\t.info(\"Rule has fired correctly, and State Change has been proceeded\");\n\n\t\t\t/*\n\t\t\t * Retrieve the list of State updates, clears the list and reset the\n\t\t\t * HasStateChanged flag to false\n\t\t\t */\n\t\t\tList<TimeStampedAttributeChange> StateChanges = alarm\n\t\t\t\t\t.getStateChanges().getChangesAndClear();\n\n\t\t\t/* Check if retrieved list exists and contains any state change */\n\t\t\tif (StateChanges != null && !StateChanges.isEmpty()) {\n\t\t\t\tfor (TimeStampedAttributeChange timeStampedAttributeChange : StateChanges) {\n\n\t\t\t\t\t/* Retrieve the list of state change stored */\n\t\t\t\t\tList<AttributeChange> stChanges = timeStampedAttributeChange\n\t\t\t\t\t\t\t.getAttributeChange();\n\n\t\t\t\t\t/*\n\t\t\t\t\t * If exists and not empty, display the list of state\n\t\t\t\t\t * changed with their old and new value\n\t\t\t\t\t */\n\t\t\t\t\tif (stChanges != null && !stChanges.isEmpty()) {\n\t\t\t\t\t\tfor (AttributeChange attributeChange : stChanges) {\n\t\t\t\t\t\t\ttheScenario\n\t\t\t\t\t\t\t\t\t.getLogger()\n\t\t\t\t\t\t\t\t\t.info(String\n\t\t\t\t\t\t\t\t\t\t\t.format(\"State update [name:%s][newValue:%s][oldValue:%s]\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tattributeChange.getName(),\n\t\t\t\t\t\t\t\t\t\t\t\t\tattributeChange\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getNewValue(),\n\t\t\t\t\t\t\t\t\t\t\t\t\tattributeChange\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getOldValue()));\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void updateAgilisaurusState() {\n this.age++;\n\n if (this.age == 30 && this.hasCapability(LifeStage.BABY)) {\n // grow up\n this.removeCapability(LifeStage.BABY);\n this.addCapability(LifeStage.ADULT);\n this.displayChar = 'D';\n }\n\n if (this.foodLevel > 0) {\n this.foodLevel--;\n }\n\n if (this.waterLevel > 0) {\n this.waterLevel--;\n }\n\n if (this.foodLevel < 30) {\n this.behaviour = new HungryBehaviour();\n }\n\n if (this.foodLevel > 50) {\n this.behaviour = new BreedBehaviour();\n }\n\n if (this.foodLevel == 0) {\n this.Starving();\n } else {\n this.starvationLevel = 0;\n }\n\n if (this.waterLevel < 30) {\n this.behaviour = new ThirstBehaviour();\n }\n\n if (this.waterLevel == 0) {\n this.Thirsting();\n } else {\n this.thirstLevel = 0;\n }\n }", "public void update(){\r\n\t\t\r\n\t\tif (this.getWillPay() == true && this.currentTroll.getBridgeColor().compareTo(\"Black\") == 0 && this.getColor().compareTo(\"Black\") != 0){\r\n\t\t\t\r\n\t\t\tthis.payToll(currentTroll);\r\n\t\t\twaitTime = waitTime - 1;\r\n\t\t\tthis.setBlackCoins(this.getBlackCoins() - 1);\r\n\t\t\tthis.setGreyCoins(this.getGreyCoins() - 1);\r\n\t\t\tthis.setWhiteCoins(this.getWhiteCoins() - 1);\r\n\t\t\t\r\n\t\t} //end if\r\n\t\t\r\n\t\tif (this.getWillPay() == true && currentTroll.getBridgeColor().compareTo(\"White\") == 0 && this.getColor().compareTo(\"White\") != 0){\r\n\t\t\t\r\n\t\t\tthis.payToll(currentTroll);\r\n\t\t\twaitTime = waitTime - 1;\r\n\t\t\tthis.setBlackCoins(this.getBlackCoins() - 1);\r\n\t\t\tthis.setGreyCoins(this.getGreyCoins() - 1);\r\n\t\t\tthis.setWhiteCoins(this.getWhiteCoins() - 1);\r\n\t\t\t\r\n\t\t} //end if\r\n\t\t\r\n\t\tif (this.getWillPay() == true && currentTroll.getBridgeColor().compareTo(\"Grey\") == 0 && this.getColor().compareTo(\"Grey\") != 0){\r\n\t\t\t\r\n\t\t\tthis.payToll(currentTroll);\r\n\t\t\twaitTime = waitTime - 1;\r\n\t\t\tthis.setBlackCoins(this.getBlackCoins() - 1);\r\n\t\t\tthis.setGreyCoins(this.getGreyCoins() - 1);\r\n\t\t\tthis.setWhiteCoins(this.getWhiteCoins() - 1);\r\n\t\t\t\r\n\t\t} //end if\r\n\t\t\r\n\t\tif(this.getWillPay() == false){\r\n\t\t\t\r\n\t\t\twaitTime = waitTime - 1;\r\n\t\t\tthis.setBlackCoins(this.getBlackCoins() - 1);\r\n\t\t\tthis.setGreyCoins(this.getGreyCoins() - 1);\r\n\t\t\tthis.setWhiteCoins(this.getWhiteCoins() - 1);\r\n\t\t\t\r\n\t\t} //end if\r\n\t\t\r\n\t}", "private void advanceBeliefs(int b) {\n\t\tdouble sum = 0;\n\t\tdouble[][] newbel = new double[beliefs.length][beliefs[0].length];\n\t\tfor (int x =0; x < beliefs.length; x++) {\n\t\t\tfor (int y = 0; y < beliefs[0].length; y++) {\n\t\t\t\tdouble statesum = 0; // belief in each state is the sum of beliefs in possible previous state times the probability of the transition\n\t\t\t\tfor (int px = 0; px < beliefs.length; px++) {\n\t\t\t\t\tfor (int py = 0; py < beliefs[0].length; py++) {\n\t\t\t\t\t\tstatesum += beliefs[px][py] * world.transitionProbability(x, y, px, py, b);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tnewbel[x][y] = statesum;\n\t\t\t\tsum += newbel[x][y];\n\t\t\t}\n\t\t}\n\t\t// now normalise them\n\t\tfor (int x = 0; x < beliefs.length; x++) {\n\t\t\tfor (int y = 0; y < beliefs[0].length; y++) {\n\t\t\t\tnewbel[x][y] /= sum;\n\t\t\t}\n\t\t}\n\t\tbeliefs = newbel;\n\t}", "@Override\n\tpublic void act(long now) {\n\n\t\tcheckIsFrogAtTheEdge();\n\t\t\tif (getIntersectingObjects(Car.class).size() >= 1 ||\n\t\t\t\tgetIntersectingObjects(Truck.class).size() >= 1 ||\n\t\t\t\tgetIntersectingObjects(LongTruck.class).size() >= 1)\n\t\t\t\t{\n\t\t\t\t\tintersectCar = true;\n\t\t\t\t}\n\n\t\t\telse if (getIntersectingObjects(Log.class).size() >= 1 && !death) {\n\t\t\t\tmove(frogSpeed.ObjSpeed(frogLevel, 6), 0);\n\t\t\t}\n\n\t\t\telse if (getIntersectingObjects(LongLog.class).size() >= 1 && !death) {\n\n\t\t\t\tmove(frogSpeed.ObjSpeed(frogLevel, 8), 0);\n\t\t\t}\n\n\t\t\telse if (getIntersectingObjects(Turtle.class).size() >= 1) {\n\t\t\t\tmove(frogSpeed.ObjSpeed(frogLevel, 7), 0);\n\t\t\t}\n\t\t\telse if (getIntersectingObjects(WetTurtle.class).size() >= 1){\n\t\t\t\tif (getIntersectingObjects(WetTurtle.class).get(0).isSunk()) {\n\t\t\t\t\tintersectWater = true;\n\t\t\t\t} else {\n\t\t\t\t\tmove(frogSpeed.ObjSpeed(frogLevel, 7), 0);\n\t\t\t\t}\n\t\t\t}\n\t\t\t else if (getIntersectingObjects(End.class).size() >= 1) {\n\n\t\t\t\t\tIntersectEnd();\n\t\t\t\t}\n\n\t\t\telse if (getY() < waterPositionY) {\n\t\t\t\tintersectWater = true;\n\t\t\t}\n\t\t\tgetlives();\n\n\t\t\tCheckIntersect(intersectCar, intersectWater, now);\n\t\t}", "public void setEffectiveTime(Date effectiveTime)\n\t{\n\t\tthis.effectiveTime = effectiveTime;\n\t}", "public abstract State getStateAtTime(double t);", "public List<State> checkStatesEnded(float deltaTime) {\n List<State> result = new ArrayList<>();\n if (permanentState) {\n return result;\n }\n for (Entry<State, Float> entry : stateDuration.entrySet()) {\n float newValue = entry.getValue() - deltaTime;\n if (newValue < 0) {\n result.add(entry.getKey());\n }\n else {\n entry.setValue(newValue);\n }\n }\n for (State state: result) {\n stateDuration.remove(state);\n }\n return result;\n }", "public void updateState();", "public void operateTheBoatForAmountOfTime(double time){// pass 1 as a time\n\t\t if(time > 0.0 && time <= 5.0 ){\n \tdouble fuelUsage = EfficiencyOfTheBoatMotor*currentSpeedOfTheBoat*currentSpeedOfTheBoat*time;\n \tfuelUsage = fuelUsage/10000;//since we have hp, and miles we have to divide by 10000 to get result in gallons \n double realTime; \n // Determine if we run out of fuel\n\t if(fuelUsage > amountOfFuelInTheTank){ \n\t realTime = time * (amountOfFuelInTheTank/fuelUsage); \n\t amountOfFuelInTheTank=0.0 ;\n\t }else{\n\t \tamountOfFuelInTheTank-=fuelUsage; \n\t realTime = time;\n\t }\n\t DistanceTraveled +=currentSpeedOfTheBoat * realTime; \n\t }\n\t }", "public void update (float dTime)\n\t{\n\t\t\n\t\tfor (ColliderPair<ColliderEntity> pairs : mRepo.getColliderPairs())\n\t\t{\n\t\t\tif (\tpairs.getFirst().isActive() && \n\t\t\t\t\tFamilies.FRICTION.matches(pairs.getFirst().getEntity()) &&\n\t\t\t\t\thasFriction(pairs.getFirst(), pairs.getSecond()))\n\t\t\t{\n\t\t\t\tVector3 friction = computeFriction(pairs.getFirst(), pairs.getSecond(), dTime);\n\t\t\t\tForce activeForce = CompoMappers.FORCE.get(pairs.getFirst().getEntity());\n\t\t\t\tactiveForce.add(friction);\n\t\t\t}\n\n\t\t\tif (\tpairs.getSecond().isActive() &&\n\t\t\t\t\tFamilies.FRICTION.matches(pairs.getSecond().getEntity()) &&\n\t\t\t\t\thasFriction(pairs.getSecond(), pairs.getFirst()))\n\t\t\t{\n\t\t\t\tVector3 friction = computeFriction(pairs.getSecond(), pairs.getFirst(), dTime);\n\t\t\t\tForce activeForce = CompoMappers.FORCE.get(pairs.getSecond().getEntity());\n\t\t\t\tactiveForce.add(friction);\n\t\t\t}\n\t\t}\n\t}", "private void sharplyChange(){\r\n\t\t\tgovernmentLegitimacy -= 0.3;\r\n\t\t}", "public void applyState(final World world)\n {\n world.setGameRule( GameRule.DO_DAYLIGHT_CYCLE, this.doDayLightCycle );\n if (this.supportsSleepingPercentage)\n {\n world.setGameRule( GameRule.PLAYERS_SLEEPING_PERCENTAGE, this.percentageSetting );\n }\n }", "@Override\n public void update() {\n if (timeSource.getTime() >= endTime) {\n logger.debug(\"Final laser cooldown complete laser ready to fire\");\n System.out.println(\"Firing again\");\n laser.changeState(new FiringState(laser, owner));\n }\n }", "private void updateArtifactState(ArrayList<TransitionRule> transitionRules , ArrayList<ArtifactInstance> Artifacts)\r\n\t{\r\n\t\t\r\n\t\t\r\n\t\tListIterator<TransitionRule> TrasitionIterator = transitionRules.listIterator();\r\n\t\t\r\n\t\t//System.out.println(\"size of transition Rule:\" + transitionRules.size());\r\n\t\t\r\n\t\twhile(TrasitionIterator.hasNext())\r\n\t\t{\r\n\t\t\tTransitionRule currentTransitionRule = TrasitionIterator.next();\r\n\t\t\tString targetArtifact = currentTransitionRule.getArtifact();\r\n\t\t\tString fromState = currentTransitionRule.getFromState();\r\n\t\t\tString toState = currentTransitionRule.getToState();\r\n\t\t\t\r\n\t\t\t//System.out.println(targetArtifact);\r\n\t\t\t//System.out.println(fromState);\r\n\t\t\t//System.out.println(toState);\r\n\t\t\t\r\n\t\t\tListIterator<ArtifactInstance> ArtifactIterator = Artifacts.listIterator();\r\n\t\t\t\r\n\t\t\twhile(ArtifactIterator.hasNext())\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tArtifactInstance CurrentArtifact = ArtifactIterator.next();\r\n\t\t\t\tString ArtifactName = CurrentArtifact.getArtifactName();\r\n\t\t\t//\tSystem.out.println(ArtifactName);\r\n\t\t\t\tString CurrentArtifactState = CurrentArtifact.getCurrentState();\r\n\t\t\t\tArrayList<StateInstance> StateList = CurrentArtifact.getStateList();\r\n\t\t\t\t\r\n\t\t\t // to be continue state transiton\r\n\t\t\t\tif(ArtifactName.equalsIgnoreCase(targetArtifact) && CurrentArtifactState.equalsIgnoreCase(fromState) ) //&& this.checkState(StateList, fromState, toState)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tCurrentArtifact.setCurrentState(toState);\r\n\t\t\t\t\t//System.out.println(CurrentArtifact.getArtifactName()+\":\"+CurrentArtifact.getCurrentState());\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "protected DynAction nextStateAfterCarTrip(DynAction oldAction, double now) {\n\t\tif (this.parkingManager.parkVehicleHere(Id.create(this.agent.getId(), Vehicle.class), agent.getCurrentLinkId(), now)){\n\t\tthis.lastParkActionState = LastParkActionState.PARKACTIVITY;\n\t\tthis.currentlyAssignedVehicleId = null;\n\t\tthis.parkingLogic.reset();\n\t\t\treturn new IdleDynActivity(this.stageInteractionType, now + configGroup.getParkduration());\n\t\t}\n\t\telse throw new RuntimeException (\"No parking possible\");\n\t}" ]
[ "0.7454916", "0.54459643", "0.5242339", "0.51978403", "0.5176378", "0.51578265", "0.51499367", "0.5124286", "0.50910723", "0.50454724", "0.5006852", "0.4985377", "0.4948962", "0.49351317", "0.4912", "0.48886618", "0.48388675", "0.48291358", "0.4825638", "0.48230675", "0.48137638", "0.48002416", "0.4752689", "0.473128", "0.4724063", "0.4724063", "0.4724063", "0.46941543", "0.4689914", "0.46761864", "0.4655037", "0.46379656", "0.4633137", "0.4630529", "0.46220222", "0.46151412", "0.46127653", "0.46063834", "0.45889732", "0.4586304", "0.45833716", "0.45761412", "0.4560777", "0.4557836", "0.45551085", "0.4548668", "0.45466653", "0.4543439", "0.45364434", "0.45312908", "0.4530905", "0.45260814", "0.45241746", "0.4517421", "0.4507895", "0.45073184", "0.45034656", "0.45022193", "0.45008123", "0.44901112", "0.4484257", "0.44797605", "0.44797605", "0.44797605", "0.44760892", "0.44645923", "0.44645566", "0.44637996", "0.4458081", "0.44532922", "0.44494447", "0.4447851", "0.44469658", "0.44466108", "0.44428366", "0.44411233", "0.44405103", "0.44392908", "0.44373688", "0.4433598", "0.44293505", "0.4418278", "0.44161958", "0.44101828", "0.4408252", "0.44058418", "0.44049552", "0.4403517", "0.43834138", "0.43827483", "0.4381863", "0.4381738", "0.43806565", "0.43805695", "0.43733066", "0.43694323", "0.43682796", "0.43587446", "0.4358728", "0.4357491" ]
0.5310558
2
method updateBeliefStateActionTrans Used to update the belief state using the given diagnosis value. i.e., just factor in the observation made.
void updateBeliefStateDiagnosisObs( BeliefStateDimension prev_belief, DiagnosisTrigger diagnosis, BeliefStateDimension next_belief ) throws BelievabilityException { if (( prev_belief == null ) || ( diagnosis == null ) || ( next_belief == null )) throw new BelievabilityException ( "updateBeliefStateDiagnosisObs()", "NULL parameter(s) sent in." ); double denom = 0.0; String diagnosis_value = diagnosis.getSensorValue(); double[] prev_belief_prob = prev_belief.getProbabilityArray(); double[] next_belief_prob = new double[prev_belief_prob.length]; if ( _logger.isDebugEnabled() ) _logger.debug( "Updating belief given sensor '" + diagnosis.getSensorName() + "' has sensed '" + diagnosis_value + "'"); SensorTypeModel sensor_model = _asset_dim_model.getSensorTypeModel ( diagnosis.getSensorName() ); if ( sensor_model == null ) throw new BelievabilityException ( "updateBeliefStateDiagnosisObs()", "Cannot find sensor model for: " + diagnosis.getSensorName() ); // This 'obs_prob' is a matrix of conditional probabilities of // an observation (i.e., diagnosis) given an asset state. The // first index is the observation and the second is the state. // double[][] obs_prob = sensor_model.getObservationProbabilityArray(); if ( _logger.isDetailEnabled() ) _logger.detail( "Observation probabilities: " + _asset_dim_model.getStateDimensionName() + "\n" + ProbabilityUtils.arrayToString( obs_prob )); int obs_idx = sensor_model.getObsNameIndex( diagnosis_value ); if ( obs_idx < 0 ) throw new BelievabilityException ( "updateBeliefStateDiagnosisObs()", "Diagnosis value '" + diagnosis_value + "' not found. " + diagnosis.toString() ); if ( _logger.isDetailEnabled() ) _logger.detail( "Pre-update: " + ProbabilityUtils.arrayToString( prev_belief_prob )); for ( int state = 0; state < prev_belief_prob.length; state++ ) { next_belief_prob[state] = prev_belief_prob[state] * obs_prob[state][obs_idx]; denom += next_belief_prob[state]; } // for state if ( _logger.isDetailEnabled() ) _logger.detail( "Pre-normalization: " + ProbabilityUtils.arrayToString( next_belief_prob )); // Here we choose to ignore impossible observations, though we // will give a warning. We do not want to completely abort // this operation, since the previous belief state will more // than likely have some threat transition information in it. // Thus, we choose to leave the belief state as is, which is // why we simply copy the arrays over. // if( Precision.isZeroComputation( denom )) { if ( _logger.isWarnEnabled() ) _logger.warn( "updateBeliefStateDiagnosisObs(): " + "Diagnosis is not possible. i.e., Pr(" + diagnosis_value + ") = 0.0. Ignoring diagnosis."); next_belief.setProbabilityArray ( prev_belief.getProbabilityArray()); return; } // if found an impossible observation for( int i = 0; i < next_belief_prob.length; i++ ) next_belief_prob[i] /= denom; if ( _logger.isDetailEnabled() ) _logger.detail( "Post-normalization: " + ProbabilityUtils.arrayToString( next_belief_prob )); next_belief.setProbabilityArray( next_belief_prob ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateBeliefStateActionTrans( BeliefStateDimension prev_belief,\n BelievabilityAction action,\n BeliefStateDimension next_belief )\n throws BelievabilityException\n {\n if (( prev_belief == null )\n || ( action == null )\n || ( next_belief == null ))\n throw new BelievabilityException\n ( \"updateBeliefStateActionTrans()\",\n \"NULL parameter(s) sent in.\" );\n\n // If the action does not pertain to this state dimension\n // (shouldn't happen), then we assume the state remains\n // unchanged (identiy matrix). Note that we copy the\n // probability values from prev_belief to next_belief, even\n // though the next_belief likely starts out as a clone of the\n // prev_belief. We do this because we were afraid of assuming\n // it starts out as a clone, as this would make this more\n // tightly coupled with the specific implmentation that calls\n // this method. Only if this becomes a performance problem\n // should this be revisited.\n // \n\n double[] prev_belief_prob = prev_belief.getProbabilityArray();\n double[] next_belief_prob = new double[prev_belief_prob.length];\n\n // The action transition matrix will model how the asset state\n // change will happen when the action is taken..\n //\n double[][] action_trans\n = _asset_dim_model.getActionTransitionMatrix( action );\n\n if ( _logger.isDetailEnabled() )\n _logger.detail( \"Action transition matrix: \" \n + _asset_dim_model.getStateDimensionName() + \"\\n\" \n + ProbabilityUtils.arrayToString( action_trans ));\n\n // We check this, but it really should never be null.\n //\n if ( action_trans == null )\n throw new BelievabilityException\n ( \"updateBeliefStateActionTrans()\",\n \"Could not find action transition matrix for: \"\n + prev_belief.getAssetID().getName() );\n \n // Start the probability calculation\n //\n for ( int cur_state = 0; \n cur_state < prev_belief_prob.length; \n cur_state++ ) \n {\n \n for ( int next_state = 0; \n next_state < prev_belief_prob.length; \n next_state++ ) \n {\n next_belief_prob[next_state] \n += prev_belief_prob[cur_state] \n * action_trans[cur_state][next_state];\n \n } // for next_state\n } // for cur_state\n\n // We do this before the sanity check, but maybe this isn't\n // the right thing to do. For now, it allows me to more easily\n // convert it to a string in the case where there is a\n // problem. \n //\n next_belief.setProbabilityArray( next_belief_prob );\n\n // Add a sanity check to prevent bogus belief from being\n // propogated to other computations. \n //\n double sum = 0.0;\n for ( int i = 0; i < next_belief_prob.length; i++ )\n sum += next_belief_prob[i];\n\n if( ! Precision.isZeroComputation( 1.0 - sum ))\n throw new BelievabilityException\n ( \"updateBeliefStateActionTrans()\",\n \"Resulting belief doesn't sum to 1.0 : \"\n + next_belief.toString() );\n\n }", "void updateBeliefStateThreatTrans( BeliefStateDimension prev_belief,\n long start_time,\n long end_time,\n BeliefStateDimension next_belief )\n throws BelievabilityException\n {\n\n // The updating of the belief state due to threats is a\n // relatively complicated process. The complication comes\n // from the fact that we must allow multiple threats to cause\n // the same event, and even allow multiple events to affect\n // the state dimension of an asset. We have models for how\n // the threats and events act individually, but no models\n // about how they act in combination. Our job here is trying\n // to estimate what effect these threats and events could have\n // on the asset state dimension. (Note that threats cause\n // events in the techspec model.\n //\n // Note that making a simplifying asumption that only one\n // event will occur at a time does not help us in this\n // computation: we are not trying to adjust after the fact\n // when we *know* an event occurred; we are trying to deduce\n // which of any number of events might have occurred. Thus,\n // we really do need to reason about combinations of events.\n //\n // The prospect of having the techspec encode the full joint\n // probability distributions for a events is not something\n // that will be managable, so we must live with the individual\n // models and make some assumptions. At the heart of the\n // assumption sare that threats that can generate a given\n // event will do so independently, and among multiple events,\n // they too act independently.\n // \n // Details of the calculations and assumptions are found in\n // the parts of the code where the calculations occur.\n //\n\n // All the complications of handling multiple threats happens\n // in this method call.\n //\n double[][] trans_matrix\n = _asset_dim_model.getThreatTransitionMatrix\n ( prev_belief.getAssetID(),\n start_time,\n end_time );\n\n if ( _logger.isDetailEnabled() )\n _logger.detail( \"Threat transition matrix: \" \n + _asset_dim_model.getStateDimensionName() + \"\\n\" \n + ProbabilityUtils.arrayToString( trans_matrix ));\n\n double[] prev_belief_prob = prev_belief.getProbabilityArray();\n double[] next_belief_prob = new double[prev_belief_prob.length];\n\n // The event transition matrix will model how the asset state\n // transitions occur. We now need to fold this into the\n // current belief sate to produce the next belief state.\n //\n\n for ( int cur_state = 0; \n cur_state < prev_belief_prob.length; \n cur_state++ ) \n {\n \n for ( int next_state = 0; \n next_state < prev_belief_prob.length; \n next_state++ ) \n {\n\n next_belief_prob[next_state] \n += prev_belief_prob[cur_state] \n * trans_matrix[cur_state][next_state];\n \n } // for next_state\n } // for cur_state\n\n // We do this before the sanity check, but maybe this isn't\n // the right thing to do. For now, it allows me to more easily\n // convert it to a string in the case where there is a\n // problem. \n //\n next_belief.setProbabilityArray( next_belief_prob );\n\n // Add a sanity check to prevent bogus belief from being\n // propogated to other computations. \n //\n double sum = 0.0;\n for ( int i = 0; i < next_belief_prob.length; i++ )\n sum += next_belief_prob[i];\n\n if( ! Precision.isZeroComputation( 1.0 - sum ))\n throw new BelievabilityException\n ( \"updateBeliefStateThreatTrans()\",\n \"Resulting belief doesn't sum to 1.0 : \"\n + next_belief.toString() );\n\n }", "public void update(){\r\n\r\n // update curState based on inputs\r\n // Perform state-transition actions \r\n switch(curState) {\r\n${nextstatecases}\r\n default:\r\n reset();\r\n break;\r\n }", "public void updateState();", "public abstract void improveValueFunction(Vector<BeliefState> vBeliefPoints, Vector<BeliefState> vNewBeliefPoints);", "void update( State state );", "public void updateState(){\n\t\t\n\t\t\n\t\t\n\t\tArrayList<String> toAdd = new ArrayList<String>();\n\t\tArrayList<String> toRemove = new ArrayList<String>();\n\n\t\tthis.lastAdded.clear();\n\t\tthis.lastFulfilled.clear();\n\t\tthis.lastViolated.clear();\n\t\t\n\t\ttry {\n\n\t\t\tdo{\n\t\t\t\ttoAdd.clear();\n\t\t\t\ttoRemove.clear();\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iActive = reasoner.findall(\"xactive(A,Fa,Fm,Fd,Fr,Timeout)&not(as(A,Fa,Fm,Fd,Fr,Timeout))\");\n\t\t\t\twhile(iActive.hasNext()){\n\t\t\t\t\tUnifier un = iActive.next();\n\t\t\t\t\ttoAdd.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+ adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastAdded.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+ adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iViol = reasoner.findall(\"xviol(A,Fa,Fm,Fd,Fr,Timeout)&not(vs(A,Fa,Fm,Fd,Fr,Timeout))\");\n\t\t\t\twhile(iViol.hasNext()){\n\t\t\t\t\tUnifier un = iViol.next();\n\t\t\t\t\ttoAdd.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastViolated.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iDeactF = reasoner.findall(\"xdeact_f(A,Fa,Fm,Fd,Fr,Timeout)\");\n\t\t\t\twhile(iDeactF.hasNext()){\n\t\t\t\t\tUnifier un = iDeactF.next();\n\t\t\t\t\ttoAdd.add(\"ds(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString()+\",\"+un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastFulfilled.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iDeactR = reasoner.findall(\"xdeact_r(A,Fa,Fm,Fd,Fr,Timeout)\");\n\t\t\t\twhile(iDeactR.hasNext()){\n\t\t\t\t\tUnifier un = iDeactR.next();\n\t\t\t\t\ttoAdd.add(\"ds(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastFulfilled.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iFailed = reasoner.findall(\"xfailed(A,Fa,Fm,Fd,Fr,Timeout)\");\n\t\t\t\twhile(iFailed.hasNext()){\n\t\t\t\t\tUnifier un = iFailed.next();\n\t\t\t\t\ttoAdd.add(\"fs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//norms deactivated (fulfilled) whose maintenance condition does not hold can be removed.\n\t\t\t\t//if they are not removed, new instances of the same norm are not activated\n\t\t\t\tIterator<Unifier> iDeactivated_to_remove = reasoner.findall(\"ds(A,Fa,Fm,Fd,Fr,Timeout)&not(Fm)\");\n\t\t\t\twhile(iDeactivated_to_remove.hasNext()){\n\t\t\t\t\tUnifier un = iDeactivated_to_remove.next();\n\t\t\t\t\ttoRemove.add(\"ds(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t\tfor(String s:toAdd){\n\t\t\t\t\treasoner.assertValue(s);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(String s:toRemove){\n\t\t\t\t\treasoner.retract(s);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}while(toAdd.size()>0|toRemove.size()>0);\t\t\t\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "public void updateImcState(int value) {\n }", "void stateUpdate(String msg);", "Update withState(String state);", "abstract public void updateState();", "public final Op updateState(\n Operand<? extends TNumber> values, Operand<? extends TNumber> sampleWeights) {\n List<Op> controlOps = updateStateList(values, sampleWeights);\n return tf.withSubScope(\"updateState\").withControlDependencies(controlOps).noOp();\n }", "public void setActionValue(final State state, final Action action, final double value) {\r\n getProperties(state).setActionValue(action, value);\r\n }", "public void setState(State state) { model.setState(state); }", "private void updateArtifactState(ArrayList<TransitionRule> transitionRules , ArrayList<ArtifactInstance> Artifacts)\r\n\t{\r\n\t\t\r\n\t\t\r\n\t\tListIterator<TransitionRule> TrasitionIterator = transitionRules.listIterator();\r\n\t\t\r\n\t\t//System.out.println(\"size of transition Rule:\" + transitionRules.size());\r\n\t\t\r\n\t\twhile(TrasitionIterator.hasNext())\r\n\t\t{\r\n\t\t\tTransitionRule currentTransitionRule = TrasitionIterator.next();\r\n\t\t\tString targetArtifact = currentTransitionRule.getArtifact();\r\n\t\t\tString fromState = currentTransitionRule.getFromState();\r\n\t\t\tString toState = currentTransitionRule.getToState();\r\n\t\t\t\r\n\t\t\t//System.out.println(targetArtifact);\r\n\t\t\t//System.out.println(fromState);\r\n\t\t\t//System.out.println(toState);\r\n\t\t\t\r\n\t\t\tListIterator<ArtifactInstance> ArtifactIterator = Artifacts.listIterator();\r\n\t\t\t\r\n\t\t\twhile(ArtifactIterator.hasNext())\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tArtifactInstance CurrentArtifact = ArtifactIterator.next();\r\n\t\t\t\tString ArtifactName = CurrentArtifact.getArtifactName();\r\n\t\t\t//\tSystem.out.println(ArtifactName);\r\n\t\t\t\tString CurrentArtifactState = CurrentArtifact.getCurrentState();\r\n\t\t\t\tArrayList<StateInstance> StateList = CurrentArtifact.getStateList();\r\n\t\t\t\t\r\n\t\t\t // to be continue state transiton\r\n\t\t\t\tif(ArtifactName.equalsIgnoreCase(targetArtifact) && CurrentArtifactState.equalsIgnoreCase(fromState) ) //&& this.checkState(StateList, fromState, toState)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tCurrentArtifact.setCurrentState(toState);\r\n\t\t\t\t\t//System.out.println(CurrentArtifact.getArtifactName()+\":\"+CurrentArtifact.getCurrentState());\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void updateState(boolean state);", "protected void stateChanged(final SpacecraftState state) {\n final AbsoluteDate date = state.getDate();\n final boolean forward = date.durationFrom(getStartDate()) >= 0.0;\n for (final DoubleArrayDictionary.Entry changed : state.getAdditionalStatesValues().getData()) {\n final TimeSpanMap<double[]> tsm = unmanagedStates.get(changed.getKey());\n if (tsm != null) {\n // this is an unmanaged state\n if (forward) {\n tsm.addValidAfter(changed.getValue(), date, false);\n } else {\n tsm.addValidBefore(changed.getValue(), date, false);\n }\n }\n }\n }", "protected void setState(int value) {\r\n\t\tdState = value;\r\n\t\tstateChanged();\r\n\t\t\r\n\t\t// System debug\r\n\t\tSystem.out.println(\"State changed: \" + STATUS[dState]);\r\n\t}", "private void updateBay(int indx, boolean newState)\n {\t\n \tImageView iv;\n \tif (indx == 0)\n \t\tiv = (ImageView) findViewById(R.id.imageView1);\n \t\telse if (indx == 1)\n \t\t\tiv = (ImageView) findViewById(R.id.imageView2);\n \t\t\telse if (indx ==2)\n \t\t\t\tiv = (ImageView) findViewById(R.id.imageView1);\n \t\t\telse iv = (ImageView) findViewById(R.id.imageView1);\n \t\n \t//ImageButton btn = (ImageButton) findViewById(R.id.bay0000);\n \t//ImageView iv = (ImageView) findViewById(R.id.imageView1);\n \t\n \tif( states[indx] == false && newState == true)\n \t{\n \t//btn.setImageResource(R.drawable.occupied);\n \tiv.setImageResource(R.drawable.occupied);\n \tiv.animate();\n \tstates[indx] = true;\n \t}\n \telse if( states[indx] == true && newState == false)\n \t{\n \t//btn.setImageResource(R.drawable.avail);\n \tiv.setImageResource(R.drawable.avail);\n \tiv.animate();\n \t//iv.\n \tiv.refreshDrawableState();\n \tstates[indx] = false;\n \t}\n \t\n }", "@Override\n\tpublic void changeStateTo(String complainId, String state) throws Exception {\n\t\tIBOOrderComplainsValue ivalue = getOrderComplainsById(complainId);\n\t\tivalue.setState(state);\n\t\tBOOrderComplainsEngine.save(ivalue);\n\t}", "protected abstract int newState();", "@Override\n\tpublic int getAction() {\n\t\tint bstar = -1;\n\t\tdouble bstarval = Double.NEGATIVE_INFINITY;\n\t\tfor (int b : actions) {\n\t\t\t// now we need to look at each possible state transition\n\t\t\tdouble newStateSum = 0;\n\t\t\t// which means for every possible next state\n\t\t\tfor (int newX = 0; newX < beliefs.length; newX++) {\n\t\t\t\tfor (int newY = 0; newY < beliefs[0].length; newY++) {\n\t\t\t\t\tint[] newState = new int[]{newX,newY};\n\t\t\t\t\t// we need to look at every possible previous state\n\t\t\t\t\tdouble stateSum = 0;\n\t\t\t\t\tfor (int x = 0; x < beliefs.length; x++) {\n\t\t\t\t\t\tfor (int y = 0; y < beliefs[0].length; y++) {\n\t\t\t\t\t\t\tstateSum += beliefs[x][y] * // belief in CURRENT state if we were to make the observation, times\n\t\t\t\t\t\t\t\t\t\tworld.transitionProbability(newX, newY, x, y, b) * // probability of getting into the new state\n\t\t\t\t\t\t\t\t\t\tworld.getReward(newState);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tnewStateSum += stateSum;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (newStateSum > bstarval) {\n\t\t\t\tbstar = b;\n\t\t\t\tbstarval = newStateSum;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"(EntropicExplorer) Choosing action: \" + world.actionToString(bstar) + \" (value = \" + bstarval + \")\");\n\t\tlastAction = bstar;\n\t\tadvanceBeliefs(bstar);\n\t\treturn bstar;\n\t}", "public void updateActionState()\n\t{\n\t\tboolean enabled = ConcernReCS.getDefault().isDirty(); //Indicates if the view content has changed\n\t\t\n//\t\tsaveaction.setEnabled(enabled);\n\n\t\tgetViewSite().getActionBars().updateActionBars();\n\t}", "public void setState(String state, String actor, String action)\r\n/* 30: */ {\r\n/* 31: 32 */ setActor(actor);\r\n/* 32: 33 */ setAction(action);\r\n/* 33: 34 */ if ((state != null) && (state.equals(\"want\"))) {\r\n/* 34: 35 */ setImage(new ImageIcon(PictureAnchor.class.getResource(\"thumbUp.jpg\")));\r\n/* 35: 37 */ } else if ((state != null) && (state.equals(\"notWant\"))) {\r\n/* 36: 38 */ setImage(new ImageIcon(PictureAnchor.class.getResource(\"thumbDown.jpg\")));\r\n/* 37: */ }\r\n/* 38: */ }", "void updateChargeStates(String experimentAccession, Set<Integer> chargeStates);", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tstate = !state;\n\t\t\tRequestController controller = new RequestController();\n\t\t\tcontroller.flipTile(index, state);\n\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\r\n\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\tFunction.initialize(vd, vt, vl, toggle, et, el);\r\n\t\t\t\t\tactivateSaveBP(get(false));\r\n\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\tsetErr(true);\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\tif (!Function.isError()) {\r\n\t\t\t\t\t\ttextField_4.setText(String.valueOf(Function.getValue()));\r\n\t\t\t\t\t\tactivateSaveBP(get(true));\r\n\t\t\t\t\t}\r\n\t\t\t\t} \r\n\t\t\t}", "public void updateQValue(State oldState, State state)\n\t{\n\t\t// update according to reward of current state\n\t\tdouble reward = state.getReward();\n\t\t\n\t\t// get bets QValue for calculating updated qvalue\n\t\tList<boolean[]> actions = getValidActions();\n\n\t\t// initialize values for comparison in next loop\n\t\tStateActionPair sap = new StateActionPair(state, actions.get(0));\n\t\tdouble bestQValue = getStateActionValue(sap);\n\t\t\n\t\t// for each action, get stateaction pair and compare highest qValue \n\t\t// to return the future reward\n\t\tfor(int i=1; i<actions.size(); i++)\n\t\t{\n\t\t\tsap = new StateActionPair(state, actions.get(i));\n\t\t\tdouble Q = getStateActionValue(sap);\n\t\t\tif( Q > bestQValue )\n\t\t\t\tbestQValue = Q;\n\t\t}\n\n\t\t// create state action pair\n\t\tStateActionPair oldSap = new StateActionPair(oldState, returnAction);\n\t\tdouble oldQ = getStateActionValue(oldSap);\n\n\t\t// calculate reward according to qLearn\n\t\tdouble updatedValue = oldQ + alpha*(reward + gamma*bestQValue - oldQ);\n\t\t\n\t\tqValues.put(oldSap, updatedValue);\t// update qValue of State-action pair\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tboolean value = this.getValue();\n\t\t\n\t\tint bValue = Constants.isTrue;\n\t\tif(value) {\n\t\t\tbValue = Constants.isTrue;\n\t\t} else {\n\t\t\tbValue = Constants.isFalse;\n\t\t}\n\t\t//System.out.println(\"Huhu\");\n\t\tStaticHolder.area.setVariable(this.varNumber, bValue);\n\t\tStaticHolder.area.repaint();\n\t\tif(StaticHolder.area.isTrue()) {\n\t\t\tJOptionPane.showMessageDialog(StaticHolder.mainWindow, \"Herzlichen Glückwunsch! Sie haben gewonnen.\");\n\t\t}\n\t\t\n\t}", "public void changeState(int transition) {\n lastState = currentState;\n currentState = nextState[currentState][transition];\n // System.out.println(\" = \" + currentState);\n if (currentState == -2) {\n System.out.println(\"Error [\" + currentState + \"] has occured\");\n terminate();\n }\n else if (currentState == -1) {\n terminate();\n }\n states[currentState].run();\n }", "public State getState(Action action) { \n\t\tState newstate = new State(getTractor(), getK(), getMax(), getRows(), getColumns());\n\t\tfor (int i = 0; i < getRows(); i++) {\n\t\t\tfor (int j = 0; j < getColumns(); j++) {\n\t\t\t\tnewstate.cells[i][j] = new Square(i, j, cells[i][j].getSand()); \n\t\t\t}\n\t\t} \n\t\tnewstate.getSquare(newstate.getTractor()).setSand(newstate.getSquare(newstate.getTractor()).getSand()-action.distributedAmount());\n\t\tnewstate.tractor=(Square) action.getMovement();\n\t\tSquare[] adjacents = action.getAdjacents();\n\t\tint[] values = action.getValues();\n\n\t\tfor (int i = 0; i < adjacents.length; i++) {\n\t\t\tnewstate.getSquare(adjacents[i]).setSand(newstate.getSquare(adjacents[i]).getSand()+values[i]);\n\t\t}\n\t\treturn newstate;\n\t}", "public abstract void stateChanged(STATE state);", "@Override\n\tpublic void adjust() {\n\t\tstate = !state;\n\t}", "public void updateState() {\n\t\tfloat uptime = .05f;\t\t\t// Amount of Time the up animation is performed\n\t\tfloat downtime = .35f;\t\t\t// Amount of Time the down animation is performed\n\t\tColor colorUp = Color.YELLOW;\t// Color for when a value is increased\n\t\tColor colorDown = Color.RED;\t// Color for when a value is decreased\n\t\tColor color2 = Color.WHITE;\t\t// Color to return to (Default Color. Its White btw)\n\t\t\n\t\t// Check to see if the Time has changed and we are not initializing the label\n\t\tif(!time.getText().toString().equals(Integer.toString(screen.getState().getHour()) + \":00\") && !level.getText().toString().equals(\"\")) {\n\t\t\t// Set the time label and add the animation\n\t\t\ttime.setText(Integer.toString(screen.getState().getHour()) + \":00\");\n\t\t\ttime.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(time.getText().toString().equals(\"\")) {\n\t\t\t// First time setting the label, dont add the animation\n\t\t\ttime.setText(Integer.toString(screen.getState().getHour()) + \":00\");\n\t\t}\n\t\t\n\t\t// Check to see if the Level has changed and we are not initializing the label\n\t\tif(!level.getText().toString().equals(screen.getState().getTitle()) && !level.getText().toString().equals(\"\")) {\n\t\t\tlevel.setText(\"Level: \" + screen.getState().getTitle());\n\t\t\tlevel.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(level.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the level label\n\t\t\tlevel.setText(\"Level: \" + screen.getState().getTitle());\n\t\t}\n\t\t\n\t\t// Check to see if the XP has changed and we are not initializing the label\n\t\tif(!xp.getText().toString().equals(\"XP: \" + Integer.toString(screen.getState().getXp())) && !xp.getText().toString().equals(\"\")) {\n\t\t\txp.setText(\"XP: \" + Integer.toString(screen.getState().getXp()));\n\t\t\txp.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(xp.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the XP label\n\t\t\txp.setText(\"XP: \" + Integer.toString(screen.getState().getXp()));\n\t\t}\n\t\t\n\t\t// Check to see if the Money has changed and we are not initializing the label\n\t\tif(!money.getText().toString().equals(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\") && !money.getText().toString().equals(\"\")) {\n\t\t\t\n\t\t\t// Check to see if the player's money went up. This is a mess but it works\n\t\t\t// Makes the change animation Yellow or Green depending on the change in money\n\t\t\tif(Double.parseDouble(money.getText().substring(1).toString()) <= screen.getState().getMoney())\n\t\t\t\tmoney.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\telse\n\t\t\t\tmoney.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorDown)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\t\n\t\t\t// Set the label to the new money\n\t\t\tmoney.setText(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\");\n\t\t\t\n\t\t} else if(money.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the Money Label\n\t\t\tmoney.setText(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\");\n\t\t}\n\t\t\n\t\t// Check to see if the Energy has changed and we are not initializing the label\n\t\tif(!energy.getText().toString().equals(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\") && !energy.getText().toString().equals(\"\")) {\n\t\t\t\n\t\t\t// Changes the animation to Yellow or Red depending on the change in the energy value\n\t\t\tif(Integer.parseInt(energy.getText().substring(3).split(\"/\")[0].toString()) < screen.getState().getEnergy())\n\t\t\t\tenergy.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\telse\n\t\t\t\tenergy.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorDown)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\t\n\t\t\t// Set the energy label\n\t\t\tenergy.setText(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\");\n\t\t} else if(energy.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the energy label if it isnt set\n\t\t\tenergy.setText(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\");\n\t\t}\n\t\t\n\t\t// Get the current date.\n\t\tint[] curDate = screen.getState().getDate();\n\t\t\t\n\t\t// Check to see if the Date has changed and we are not initializing the label\n\t\tif(!date.getText().toString().equals(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]) && !date.getText().toString().equals(\"\")) {\n\t\t\t// Set the date label and add the change animation\n\t\t\tdate.setText(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]);\n\t\t\tdate.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(date.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the date label\n\t\t\tdate.setText(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]);\n\t\t}\n\t\t\n\t\t// Set the log text\n\t\tlogLabel.setText(screen.getState().getLog());\n\t\t\n\t\t// Update the stats\n\t\tState state = screen.getState();\n\t\tstatsLabel.setText(\"XP: \" + state.getXp() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Level: \" + state.getLevel() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Title: \" + state.getTitle() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Popularity: \" + state.getPopularity() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Year \" + state.getDate()[0] + \" Month \" + state.getDate()[1] + \" Day \" + state.getDate()[2] + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Hour: \" + state.getHour() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Energy: \" + state.getEnergy() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Current Funds: \" + state.getMoney() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Money Earned: \" + state.getEarned_money() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Money Spent: \" + state.getSpent_money());\n\t}", "public void changeState()\r\n\t{\r\n\t\tfailedNumber=0;\r\n\t\tif(state.equalsIgnoreCase(\"IN PREPARATION\"))\r\n\t\t\tsetState(\"IN TRANSIT\");\r\n\t\telse if(state.equalsIgnoreCase(\"IN TRANSIT\"))\r\n\t\t{\r\n\t\t\tfailedNumber=Math.random();\r\n\t\t\tif(failedNumber<=0.2) setState(\"FAILED\");\r\n\t\t\telse setState(\"RECEIVED\");\r\n\t\t}\r\n\t}", "void updateBeliefStateTrigger( BeliefStateDimension prev_belief,\n BeliefUpdateTrigger trigger,\n BeliefStateDimension next_belief )\n throws BelievabilityException\n {\n if (( prev_belief == null )\n || ( trigger == null )\n || ( next_belief == null ))\n throw new BelievabilityException\n ( \"updateBeliefStateTrigger()\",\n \"NULL parameter(s) sent in.\" );\n \n if ( trigger instanceof DiagnosisTrigger )\n updateBeliefStateDiagnosisObs( prev_belief,\n (DiagnosisTrigger) trigger,\n next_belief );\n else if ( trigger instanceof BelievabilityAction)\n updateBeliefStateActionTrans( prev_belief,\n (BelievabilityAction) trigger,\n next_belief );\n else\n throw new BelievabilityException\n ( \"updateBeliefStateTrigger()\",\n \"Unknown BeliefUpdateTrigger subclass: \"\n + trigger.getClass().getName() );\n \n }", "public void updateState(ArrayList<Cell> neighbors){\n\t\tint catSame = 0;\n\t\tint catDiff = 0;\n\t\tfor( Cell c : neighbors){\n\t\t\t//use instance of to find categorized cells in neighbors\n\t\t\tif( c instanceof PreferenceCell){\n\t\t\t\t//help from CP Majgaard--forced type cast\n\t\t\t\tif( ((PreferenceCell)c).getCategory() == this.getCategory()){\n\t\t\t\t\tcatSame ++;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tcatDiff++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//this is if the cell doesn't have a category\n\t\t\telse{\n\t\t\t\tcatDiff ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this else contains the original categorizedcell updatestate\n\t\t//if num of same > num of different cells\n\t\t//move +/-5 at 1% of the time\n\t\tRandom rand = new Random();\n\t\tif (catSame > catDiff) {\n\t\t\tint percentage = rand.nextInt(100);\n\t\t\tif (percentage == 0) {\n\t\t\t\tthis.x += randomInRange(-5, 5);\n\t\t\t\tthis.y += randomInRange(-5, 5);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//else move +/-5 all the time\n\t\telse {\n\t\t\t\tthis.x += randomInRange(-5, 5);\n\t\t\t\tthis.y += randomInRange(-5, 5);\n\t\t\t}\n \t}", "private void advanceBeliefs(int b) {\n\t\tdouble sum = 0;\n\t\tdouble[][] newbel = new double[beliefs.length][beliefs[0].length];\n\t\tfor (int x =0; x < beliefs.length; x++) {\n\t\t\tfor (int y = 0; y < beliefs[0].length; y++) {\n\t\t\t\tdouble statesum = 0; // belief in each state is the sum of beliefs in possible previous state times the probability of the transition\n\t\t\t\tfor (int px = 0; px < beliefs.length; px++) {\n\t\t\t\t\tfor (int py = 0; py < beliefs[0].length; py++) {\n\t\t\t\t\t\tstatesum += beliefs[px][py] * world.transitionProbability(x, y, px, py, b);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tnewbel[x][y] = statesum;\n\t\t\t\tsum += newbel[x][y];\n\t\t\t}\n\t\t}\n\t\t// now normalise them\n\t\tfor (int x = 0; x < beliefs.length; x++) {\n\t\t\tfor (int y = 0; y < beliefs[0].length; y++) {\n\t\t\t\tnewbel[x][y] /= sum;\n\t\t\t}\n\t\t}\n\t\tbeliefs = newbel;\n\t}", "private void btnUpdateActionPerformed(java.awt.event.ActionEvent evt) {\n try {\n app.updateStatusBayar(tran.getNoResi(), getCbBayar());\n JOptionPane.showMessageDialog(null, \"Update Status Bayar Berhasil\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }", "public void update(String state) {\n\t\tSystem.out.println(\"收到状态---\"+state);\n\t\tthis.state = state;\n\t}", "@Override\r\n\tpublic void updateState(int id, int state) {\n\t}", "public void setState(PlayerState newPlayerState) {\n\n this.playerState = newPlayerState;\n\n closeWindows();\n\n\n switch (newPlayerState) {\n\n case CHOOSE_BONUS_TILE:\n\n setActions(false);\n\n setLeaderButtons(false);\n\n setFamilyPawns(false);\n\n setThrowDices(false);\n\n setSkipAction(false);\n\n setEndTurn(false);\n\n setUseLeader(false);\n\n\n break;\n\n\n case THROWDICES:\n\n setActions(false);\n\n setLeaderButtons(false);\n\n setFamilyPawns(false);\n\n setThrowDices(true);\n\n setSkipAction(false);\n\n setEndTurn(false);\n\n setUseLeader(false);\n\n try {\n throwDices();\n } catch (InterruptedException e) {\n LOGGER.log(Level.WARNING, \"Interrupted!\", e);\n // clean up state...\n Thread.currentThread().interrupt();\n }\n\n break;\n\n\n\n case DOACTION:\n\n setActions(false);\n\n setLeaderButtons(false);\n\n setFamilyPawns(true);\n\n setThrowDices(false);\n\n setSkipAction(true);\n\n setEndTurn(true);\n\n setUseLeader(true);\n\n try {\n yourTurn();\n } catch (InterruptedException e) {\n LOGGER.log(Level.WARNING, \"Interrupted!\", e);\n // clean up state...\n Thread.currentThread().interrupt();\n }\n\n\n break;\n\n case BONUSACTION:\n\n setActions(false);\n\n setLeaderButtons(false);\n\n setFamilyPawns(false);\n\n setThrowDices(false);\n\n setSkipAction(true);\n\n setEndTurn(true);\n\n setUseLeader(true);\n\n\n try {\n bonusAction();\n } catch (InterruptedException e) {\n LOGGER.log(Level.WARNING, \"Interrupted!\", e);\n // clean up state...\n Thread.currentThread().interrupt();\n }\n\n break;\n\n\n case CHOOSEACTION:\n\n setActions(false);\n\n setLeaderButtons(false);\n\n setFamilyPawns(true);\n\n setThrowDices(false);\n\n setSkipAction(true);\n\n setEndTurn(true);\n\n setUseLeader(true);\n\n\n break;\n\n\n case CHOOSEWORKERS:\n case ACTIVATE_PAY_TO_OBTAIN_CARDS:\n case CHOOSE_EFFECT:\n case CHOOSECOST:\n case CHOOSE_COUNCIL_PRIVILEGE:\n case PRAY:\n case WAITING:\n\n noButtonsAble();\n\n setLeaderButtons(false);\n\n setUseLeader(false);\n\n break;\n\n case ENDTURN:\n\n setActions(false);\n\n setLeaderButtons(false);\n\n setFamilyPawns(false);\n\n setThrowDices(false);\n\n setSkipAction(false);\n\n setEndTurn(true);\n\n setUseLeader(true);\n\n\n break;\n\n case LEADER:\n\n noButtonsAble();\n\n setUseLeader(true);\n break;\n\n\n case SUSPENDED:\n\n noButtonsAble();\n\n setLeaderButtons(false);\n\n setUseLeader(false);\n\n suspendedPane.setVisible(true);\n\n break;\n\n\n }\n\n }", "private void setState(WFDState s) {\n Log.d(TAG, \"Moving from \" + sState + \" --> \" + s);\n sState = s;\n }", "public void update(ICard actions) {\n\r\n }", "public void setState( EAIMMCtxtIfc theCtxt, java.lang.String theState) throws EAIException;", "public void updateState(String key, Object value) {\n\n\t}", "public void updateState(String key, Object value)\n {\n stateChangeRequest(key, value);\n }", "public boolean updateDiagnosis(Diagnosis diagnosis) {\n\t\treturn false;\n\t}", "void setDownwardMessage(Factor f) {\n\t\t\t_deltaJtoI = f;\n\t\t\tSystem.out.println(\"downward message now:\\n\"+this.getLongInfo());\n\t\t}", "public void GiveBackAp(String faction)\r\n/* 273: */ {\r\n/* 274:308 */ for (AgentModel model : this.agentModels.values()) {\r\n/* 275:310 */ if (model.getFaction().equals(faction)) {\r\n/* 276:312 */ model.setAp(model.getMaxAP());\r\n/* 277: */ }\r\n/* 278: */ }\r\n/* 279: */ }", "private void updateActionText() {\n getTemplatePresentation().setText(myIsExpanded ? myToCollapseText : myToExpandText);\n }", "public void updateAction(ActionInfoBase actionInfo) {\r\n\t\tif (position == -1) {\r\n\t\t\tposition = 1;\r\n\t\t\tmyCurrentBet = Params.BB;\r\n\t\t}\r\n\t\tif (actionInfo.playerID != myID && trees[index()].getCurrent() instanceof Root)\r\n\t\t\ttrees[index()].getCurrent().stats.frequency++;\r\n\t\tif (boards[stage].equals(\"UNKNOWN\"))\r\n\t\t\tboards[stage] = actionInfo.board;\r\n\t\tif (actionInfo.playerID == myID && !(actionInfo instanceof FoldInfo))\r\n\t\t\tmyCurrentBet = actionInfo.amt;\r\n\t\tif (trees[index()].updateAction(actionInfo) && stage < 3) {\r\n\t\t\tintel.updateRecord(trees[index()].getCurrent());\r\n\t\t\tmyPreviousBet += myCurrentBet;\r\n\t\t\tmyCurrentBet = 0;\r\n\t\t\tstage++;\r\n\t\t}\r\n\t}", "public void applyNewState() {\n this.setAlive(this.newState);\n }", "@Override\r\n public void doEdit ()\r\n throws DoEditException\r\n {\n List<StringWithProperties> criteria = probNet.getDecisionCriteria ();\r\n StringWithProperties criterion = null;\r\n switch (stateAction)\r\n {\r\n case ADD :\r\n if (criteria == null)\r\n {\r\n // agents = new StringsWithProperties();\r\n criteria = new ArrayList<StringWithProperties> ();\r\n }\r\n criterion = new StringWithProperties (criterionName);\r\n // agents.put(agentName);\r\n criteria.add (criterion);\r\n probNet.setDecisionCriteria2 (criteria);\r\n break;\r\n case REMOVE :\r\n for (StringWithProperties criterio : criteria)\r\n {\r\n if (criterio.getString ().equals (criterionName))\r\n {\r\n criterion = criterio;\r\n }\r\n }\r\n criteria.remove (criterion);\r\n // TODO assign criteria to node\r\n // it is also necessary to delete this criteria from the node it\r\n // was assigned to\r\n /*\r\n * if (criteria != null) { for (ProbNode node :\r\n * probNet.getProbNodes()) { if\r\n * (node.getVariable().getDecisionCriteria\r\n * ().getString().equals(criteriaName)) {\r\n * node.getVariable().setDecisionCriteria(null); } } }\r\n */\r\n if (criteria.size () == 0)\r\n {\r\n criteria = null;\r\n }\r\n probNet.setDecisionCriteria2 (criteria);\r\n break;\r\n case DOWN :\r\n // StringsWithProperties newAgentsDown = new\r\n // StringsWithProperties();\r\n ArrayList<StringWithProperties> newCriteriasDown = new ArrayList<StringWithProperties> ();\r\n for (int i = 0; i < dataTable.length; i++)\r\n {\r\n // newAgentsDown.put((String)dataTable[i][0]);\r\n newCriteriasDown.add (new StringWithProperties ((String) dataTable[i][0]));\r\n }\r\n probNet.setDecisionCriteria2 (newCriteriasDown);\r\n break;\r\n case UP :\r\n // StringsWithProperties newAgentsUp = new\r\n // StringsWithProperties();\r\n ArrayList<StringWithProperties> newCriteriasUp = new ArrayList<StringWithProperties> ();\r\n for (int i = 0; i < dataTable.length; i++)\r\n {\r\n // newAgentsUp.put((String)dataTable[i][0]);\r\n newCriteriasUp.add (new StringWithProperties ((String) dataTable[i][0]));\r\n }\r\n probNet.setDecisionCriteria2 (newCriteriasUp);\r\n break;\r\n case RENAME :\r\n // agents.rename(agentName, newName);\r\n // StringsWithProperties newAgentsRename = new\r\n // StringsWithProperties();\r\n ArrayList<StringWithProperties> newCriteriasRename = new ArrayList<StringWithProperties> ();\r\n for (int i = 0; i < dataTable.length; i++)\r\n {\r\n // newAgentsRename.put((String)dataTable[i][0]);\r\n newCriteriasRename.add (new StringWithProperties ((String) dataTable[i][0]));\r\n }\r\n probNet.setDecisionCriteria2 (newCriteriasRename);\r\n break;\r\n }\r\n }", "private void updateAgilisaurusState() {\n this.age++;\n\n if (this.age == 30 && this.hasCapability(LifeStage.BABY)) {\n // grow up\n this.removeCapability(LifeStage.BABY);\n this.addCapability(LifeStage.ADULT);\n this.displayChar = 'D';\n }\n\n if (this.foodLevel > 0) {\n this.foodLevel--;\n }\n\n if (this.waterLevel > 0) {\n this.waterLevel--;\n }\n\n if (this.foodLevel < 30) {\n this.behaviour = new HungryBehaviour();\n }\n\n if (this.foodLevel > 50) {\n this.behaviour = new BreedBehaviour();\n }\n\n if (this.foodLevel == 0) {\n this.Starving();\n } else {\n this.starvationLevel = 0;\n }\n\n if (this.waterLevel < 30) {\n this.behaviour = new ThirstBehaviour();\n }\n\n if (this.waterLevel == 0) {\n this.Thirsting();\n } else {\n this.thirstLevel = 0;\n }\n }", "ControllerState getModifyState();", "@Override\n\tpublic void update(VPAction arg0) {\n\n\t}", "void setState(int state);", "public abstract void setState(String sValue);", "@ScheduledMethod(start = 1, interval = 1)\n\tpublic void update() {\n\t\tupdateParameters();\t\t\t// update bee coefficients using parameters UI\n\t\tkillBee();\t\t\t\t\t// (possibly) kill the bee (not currently used)\n\t\tlowFoodReturn();\n\t\tif(state == \"SLEEPING\"){\n\t\t\tsleep();\n\t\t}\n\t\tif(state == \"SCOUTING\"){\n\t\t\tscout();\n\t\t}\n\t\tif(state == \"TARGETING\"){\n\t\t\ttarget();\n\t\t}\n\t\tif(state == \"HARVESTING\"){\n\t\t\tharvest();\n\t\t}\n\t\tif(state == \"RETURNING\"){\n\t\t\treturnToHive();\n\t\t}\n\t\tif(state == \"AIMLESSSCOUTING\"){\n\t\t\taimlessScout();\n\t\t}\n\t\tif(state == \"DANCING\"){\n\t\t\tdance();\n\t\t}\n\t\tif(state == \"FOLLOWING\"){\n\t\t\tfollow();\n\t\t}\n\t}", "private void valueIteration(double discount, double threshold) {\n\t\tArrayList<Double> myStateValueCopy = new ArrayList<Double>(this.numMyStates);\n\t\tfor(int i=0; i<this.numMyStates; i++) {\n\t\t\tmyStateValueCopy.add((double) this.stateValueList.get(i));\n\t\t}\n\t\tdouble delta = 100.0;\n\t\tdo {\n\t\t\tfor(int i=0; i<this.numMyStates; i++) {\n\t\t\t\tdouble maxValue = -1000000000000000.0;\n\t\t\t\tmyState s = new myState(i);\n\t\t\t\tfor(myAction a: this.getActions(s)) {\n\t\t\t\t\tdouble qValue = this.rewardTable.get(i).get(a.id);\n\t\t\t\t\tfor(int k=0; k<this.numMyStates; k++) {\n\t\t\t\t\t\tdouble transProb = this.transitionProbabilityTable.get(i).get(a.id).get(k);\n\t\t\t\t\t\tqValue+=discount*(transProb*myStateValueCopy.get(k));\n\t\t\t\t\t}\n\t\t\t\t\tif(qValue>maxValue) {\n\t\t\t\t\t\tmaxValue = qValue;\n\t\t\t\t\t\tthis.policy.set(i, a.id);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tmyStateValueCopy.set(i, maxValue);\n\t\t\t}\n\t\t\t// compute delta change in value list\n\t\t\tdelta = 0.0;\n\t\t\tfor(int i=0; i<this.numMyStates; i++) {\n\t\t\t\tdouble vsDelta = this.stateValueList.get(i) - myStateValueCopy.get(i);\n\t\t\t\tthis.stateValueList.set(i, (double) myStateValueCopy.get(i));\n\t\t\t\tdelta+= vsDelta*vsDelta;\n\t\t\t}\n\t\t} while(delta>threshold);\n\t\tSystem.gc();\n\t}", "public abstract void updateState(ENodeState state);", "public void setCellState(int newState) {\n this.myState = newState;\n }", "public void updateHiddenValues(Actor actor) {\r\n\t\tthis.init = actor.init;\r\n\t}", "public abstract void setValueAction(Object value);", "public void setState(State newState) {this.state = newState;}", "private void stateChanged(TallyDeviceService.State pNewState, Message pMsg) {\n\n state = pNewState;\n\n if (state == TallyDeviceService.State.CONNECTED) {\n tallyDeviceName = (String)pMsg.obj;\n handleConnectedState();\n } else if (state == TallyDeviceService.State.CONNECTING) {\n tallyDeviceName = (String)pMsg.obj;\n handleConnectingState();\n } else if (state == TallyDeviceService.State.DISCONNECTED) {\n handleDisconnectedState();\n }\n\n }", "@Override\r\n public void updateModel(Bid opponentBid, double time) {\r\n if (negotiationSession.getOpponentBidHistory().size() < 2) {\r\n return;\r\n }\r\n int numberOfUnchanged = 0;\r\n // get the current bid of the opponent\r\n BidDetails oppBid = negotiationSession.getOpponentBidHistory().getHistory()\r\n .get(negotiationSession.getOpponentBidHistory().size() - 1);\r\n // get the previous bid of the opponent\r\n BidDetails prevOppBid = negotiationSession.getOpponentBidHistory().getHistory()\r\n .get(negotiationSession.getOpponentBidHistory().size() - 2);\r\n HashMap<Integer, Integer> diffSet = determineDifference(prevOppBid, oppBid);\r\n\r\n // count the number of unchanged issues in value\r\n for (Integer i : diffSet.keySet()) {\r\n if (diffSet.get(i) == 0)\r\n numberOfUnchanged++;\r\n }\r\n\r\n // This is the value to be added to weights of unchanged issues before normalization.\r\n // Also the value that is taken as the minimum possible weight,\r\n // (therefore defining the maximum possible also).\r\n double goldenValue = learnCoef / (double) amountOfIssues;\r\n // The total sum of weights before normalization.\r\n double totalSum = 1D + goldenValue * (double) numberOfUnchanged;\r\n // The maximum possible weight\r\n double maximumWeight = 1D - ((double) amountOfIssues) * goldenValue / totalSum;\r\n\r\n // re-weighing issues while making sure that the sum remains 1\r\n for (Integer i : diffSet.keySet()) {\r\n if (diffSet.get(i) == 0 && opponentUtilitySpace.getWeight(i) < maximumWeight)\r\n opponentUtilitySpace.setWeight(opponentUtilitySpace.getDomain().getObjectives().get(i),\r\n (opponentUtilitySpace.getWeight(i) + goldenValue) / totalSum);\r\n else\r\n opponentUtilitySpace.setWeight(opponentUtilitySpace.getDomain().getObjectives().get(i),\r\n opponentUtilitySpace.getWeight(i) / totalSum);\r\n }\r\n\r\n // Then for each issue value that has been offered last time, a constant\r\n // value is added to its corresponding ValueDiscrete.\r\n try {\r\n for (Entry<Objective, Evaluator> e : opponentUtilitySpace.getEvaluators()) {\r\n // cast issue to discrete and retrieve value. Next, add constant\r\n // learnValueAddition to the current preference of the value to\r\n // make it more important\r\n ((EvaluatorDiscrete) e.getValue()).setEvaluation(\r\n oppBid.getBid().getValue(((IssueDiscrete) e.getKey()).getNumber()),\r\n (learnValueAddition + ((EvaluatorDiscrete) e.getValue()).getEvaluationNotNormalized(\r\n ((ValueDiscrete) oppBid.getBid().getValue(((IssueDiscrete) e.getKey()).getNumber())))));\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tupdate();\n\t\t\t}", "public void setState(int state);", "public void setState(int state);", "public void setStateOfMovement(int movementState){stateOfMovement = movementState; }", "public void actionPerformed( ActionEvent e) \n {\n if (e.getSource() == eatButton)\n pet1.eat();\n else if (e.getSource() == sleepButton)\n pet1.sleep();\n\n stateField.setText(pet1.getState());\n }", "public void setChangeStateAction(int c)\r\n \t{\r\n \t\tm_iChangeStateBy = c;\r\n \t}", "@Override\n public void actionPerformed(ActionEvent e) {\n setOnVacationOk(atc, guiD, sm);\n }", "public TIndiaState updateTIndiaState(final TIndiaState tIndiaState) {\n\t\tLOGGER.info(\"=========== Update TIndiaState ===========\");\n//\t\treturn gisDAO.update(tIndiaState);\n\t\treturn null;\n\t}", "public void setState(DiagramModel state) {\r\n for (Element e : state) {\r\n savedState_.add(0, e.makeCopy());\r\n }\r\n }", "public final void actionPerformed(final ActionEvent actionEvent) {\n ViewEditDescriptionListener.LOGGER.info(\"Enter ViewEditDescriptionListener:actionPerformed()\");\n String priorityCode = null;\n\n DcsMessagePanelHandler.clearAllMessages();\n\n if (controller.getDefaultSPFilterTablePanel() != null\n && controller.getDefaultSPFilterTablePanel().getTable() != null) {\n final int selectedRowCount = controller.getDefaultSPFilterTablePanel().getTable().getSelectedRowCount();\n\n if (selectedRowCount == 1) {\n final int selectedRow = controller.getDefaultSPFilterTablePanel().getTable().getSelectedRow();\n\n if (controller.getDefaultSPFilterTablePanel().getTable().getValueAt(selectedRow, 2) != null) {\n priorityCode = controller.getDefaultSPFilterTablePanel().getTable().getValueAt(selectedRow, 2)\n .toString();\n }\n\n final DefaultTableModel dm = (DefaultTableModel) controller.getDefaultSPFilterTablePanel().getModel();\n\n JFrame parentFrame = NGAFParentFrameUtil.getParentFrame().getNGAFParentFrame();\n final StandbyPriorityUtil standbyPriorityUtil = new StandbyPriorityUtil(parentFrame, dm.getValueAt(selectedRow, THREE).toString(),\n priorityCode, controller, selectedRow);\n \n //if (standbyPriorityUtil != null) {\n ViewEditDescriptionListener.LOGGER.info(\"ViewEditDescriptionListener:actionPerformed()\" \n + standbyPriorityUtil);\n //}\n }\n }\n\n ViewEditDescriptionListener.LOGGER.info(\"Exit ViewEditDescriptionListener:actionPerformed()\");\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\ttry {\n\t\t\t\tupdate();\n\t\t\t} catch (MyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e){\n\t\tif (TI82.sub){\n\t\t\tTI82.oldNum -= TI82.newNum;\n\t\t} else if (TI82.add){\n\t\t\tTI82.oldNum += TI82.newNum;\n\t\t} else if (TI82.mul){\n\t\t\tTI82.oldNum *= TI82.newNum;\n\t\t}\n\t\tTI82.newNum=0;\n//\t\tTI82.oldNum = TI82.oldNum + TI82.newNum;\n\t\tTI82.screen.setText(\"\"+TI82.oldNum);\n//\t\tSystem.out.println(\"Nums: \" + TI82.oldNum + \" \" + TI82.newNum);\n\t}", "public void setValue(String action, double value){\n\t\tif(action.equals(\"Up\")){\n\t\t\tqValues[0] = value; \n\t\t}\n\t\telse if(action.equals(\"Left\")){\n\t\t\tqValues[1] = value;\n\t\t}\n\t\telse if(action.equals(\"Right\")){\n\t\t\tqValues[2] = value;\n\t\t}\n\t\telse if(action.equals(\"Down\")){\n\t\t\tqValues[3] = value;\n\t\t}\n\t}", "public void updateState(int i) {\n byte count = nextState[i];\n nextState[i] = 0;\n\n if (currentState[i] == 0) {\n currentState[i] = ((count >= minBirth) && (count <= maxBirth)) ? (byte)1 : (byte)0;\n } else {\n currentState[i] = ((count >= minSurvive) && (count <= maxSurvive)) ? (byte)1 : (byte)0;\n }\n\n // After calculating the new state, set the appropriate rendering enable for the\n // cell object in the world, so we can see it. We take advantage of this test to\n // count the current live population, too.\n if (currentState[i] != 0) {\n cells[i].setRenderingEnable(true);\n ++population;\n } else {\n cells[i].setRenderingEnable(false);\n }\n }", "public void setValue(FreeColAction value) {\n logger.warning(\"Calling unsupported method setValue.\");\n }", "@Override\r\n\tpublic int modifyCashDonationState(int cidx) {\n\t\tConnection con = dbconnect.getConnection(); \r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint row = 0;\r\n\t\t\r\n\t\ttry{\r\n\t\t\tsql = \"update table_cashdonation set cstate='후원취소' where cidx=?\";\r\n\t\t\tpstmt = con.prepareStatement(sql);\r\n\t\t\tpstmt.setInt(1, cidx);\r\n\t\t\trow = pstmt.executeUpdate();\r\n\t\t\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\t\r\n\t\t}finally{\r\n\t\t\tDBClose.close(con,pstmt);\r\n\t\t}\r\n\t\treturn row;\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\titem1 = tf[4].getText();\n\t\t\t\titem2 = tf[5].getText();\n\t\t\t\titem3 = tf[6].getText();\n\t\t\t\tsql = transaction.T6(inx3,item1,inx4,item2,inx5,item3);\n\t\t\t\t\n\t\t\t\tDMT_refresh(sql,1);\n\t\t\t}", "@Override\r\n protected void updateCI(RepositoryAction action, boolean preview)\r\n throws DataFormatException, IOException, SQLException, IllegalArgumentException {\r\n action.assertHasProperty(OLD_VALUE);\r\n action.assertHasProperty(NEW_VALUE);\r\n\r\n String newValue = action.getProperties().get(\"newValue\");\r\n int cnt = 0;\r\n\r\n if (!preview) {\r\n\r\n String sql = lookupSql(action, preview);\r\n /*\r\n * update CI for XLR requires a select which returns a result set then for each,\r\n * get content blob, modify content blob then update the record with new ci type\r\n * and modified content blob\r\n */\r\n\r\n ResultSet result = null;\r\n String[] stringArray = createSqlArray(sql);\r\n NamedParamStatement pstmtSelect = null;\r\n PreparedStatement secondPstmtUpdate = null;\r\n Boolean origCommitState = dbconn.getAutoCommit();\r\n\r\n // ensure we have two sql statments\r\n // We expect the first statement to be the select and\r\n // the second statement is the update\r\n if (stringArray != null && stringArray.length == 2) {\r\n try {\r\n // Turn autocommit off\r\n dbconn.setAutoCommit(false);\r\n\r\n pstmtSelect = new NamedParamStatement(this.dbconn, stringArray[0]);\r\n pstmtSelect = populateNamedParamStmt(action, pstmtSelect);\r\n result = pstmtSelect.executeQuery();\r\n if (result != null) {\r\n while (result.next()) {\r\n int ci_uid = result.getInt(\"ci_uid\");\r\n\r\n byte [] currentBytes = null;\r\n\r\n if (dbType == DbType.POSTGRESQL){\r\n currentBytes = result.getBytes(\"content\");\r\n }\r\n else {\r\n Blob blobContent = result.getBlob(\"content\");\r\n currentBytes = convertBlobToByteArray(blobContent);\r\n }\r\n \r\n String blobString = new String(CompressionUtils.decompress(currentBytes));\r\n // Now, update blob\r\n String updatedBlobString = updateBlob(blobString, \"type\", newValue);\r\n\r\n //System.out.println(\"******BEGIN - this is the updated content blob for xlr - update ci\");\r\n //System.out.println(updatedBlobString);\r\n \r\n byte[] newByteArray = CompressionUtils.compress(updatedBlobString.getBytes());\r\n\r\n secondPstmtUpdate = dbconn.prepareStatement(stringArray[1]);\r\n secondPstmtUpdate.setString(1, action.getProperties().get(\"newValue\"));\r\n\r\n if (dbType == DbType.POSTGRESQL){\r\n secondPstmtUpdate.setBytes(2, newByteArray);\r\n }\r\n else {\r\n Blob blobFromBytes = dbconn.createBlob();\r\n int numWritten = blobFromBytes.setBytes(1, newByteArray);\r\n //System.out.println(\"******END - numWritten to blob = \"+numWritten+\", size = \"+blobFromBytes.length()+\", this is the updated content blob for xlr - update task\");\r\n // old way Blob blobFromBytes = new javax.sql.rowset.serial.SerialBlob(newByteArray); \r\n secondPstmtUpdate.setBlob(2, blobFromBytes); \r\n }\r\n\r\n secondPstmtUpdate.setInt(3, ci_uid);\r\n\r\n cnt = secondPstmtUpdate.executeUpdate();\r\n }\r\n\r\n } else {\r\n os.println(String.format(\"\\n%sUpdate CI from %s to %s. 0 row(s) altered. %s\",\r\n (preview ? \"[PREVIEW] \" : \"\"), action.getProperties().get(OLD_VALUE),\r\n action.getProperties().get(NEW_VALUE), \"No records found to update.\"));\r\n }\r\n\r\n // successfully reached the end, so commit\r\n //os.println(\"About to commit the database transaction.\");\r\n dbconn.commit();\r\n os.println(String.format(\"\\n%sUpdate CI from %s to %s. %d row(s) altered.\", (preview ? \"[PREVIEW] \" : \"\"),\r\n action.getProperties().get(OLD_VALUE), action.getProperties().get(\"newValue\"), cnt));\r\n if(cnt>0 && action.getMessage() != null && !action.getMessage().isEmpty()){\r\n os.println(\"\\tAttention: \"+action.getMessage());\r\n }\r\n } catch (SQLException se){\r\n dbconn.rollback();\r\n os.println(\"\\nERROR: SQLExecption thrown, so database transcaction has been rolled back.\");\r\n throw se; \r\n } finally {\r\n try {\r\n if(dbconn != null) dbconn.setAutoCommit(origCommitState);\r\n if (result != null) result.close();\r\n if (secondPstmtUpdate != null) secondPstmtUpdate.close();\r\n if (pstmtSelect != null) pstmtSelect.close();\r\n } catch (Exception e) {\r\n }\r\n }\r\n\r\n } else {\r\n throw new IllegalArgumentException(\r\n \"updateCI mapping must contain two SQL statements, a SELECT and an UPDATE.\");\r\n }\r\n\r\n } else {\r\n // perform preview action\r\n cnt = processAction(action, preview);\r\n os.println(String.format(\"\\n%sUpdate CI from %s to %s. %d row(s) altered.\", (preview ? \"[PREVIEW] \" : \"\"),\r\n action.getProperties().get(OLD_VALUE), action.getProperties().get(\"newValue\"), cnt));\r\n \r\n }\r\n }", "@objid (\"dec04375-0805-4a30-ba61-5edb1bdcf44a\")\n void setDataState(BpmnDataState value);", "public void setStateTransition(StateTransition sb) {\n\t\tthis.sb = sb;\n\t}", "SpacecraftState propagate(AbsoluteDate target) throws OrekitException;", "public void update(UsStatePk pk, UsState dto) throws UsStateDaoException;", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\titem1 = tf[4].getText();\n\t\t\t\titem2 = tf[5].getText();\n\t\t\t\titem3 = tf[6].getText();\n\t\t\t\tsql = transaction.T2(inx3,item1,inx4,item2,inx5,item3);\n\t\t\t\t\n\t\t\t\tDMT_refresh(sql,1);\n\t\t\t}", "private void updateStatePost() {\n\t\tif(!link.hasNextLine()) {\n\t\t\tcontroller.printError(\"Errore di Comunicazione\", \"La postazione \" + ip.getHostAddress() + \" non ha inviato il proprio stato.\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tString state = link.read();\n\t\t((Controller) controller).setStatePost(state, ip);\n\t}", "@Override\n\tpublic void operation(int extrinsicState) {\n\t\tSystem.out.println(\"具体flyWeight:\" + extrinsicState);\n\t}", "public ActionState createActionState();", "public static int activityStateToWorkItemState( int newState )\r\n {\r\n // The states actually have the same ordinals.\r\n return newState;\r\n }", "public void update() {\n\n if (!isSelected){\n goalManagement();\n }\n\n if (chair != null){ // si une chaise lui est désigné\n if (!hasAGoal && !isSelected){ // et qu'il n'a pas d'objectif\n setSit(true);\n position.setX(chair.getX());\n }\n\n if (isSit){\n chair.setChairState(Chair.ChairState.OCCUPIED);\n }else {\n chair.setChairState(Chair.ChairState.RESERVED);\n }\n }\n\n if (tired > 0 ){\n tired -= Constants.TIRED_LOSE;\n }\n\n if (isSit && comfort>0){\n comfort -= Constants.COMFORT_LOSE;\n }\n\n if (isSitOnSofa && comfort<100){\n comfort += Constants.COMFORT_WIN;\n }\n\n if (!hasAGoal && moveToCoffee && coffeeMachine!=null){\n moveToCoffee = false;\n tired=100;\n\n coffeeMachine.setCoffeeTimer(new GameTimer()) ;\n coffeeMachine.getCoffeeTimer().setTimeLimit(Constants.COFFEE_TIME_TO_AVAILABLE);\n coffeeMachine = null;\n backToSpawn();\n }\n\n if (!hasAGoal && moveToSofa){\n moveToSofa = false;\n isSitOnSofa = true;\n dir = 0 ;\n position.setY(position.getY()-Constants.TILE_SIZE);\n }\n\n if (isSelected){\n flashingColor ++;\n if (flashingColor > 2 * flashingSpeed){\n flashingColor = 0;\n }\n }\n\n }", "@Override\n\tpublic void onTransition(final TransitionTarget fromState, final TransitionTarget toState, final Transition aTransition) {\n\t\t\n\t\tList<Action> actionList = aTransition.getActions();\n\t\tArrayList<Assign> assignList = new ArrayList<Assign>();\n\t\tfor (Action a : actionList){\n\t\t\tif(a.getClass().toString().equals(\"class org.apache.commons.scxml.model.Assign\")){\n\t\t\t\tassignList.add((Assign)a);\n\t\t\t}\n\t\t}\n\t\tfor (Assign anAssign : assignList) {\n\t\t\tString aVariableName = anAssign.getName();\n\t\t\t// at run time the value returned from the engine is a Long (which cannot be cast to String)\n\t\t\t// but at compile time it is just an Object, hence the need of declaring a cast to Long and using conversion\n\t\t\tString aVariableValue;\n\t\t\tif(myASM.getEngine().getRootContext().get(aVariableName).getClass().toString().equals(\"class java.lang.String\")){\n\t\t\t\taVariableValue = (String)myASM.getEngine().getRootContext().get(aVariableName);\n\t\t\t}else{\n\t\t\t\taVariableValue = Long.toString((Long)myASM.getEngine().getRootContext().get(aVariableName));\n\t\t\t}\n\t\t\tvariableFields.get(aVariableName).setText(aVariableValue);\n\t\t}\n\t\tstatechartTraceAppend(\"Transition from state: \" + fromState.getId() + \" to state: \" + toState.getId() + \"\\n\");\n\t\t/* enable JButtons for all transitions in those states in the current configuration without the fromStates and plus the toStates\n\t\t * TODO: implement explicit cast from Set to Set<TransitionTarget>\n\t\tSet<TransitionTarget> relevantStates = myASM.getEngine().getCurrentStatus().getAllStates();\n\t\trelevantStates.remove(fromState);\n\t\trelevantStates.add(toState);\n\t\tfor (TransitionTarget aState : relevantStates) {\n\t\t\tenableButtonsForTransitionsOf(aState);\n\t\t} */\n\t}", "void changeCadence(int newValue);", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tObject target = e.getSource();\n\t\tif (target == b1) {\n\t\t\ttry {\n\t\t\t\tif (rb1.isSelected()) {\n\t\t\t\t\tthis.f = new Flavor(t1.getText(), Integer.parseInt(t2\n\t\t\t\t\t\t\t.getText()));\n\t\t\t\t\tthis.flag = 0;\n\t\t\t\t}\n\t\t\t\tif (rb2.isSelected()) {\n\t\t\t\t\tthis.d = new Decorator(t1.getText(), Integer.parseInt(t2\n\t\t\t\t\t\t\t.getText()));\n\t\t\t\t\tthis.flag = 1;\n\t\t\t\t}\n\t\t\t} catch (Exception e1) {\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\"Please enter vaild information!\", \"WARNING\",\n\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\n\t\t}\n\n\t\tif (target == b2) {\n\t\t\tt1.setText(\"\");\n\t\t\tt2.setText(\"\");\n\t\t}\n\n\t\tif (target == rb1) {\n\t\t\trb1.setSelected(true);\n\t\t\trb2.setSelected(false);\n\t\t}\n\n\t\tif (target == rb2) {\n\t\t\trb1.setSelected(false);\n\t\t\trb2.setSelected(true);\n\t\t}\n\t}", "public void getState();" ]
[ "0.6457819", "0.55646473", "0.55393726", "0.55004853", "0.5469949", "0.54373395", "0.5432261", "0.53448623", "0.524697", "0.5206014", "0.51979446", "0.5185603", "0.514749", "0.51335067", "0.5123638", "0.50987315", "0.5043586", "0.501458", "0.49816215", "0.49684522", "0.4950326", "0.4941903", "0.49157554", "0.48876765", "0.48710138", "0.4866447", "0.48624235", "0.48617542", "0.4858692", "0.48515508", "0.48445258", "0.4837085", "0.48261493", "0.48150963", "0.48136133", "0.48075464", "0.4797737", "0.47889397", "0.4776353", "0.47751552", "0.47596723", "0.4758657", "0.47514987", "0.4750902", "0.47386754", "0.47238985", "0.47214183", "0.47166395", "0.4712319", "0.4698145", "0.46914163", "0.4679127", "0.46746126", "0.46703637", "0.4668566", "0.46673557", "0.4666008", "0.46646863", "0.4660394", "0.46587604", "0.46569684", "0.4655287", "0.46467006", "0.46452072", "0.46293443", "0.46262288", "0.4620964", "0.46106705", "0.4610422", "0.46080062", "0.46080062", "0.4605166", "0.45994014", "0.45968744", "0.45881295", "0.45825055", "0.45806274", "0.4577192", "0.4576082", "0.45746806", "0.4572453", "0.45712095", "0.45699933", "0.45672944", "0.45647478", "0.4554191", "0.45510203", "0.45482424", "0.45463777", "0.45459425", "0.45457545", "0.454425", "0.45419055", "0.45403165", "0.45371634", "0.4534619", "0.4533937", "0.4530216", "0.4527747", "0.4525869" ]
0.61143136
1
method updateBeliefStateDiagnosisObs Used to update the belief state using the given diagnosis value. i.e., just factor in the observation made.
void updateBeliefStateTrigger( BeliefStateDimension prev_belief, BeliefUpdateTrigger trigger, BeliefStateDimension next_belief ) throws BelievabilityException { if (( prev_belief == null ) || ( trigger == null ) || ( next_belief == null )) throw new BelievabilityException ( "updateBeliefStateTrigger()", "NULL parameter(s) sent in." ); if ( trigger instanceof DiagnosisTrigger ) updateBeliefStateDiagnosisObs( prev_belief, (DiagnosisTrigger) trigger, next_belief ); else if ( trigger instanceof BelievabilityAction) updateBeliefStateActionTrans( prev_belief, (BelievabilityAction) trigger, next_belief ); else throw new BelievabilityException ( "updateBeliefStateTrigger()", "Unknown BeliefUpdateTrigger subclass: " + trigger.getClass().getName() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateBeliefStateDiagnosisObs( BeliefStateDimension prev_belief,\n DiagnosisTrigger diagnosis,\n BeliefStateDimension next_belief )\n throws BelievabilityException\n {\n if (( prev_belief == null )\n || ( diagnosis == null )\n || ( next_belief == null ))\n throw new BelievabilityException\n ( \"updateBeliefStateDiagnosisObs()\",\n \"NULL parameter(s) sent in.\" );\n\n double denom = 0.0;\n String diagnosis_value = diagnosis.getSensorValue();\n\n double[] prev_belief_prob = prev_belief.getProbabilityArray();\n double[] next_belief_prob = new double[prev_belief_prob.length];\n\n if ( _logger.isDebugEnabled() )\n _logger.debug( \"Updating belief given sensor '\"\n + diagnosis.getSensorName()\n + \"' has sensed '\" + diagnosis_value + \"'\");\n\n SensorTypeModel sensor_model \n = _asset_dim_model.getSensorTypeModel \n ( diagnosis.getSensorName() );\n \n if ( sensor_model == null )\n throw new BelievabilityException\n ( \"updateBeliefStateDiagnosisObs()\",\n \"Cannot find sensor model for: \"\n + diagnosis.getSensorName() );\n \n // This 'obs_prob' is a matrix of conditional probabilities of\n // an observation (i.e., diagnosis) given an asset state. The\n // first index is the observation and the second is the state.\n //\n double[][] obs_prob = sensor_model.getObservationProbabilityArray();\n\n if ( _logger.isDetailEnabled() )\n _logger.detail( \"Observation probabilities: \" \n + _asset_dim_model.getStateDimensionName() + \"\\n\" \n + ProbabilityUtils.arrayToString( obs_prob ));\n\n\n int obs_idx = sensor_model.getObsNameIndex( diagnosis_value );\n\n if ( obs_idx < 0 )\n throw new BelievabilityException\n ( \"updateBeliefStateDiagnosisObs()\",\n \"Diagnosis value '\" \n + diagnosis_value + \"' not found. \"\n + diagnosis.toString() );\n \n if ( _logger.isDetailEnabled() )\n _logger.detail( \"Pre-update: \" \n + ProbabilityUtils.arrayToString( prev_belief_prob ));\n\n for ( int state = 0; state < prev_belief_prob.length; state++ ) \n {\n\n next_belief_prob[state] \n = prev_belief_prob[state] * obs_prob[state][obs_idx];\n \n denom += next_belief_prob[state];\n \n } // for state\n\n if ( _logger.isDetailEnabled() )\n _logger.detail( \"Pre-normalization: \" \n + ProbabilityUtils.arrayToString( next_belief_prob ));\n \n // Here we choose to ignore impossible observations, though we\n // will give a warning. We do not want to completely abort\n // this operation, since the previous belief state will more\n // than likely have some threat transition information in it.\n // Thus, we choose to leave the belief state as is, which is\n // why we simply copy the arrays over. \n //\n if( Precision.isZeroComputation( denom ))\n {\n if ( _logger.isWarnEnabled() )\n _logger.warn( \"updateBeliefStateDiagnosisObs(): \"\n + \"Diagnosis is not possible. i.e., Pr(\"\n + diagnosis_value + \") = 0.0. Ignoring diagnosis.\");\n next_belief.setProbabilityArray\n ( prev_belief.getProbabilityArray());\n\n return;\n } // if found an impossible observation\n\n for( int i = 0; i < next_belief_prob.length; i++ )\n next_belief_prob[i] /= denom;\n\n if ( _logger.isDetailEnabled() )\n _logger.detail( \"Post-normalization: \" \n + ProbabilityUtils.arrayToString( next_belief_prob ));\n\n next_belief.setProbabilityArray( next_belief_prob );\n\n }", "public boolean updateDiagnosis(Diagnosis diagnosis) {\n\t\treturn false;\n\t}", "public abstract void improveValueFunction(Vector<BeliefState> vBeliefPoints, Vector<BeliefState> vNewBeliefPoints);", "public void updateImcState(int value) {\n }", "public void updateState(ArrayList<Cell> neighbors){\n\t\tint catSame = 0;\n\t\tint catDiff = 0;\n\t\tfor( Cell c : neighbors){\n\t\t\t//use instance of to find categorized cells in neighbors\n\t\t\tif( c instanceof PreferenceCell){\n\t\t\t\t//help from CP Majgaard--forced type cast\n\t\t\t\tif( ((PreferenceCell)c).getCategory() == this.getCategory()){\n\t\t\t\t\tcatSame ++;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tcatDiff++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//this is if the cell doesn't have a category\n\t\t\telse{\n\t\t\t\tcatDiff ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this else contains the original categorizedcell updatestate\n\t\t//if num of same > num of different cells\n\t\t//move +/-5 at 1% of the time\n\t\tRandom rand = new Random();\n\t\tif (catSame > catDiff) {\n\t\t\tint percentage = rand.nextInt(100);\n\t\t\tif (percentage == 0) {\n\t\t\t\tthis.x += randomInRange(-5, 5);\n\t\t\t\tthis.y += randomInRange(-5, 5);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//else move +/-5 all the time\n\t\telse {\n\t\t\t\tthis.x += randomInRange(-5, 5);\n\t\t\t\tthis.y += randomInRange(-5, 5);\n\t\t\t}\n \t}", "void update( State state );", "private void updateObservation(SessionState state, String peid)\n \t{\n// \t\tContentObservingCourier observer = (ContentObservingCourier) state.getAttribute(STATE_OBSERVER);\n//\n// \t\t// the delivery location for this tool\n// \t\tString deliveryId = clientWindowId(state, peid);\n// \t\tobserver.setDeliveryId(deliveryId);\n\t}", "public void updateState();", "protected void setState(int value) {\r\n\t\tdState = value;\r\n\t\tstateChanged();\r\n\t\t\r\n\t\t// System debug\r\n\t\tSystem.out.println(\"State changed: \" + STATUS[dState]);\r\n\t}", "public void updateState(boolean state);", "@Override\n public void update(int index, Disciplina object, String value) {\n object.setObrigatoria(Boolean.parseBoolean(value));\n GWTServiceDisciplina.Util.getInstance().updateDisciplinaRow(object, callbackUpdateRow);\n }", "public final Op updateState(\n Operand<? extends TNumber> values, Operand<? extends TNumber> sampleWeights) {\n List<Op> controlOps = updateStateList(values, sampleWeights);\n return tf.withSubScope(\"updateState\").withControlDependencies(controlOps).noOp();\n }", "protected void stateChanged(final SpacecraftState state) {\n final AbsoluteDate date = state.getDate();\n final boolean forward = date.durationFrom(getStartDate()) >= 0.0;\n for (final DoubleArrayDictionary.Entry changed : state.getAdditionalStatesValues().getData()) {\n final TimeSpanMap<double[]> tsm = unmanagedStates.get(changed.getKey());\n if (tsm != null) {\n // this is an unmanaged state\n if (forward) {\n tsm.addValidAfter(changed.getValue(), date, false);\n } else {\n tsm.addValidBefore(changed.getValue(), date, false);\n }\n }\n }\n }", "abstract public void updateState();", "public void updateState(){\n\t\t\n\t\t\n\t\t\n\t\tArrayList<String> toAdd = new ArrayList<String>();\n\t\tArrayList<String> toRemove = new ArrayList<String>();\n\n\t\tthis.lastAdded.clear();\n\t\tthis.lastFulfilled.clear();\n\t\tthis.lastViolated.clear();\n\t\t\n\t\ttry {\n\n\t\t\tdo{\n\t\t\t\ttoAdd.clear();\n\t\t\t\ttoRemove.clear();\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iActive = reasoner.findall(\"xactive(A,Fa,Fm,Fd,Fr,Timeout)&not(as(A,Fa,Fm,Fd,Fr,Timeout))\");\n\t\t\t\twhile(iActive.hasNext()){\n\t\t\t\t\tUnifier un = iActive.next();\n\t\t\t\t\ttoAdd.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+ adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastAdded.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+ adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iViol = reasoner.findall(\"xviol(A,Fa,Fm,Fd,Fr,Timeout)&not(vs(A,Fa,Fm,Fd,Fr,Timeout))\");\n\t\t\t\twhile(iViol.hasNext()){\n\t\t\t\t\tUnifier un = iViol.next();\n\t\t\t\t\ttoAdd.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastViolated.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iDeactF = reasoner.findall(\"xdeact_f(A,Fa,Fm,Fd,Fr,Timeout)\");\n\t\t\t\twhile(iDeactF.hasNext()){\n\t\t\t\t\tUnifier un = iDeactF.next();\n\t\t\t\t\ttoAdd.add(\"ds(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString()+\",\"+un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastFulfilled.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iDeactR = reasoner.findall(\"xdeact_r(A,Fa,Fm,Fd,Fr,Timeout)\");\n\t\t\t\twhile(iDeactR.hasNext()){\n\t\t\t\t\tUnifier un = iDeactR.next();\n\t\t\t\t\ttoAdd.add(\"ds(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastFulfilled.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iFailed = reasoner.findall(\"xfailed(A,Fa,Fm,Fd,Fr,Timeout)\");\n\t\t\t\twhile(iFailed.hasNext()){\n\t\t\t\t\tUnifier un = iFailed.next();\n\t\t\t\t\ttoAdd.add(\"fs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//norms deactivated (fulfilled) whose maintenance condition does not hold can be removed.\n\t\t\t\t//if they are not removed, new instances of the same norm are not activated\n\t\t\t\tIterator<Unifier> iDeactivated_to_remove = reasoner.findall(\"ds(A,Fa,Fm,Fd,Fr,Timeout)&not(Fm)\");\n\t\t\t\twhile(iDeactivated_to_remove.hasNext()){\n\t\t\t\t\tUnifier un = iDeactivated_to_remove.next();\n\t\t\t\t\ttoRemove.add(\"ds(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t\tfor(String s:toAdd){\n\t\t\t\t\treasoner.assertValue(s);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(String s:toRemove){\n\t\t\t\t\treasoner.retract(s);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}while(toAdd.size()>0|toRemove.size()>0);\t\t\t\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "public void update(int UPDATE_VALUE){\n \tthis.setBNumber(this.getBNumber() + UPDATE_VALUE);\n \tnotifyObservers(UPDATE_VALUE);\n }", "public void update(){\n\t\tSystem.out.println(\"Return From Observer Pattern: \\n\" + theModel.getObserverState() \n\t\t+ \"\\n\");\n\t}", "public Builder setVehicleStateValue(int value) {\n \n vehicleState_ = value;\n onChanged();\n return this;\n }", "private LogicStatus updateState(Board thing) {\n count(thing);\n CellType curstate = thing.getCellType(x,y);\n\n // is it a terminal?\n if (walls.size() == 3) {\n if (curstate == CellType.NOTTERMINAL) return LogicStatus.CONTRADICTION;\n thing.setCellType(x,y,CellType.TERMINAL);\n return LogicStatus.LOGICED;\n }\n\n // the other states (BEND,STRAIGHT) require two paths.\n if (paths.size() < 2) return LogicStatus.STYMIED;\n\n Iterator<Direction> dit = paths.iterator();\n Direction d1 = dit.next();\n Direction d2 = dit.next();\n\n CellType nextct = d1 == d2.getOpp() ? CellType.STRAIGHT : CellType.BEND;\n\n if (nextct == CellType.STRAIGHT) {\n thing.setCellType(x,y,nextct);\n return LogicStatus.LOGICED;\n }\n\n if (curstate == CellType.NOTBEND) return LogicStatus.CONTRADICTION;\n\n thing.setCellType(x,y,nextct);\n return LogicStatus.LOGICED;\n }", "public void setState(double[][][] instate) {\r\n this.state = instate;\r\n }", "@Override\r\n public void updateModel(Bid opponentBid, double time) {\r\n if (negotiationSession.getOpponentBidHistory().size() < 2) {\r\n return;\r\n }\r\n int numberOfUnchanged = 0;\r\n // get the current bid of the opponent\r\n BidDetails oppBid = negotiationSession.getOpponentBidHistory().getHistory()\r\n .get(negotiationSession.getOpponentBidHistory().size() - 1);\r\n // get the previous bid of the opponent\r\n BidDetails prevOppBid = negotiationSession.getOpponentBidHistory().getHistory()\r\n .get(negotiationSession.getOpponentBidHistory().size() - 2);\r\n HashMap<Integer, Integer> diffSet = determineDifference(prevOppBid, oppBid);\r\n\r\n // count the number of unchanged issues in value\r\n for (Integer i : diffSet.keySet()) {\r\n if (diffSet.get(i) == 0)\r\n numberOfUnchanged++;\r\n }\r\n\r\n // This is the value to be added to weights of unchanged issues before normalization.\r\n // Also the value that is taken as the minimum possible weight,\r\n // (therefore defining the maximum possible also).\r\n double goldenValue = learnCoef / (double) amountOfIssues;\r\n // The total sum of weights before normalization.\r\n double totalSum = 1D + goldenValue * (double) numberOfUnchanged;\r\n // The maximum possible weight\r\n double maximumWeight = 1D - ((double) amountOfIssues) * goldenValue / totalSum;\r\n\r\n // re-weighing issues while making sure that the sum remains 1\r\n for (Integer i : diffSet.keySet()) {\r\n if (diffSet.get(i) == 0 && opponentUtilitySpace.getWeight(i) < maximumWeight)\r\n opponentUtilitySpace.setWeight(opponentUtilitySpace.getDomain().getObjectives().get(i),\r\n (opponentUtilitySpace.getWeight(i) + goldenValue) / totalSum);\r\n else\r\n opponentUtilitySpace.setWeight(opponentUtilitySpace.getDomain().getObjectives().get(i),\r\n opponentUtilitySpace.getWeight(i) / totalSum);\r\n }\r\n\r\n // Then for each issue value that has been offered last time, a constant\r\n // value is added to its corresponding ValueDiscrete.\r\n try {\r\n for (Entry<Objective, Evaluator> e : opponentUtilitySpace.getEvaluators()) {\r\n // cast issue to discrete and retrieve value. Next, add constant\r\n // learnValueAddition to the current preference of the value to\r\n // make it more important\r\n ((EvaluatorDiscrete) e.getValue()).setEvaluation(\r\n oppBid.getBid().getValue(((IssueDiscrete) e.getKey()).getNumber()),\r\n (learnValueAddition + ((EvaluatorDiscrete) e.getValue()).getEvaluationNotNormalized(\r\n ((ValueDiscrete) oppBid.getBid().getValue(((IssueDiscrete) e.getKey()).getNumber())))));\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "private void updateBay(int indx, boolean newState)\n {\t\n \tImageView iv;\n \tif (indx == 0)\n \t\tiv = (ImageView) findViewById(R.id.imageView1);\n \t\telse if (indx == 1)\n \t\t\tiv = (ImageView) findViewById(R.id.imageView2);\n \t\t\telse if (indx ==2)\n \t\t\t\tiv = (ImageView) findViewById(R.id.imageView1);\n \t\t\telse iv = (ImageView) findViewById(R.id.imageView1);\n \t\n \t//ImageButton btn = (ImageButton) findViewById(R.id.bay0000);\n \t//ImageView iv = (ImageView) findViewById(R.id.imageView1);\n \t\n \tif( states[indx] == false && newState == true)\n \t{\n \t//btn.setImageResource(R.drawable.occupied);\n \tiv.setImageResource(R.drawable.occupied);\n \tiv.animate();\n \tstates[indx] = true;\n \t}\n \telse if( states[indx] == true && newState == false)\n \t{\n \t//btn.setImageResource(R.drawable.avail);\n \tiv.setImageResource(R.drawable.avail);\n \tiv.animate();\n \t//iv.\n \tiv.refreshDrawableState();\n \tstates[indx] = false;\n \t}\n \t\n }", "@Override\n\t\tpublic void agentChangeStatus(String system_id, String state) {\n\t\t\tSystem.out.println(\"=======>Agent Change state: \" + state);\n\t\t\tif (system_id==null || !aCallback.containsKey(system_id))\n\t\t\t\t//Unknown agent changes from disconnect state to unassociated (system_id is not received yet)\n\t\t\t\treturn;\n\n\t\t\t// Send a agent Broadcast Event to all clients.\n\t\t\tfinal RemoteCallbackList<IAgentCallbackService> agentCallbacks = aCallback.get(system_id);\n final int N = agentCallbacks.beginBroadcast();\n for (int i=0; i<N; i++) {\n try {\n \tagentCallbacks.getBroadcastItem(i).agentStateChanged(state);\n } catch (RemoteException e) {\n // The RemoteCallbackList will take care of removing\n // the dead object for us.\n }\n }\n agentCallbacks.finishBroadcast();\n\t\t\t//System.out.println(\"agente \" + system_id + \" changed to: \" + state);\n\t\t}", "public void updateState(String key, Object value)\n {\n stateChangeRequest(key, value);\n }", "public void update(){\r\n\r\n // update curState based on inputs\r\n // Perform state-transition actions \r\n switch(curState) {\r\n${nextstatecases}\r\n default:\r\n reset();\r\n break;\r\n }", "public void setState(State state) { model.setState(state); }", "public void updateNewState() {\n Integer aliveCount = 0;\n for (final Cell neighbor : this.neighbors) {\n if (neighbor.isAlive()) {\n aliveCount++;\n }\n }\n\n if (aliveCount < 2) {\n this.setNewState(false);\n } else if (!this.isAlive() && aliveCount == 3) {\n this.setNewState(true);\n } else if (aliveCount > 3) {\n this.setNewState(false);\n }\n }", "@objid (\"dec04375-0805-4a30-ba61-5edb1bdcf44a\")\n void setDataState(BpmnDataState value);", "@Override\n\tpublic void changeStateTo(String complainId, String state) throws Exception {\n\t\tIBOOrderComplainsValue ivalue = getOrderComplainsById(complainId);\n\t\tivalue.setState(state);\n\t\tBOOrderComplainsEngine.save(ivalue);\n\t}", "private void updateAgilisaurusState() {\n this.age++;\n\n if (this.age == 30 && this.hasCapability(LifeStage.BABY)) {\n // grow up\n this.removeCapability(LifeStage.BABY);\n this.addCapability(LifeStage.ADULT);\n this.displayChar = 'D';\n }\n\n if (this.foodLevel > 0) {\n this.foodLevel--;\n }\n\n if (this.waterLevel > 0) {\n this.waterLevel--;\n }\n\n if (this.foodLevel < 30) {\n this.behaviour = new HungryBehaviour();\n }\n\n if (this.foodLevel > 50) {\n this.behaviour = new BreedBehaviour();\n }\n\n if (this.foodLevel == 0) {\n this.Starving();\n } else {\n this.starvationLevel = 0;\n }\n\n if (this.waterLevel < 30) {\n this.behaviour = new ThirstBehaviour();\n }\n\n if (this.waterLevel == 0) {\n this.Thirsting();\n } else {\n this.thirstLevel = 0;\n }\n }", "public void updateState(String key, Object value) {\n\n\t}", "public void update(String state) {\n\t\tSystem.out.println(\"收到状态---\"+state);\n\t\tthis.state = state;\n\t}", "private void advanceBeliefs(int b) {\n\t\tdouble sum = 0;\n\t\tdouble[][] newbel = new double[beliefs.length][beliefs[0].length];\n\t\tfor (int x =0; x < beliefs.length; x++) {\n\t\t\tfor (int y = 0; y < beliefs[0].length; y++) {\n\t\t\t\tdouble statesum = 0; // belief in each state is the sum of beliefs in possible previous state times the probability of the transition\n\t\t\t\tfor (int px = 0; px < beliefs.length; px++) {\n\t\t\t\t\tfor (int py = 0; py < beliefs[0].length; py++) {\n\t\t\t\t\t\tstatesum += beliefs[px][py] * world.transitionProbability(x, y, px, py, b);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tnewbel[x][y] = statesum;\n\t\t\t\tsum += newbel[x][y];\n\t\t\t}\n\t\t}\n\t\t// now normalise them\n\t\tfor (int x = 0; x < beliefs.length; x++) {\n\t\t\tfor (int y = 0; y < beliefs[0].length; y++) {\n\t\t\t\tnewbel[x][y] /= sum;\n\t\t\t}\n\t\t}\n\t\tbeliefs = newbel;\n\t}", "public void updateState(int i) {\n byte count = nextState[i];\n nextState[i] = 0;\n\n if (currentState[i] == 0) {\n currentState[i] = ((count >= minBirth) && (count <= maxBirth)) ? (byte)1 : (byte)0;\n } else {\n currentState[i] = ((count >= minSurvive) && (count <= maxSurvive)) ? (byte)1 : (byte)0;\n }\n\n // After calculating the new state, set the appropriate rendering enable for the\n // cell object in the world, so we can see it. We take advantage of this test to\n // count the current live population, too.\n if (currentState[i] != 0) {\n cells[i].setRenderingEnable(true);\n ++population;\n } else {\n cells[i].setRenderingEnable(false);\n }\n }", "void stateUpdate(String msg);", "public void setStateValue(final State state, final double value) {\r\n getProperties(state).setValue(value);\r\n }", "IDeviceState updateDeviceState(UUID id, IDeviceStateCreateRequest request) throws SiteWhereException;", "public void setHvacStateValue(double value) {\r\n this.hvacStateValue = value;\r\n }", "private double[][] updateBeliefs(int a, int obs) {\n\t\tdouble[][] newBeliefs = new double[beliefs.length][beliefs[0].length];\n\t\tdouble sum = 0; // for the normalisation\n\t\tfor (int x = 0; x < beliefs.length; x++) {\n\t\t\tfor (int y = 0; y < beliefs[0].length; y++) {\n\t\t\t\tnewBeliefs[x][y] = beliefs[x][y] * world.observationProbability(obs, a, x, y);\n\t\t\t\tsum += newBeliefs[x][y];\n\t\t\t}\n\t\t}\n\t\tif (sum == 0) { // this does happen a few times\n\t\t\tnewBeliefs[0][0] = Double.NEGATIVE_INFINITY;\n\t\t\treturn newBeliefs;\n\t\t}\n\t\t// now normalise\n\t\tfor (int x = 0; x < beliefs.length; x++) {\n\t\t\tfor (int y = 0; y < beliefs[0].length; y++) {\n\t\t\t\tnewBeliefs[x][y] /= sum;\n\t\t\t}\n\t\t}\n\t\treturn newBeliefs;\n\t}", "private void makeDiagnosis(Patient patient, String diagnosis) {\n patient.setDiagnosis(diagnosis);\n }", "public void updateCell() {\n alive = !alive;\n simulator.getSimulation().changeState(xPosition, yPosition);\n setColor();\n }", "@Override\r\n\tpublic void updateState(int id, int state) {\n\t}", "protected boolean setState(GdbState state, GdbCause cause, GdbReason reason) {\n\t\treturn this.state.set(state, new CauseReasonPair(cause, reason));\n\t}", "protected void setState( EntityState newState ) throws BusinessException\n\t{\n\t\t/* Invariant check */\n\t\tif( newState.equals( this.state ) )\n\t\t\tthrow new ActualStateException( );\n\t\t\n\t\t/* Set the state before the observers update */\n\t\tthis.state = newState;\n\t\t\n\t\t/* Notify the observers */\n\t\tHashMap< EntityState, StateEventsFactory > eventFactories = getEventFactories( );\n\t\tStateEventsFactory stateFactory = eventFactories.get( newState );\n\t\ttry\n\t\t{\n\t\t\tArrayList< DomainEvent > events = stateFactory.getEventsFor( newState, FacturaElectronica2DTO.map( this ) );\n\t\t\tnotifyObservers( events );\n\t\t}\n\t\tcatch ( ObserverUpdateFailed e ) \n\t\t{\n\t\t\te.printStackTrace( );\n\t\t\tArrayList< DomainEvent > failoverEvents = stateFactory.getFailoverEventsFor( newState, FacturaElectronica2DTO.map( this ) );\n\t\t\tnotifyObservers( failoverEvents );\n\t\t}\n\t}", "SaveUpdateCodeListResult updateQDStoMeasure(MatValueSetTransferObject matValueSetTransferObject);", "private void stateChanged(TallyDeviceService.State pNewState, Message pMsg) {\n\n state = pNewState;\n\n if (state == TallyDeviceService.State.CONNECTED) {\n tallyDeviceName = (String)pMsg.obj;\n handleConnectedState();\n } else if (state == TallyDeviceService.State.CONNECTING) {\n tallyDeviceName = (String)pMsg.obj;\n handleConnectingState();\n } else if (state == TallyDeviceService.State.DISCONNECTED) {\n handleDisconnectedState();\n }\n\n }", "public void OutcomeUpdate(long id, String patient, String outcomeType, String outcomeDate,\n String notes){\n Callback<Outcome> callback = new Callback<Outcome>() {\n\n @Override\n public void success(Outcome serverResponse, Response response2) {\n if(serverResponse.getResponseCode() == 0){\n BusProvider.getInstance().post(produceOutcomeServerResponse(serverResponse));\n }else{\n BusProvider.getInstance().post(produceErrorEvent(serverResponse.getResponseCode(),\n serverResponse.getMessage()));\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n if(error != null ){\n Log.e(TAG, error.getMessage());\n error.printStackTrace();\n }\n BusProvider.getInstance().post(produceErrorEvent(-200,error.getMessage()));\n }\n };\n communicatorInterface.updateOutcome(id, patient, outcomeType, outcomeDate, notes, callback);\n }", "public void update(Object observable) {\n\tif (model.mainframeValue()) {\n\t this.setVisible(true);\n\t} else {\n\t this.setVisible(false);\n\t}\n }", "public void notifyState() {\n\t\tList<T> alldata = new ArrayList<T>(this.dataMap.values());\t\r\n\t\t// call them with the current data\r\n\t\t// for each observer call them\r\n\t\tfor( ModelEvents<T> observer : this.ObserverList){\r\n\t\t\tobserver.dataState(alldata);\r\n\t\t}\r\n\r\n\t}", "@Override\n\tprotected boolean update(Society currentSociety, Society newSociety, Pair<Location, Cell> currentLocCell,\n\t\t\tList<Location> neighborsLoc, List<Integer> neighborCounts) {\n\n\t\tFireCell currentCell = (FireCell) currentLocCell.getValue();\n\n\t\t// set parameters\n\t\tcurrentCell.setProbCatch(probCatch);\n\n\t\tFireCell updatedCell = currentCell.updateCell(neighborCounts);\n\t\tnewSociety.put(currentLocCell.getKey(), updatedCell);\n\n\t\treturn true;\n\t}", "@Override\r\n\tpublic void update(BbsDto dto) {\n\t\t\r\n\t}", "@Override\n\tpublic void update(String state,String id) {\n\t\tString query=\"UPDATE Book SET State='\"+state+\"' Where id='\"+id+\"'\";\n\t\texecuteQuery(query);\n\t\tnotifyAllObservers();\n\t\t\n\t}", "void updateChargeStates(String experimentAccession, Set<Integer> chargeStates);", "void updateViewToDevice()\n {\n if (!mBeacon.isConnected())\n {\n return;\n }\n\n KBCfgCommon oldCommonCfg = (KBCfgCommon)mBeacon.getConfigruationByType(KBCfgType.KBConfigTypeCommon);\n KBCfgCommon newCommomCfg = new KBCfgCommon();\n KBCfgEddyURL newUrlCfg = new KBCfgEddyURL();\n KBCfgEddyUID newUidCfg = new KBCfgEddyUID();\n try {\n //check if user update advertisement type\n int nAdvType = 0;\n if (mCheckBoxURL.isChecked()){\n nAdvType |= KBAdvType.KBAdvTypeEddyURL;\n }\n if (mCheckboxUID.isChecked()){\n nAdvType |= KBAdvType.KBAdvTypeEddyUID;\n }\n if (mCheckboxTLM.isChecked()){\n nAdvType |= KBAdvType.KBAdvTypeEddyTLM;\n }\n //check if the parameters changed\n if (oldCommonCfg.getAdvType() != nAdvType)\n {\n newCommomCfg.setAdvType(nAdvType);\n }\n\n //adv period, check if user change adv period\n Integer changeTag = (Integer)mEditBeaconAdvPeriod.getTag();\n if (changeTag > 0)\n {\n String strAdvPeriod = mEditBeaconAdvPeriod.getText().toString();\n if (Utils.isPositiveInteger(strAdvPeriod)) {\n Float newAdvPeriod = Float.valueOf(strAdvPeriod);\n newCommomCfg.setAdvPeriod(newAdvPeriod);\n }\n }\n\n //tx power ,\n changeTag = (Integer)mEditBeaconTxPower.getTag();\n if (changeTag > 0)\n {\n String strTxPower = mEditBeaconTxPower.getText().toString();\n Integer newTxPower = Integer.valueOf(strTxPower);\n if (newTxPower > oldCommonCfg.getMaxTxPower() || newTxPower < oldCommonCfg.getMinTxPower()) {\n toastShow(\"tx power not valid\");\n return;\n }\n newCommomCfg.setTxPower(newTxPower);\n }\n\n //device name\n String strDeviceName = mEditBeaconName.getText().toString();\n if (!strDeviceName.equals(oldCommonCfg.getName()) && strDeviceName.length() < KBCfgCommon.MAX_NAME_LENGTH) {\n newCommomCfg.setName(strDeviceName);\n }\n\n //uid config\n if (mCheckboxUID.isChecked())\n {\n KBCfgEddyUID oldUidCfg = (KBCfgEddyUID)mBeacon.getConfigruationByType(KBCfgType.KBConfigTypeEddyUID);\n String strNewNID = mEditEddyNID.getText().toString();\n String strNewSID = mEditEddySID.getText().toString();\n if (!strNewNID.equals(oldUidCfg.getNid()) && KBUtility.isHexString(strNewNID)){\n newUidCfg.setNid(strNewNID);\n }\n\n if (!strNewSID.equals(oldUidCfg.getSid()) && KBUtility.isHexString(strNewSID)){\n newUidCfg.setSid(strNewSID);\n }\n }\n\n //url config\n if (mCheckBoxURL.isChecked())\n {\n KBCfgEddyURL oldUrlCfg = (KBCfgEddyURL)mBeacon.getConfigruationByType(KBCfgType.KBConfigTypeEddyURL);\n String strUrl = mEditEddyURL.getText().toString();\n if (!strUrl.equals(oldUrlCfg.getUrl())){\n newUrlCfg.setUrl(strUrl);\n }\n }\n\n //TLM advertisement interval configuration (optional)\n if (mCheckboxTLM.isChecked()){\n //The default TLM advertisement interval is 10. The KBeacon will send 1 TLM advertisement packet every 10 advertisement packets.\n //newCommomCfg.setTLMAdvInterval(8);\n }\n }catch (KBException excpt)\n {\n toastShow(\"config data is invalid:\" + excpt.errorCode);\n excpt.printStackTrace();\n }\n\n ArrayList<KBCfgBase> cfgList = new ArrayList<>(3);\n cfgList.add(newCommomCfg);\n cfgList.add(newUidCfg);\n cfgList.add(newUrlCfg);\n mDownloadButton.setEnabled(false);\n mBeacon.modifyConfig(cfgList, new KBeacon.ActionCallback() {\n @Override\n public void onActionComplete(boolean bConfigSuccess, KBException error) {\n mDownloadButton.setEnabled(true);\n if (bConfigSuccess)\n {\n clearChangeTag();\n toastShow(\"config data to beacon success\");\n }\n else\n {\n if (error.errorCode == KBException.KBEvtCfgNoParameters)\n {\n toastShow(\"No data need to be config\");\n }\n else\n {\n toastShow(\"config failed for error:\" + error.errorCode);\n }\n }\n }\n });\n }", "Update withState(String state);", "public void updateEnvelope(double value) {\n\t// Get the values of the individual sliders\n\t\tdouble attackValue = (double) attackSlider.getValue();\n\t\tdouble decayValue = (double) decaySlider.getValue();\n\t\tdouble sustainValue = (double) sustainSlider.getValue();\n\t\tdouble releaseValue = (double) releaseSlider.getValue();\n\t\tSystem.out.println(\"Attack value: \" + attackValue);\n\n\t\t// Place the values in a double array\n\t\tdouble[] envelopeData = {\n\t\t\t\tattackValue, 1.0,\n\t\t\t\tdecayValue, 0.6,\n\t\t\t\tsustainValue, 0.6,\n\t\t\t\treleaseValue, 0.0\n\t\t};\n\n\t\t// Update the envelope data of the instrument\n\t\tsynth.getSelectedInstrument().updateEnvelope(envelopeData);\n\t}", "void updateBeliefStateActionTrans( BeliefStateDimension prev_belief,\n BelievabilityAction action,\n BeliefStateDimension next_belief )\n throws BelievabilityException\n {\n if (( prev_belief == null )\n || ( action == null )\n || ( next_belief == null ))\n throw new BelievabilityException\n ( \"updateBeliefStateActionTrans()\",\n \"NULL parameter(s) sent in.\" );\n\n // If the action does not pertain to this state dimension\n // (shouldn't happen), then we assume the state remains\n // unchanged (identiy matrix). Note that we copy the\n // probability values from prev_belief to next_belief, even\n // though the next_belief likely starts out as a clone of the\n // prev_belief. We do this because we were afraid of assuming\n // it starts out as a clone, as this would make this more\n // tightly coupled with the specific implmentation that calls\n // this method. Only if this becomes a performance problem\n // should this be revisited.\n // \n\n double[] prev_belief_prob = prev_belief.getProbabilityArray();\n double[] next_belief_prob = new double[prev_belief_prob.length];\n\n // The action transition matrix will model how the asset state\n // change will happen when the action is taken..\n //\n double[][] action_trans\n = _asset_dim_model.getActionTransitionMatrix( action );\n\n if ( _logger.isDetailEnabled() )\n _logger.detail( \"Action transition matrix: \" \n + _asset_dim_model.getStateDimensionName() + \"\\n\" \n + ProbabilityUtils.arrayToString( action_trans ));\n\n // We check this, but it really should never be null.\n //\n if ( action_trans == null )\n throw new BelievabilityException\n ( \"updateBeliefStateActionTrans()\",\n \"Could not find action transition matrix for: \"\n + prev_belief.getAssetID().getName() );\n \n // Start the probability calculation\n //\n for ( int cur_state = 0; \n cur_state < prev_belief_prob.length; \n cur_state++ ) \n {\n \n for ( int next_state = 0; \n next_state < prev_belief_prob.length; \n next_state++ ) \n {\n next_belief_prob[next_state] \n += prev_belief_prob[cur_state] \n * action_trans[cur_state][next_state];\n \n } // for next_state\n } // for cur_state\n\n // We do this before the sanity check, but maybe this isn't\n // the right thing to do. For now, it allows me to more easily\n // convert it to a string in the case where there is a\n // problem. \n //\n next_belief.setProbabilityArray( next_belief_prob );\n\n // Add a sanity check to prevent bogus belief from being\n // propogated to other computations. \n //\n double sum = 0.0;\n for ( int i = 0; i < next_belief_prob.length; i++ )\n sum += next_belief_prob[i];\n\n if( ! Precision.isZeroComputation( 1.0 - sum ))\n throw new BelievabilityException\n ( \"updateBeliefStateActionTrans()\",\n \"Resulting belief doesn't sum to 1.0 : \"\n + next_belief.toString() );\n\n }", "public void reveal(GameState pState, int[] pSpecies, Deadline pDue) {\n int score = 0;\n\n boolean[] newObs = {false, false, false, false, false, false};\n for (int i = 0; i < pSpecies.length; i++) {\n\n int currentSpecies = pSpecies[i];\n if (currentSpecies == guess[i]) {\n score++;\n }\n System.err.println(\"Bird num \" + i + \" : \" + speciesName(currentSpecies));\n Bird currentBird = pState.getBird(i);\n\n for (int j = 0; j < currentBird.getSeqLength(); j++) {\n if (currentBird.wasAlive(j)) {\n newObs[currentSpecies] = true;\n listObs.get(currentSpecies).add(currentBird.getObservation(j));\n }\n }\n\n }\n for (int i = 0; i < nbSpecies; i++) {\n int size = listObs.get(i).size();\n if (size >= 70 && newObs[i] && size <= 1000) {\n\n double[][] observationsMatrix = new double[size][1];\n for (int z = 0; z < size; z++) {\n observationsMatrix[z][0] = listObs.get(i).get(z);\n }\n int nbStates;\n int nbIterations = 50;\n\n if (size <= 100) {\n nbStates = 2;\n } else if (size <= 300) {\n nbStates = 3;\n } else {\n nbStates = 4;\n }\n\n HMMOfBirdSpecies newHMMOfBirdSpecies = new HMMOfBirdSpecies(transitionMatrixInit(nbStates), emissionMatrixInit(nbStates, nbTypesObservations), piMatrixInit(nbStates));\n newHMMOfBirdSpecies.BaumWelchAlgorithm(observationsMatrix, nbIterations);\n newHMMOfBirdSpecies.setTrained(true);\n\n listHMM[i] = newHMMOfBirdSpecies;\n\n }\n }\n\n System.err.println(\"Result : \" + score + \"/\" + pSpecies.length);\n }", "public void setStateValue(final String variableName, final Object value) {\n //Preconditions\n assert variableName != null : \"variableName must not be null\";\n assert !variableName.isEmpty() : \"variableName must not be empty\";\n\n synchronized (stateVariableDictionary) {\n if (stateVariableDictionary.isEmpty() && !stateValueBindings.isEmpty()) {\n // lazy population of the state value dictionary from the persistent state value bindings\n stateValueBindings.stream().forEach((stateValueBinding) -> {\n stateVariableDictionary.put(stateValueBinding.getVariableName(), stateValueBinding);\n });\n }\n StateValueBinding stateValueBinding = stateVariableDictionary.get(variableName);\n if (stateValueBinding == null) {\n stateValueBinding = new StateValueBinding(variableName, value);\n stateVariableDictionary.put(variableName, stateValueBinding);\n stateValueBindings.add(stateValueBinding);\n } else {\n stateValueBinding.setValue(value);\n }\n }\n }", "public com.luisjrz96.streaming.birthsgenerator.models.BirthInfo.Builder setState(java.lang.CharSequence value) {\n validate(fields()[3], value);\n this.state = value;\n fieldSetFlags()[3] = true;\n return this;\n }", "public void handleUpdateState(QSTile.BooleanState booleanState, Object obj) {\n boolean z;\n int i;\n int i2 = 1;\n boolean z2 = obj == QSTileImpl.ARG_SHOW_TRANSIENT_ENABLING;\n if (booleanState.slash == null) {\n booleanState.slash = new QSTile.SlashState();\n }\n boolean z3 = z2 || this.mHotspotController.isHotspotTransient();\n checkIfRestrictionEnforcedByAdminOnly(booleanState, \"no_config_tethering\");\n if (obj instanceof CallbackInfo) {\n CallbackInfo callbackInfo = (CallbackInfo) obj;\n booleanState.value = z2 || callbackInfo.isHotspotEnabled;\n i = callbackInfo.numConnectedDevices;\n z = callbackInfo.isDataSaverEnabled;\n } else {\n booleanState.value = z2 || this.mHotspotController.isHotspotEnabled();\n i = this.mHotspotController.getNumConnectedDevices();\n z = this.mDataSaverController.isDataSaverEnabled();\n }\n booleanState.icon = this.mEnabledStatic;\n booleanState.label = this.mContext.getString(R$string.quick_settings_hotspot_label);\n booleanState.isTransient = z3;\n booleanState.slash.isSlashed = !booleanState.value && !z3;\n if (z3) {\n booleanState.icon = QSTileImpl.ResourceIcon.get(17302458);\n }\n booleanState.expandedAccessibilityClassName = Switch.class.getName();\n booleanState.contentDescription = booleanState.label;\n boolean z4 = booleanState.value || booleanState.isTransient;\n if (z) {\n booleanState.state = 0;\n } else {\n if (z4) {\n i2 = 2;\n }\n booleanState.state = i2;\n }\n String secondaryLabel = getSecondaryLabel(z4, z3, z, i);\n booleanState.secondaryLabel = secondaryLabel;\n booleanState.stateDescription = secondaryLabel;\n }", "@Override\r\n\tpublic Disease update(Disease disease) {\r\n\t\t// setting logger info\r\n\t\tlogger.info(\"update the details of the disease\");\r\n\r\n\t\tOptional<Disease> diseases= diseaseRepo.findById(disease.getDiseaseId());\r\n\t\tif(!diseases.isPresent()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tdiseases.get().setDiseaseName(disease.getDiseaseName());\r\n\t\tdiseases.get().setDiseaseType(disease.getDiseaseType());\r\n\t\tdiseases.get().setDiseaseSymptoms(disease.getDiseaseSymptoms());\r\n\t\treturn diseaseRepo.save(diseases.get());\r\n\t}", "@Override\n\tpublic Besoin updateBesoin(Besoin besoin) {\n\t\treturn dao.updateBesoin(besoin);\n\t}", "public void update(UsStatePk pk, UsState dto) throws UsStateDaoException;", "public void updateNeighborhood(){\n\t\tList<AnimalEntity> holdingCell = new ArrayList<AnimalEntity>();\n\t\t\n\t\t//add all entities to cell\n\t\tfor(int key: creatureEntities.keySet()){\n\t\t\tfor(AnimalEntity entity: creatureEntities.get(key)){\n\t\t\t\tholdingCell.add(entity);\n\t\t\t}\n\t\t}\n\t\t//clear the neighborhood\n\t\tfor(int key: creatureEntities.keySet()){\n\t\t\tcreatureEntities.get(key).clear();\n\t\t}\n\t\t//add them back\n\t\tfor(AnimalEntity entity: holdingCell){\n\t\t\taddAnimal(entity);\n\t\t}\n\t}", "public void readNewObservation(int observations[]){\r\n o=observations;\r\n this.fbManipulator=new HMMForwardBackwardManipulator(hmm,observations);\r\n }", "public void updateHiddenValues(Actor actor) {\r\n\t\tthis.init = actor.init;\r\n\t}", "void changeCadence(int newValue);", "public void update() {\n\t\tmrRoboto.move();\n\t\tobsMatrix.updateSensor(mrRoboto.x, mrRoboto.y);\n\t\thmm.updateProb(obsMatrix.getSensorReading());\n\t}", "protected void updateState(IParticleSystemState state) {\n this.state = state;\n }", "private void valueIteration(double discount, double threshold) {\n\t\tArrayList<Double> myStateValueCopy = new ArrayList<Double>(this.numMyStates);\n\t\tfor(int i=0; i<this.numMyStates; i++) {\n\t\t\tmyStateValueCopy.add((double) this.stateValueList.get(i));\n\t\t}\n\t\tdouble delta = 100.0;\n\t\tdo {\n\t\t\tfor(int i=0; i<this.numMyStates; i++) {\n\t\t\t\tdouble maxValue = -1000000000000000.0;\n\t\t\t\tmyState s = new myState(i);\n\t\t\t\tfor(myAction a: this.getActions(s)) {\n\t\t\t\t\tdouble qValue = this.rewardTable.get(i).get(a.id);\n\t\t\t\t\tfor(int k=0; k<this.numMyStates; k++) {\n\t\t\t\t\t\tdouble transProb = this.transitionProbabilityTable.get(i).get(a.id).get(k);\n\t\t\t\t\t\tqValue+=discount*(transProb*myStateValueCopy.get(k));\n\t\t\t\t\t}\n\t\t\t\t\tif(qValue>maxValue) {\n\t\t\t\t\t\tmaxValue = qValue;\n\t\t\t\t\t\tthis.policy.set(i, a.id);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tmyStateValueCopy.set(i, maxValue);\n\t\t\t}\n\t\t\t// compute delta change in value list\n\t\t\tdelta = 0.0;\n\t\t\tfor(int i=0; i<this.numMyStates; i++) {\n\t\t\t\tdouble vsDelta = this.stateValueList.get(i) - myStateValueCopy.get(i);\n\t\t\t\tthis.stateValueList.set(i, (double) myStateValueCopy.get(i));\n\t\t\t\tdelta+= vsDelta*vsDelta;\n\t\t\t}\n\t\t} while(delta>threshold);\n\t\tSystem.gc();\n\t}", "@Override\r\n\tpublic void update(Cidade obj) {\n\r\n\t}", "public TIndiaState updateTIndiaState(final TIndiaState tIndiaState) {\n\t\tLOGGER.info(\"=========== Update TIndiaState ===========\");\n//\t\treturn gisDAO.update(tIndiaState);\n\t\treturn null;\n\t}", "@Override\n public void updateWithObservationsFromDatastreamOnly(SensingDevice sensingDevice, Datastream datastream) {\n }", "@Override\n\tpublic void update(MyAIController controller) {\n\t\t// Update Map\n\t\tmap.update(controller.getView());\n\t\tWorldSpatial.Direction orientation = controller.getOrientation();\n\t\tCoordinate pos = new Coordinate(controller.getPosition());\n\n\t\tSystem.out.println(state);\n\n\t\tswitch (state) {\n\t\tcase NORMAL:\n\t\t\tupdateNormal(controller, pos, orientation);\n\t\t\tbreak;\n\t\tcase WALL_FOLLOWING:\n\t\t\tupdateWallFollowing(controller, pos, orientation);\n\t\t\tbreak;\n\t\t// Checks car has moved tiles before going back to WALL_FOLLOWING state\n\t\tcase JUST_TURNED_LEFT:\n\t\t\tupdateJustTurnedLeft(controller, pos, orientation);\n\t\t\tbreak;\n\t\tcase PASSING_TRAP:\n\t\t\tupdatePassingTrap(controller, pos, orientation);\n\t\t\tbreak;\n\t\t}\n\t}", "final public void update(Observable obs, Object arg1) {\r\n\t\t\tMatrixVariableI var = (MatrixVariableI) obs;\r\n\t\t\tObject index = varRefs.get(var);\r\n\t\t\tcopyFromVar(var, ((Integer) index).intValue());\r\n\t\t}", "protected void stateChanged() {\r\n\t\tsetChanged();\r\n\t\tnotifyObservers();\r\n\t}", "public void update(String feature, double value) {\n // update the weight of the feature\n if (!weightMap.containsKey(feature)) {\n weightMap.put(feature, value);\n } else {\n weightMap.put(feature, weightMap.get(feature) + value);\n }\n\n // also add to averaging map if averaging is on\n if (doAveraging) {\n if (!weightCacheMap.containsKey(feature)) {\n weightCacheMap.put(feature, value * averagingCoefficient);\n } else {\n weightCacheMap.put(feature, weightCacheMap.get(feature) + value * averagingCoefficient);\n }\n\n averagingCoefficient++;\n }\n }", "public void update() {\r\n\t\t\tsetTextValue(updateNoteEnabled);\r\n\t\t}", "public void updateBSSIDsDebug(List<BSSID> bssids) {\n for (WiFiLocator w : locators.values()) {\n w.updateCurrentBSSIDs(bssids);\n }\n }", "public IBusinessObject setStateObject(IRState state)\n throws OculusException;", "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 void updateDistrict(District District);", "void updateDrawing() {\n filling = modelRoot.getCDraw().getFilling(this);\n dirtyBufF = true;\n tooltip = modelRoot.getCDraw().getTooltip(this);\n dirtyBufT = true;\n title = modelRoot.getCDraw().getTitle(this);\n dirtyBufTitle = true;\n colorTitle = modelRoot.getCDraw().getTitleColor(this);\n dirtyBufCT = true;\n }", "public abstract void stateChanged(STATE state);", "protected void _updateWidgets()\n\t{\n\t\t// Show the title\n\t\tString title = _spItem.getTitleAttr() ;\n\t\tif( title != null )\n\t\t\t_obsTitle.setText( title ) ;\n\t\telse\n\t\t\t_obsTitle.setText( \"\" ) ;\n\n\t\tString state = _avTab.get( \"state\" ) ;\n\t\tif( state == null )\n\t\t\t_obsState.setText( \"Not in Active Database\" ) ;\n\t\telse\n\t\t\t_obsState.setText( state ) ;\n\n\t\tignoreActions = true ; // MFO\n\n\t\tSpObs obs = ( SpObs )_spItem ;\n\t\t\n\t\t// Set the priority\n\t\tint pri = obs.getPriority() ;\n\t\t_w.jComboBox1.setSelectedIndex( pri - 1 ) ;\n\n\t\t// Set whether or not this is a standard\n\t\t_w.standard.setSelected( obs.getIsStandard() ) ;\n\n\t\t// Added for OMP (MFO, 7 August 2001)\n\t\t_w.optional.setValue( obs.isOptional() ) ;\n\n\t\tint numberRemaining = obs.getNumberRemaining();\n\t\t_w.setRemainingCount(numberRemaining);\n\n\t\t_w.unSuspendCB.addActionListener( this ) ;\n\n\t\tignoreActions = false ;\n\n\t\t_w.estimatedTime.setText( OracUtilities.secsToHHMMSS( obs.getElapsedTime() , 1 ) ) ;\n\n\t\t_updateMsbDisplay() ;\n\t}", "public void updateBid(Bid b) {\r\n this.edit(b);\r\n }", "private void refreshTableForUpdate()\n {\n //Was updating the values but don't believe this is necessary, as like budget items\n //a loss amount will stay the same unless changed by the user (later on it might be the\n //case that it can increase/decrease by a percentage but not now...)\n /*\n BadBudgetData bbd = ((BadBudgetApplication) this.getApplication()).getBadBudgetUserData();\n for (MoneyLoss loss : bbd.getLosses())\n {\n TextView valueView = valueViews.get(loss.expenseDescription());\n valueView.setText(BadBudgetApplication.roundedDoubleBB(loss.lossAmount()));\n }\n */\n }", "private static boolean updateHoleStates(int holeID, HoleState newState, HoleState state[], boolean rowMatrix[][], boolean colMatrix[][], boolean rowColMatrix[][], HashSet<Integer> visitedRows, HashSet<Integer> visitedCols)\r\n {\n \r\n int ids[];\r\n state[holeID-1]=newState;\r\n if(isHoleInRow(holeID))\r\n {\r\n ids = getHolesInRow(getRowIDFromHoleID(holeID));\r\n } else {\r\n ids = getHolesInColumn(getColumnIDFromHoleID(holeID));\r\n }\r\n \r\n for(int i=0; i<ids.length; i++)\r\n {\r\n state[ids[i]-1]=newState;\r\n }\r\n \r\n if(isHoleInRow(holeID))\r\n {\r\n int rid = getRowIDFromHoleID(holeID);\r\n visitedRows.add(rid);\r\n \r\n //Utility.alert(\"ROWID=\"+rid);\r\n \r\n // scan row-connections\r\n for(int i=0; i<rowMatrix[rid-1].length; i++)\r\n {\r\n if(i==rid-1) continue;\r\n if(rowMatrix[rid-1][i])\r\n {\r\n // has connection to (i+1)-th row \r\n if(!visitedRows.contains(i+1))\r\n {\r\n int frid = getFirstHoleIDInRow(i+1);\r\n updateHoleStates(frid, newState, state, rowMatrix, colMatrix, rowColMatrix, visitedRows, visitedCols);\r\n }\r\n }\r\n }\r\n \r\n // scan row-col connections\r\n for(int i=0; i<rowColMatrix[rid-1].length; i++)\r\n {\r\n if(rowColMatrix[rid-1][i])\r\n {\r\n //Utility.alert(\"ROW has connection to \"+(i+1)+\" col\");\r\n // has connection to (i+1)-th col\r\n if(!visitedCols.contains(i+1))\r\n {\r\n //Utility.alert(\"NOT VISITED\");\r\n \r\n visitedCols.add(i+1);\r\n int fcid = getFirstHoleIDInColumn(i+1);\r\n updateHoleStates(fcid, newState, state, rowMatrix, colMatrix, rowColMatrix, visitedRows, visitedCols);\r\n }\r\n }\r\n }\r\n } else {\r\n int cid = getColumnIDFromHoleID(holeID);\r\n visitedCols.add(cid);\r\n \r\n for(int i=0; i<colMatrix[cid-1].length; i++)\r\n {\r\n if(i==cid-1) continue;\r\n if(colMatrix[cid-1][i])\r\n {\r\n // has connection to (i+1)-th column \r\n if(!visitedCols.contains(i+1))\r\n {\r\n int fcid = getFirstHoleIDInColumn(i+1);\r\n updateHoleStates(fcid, newState, state, rowMatrix, colMatrix, rowColMatrix, visitedRows, visitedCols);\r\n }\r\n }\r\n }\r\n \r\n // scan row-col connections\r\n for(int i=0; i<rowColMatrix.length; i++)\r\n {\r\n if(rowColMatrix[i][cid-1])\r\n {\r\n // has connection to (i+1)-th row \r\n if(!visitedRows.contains(i+1))\r\n {\r\n visitedRows.add(i+1);\r\n int frid = getFirstHoleIDInRow(i+1);\r\n updateHoleStates(frid, newState, state, rowMatrix, colMatrix, rowColMatrix, visitedRows, visitedCols);\r\n }\r\n }\r\n }\r\n }\r\n \r\n return true;\r\n }", "public void setDiagnosis(String theDiagnosis)\n {\n if(!theDiagnosis.equals(null) && !theDiagnosis.equals(\"\") &&\n theDiagnosis.length() > 0)\n {\n this.diagnosis = theDiagnosis;\n \n }//end of IF\n \n else\n {\n this.diagnosis = \"**no diagnosis**\";\n \n }//end of ELSE\n \n }", "public void update() {\n\n if (!isSelected){\n goalManagement();\n }\n\n if (chair != null){ // si une chaise lui est désigné\n if (!hasAGoal && !isSelected){ // et qu'il n'a pas d'objectif\n setSit(true);\n position.setX(chair.getX());\n }\n\n if (isSit){\n chair.setChairState(Chair.ChairState.OCCUPIED);\n }else {\n chair.setChairState(Chair.ChairState.RESERVED);\n }\n }\n\n if (tired > 0 ){\n tired -= Constants.TIRED_LOSE;\n }\n\n if (isSit && comfort>0){\n comfort -= Constants.COMFORT_LOSE;\n }\n\n if (isSitOnSofa && comfort<100){\n comfort += Constants.COMFORT_WIN;\n }\n\n if (!hasAGoal && moveToCoffee && coffeeMachine!=null){\n moveToCoffee = false;\n tired=100;\n\n coffeeMachine.setCoffeeTimer(new GameTimer()) ;\n coffeeMachine.getCoffeeTimer().setTimeLimit(Constants.COFFEE_TIME_TO_AVAILABLE);\n coffeeMachine = null;\n backToSpawn();\n }\n\n if (!hasAGoal && moveToSofa){\n moveToSofa = false;\n isSitOnSofa = true;\n dir = 0 ;\n position.setY(position.getY()-Constants.TILE_SIZE);\n }\n\n if (isSelected){\n flashingColor ++;\n if (flashingColor > 2 * flashingSpeed){\n flashingColor = 0;\n }\n }\n\n }", "void updateSensors() {\n\t\tint visionDim = ninterface.affectors.getVisionDim();\n\t\tdouble distance;\n\n\t\t/* Update food vision variables. */\n\t\tfor (int i = 0; i < visionDim; i++) {\n\t\t\t/* Food sensory neurons. */\n\t\t\tdistance = viewingObjectOfTypeInSegment(i,\n\t\t\t\t\tCollision.TYPE_FOOD);\n\t\t\tninterface.affectors.vFood[i]\n\t\t\t\t\t= distance < 0.0 ? 1.0 : 1.0 - distance;\n\n\t\t\t/* Ally sensory neurons. */\n\t\t\tdistance = viewingObjectOfTypeInSegment(i,\n\t\t\t\t\tCollision.TYPE_AGENT);\n\t\t\tninterface.affectors.vAlly[i]\n\t\t\t\t\t= distance < 0.0 ? 1.0 : 1.0 - distance;\n\n\t\t\t/* Enemy sensory neurons. */\n\t\t\tdistance = viewingObjectOfTypeInSegment(i,\n\t\t\t\t\tCollision.TYPE_ENEMY);\n\t\t\tninterface.affectors.vEnemy[i]\n\t\t\t\t\t= distance < 0.0 ? 1.0 : 1.0 - distance;\n\n\t\t\t/* Wall sensory neurons. */\n\t\t\tdistance = viewingObjectOfTypeInSegment(i,\n\t\t\t\t\tCollision.TYPE_WALL);\n\t\t\tninterface.affectors.vWall[i]\n\t\t\t\t\t= distance < 0.0 ? 1.0 : 1.0 - distance;\n\t\t}\n\t}", "public void updateDisassembly(int location){\r\n int curloc = location;\r\n DefaultTableModel table = (DefaultTableModel)tblDissasm.getModel();\r\n Instruct_Container instruction;\r\n \r\n for(int i = 0; i<table.getRowCount();i++){\r\n instruction = board.dissassemble(curloc);\r\n table.setValueAt(Integer.toHexString(curloc),i,0);\r\n table.setValueAt(instruction.getInstruction(),i,1);\r\n table.setValueAt(instruction.getDescription(),i,2);\r\n curloc += instruction.getSize();\r\n }\r\n }", "public void changeAssignment(PatientStateBO patientState)\n {\n // TODO: make it clear what a patientstate is\n\n // remove old selection\n for (PatientStateBO bo : _dietTreatment.getPatientStates())\n {\n _dietTreatment.removePatientStates(bo);\n }\n _dietTreatment.addPatientStates(patientState);\n }", "public Builder setStateValue(int value) {\n \n state_ = value;\n onChanged();\n return this;\n }", "@ScheduledMethod(start = 1, interval = 1)\n\tpublic void update() {\n\t\tupdateParameters();\t\t\t// update bee coefficients using parameters UI\n\t\tkillBee();\t\t\t\t\t// (possibly) kill the bee (not currently used)\n\t\tlowFoodReturn();\n\t\tif(state == \"SLEEPING\"){\n\t\t\tsleep();\n\t\t}\n\t\tif(state == \"SCOUTING\"){\n\t\t\tscout();\n\t\t}\n\t\tif(state == \"TARGETING\"){\n\t\t\ttarget();\n\t\t}\n\t\tif(state == \"HARVESTING\"){\n\t\t\tharvest();\n\t\t}\n\t\tif(state == \"RETURNING\"){\n\t\t\treturnToHive();\n\t\t}\n\t\tif(state == \"AIMLESSSCOUTING\"){\n\t\t\taimlessScout();\n\t\t}\n\t\tif(state == \"DANCING\"){\n\t\t\tdance();\n\t\t}\n\t\tif(state == \"FOLLOWING\"){\n\t\t\tfollow();\n\t\t}\n\t}", "public void update(Conseiller c) {\n\t\t\r\n\t}", "public void updateModel(Bid bid, double time) {\n\t\tif (bid != null) {\n\t\t\t// We receiveMessage each issueEvaluation with the value that has\n\t\t\t// been offered in the bid.\n\t\t\tList<Issue> issues = negotiationSession.getUtilitySpace().getDomain().getIssues();\n\t\t\tfor (Issue issue : issues) {\n\t\t\t\ttry {\n\t\t\t\t\tint issueID = issue.getNumber();\n\t\t\t\t\tValue offeredValue = bid.getValue(issueID);\n\t\t\t\t\tthis.issueEvaluationList.updateIssueEvaluation(issueID, offeredValue);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t// After all issueEvaluations have been updated, we can calculate\n\t\t\t// the new\n\t\t\t// estimated weights for the issues themselves.\n\t\t\tthis.issueEvaluationList.updateIssueWeightMap();\n\t\t}\n\t}", "public void stainedStatusChanged(boolean stained) {\n\t\t\timage = stained ? stain : clean;\n\t\t\trepaint();\n\t\t}", "public void stateChanged(ChangeEvent e){\n\r\n repaint(); // at the moment we're being pretty crude with this, redrawing all the shapes\r\n\r\n\r\n\r\n if (fDeriverDocument!=null) // if this drawing has a journal, set it for saving\r\n fDeriverDocument.setDirty(true);\r\n\r\n\r\n\r\n }" ]
[ "0.71097374", "0.5760754", "0.5375978", "0.53088075", "0.52562004", "0.5135327", "0.5064946", "0.5040757", "0.49489105", "0.4941933", "0.49397278", "0.4877017", "0.47775945", "0.47606477", "0.47546825", "0.47544283", "0.47410116", "0.4729744", "0.4717099", "0.47142333", "0.4702694", "0.46937796", "0.4677545", "0.46723363", "0.46703717", "0.46653518", "0.4657332", "0.46500236", "0.4644644", "0.4640669", "0.46304077", "0.4630142", "0.46300185", "0.46272174", "0.46176434", "0.4602688", "0.4598093", "0.4597301", "0.45889425", "0.45880416", "0.4586707", "0.45139554", "0.45114905", "0.4498898", "0.4498135", "0.449586", "0.4486439", "0.4480325", "0.447773", "0.44747975", "0.4461826", "0.44529757", "0.44457933", "0.4435354", "0.44335052", "0.44329444", "0.44313455", "0.44305378", "0.4403442", "0.43927988", "0.4391983", "0.43836433", "0.43809152", "0.43795818", "0.43793947", "0.43731147", "0.43704274", "0.43703058", "0.4369226", "0.4363258", "0.43625474", "0.43564984", "0.4356344", "0.43449333", "0.43430892", "0.43382692", "0.43340772", "0.43305948", "0.4326251", "0.43239388", "0.43187368", "0.43154848", "0.4310383", "0.43056026", "0.4301236", "0.4298199", "0.42969614", "0.42932007", "0.42878345", "0.42850137", "0.42834032", "0.4280653", "0.42728576", "0.42709848", "0.42691657", "0.42689562", "0.42686975", "0.42650443", "0.42567205", "0.42454338" ]
0.4536134
41
method updateBeliefStateTrigger Constructs a random belief state for this asset type.
BeliefStateDimension getRandomBeliefState( ) throws BelievabilityException { if ( _asset_dim_model == null ) throw new BelievabilityException ( "POMDPAssetDimensionModel.getRandomBeliefState()", "Asset type dimension model is NULL" ); if ( _logger.isDetailEnabled() ) _logger.detail( "\tCreating POMDP random belief for dimension: " + _asset_dim_model.getStateDimensionName( ) ); int num_vals = _asset_dim_model.getNumStateDimValues( ); if ( num_vals < 0 ) throw new BelievabilityException ( "POMDPAssetDimensionModel.getRandomBeliefState()", "Asset dimension model returning zero values: " + _asset_dim_model.getStateDimensionName() ); double[] belief_prob = new double[num_vals]; ProbabilityUtils.setRandomDistribution( belief_prob ); return new BeliefStateDimension( _asset_dim_model, belief_prob, null ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createInitialBeliefState( )\n throws BelievabilityException\n {\n if ( _asset_dim_model == null )\n throw new BelievabilityException\n ( \"POMDPAssetDimensionModel.createInitialBeliefState()\",\n \"Asset model is NULL\" );\n \n if ( _logger.isDetailEnabled() )\n _logger.detail( \"\\tCreating POMDP iinitial belief for dimension: \" \n + _asset_dim_model.getStateDimensionName( ) );\n\n int num_vals = _asset_dim_model.getNumStateDimValues( );\n \n if ( num_vals < 0 )\n throw new BelievabilityException\n ( \"POMDPAssetDimensionModel.createInitialBeliefState()\",\n \"Asset model returning zero values: \"\n + _asset_dim_model.getStateDimensionName( ) );\n \n double[] belief_prob = new double[num_vals];\n \n int default_idx = _asset_dim_model.getDefaultStateIndex( );\n \n if ( default_idx < 0 )\n throw new BelievabilityException\n ( \"POMDPAssetDimensionModel.createInitialBeliefState()\",\n \"Asset model returning invalid default value: \"\n + _asset_dim_model.getStateDimensionName( ) );\n\n // We assume that each asset state dimension starts off\n // deterministically in a single possible state value.\n //\n belief_prob[default_idx] = 1.0;\n \n _initial_belief = new BeliefStateDimension( _asset_dim_model,\n belief_prob,\n null );\n\n }", "BeliefStateDimension getInitialBeliefState() \n {\n return _initial_belief; \n }", "BeliefStateDimension getUniformBeliefState( )\n throws BelievabilityException\n {\n if ( _asset_dim_model == null )\n throw new BelievabilityException\n ( \"POMDPAssetDimensionModel.getUniformBeliefState()\",\n \"Asset type dimension model is NULL\" );\n \n if ( _logger.isDetailEnabled() )\n _logger.detail( \"\\tCreating POMDP uniform belief for dimension: \" \n + _asset_dim_model.getStateDimensionName( ) );\n\n int num_vals = _asset_dim_model.getNumStateDimValues( );\n \n if ( num_vals < 0 )\n throw new BelievabilityException\n ( \"POMDPAssetDimensionModel.getUniformBeliefState()\",\n \"Asset dimension model returning zero values: \"\n + _asset_dim_model.getStateDimensionName() );\n\n double[] belief_prob = new double[num_vals];\n \n ProbabilityUtils.setUniformDistribution( belief_prob );\n \n return new BeliefStateDimension( _asset_dim_model,\n belief_prob,\n null );\n\n }", "void updateBeliefStateTrigger( BeliefStateDimension prev_belief,\n BeliefUpdateTrigger trigger,\n BeliefStateDimension next_belief )\n throws BelievabilityException\n {\n if (( prev_belief == null )\n || ( trigger == null )\n || ( next_belief == null ))\n throw new BelievabilityException\n ( \"updateBeliefStateTrigger()\",\n \"NULL parameter(s) sent in.\" );\n \n if ( trigger instanceof DiagnosisTrigger )\n updateBeliefStateDiagnosisObs( prev_belief,\n (DiagnosisTrigger) trigger,\n next_belief );\n else if ( trigger instanceof BelievabilityAction)\n updateBeliefStateActionTrans( prev_belief,\n (BelievabilityAction) trigger,\n next_belief );\n else\n throw new BelievabilityException\n ( \"updateBeliefStateTrigger()\",\n \"Unknown BeliefUpdateTrigger subclass: \"\n + trigger.getClass().getName() );\n \n }", "public void randomChange() {\n\t\tif (Math.random() < .5) {\n\t\t\tthis.setOn(true);\n\t\t} else {\n\t\t\tthis.setOn(false);\n\t\t}\n\t}", "public S getRandomState();", "TriggerType createTriggerType();", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5568, \"facing=north\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5569, \"facing=north\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5570, \"facing=north\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5571, \"facing=north\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5572, \"facing=north\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5573, \"facing=north\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5574, \"facing=north\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5575, \"facing=north\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5576, \"facing=north\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5577, \"facing=north\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5578, \"facing=north\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5579, \"facing=north\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5580, \"facing=north\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5581, \"facing=north\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5582, \"facing=north\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5583, \"facing=north\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5584, \"facing=north\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5585, \"facing=north\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5586, \"facing=north\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5587, \"facing=north\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5588, \"facing=south\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5589, \"facing=south\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5590, \"facing=south\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5591, \"facing=south\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5592, \"facing=south\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5593, \"facing=south\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5594, \"facing=south\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5595, \"facing=south\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5596, \"facing=south\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5597, \"facing=south\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5598, \"facing=south\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5599, \"facing=south\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5600, \"facing=south\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5601, \"facing=south\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5602, \"facing=south\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5603, \"facing=south\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5604, \"facing=south\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5605, \"facing=south\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5606, \"facing=south\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5607, \"facing=south\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5608, \"facing=west\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5609, \"facing=west\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5610, \"facing=west\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5611, \"facing=west\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5612, \"facing=west\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5613, \"facing=west\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5614, \"facing=west\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5615, \"facing=west\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5616, \"facing=west\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5617, \"facing=west\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5618, \"facing=west\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5619, \"facing=west\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5620, \"facing=west\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5621, \"facing=west\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5622, \"facing=west\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5623, \"facing=west\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5624, \"facing=west\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5625, \"facing=west\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5626, \"facing=west\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5627, \"facing=west\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5628, \"facing=east\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5629, \"facing=east\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5630, \"facing=east\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5631, \"facing=east\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5632, \"facing=east\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5633, \"facing=east\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5634, \"facing=east\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5635, \"facing=east\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5636, \"facing=east\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5637, \"facing=east\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5638, \"facing=east\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5639, \"facing=east\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5640, \"facing=east\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5641, \"facing=east\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5642, \"facing=east\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5643, \"facing=east\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5644, \"facing=east\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5645, \"facing=east\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5646, \"facing=east\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5647, \"facing=east\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n }", "@Override\n\t\tpublic void update(Elsa elsa) {\n\t\t\tif (MathUtil.randomBoolean(0.1f) && !elsa.getStateMachine().isInState(VISIT_BATHROOM)) {\n\t\t\t\telsa.getStateMachine().changeState(VISIT_BATHROOM);\n\t\t\t}\n\t\t}", "public dBelief newFakeCarBelief(float existProb, String placeId) {\n\t\tSpatioTemporalFrame stf = new SpatioTemporalFrame(placeId, new TemporalInterval(), existProb);\n\t\tEpistemicStatus status = new PrivateEpistemicStatus(\"self\");\n\n\t\tBasicProbDistribution typeDistrib = new BasicProbDistribution(OBJECTTYPE_LABEL, new FormulaValues(new LinkedList<FormulaProbPair>()));\n\t\t((FormulaValues)typeDistrib.values).values.add(new FormulaProbPair(new ElementaryFormula(0, \"car\"), 1.0f));\n\n\t\tBasicProbDistribution carTypeDistrib = new BasicProbDistribution(CARTYPE_LABEL, new FormulaValues(new LinkedList<FormulaProbPair>()));\n\t\t((FormulaValues)typeDistrib.values).values.add(new FormulaProbPair(new ElementaryFormula(0, \"citroen-c4\"), 0.4f));\n\t\t((FormulaValues)typeDistrib.values).values.add(new FormulaProbPair(new ElementaryFormula(0, \"ford-focus\"), 0.3f));\n\t\t((FormulaValues)typeDistrib.values).values.add(new FormulaProbPair(new ElementaryFormula(0, \"UNKNOWN\"), 0.3f));\n\n\t\tCondIndependentDistribs content = new CondIndependentDistribs(new HashMap<String,ProbDistribution>());\n\t\tcontent.distribs.put(OBJECTTYPE_LABEL, typeDistrib);\n\t\tcontent.distribs.put(CARTYPE_LABEL, carTypeDistrib);\n\n\t\tCASTBeliefHistory history = new CASTBeliefHistory(new LinkedList<WorkingMemoryPointer>(), new LinkedList<WorkingMemoryPointer>());\n\t\t\n\t\treturn new dBelief (stf, status, newDataID(), BELIEF_TYPE_VISUALOBJECT, content, history); \n\t}", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15071, \"face=floor\", \"facing=north\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15072, \"face=floor\", \"facing=south\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15073, \"face=floor\", \"facing=west\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15074, \"face=floor\", \"facing=east\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15075, \"face=wall\", \"facing=north\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15076, \"face=wall\", \"facing=south\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15077, \"face=wall\", \"facing=west\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15078, \"face=wall\", \"facing=east\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15079, \"face=ceiling\", \"facing=north\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15080, \"face=ceiling\", \"facing=south\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15081, \"face=ceiling\", \"facing=west\"));\n Block.GRINDSTONE.addBlockAlternative(new BlockAlternative((short) 15082, \"face=ceiling\", \"facing=east\"));\n }", "void updateBeliefStateDiagnosisObs( BeliefStateDimension prev_belief,\n DiagnosisTrigger diagnosis,\n BeliefStateDimension next_belief )\n throws BelievabilityException\n {\n if (( prev_belief == null )\n || ( diagnosis == null )\n || ( next_belief == null ))\n throw new BelievabilityException\n ( \"updateBeliefStateDiagnosisObs()\",\n \"NULL parameter(s) sent in.\" );\n\n double denom = 0.0;\n String diagnosis_value = diagnosis.getSensorValue();\n\n double[] prev_belief_prob = prev_belief.getProbabilityArray();\n double[] next_belief_prob = new double[prev_belief_prob.length];\n\n if ( _logger.isDebugEnabled() )\n _logger.debug( \"Updating belief given sensor '\"\n + diagnosis.getSensorName()\n + \"' has sensed '\" + diagnosis_value + \"'\");\n\n SensorTypeModel sensor_model \n = _asset_dim_model.getSensorTypeModel \n ( diagnosis.getSensorName() );\n \n if ( sensor_model == null )\n throw new BelievabilityException\n ( \"updateBeliefStateDiagnosisObs()\",\n \"Cannot find sensor model for: \"\n + diagnosis.getSensorName() );\n \n // This 'obs_prob' is a matrix of conditional probabilities of\n // an observation (i.e., diagnosis) given an asset state. The\n // first index is the observation and the second is the state.\n //\n double[][] obs_prob = sensor_model.getObservationProbabilityArray();\n\n if ( _logger.isDetailEnabled() )\n _logger.detail( \"Observation probabilities: \" \n + _asset_dim_model.getStateDimensionName() + \"\\n\" \n + ProbabilityUtils.arrayToString( obs_prob ));\n\n\n int obs_idx = sensor_model.getObsNameIndex( diagnosis_value );\n\n if ( obs_idx < 0 )\n throw new BelievabilityException\n ( \"updateBeliefStateDiagnosisObs()\",\n \"Diagnosis value '\" \n + diagnosis_value + \"' not found. \"\n + diagnosis.toString() );\n \n if ( _logger.isDetailEnabled() )\n _logger.detail( \"Pre-update: \" \n + ProbabilityUtils.arrayToString( prev_belief_prob ));\n\n for ( int state = 0; state < prev_belief_prob.length; state++ ) \n {\n\n next_belief_prob[state] \n = prev_belief_prob[state] * obs_prob[state][obs_idx];\n \n denom += next_belief_prob[state];\n \n } // for state\n\n if ( _logger.isDetailEnabled() )\n _logger.detail( \"Pre-normalization: \" \n + ProbabilityUtils.arrayToString( next_belief_prob ));\n \n // Here we choose to ignore impossible observations, though we\n // will give a warning. We do not want to completely abort\n // this operation, since the previous belief state will more\n // than likely have some threat transition information in it.\n // Thus, we choose to leave the belief state as is, which is\n // why we simply copy the arrays over. \n //\n if( Precision.isZeroComputation( denom ))\n {\n if ( _logger.isWarnEnabled() )\n _logger.warn( \"updateBeliefStateDiagnosisObs(): \"\n + \"Diagnosis is not possible. i.e., Pr(\"\n + diagnosis_value + \") = 0.0. Ignoring diagnosis.\");\n next_belief.setProbabilityArray\n ( prev_belief.getProbabilityArray());\n\n return;\n } // if found an impossible observation\n\n for( int i = 0; i < next_belief_prob.length; i++ )\n next_belief_prob[i] /= denom;\n\n if ( _logger.isDetailEnabled() )\n _logger.detail( \"Post-normalization: \" \n + ProbabilityUtils.arrayToString( next_belief_prob ));\n\n next_belief.setProbabilityArray( next_belief_prob );\n\n }", "private void randomBehavior() {\n\t\trandom = rand.nextInt(50);\n\t\tif (random == 0) {\n\t\t\trandom = rand.nextInt(4);\n\t\t\tswitch (random) {\n\t\t\t\tcase 0:\n\t\t\t\t\tchangeFacing(ACTION.DOWN);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tchangeFacing(ACTION.RIGHT);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tchangeFacing(ACTION.UP);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tchangeFacing(ACTION.LEFT);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9244, \"facing=north\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9245, \"facing=north\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9246, \"facing=north\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9247, \"facing=north\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9248, \"facing=north\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9249, \"facing=north\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9250, \"facing=north\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9251, \"facing=north\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9252, \"facing=north\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9253, \"facing=north\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9254, \"facing=north\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9255, \"facing=north\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9256, \"facing=north\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9257, \"facing=north\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9258, \"facing=north\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9259, \"facing=north\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9260, \"facing=south\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9261, \"facing=south\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9262, \"facing=south\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9263, \"facing=south\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9264, \"facing=south\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9265, \"facing=south\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9266, \"facing=south\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9267, \"facing=south\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9268, \"facing=south\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9269, \"facing=south\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9270, \"facing=south\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9271, \"facing=south\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9272, \"facing=south\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9273, \"facing=south\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9274, \"facing=south\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9275, \"facing=south\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9276, \"facing=west\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9277, \"facing=west\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9278, \"facing=west\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9279, \"facing=west\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9280, \"facing=west\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9281, \"facing=west\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9282, \"facing=west\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9283, \"facing=west\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9284, \"facing=west\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9285, \"facing=west\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9286, \"facing=west\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9287, \"facing=west\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9288, \"facing=west\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9289, \"facing=west\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9290, \"facing=west\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9291, \"facing=west\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9292, \"facing=east\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9293, \"facing=east\", \"half=upper\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9294, \"facing=east\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9295, \"facing=east\", \"half=upper\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9296, \"facing=east\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9297, \"facing=east\", \"half=upper\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9298, \"facing=east\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9299, \"facing=east\", \"half=upper\", \"hinge=right\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9300, \"facing=east\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9301, \"facing=east\", \"half=lower\", \"hinge=left\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9302, \"facing=east\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9303, \"facing=east\", \"half=lower\", \"hinge=left\", \"open=false\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9304, \"facing=east\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9305, \"facing=east\", \"half=lower\", \"hinge=right\", \"open=true\", \"powered=false\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9306, \"facing=east\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=true\"));\n Block.DARK_OAK_DOOR.addBlockAlternative(new BlockAlternative((short) 9307, \"facing=east\", \"half=lower\", \"hinge=right\", \"open=false\", \"powered=false\"));\n }", "private void setWaitState() {\r\n state = WAITFORBALL;\r\n game.waitingForBall.addFirst(this);\r\n }", "@Override\r\n\tpublic void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack) {\r\n\t\tsuper.onBlockPlacedBy(worldIn, pos, state, placer, stack);\r\n\t\tTileEntity tileentity = worldIn.getTileEntity(pos);\r\n\t\tif (tileentity instanceof TileEntityGemOfLight) { // prevent a crash if not the right type, or is null\r\n\t\t\tTileEntityGemOfLight tileEntityMBE21 = (TileEntityGemOfLight)tileentity;\r\n\r\n\t\t\t// chose a random colour for the gem:\r\n\t\t\t//Color [] colorChoices = {Color.BLUE, Color.CYAN, Color.YELLOW, Color.GREEN, Color.WHITE, Color.ORANGE, Color.RED};\r\n\t\t\t//Random random = new Random();\r\n\t\t\t//Color gemColor = colorChoices[random.nextInt(colorChoices.length)];\r\n\t\t\ttileEntityMBE21.setGemColour(Color.RED);//gemColor);\r\n\t\t}\r\n\t}", "public BSState() {\r\n mIsEnteringState = false;\r\n mIsExitingState = false;\r\n }", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18656, \"facing=north\", \"waterlogged=true\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18657, \"facing=north\", \"waterlogged=false\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18658, \"facing=south\", \"waterlogged=true\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18659, \"facing=south\", \"waterlogged=false\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18660, \"facing=west\", \"waterlogged=true\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18661, \"facing=west\", \"waterlogged=false\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18662, \"facing=east\", \"waterlogged=true\"));\n Block.BIG_DRIPLEAF_STEM.addBlockAlternative(new BlockAlternative((short) 18663, \"facing=east\", \"waterlogged=false\"));\n }", "private BlockType randomBlock(){\n // Check whether a powerup should be chosen or not\n if(random.nextInt(9) == 0){\n // Return a random powerup\n return allPowerUps.get(random.nextInt(allPowerUps.size()));\n\t}\n\treturn BlockType.PLATTFORM;\n }", "void updateBeliefStateThreatTrans( BeliefStateDimension prev_belief,\n long start_time,\n long end_time,\n BeliefStateDimension next_belief )\n throws BelievabilityException\n {\n\n // The updating of the belief state due to threats is a\n // relatively complicated process. The complication comes\n // from the fact that we must allow multiple threats to cause\n // the same event, and even allow multiple events to affect\n // the state dimension of an asset. We have models for how\n // the threats and events act individually, but no models\n // about how they act in combination. Our job here is trying\n // to estimate what effect these threats and events could have\n // on the asset state dimension. (Note that threats cause\n // events in the techspec model.\n //\n // Note that making a simplifying asumption that only one\n // event will occur at a time does not help us in this\n // computation: we are not trying to adjust after the fact\n // when we *know* an event occurred; we are trying to deduce\n // which of any number of events might have occurred. Thus,\n // we really do need to reason about combinations of events.\n //\n // The prospect of having the techspec encode the full joint\n // probability distributions for a events is not something\n // that will be managable, so we must live with the individual\n // models and make some assumptions. At the heart of the\n // assumption sare that threats that can generate a given\n // event will do so independently, and among multiple events,\n // they too act independently.\n // \n // Details of the calculations and assumptions are found in\n // the parts of the code where the calculations occur.\n //\n\n // All the complications of handling multiple threats happens\n // in this method call.\n //\n double[][] trans_matrix\n = _asset_dim_model.getThreatTransitionMatrix\n ( prev_belief.getAssetID(),\n start_time,\n end_time );\n\n if ( _logger.isDetailEnabled() )\n _logger.detail( \"Threat transition matrix: \" \n + _asset_dim_model.getStateDimensionName() + \"\\n\" \n + ProbabilityUtils.arrayToString( trans_matrix ));\n\n double[] prev_belief_prob = prev_belief.getProbabilityArray();\n double[] next_belief_prob = new double[prev_belief_prob.length];\n\n // The event transition matrix will model how the asset state\n // transitions occur. We now need to fold this into the\n // current belief sate to produce the next belief state.\n //\n\n for ( int cur_state = 0; \n cur_state < prev_belief_prob.length; \n cur_state++ ) \n {\n \n for ( int next_state = 0; \n next_state < prev_belief_prob.length; \n next_state++ ) \n {\n\n next_belief_prob[next_state] \n += prev_belief_prob[cur_state] \n * trans_matrix[cur_state][next_state];\n \n } // for next_state\n } // for cur_state\n\n // We do this before the sanity check, but maybe this isn't\n // the right thing to do. For now, it allows me to more easily\n // convert it to a string in the case where there is a\n // problem. \n //\n next_belief.setProbabilityArray( next_belief_prob );\n\n // Add a sanity check to prevent bogus belief from being\n // propogated to other computations. \n //\n double sum = 0.0;\n for ( int i = 0; i < next_belief_prob.length; i++ )\n sum += next_belief_prob[i];\n\n if( ! Precision.isZeroComputation( 1.0 - sum ))\n throw new BelievabilityException\n ( \"updateBeliefStateThreatTrans()\",\n \"Resulting belief doesn't sum to 1.0 : \"\n + next_belief.toString() );\n\n }", "BehaviorStateMachinesFactory getBehaviorStateMachinesFactory();", "@Override\n public void onHeatWaterRaised() {\n heaterState = true;\n addCupButton.setVisible(false);\n takeCupButton.setVisible(false);\n }", "void updateBeliefStateActionTrans( BeliefStateDimension prev_belief,\n BelievabilityAction action,\n BeliefStateDimension next_belief )\n throws BelievabilityException\n {\n if (( prev_belief == null )\n || ( action == null )\n || ( next_belief == null ))\n throw new BelievabilityException\n ( \"updateBeliefStateActionTrans()\",\n \"NULL parameter(s) sent in.\" );\n\n // If the action does not pertain to this state dimension\n // (shouldn't happen), then we assume the state remains\n // unchanged (identiy matrix). Note that we copy the\n // probability values from prev_belief to next_belief, even\n // though the next_belief likely starts out as a clone of the\n // prev_belief. We do this because we were afraid of assuming\n // it starts out as a clone, as this would make this more\n // tightly coupled with the specific implmentation that calls\n // this method. Only if this becomes a performance problem\n // should this be revisited.\n // \n\n double[] prev_belief_prob = prev_belief.getProbabilityArray();\n double[] next_belief_prob = new double[prev_belief_prob.length];\n\n // The action transition matrix will model how the asset state\n // change will happen when the action is taken..\n //\n double[][] action_trans\n = _asset_dim_model.getActionTransitionMatrix( action );\n\n if ( _logger.isDetailEnabled() )\n _logger.detail( \"Action transition matrix: \" \n + _asset_dim_model.getStateDimensionName() + \"\\n\" \n + ProbabilityUtils.arrayToString( action_trans ));\n\n // We check this, but it really should never be null.\n //\n if ( action_trans == null )\n throw new BelievabilityException\n ( \"updateBeliefStateActionTrans()\",\n \"Could not find action transition matrix for: \"\n + prev_belief.getAssetID().getName() );\n \n // Start the probability calculation\n //\n for ( int cur_state = 0; \n cur_state < prev_belief_prob.length; \n cur_state++ ) \n {\n \n for ( int next_state = 0; \n next_state < prev_belief_prob.length; \n next_state++ ) \n {\n next_belief_prob[next_state] \n += prev_belief_prob[cur_state] \n * action_trans[cur_state][next_state];\n \n } // for next_state\n } // for cur_state\n\n // We do this before the sanity check, but maybe this isn't\n // the right thing to do. For now, it allows me to more easily\n // convert it to a string in the case where there is a\n // problem. \n //\n next_belief.setProbabilityArray( next_belief_prob );\n\n // Add a sanity check to prevent bogus belief from being\n // propogated to other computations. \n //\n double sum = 0.0;\n for ( int i = 0; i < next_belief_prob.length; i++ )\n sum += next_belief_prob[i];\n\n if( ! Precision.isZeroComputation( 1.0 - sum ))\n throw new BelievabilityException\n ( \"updateBeliefStateActionTrans()\",\n \"Resulting belief doesn't sum to 1.0 : \"\n + next_belief.toString() );\n\n }", "public static ElevatorState changeStateFactory(String stateElavator) {\n\t\tif(stateElavator==\"UP\") {\n\t\t\treturn new UpState();\n\t\t}else if(stateElavator==\"DOWN\") {\n\t\t\treturn new DownState();\n\t\t}else {\n\t\t\treturn new StopState();\n\t\t}\n\t}", "StateType createStateType();", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6900, \"inverted=true\", \"power=0\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6901, \"inverted=true\", \"power=1\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6902, \"inverted=true\", \"power=2\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6903, \"inverted=true\", \"power=3\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6904, \"inverted=true\", \"power=4\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6905, \"inverted=true\", \"power=5\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6906, \"inverted=true\", \"power=6\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6907, \"inverted=true\", \"power=7\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6908, \"inverted=true\", \"power=8\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6909, \"inverted=true\", \"power=9\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6910, \"inverted=true\", \"power=10\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6911, \"inverted=true\", \"power=11\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6912, \"inverted=true\", \"power=12\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6913, \"inverted=true\", \"power=13\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6914, \"inverted=true\", \"power=14\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6915, \"inverted=true\", \"power=15\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6916, \"inverted=false\", \"power=0\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6917, \"inverted=false\", \"power=1\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6918, \"inverted=false\", \"power=2\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6919, \"inverted=false\", \"power=3\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6920, \"inverted=false\", \"power=4\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6921, \"inverted=false\", \"power=5\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6922, \"inverted=false\", \"power=6\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6923, \"inverted=false\", \"power=7\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6924, \"inverted=false\", \"power=8\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6925, \"inverted=false\", \"power=9\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6926, \"inverted=false\", \"power=10\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6927, \"inverted=false\", \"power=11\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6928, \"inverted=false\", \"power=12\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6929, \"inverted=false\", \"power=13\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6930, \"inverted=false\", \"power=14\"));\n Block.DAYLIGHT_DETECTOR.addBlockAlternative(new BlockAlternative((short) 6931, \"inverted=false\", \"power=15\"));\n }", "public Bee(ContinuousSpace<Object> s, Grid<Object> g, Hive h, Clock c, List<Flower> f) {\n \t\t\n \t\t// initialize properties of bee\n\t\tspace = s;\n\t\tgrid = g;\n\t\tfood = startingCrop;\n\t\ttargetFlower = null;\n\t\tstate = \"SLEEPING\";\n\t\thive = h;\n\t\tclock = c;\n\t\tflowers = f;\n\t\t\n\t\t// define semi-random preferred foraging times for bee\n\t\tstartForagingTime = RandomHelper.nextDoubleFromTo(avgStartForagingTime - 2.0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tavgStartForagingTime + 2.0);\n\t\tendForagingTime = RandomHelper.nextDoubleFromTo(avgEndForagingTime - 2.0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tavgEndForagingTime + 2.0);\n\t}", "public Builder setB(float value) {\n bitField0_ |= 0x00000002;\n b_ = value;\n onChanged();\n return this;\n }", "private void loadRandomState() {\n patternName = \"Random\";\n\n for (int i = 0; i < NUMCELLS; i++)\n currentState[i] = (rand.nextInt() > 0x40000000) ? (byte)1 : (byte)0;\n\n generations = 0;\n }", "public BattleStandbyState standbyState(){\n return new BattleStandbyState(\n this.mFightButton,\n this.mPokemonButton,\n this.mBagButton,\n this.mRunButton,\n this.mActionButton,\n this.mOptionList,\n this.mBattle,\n this.mMessage\n );\n }", "private void sleep() {\n\t\ttargetFlower = null;\n\t\tif(startForaging()) {\n\t\t\t// add food to bee's crop for upcoming foraging run\n\t\t\tif(food < startingCrop){\n\t\t\t\thive.food -= (startingCrop - food);\n\t\t\t\tfood = startingCrop;\n\t\t\t}\n\t\t\tif(startScouting() || hive.dancingBees.size() <= 0) {\n\t\t\t\tstate = \"SCOUTING\";\n\t\t\t\tcurrentAngle = RandomHelper.nextDoubleFromTo(0, 2*Math.PI);\n\t\t\t}\n\t\t\telse{ // else follow a dance\n\t\t\t\t// if bee follows dance, store angle and distance in the bee object\n\t\t\t\tint index = RandomHelper.nextIntFromTo(0, hive.dancingBees.size() - 1);\n\t\t\t\tNdPoint flowerLoc = space.getLocation(hive.dancingBees.get(index).targetFlower);\n\t\t\t\tNdPoint myLoc = space.getLocation(this);\n\t\t\t\tdouble ang = SpatialMath.calcAngleFor2DMovement(space, myLoc, flowerLoc);\n\t\t\t\tdouble dist = space.getDistance(flowerLoc, myLoc);\n\t\t\t\t\n\t\t\t\t// start following dance at correct angle\n\t\t\t\tcurrentAngle = ang;\n\t\t\t\tfollowDist = dist;\n\t\t\t\tstate = \"FOLLOWING\";\n\t\t\t}\n\t\t}\n\t\telse { // continue sleeping\n\t\t\thive.food -= lowMetabolicRate/2;\n\t\t\thover(grid.getLocation(hive));\n\t\t\t// update energy and food storage\n\t\t\tif(food > startingCrop){\n\t\t\t\tfood -= foodTransferRate;\n\t\t\t\thive.food += foodTransferRate;\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n public void applyAttributes() {\r\n super.applyAttributes();\r\n getEntity().setColor(color);\r\n getEntity().setOwner(MbPets.getInstance().getServer().getPlayer(getOwner()));\r\n getEntity().setAgeLock(true);\r\n\r\n if (isBaby) {\r\n getEntity().setBaby();\r\n } else {\r\n getEntity().setAdult();\r\n }\r\n Bukkit.getMobGoals().removeGoal(getEntity(), VanillaGoal.LLAMA_ATTACK_WOLF);\r\n Bukkit.getMobGoals().removeGoal(getEntity(), VanillaGoal.LLAMA_FOLLOW_CARAVAN);\r\n Bukkit.getMobGoals().removeGoal(getEntity(), VanillaGoal.TRADER_LLAMA_DEFEND_WANDERING_TRADER);\r\n }", "public static Bounty createUpdatedEntity() {\n Bounty bounty = new Bounty()\n// .status(UPDATED_STATUS)\n// .issueUrl(UPDATED_URL)\n .amount(UPDATED_AMOUNT)\n// .experience(UPDATED_EXPERIENCE)\n// .commitment(UPDATED_COMMITMENT)\n// .type(UPDATED_TYPE)\n// .category(UPDATED_CATEGORY)\n// .keywords(UPDATED_KEYWORDS)\n .permission(UPDATED_PERMISSION)\n .expiryDate(UPDATED_EXPIRES);\n return bounty;\n }", "@ForgeSubscribe\n \tpublic void onLivingUpdate(LivingUpdateEvent event) {\n \t\t\n \t\tEntityLivingBase entity = event.entityLiving;\n \t\tEntityPlayer player = ((entity instanceof EntityPlayer) ? (EntityPlayer)entity : null);\n \t\tItemStack backpack = ItemBackpack.getBackpack(entity);\n \t\t\n \t\tPropertiesBackpack backpackData;\n \t\tif (backpack == null) {\n \t\t\t\n \t\t\tbackpackData = EntityUtils.getProperties(entity, PropertiesBackpack.class);\n \t\t\tif (backpackData == null) return;\n \t\t\t\n \t\t\t// If the entity is supposed to spawn with\n \t\t\t// a backpack, equip it with one.\n \t\t\tif (backpackData.spawnsWithBackpack) {\n \t\t\t\t\n \t\t\t\tItemStack[] contents = null;\n \t\t\t\tif (entity instanceof EntityFrienderman) {\n \t\t\t\t\tbackpack = new ItemStack(BetterStorage.enderBackpack);\n \t\t\t\t\t((EntityLiving)entity).setEquipmentDropChance(3, 0.0F); // Remove drop chance for the backpack.\n \t\t\t\t} else {\n \t\t\t\t\tbackpack = new ItemStack(BetterStorage.backpack, 1, RandomUtils.getInt(120, 240));\n \t\t\t\t\tItemBackpack backpackType = (ItemBackpack)Item.itemsList[backpack.itemID];\n \t\t\t\t\tif (RandomUtils.getBoolean(0.15)) {\n \t\t\t\t\t\t// Give the backpack a random color.\n \t\t\t\t\t\tint r = RandomUtils.getInt(32, 224);\n \t\t\t\t\t\tint g = RandomUtils.getInt(32, 224);\n \t\t\t\t\t\tint b = RandomUtils.getInt(32, 224);\n \t\t\t\t\t\tint color = (r << 16) | (g << 8) | b;\n \t\t\t\t\t\tbackpackType.func_82813_b(backpack, color);\n \t\t\t\t\t}\n \t\t\t\t\tcontents = new ItemStack[backpackType.getColumns() * backpackType.getRows()];\n \t\t\t\t\t((EntityLiving)entity).setEquipmentDropChance(3, 1.0F); // Set drop chance for the backpack to 100%.\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// If the entity spawned with enchanted armor,\n \t\t\t\t// move the enchantments over to the backpack.\n \t\t\t\tItemStack armor = entity.getCurrentItemOrArmor(CurrentItem.CHEST);\n \t\t\t\tif (armor != null && armor.isItemEnchanted()) {\n \t\t\t\t\tNBTTagCompound compound = new NBTTagCompound();\n \t\t\t\t\tcompound.setTag(\"ench\", armor.getTagCompound().getTag(\"ench\"));\n \t\t\t\t\tbackpack.setTagCompound(compound);\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif (contents != null) {\n \t\t\t\t\t// Add random items to the backpack.\n \t\t\t\t\tInventoryStacks inventory = new InventoryStacks(contents);\n \t\t\t\t\t// Add normal random backpack loot\n \t\t\t\t\tWeightedRandomChestContent.generateChestContents(\n \t\t\t\t\t\t\tRandomUtils.random, randomBackpackItems, inventory, 20);\n \t\t\t\t\t// With a chance of 10%, add some random dungeon loot\n \t\t\t\t\tif (RandomUtils.getDouble() < 0.1) {\n \t\t\t\t\t\tChestGenHooks info = ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST);\n \t\t\t\t\t\tWeightedRandomChestContent.generateChestContents(\n \t\t\t\t\t\t\t\tRandomUtils.random, info.getItems(RandomUtils.random), inventory, 5);\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tItemBackpack.setBackpack(entity, backpack, contents);\n \t\t\t\tbackpackData.spawnsWithBackpack = false;\n \t\t\t\t\n \t\t\t} else {\n \t\t\t\t\n \t\t\t\t// If the entity doesn't have a backpack equipped,\n \t\t\t\t// but still has some backpack data, drop the items.\n \t\t\t\tif (backpackData.contents != null) {\n \t\t\t\t\tfor (ItemStack stack : backpackData.contents)\n \t\t\t\t\t\tWorldUtils.dropStackFromEntity(entity, stack, 1.5F);\n \t\t\t\t\tbackpackData.contents = null;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t\treturn;\n \t\t\t\n \t\t} else backpackData = ItemBackpack.getBackpackData(entity);\n \t\t\n \t\tbackpackData.prevLidAngle = backpackData.lidAngle;\n \t\tfloat lidSpeed = 0.2F;\n \t\tif (ItemBackpack.isBackpackOpen(entity))\n \t\t\tbackpackData.lidAngle = Math.min(1.0F, backpackData.lidAngle + lidSpeed);\n \t\telse backpackData.lidAngle = Math.max(0.0F, backpackData.lidAngle - lidSpeed);\n \t\t\n \t\tString sound = Block.soundSnowFootstep.getStepSound();\n \t\t// Play sound when opening\n \t\tif ((backpackData.lidAngle > 0.0F) && (backpackData.prevLidAngle <= 0.0F))\n \t\t\tentity.worldObj.playSoundEffect(entity.posX, entity.posY, entity.posZ, sound, 1.0F, 0.5F);\n \t\t// Play sound when closing\n \t\tif ((backpackData.lidAngle < 0.2F) && (backpackData.prevLidAngle >= 0.2F))\n \t\t\tentity.worldObj.playSoundEffect(entity.posX, entity.posY, entity.posZ, sound, 0.8F, 0.3F);\n \t\t\n \t}", "private void initState() {\r\n double metaintensity=0;\r\n double diffr=0;\r\n for(int ii=0; ii < Config.numberOfSeeds; ii++)\r\n {\r\n Cur_state[ii] = this.seeds[ii].getDurationMilliSec();\r\n// Zeit2 = this.seeds[1].getDurationMilliSec();\r\n// Zeit3 = this.seeds[2].getDurationMilliSec();\r\n// LogTool.print(\"Zeit 1 : \" + Zeit1 + \"Zeit 2 : \" + Zeit2 + \"Zeit 3 : \" + Zeit3, \"notification\");\r\n// LogTool.print(\"initState: Dwelltime Seed \" + ii + \" : \" + Cur_state[ii], \"notification\");\r\n// Cur_state[0] = Zeit1;\r\n// Cur_state[1] = Zeit2;\r\n// Cur_state[2] = Zeit3;\r\n }\r\n \r\n if ((Config.SACostFunctionType==3)||(Config.SACostFunctionType==1)) {\r\n for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) {\r\n for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n// this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n this.body2[x][y][z].metavalue = 0.0;\r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n metaintensity = this.body2[x][y][z].radiationIntensityNoTime((this.seeds2[i].getCoordinate()));\r\n // radiationIntensityNoTime(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (metaintensity>0) {\r\n // LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n // this.body2[x][y][z].addCurrentDosis(metaintensity);\r\n this.body2[x][y][z].metavalue += metaintensity; \r\n// Das ist implementation one\r\n } \r\n } \r\n }\r\n }\r\n// this.body = this.body2;\r\n } else {\r\n \r\n // for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) { \r\n for(int x=0; x < Solver.dimensions[0]; x+= Config.scaleFactor) {\r\n // for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int y=0; y < Solver.dimensions[1]; y+= Config.scaleFactor) {\r\n // for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n for(int z=0; z < Solver.dimensions[2]; z+= Config.scaleFactor) {\r\n // this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n this.body2[x][y][z].metavalue = 0.0;\r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n metaintensity = this.body2[x][y][z].radiationIntensityNoTime((this.seeds2[i].getCoordinate()));\r\n // radiationIntensityNoTime(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (metaintensity>0) {\r\n // LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n // this.body2[x][y][z].addCurrentDosis(metaintensity);\r\n this.body2[x][y][z].metavalue += metaintensity;\r\n this.body[x][y][z].metavalue = 0; \r\n this.body[x][y][z].metavalue += this.body2[x][y][z].metavalue;\r\n // Das ist implementation one\r\n } \r\n } \r\n }\r\n }\r\n// this.body = this.body2;\r\n diffr = ((this.body[43][43][43].metavalue)-(this.body2[43][43][43].metavalue));\r\n LogTool.print(\"Shallowcopy Check, value should be 0 :\" + diffr + \"@ 43,43,43 \",\"notification\");\r\n }\r\n }", "protected BattleBagState bagState(){\n return new BattleBagState(\n this.mFightButton,\n this.mPokemonButton,\n this.mBagButton,\n this.mRunButton,\n this.mActionButton,\n this.mOptionList,\n this.mBattle,\n this.mMessage\n );\n }", "public StateTriggeredAbility(GameState state, String abilityText)\n\t{\n\t\tsuper(state, abilityText);\n\n\t\tthis.triggerConditions = new java.util.LinkedList<SetGenerator>();\n\t\tthis.printedVersionID = -1;\n\t}", "public void begin(GameState init_state) {\n rand = new Random();\n }", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16014, \"power=0\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16015, \"power=1\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16016, \"power=2\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16017, \"power=3\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16018, \"power=4\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16019, \"power=5\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16020, \"power=6\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16021, \"power=7\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16022, \"power=8\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16023, \"power=9\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16024, \"power=10\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16025, \"power=11\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16026, \"power=12\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16027, \"power=13\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16028, \"power=14\"));\n Block.TARGET.addBlockAlternative(new BlockAlternative((short) 16029, \"power=15\"));\n }", "public void setState (int new_state, int force) {\n\t\t\tLog.d (\"STATE\", \"New state : \" + new_state);\n\t\t\tif (new_state >= BotMove.RIGHT_15 && new_state <= BotMove.LEFT_5){\n\t\t\t\tstate = new_state;\n\t\t\t\ttakeInterruptAction();\n\t\t\t}\n\t\t\telse if(state != new_state || force == 1){\n\t\t\t\tstate = new_state;\n\t\t\t\ttakeInterruptAction();\n\t\t\t}\n\t\t\telse wt.take_reading = true;\n\t\t}", "public void modifyBelief(Fact beliefFact, Map<String, String> beliefParameters) {\n\t\ttry {\n\t\t\tif(beliefParameters.containsKey(\"id\")) beliefFact.setSlotValue(\"id\", new Value(beliefParameters.get(\"id\"), RU.STRING));\n\t\t\tif(beliefParameters.containsKey(\"task\")) beliefFact.setSlotValue(\"task\", new Value(beliefParameters.get(\"task\"), RU.STRING));\n\t\t\tif(beliefParameters.containsKey(\"event\")) beliefFact.setSlotValue(\"event\", new Value(beliefParameters.get(\"event\"), RU.STRING));\n\t\t\tif(beliefParameters.containsKey(\"event-type\")) beliefFact.setSlotValue(\"event-type\", new Value(beliefParameters.get(\"event-type\"), RU.SYMBOL));\n\t\t\tif(beliefParameters.containsKey(\"event-origin\")) beliefFact.setSlotValue(\"event-origin\", new Value(beliefParameters.get(\"event-origin\"), RU.SYMBOL));\n\t\t\tif(beliefParameters.containsKey(\"agent\")) beliefFact.setSlotValue(\"agent\", new Value(beliefParameters.get(\"agent\"), RU.SYMBOL));\n\t\t\tif(beliefParameters.containsKey(\"belief-type\")) beliefFact.setSlotValue(\"belief-type\", new Value(beliefParameters.get(\"belief-type\"), RU.SYMBOL));\n\t\t\tif(beliefParameters.containsKey(\"belief-about\")) beliefFact.setSlotValue(\"belief-about\", new Value(beliefParameters.get(\"belief-about\"), RU.SYMBOL));\n\t\t\tif(beliefParameters.containsKey(\"belief\")) beliefFact.setSlotValue(\"belief\", new Value(beliefParameters.get(\"belief\"), RU.STRING));\n\t\t} catch (JessException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void onLivingUpdate()\n {\n if (this.worldObj.isDaytime() && !this.worldObj.isRemote && !this.isChild())\n {\n float var1 = this.getBrightness(100.0F);\n\n if (var1 > 0.5F && this.rand.nextFloat() * 30.0F < (var1 - 0.4F) * 2.0F && this.worldObj.canBlockSeeTheSky(MathHelper.floor_double(this.posX), MathHelper.floor_double(this.posY), MathHelper.floor_double(this.posZ)))\n {\n boolean var2 = true;\n ItemStack var3 = this.getEquipmentInSlot(4);\n\n if (var3 != null)\n {\n if (var3.isItemStackDamageable())\n {\n var3.setItemDamage(var3.getItemDamageForDisplay() + this.rand.nextInt(2));\n\n if (var3.getItemDamageForDisplay() >= var3.getMaxDamage())\n {\n this.renderBrokenItemStack(var3);\n this.setCurrentItemOrArmor(4, (ItemStack)null);\n }\n }\n\n var2 = false;\n }\n\n if (var2)\n {\n this.setFire(-99);\n }\n }\n }\n\n super.onLivingUpdate();\n }", "FuelCan(){\n\t\tsuper();\n\t\tsetSize(randInt(3,6));\n\t}", "public void appraise(Belief belief) {\n this.gamygdala.appraise(belief, null);\n }", "public AeBpelState getState();", "public void onUpdate()\n {\n boolean flag;\n\n if (this.fireworkAge == 0 && this.fireworkExplosions != null)\n {\n flag = this.func_92037_i();\n boolean flag1 = false;\n\n if (this.fireworkExplosions.tagCount() >= 3)\n {\n flag1 = true;\n }\n else\n {\n for (int i = 0; i < this.fireworkExplosions.tagCount(); ++i)\n {\n NBTTagCompound nbttagcompound = (NBTTagCompound)this.fireworkExplosions.tagAt(i);\n\n if (nbttagcompound.getByte(\"Type\") == 1)\n {\n flag1 = true;\n break;\n }\n }\n }\n\n String s = \"fireworks.\" + (flag1 ? \"largeBlast\" : \"blast\") + (flag ? \"_far\" : \"\");\n this.worldObj.playSound(this.posX, this.posY, this.posZ, s, 20.0F, 0.95F + this.rand.nextFloat() * 0.1F, true);\n }\n\n if (this.fireworkAge % 2 == 0 && this.fireworkExplosions != null && this.fireworkAge / 2 < this.fireworkExplosions.tagCount())\n {\n int j = this.fireworkAge / 2;\n NBTTagCompound nbttagcompound1 = (NBTTagCompound)this.fireworkExplosions.tagAt(j);\n byte b0 = nbttagcompound1.getByte(\"Type\");\n boolean flag2 = nbttagcompound1.getBoolean(\"Trail\");\n boolean flag3 = nbttagcompound1.getBoolean(\"Flicker\");\n int[] aint = nbttagcompound1.getIntArray(\"Colors\");\n int[] aint1 = nbttagcompound1.getIntArray(\"FadeColors\");\n\n if (b0 == 1)\n {\n this.createBall(0.5D, 4, aint, aint1, flag2, flag3);\n }\n else if (b0 == 2)\n {\n this.createShaped(0.5D, new double[][] {{0.0D, 1.0D}, {0.3455D, 0.309D}, {0.9511D, 0.309D}, {0.3795918367346939D, -0.12653061224489795D}, {0.6122448979591837D, -0.8040816326530612D}, {0.0D, -0.35918367346938773D}}, aint, aint1, flag2, flag3, false);\n }\n else if (b0 == 3)\n {\n this.createShaped(0.5D, new double[][] {{0.0D, 0.2D}, {0.2D, 0.2D}, {0.2D, 0.6D}, {0.6D, 0.6D}, {0.6D, 0.2D}, {0.2D, 0.2D}, {0.2D, 0.0D}, {0.4D, 0.0D}, {0.4D, -0.6D}, {0.2D, -0.6D}, {0.2D, -0.4D}, {0.0D, -0.4D}}, aint, aint1, flag2, flag3, true);\n }\n else if (b0 == 4)\n {\n this.createBurst(aint, aint1, flag2, flag3);\n }\n else\n {\n this.createBall(0.25D, 2, aint, aint1, flag2, flag3);\n }\n\n int k = aint[0];\n float f = (float)((k & 16711680) >> 16) / 255.0F;\n float f1 = (float)((k & 65280) >> 8) / 255.0F;\n float f2 = (float)((k & 255) >> 0) / 255.0F;\n EntityFireworkOverlayFX entityfireworkoverlayfx = new EntityFireworkOverlayFX(this.worldObj, this.posX, this.posY, this.posZ);\n entityfireworkoverlayfx.setRBGColorF(f, f1, f2);\n this.theEffectRenderer.addEffect(entityfireworkoverlayfx);\n }\n\n ++this.fireworkAge;\n\n if (this.fireworkAge > this.particleMaxAge)\n {\n if (this.twinkle)\n {\n flag = this.func_92037_i();\n String s1 = \"fireworks.\" + (flag ? \"twinkle_far\" : \"twinkle\");\n this.worldObj.playSound(this.posX, this.posY, this.posZ, s1, 20.0F, 0.9F + this.rand.nextFloat() * 0.15F, true);\n }\n\n this.setDead();\n }\n }", "@Override\n\tpublic void randomChanged(boolean random) {\n\t\t\n\t}", "@ScheduledMethod(start = 1, interval = 1)\n\tpublic void update() {\n\t\tupdateParameters();\t\t\t// update bee coefficients using parameters UI\n\t\tkillBee();\t\t\t\t\t// (possibly) kill the bee (not currently used)\n\t\tlowFoodReturn();\n\t\tif(state == \"SLEEPING\"){\n\t\t\tsleep();\n\t\t}\n\t\tif(state == \"SCOUTING\"){\n\t\t\tscout();\n\t\t}\n\t\tif(state == \"TARGETING\"){\n\t\t\ttarget();\n\t\t}\n\t\tif(state == \"HARVESTING\"){\n\t\t\tharvest();\n\t\t}\n\t\tif(state == \"RETURNING\"){\n\t\t\treturnToHive();\n\t\t}\n\t\tif(state == \"AIMLESSSCOUTING\"){\n\t\t\taimlessScout();\n\t\t}\n\t\tif(state == \"DANCING\"){\n\t\t\tdance();\n\t\t}\n\t\tif(state == \"FOLLOWING\"){\n\t\t\tfollow();\n\t\t}\n\t}", "public void applyNewState() {\n this.setAlive(this.newState);\n }", "protected abstract void createTriggerOrAction();", "public long getState()\n {\n return ((StatefulRandomness)random).getState();\n }", "public void setState(long state)\n {\n ((StatefulRandomness)random).setState(state);\n }", "public void spread(double probCatch, Cell north, Cell east, Cell south, Cell west) {\n \t\tif (north.getState() == Cell.BURNING || east.getState() == Cell.BURNING || south.getState() == Cell.BURNING || west.getState() == Cell.BURNING) {\n \t\t\tRandom rand = new Random();\n \t\t\tif (rand.nextDouble() <= probCatch) {\n \t\t\t\tthis.setState(Cell.BURNING);\n \t\t\t}\n \t\t}\n \t}", "public Ball(int xWall, int yWall, Random rand){\n this(\n rand.nextInt(xWall-2*MAX_RADIUS),//set all to random\n rand.nextInt(yWall-2*MAX_RADIUS),\n rand.nextInt(MAX_RADIUS-MIN_RADIUS)+MIN_RADIUS,\n new Color(\n rand.nextInt(MAX_CHANNEL_VAL),\n rand.nextInt(MAX_CHANNEL_VAL),\n rand.nextInt(MAX_CHANNEL_VAL),\n rand.nextInt(MAX_CHANNEL_VAL-MIN_ALPHA_VAL)+MIN_ALPHA_VAL),\n rand.nextInt(MAX_VELOCITY-MIN_VELOCITY)+MIN_VELOCITY,\n rand.nextInt(MAX_VELOCITY-MIN_VELOCITY)+MIN_VELOCITY,\n xWall,\n yWall\n );\n }", "private void computeBeliefIfReady() throws FactorScopeException {\n\t\t\tboolean ready = true;\n\t\t\tfor(Entry<Edge, Boolean> entry : _neighborEdges.entrySet()) {\n\t\t\t\tif(DEBUG) System.out.printf(\"edge:%s\\nready?%s\\n\", entry.getKey(), entry.getValue());\n\t\t\t\tready = ready && entry.getValue();\n\t\t\t}\n\t\t\tif(ready) {\n\t\t\t\tif(DEBUG) System.out.println(\"updating belief!\");\n\t\t\t\tFactor b = new Factor(_initialBelief);\n\t\t\t\tSystem.out.println(\"initial belief before product:\\n\"+_initialBelief);\n\t\t\t\tfor(Edge e : _neighborEdges.keySet()) {\n\t\t\t\t\tFactor msg;\n\t\t\t\t\tif(DEBUG) System.out.printf(\"\\nmy id:%d neighbor id:%d\\n\", this._orderID, e.getOtherVertex(this)._orderID);\n\t\t\t\t\tif(DEBUG) System.out.println(\"edge info:\"+e.getLongInfo());\n\t\t\t\t\tif(this._orderID < e.getOtherVertex(this)._orderID) {\n\t\t\t\t\t\tif(DEBUG) System.out.println(\"getting upward msg from \"+e.getOtherVertex(this));\n\t\t\t\t\t\tmsg = e.getUpwardMessage();\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(DEBUG) System.out.println(\"getting downward msg from \"+e.getOtherVertex(this));\n\t\t\t\t\t\tmsg = e.getDownwardMessage();\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"multiply by msg:\\n\"+msg);\n\t\t\t\t\tb = b.product(msg);\n\t\t\t\t}\n\t\t\t\tthis.setFactorData(b);\n\t\t\t\tSystem.out.println(\"belief now updated:\\n\"+this.getLongInfo());\n\t\t\t}\n\t\t}", "void setState(forestOrDebrisState state)\n {\n this.state = state;\n }", "public Ant(){ // The position and direction of the ant is completely randomizated in it's creation\n this.position[0] = (int)Math.floor(Math.random() * 20); \n this.position[1] = (int)Math.floor(Math.random() * 20);\n this.image = (int)Math.floor(Math.random() * 4);\n }", "@Override\n\tpublic void init(GameContainer gc, StateBasedGame sb) throws SlickException {\n\t\t// background\n\t\t// creating background-entity\n\t\tEntity background = new Entity(Constants.MENU_ID);\n\t\tbackground.setPosition(new Vector2f((OptionsHandler.getWindow_x() / 2), (OptionsHandler.getWindow_y() / 2)));\n\t\tif (!Breakout.getDebug()) {\n\t\t\t// only if not in debug-mode\n\t\t\tbackground.addComponent(new ImageRenderComponent(new Image(ThemeHandler.MENU_BACKGROUND)));\n\t\t}\n\t\tbackground.setScale(Variables.BACKGROUND_SCALE); // scaling\n\t\t// giving StateBasedEntityManager the background-entity\n\t\tentityManager.addEntity(stateID, background);\n\n\t\t// listener entity\n\t\tEntity listener = new Entity(\"listener\");\n\t\tentityManager.addEntity(stateID, listener);\n\t\t// Loop event for various uses (controller input)\n\t\tLoopEvent listenerLoop = new LoopEvent();\n\t\tlistener.addComponent(listenerLoop);\n\n\t\t// new_Game-entity\n\n\t\tButtonEntity newGame = new ButtonEntity(\"newGame\", stateID, Constants.ButtonType.MAINMENU, Variables.MAIN_MENU_BUTTON_1_X, Variables.MAIN_MENU_BUTTON_1_Y);\n\t\tnewGame.addAction((gc1, sb1, delta, event) -> {\n\t\t\tSoundHandler.playButtonPress();\n\t\t\tPlayerHandler.reset();\n\t\t\t// grab the mouse\n\t\t\tgc1.setMouseGrabbed(true);\n\t\t});\n\t\tnewGame.addAction(new ChangeStateInitAction(Breakout.GAMEPLAY_STATE));\n\n\t\t// controller \"listener\" (Button 4)\n\t\tlistenerLoop.addAction((gc1, sb1, delta, event) -> {\n\t\t\tif (ControllerHandler.isButtonPressed(3)) {\n\t\t\t\t// if the button 3 was not pressed before but is pressed now\n\n\t\t\t\t// resetting the players progress / stats\n\t\t\t\tPlayerHandler.reset();\n\n\t\t\t\t// grab the mouse\n\t\t\t\tgc1.setMouseGrabbed(true);\n\n\t\t\t\t// going into GameplayState (like changeStateInitAction)\n\t\t\t\tsb1.enterState(Constants.GAMEPLAY_STATE);\n\n\t\t\t\t// forcing init for all states\n\t\t\t\tBreakout.reinitStates(gc1, sb1, Constants.GAMEPLAY_STATE);\n\t\t\t}\n\t\t});\n\n\t\t// resume_Game-entity\n\t\tButtonEntity resumeGame = new ButtonEntity(\"resumeGame\", stateID, Constants.ButtonType.MAINMENU, Variables.MAIN_MENU_BUTTON_2_X, Variables.MAIN_MENU_BUTTON_1_Y);\n\t\tresumeGame.addAction((gc1, sb1, delta, event) -> {\n\t\t\tif (GameplayState.currentlyRunning) {\n\t\t\t\t// play sound for acceptable button press\n\t\t\t\tSoundHandler.playButtonPress();\n\t\t\t\t// grab the mouse\n\t\t\t\tgc1.setMouseGrabbed(true);\n\t\t\t\t// keep track of the time (pause time ended now)\n\t\t\t\tGameplayState.pauseTime += gc1.getTime() - GameplayState.startPauseTime;\n\t\t\t\tsb1.enterState(Breakout.GAMEPLAY_STATE);\n\t\t\t\tif (gc1.isPaused()) {\n\t\t\t\t\tgc1.resume();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSoundHandler.playNotAcceptable();\n\t\t\t}\n\t\t});\n\n\t\t// controller \"listener\" (Button 3)\n\t\tlistenerLoop.addAction((gc1, sb1, delta, event) -> {\n\t\t\tif (ControllerHandler.isButtonPressed(2)) {\n\t\t\t\t// if the button 3 was not pressed before but is pressed now\n\n\t\t\t\tif (GameplayState.currentlyRunning) {\n\t\t\t\t\tGameplayState.pauseTime += gc1.getTime() - GameplayState.startPauseTime;\n\t\t\t\t\t// grab the mouse\n\t\t\t\t\tgc1.setMouseGrabbed(true);\n\t\t\t\t\tsb1.enterState(Breakout.GAMEPLAY_STATE);\n\t\t\t\t\tif (gc1.isPaused()) {\n\t\t\t\t\t\tgc1.resume();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tSoundHandler.playNotAcceptable();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// options-entity\n\t\tButtonEntity options = new ButtonEntity(\"options\", stateID, Constants.ButtonType.MAINMENU, Variables.MAIN_MENU_BUTTON_1_X, Variables.MAIN_MENU_BUTTON_2_Y);\n\t\toptions.addAction(new ChangeStateAction(Breakout.OPTIONS_STATE));\n\t\toptions.addAction((gc1, sb1, delta, event) -> SoundHandler.playButtonPress());\n\n\t\t// highscore-entity\n\t\tButtonEntity highscore = new ButtonEntity(\"highscore\", stateID, Constants.ButtonType.MAINMENU, Variables.MAIN_MENU_BUTTON_2_X, Variables.MAIN_MENU_BUTTON_2_Y);\n\t\thighscore.addAction(new ChangeStateAction(Breakout.HIGHSCORE_STATE));\n\t\thighscore.addAction((gc1, sb1, delta, event) -> SoundHandler.playButtonPress());\n\n\n\t\t// quit-entity\n\t\tButtonEntity quit = new ButtonEntity(\"quit\", stateID, Constants.ButtonType.MAINMENU, Variables.MAIN_MENU_BUTTON_1_X, Variables.MAIN_MENU_BUTTON_3_Y);\n\t\tquit.addAction(new QuitAction());\n\n\t\t// controller \"listener\" (Button 2)\n\t\tlistenerLoop.addAction((gc1, sb1, delta, event) -> {\n\t\t\tif (ControllerHandler.isButtonPressed(1)) {\n\t\t\t\t// if the button 3 was not pressed before but is pressed now\n\t\t\t\t// exit the game\n\t\t\t\tgc1.exit();\n\t\t\t}\n\t\t});\n\n\t\t// about-entity\n\t\tButtonEntity about = new ButtonEntity(\"about\", stateID, Constants.ButtonType.MAINMENU, Variables.MAIN_MENU_BUTTON_2_X, Variables.MAIN_MENU_BUTTON_3_Y);\n\t\tabout.addAction(new ChangeStateAction(Breakout.ABOUT_STATE));\n\t\tabout.addAction((gc1, sb1, delta, event) -> SoundHandler.playButtonPress());\n\n\t}", "@Override\r\n public IObjectiveState createState(final Serializable staticState) {\r\n return new InternalState(this.m_func.createState(staticState));\r\n }", "@SideOnly(Side.CLIENT)\n @Override\n public void randomDisplayTick(IBlockState state, World world, BlockPos pos, Random rand) {\n if(!ResynthConfig.PLANTS_GENERAL.enableSmokingPlants)\n return;\n\n IBlockState iblockstate = world.getBlockState(pos);\n int amount = 3;\n\n if(!MathUtil.chance(2.0F))\n return;\n\n if (iblockstate.getMaterial() != Material.AIR) {\n for (int i = 0; i < amount; ++i){\n double d0 = rand.nextGaussian() * 0.02D;\n double d1 = rand.nextGaussian() * 0.02D;\n double d2 = rand.nextGaussian() * 0.02D;\n world.spawnParticle(EnumParticleTypes.SMOKE_NORMAL,\n (double)((float)pos.getX() + rand.nextFloat()),\n (double)pos.getY() + (double)rand.nextFloat()\n * iblockstate.getBoundingBox(world, pos).maxY,\n (double)((float)pos.getZ() + rand.nextFloat()), d0, d1, d2);\n }\n }\n else {\n for (int i1 = 0; i1 < amount; ++i1) {\n double d0 = rand.nextGaussian() * 0.02D;\n double d1 = rand.nextGaussian() * 0.02D;\n double d2 = rand.nextGaussian() * 0.02D;\n world.spawnParticle(EnumParticleTypes.SMOKE_NORMAL,\n (double)((float)pos.getX() + rand.nextFloat()),\n (double)pos.getY() + (double)rand.nextFloat() * 1.0f,\n (double)((float)pos.getZ() + rand.nextFloat()), d0, d1, d2);\n }\n }\n }", "public Bubble getRandomBubble() {\n Bubble bubble = null;\n Random rand = new Random();\n int bubbleType = rand.nextInt((4 - 0) + 1) + 0;\n\n switch (bubbleType) {\n case 0:\n bubble = new Bubblex8(0, 0, true, true);\n break;\n case 1:\n bubble = new Bubblex16(0, 0, true, true);\n break;\n case 2:\n bubble = new Bubblex32(0, 0, true, true);\n break;\n case 3:\n bubble = new Bubblex64(0, 0, true, true);\n break;\n case 4:\n bubble = new Bubblex128(0, 0, true, true);\n break;\n\n default:\n bubble = new Bubblex8(0, 0, true, true);\n break;\n }\n return bubble;\n }", "public ActionState createActionState();", "public Neuron(Neuron n, double b){\r\n\t\t//Set this Neuron to the Neuron on which to base it\r\n\t\tinputs=n.inputs;\r\n\t\tweights=n.weights;\r\n\t\tlayer=n.layer;\r\n\t\tbias=b;\r\n\t\t//Make a MUTATIONRATE % chance to change the state of each input\r\n\t\t/*for(int i=0; i<inputs.size(); i++)\r\n\t\t\tif(Math.random()<=MUTATIONTRATE)\r\n\t\t\t\tif(inputs.get(i)==1)inputs.set(i, 0);\r\n\t\t\t\telse inputs.set(i, 1);*/\r\n\t\t\r\n\t\t//Change each weight by +/- MUTATIONDEGREE %\r\n\t\tfor(int i=0; i<weights.length; i++)\r\n\t\t\tweights[i]*=1+(Math.random()*MUTATIONDEGREE-(MUTATIONDEGREE/2));\r\n\t}", "public abstract TrackBehaviourStateful convertToStateful(World world, BlockPos pos, IBlockState state);", "ShapeState getFinalState();", "public void run() {\n\n\t\t\t\tgetHelmetDetails().material = getRandomMaterial();\n\t\t\t\tgetHelmetMoreDetails().material = getRandomMaterial();\n\n\t\t\t\t// bonus points:\n\t\t\t\t// randomly change the material of the helmet base to a texture\n\t\t\t\t// from the files aloha.png and camouflage.png (or add your own!)\n\t\t\t\tgetHelmetBase().material = getRandomMaterial();\n\t\t\t\tsetRandomLight();\n\n\t\t\t}", "void trigger(Entity e);", "public Boss() {\n\t\tlife = 3;\n\t\timage = new Image(\"/Model/boss3.png\", true);\n\t\tboss = new ImageView(image);\n\t\tRandom r = new Random();\n\t\tboss.setTranslateX(r.nextInt(900));\n\t\tboss.setTranslateY(0);\n\t\tisAlive = true;\n\t}", "public void setCrewState(CrewState state) {\n crewState = state;\n }", "public BurnAttributes(BranchGroup burnBG, String name, Color4f color, float volume, float opacity, Point3f diameter,\r\n float burningTime, Point3f center, boolean pickable, boolean clipping, boolean culling,\r\n BitSet burnMask, Point3f entryPoint, Vector3f burnPoint, Transform3D transform) {\r\n this(burnBG, name, color, volume, opacity, diameter, burningTime);\r\n this.center = center;\r\n this.pickable = pickable;\r\n this.clipping = clipping;\r\n this.culling = culling;\r\n this.burnMask = burnMask;\r\n this.entryPoint = entryPoint;\r\n this.burnPoint = burnPoint;\r\n this.transform = transform;\r\n }", "public void\nsetAmbientElt( SbColor color )\n\n{\n this.coinstate.ambient.copyFrom(color);\n}", "private void advanceBeliefs(int b) {\n\t\tdouble sum = 0;\n\t\tdouble[][] newbel = new double[beliefs.length][beliefs[0].length];\n\t\tfor (int x =0; x < beliefs.length; x++) {\n\t\t\tfor (int y = 0; y < beliefs[0].length; y++) {\n\t\t\t\tdouble statesum = 0; // belief in each state is the sum of beliefs in possible previous state times the probability of the transition\n\t\t\t\tfor (int px = 0; px < beliefs.length; px++) {\n\t\t\t\t\tfor (int py = 0; py < beliefs[0].length; py++) {\n\t\t\t\t\t\tstatesum += beliefs[px][py] * world.transitionProbability(x, y, px, py, b);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tnewbel[x][y] = statesum;\n\t\t\t\tsum += newbel[x][y];\n\t\t\t}\n\t\t}\n\t\t// now normalise them\n\t\tfor (int x = 0; x < beliefs.length; x++) {\n\t\t\tfor (int y = 0; y < beliefs[0].length; y++) {\n\t\t\t\tnewbel[x][y] /= sum;\n\t\t\t}\n\t\t}\n\t\tbeliefs = newbel;\n\t}", "public void setState(AeBpelState aState) throws AeBusinessProcessException;", "DynamicCompositeState createDynamicCompositeState();", "protected TriggerFactory getTriggerFactory() {\n\t\treturn this.triggerFactory;\n\t}", "public abstract void onTrigger();", "public void setBallInitial(){\n\tvalidBall = new Ball(Player.getxPlayerLoc(),Player.getyPlayerLoc(), angle,true,ballImage,game.getDifficulty());\n}", "private static void generateState() {\n byte[] array = new byte[7]; // length is bounded by 7\n new Random().nextBytes(array);\n STATE = new String(array, Charset.forName(\"UTF-8\"));\n }", "public void init(SoState state)\n\n{\n // Set to GL defaults:\n// ivState.ambientColor.copyFrom( getDefaultAmbient());\n// ivState.emissiveColor.copyFrom( getDefaultEmissive());\n// ivState.specularColor.copyFrom( getDefaultSpecular());\n// ivState.shininess = getDefaultShininess();\n// ivState.colorMaterial = false;\n// ivState.blending = false;\n// ivState.lightModel = LightModel.PHONG.getValue();\n \n // Initialize default color storage if not already done\n if (defaultDiffuseColor == null) {\n defaultDiffuseColor = SbColorArray.allocate(1);\n defaultDiffuseColor.get(0).setValue(getDefaultDiffuse());\n defaultTransparency = new float[1];\n defaultTransparency[0] = getDefaultTransparency();\n defaultColorIndices = new int[1];\n defaultColorIndices[0] = getDefaultColorIndex();\n defaultPackedColor = new int[1];\n defaultPackedColor[0] = getDefaultPacked();\n }\n \n //following value will be matched with the default color, must\n //differ from 1 (invalid) and any legitimate nodeid. \n// ivState.diffuseNodeId = 0;\n// ivState.transpNodeId = 0;\n// //zero corresponds to transparency off (default).\n// ivState.stippleNum = 0;\n// ivState.diffuseColors = defaultDiffuseColor;\n// ivState.transparencies = defaultTransparency;\n// ivState.colorIndices = defaultColorIndices;\n// ivState.packedColors = defaultPackedColor;\n//\n// ivState.numDiffuseColors = 1;\n// ivState.numTransparencies = 1;\n// ivState.packed = false;\n// ivState.packedTransparent = false;\n// ivState.transpType = SoGLRenderAction.TransparencyType.SCREEN_DOOR.ordinal(); \n// ivState.cacheLevelSetBits = 0;\n// ivState.cacheLevelSendBits = 0;\n// ivState.overrideBlending = false;\n// \n// ivState.useVertexAttributes = false;\n//\n// ivState.drawArraysCallback = null;\n// ivState.drawElementsCallback = null; \n// ivState.drawArraysCallbackUserData = null;\n// ivState.drawElementsCallbackUserData = null; \n\n coinstate.ambient.copyFrom(getDefaultAmbient());\n coinstate.specular.copyFrom(getDefaultSpecular());\n coinstate.emissive.copyFrom(getDefaultEmissive());\n coinstate.shininess = getDefaultShininess();\n coinstate.blending = /*false*/0;\n coinstate.blend_sfactor = 0;\n coinstate.blend_dfactor = 0;\n coinstate.alpha_blend_sfactor = 0;\n coinstate.alpha_blend_dfactor = 0;\n coinstate.lightmodel = LightModel.PHONG.getValue();\n coinstate.packeddiffuse = false;\n coinstate.numdiffuse = 1;\n coinstate.numtransp = 1;\n coinstate.diffusearray = SbColorArray.copyOf(lazy_defaultdiffuse);\n coinstate.packedarray = IntArrayPtr.copyOf(lazy_defaultpacked);\n coinstate.transparray = FloatArray.copyOf(lazy_defaulttransp);\n coinstate.colorindexarray = IntArrayPtr.copyOf(lazy_defaultindex);\n coinstate.istransparent = false;\n coinstate.transptype = (int)(SoGLRenderAction.TransparencyType.BLEND.getValue());\n coinstate.diffusenodeid = 0;\n coinstate.transpnodeid = 0;\n coinstate.stipplenum = 0;\n coinstate.vertexordering = VertexOrdering.CCW.getValue();\n coinstate.twoside = false ? 1 : 0;\n coinstate.culling = false ? 1 : 0;\n coinstate.flatshading = false ? 1 : 0;\n coinstate.alphatestfunc = 0;\n coinstate.alphatestvalue = 0.5f;\n}", "public Trigger getTrigger() {\n \t\treturn trigger;\n \t}", "@Override\n public float getState() {\n return state;\n }", "public State (){\n for ( int i = 0 ; i < 5; i ++){\n philosopherNum[i] = i;\n currentState[i] = \"thinking\";\n conditions[i] = mutex.newCondition();\n }\n }", "protected void initialize() {\n \t\n \t// TODO: Switch to execute on changes based on alignment\n \tRobot.lightingControl.set(LightingObjects.BALL_SUBSYSTEM,\n LightingControl.FUNCTION_BLINK,\n LightingControl.COLOR_ORANGE,\n 0,\t\t// nspace - don't care\n 300);\t// period_ms \n }", "private Brick generateBricks() {\n\t\tBrick randomBrick = null;\n\t\tRandom rand = new Random();\n\t\tint a = rand.nextInt(7);\n\t\tswitch (a) {\n\t\tcase 1:\n\t\t\trandomBrick = new LineBrick();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\trandomBrick = new LBrick();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\trandomBrick = new RLBrick();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\trandomBrick = new TBrick();\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\trandomBrick = new SBrick();\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\trandomBrick = new RSBrick();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\trandomBrick = new Square();\n\t\t\tbreak;\n\t\t}\n\t\tbrickgc.setFill(randomBrick.getColor());\n\t\treturn randomBrick;\n\t}", "public DynamicPart(DYNAMIC_ENUM dynamic, boolean state) {\n this.dynamic(dynamic, state, DEFAULT_MIN.clone()[dynamic.ordinal()],\n DEFAULT_MAX.clone()[dynamic.ordinal()], 0F, (float) Math.random(),\n DEFAULT_APPLY_RANDOM_MAX.clone()[dynamic.ordinal()],\n DEFAULT_APPLY_RANDOM_MIN.clone()[dynamic.ordinal()],\n DEFAULT_APPLY_RANDOM_MULTIPLIER.clone()[dynamic.ordinal()]).apply(true);\n }", "protected abstract void onGrowApproved(World world, BlockPos pos, IBlockState state, Random random);", "public void appraise(Belief belief, Agent agent) {\n this.gamygdala.appraise(belief, agent);\n }", "public LightState getState() { return state; }", "Bean(boolean isLuck, Random rand) {\n\t\t// TODO: Implement\n\t\tthis.isLuck = isLuck;\n\t\tthis.rand = rand;\n\t\t//slotNumber = -1;\n\t\tif (!isLuck) {\n\t\t\tskill = (int) Math.round(rand.nextGaussian() * SKILL_STDEV + SKILL_AVERAGE);\n\t\t}\n\t\trightCount = 0;\n\t\txPos = -1;\n\t}", "@NonNull\n public Trigger build() {\n return new Trigger(type, goal, null);\n }", "public TriggerCondition() {\n this(METRIC_HEAPUSG, 95);\n }", "public void resetToInitialBelief() {\n\t\t\t//TODO when do we call this?\n\t\t\tthis.data = new ArrayList<Double>();\n\t\t\tfor(int i = 0; i < _initialBelief.data.size(); i++) {\n\t\t\t\tthis.data.add(_initialBelief.data.get(i));\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic boolean getState() {\n\t\treturn activated;\r\n\t}", "@Override\r\n public void initCreature() \r\n {\n \t\r\n if ( worldObj.provider.dimensionId == 1 && worldObj.rand.nextInt( 5 ) == 0 )\r\n \t{\r\n \tsetCarried( Block.whiteStone.blockID );\r\n \tsetCarryingData( 0 );\r\n \t}\r\n }", "public void randomColor(int brightness) {\n PHBridge bridge = PHHueSDK.getInstance().getSelectedBridge();\n PHLightState lightState = new PHLightState();\n lightState.setOn(true);\n lightState.setBrightness(brightness);\n //generates a random HUE code to set the bulbs to a random color\n Random rand = new Random();\n lightState.setHue(rand.nextInt(65535));\n \n bridge.setLightStateForDefaultGroup(lightState);\n }", "public static float getRandomWeight() {\n\t\tfloat weight = (float)(Math.random()*17+3);\n\t\treturn weight;\n\t}", "@Override\n\t public IBlockState getStateForPlacement(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer)\n\t {\n\t\t\tIBlockState basetype = this.getStateFromMeta(meta);\n\t if (facing.getAxis().isHorizontal() /*&& this.canAttachTo(worldIn, pos.offset(facing.getOpposite()), facing)*/)\n\t {\n\t return basetype.withProperty(FACING, facing);\n\t }\n\t else\n\t {\n\t \tif(worldIn.getBlockState(pos.down()).getBlock() instanceof BlockTGLadder) {\n\t \t\tIBlockState statedown = worldIn.getBlockState(pos.down());\n\t \t\treturn basetype.withProperty(FACING, statedown.getValue(FACING));\n\t \t} else if (worldIn.getBlockState(pos.up()).getBlock() instanceof BlockTGLadder) {\n\t \t\tIBlockState stateup = worldIn.getBlockState(pos.up());\n\t \t\treturn basetype.withProperty(FACING, stateup.getValue(FACING));\n\t \t}\n\t \t\n\t \treturn basetype.withProperty(FACING, placer.getHorizontalFacing().getOpposite());\n\t }\n\t }", "@NonNull\n public Trigger build() {\n JsonPredicate predicate = null;\n if (versionMatcher != null) {\n predicate = VersionUtils.createVersionPredicate(versionMatcher);\n }\n return new Trigger(Trigger.VERSION, goal, predicate);\n }", "public void\nsetEmissiveElt( SbColor color )\n\n{\n coinstate.emissive.copyFrom(color);\n}", "public SugarscapePatch() {\n random = new Random();\n sugarGrowBackCounter = 0;\n currentSugar = random.nextInt(MAX_SUGAR + 1);\n initializeAgent();\n }" ]
[ "0.61673534", "0.59112245", "0.5873403", "0.58066493", "0.5557976", "0.5358133", "0.5218199", "0.51951265", "0.5121934", "0.5099113", "0.49779728", "0.49403042", "0.49398005", "0.489551", "0.48603687", "0.48024076", "0.47855523", "0.4769851", "0.47695193", "0.4766658", "0.4760968", "0.47573596", "0.4743764", "0.4740029", "0.47365418", "0.4717652", "0.47172508", "0.47046596", "0.46992627", "0.4684668", "0.46814916", "0.46751365", "0.46736175", "0.4667357", "0.46543288", "0.46484074", "0.46037385", "0.45963624", "0.45908737", "0.45888886", "0.45878148", "0.458429", "0.4584193", "0.45830795", "0.4578598", "0.4575653", "0.4574859", "0.4570655", "0.45666665", "0.4543305", "0.45387688", "0.45382497", "0.45362645", "0.45334923", "0.45318288", "0.45278648", "0.4527291", "0.4525057", "0.45189235", "0.45162758", "0.4514255", "0.45080486", "0.45022008", "0.44968367", "0.44930035", "0.44920197", "0.44814137", "0.44781724", "0.4469491", "0.4467327", "0.44658518", "0.44607487", "0.4446757", "0.44270015", "0.44245484", "0.44239527", "0.44209573", "0.4419402", "0.44152194", "0.4410117", "0.44057563", "0.4402146", "0.43959337", "0.43939334", "0.43907067", "0.43886733", "0.43884006", "0.43863016", "0.4382493", "0.43812814", "0.43800533", "0.4372607", "0.4369979", "0.4366166", "0.43631974", "0.43630555", "0.43413016", "0.4337608", "0.43349808", "0.4333442" ]
0.6637009
0
method getRandomBeliefState Constructs a unifmrm probability s\distribution belief state for this asset type state dimension.
BeliefStateDimension getUniformBeliefState( ) throws BelievabilityException { if ( _asset_dim_model == null ) throw new BelievabilityException ( "POMDPAssetDimensionModel.getUniformBeliefState()", "Asset type dimension model is NULL" ); if ( _logger.isDetailEnabled() ) _logger.detail( "\tCreating POMDP uniform belief for dimension: " + _asset_dim_model.getStateDimensionName( ) ); int num_vals = _asset_dim_model.getNumStateDimValues( ); if ( num_vals < 0 ) throw new BelievabilityException ( "POMDPAssetDimensionModel.getUniformBeliefState()", "Asset dimension model returning zero values: " + _asset_dim_model.getStateDimensionName() ); double[] belief_prob = new double[num_vals]; ProbabilityUtils.setUniformDistribution( belief_prob ); return new BeliefStateDimension( _asset_dim_model, belief_prob, null ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BeliefStateDimension getRandomBeliefState( )\n throws BelievabilityException\n {\n if ( _asset_dim_model == null )\n throw new BelievabilityException\n ( \"POMDPAssetDimensionModel.getRandomBeliefState()\",\n \"Asset type dimension model is NULL\" );\n \n if ( _logger.isDetailEnabled() )\n _logger.detail( \"\\tCreating POMDP random belief for dimension: \" \n + _asset_dim_model.getStateDimensionName( ) );\n\n int num_vals = _asset_dim_model.getNumStateDimValues( );\n \n if ( num_vals < 0 )\n throw new BelievabilityException\n ( \"POMDPAssetDimensionModel.getRandomBeliefState()\",\n \"Asset dimension model returning zero values: \"\n + _asset_dim_model.getStateDimensionName() );\n\n double[] belief_prob = new double[num_vals];\n \n ProbabilityUtils.setRandomDistribution( belief_prob );\n \n return new BeliefStateDimension( _asset_dim_model,\n belief_prob,\n null );\n\n }", "public S getRandomState();", "void createInitialBeliefState( )\n throws BelievabilityException\n {\n if ( _asset_dim_model == null )\n throw new BelievabilityException\n ( \"POMDPAssetDimensionModel.createInitialBeliefState()\",\n \"Asset model is NULL\" );\n \n if ( _logger.isDetailEnabled() )\n _logger.detail( \"\\tCreating POMDP iinitial belief for dimension: \" \n + _asset_dim_model.getStateDimensionName( ) );\n\n int num_vals = _asset_dim_model.getNumStateDimValues( );\n \n if ( num_vals < 0 )\n throw new BelievabilityException\n ( \"POMDPAssetDimensionModel.createInitialBeliefState()\",\n \"Asset model returning zero values: \"\n + _asset_dim_model.getStateDimensionName( ) );\n \n double[] belief_prob = new double[num_vals];\n \n int default_idx = _asset_dim_model.getDefaultStateIndex( );\n \n if ( default_idx < 0 )\n throw new BelievabilityException\n ( \"POMDPAssetDimensionModel.createInitialBeliefState()\",\n \"Asset model returning invalid default value: \"\n + _asset_dim_model.getStateDimensionName( ) );\n\n // We assume that each asset state dimension starts off\n // deterministically in a single possible state value.\n //\n belief_prob[default_idx] = 1.0;\n \n _initial_belief = new BeliefStateDimension( _asset_dim_model,\n belief_prob,\n null );\n\n }", "BeliefStateDimension getInitialBeliefState() \n {\n return _initial_belief; \n }", "public MachineState getRandomNextState(MachineState state) throws MoveDefinitionException, TransitionDefinitionException, StateMachineException{\n List<Move> random = getRandomJointMove(state);\n return getNextState(state, random);\n }", "private void loadRandomState() {\n patternName = \"Random\";\n\n for (int i = 0; i < NUMCELLS; i++)\n currentState[i] = (rand.nextInt() > 0x40000000) ? (byte)1 : (byte)0;\n\n generations = 0;\n }", "public long getState()\n {\n return ((StatefulRandomness)random).getState();\n }", "private static void generateState() {\n byte[] array = new byte[7]; // length is bounded by 7\n new Random().nextBytes(array);\n STATE = new String(array, Charset.forName(\"UTF-8\"));\n }", "public void randomizeState() {\n\t\t//System.out.print(\"Randomizing State: \");\n\t\tArrayList<Integer> lst = new ArrayList<Integer>();\n\t\tfor(int i = 0; i<9; i++)// adds 0-8 to list\n\t\t\tlst.add(i);\n\t\tCollections.shuffle(lst);//randomizes list\n\t\tString str=\"\";\n\t\tfor(Integer i : lst)\n\t\t\tstr += String.valueOf(i);\n\t\t//System.out.println(str);\n\t\tcurrent = new PuzzleState(str,current.getString(current.getGoalState()));\n\t\t//pathCost++;\n\t}", "public Animal getRandomAnimal() {\n //Randomize all characteristics of an animal\n int spc = (int) Math.round(rd.nextDouble() * (Animal.enumSpecies.values().length - 1));\n boolean isPet = rd.nextBoolean();\n\n //Construct an animal with random characteristic\n //Animal(int age, Gender g, BodyType b, enumSpecies espec, boolean ispet)\n A = new Animal(Animal.enumSpecies.values()[spc], isPet);\n return A;\n }", "public Bubble getRandomBubble() {\n Bubble bubble = null;\n Random rand = new Random();\n int bubbleType = rand.nextInt((4 - 0) + 1) + 0;\n\n switch (bubbleType) {\n case 0:\n bubble = new Bubblex8(0, 0, true, true);\n break;\n case 1:\n bubble = new Bubblex16(0, 0, true, true);\n break;\n case 2:\n bubble = new Bubblex32(0, 0, true, true);\n break;\n case 3:\n bubble = new Bubblex64(0, 0, true, true);\n break;\n case 4:\n bubble = new Bubblex128(0, 0, true, true);\n break;\n\n default:\n bubble = new Bubblex8(0, 0, true, true);\n break;\n }\n return bubble;\n }", "public static CubeState getRandom(){\n CubeState cs = new CubeState();\n Random rand = new Random();\n for (int i = 0; i < 20; i++) {\n cs = cs.times(Solver.generators.get(rand.nextInt(18)));\n }\n return cs;\n }", "public int getRandomBreed() {\n Random r = new Random();\n// displayToast(Integer.toString(getRandomBreed())); // not needed. generates another random number\n return r.nextInt(6);\n }", "public void populateRandomly(final EVGameState state)\n \t{\n \t\tfor (int i = 0; i < 6; i++) {\n \t\t\tfinal int width = MathUtils.getRandomIntBetween(32, 128);\n \t\t\tfinal int height = MathUtils.getRandomIntBetween(24, 72);\n \t\t\tfinal Point3D origin = getRandomSolarPoint(Math.max(width, height));\n \t\t\tfinal SolarSystem tSolar = SolarSystem.randomSolarSystem(width, height, origin, state);\n \t\t\taddSolarSystem(tSolar);\n \t\t}\n\t\tfor (int i = 0; i < 10; i++) {\n \t\t\tfinal SolarSystem ss1 = (SolarSystem) MathUtils.getRandomElement(aSolarSystems.values());\n \t\t\tfinal SolarSystem ss2 = (SolarSystem) MathUtils.getRandomElement(aSolarSystems.values());\n \t\t\tif (ss1.equals(ss2)) {\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\tfinal Portal portal1 = new Portal(state.getNextPropID(), state.getNullPlayer(), ss1.getWormholeLocation(), ss1, ss2);\n \t\t\tfinal Portal portal2 = new Portal(state.getNextPropID() + 1, state.getNullPlayer(), ss2.getWormholeLocation(), ss2,\n \t\t\t\t\tss1);\n \t\t\tfinal Wormhole tempWorhmhole = new Wormhole(portal1, portal2, ss1.getPoint3D().distanceTo(ss2.getPoint3D()), state);\n \t\t\taddWormhole(tempWorhmhole, state);\n \t\t}\n \t}", "public void begin(GameState init_state) {\n rand = new Random();\n }", "public MachineState getRandomNextState(MachineState state, Role role, Move move) throws MoveDefinitionException, TransitionDefinitionException, StateMachineException{\n List<Move> random = getRandomJointMove(state, role, move);\n return getNextState(state, random);\n }", "private double getRandom() {\n return 2*Math.random() - 1;\n }", "protected BattleBagState bagState(){\n return new BattleBagState(\n this.mFightButton,\n this.mPokemonButton,\n this.mBagButton,\n this.mRunButton,\n this.mActionButton,\n this.mOptionList,\n this.mBattle,\n this.mMessage\n );\n }", "StateType createStateType();", "public AeBpelState getState();", "public boolean getRandomBoolean()\r\n {\r\n return Math.random() < 0.5;\r\n }", "private BlockType randomBlock(){\n // Check whether a powerup should be chosen or not\n if(random.nextInt(9) == 0){\n // Return a random powerup\n return allPowerUps.get(random.nextInt(allPowerUps.size()));\n\t}\n\treturn BlockType.PLATTFORM;\n }", "@Test\n public void genNeighStateProbability() {\n double[] metrics = new double[STATES.length * STATES.length];\n double sum = 0;\n Random rand = new Random();\n for (int i = 0; i < metrics.length; i++) {\n int x = i / STATES.length;\n int y = i % STATES.length;\n if (x == y) {\n metrics[i] = 0;\n } else {\n double d = Math.abs(rand.nextGaussian());//Math.exp(-Math.abs(STATES[x] - STATES[y]) / 3) * Math.abs(rand.nextGaussian());\n metrics[i] = d;\n sum += d;\n }\n }\n final double finalSum = sum;\n metrics = DoubleStream.of(metrics).map(d -> d / finalSum).toArray();\n for (int i = 0; i < metrics.length; i++) {\n int x = i / STATES.length;\n int y = i % STATES.length;\n if (metrics[i] > 0.01) {\n System.out.printf(\"%d:%d:%.4f\\n\", STATES[x], STATES[y], metrics[i]);\n }\n }\n }", "public Animal(boolean randomAge, Field field, Location location, int breeding_age, int max_age, double breeding_probability, int max_litter_size)\n {\n alive = true;\n age = 0;\n if(randomAge) {\n age = rand.nextInt(max_age);\n }\n this.field = field;\n setLocation(location);\n this.breeding_age = breeding_age;\n this.max_age = max_age;\n this.breeding_probability = breeding_probability;\n this.max_litter_size = max_litter_size;\n gender = Math.random() < 0.5;\n }", "BehaviorStateMachinesFactory getBehaviorStateMachinesFactory();", "public static float getRandomHeight() {\n\t\tfloat height = (float)(Math.random()*1.1f+0.2f);\n\t\treturn height;\n\t}", "public Action getActionBasedOnProbability(final State state) {\r\n final double decision = Math.random();\r\n double decisionCount = 0;\r\n\r\n for (final Map.Entry<Action, Double> actionProb : getProperties(state).getActionProbabilities().entrySet()) {\r\n decisionCount += actionProb.getValue();\r\n if (decisionCount >= decision) {\r\n return actionProb.getKey();\r\n }\r\n }\r\n\r\n System.err.println(\"Error: cannot choose action!\");\r\n System.err.println(getProperties(state).getActionProbabilities());\r\n return null;\r\n }", "public static float getRandomWeight() {\n\t\tfloat weight = (float)(Math.random()*17+3);\n\t\treturn weight;\n\t}", "public Board randomBoard() {\n int[][] board = new int[tileLength][tileLength];\n\n //Random scramble algorithm\n\n //Create solved nxn board\n for (int i = 0; i <tileLength*tileLength ; i++) {\n board[i / tileLength][i % tileLength] = (i + 1) % (tileLength*tileLength);\n }\n\n Board b = new Board(board);\n\n //Perform 50 random moves on the board\n Random r = new Random();\n\n int parity = r.nextInt(2);\n\n for (int i = 0; i < 50 + parity; i++) {\n ArrayList<Board> children = b.getSuccessors();\n children.trimToSize();\n int count = children.size();\n b = children.get(r.nextInt(count));\n\n }\n\n b.setParent(null);\n b.setGScore(0);\n\n return b;\n }", "public static POMDPState sampleInitialStates(Domain d) {\n\t\tPOMDPState s = new POMDPState();\n\n\t\t//Retrieve object classes from the domain.\n\t\tObjectClass containerClass = d.getObjectClass(Names.CLASS_CONTAINER);\n\t\tObjectClass babyClass = d.getObjectClass(Names.CLASS_BABY);\n\t\tObjectClass contentClass = d.getObjectClass(Names.CLASS_CONTENT);\n\t\tObjectClass humanClass = d.getObjectClass(Names.CLASS_HUMAN);\n\n\t\t//Create all the objects \n\t\tObjectInstance caregiver = new ObjectInstance(humanClass, Names.OBJ_CAREGIVER);\n\t\tObjectInstance baby = new ObjectInstance(babyClass, Names.OBJ_BABY);\n\t\tObjectInstance ointment = new ObjectInstance(contentClass, Names.OBJ_OINTMENT);\n\t\tObjectInstance oldClothes = new ObjectInstance(contentClass, Names.OBJ_OLD_CLOTHES);\n\t\tObjectInstance newClothes = new ObjectInstance(contentClass, Names.OBJ_NEW_CLOTHES);\n\t\tObjectInstance changingTable = new ObjectInstance(containerClass, Names.OBJ_CHANGING_TABLE);\n\t ObjectInstance hamper = new ObjectInstance(containerClass, Names.OBJ_HAMPER);\n\t\tObjectInstance sideTable = new ObjectInstance(containerClass, Names.OBJ_SIDE_TABLE);\n\t ObjectInstance dresser = new ObjectInstance(containerClass, Names.OBJ_DRESSER);\n\n\t\t//Set the \tproper values for objects' attributes\n\t\tchangingTable.setValue(Names.ATTR_OPEN, 1);\n\t hamper.setValue(Names.ATTR_OPEN, 1);\n\t\tsideTable.setValue(Names.ATTR_OPEN, 1);\n\t\tdresser.setValue(Names.ATTR_OPEN, 0);\n\t\tbaby.setValue(Names.ATTR_RASH, new java.util.Random().nextBoolean() ? 1 : 0);\n\n\t\t//Place contents in the proper initial container\n\t\tplaceObject(newClothes, dresser);\n\t\tplaceObject(oldClothes, changingTable);\n\t\tplaceObject(ointment, sideTable);\n\n\t\t//Add objects to the state, and have the caregiver decide on its mental state\n\t\taddObjects(s, caregiver, baby, oldClothes, newClothes, changingTable, hamper, sideTable, dresser, ointment);\n\t\tcaregiverThink(d, s);\n\n\t\t//Et voila\n\t\treturn s;\n\t}", "public String getRandomShape(){\n\t\tRandom randon = new Random();\n\t\treturn Shape.values()[randon.nextInt(Shape.values().length)].toString();\n\t}", "public Population breedPopulation(EvolutionState state)\r\n {\n if( previousPopulation != null )\r\n {\r\n if( previousPopulation.subpops.length != state.population.subpops.length )\r\n state.output.fatal( \"The current population should have the same number of subpopulations as the previous population.\" );\r\n for( int i = 0 ; i < previousPopulation.subpops.length ; i++ )\r\n {\r\n if( state.population.subpops[i].individuals.length != previousPopulation.subpops[i].individuals.length )\r\n state.output.fatal( \"Subpopulation \" + i + \" should have the same number of individuals in all generations.\" );\r\n for( int j = 0 ; j < state.population.subpops[i].individuals.length ; j++ )\r\n if( previousPopulation.subpops[i].individuals[j].fitness.betterThan( state.population.subpops[i].individuals[j].fitness ) )\r\n state.population.subpops[i].individuals[j] = previousPopulation.subpops[i].individuals[j];\r\n }\r\n previousPopulation = null;\r\n }\r\n\r\n // prepare the breeder (some global statistics might need to be computed here)\r\n prepareDEBreeder(state);\r\n\r\n // create the new population\r\n Population newpop = (Population) state.population.emptyClone();\r\n\r\n // breed the children\r\n for( int subpop = 0 ; subpop < state.population.subpops.length ; subpop++ )\r\n {\r\n if (state.population.subpops[subpop].individuals.length < 4) // Magic number, sorry. createIndividual() requires at least 4 individuals in the pop\r\n state.output.fatal(\"Subpopulation \" + subpop + \" has fewer than four individuals, and so cannot be used with DEBreeder.\");\r\n \r\n Individual[] inds = state.population.subpops[subpop].individuals;\r\n for( int i = 0 ; i < inds.length ; i++ )\r\n {\r\n newpop.subpops[subpop].individuals[i] = createIndividual( state, subpop, inds, i, 0); // unthreaded for now\r\n }\r\n }\r\n\r\n // store the current population for competition with the new children\r\n previousPopulation = state.population;\r\n return newpop;\r\n }", "private List<Integer> generateRandom() {\n Integer[] randArr = new Integer[numCols*numRows];\n\n int start = 0;\n int end;\n for(int i = 0; i < myStateMap.size(); i++) {\n int amt = myStateMap.get(i).getAmount();\n end = amt + start;\n for(int j = start; j < end; j++) {\n if(end > randArr.length) {\n break;\n }\n randArr[j] = myStateMap.get(i).getType();\n }\n start = end;\n }\n\n List<Integer> arr = new ArrayList<>(Arrays.asList(randArr));\n Collections.shuffle(arr);\n return arr;\n }", "public ArrayList<PuzzleState> getRandomNeighbors() {\n\t\tArrayList<PuzzleState> ns = getNeighbors();\n\t\tCollections.shuffle(ns);\n\t\treturn ns;\t\n\t}", "public DynamicPart(DYNAMIC_ENUM dynamic, boolean state) {\n this.dynamic(dynamic, state, DEFAULT_MIN.clone()[dynamic.ordinal()],\n DEFAULT_MAX.clone()[dynamic.ordinal()], 0F, (float) Math.random(),\n DEFAULT_APPLY_RANDOM_MAX.clone()[dynamic.ordinal()],\n DEFAULT_APPLY_RANDOM_MIN.clone()[dynamic.ordinal()],\n DEFAULT_APPLY_RANDOM_MULTIPLIER.clone()[dynamic.ordinal()]).apply(true);\n }", "public void newRandomPuzzle() {\r\n // Start with the goal state\r\n state = goal.copy();\r\n HashSet<PuzzleState> visitedStates = new HashSet<PuzzleState>();\r\n visitedStates.add(state.copy());\r\n System.out.println(state);\r\n \r\n Vector<PuzzleState> aStarSolution = null;\r\n int numMovesLeft = this.minMoves;\r\n while (numMovesLeft > 0) {\r\n for (int move = 0; move < numMovesLeft; move++) {\r\n // Get all the possible next states\r\n Vector<PuzzleState> nextStates = possibleNextStates(state);\r\n \r\n // Randomly pick a new state until it is not one we have seen before\r\n PuzzleState next;\r\n do {\r\n next = nextStates.get(rand.nextInt(nextStates.size()));\r\n } while (visitedStates.contains(next));\r\n \r\n // Update the state and add it to the set of visited states\r\n state = next;\r\n visitedStates.add(state.copy());\r\n System.out.println(\"New state:\");\r\n System.out.println(state);\r\n }\r\n aStarSolution = aStarSearch();\r\n int minMovesAStar = aStarSolution.size();\r\n numMovesLeft = this.minMoves - minMovesAStar;\r\n System.out.println(\"num moves left: \" + numMovesLeft);\r\n }\r\n solution = aStarSolution;\r\n }", "public Move getRandomMove(MachineState state, Role role) throws MoveDefinitionException, StateMachineException\n {\n List<Move> legals = getLegalMoves(state, role);\n return legals.get(new Random().nextInt(legals.size()));\n }", "public double getRandom() {\n return 20*Math.random() - 10;\n }", "public void setState(long state)\n {\n ((StatefulRandomness)random).setState(state);\n }", "protected NNode getRandomNode() {\n\t\tArrayList<NNode> nodearr = new ArrayList<NNode>();\n\t\tnodearr.addAll(nodes.values());\n\t\treturn nodearr.get(Braincraft.randomInteger(nodearr.size()));\n\t}", "public Food()\n {\n x = (int) Math.floor(Math.random() * RANGEX)*20;\n y = (int) Math.floor(Math.random() * RANGEY)*20;\n isEaten = false;\n }", "public Ball(int xWall, int yWall, Random rand){\n this(\n rand.nextInt(xWall-2*MAX_RADIUS),//set all to random\n rand.nextInt(yWall-2*MAX_RADIUS),\n rand.nextInt(MAX_RADIUS-MIN_RADIUS)+MIN_RADIUS,\n new Color(\n rand.nextInt(MAX_CHANNEL_VAL),\n rand.nextInt(MAX_CHANNEL_VAL),\n rand.nextInt(MAX_CHANNEL_VAL),\n rand.nextInt(MAX_CHANNEL_VAL-MIN_ALPHA_VAL)+MIN_ALPHA_VAL),\n rand.nextInt(MAX_VELOCITY-MIN_VELOCITY)+MIN_VELOCITY,\n rand.nextInt(MAX_VELOCITY-MIN_VELOCITY)+MIN_VELOCITY,\n xWall,\n yWall\n );\n }", "private void randomBehavior() {\n\t\trandom = rand.nextInt(50);\n\t\tif (random == 0) {\n\t\t\trandom = rand.nextInt(4);\n\t\t\tswitch (random) {\n\t\t\t\tcase 0:\n\t\t\t\t\tchangeFacing(ACTION.DOWN);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tchangeFacing(ACTION.RIGHT);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tchangeFacing(ACTION.UP);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tchangeFacing(ACTION.LEFT);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public State (){\n for ( int i = 0 ; i < 5; i ++){\n philosopherNum[i] = i;\n currentState[i] = \"thinking\";\n conditions[i] = mutex.newCondition();\n }\n }", "private static Weapon randomWeapon() {\r\n Random rand = new Random();\r\n int weaponType = rand.nextInt(7);\r\n switch (weaponType) {\r\n case 0: \r\n return new FryingPan();\r\n case 1:\r\n return new SubmachineGun();\r\n case 2:\r\n return new AssaultRifle();\r\n case 3:\r\n return new Pistol();\r\n case 4:\r\n return new Axe();\r\n case 5:\r\n return new Crowbar();\r\n default:\r\n return new Shotgun();\r\n }\r\n }", "public RandomNeighborhoodOperator(int nbRelaxedVars, long seed)\n{\n\trandom = new Random(seed);\n\tthis.nbRelaxedVars = nbRelaxedVars;\n\tselected = new TIntHashSet();\n}", "public static Lieferart getRandomLieferart() {\n\t\treturn VALUES[RANDOM.nextInt(SIZE)];\n\t}", "void create( State state );", "public GoLRandomInitializer() {\n Random randomLifeOrDeath = new Random();\n \n // Give life to random cells in the board\n for (int row = 0; row < this.NUM_ROWS; row++)\n for (int column = 0; column < this.NUM_COLUMNS; column++)\n this.gameBoard[row][column] = new \n GoLCell(randomLifeOrDeath.nextBoolean());\n }", "Randomizer getRandomizer();", "public BTNode getRandomNodeBadSpace() {\n\t\tint toFind = (int)(Math.random() * size);\n\t\treturn arr.get(toFind);\n\t}", "private Position getRandomMove(TicTacToeBoard state) {\r\n\t\tArrayList<Position> availableMoves = new ArrayList<Position>();\r\n\t\tfor( int row = 0; row < TicTacToeBoard.SIZE; row++ ) {\r\n\t\t\tfor( int col = 0; col < TicTacToeBoard.SIZE; col++ ) {\r\n\t\t\t\tif( state.getState(row,col) == TicTacToeBoard.BLANK ) {\r\n\t\t\t\t\tavailableMoves.add(new Position(row,col));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn (Position)availableMoves.get(rand.nextInt(availableMoves.size()));\r\n\t}", "public BSState() {\r\n mIsEnteringState = false;\r\n mIsExitingState = false;\r\n }", "public void setState(AeBpelState aState) throws AeBusinessProcessException;", "public double getAbandonmentProbability() {\n return Math.random();\n }", "public static int getRandomBalance(){\n return rand.nextInt(1000000);\n }", "private static ItemType random() {\n return ITEM_TYPES.get(RANDOM.nextInt(SIZE));\n }", "public static Fish makeRandomFish(FishType type, int frameWidth, int frameHeight){\n\t\t// creates a random direction\n\t\tRandom r = new Random();\n\t\tDirection dir = Direction.values()[2 + r.nextInt(Direction.values().length -2)]; \n\t\t\n\t\t// creates and returns new fish based off of random direction\n\t\treturn new Fish(type, dir, frameWidth, frameHeight);\t\n\t}", "public void randomChange() {\n\t\tif (Math.random() < .5) {\n\t\t\tthis.setOn(true);\n\t\t} else {\n\t\t\tthis.setOn(false);\n\t\t}\n\t}", "private void generateStateToken() {\n\t\tSecureRandom sr1 = new SecureRandom();\n\t\tstateToken = \"google;\" + sr1.nextInt();\n\t}", "public Random getRandom() {\n\t\treturn (rand);\n\t}", "public static ElevatorState changeStateFactory(String stateElavator) {\n\t\tif(stateElavator==\"UP\") {\n\t\t\treturn new UpState();\n\t\t}else if(stateElavator==\"DOWN\") {\n\t\t\treturn new DownState();\n\t\t}else {\n\t\t\treturn new StopState();\n\t\t}\n\t}", "public BattleStandbyState standbyState(){\n return new BattleStandbyState(\n this.mFightButton,\n this.mPokemonButton,\n this.mBagButton,\n this.mRunButton,\n this.mActionButton,\n this.mOptionList,\n this.mBattle,\n this.mMessage\n );\n }", "public GoLRandomInitializer(long seed) {\n Random randomLifeOrDeath = new Random(seed);\n \n // Give life to random *predicted* cells in the board\n for (int row = 0; row < this.NUM_ROWS; row++)\n for (int column = 0; column < this.NUM_COLUMNS; column++)\n this.gameBoard[row][column] = new \n GoLCell(randomLifeOrDeath.nextBoolean());\n }", "@Test\n\tpublic void testRandInt() {\n\t\tGameState test = new GameState();\n\t\tassertTrue(test.randInt() < 25);\n\t}", "private void generateStateToken() {\n\t\tSecureRandom sr1 = new SecureRandom();\n\n\t\tstateToken = \"google;\" + sr1.nextInt();\n\t}", "public double getRandom(){\n\t\treturn random.nextDouble();\n\t}", "public double[] newstater (){\r\n double[] styles = new double[Config.numberOfSeeds];\r\n for(int iii=0; iii < Config.numberOfSeeds; iii++)\r\n {\r\n Random randomr = new Random();\r\n styles[iii] = 0 + (5 - 0) * randomr.nextDouble();\r\n// RandGenerator.randDouble(0, 5);\r\n }\r\n return styles;\r\n }", "public Class<? extends Random> getRandomClass() {\n\t\treturn this.rng.getClass();\n\t}", "public abstract int getRandomDamage();", "private double getRandomNumber(){\n double rand = Math.random();//produce a number between 0 and 1\n rand = rand - 0.5;\n return rand;\n }", "public Action getActionBasedOnPolicyOrRandom(final State state, final double epsilon) {\r\n \tfinal double decision = Math.random();\r\n \tif (decision > epsilon) {\r\n \t\t// Random action\r\n \t\treturn Action.values()[(int) Math.floor(Math.random() * Action.values().length)];\r\n \t} else {\r\n \t\t// Policy action\r\n \t\treturn getActionBasedOnProbability(state);\r\n \t}\r\n }", "private static int randomHeight(double p)\n {\n\tint h = 1;\n\twhile (r.nextDouble() < p) {\n\t // make it higher!\n\t h++;\n\t}\n\treturn h;\n }", "Boolean getRandomize();", "public byte collide(byte inBoundState){\n byte[] poss = collisions[(int)inBoundState].resultingState;\n if(poss.length==1){\n return poss[0];\n }\n else{\n int ndx = rand.nextInt(poss.length - 1);\n return poss[ndx];\n }\n }", "public Hazard selectRandom() {\r\n\t\tRandom gen = new Random();\r\n\t\treturn hazards.get(gen.nextInt(hazards.size()));\r\n\t}", "protected double get_breeding_probability()\n {\n return breeding_probability;\n }", "public Bubble getRandomPlacedBubble() {\n Random rand = new Random();\n int randX = rand.nextInt(((Driver.game.getCurrentLevel().getWidth() - 10) - 10) + 1) + 10; \n int randY = rand.nextInt(((Driver.game.getCurrentLevel().getHeight() - 200) - 10) + 1) + 10;\n Bubble bubble = getRandomBubble();\n bubble.setxCoord(randX);\n bubble.setyCoord(randY);\n return bubble;\n\n }", "private static void InitRandBag()\n {\n int k=(int)Math.floor(Math.random()*50);\n R[0]=k;\n\n //Generate the rest of the numbers\n for(int i=1;i<950;i++)\n {\n k=k+(int)Math.floor(Math.random()*50);\n R[i]=k;\n }\n\n //Shuffle the list\n for(int i=0;i<950;i++)\n {\n int temp = R[i];\n k = (int)Math.floor(Math.random()*950);\n R[i]=R[k];\n R[k]=temp;\n }\n }", "private int randomWeight()\n {\n return dice.nextInt(1000000);\n }", "LabState state();", "protected Color randomColor()\n {\n // There are 256 possibilities for the red, green, and blue attributes\n // of a color. Generate random values for each color attribute.\n Random randNumGen = RandNumGenerator.getInstance();\n return new Color(randNumGen.nextInt(256), // amount of red\n randNumGen.nextInt(256), // amount of green\n randNumGen.nextInt(256)); // amount of blue\n }", "private Brick generateBricks() {\n\t\tBrick randomBrick = null;\n\t\tRandom rand = new Random();\n\t\tint a = rand.nextInt(7);\n\t\tswitch (a) {\n\t\tcase 1:\n\t\t\trandomBrick = new LineBrick();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\trandomBrick = new LBrick();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\trandomBrick = new RLBrick();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\trandomBrick = new TBrick();\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\trandomBrick = new SBrick();\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\trandomBrick = new RSBrick();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\trandomBrick = new Square();\n\t\t\tbreak;\n\t\t}\n\t\tbrickgc.setFill(randomBrick.getColor());\n\t\treturn randomBrick;\n\t}", "public void makeRandColor(){}", "public abstract void randomize();", "protected String generateStateId() {\n\t\treturn ServiceBus.crypto.getRandomString();\n\t}", "public float randomQual() {\n\t\treturn((float) getRandomInteger(30,250));\n\t}", "public abstract void initiateRandomCells(double probabilityForEachCell);", "static int getRandomDelta() {\n int d = rand.nextInt(100);\n if (d < 50) {\n return -1;\n } else {\n return 1;\n }\n }", "public Person getRandomPerson() {\n //Randomize all characteristics of a person\n int age = (int) (rd.nextDouble() * 100); //within 100y old\n int gd = (int) Math.round(rd.nextDouble() * (Person.Gender.values().length - 1));\n int bt = (int) Math.round(rd.nextDouble() * (Person.BodyType.values().length - 1));\n int pf = (int) Math.round(rd.nextDouble() * (Person.Profession.values().length - 1));\n boolean isPreg = rd.nextBoolean();\n\n //Construct a person with random characteristic\n //Person(int age, Profession profession, Gender gender, BodyType bodytype, boolean isPregnant)\n P = new Person(age, Person.Profession.values()[pf], Person.Gender.values()[gd], Person.BodyType.values()[bt], isPreg);\n return P;\n }", "StateMachineFactory getStateMachineFactory();", "private Species getRandomSpeciesBaisedAdjustedFitness(Random random) {\r\n\t\tdouble completeWeight = 0.0;\r\n\t\tfor (Species s : species) {\r\n\t\t\tcompleteWeight += s.totalAdjustedFitness;\r\n\t\t}\r\n\t\tdouble r = Math.random() * completeWeight;\r\n\t\tdouble countWeight = 0.0;\r\n\t\tfor (Species s : species) {\r\n\t\t\tcountWeight += s.totalAdjustedFitness;\r\n\t\t\tif (countWeight >= r) {\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthrow new RuntimeException(\"Couldn't find a species... Number is species in total is \" + species.size()\r\n\t\t\t\t+ \", and the toatl adjusted fitness is \" + completeWeight);\r\n\t}", "private Color randomColor() {\r\n Random rand = new Random();\r\n float r = rand.nextFloat();\r\n float g = rand.nextFloat();\r\n float b = rand.nextFloat();\r\n\r\n randomColor = new Color(r, g, b, 1);\r\n return randomColor;\r\n }", "private void randForest(int x, int y) {\n\t\tint rand = random.nextInt(10);\n\t\tif (rand == 1) {\n\t\t\tentities.add(new Tree(x << 4, y << 4));\n\t\t\tgetTile(x, y).setSolid(true);\n\t\t}\n\n\t}", "private Random rand()\n\t{\n\t\treturn new Random();\n\t}", "public static TradeGood getRandom() {\n TradeGood[] options = new TradeGood[] {WATER, FURS, ORE, FOOD, GAMES, FIREARMS,\n MEDICINE, NARCOTICS, ROBOTS, MACHINES};\n int index = GameState.getState().rng.nextInt(10);\n return options[index];\n }", "public Item getItemDropped(IBlockState state, Random rand, int fortune)\n {\n \treturn this == InitBlocksEA.arcanite_ore ? InitItemsEA.arcanite : (this == InitBlocksEA.draconium_ore ? InitItemsEA.draconium_dust : (this == InitBlocksEA.velious_ore ? InitItemsEA.velious : (this == InitBlocksEA.katcheen_ore ? InitItemsEA.katcheen : (this == InitBlocksEA.necrocite_ore ? InitItemsEA.necrocite : (this == InitBlocksEA.soularite_ore ? InitItemsEA.soularite : Item.getItemFromBlock(this))))));\n \t\n //return this == EbonArtsBlocks.arcanite_ore ? EbonArtsItems.arcanite_shard : (this == Blocks.diamond_ore ? Items.diamond : (this == Blocks.lapis_ore ? Items.dye : (this == Blocks.emerald_ore ? Items.emerald : (this == Blocks.quartz_ore ? Items.quartz : Item.getItemFromBlock(this)))));\n }", "public void rollRandom() {\n\t\tthis.strength = randomWithRange();\r\n\t\tthis.wisdom = randomWithRange();\r\n\t\tthis.dexterity = randomWithRange();\r\n\t\tthis.constitution = randomWithRange();\r\n\t\tthis.intelligence = randomWithRange();\r\n\t\tthis.charisma = randomWithRange();\r\n\t}", "public State () {\n\t\tthis.stateId = generateStateId();\n\t}", "public void initState() {\n\n\t\tdouble bsc_p = 0.09; // TODO : doit dependre du souffle !?\n\t\tfor (int i=0; i<n; i++) lambda[i] = 0;\n\t\taddBSCnoise(lambda, bsc_p); \n\t\t// lambda: log likelihood ratio\n\t\tcalc_q0(lambda);\n\n\t\t// initialization of beta\n\t\tfor (int i = 0; i <= m - 1; i++) {\n\t\t\tfor (int j = 0; j <= row_weight[i] - 1; j++) {\n\t\t\t\tbeta[i][j] = 0.0;\n\t\t\t}\n\t\t}\t\t\n\n\t}" ]
[ "0.84845376", "0.67763174", "0.65616745", "0.60800594", "0.5945209", "0.5934643", "0.54568636", "0.5432291", "0.541245", "0.5304952", "0.52944297", "0.52726686", "0.5170402", "0.51246744", "0.5105978", "0.5086798", "0.50718486", "0.506787", "0.50521386", "0.5010975", "0.49974695", "0.49659857", "0.4965479", "0.4960268", "0.49397185", "0.49374494", "0.49128196", "0.49030155", "0.48998082", "0.48925853", "0.48909125", "0.4882529", "0.48785114", "0.48653877", "0.4862742", "0.4843822", "0.48236203", "0.48161253", "0.4813587", "0.4808358", "0.4803907", "0.47958425", "0.47935474", "0.47883224", "0.47882047", "0.47857186", "0.47706506", "0.47618148", "0.47617579", "0.47530392", "0.47412667", "0.47401863", "0.47364944", "0.4729459", "0.47279614", "0.47146302", "0.47127444", "0.47110498", "0.47083384", "0.4704596", "0.4694977", "0.46901447", "0.46882197", "0.46836388", "0.46787232", "0.46775344", "0.46698248", "0.46645913", "0.46586126", "0.46530768", "0.46361962", "0.46351755", "0.46311373", "0.4628846", "0.46203983", "0.46170613", "0.46090278", "0.46028456", "0.46007076", "0.45994204", "0.45965362", "0.45887664", "0.45849603", "0.45846337", "0.45783928", "0.45774567", "0.45757857", "0.45739374", "0.45715955", "0.45493728", "0.45446104", "0.4537396", "0.45337582", "0.4529859", "0.4528223", "0.45279354", "0.4519576", "0.45195225", "0.45188344", "0.4515706" ]
0.69474846
1
TODO Autogenerated method stub
public static void main(String[] args) throws FileNotFoundException { File file = new File("Score.txt"); if(file.exists()) { System.out.println("File is already exist! "); System.exit(0); } PrintWriter output = new PrintWriter(file); output.print("John T Smith "); output.println(90); output.print("Eric asd asd: "); output.println(80); output.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
Constructor for objects of class PriorityQueue
public PriorityQueue() { // initialise instance variables heap = new PriorityCustomer[100]; size = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MyQueue() {\n queue = new PriorityQueue<>();\n }", "public PriorityQueue()\r\n\t{\r\n\t\tcurrentSize = 0;\r\n\t\tlowestCurrentPriority = Integer.MAX_VALUE;\r\n\t\tpq = new DLL[MAXIMUM_PRIORITY + 1];\r\n\t\tfor (int i = 0; i < pq.length; i++)\r\n\t\t{\r\n\t\t\tpq[i] = new DLL();\r\n\t\t}\r\n\t}", "public PriorityQueue() {\n\t\theap = new ArrayList<Pair<Integer, Integer>>();\n\t\tlocation = new HashMap<Integer, Integer>();\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic PriorityQueue(){\n\n\t\tcurrentSize = 0;\n\t\tcmp = null;\n\t\tarray = (AnyType[]) new Object[10]; // safe to ignore warning\n\t}", "public PriorityQueue(int capacity) { \r\n this.capacity=capacity;\r\n this.currentSize=0;\r\n this.queue=new NodeBase[capacity];\r\n }", "public HeapPriorityQueue () \n\t{\n\t\tthis(DEFAULT_SIZE);\n\t}", "public ArrayPriorityQueue()\n { \n\tqueue = new ArrayList();\n }", "public PQueue() {\n this(0,null);\n }", "public MaxPriorityQueue() {\n heap = new MaxHeap<>();\n }", "public HeapIntPriorityQueue() {\n elementData = new int[10];\n size = 0;\n }", "public WaitablePQueue() {\n\t\tthis(DEFAULT_INITIAL_CAPACITY, null);\n\t}", "public Queue(){ }", "public PriorityQueue(int size) {\n nodes = new Vector(size);\n }", "public PriorityQueue(int size){\n heap = new Element[size];\n }", "public PriorityQueue(HeapType type) {\n this(-1, type);\n }", "public Queue()\r\n\t{\r\n\t\tthis(capacity);\r\n\t}", "public MyQueue() {\n \n }", "public Queue() {}", "public MyQueue() {\n\n }", "public PriorityQueue(final int theLength) {\r\n super(theLength);\r\n }", "public Priority() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public WaitablePQueue(int Capacity, Comparator<? super E> comparator) {\n\t \tthis.pq = new PriorityQueue<>(Capacity, comparator);\n\t \tthis.sem = new Semaphore(0);\n\t}", "public ArrayQueue() {\n this(10);\n }", "public RandomizedQueue() { }", "public PQueue(int length) {\n this(length,null);\n }", "public Priority()\r\n\t{\r\n\t\tsouthQueue = new State[50];\r\n\t\tsouthElem = 0;\r\n southFront = 0; \r\n southRear = -1;\r\n\t\t\r\n\t\twestQueue = new State[50];\r\n\t\twestElem = 0;\r\n westFront = 0;\r\n westRear = -1;\r\n\t\t\r\n\t\tmidwestQueue = new State[50];\r\n\t\tmidwestElem = 0;\r\n midwestFront = 0;\r\n midwestRear = -1;\r\n }", "ValueQueue() { super(); }", "public MyQueue() {\n\n }", "public MyQueue() {\n\n }", "public VectorHeapb()\n\t// post: constructs a new priority queue\n\t{\n\t\tdata = new Vector<E>();\n\t}", "public PriorityQueue(int initialCapacity, HeapType type) {\n super(PriorityQueueElement.class, initialCapacity, type);\n elementsMap = new HashMap<V, PriorityQueueElement<P, V>>();\n }", "public MyQueue() {\n stack = new LinkedList<Integer>();\n cache = new LinkedList<Integer>();\n }", "public Queue(){\n first = null;\n last = null;\n N = 0;\n }", "public PriorityQueue(int N) {\r\n\t\tthis.arr = new Node[N];\r\n\t\tthis.MAX_LENGTH = N;\r\n\t}", "public Queue()\n\t{\n\t\tsuper();\n\t}", "public MyQueue() {\n stack = new Stack<>();\n }", "public WaitablePQueue(int capacity) {\n\t\tthis(capacity, null);\n\t}", "public PriorityScheduler() {\n }", "public MyQueue() {\n pushStack = new Stack<>();\n popStack = new Stack<>();\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic PriorityQueue(Comparator<? super AnyType> c){\n\t\tcurrentSize = 0;\n\t\tcmp = c;\n\t\tarray = (AnyType[]) new Object[10]; // safe to ignore warning\n\t}", "public SQueue(){\n\n\t}", "public MyQueue() {\n left = new Stack<>();\n right = new Stack<>();\n }", "private Queue(){\r\n\t\tgenerateQueue();\r\n\t}", "public MyQueue() {\n push=new Stack<>();\n pull=new Stack<>();\n }", "public PriorityScheduler() {\n\t}", "public MyQueue() {\n s1 = new Stack<Integer>();\n s2 = new Stack<Integer>();\n }", "public I0304MyQueue() {\n nums = new Stack<>();\n temp = new Stack<>();\n }", "public ListQueue() {\n \n }", "public HeapPriorityQueue(int size)\n\t{\n\t\tstorage = new Comparable[size + 1];\n\t\tcurrentSize = 0;\n\t}", "public MyQueue() {\n stk1 = new Stack<>();\n stk2 = new Stack<>();\n }", "public void init(Queue<Values> queue);", "public MyQueue() {\n rearStack = new Stack();\n frontStack = new Stack();\n }", "myQueue(int size){\n }", "public WBLeftistHeapPriorityQueueFIFO() {\n\t\theap = new WBLeftistHeap<>();\n\t}", "public Deque() {}", "public PQueue(int length, Comparator<? super E> comparator) {\n queue = new Object[1];\n this.comparator = comparator;\n if(length > 0) {\n this.length = length;\n limited = true;\n }\n }", "public MyQueue() { //使用两个栈\n temp1 = new Stack<>();\n temp2 = new Stack<>();\n }", "PriorityQueue(boolean transferPriority) \n\t\t{\n\t\t\tthis.transferPriority = transferPriority;\n\t\t\twaitQueue = new java.util.PriorityQueue<KThread>(1, new comparePriority()); //Initialize the waitQueue to a java.util.PriorityQueue with a custom comparator defined below\n\t\t}", "public MyQueue() {\n s1 = new Stack<>();\n s2 = new Stack<>();\n }", "public MyQueue() {\n front = null;\n rear = null;\n size = 0;\n }", "Queue() {\r\n\t\telements = new int[DEFAULT_CAPACITY];\r\n\t}", "public MultiLevelQueue()\n {\n levels = new TreeMap<>();\n }", "public MyQueue() {\n storeStack = new Stack<>();\n }", "public QuestionQueue ()\n {\n count = 0;\n }", "public Queue() {\n\t\tfirst = null;\n\t\tlast = null;\n\t\tN = 0;\n\t}", "public Deque() {\n\n }", "public Deque() {\n\n }", "private static PriorityQueue<Teller> tellerInit(){\n Teller t1 = new Teller(\"Kate\", LocalTime.of(9, 0), 0, Bank.getInstance());\n Teller t2 = new Teller(\"Bob\", LocalTime.of(9, 0), 1, Bank.getInstance());\n Teller t3 = new Teller(\"Alice\", LocalTime.of(9, 0), 2, Bank.getInstance());\n\n PriorityQueue<Teller> tellerQueue = new PriorityQueue<>(3, new TellerComparator());\n tellerQueue.add(t2);\n tellerQueue.add(t1);\n tellerQueue.add(t3);\n\n return tellerQueue;\n }", "public BinaryHeap() {\n }", "public Deque() {\n }", "public MinPriorityQueue(int cap)\r\n {\r\n heap = (Item[]) new Comparable[cap+1]; // reservamos un espacio adicional\r\n // para el dummy en la posicion 0\r\n size = 0;\r\n }", "public WaitablePQueue(Comparator<? super E> comparator) {\n\t\tthis(DEFAULT_INITIAL_CAPACITY, comparator);\n }", "private PQHeap makeQueue(){\n \tPQHeap queue = new PQHeap(frequency.length);\n \tfor (int i = 0; i < frequency.length; i++) {\n \t\tqueue.insert(new Element(frequency[i], new HuffmanTempTree(i)));\n \t}\n \treturn queue;\n \t}", "public OrderedQueue(Comparator comparator) {\n _comparator = comparator;\n _queue = new Vector();\n }", "public MessageQueue(int capacity) \n { \n elements = new Message[capacity]; \n count = 0; \n head = 0; \n tail = 0; \n }", "public MyQueue232() {\n stackIn = new Stack<Integer>();\n stackOut = new Stack<Integer>();\n isIn = true;\n }", "public BlaqDeque(){super();}", "public QueueNode() {\n first = null;\n last = null;\n n = 0;\n }", "public RandomizedQueue() {\n queue = (Item[]) new Object[1];\n }", "public IntPriorityQueue(int size) {\n initialize(size);\n }", "public RandomizedQueue() {\n a = (Item[]) new Object[1];\n n = 0;\n }", "public Heap(){\n super();\n }", "private void makePrioQ()\n\t{\n\t\tprioQ = new PrioQ();\n\t\t\n\t\tfor(int i = 0; i < canonLengths.length; i++)\n\t\t{\n\t\t\tif(canonLengths[i] == 0)\n\t\t\t\tcontinue;\n\t\t\tNode node = new Node(i, canonLengths[i]);\n\t\t\tprioQ.insert(node);\n\t\t}\n\t}", "public Heap() {\r\n\t\tthis(DEFAULT_INITIAL_CAPACITY, null);\r\n\t}", "public RandomizedQueue() {\r\n\t\tqueue = (Item[]) new Object[1];\r\n\t}", "public void setPriorityQueue() {\n\t\tfor (int i = 0; i < 7; i++) {\n\t\t\tif (leafEntries[i].getFrequency() > 0)\n\t\t\t\tpq.add(new BinaryTree<HuffmanData>(leafEntries[i]));\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n\tQueue(int size){\n\t\tarr = (T[]) new Object[size];\n\t\tcapacity = size;\n\t\tfront = 0;\n\t\trear = -1;\n\t\tcount = 0;\n\t}", "public CircularQueue () { // The constructor name should be exactly the same as the class name.\r\n\t\t/* No data type: no int. \r\n\t\t * No return type: no void.*/\r\n\t\thead = -1;\r\n\t\ttail = -1;\t\t\r\n\t}", "public ArrayQueue(int capacity){\r\n\t\tq = new String [capacity];\r\n\t\tn = 0;\r\n\t\tfirst = 0;\r\n\t\tlast = 0; \r\n\t}", "public Http2PriorityTree() {\n this.rootNode = new Http2PriorityNode(0, 0);\n nodesByID.put(0, this.rootNode);\n this.evictionQueue = new int[10]; //todo: make this size customisable\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic ArrayQueue() {\r\n a = (Item[]) new Object[2];\r\n n = 0;\r\n head =0;\r\n tail = 0;\r\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic RandomizedQueue() {\r\n\t\tarr = (Item[]) new Object[1];\r\n\t}", "public DVDQueue() { \n\t\tqueue = new LinkedList<DVDPackage>(); \n\t}", "public RandomizedQueue() {\n collection = (Item[]) new Object[1];\n }", "public PQEntry() {}", "public BinaryHeap(int maxCapacity) {\n\tpq = new Comparable[maxCapacity];\n\tsize = 0;\n }", "public QueueExplorator() {\n\t\tqueue = new LinkedQueue<Square>();\t\n\t}", "public PriorityQueueB(LinkedList<E> list) {\n this.list = list;\n }", "public HeapSet () {\r\n\t\tsuper ();\r\n\t}", "public MyStack() {\n queue = new LinkedList<>();\n }" ]
[ "0.84083366", "0.81752676", "0.79729533", "0.78989583", "0.7889983", "0.78844994", "0.7852321", "0.77582264", "0.7554085", "0.7550601", "0.7303752", "0.71631956", "0.71316993", "0.7126219", "0.71164685", "0.71125424", "0.71116066", "0.71087193", "0.71076244", "0.710162", "0.7065586", "0.7044253", "0.7042541", "0.7005819", "0.6988209", "0.69855183", "0.6976526", "0.69611067", "0.69611067", "0.69520754", "0.6946034", "0.69330645", "0.6911919", "0.6884748", "0.6883466", "0.6848353", "0.68376356", "0.681732", "0.6799254", "0.6793823", "0.677093", "0.67546606", "0.6736502", "0.6722117", "0.6717643", "0.6717358", "0.6715321", "0.67150635", "0.66938233", "0.66920125", "0.6685214", "0.6677068", "0.66702193", "0.6630219", "0.66261536", "0.66070455", "0.65756184", "0.65711135", "0.6547219", "0.6546354", "0.65416783", "0.65372795", "0.6532027", "0.6524191", "0.65159255", "0.6512223", "0.6512223", "0.651157", "0.64902246", "0.64871186", "0.64831465", "0.6457976", "0.6455952", "0.6452364", "0.6450475", "0.644273", "0.6410563", "0.6400656", "0.6391552", "0.63867563", "0.6386604", "0.6369443", "0.6362495", "0.63478273", "0.634685", "0.63439", "0.63399297", "0.6336718", "0.6333112", "0.6331596", "0.6327655", "0.6323909", "0.63069326", "0.63030446", "0.6300998", "0.6300839", "0.62929225", "0.6288853", "0.62677217", "0.62597007" ]
0.82608604
1
An example of a method replace this comment with your own
public void AddToLine(PriorityCustomer newcustomer) { // put your code here int index = size + 1; //where we'll add the new value heap[index] = newcustomer; // add new customer to that position while (index > 3) //while customer has parents since we dont want to swap the current customer being served, it is index > 3 instead of index > 1 { int parentIndex = index/2; //get parent index if (heap[parentIndex].getPriority() < newcustomer.getPriority()) // if parent value is lower { heap[index] = heap[parentIndex]; //perform swap heap[parentIndex] = newcustomer; //sets parent to new customer index = parentIndex; //update index } else { break; //no swap needed } } size++; //increase size }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void comment() {\n\t\t\n\t}", "public void method_4270() {}", "public static void listing5_14() {\n }", "private stendhal() {\n\t}", "public void smell() {\n\t\t\n\t}", "public void mo38117a() {\n }", "public final void mo51373a() {\n }", "public void mo21792Q() {\n }", "@Override\n public void comment(String comment)\n {\n }", "public void mo21877s() {\n }", "public void mo97908d() {\n }", "public void mo21779D() {\n }", "public void m23075a() {\n }", "public void mo56167c() {\n }", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "public void mo21785J() {\n }", "public void mo21782G() {\n }", "public void mo21793R() {\n }", "public void mo6944a() {\n }", "public void mo44053a() {\n }", "public void mo21789N() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public String getDescription()\n/* */ {\n/* 74 */ return this.description;\n/* */ }", "public void mo21787L() {\n }", "public void mo21795T() {\n }", "public void mo21878t() {\n }", "public void mo21825b() {\n }", "public E16_OverloadJavaDoc() {\n System.out.println(\"Planting a seedling\");\n }", "public void mo21794S() {\n }", "public void mo21791P() {\n }", "public void mo3749d() {\n }", "private void kk12() {\n\n\t}", "public static void listing5_16() {\n }", "public void mo3376r() {\n }", "public void mo12930a() {\n }", "@Override\n public void perish() {\n \n }", "public void mo23813b() {\n }", "public void mo4359a() {\n }", "public static void listing5_15() {\n }", "public void mo9848a() {\n }", "String getComment() {\n//\t\t\tm1();\n\t\t\treturn \"small\";\n\t\t}", "public void mo2471e() {\n }", "public void mo97906c() {\n }", "public void mo115188a() {\n }", "public final void mo91715d() {\n }", "void m1864a() {\r\n }", "public abstract void mo56925d();", "@Override\n public int describeContents() { return 0; }", "public void mo5248a() {\n }", "public abstract void mo70713b();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public static void thisDemo() {\n\t}", "public void mo21781F() {\n }", "public void gored() {\n\t\t\n\t}", "void mo57277b();", "@Override\n public String getDescription() {\n return DESCRIPTION;\n }", "public void mo5382o() {\n }", "private test5() {\r\n\t\r\n\t}", "@Override\n protected String getDescription() {\n return DESCRIPTION;\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public abstract void description();", "public void mo1531a() {\n }", "public void mo21788M() {\n }", "public void mo21786K() {\n }", "public void mo21780E() {\n }", "public void mo9233aH() {\n }", "public void mo21784I() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "private void m50367F() {\n }", "public abstract String mo13682d();", "public void mo115190b() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "public void mo2740a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void mo1406f() {\n }", "public void mo21783H() {\n }", "public void mo9137b() {\n }", "public String getSampleComment();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "void mo57278c();", "public void setDescription(String description)\n/* */ {\n/* 67 */ this.description = description;\n/* */ }", "public abstract void mo30696a();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public abstract String description();", "public abstract String description();", "protected boolean func_70814_o() { return true; }", "@Override public int describeContents() { return 0; }" ]
[ "0.68759596", "0.66260797", "0.6421029", "0.6364621", "0.6342968", "0.63355535", "0.63336974", "0.63282084", "0.63035333", "0.6301148", "0.6290248", "0.6279191", "0.62747794", "0.62733513", "0.6267824", "0.6241212", "0.6227418", "0.621996", "0.6211847", "0.6205021", "0.6195718", "0.61826354", "0.61821204", "0.61821204", "0.61821204", "0.61821204", "0.61821204", "0.61821204", "0.61821204", "0.61807716", "0.61735857", "0.61584634", "0.61466485", "0.6142834", "0.6135213", "0.6115931", "0.60916257", "0.60914075", "0.60829055", "0.60815215", "0.60764015", "0.6054487", "0.60486823", "0.6045109", "0.60445964", "0.6039742", "0.60302764", "0.6029548", "0.60054636", "0.59896946", "0.5987142", "0.59581906", "0.595721", "0.5955791", "0.595543", "0.5954632", "0.59511185", "0.5949307", "0.594753", "0.594753", "0.59386444", "0.59341246", "0.5922111", "0.59220046", "0.5910694", "0.59038585", "0.59023046", "0.5892354", "0.58922565", "0.58893734", "0.58817893", "0.58815867", "0.5874273", "0.5871636", "0.5871116", "0.5866444", "0.5864232", "0.58375496", "0.5832484", "0.58286345", "0.58228964", "0.58149993", "0.5813073", "0.5812345", "0.58117765", "0.5806187", "0.5806095", "0.58020365", "0.5801862", "0.5793173", "0.5775799", "0.57691026", "0.5767623", "0.5761712", "0.5760356", "0.57577866", "0.57577866", "0.5756287", "0.5756287", "0.57530695", "0.5750237" ]
0.0
-1
Retrieves all of the jbdTravelPointLog2013s
public List getJbdTravelPointLog2013s(JbdTravelPointLog2013 jbdTravelPointLog2013);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JbdTravelPointLog2013 getJbdTravelPointLog2013(final String logId);", "public com.sybase.collections.GenericList<com.sybase.persistence.LogRecord> getLogRecords()\n {\n return ru.terralink.mvideo.sap.LogRecordImpl.findByEntity(\"Orders\", keyToString());\n }", "public List getJbdTravelPoint2014s(JbdTravelPoint2014 jbdTravelPoint2014);", "@Override\n\tpublic List<Log> finLogALL() {\n\t\tString sql = \"SELECT * FROM t_log ORDER BY ASC\";\n\t\tList<Log> list = null;\n\t\ttry {\n\t\t\tlist = qr.query(sql, new BeanListHandler<Log>(Log.class));\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}", "public List<LineaDeLog> getLog(){\n\t\treturn new ArrayList<LineaDeLog>(logDao.list());\r\n\t}", "public ArrayList<BikeData> getAllTravellingData (){\n ArrayList<BikeData> datalist = new ArrayList<>();\n \n try(\n Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(ALL_TRAVEL_DATA);\n ResultSet rs = ps.executeQuery()){\n \n while(rs.next()){\n int bikeId = rs.getInt(cBikeID);\n LocalDateTime dateTime = rs.getTimestamp(cDateTime).toLocalDateTime();\n double latitude = rs.getDouble(cLatitude);\n double longitude = rs.getDouble(cLongitude);\n double chargingLevel = rs.getDouble(cChargingLevel);\n \n BikeData bd = new BikeData(bikeId, dateTime, latitude, longitude, chargingLevel);\n datalist.add(bd);\n }\n \n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return datalist;\n }", "List<Travel> getAllTravel();", "public abstract List<Log> getAll() throws DatabaseConfigException;", "public static List<GpsLog> getLogsList( Connection connection ) throws SQLException {\n List<GpsLog> logsList = new ArrayList<>();\n try (Statement statement = connection.createStatement()) {\n statement.setQueryTimeout(30); // set timeout to 30 sec.\n\n String sql = \"select \" + //\n GpsLogsTableFields.COLUMN_ID.getFieldName() + \",\" + //\n GpsLogsTableFields.COLUMN_LOG_STARTTS.getFieldName() + \",\" + //\n GpsLogsTableFields.COLUMN_LOG_ENDTS.getFieldName() + \",\" + //\n GpsLogsTableFields.COLUMN_LOG_TEXT.getFieldName() + //\n \" from \" + TABLE_GPSLOGS; //\n\n // first get the logs\n ResultSet rs = statement.executeQuery(sql);\n while( rs.next() ) {\n long id = rs.getLong(1);\n\n long startDateTimeString = rs.getLong(2);\n long endDateTimeString = rs.getLong(3);\n String text = rs.getString(4);\n\n GpsLog log = new GpsLog();\n log.id = id;\n log.startTime = startDateTimeString;\n log.endTime = endDateTimeString;\n log.text = text;\n logsList.add(log);\n }\n }\n return logsList;\n }", "private void getPTs(){\n mPyTs = estudioAdapter.getListaPesoyTallasSinEnviar();\n //ca.close();\n }", "@RequestMapping(value = \"/lotes/lotesDisponiveis\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Lote> getAllLotesDisponiveis() {\n log.debug(\"REST retorna todos os lotes com situacao disponivel\");\n SituacaoLote situacao = situacaoLote.findOne(1L);\n return loteService.findBySituacaoLoteIs(situacao);\n }", "public ArrayList<double[]> getRecentCoordinates(){\n Connection connection = null;\n ResultSet resultSet = null;\n PreparedStatement preparedStatement = null;\n\n ArrayList<double[]> coordinates = new ArrayList<double[]>();\n String cordsQuery = \"SELECT bike_id, x_cord, y_cord FROM bike_stats WHERE time >= (now() - INTERVAL 1 MINUTE)\";\n\n try{\n connection = DBCleanup.getConnection();\n\n preparedStatement = connection.prepareStatement(cordsQuery);\n resultSet = preparedStatement.executeQuery();\n while(resultSet.next()) {\n double[] row = new double[3];\n int row0 = resultSet.getInt(\"bike_id\");\n row[0] = (double) row0;\n row[1] = resultSet.getDouble(\"x_cord\");\n row[2] = resultSet.getDouble(\"y_cord\");\n coordinates.add(row);\n }\n return coordinates;\n\n }catch(SQLException e){\n System.out.println(e.getMessage() + \" - getRecentCoordinates()\");\n }finally {\n DBCleanup.closeStatement(preparedStatement);\n DBCleanup.closeResultSet(resultSet);\n DBCleanup.closeConnection(connection);\n }\n return null;\n }", "@GetMapping(value=\"/gps\")\n public List<GPSInfo> all() {\n return repository.findAll();\n }", "public static void collectDataForLog( Connection connection, GpsLog log ) throws SQLException {\n long logId = log.id;\n\n String query = \"select \"\n + //\n GpsLogsDataTableFields.COLUMN_DATA_LAT.getFieldName() + \",\"\n + //\n GpsLogsDataTableFields.COLUMN_DATA_LON.getFieldName() + \",\"\n + //\n GpsLogsDataTableFields.COLUMN_DATA_ALTIM.getFieldName() + \",\"\n + //\n GpsLogsDataTableFields.COLUMN_DATA_TS.getFieldName()\n + //\n \" from \" + TABLE_GPSLOG_DATA + \" where \"\n + //\n GpsLogsDataTableFields.COLUMN_LOGID.getFieldName() + \" = \" + logId + \" order by \"\n + GpsLogsDataTableFields.COLUMN_DATA_TS.getFieldName();\n\n try (Statement newStatement = connection.createStatement()) {\n newStatement.setQueryTimeout(30);\n ResultSet result = newStatement.executeQuery(query);\n\n while( result.next() ) {\n double lat = result.getDouble(1);\n double lon = result.getDouble(2);\n double altim = result.getDouble(3);\n long ts = result.getLong(4);\n\n GpsPoint gPoint = new GpsPoint();\n gPoint.lon = lon;\n gPoint.lat = lat;\n gPoint.altim = altim;\n gPoint.utctime = ts;\n log.points.add(gPoint);\n }\n }\n }", "@Override\n public List<Location> getAll() {\n\n List<Location> locations = new ArrayList<>();\n \n Query query = new Query(\"Location\");\n PreparedQuery results = ds.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n double lat = (double) entity.getProperty(\"lat\");\n double lng = (double) entity.getProperty(\"lng\");\n String title = (String) entity.getProperty(\"title\");\n String note = (String) entity.getProperty(\"note\");\n int voteCount = ((Long) entity.getProperty(\"voteCount\")).intValue();\n String keyString = KeyFactory.keyToString(entity.getKey()); \n // TODO: Handle situation when one of these properties is missing\n\n Location location = new Location(title, lat, lng, note, voteCount, keyString);\n locations.add(location);\n }\n return locations;\n }", "private void getTravelItems() {\n String[] columns = Columns.getTravelColumnNames();\n Cursor travelCursor = database.query(TABLE_NAME, columns, null, null, null, null, Columns.KEY_TRAVEL_ID.getColumnName());\n travelCursor.moveToFirst();\n while (!travelCursor.isAfterLast()) {\n cursorToTravel(travelCursor);\n travelCursor.moveToNext();\n }\n travelCursor.close();\n }", "private static List<Pontohorario> getSchedulePointList(String hql)\n {\n List<Pontohorario> pointList = HibernateGenericLibrary.executeHQLQuery(hql);\n return pointList;\n }", "public List<TimeSheet> showAllTimeSheet(){\n log.info(\"Inside TimeSheetService#ShowAllTimeSheet() Method\");\n List<TimeSheet> allTimeSheet = timeSheetRepository.findAll();\n return allTimeSheet;\n }", "public String[] getToursList() {\n Connection con = null;\n PreparedStatement st = null;\n ResultSet rs = null;\n Vector<String> list = new Vector<String>();\n String[] result = null;\n try {\n //obtain the database connection by calling getConn()\n con = getConn();\n \n //create the PreparedStatement from the Connection object by calling prepareCall\n //method, passing it the sql \n st = con.prepareStatement(\"select * from Tour\");\n \n //Calls executeQuery and the resulting data is returned in the resultset\n rs = st.executeQuery();\n \n //loop through the result set and save the data in the datamodel objects\n while (rs.next()){\n //System.out.println(\"inside while....\");\n list.add(rs.getString(\"id\") + \",\" + rs.getString(\"NAME\"));\n \n }\n result = new String[list.size()];\n for (int i = 0 ; i< list.size() ; i++){\n result[i] = list.get(i);\n \n }\n }\n catch (SQLException e){\n \n }\n //close the resultset,preparedstatement and connection to relase resources \n if (rs != null){\n try{\n rs.close();\n rs = null;\n }\n catch (SQLException e){\n \n }\n }\n if (st != null){\n try{\n st.close();\n st = null;\n }\n catch (SQLException e){\n \n }\n }\n \n if (con != null){\n try{\n con.close();\n con = null;\n }\n catch (SQLException e){\n \n }\n }\n \n \n return result;\n }", "public Collection<Timecurve> listObjects() {\n return timecurveRepository.findAll();\n }", "@Transactional\n\tpublic List<Location> listAllLocation() {\n\n\t\tCriteriaBuilder builder = getSession().getCriteriaBuilder();\n\t\tCriteriaQuery<Location> criteriaQuery = builder.createQuery(Location.class);\n\t\tRoot<Location> root = criteriaQuery.from(Location.class);\n\t\tcriteriaQuery.select(root);\n\t\tQuery<Location> query = getSession().createQuery(criteriaQuery);\n\n\t\t// query.setFirstResult((page - 1) * 5);\n\t\t// query.setMaxResults(5);\n\t\treturn query.getResultList();\n\t}", "public List<Timetable> getAllTimetable() throws Exception;", "@Override\n\tpublic List<Tourneys> getAllTourneys() {\n\t\tList<Tourneys>listOfTourneys = new ArrayList<>();\n\t\tString sql = \"select * from tournaments\";\n\t\t\n\t\tSqlRowSet results = jdbcTemplate.queryForRowSet(sql);\n\t\t\twhile(results.next()) {\n\t\t\t\tTourneys tourney = mapRowToTourneys(results);\n\t\t\t\tlistOfTourneys.add(tourney);\n\t\t\t}\t\n\t\treturn listOfTourneys;\n\t}", "@Override\r\n\tpublic DataGrid logList(LogVO logVO) {\n\t\treturn null;\r\n\t}", "@SuppressWarnings ( \"unchecked\" )\n public static List<LogEntry> getLogEntries () {\n return (List<LogEntry>) getAll( LogEntry.class );\n }", "@Override\r\n\tpublic List<Trainee> getAll() {\n\t\treturn dao.getAll();\r\n\t}", "private static String[][] getDataForGrid(CWaypoint[] wayPoints) {\r\n\t\tString data[][] = new String[wayPoints.length][1];\r\n\t\tfor (int i = 0; i < data.length; i++) {\r\n\t\t\tdata[i][0] = wayPoints[i].getTime().toString();\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<DbLotniskoEntity> getAll() {\n \tList<DbLotniskoEntity> airports = (List<DbLotniskoEntity>)getSession().createQuery(\"from kiwi.models.DbLotniskoEntity\").list();\n\n \treturn airports;\n }", "public ArrayOfLogModel getLogs() {\n return localLogs;\n }", "public ArrayOfLogModel getLogs() {\n return localLogs;\n }", "@Override\r\n\tpublic List<Report> getReport(Travel travel, Date from, Date to) {\n\t\treturn null;\r\n\t}", "public List<Train> getAllTrains(){ return trainDao.getAllTrains(); }", "public java.util.List getWaypoints();", "@Override\n\tpublic List<StopPoint> listStopPoints() {\n\t\tString jql = \"SELECT s FROM StopPoint s\";\n\t\tList<StopPoint> listStopPoints = this.entityManager.createQuery(jql, StopPoint.class ).getResultList();\n\t\treturn listStopPoints;\n\t}", "@Override\n\tpublic List<Trainee> getAll() {\n\t\tQuery q=em.createQuery(\"select m from Trainee m\");\n\t\tList<Trainee> l=q.getResultList();\n\t\treturn l;\n\t}", "@Override\r\n\tpublic Vector<Log> get(Timestamp begin, Timestamp end) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tVector<Log> ret = new Vector<Log>();\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetAll);\r\n\t\t\tps.setTimestamp(1, begin);\r\n\t\t\tps.setTimestamp(2, end);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tret.add(generate(rs));\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "@Override\r\n\tpublic List<Object> consultarVehiculos() {\r\n\t\t\r\n\t\tFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\r\n\t\treturn AdminEstacionamientoImpl.getParqueadero().stream().map(\r\n\t\t\t\t temp -> {HashMap<String, String> lista = new HashMap<String, String>(); \r\n\t\t\t\t lista.put( \"placa\", temp.getVehiculo().getPlaca() );\r\n\t\t\t\t lista.put( \"tipo\", temp.getVehiculo().getTipo() );\r\n\t\t\t\t lista.put( \"fechaInicio\", formato.format( temp.getFechaInicio() ) );\r\n\r\n\t\t\t\t return lista;\r\n\t\t\t\t }\r\n\t\t\t\t).collect(Collectors.toList());\r\n\t}", "public List<BasicDBObject> getRoutePoints() {\n\t\treturn this.mRoutePoints;\n\t}", "public ArrayList<Log> GetLogs(){\n ArrayList<Log> LL = new ArrayList<>();\n try{\n String query = \"Select * from GeneralLog\";\n Statement stm = mssqlConecction.conn.createStatement();\n ResultSet rs = stm.executeQuery(query);\n while(rs.next()){\n Log l = new Log();\n l.action=rs.getString(\"action\");\n l.date = rs.getDate(\"date\");\n l.table = rs.getString(\"table\");\n l.new_value = rs.getString(\"new_value\");\n l.old_Value = rs.getString(\"old_value\");\n l.username = rs.getString(\"username\");\n LL.add(l);\n }\n return LL;\n }catch(Exception e){\n return null;\n }\n }", "public ArrayList<ArrayList<Double>> getReportsFromServer(LocalDate date)\n {\n\t //Go to DB and ask for reports of a specific date\n\t return null;\n }", "@Override\n\tpublic List<flightmodel> getflights() {\n\t\t\n\t\tSystem.out.println(\"heloo\"+repo.findAll());\n\t\treturn repo.findAll();\n\t}", "public ArrayList<Poentity> get_all_poentity() throws Exception {\n\n \t\t log.setLevel(Level.INFO);\n\t log.info(\" service operation started !\");\n\n\t\ttry{\n\t\t\tArrayList<Poentity> Poentity_list;\n\n\t\t\tPoentity_list = Poentity_Activity_dao.get_all_poentity();\n\n \t\t\tlog.info(\" Object returned from service method !\");\n\t\t\treturn Poentity_list;\n\n\t\t}catch(Exception e){\n\n\t\t\tSystem.out.println(\"ServiceException: \" + e.toString());\n\t\t\tlog.error(\" service throws exception : \"+ e.toString());\n\n\t\t}\n\t\treturn null;\n\n\n\n\t}", "private void getLocations() {\n TripSave tripSave = TripHelper.tripOngoing();\n if (tripSave != null) {\n for (LocationSave locationSave : tripSave.getLocations()) {\n if (locationSave != null) {\n tripTabFragment.drawPolyLine(new LatLng(locationSave.getLatitude(), locationSave.getLongitude()));\n }\n }\n }\n }", "private TreeSet<SpatialTemporal> gatherData() {\r\n TreeSet<SpatialTemporal> dataPoints = new TreeSet<>(new Comparator<SpatialTemporal>() {\r\n @Override\r\n public int compare(SpatialTemporal o1, SpatialTemporal o2) {\r\n return (new Double(o1.position)).compareTo(new Double(o2.position));\r\n }\r\n });\r\n\r\n double positionOnRoute = 0;\r\n for (final RoadSegment roadSegment : route) {\r\n for (Vehicle veh : roadSegment) {\r\n if (veh.type() == AgentType.OBSTACLE) {\r\n continue;\r\n }\r\n double position = positionOnRoute + veh.getFrontPosition();\r\n dataPoints.add(new SpatialTemporal(position, veh.getSpeed(), veh.getLength(), veh.getAcc()));\r\n }\r\n positionOnRoute += roadSegment.roadLength();\r\n }\r\n return dataPoints;\r\n }", "public void viewAll() {\n\t\ttry {\n\t\t\tString method = \"{call CAFDB.dbo.View_All_Pilot}\"; \n\t\t\tcallable = connection.prepareCall(method); \n\t\t\t\n\t\t\t//execute the query\n\t\t\tResultSet rs = callable.executeQuery(); \n\t\t\t\n\t\t\t/**\n\t\t\t * Output from View_All_Pilot:\n\t\t\t * 1 = PilotID - int\n\t\t\t * 2 = FirstName - varchar (string)\n\t\t\t * 3 = LastName - varchar (string)\n\t\t\t * 4 = DateOfBirth - date\n\t\t\t * 5 = EmployeeNumber - varchar (string)\n\t\t\t * 6 = DateOfHire - date \n\t\t\t * 7 = DateLeftCAF - date\n\t\t\t */\n\t\t\twhile(rs.next()) {\n\t\t\t\t//append to arraylists\n\t\t\t\tpilotID.add(rs.getInt(1)); \n\t\t\t\tfirstName.add(rs.getString(2)); \n\t\t\t\tlastName.add(rs.getString(3)); \n\t\t\t\tdob.add(rs.getDate(4));\n\t\t\t\temployeeNumber.add(rs.getString(5)); \n\t\t\t\tdateOfHire.add(rs.getDate(6)); \n\t\t\t\tdateLeftCAF.add(rs.getDate(7)); \t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}catch (SQLException ex) {\n\t\t\tLogger.getLogger(DBViewAllClient.class.getName()).log(Level.SEVERE, null, ex);\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"view all clients could not be completed\"); \n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n\tpublic List<boardLIstDTO> serachList() throws Exception {\n\t\treturn sqlSession.selectList(namespace + \".share_Log_all_List\");\n\t}", "public List getUserTravelHistoryYear(Integer userId, Date hireDateStart) {\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n\n //build the current hireDateStart and hireDateEnd for the search range\n //current date\n GregorianCalendar currentDate = new GregorianCalendar();\n currentDate.setTime(new Date());\n\n GregorianCalendar startHireDate = new GregorianCalendar();\n startHireDate.setTime(hireDateStart);\n //this is the start of current employment year\n startHireDate.set(Calendar.YEAR, currentDate.get(Calendar.YEAR));\n\n GregorianCalendar hireDateEnd = new GregorianCalendar();\n hireDateEnd.setTime(startHireDate.getTime());\n //advance its year by one\n //this is the end of the current employment year\n hireDateEnd.add(Calendar.YEAR, 1);\n\n //adjust to fit in current employment year\n if (startHireDate.after(currentDate)) {\n hireDateEnd.add(Calendar.YEAR, -1);\n startHireDate.add(Calendar.YEAR, -1);\n }\n\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n\n try {\n //retreive away events from database\n\n //this is the main class\n Criteria criteria = session.createCriteria(Away.class);\n\n //sub criteria; the user\n Criteria subCriteria = criteria.createCriteria(\"User\");\n subCriteria.add(Expression.eq(\"userId\", userId));\n\n criteria.add(Expression.ge(\"startDate\", startHireDate.getTime()));\n criteria.add(Expression.le(\"startDate\", hireDateEnd.getTime()));\n criteria.add(Expression.eq(\"type\", \"Travel\"));\n\n criteria.addOrder(Order.asc(\"startDate\"));\n\n //remove duplicates\n criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);\n\n results = criteria.list();\n\n return results;\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }", "public List<LotReportRow> generateReportOnDormantLots(int year, int start, int numOfRows) throws MiddlewareQueryException;", "public List<logModel> SelecionarTodos(){\n\n List<logModel> logs = new ArrayList<logModel>();\n\n\n //MONTA A QUERY A SER EXECUTADA\n StringBuilder stringBuilderQuery = new StringBuilder();\n stringBuilderQuery.append(\" SELECT * \");\n stringBuilderQuery.append(\" FROM tb_log \");\n\n\n //CONSULTANDO OS REGISTROS CADASTRADOS\n Cursor cursor = databaseUtil.GetConexaoDataBase().rawQuery(stringBuilderQuery.toString(), null);\n\n /*POSICIONA O CURSOR NO PRIMEIRO REGISTRO*/\n cursor.moveToFirst();\n\n\n logModel logModel;\n\n //REALIZA A LEITURA DOS REGISTROS ENQUANTO NÃO FOR O FIM DO CURSOR\n while (!cursor.isAfterLast()){\n\n /* CRIANDO UM NOVO LOG */\n logModel = new logModel();\n\n //ADICIONANDO OS DADOS DO LOG\n logModel.setID(cursor.getInt(cursor.getColumnIndex(\"log_ID\")));\n logModel.setDate(cursor.getString(cursor.getColumnIndex(\"log_date\")));\n logModel.setEvento(cursor.getString(cursor.getColumnIndex(\"log_evento\")));\n\n //ADICIONANDO UM LOG NA LISTA\n logs.add(logModel);\n\n //VAI PARA O PRÓXIMO REGISTRO\n cursor.moveToNext();\n }\n\n //RETORNANDO A LISTA DE LOGS\n return logs;\n\n }", "@Override\n\tpublic List<Tourneys> getTourneysByDate() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Iterable<Flight> viewAllFlight() {\n\t\treturn flightDao.findAll();\n\t}", "ArrayList<ArrayList<String>> getAllLogs() {\r\n return allLogs;\r\n }", "public List<Tour> findAllTours(){\n\t\treturn tourRepository.findAll();\n\t}", "@Override\n\tpublic ArrayList<CityPO> getAll() throws RemoteException {\n\t\t\n\t\t\n\t\treturn cities;\n\t}", "public List<org.nazymko.th.parser.autodao.tables.pojos.ConnectorSyncPageLog> fetchByTime(Timestamp... values) {\n\t\treturn fetch(ConnectorSyncPageLog.CONNECTOR_SYNC_PAGE_LOG.TIME, values);\n\t}", "List<TimeLog> findTimelog(String username);", "@RequestMapping(value = \"/viewAllObjectLocationGas\", method = RequestMethod.GET)\n\tpublic List<ObjectLocationGas> viewAllObjectLocationGas() {\n\t\tAndroidDAO ad = new AndroidDAO();\n\t\tList<ObjectLocationGas> listObjLocationGas = ad.getAllObjectLocationGas();\n\t\treturn listObjLocationGas;\n\t}", "java.util.List<phaseI.Hdfs.DataNodeLocation> \n getLocationsList();", "private void ListForeignDatei () {\n\n ForeignDataDbSource foreignDataDbSource = new ForeignDataDbSource();\n\n List<ForeignData> foreignDataList= foreignDataDbSource.getAllForeignData();\n Log.d(LOG_TAG,\"=============================================================\");\n\n for (int i= 0; i < foreignDataList.size(); i++){\n String output = \"Foreign_ID_Node: \"+ foreignDataList.get(i).getUid() +\n //\"\\n Status: \"+ foreignDataList.get(i).isChecked() +\n \"\\n Foto ID: \"+ foreignDataList.get(i).getFotoId() +\n \"\\n Punkt X: \"+ foreignDataList.get(i).getPunktX() +\n \"\\n Punkt Y: \"+ foreignDataList.get(i).getPunktY() +\n \"\\n IP: \"+ foreignDataList.get(i).getForeignIp() ;\n\n Log.d(LOG_TAG, output);\n }\n Log.d(LOG_TAG,\"=============================================================\");\n }", "@Override\n public List<TrackDTO> getAll() {\n List<Track> trackList = trackRepository.findAll();\n\n /**\n * Se convierte la lista de canciones (trackList) a una lista de tipo DTO\n * y se guarda en la variable tracks para luego ser el retorno del metodo.\n */\n List<TrackDTO> tracks = trackMapper.toDTO(trackList, context);\n\n return tracks;\n }", "List<Registration> allRegTrail(long idTrail);", "java.util.List<io.opencannabis.schema.commerce.CommercialOrder.StatusCheckin> \n getActionLogList();", "public ArrayList< SubLocationHandler >getAllSubLocation (){\n\t\tArrayList< SubLocationHandler> subLocationList = new ArrayList< SubLocationHandler>();\n\t\tString selectQuery = \"SELECT * FROM \" + table_subLocation + \" ORDER BY \" + key_date_entry; \n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\t\tif (cursor.moveToFirst()) {\n\t\t\tdo {\n\t\t\t\tSubLocationHandler subLocationHandlerArray = new SubLocationHandler();\n\t\t\t\tsubLocationHandlerArray.setId(cursor.getInt(0)); \n\t\t\t\tsubLocationHandlerArray.setBase_id(cursor.getInt(1)); \n\t\t\t\tsubLocationHandlerArray.setDate_entry(cursor.getString(2)); \n\t\t\t\tsubLocationHandlerArray.setName(cursor.getString(3)); \n\t\t\t\tsubLocationHandlerArray.setLongitude(cursor.getDouble(4)); \n\t\t\t\tsubLocationHandlerArray.setLatitude(cursor.getDouble(5)); \n\t\t\t\tsubLocationHandlerArray.setLocation_id(cursor.getInt(6)); \n\t\t\t\tsubLocationList.add(subLocationHandlerArray);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\n\t\tdb.close();\n\t\treturn subLocationList;\n\t}", "@Override\r\n\tpublic List<Tour> getAllTours() {\n\t\treturn null;\r\n\t}", "public ArrayList<BikeData> getAllRecentData (){\n ArrayList<BikeData> datalist = new ArrayList<>();\n \n try(\n Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(ALL_RECENT_DATA);\n ResultSet rs = ps.executeQuery()){\n \n while(rs.next()){\n int bikeId = rs.getInt(cBikeID);\n LocalDateTime dateTime = rs.getTimestamp(cDateTime).toLocalDateTime();\n double latitude = rs.getDouble(cLatitude);\n double longitude = rs.getDouble(cLongitude);\n double chargingLevel = rs.getDouble(cChargingLevel);\n\n BikeData bd = new BikeData(bikeId, dateTime, latitude, longitude, chargingLevel);\n datalist.add(bd);\n }\n \n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return datalist;\n }", "public ArrayList< LocationInfoHandler >getAllLocationInfo (){\n\t\tArrayList< LocationInfoHandler> locationInfoList = new ArrayList< LocationInfoHandler>();\n\t\tString selectQuery = \"SELECT * FROM \" + table_locationInfo + \" ORDER BY \" + key_date_entry; \n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\t\tif (cursor.moveToFirst()) {\n\t\t\tdo {\n\t\t\t\tLocationInfoHandler locationInfoHandlerArray = new LocationInfoHandler();\n\t\t\t\tlocationInfoHandlerArray.setId(cursor.getInt(0)); \n\t\t\t\tlocationInfoHandlerArray.setBase_id(cursor.getInt(1)); \n\t\t\t\tlocationInfoHandlerArray.setDate_entry(cursor.getString(2)); \n\t\t\t\tlocationInfoHandlerArray.setContent(cursor.getString(3)); \n\t\t\t\tlocationInfoHandlerArray.setTitle(cursor.getString(4)); \n\t\t\t\tlocationInfoHandlerArray.setLocation_id(cursor.getInt(5)); \n\t\t\t\tlocationInfoHandlerArray.setImage(convertToBitmap(cursor.getBlob(6))); \n\t\t\t\tlocationInfoList.add(locationInfoHandlerArray);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\n\t\tdb.close();\n\t\treturn locationInfoList;\n\t}", "@RequestMapping(path = \"/last24hCreatedRoutes\", method = RequestMethod.GET)\n public List<RouteCreated> getLast24hCreatedRoutes() {\n Query queryObject = new Query(\"Select * from route_created\", \"blablamove\");\n QueryResult queryResult = BlablamovebackendApplication.influxDB.query(queryObject);\n\n InfluxDBResultMapper resultMapper = new InfluxDBResultMapper();\n System.out.println(\"queryResult : \" + queryResult);\n List<RouteCreated> routeCreatedList = resultMapper\n .toPOJO(queryResult, RouteCreated.class);\n\n LocalDateTime stop = LocalDateTime.now().minusHours(0);\n LocalDateTime start = LocalDateTime.now().minusHours(24).withSecond(0).withMinute(0).withNano(0);\n\n return routeCreatedList.stream().filter(routeCreated -> instantIsBetweenDates(routeCreated.getTime(), start, stop)).collect(Collectors.toList());\n }", "List<ShipmentInfoPODDTO> findAll();", "public List getJfiPayLogs(JfiPayLog jfiPayLog);", "@Override\n @Transactional\n public List<AuditLog> logs() {\n\tCompany company = this.authHelper.getAuth().getCompany();\n\tLong companyID = company == null ? null : company.getId();\n\tList<AuditLog> logs = this.companyDAO.logs(companyID);\n\tfor (AuditLog log : logs) {\n\t log.setAuditAction(AuditAction.of(log.getAction()));\n\t}\n\treturn logs;\n }", "public ArrayList< LocationHandler >getAllLocation (){\n\t\tArrayList< LocationHandler> locationList = new ArrayList< LocationHandler>();\n\t\tString selectQuery = \"SELECT * FROM \" + table_location + \" ORDER BY \" + key_date_entry; \n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\t\tif (cursor.moveToFirst()) {\n\t\t\tdo {\n\t\t\t\tLocationHandler locationHandlerArray = new LocationHandler();\n\t\t\t\tlocationHandlerArray.setId(cursor.getInt(0)); \n\t\t\t\tlocationHandlerArray.setBase_id(cursor.getInt(1)); \n\t\t\t\tlocationHandlerArray.setDate_entry(cursor.getString(2)); \n\t\t\t\tlocationHandlerArray.setLongitude(cursor.getDouble(3)); \n\t\t\t\tlocationHandlerArray.setLatitude(cursor.getDouble(4)); \n\t\t\t\tlocationHandlerArray.setName(cursor.getString(5)); \n\t\t\t\tlocationHandlerArray.setType(cursor.getString(6)); \n\t\t\t\tlocationHandlerArray.setSearchTag(cursor.getString(7));\n\t\t\t\tlocationHandlerArray.setAmountables(cursor.getDouble(8));\n\t\t\t\tlocationHandlerArray.setDescription(cursor.getString(9));\n\t\t\t\tlocationHandlerArray.setBestSeller(cursor.getString(10));\n\t\t\t\tlocationHandlerArray.setWebsite(cursor.getString(11));\n\t\t\t\tlocationList.add(locationHandlerArray);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\n\t\tdb.close();\n\t\treturn locationList;\n\t}", "List<ShipmentHistoricTaskInstanceDS> findAllCompleted(String trackingId);", "public ArrayList<Long>\n getTimeStamps() \n {\n return pTimeStamps; \n }", "@Override\n\tpublic String[] getLog() {\n\t\tString[] logs = new String[this.log.size()];\n\t\treturn this.log.toArray(logs);\n\t}", "public List<TrajectoryInfo> getAllTrajectories() {\n\t\treturn null;\n\t}", "private void loadTravelTracking() {\n\n ArrayList<LatLng> LatLngs = new ArrayList<LatLng>();\n\n HistoryDBHelper inst = HistoryDBHelper.getInstance(getContext());\n // SimpleDateFormat dateformat = new SimpleDateFormat(\"dd-MM-yyyy hh:mm:ss\", Locale.US);\n // String simpleDate = \"24-04-2021 08:00:00\";\n try {\n // Timestamp ts = Timestamp.valueOf(\"2021-04-24 13:00:27.627\");\n // Date date = new Date(ts.getTime());\n Date date = selectedDate;\n Log.d(TAG, date.toString());\n ArrayList<HistoryItem> historyItems = inst.retrieveByDate(date);\n //ArrayList<HistoryItem> historyItems = inst.getAllListHistory();\n int count = 0;\n Timestamp lastTimeStamp = new Timestamp(0);\n for (HistoryItem historyItem : historyItems) {\n Log.d(TAG, historyItem.toString() + count);\n Timestamp currentTimeStamp = historyItem.getTimestamp();\n // Ensure that two time stamps are 1 minutes away from each other.\n if (currentTimeStamp.getTime() - lastTimeStamp.getTime() > 1000 * 60) {\n LatLngs.add(new LatLng(historyItem.getLat(), historyItem.getLon()));\n lastTimeStamp = currentTimeStamp;\n }\n count++;\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(TAG, \"Load Travel Tracking Date Error\");\n }\n\n Polyline line = map.addPolyline(new PolylineOptions()\n .addAll(LatLngs)\n .startCap(new RoundCap())\n .endCap(new ButtCap())\n .width(15)\n .color(Color.argb(255, 153, 27, 30)));\n\n line.setTag(new SimpleDateFormat(\"MM/dd/yyyy\", Locale.US).format(selectedDate));\n line.setJointType(JointType.ROUND);\n line.setClickable(true);\n\n map.setOnPolylineClickListener(new GoogleMap.OnPolylineClickListener() {\n @Override\n public void onPolylineClick(Polyline polyline) {\n if ((polyline.getColor() == Color.argb(255, 153, 27, 30))) {\n polyline.setColor(Color.argb(255, 255, 204, 0));\n } else {\n // The default pattern is a solid stroke.\n polyline.setColor(Color.argb(255, 153, 27, 30));\n }\n\n Toast.makeText(getActivity(), \"Date \" + polyline.getTag().toString(),\n Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n\tpublic List<AccessLog> list() throws Exception {\n\t\treturn mapper.list();\n\t}", "@Override\n\tpublic ArrayList<Example> list() {\n\t\tthis.conn = ConnectionFactory.getConnection();\n\t\tString sql = \"SELECT * FROM example;\";\n\t\tPreparedStatement stmt = null;\n\t\tResultSet rs = null;\n\t\tArrayList<Example> dates = new ArrayList<>();\n\t\ttry {\n\t\t\tstmt = conn.prepareStatement(sql);\n\t\t\trs = stmt.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tExample example = new Example();\n\t\t\t\texample.setId(rs.getLong(\"id\"));\n\t\t\t\texample.setDate(Utils.toGregorianCalendar(rs.getTimestamp(\"date\")));\n\t\t\t\tdates.add(example);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif(rs != null){\n\t\t\t\t\trs.close();\n\t\t\t\t}\n\n\t\t\t\tif(stmt != null){\n\t\t\t\t\tstmt.close();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}finally {\n\t\t\t\ttry {\n\t\t\t\t\tthis.conn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn dates;\n\t}", "private static String[] getDataForRow(CWaypoint wayPoint) {\r\n\t\tString data[] = new String[1];\r\n\t\tdata[0] = dateFormat.format(wayPoint.getTime());\r\n\t\treturn data;\r\n\t}", "@Test\n\tpublic void listLocations(){\n\t\tList<Location> lists = locationService.queryLoctionsByLat(29.8679775, 121.5450105);\n\t\t//System.out.println(lists.size()) ;\n\t\tfor(Location loc : lists){\n\t\t\tSystem.out.println(loc.getAddress_cn());\n\t\t}\n\t}", "List<PointsExchangeRecord> selectAll();", "@RequestMapping(path = \"/last24hCanceledRoutes\", method = RequestMethod.GET)\n public List<RouteCanceled> getLast24hCanceledRoutes() {\n Query queryObject = new Query(\"Select * from route_canceled\", \"blablamove\");\n QueryResult queryResult = BlablamovebackendApplication.influxDB.query(queryObject);\n\n InfluxDBResultMapper resultMapper = new InfluxDBResultMapper();\n System.out.println(\"queryResult : \" + queryResult);\n List<RouteCanceled> routeCanceledList = resultMapper\n .toPOJO(queryResult, RouteCanceled.class);\n\n LocalDateTime stop = LocalDateTime.now().minusHours(0);\n LocalDateTime start = LocalDateTime.now().minusHours(24).withSecond(0).withMinute(0).withNano(0);\n\n return routeCanceledList.stream().filter(routeCanceled -> instantIsBetweenDates(routeCanceled.getTime(), start, stop)).collect(Collectors.toList());\n }", "public ResultSet fetchSelectAllParkLots() {\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tTo create connection to the DataBase\r\n\t\t\t*/\r\n\t\t\tnew DbConnection();\r\n\t\t\t/**\r\n\t\t\t*\tStore the table data in ResultSet rs and then return it\r\n\t\t\t*/\r\n\t\t\trs = stmt.executeQuery(SELECT_ALL_PARKLOT_QUERY);\r\n\t\t} catch(SQLException SqlExcep) {\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\tcloseDbConnection();\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 rs;\r\n\t}", "public List<BlockID> getLogList()\n {\n return logBlocks;\n }", "public List<Lot> getAllLots(int start, int numOfRows) throws MiddlewareQueryException;", "List<Flight> findAllFlights();", "public void saveJbdTravelPointLog2013(JbdTravelPointLog2013 jbdTravelPointLog2013);", "public List<models.garaDB.tables.pojos.Ride> fetchByTimestamp(Timestamp... values) {\n return fetch(Ride.RIDE.TIMESTAMP, values);\n }", "@Override\r\n\tpublic List<Log> findLogByCompanyProjectId(LogCond cond)\r\n\t\t\tthrows RuntimeException {\n\t\treturn logMapper.findLogByCompanyProjectId(cond);\r\n\t}", "public List<ParamIntervento> getAll()\n {\n\t System.out.println(\"chiamo getAll: \");\n System.out.flush();\n CriteriaQuery<ParamIntervento> criteria = this.entityManager.getCriteriaBuilder().createQuery(ParamIntervento.class);\n return this.entityManager.createQuery(criteria.select(criteria.from(ParamIntervento.class))).getResultList();\n }", "public ArrayOfLogModel getArrayOfLogModel() {\n return localArrayOfLogModel;\n }", "public List<SignLog> getAll(String userId) {\n List<SignLog> signLogs = new ArrayList<SignLog>();\n\n Cursor cursor = database.query(DatabaseSQLiteHelper.TABLE_SIGN_LOGS, null,\n DatabaseSQLiteHelper.LOGS_USER_ID + \" = \" + userId, null, null, null, null);\n\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n SignLog log = cursorToItem(cursor);\n signLogs.add(log);\n\n cursor.moveToNext();\n }\n cursor.close();\n return signLogs;\n }", "@RequestMapping(value = \"/EventJour\")\n\t\tpublic List<Events> getEventsParDate() {\n\t\t\treturn eventDAO.getEventsParDate();\n\t\t}", "Collection<PreprocessingLog> retrievePreprocessingLogs(final Date processingDate) throws SqlDatabaseSystemException;", "@Override\n public List<Transaksi> getAll() {\n List<Transaksi> listTransaksi = new ArrayList<>();\n\n try {\n String query = \"SELECT id, date_format(tgl_transaksi, '%d-%m-%Y') AS tgl_transaksi FROM transaksi\";\n\n PreparedStatement ps = Koneksi().prepareStatement(query);\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n Transaksi transaksi = new Transaksi();\n\n transaksi.setId(rs.getString(\"id\"));\n transaksi.setTglTransaksi(rs.getString(\"tgl_transaksi\"));\n\n listTransaksi.add(transaksi);\n }\n } catch (SQLException se) {\n se.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return listTransaksi;\n }", "@RequestMapping(value = \"/lotes\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Lote> getAllLotes() {\n log.debug(\"REST request to get all Lotes\");\n return loteService.findAll();\n }", "@Override\n public List<FecetProrrogaOrden> findAll() {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SQL_SELECT).append(SQL_ALL_COLUMNS).append(SQL_FROM).append(getTableName())\n .append(\" ORDER BY ID_PRORROGA_ORDEN\");\n return getJdbcTemplateBase().query(query.toString(), new FecetProrrogaOrdenMapper());\n\n }", "@Query(value = \"from Flight\")\n\tList<Flight> listAllFlights();", "public List<RecepcionSero> getAllSerologias()throws Exception{\n Session session = sessionFactory.getCurrentSession();\n Date date = new Date();\n Calendar calendar = new GregorianCalendar();\n calendar.setTime(date);\n int year = calendar.get(Calendar.YEAR);\n Integer a = year;\n Query query = session.createQuery(\"from RecepcionSero s where year(s.fecreg) =:a order by s.fecreg desc\");\n query.setParameter(\"a\",a);\n return query.list();\n }", "public List<Tripulante> obtenerTripulantes();" ]
[ "0.6036988", "0.5896448", "0.5883995", "0.5879368", "0.5808547", "0.5602904", "0.55976355", "0.550443", "0.54038554", "0.53923774", "0.52660596", "0.5247169", "0.52465546", "0.52396363", "0.5155382", "0.5138232", "0.5127378", "0.50877464", "0.508401", "0.50749874", "0.5054953", "0.5044891", "0.50426596", "0.5042482", "0.50184494", "0.50115675", "0.498896", "0.49824", "0.4977694", "0.4977694", "0.49660268", "0.4964056", "0.49608126", "0.49595362", "0.49576202", "0.49562344", "0.4955118", "0.4953762", "0.49521023", "0.49496755", "0.49354374", "0.49268284", "0.492385", "0.49238142", "0.49235722", "0.4918244", "0.4918197", "0.49177963", "0.4915053", "0.49059048", "0.49058747", "0.48992786", "0.4886467", "0.48811793", "0.48810717", "0.48747295", "0.48689902", "0.48655188", "0.48618704", "0.48548087", "0.4854782", "0.48527634", "0.48520973", "0.4849002", "0.48469204", "0.48389685", "0.48375884", "0.48360673", "0.483565", "0.4834699", "0.48308146", "0.48286054", "0.4817006", "0.48139584", "0.48128828", "0.48084873", "0.48074278", "0.4800179", "0.47974616", "0.47961956", "0.47927263", "0.47832823", "0.4782111", "0.477952", "0.47741", "0.47681835", "0.4764182", "0.4757368", "0.47573623", "0.47569537", "0.47524703", "0.47490722", "0.47488728", "0.473706", "0.473283", "0.4732323", "0.4732246", "0.47304952", "0.4727249", "0.47224036" ]
0.72603875
0
Gets jbdTravelPointLog2013's information based on logId.
public JbdTravelPointLog2013 getJbdTravelPointLog2013(final String logId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TrackerUserLocationLog getTrackerUserLocationLog(final Integer id);", "public List getJbdTravelPointLog2013s(JbdTravelPointLog2013 jbdTravelPointLog2013);", "TrackerUserLocationLog loadTrackerUserLocationLog(final Integer id);", "public String getLogId() {\r\n return logId;\r\n }", "public int getLogid() {\n\treturn logid;\n}", "public JfiPayLog getJfiPayLog(final Long logId);", "int getLogId();", "public Integer getLogid() {\n return logid;\n }", "public void removeJbdTravelPointLog2013(final String logId);", "public String getPayLogId() {\n return payLogId;\n }", "Log getHarvestLog(String dsID) throws RepoxException;", "public String getFlowLogId() {\n return this.flowLogId;\n }", "@Override\n\tpublic StudyTaskInfo getLastInfoByLogId(Integer studyLogId)\n\t\t\tthrows WEBException {\n\t\ttry {\n\t\t\tstDao = (StudyTaskDao) DaoFactory.instance(null).getDao(Constants.DAO_STUDY_TASK_INFO);\n\t\t\tSession sess = HibernateUtil.currentSession();\n\t\t\treturn stDao.getLastInfoByLogId(sess, studyLogId);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tthrow new WEBException(\"获取最后一次的任务记录列表时出现异常!\");\n\t\t} finally{\n\t\t\tHibernateUtil.closeSession();\n\t\t}\n\t}", "public LogModel findLog(String id);", "HotspotLog selectByPrimaryKey(Long id);", "@UITopiaVariant(affiliation = \"RWTH Aachen\", author = \"Kefang\", email = \"***@gmail.com\", uiLabel = UITopiaVariant.USEVARIANT)\n\t@PluginVariant(variantLabel = \"Extract Pos Data from Log\", requiredParameterLabels = { 0 })\n\tpublic XLog extractPosData(PluginContext context, XLog log) {\n\t\t// but we need to set parameters for it.. Then we can use it\n\t\t// -- create an interface to choose the data only from positive \n\t\t// or from the complement of positive\n\t\t// extract it but we could do it before create the model\n\t\t/*\n\t\tXLog pos_log = (XLog) log.clone();\n\n\t\tboolean only_pos = true;\n\t\tint neg_count = 0, pos_count = 0;\n\t\tif (only_pos) {\n\t\t\tIterator<XTrace> liter = pos_log.iterator();\n\t\t\twhile (liter.hasNext()) {\n\t\t\t\tXTrace trace = liter.next();\n\t\t\t\tif (trace.getAttributes().containsKey(Configuration.POS_LABEL)) {\n\t\t\t\t\tXAttributeBoolean attr = (XAttributeBoolean) trace.getAttributes().get(Configuration.POS_LABEL);\n\t\t\t\t\tif (!attr.getValue()) {\n\t\t\t\t\t\tliter.remove();\n\t\t\t\t\t\tneg_count++;\n\t\t\t\t\t} else\n\t\t\t\t\t\tpos_count++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t*/\n\t\tint neg_count = 0, pos_count = 0;\n\t\tString key = Configuration.POS_LABEL;\n\t\t//boolean flag = true;\n\t\tString value = \"true\";\n\t\tXLog[] logs = EventLogUtilities.splitLog(log, key, value);\n\t\tpos_count = logs[0].size();\n\t\tneg_count = logs[1].size();\n\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"The event log has \" + pos_count + \" positive traces and \" + neg_count + \" negative traces\",\n\t\t\t\t\t\"Inane information\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\n\t\treturn logs[0];\n\t}", "public void setLogid(Integer logid) {\n this.logid = logid;\n }", "public long getPhoneLogId() {\n return mId;\n }", "public String getAccountLogId() {\n return accountLogId;\n }", "public Date getLogtime()\r\n {\r\n return logtime;\r\n }", "public LogInfo getDbLogInfo(String path) {\n\t\tif (dbLogInfoList != null) {\n\t\t\treturn dbLogInfoList.getDbLogInfo(path);\n\t\t}\n\t\treturn null;\n\t}", "public String getProcessLog(String processId) throws Exception {\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tString processLog = \"\";\r\n\t\ttry {\r\n\t\t\tconn = BaseDAO.connect(DATA_SOURCE);\r\n\t\t\tString query = \"SELECT U.PROCESS_LOG FROM STG_PROCESS_STATUS U WHERE U.PROCESS_ID = ?\";\r\n\t\t\tpstmt = conn.prepareCall(query);\r\n\t\t\tpstmt.setString(1, processId);\r\n\t\t\trs = pstmt.executeQuery();\r\n\t\t\tif(rs.next()) {\r\n\t\t\t\tprocessLog = rs.getString(1);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new Exception(e.getMessage());\r\n\t\t} finally {\r\n\t\t\ttry {rs.close();} catch (Exception e2) {}\r\n\t\t\ttry {pstmt.close();} catch (Exception e2) {}\r\n\t\t\ttry {conn.close();} catch (Exception e2) {}\r\n\t\t}\r\n\t\treturn processLog;\r\n\t}", "public String getTransLogId() {\n return transLogId;\n }", "@Override\n\tpublic HwTraceStudyLogInfo getEntityById(Integer id) throws WEBException {\n\t\ttry {\n\t\t\thwLogDao = (HwTraceStudyLogDao) DaoFactory.instance(null).getDao(Constants.DAO_HW_TRACE_STUDY_LOG_INFO);\n\t\t\tSession sess = HibernateUtil.currentSession();\n\t\t\treturn hwLogDao.getEntityById(sess, id);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tthrow new WEBException(\"根据主键获取溯源学习记录时出现异常!\");\n\t\t} finally{\n\t\t\tHibernateUtil.closeSession();\n\t\t}\n\t}", "protected Log getLog()\n/* */ {\n/* 59 */ return log;\n/* */ }", "Map<String, Long> getVisitIpLogs();", "@Override\n public String updateLog() {\n return mylon;\n }", "protected static LogRecord getLogRecord( SharedLevel pLevel, int pLogId ) {\n\n // Aux vars\n int i = 0;\n String className = null;\n\n // Get the stack trace\n StackTraceElement stackTraceElement = null;\n StackTraceElement[] stackTrace = ( new Throwable() ).getStackTrace();\n\n // Get the location\n for( i=0; i<stackTrace.length; i++ ) {\n stackTraceElement = stackTrace[ i ];\n className = stackTrace[ i ].getClassName();\n if( className.equals( SharedException.class.getName() ) ) continue;\n break;\n }\n\n // Create the new log record\n LogRecord logRecord = new LogRecord( pLevel, \"LOG_ID_\" + pLogId + \" from \" + stackTraceElement.toString() );\n\n // Set parameters for the log record\n logRecord.setSourceClassName( stackTraceElement.getClassName() );\n logRecord.setSourceMethodName( stackTraceElement.getMethodName() );\n\n // Set the logger name using the agent id if present\n logRecord.setLoggerName( \"anonymous\" );\n SharedSecurityParam securityParam = (SharedSecurityParam) SecurityLocalThreadContext.getSecurityParam();\n if( securityParam != null ) logRecord.setLoggerName( securityParam.getAgentId() );\n\n // Send it back\n return( logRecord );\n }", "@Override\n\tpublic HwTraceStudyLogInfo getEntityByTjId(Integer tjId)\n\t\t\tthrows WEBException {\n\t\ttry {\n\t\t\thwLogDao = (HwTraceStudyLogDao) DaoFactory.instance(null).getDao(Constants.DAO_HW_TRACE_STUDY_LOG_INFO);\n\t\t\tSession sess = HibernateUtil.currentSession();\n\t\t\treturn hwLogDao.getEntityByTjId(sess, tjId);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tthrow new WEBException(\"根据统计编号获取溯源学习记录时出现异常!\");\n\t\t} finally{\n\t\t\tHibernateUtil.closeSession();\n\t\t}\n\t}", "public abstract Log getById(int id) throws DatabaseConfigException;", "@Override\r\n\tpublic Log get(int id) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tLog log = null;\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetById);\r\n\t\t\tps.setInt(1, id);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tlog = generate(rs);\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn log;\r\n\t}", "BufferedLogChannel getCurrentLogIfPresent(long entryLogId);", "public String getLogDetails() {\r\n return logDetails;\r\n }", "public ResultObject getLogData(LogDataRequest logDateRequest)throws ParserException;", "EbayLmsLog selectByPrimaryKey(Integer id);", "public EmitirNFBonusTLDC (long logId)\n\t {\n\t\tsuper(logId, Definicoes.CL_EMITIR_NF_BONUS_TLDC);\n\t\t\n\t\t// Obtem referencia do gerente de conexoes do Banco de Dados\n\t\tthis.gerenteBancoDados = GerentePoolBancoDados.getInstancia(logId);\n\t }", "public String getLogDetails() {\n return logDetails;\n }", "public LogService getLog() {\n\treturn log;\n }", "public long getAuditLogId() {\n return auditLogId;\n }", "@Override\n\tpublic List<SmsActivityLogger> fetchLogById(int Id) {\n\t\treturn null;\n\t}", "public static void collectDataForLog( Connection connection, GpsLog log ) throws SQLException {\n long logId = log.id;\n\n String query = \"select \"\n + //\n GpsLogsDataTableFields.COLUMN_DATA_LAT.getFieldName() + \",\"\n + //\n GpsLogsDataTableFields.COLUMN_DATA_LON.getFieldName() + \",\"\n + //\n GpsLogsDataTableFields.COLUMN_DATA_ALTIM.getFieldName() + \",\"\n + //\n GpsLogsDataTableFields.COLUMN_DATA_TS.getFieldName()\n + //\n \" from \" + TABLE_GPSLOG_DATA + \" where \"\n + //\n GpsLogsDataTableFields.COLUMN_LOGID.getFieldName() + \" = \" + logId + \" order by \"\n + GpsLogsDataTableFields.COLUMN_DATA_TS.getFieldName();\n\n try (Statement newStatement = connection.createStatement()) {\n newStatement.setQueryTimeout(30);\n ResultSet result = newStatement.executeQuery(query);\n\n while( result.next() ) {\n double lat = result.getDouble(1);\n double lon = result.getDouble(2);\n double altim = result.getDouble(3);\n long ts = result.getLong(4);\n\n GpsPoint gPoint = new GpsPoint();\n gPoint.lon = lon;\n gPoint.lat = lat;\n gPoint.altim = altim;\n gPoint.utctime = ts;\n log.points.add(gPoint);\n }\n }\n }", "@Override\r\n\tpublic List<Log> findLogByCompanyProjectId(LogCond cond)\r\n\t\t\tthrows RuntimeException {\n\t\treturn logMapper.findLogByCompanyProjectId(cond);\r\n\t}", "public logModel GetLog(int ID){\n\n\n Cursor cursor = databaseUtil.GetConexaoDataBase().rawQuery(\"SELECT * FROM tb_log WHERE log_ID= \"+ ID,null);\n\n cursor.moveToFirst();\n\n ///CRIANDO UM NOVO LOG\n logModel logModel = new logModel();\n\n //ADICIONANDO OS DADOS DO LOG\n logModel.setID(cursor.getInt(cursor.getColumnIndex(\"log_ID\")));\n logModel.setDate(cursor.getString(cursor.getColumnIndex(\"log_date\")));\n logModel.setEvento(cursor.getString(cursor.getColumnIndex(\"log_evento\")));\n\n //RETORNANDO O LOG\n return logModel;\n\n }", "GatewayLog selectByPrimaryKey(Integer id);", "public void setLogId(String logId) {\r\n this.logId = logId == null ? null : logId.trim();\r\n }", "@UITopiaVariant(affiliation = \"RWTH Aachen\", author = \"Kefang\", email = \"***@gmail.com\", uiLabel = UITopiaVariant.USEVARIANT)\n\t@PluginVariant(variantLabel = \"Extract Pos Complement Data from Log\", requiredParameterLabels = { 0 })\n\tpublic XLog extractPosComplementData(PluginContext context, XLog log) {\n\t\tXLog pos_log = (XLog) log.clone();\n\t\t// complement means we need to get the variants and summary of them\n\t\t// if summary of them is ?:0, we accept it else, not!!! \n\t\tList<TraceVariant> variants = EventLogUtilities.getTraceVariants(pos_log);\n\t\tfor (TraceVariant var : variants) {\n\t\t\t// if they have overlap var.getSummary().get(Configuration.POS_IDX) < 1 ||\n\t\t\tif (var.getSummary().get(Configuration.NEG_IDX) > 0)\n\t\t\t\tEventLogUtilities.deleteVariantFromLog(var, pos_log);\n\t\t}\n\t\tJOptionPane.showMessageDialog(null, \"The event log has \" + pos_log.size() + \" traces in positive complement\",\n\t\t\t\t\"Inane information\", JOptionPane.INFORMATION_MESSAGE);\n\t\treturn pos_log;\n\t}", "public Integer getLogisticsId() {\n return logisticsId;\n }", "public java.lang.String getLogCorrelationIDString(){\n return localLogCorrelationIDString;\n }", "public List<LineaDeLog> getLog(){\n\t\treturn new ArrayList<LineaDeLog>(logDao.list());\r\n\t}", "public String getClLog() {\r\n return clLog;\r\n }", "PayLogInfoPo selectByPrimaryKey(Long id);", "public String getTimeStampedLogPath() {\n\t\treturn m_timeStampedLogPath;\n\t}", "ParseTableLog selectByPrimaryKey(String id);", "@Override\n public String getLogChannelId() {\n return logChannel.getLogChannelId();\n }", "public com.sybase.collections.GenericList<com.sybase.persistence.LogRecord> getLogRecords()\n {\n return ru.terralink.mvideo.sap.LogRecordImpl.findByEntity(\"Orders\", keyToString());\n }", "@Override\r\n\tpublic Log getLog() {\n\t\treturn log;\r\n\t}", "public LogModel getLogModel() {\n return localLogModel;\n }", "private ArrayList<CallLogsData> getCallLogEntry() {\n ArrayList<CallLogsData> calllogsList = new ArrayList<CallLogsData>();\n try {\n File file = new File(mParentFolderPath + File.separator + ModulePath.FOLDER_CALLLOG\n + File.separator + ModulePath.NAME_CALLLOG);\n BufferedReader buffreader = new BufferedReader(new InputStreamReader(\n new FileInputStream(file)));\n String line = null;\n CallLogsData calllogData = null;\n while ((line = buffreader.readLine()) != null) {\n if (line.startsWith(CallLogsData.BEGIN_VCALL)) {\n calllogData = new CallLogsData();\n// MyLogger.logD(CLASS_TAG,\"startsWith(BEGIN_VCALL)\");\n }\n if (line.startsWith(CallLogsData.ID)) {\n calllogData.id = Integer.parseInt(getColonString(line));\n// MyLogger.logD(CLASS_TAG,\"startsWith(ID) = \" +calllogData.id);\n }\n\n if (line.startsWith(CallLogsData.SIMID)) {\n calllogData.simid = Utils.slot2SimId(Integer.parseInt(getColonString(line)),\n mContext);\n }\n if (line.startsWith(CallLogsData.NEW)) {\n calllogData.new_Type = Integer.parseInt(getColonString(line));\n// MyLogger.logD(CLASS_TAG,\"startsWith(NEW) = \" +calllogData.new_Type);\n }\n if (line.startsWith(CallLogsData.TYPE)) {\n calllogData.type = Integer.parseInt(getColonString(line));\n// MyLogger.logD(CLASS_TAG,\"startsWith(TYPE) = \" +calllogData.type);\n }\n if (line.startsWith(CallLogsData.DATE)) {\n String time = getColonString(line);\n// Date date = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\").parse(time);\n// calllogData.date = date.getTime();\n\n calllogData.date = Utils.unParseDate(time);\n\n MyLogger.logD(CLASS_TAG, \"startsWith(DATE) = \" + calllogData.date);\n }\n if (line.startsWith(CallLogsData.NAME)) {\n calllogData.name = getColonString(line);\n// MyLogger.logD(CLASS_TAG,\"startsWith(NAME) = \" +calllogData.name);\n }\n if (line.startsWith(CallLogsData.NUMBER)) {\n calllogData.number = getColonString(line);\n// MyLogger.logD(CLASS_TAG,\"startsWith(NUMBER) = \"+calllogData.number);\n }\n if (line.startsWith(CallLogsData.DURATION)) {\n calllogData.duration = Long.parseLong(getColonString(line));\n// MyLogger.logD(CLASS_TAG,\"startsWith(DURATION) = \"+calllogData.duration);\n }\n if (line.startsWith(CallLogsData.NMUBER_TYPE)) {\n calllogData.number_type = Integer.parseInt(getColonString(line));\n// MyLogger.logD(CLASS_TAG,\"startsWith(NMUBER_TYPE) = \"+calllogData.number_type);\n }\n if (line.startsWith(CallLogsData.END_VCALL)) {\n// MyLogger.logD(CLASS_TAG,calllogData.toString());\n calllogsList.add(calllogData);\n MyLogger.logD(CLASS_TAG, \"startsWith(END_VCALL)\");\n }\n }\n buffreader.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n MyLogger.logE(CLASS_TAG, \"init failed\");\n }\n return calllogsList;\n }", "public void saveJbdTravelPointLog2013(JbdTravelPointLog2013 jbdTravelPointLog2013);", "public IPath getLogLocation() throws IllegalStateException {\n \t\t//make sure the log location is initialized if the instance location is known\n \t\tif (isInstanceLocationSet())\n \t\t\tassertLocationInitialized();\n \t\tFrameworkLog log = Activator.getDefault().getFrameworkLog();\n \t\tif (log != null) {\n \t\t\tjava.io.File file = log.getFile();\n \t\t\tif (file != null)\n \t\t\t\treturn new Path(file.getAbsolutePath());\n \t\t}\n \t\tif (location == null)\n \t\t\tthrow new IllegalStateException(CommonMessages.meta_instanceDataUnspecified);\n \t\treturn location.append(F_META_AREA).append(F_LOG);\n \t}", "public java.sql.Timestamp getLogdate()\n {\n return logdate; \n }", "public SegaLogger getLog(){\r\n\t\treturn log;\r\n\t}", "public int getTrajectoryID() {\n return trajectoryid;\n }", "TrackerTableChangeLog loadTrackerTableChangeLog(final Integer id);", "private final Log getLog() {\r\n return this.log;\r\n }", "private String getLog() {\n\n\t\tNexTask curTask = TaskHandler.getCurrentTask();\n\t\tif (curTask == null || curTask.getLog() == null) {\n\t\t\treturn \"log:0\";\n\t\t}\n\t\tString respond = \"task_log:1:\" + TaskHandler.getCurrentTask().getLog();\n\t\treturn respond;\n\t}", "public CallLog findCallLogFromCallId(String callId);", "private final Log getLogBase() {\r\n return this.logBase;\r\n }", "TradeRoute(int anId){\n //query database for an existing trade route with the passed ID\n String routeQuery = \"select market_1, market_2, id from trade_routes where id = \"+anId;\n ResultSet theExistingRoute = NRFTW_Trade.dBQuery(routeQuery);\n //if one exists\n //add the start and end points to the object\n //and set the object ID\n try{\n theExistingRoute.next();\n startPoint = theExistingRoute.getString(1);\n endPoint = theExistingRoute.getString(2);\n id = theExistingRoute.getInt(3);\n }catch(SQLException ex){\n System.out.println(ex);\n }\n //if not\n //do nothing\n }", "public String get_log(){\n }", "TrackerTableChangeLog getTrackerTableChangeLog(final Integer id);", "public abstract long getTrace();", "LogRecorder getLogRecorder();", "LogRecorder getLogRecorder();", "List<UserPosition> getUserPositionByIdTravel(Long id_travel);", "public Long getRouteid() {\n return routeid;\n }", "public Log log() {\n return _log;\n }", "public void setSyncToMachineHistory(final long lngPvLogId) throws SynchronizationException {\n\t \n PVLoggerDataSource srcPvLog = new PVLoggerDataSource(lngPvLogId);\n this.mdlBeamline = srcPvLog.setModelSource(this.smfSeq, this.mdlBeamline);\n this.mdlBeamline.resync();\n\t}", "@Override\n\tpublic CreditrepayplanLog getLogInstance() {\n\t\treturn new CreditrepayplanLog();\n\t}", "long getFirstLogIndex();", "String getGlJournalId();", "private void getOrderDetailLatLng(Long orderId) {\n new FetchOrderDetailLngLat(orderId, new InvokeOnCompleteAsync<List<String>>() {\n @Override\n public void onComplete(List<String> latLng) {\n double lat = Double.valueOf(latLng.get(0) == null ? \"0\" : latLng.get(0));\n double lng = Double.valueOf(latLng.get(1) == null ? \"0\" : latLng.get(1));\n if (lat != 0 && lng != 0) {\n orderDetail.getBillingAddress().setLatitude(lat);\n orderDetail.getBillingAddress().setLongitude(lng);\n }\n }\n\n @Override\n public void onError(Throwable e) {\n LoggerHelper.showErrorLog(\"Error: \" + e);\n }\n });\n }", "public String getLovId() {\r\n\t\treturn lovId;\r\n\t}", "public int getId() {\n\t\treturn _dmHistoryMaritime.getId();\n\t}", "public LogModel[] getLogModel() {\n return localLogModel;\n }", "public static void printLog(int id) \n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\tConnection connection = \n\t\t\t\t\t\tDriverManager.getConnection(jdbcUrl, jdbcUser, jdbcUserPassword);\n\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\tString allCustomersQuery = \"SELECT * FROM Logs where userID=\"+id;\n\t\t\t\n\t\t\t\tResultSet resultSet = statement.executeQuery(allCustomersQuery);\n\t\t\t\tint ind =0;\n\t\t\t\twhile(resultSet.next())\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(ind+\") Id: \" + resultSet.getInt(\"UserID\")+\", level: \"+resultSet.getInt(\"levelID\")+\", score: \"+resultSet.getInt(\"score\")+\", moves: \"+resultSet.getInt(\"moves\")+\", time: \"+resultSet.getDate(\"time\"));\n\t\t\t\t\tind++;\n\t\t\t\t}\n\t\t\t\tresultSet.close();\n\t\t\t\tstatement.close();\t\t\n\t\t\t\tconnection.close();\t\t\n\t\t\t}\n\t\t\t\n\t\t\tcatch (SQLException sqle) {\n\t\t\t\tSystem.out.println(\"SQLException: \" + sqle.getMessage());\n\t\t\t\tSystem.out.println(\"Vendor Error: \" + sqle.getErrorCode());\n\t\t\t}\n\t\t\tcatch (ClassNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "private Log getAnnotationLog(JoinPoint joinPoint) {\n Signature signature = joinPoint.getSignature();\n MethodSignature methodSignature = (MethodSignature) signature;\n Method method = methodSignature.getMethod();\n\n if (method != null) {\n return method.getAnnotation(Log.class);\n }\n return null;\n }", "TrackerHistory getTrackerHistory(final Integer id);", "public String getLog();", "public Map<String, String> getTraceContext() {\n if (this.tracing == null) {\n DDLogger.getLoggerImpl().debug(\"No tracing context; unable to get Trace ID\");\n return null;\n }\n return this.tracing.getLogCorrelationTraceAndSpanIDsMap();\n }", "FactRoomLog selectByPrimaryKey(Integer id);", "List<LogEntry> getLogEntries(Long issueId);", "public Long getRoomstlogid()\n {\n return roomstlogid; \n }", "public Log getLog() {\r\n return this.delegate.getLog();\r\n }", "public Integer getIdTravel() {\r\n return idTravel;\r\n }", "public String getLogDestination() {\n return this.logDestination;\n }", "@RequestMapping(value=\"/orderentry/orderlog/{orderLogId}\", method= RequestMethod.GET)\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@ApiOperation(value = \"Get Order Entries based on log id\")\n\t@ApiResponses(value = {\n\t\t\t@ApiResponse(code = 200, message = \"Ok\"),\n\t\t\t@ApiResponse(code = 400, message = \"Bad / Invalid input\"),\n\t\t\t@ApiResponse(code = 401, message = \"Authorization failed\"),\n\t\t\t@ApiResponse(code = 404, message = \"Resource not found\"),\n\t\t\t@ApiResponse(code = 500, message = \"Server error\"),\n\t})\n\tpublic List<OrderEntry> getOrderEntriesByOrderLogId(\n\t\t\t@PathVariable(\"orderLogId\") @ApiParam(\"order log id\") final Integer orderLogId) {\n\t\t\n\t\tList<OrderEntry> orderEntryList = orderEntryService.getOrderEntriesByOrderLogId(orderLogId);\n\t\treturn orderEntryList;\n\t}", "public LocationInfoHandler getLocationInfo (long id){\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tCursor cursor = db.query( table_locationInfo, new String[] { \n\t\t\t\tkey_id, key_base_id, key_date_entry, key_content, key_title, key_location_id, key_image}, key_id + \"=?\", \n\t\t\t\tnew String[]{ String.valueOf(id) } , null, null, null, null);\n\t\tif(cursor != null)\n\t\t\tcursor.moveToFirst();\n\t\tLocationInfoHandler locationInfoHandlerArray = new LocationInfoHandler(\n\t\t\t\tcursor.getInt(0), \n\t\t\t\tcursor.getInt(1), \n\t\t\t\tcursor.getString(2), \n\t\t\t\tcursor.getString(3), \n\t\t\t\tcursor.getString(4), \n\t\t\t\tcursor.getInt(5), \n\t\t\t\tconvertToBitmap(cursor.getBlob(6))\n\t\t\t\t);\n\t\tdb.close();\n\t\treturn locationInfoHandlerArray; \n\t}", "public Object getLocationInstanceReportRecord() {\n return locationInstanceReportRecord;\n }", "@Override\n\tpublic PositionData getLatestPositionInfo(String terminalId) {\n\t\ttry {\n\t\t\tList<PositionData> position_list = positionDataDao.findByHQL(\"from PositionData where tid = '\" + terminalId + \"'\");\n\t\t\tif(position_list.size()>0){\n\t\t\t\tPositionData latest_data = position_list.get(0);\n\t\t\t\tif(position_list.size()>1){\n\t\t\t\t\tfor(int i=1;i<position_list.size();i++){\n\t\t\t\t\t\tif(position_list.get(i).getDate().compareTo(latest_data.getDate())>0)\n\t\t\t\t\t\t\tlatest_data = position_list.get(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn latest_data;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn null;\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}" ]
[ "0.6356155", "0.61300045", "0.60948104", "0.6083379", "0.60278624", "0.59081346", "0.5874241", "0.586586", "0.58555084", "0.5663428", "0.5587695", "0.5363515", "0.5361308", "0.5359469", "0.5281506", "0.5256995", "0.5253802", "0.52395207", "0.5187621", "0.5181455", "0.51562375", "0.5151314", "0.51470506", "0.51269126", "0.51252645", "0.512126", "0.5081653", "0.50779957", "0.5067829", "0.5067286", "0.505226", "0.504576", "0.5018386", "0.49877042", "0.49675283", "0.4962553", "0.49510416", "0.49412772", "0.49124685", "0.48704463", "0.48556495", "0.48555994", "0.48495013", "0.48446485", "0.48440418", "0.4819932", "0.48124626", "0.48059568", "0.48057428", "0.4795915", "0.4795615", "0.47889984", "0.4774376", "0.47455537", "0.4745032", "0.474343", "0.47387773", "0.47115618", "0.4690516", "0.46816844", "0.46756467", "0.46745908", "0.46711463", "0.46695557", "0.46671683", "0.46603793", "0.46576196", "0.46519783", "0.46499783", "0.46472228", "0.46433124", "0.4643038", "0.46388808", "0.46388808", "0.46284848", "0.46270633", "0.46250215", "0.46186295", "0.46184146", "0.46168014", "0.46165076", "0.4612019", "0.4608567", "0.4584934", "0.4576344", "0.457186", "0.4562535", "0.45506844", "0.45331296", "0.4531119", "0.45193774", "0.45189476", "0.45182016", "0.45108303", "0.45086437", "0.45080066", "0.45059556", "0.44990522", "0.44988936", "0.44938877" ]
0.8135519
0
Saves a jbdTravelPointLog2013's information
public void saveJbdTravelPointLog2013(JbdTravelPointLog2013 jbdTravelPointLog2013);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveJbdTravelPoint2014(JbdTravelPoint2014 jbdTravelPoint2014);", "void saveTrip(Trip parTrip);", "void saveLog(LogInfo logText);", "public void saveJfiPayLog(JfiPayLog jfiPayLog);", "LogRecord saveLog(LogRecord logRecord);", "public void save(SystenLogInfo osInfo, String string) {\n\t\t\n\t}", "void save();", "void save();", "void save();", "private void save(JTour jTour){\n if(jTour.save()>0){\n for(JPlace jPlace : jTour.getPlaces()){\n if(jPlace.save() > 0){\n //u principu bi trebala biti samo jedna lokacija u placu\n jPlace.getLocations().get(0).save();\n }\n }\n }\n\n }", "void saveCurrentStation();", "public void saveToFile() {\n FileOutputStream fos = null;\n try {\n //write the object into file\n fos = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(travelGUI.getTravelAgent());\n oos.flush();\n oos.close();\n }\n catch (IOException ioe) {\n System.out.println(ioe.getMessage());\n if (fos != null) {\n try {\n fos.close();\n }\n catch (IOException ioe2) {\n System.out.println(ioe2.getMessage());\n }\n }\n return;\n }\n finally {\n if (fos != null) {\n try {\n fos.close();\n }\n catch (IOException ioe2) {\n System.out.println(ioe2.getMessage());\n }\n }\n }\n if (fos != null) {\n try {\n fos.close();\n }\n catch (IOException ioe2) {\n System.out.println(ioe2.getMessage());\n }\n }\n }", "public void save() {\t\n\t\n\t\n\t}", "public static void addGpsLogDataPoint( Connection connection, OmsGeopaparazziProject3To4Converter.GpsPoint point,\n long gpslogId ) throws Exception {\n Date timestamp = TimeUtilities.INSTANCE.TIME_FORMATTER_LOCAL.parse(point.utctime);\n\n String insertSQL = \"INSERT INTO \" + TableDescriptions.TABLE_GPSLOG_DATA + \"(\" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_ID.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_LOGID.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_DATA_LON.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_DATA_LAT.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_DATA_ALTIM.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_DATA_TS.getFieldName() + //\n \") VALUES\" + \"(?,?,?,?,?,?)\";\n try (PreparedStatement writeStatement = connection.prepareStatement(insertSQL)) {\n writeStatement.setLong(1, point.id);\n writeStatement.setLong(2, gpslogId);\n writeStatement.setDouble(3, point.lon);\n writeStatement.setDouble(4, point.lat);\n writeStatement.setDouble(5, point.altim);\n writeStatement.setLong(6, timestamp.getTime());\n\n writeStatement.executeUpdate();\n }\n }", "public static void save()\n\t{\n writeMap();\n\t}", "void storeObject(PointLatLng point, String id);", "@Override\n\tpublic void save(HrUserPoint hrUserPoint) {\n\t\tthis.sessionFactory.getCurrentSession().save(hrUserPoint);\n\t}", "public void saveLogEntry(LogEntry log){\n\t\tlog.creationTime = new Date();\n\t\tgetSession().save(log);\n\t}", "public void save();", "public void save();", "public void save();", "public void save();", "@Override\n public void writeWaypoint(Waypoint waypoint) {\n }", "private void saveTLZ(String dateTime) {\n try {\n Logger.writeLog(\"TESTCASERUNNER: Saving TLZ\");\n// File tlzPath = Globals.mainActivity.getFilesDir();\n File tlzPath = Globals.mainActivity.getExternalFilesDir(null);\n client.saveLog(new File(tlzPath, MessageFormat.format(\"{0}_{1}.tlz\", this.currentTestCase, dateTime)));\n } catch (IOException ioex) {\n Logger.writeLog(\"TESTCASERUNNER: Error while saving TLZ: \" + ioex.getMessage());\n }\n }", "public void saveToLog(String log){\n \n File logfile = new File(System.getProperty(\"user.home\"), \"db_logfile\" + DwenguinoBlocklyArduinoPlugin.startTimestamp + \".txt\");\n try {\n BufferedWriter bWriter = new BufferedWriter(new PrintWriter(logfile));\n bWriter.write(log);\n bWriter.flush();\n bWriter.close();\n \n } catch (IOException ex) {\n Logger.getLogger(DwenguinoBlocklyServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "Flight saveFlight(Flight flight);", "void save() {\n gameModelPoDao.saveToFile(file.getAbsolutePath(), gameModelPo);\n }", "@Override\n public void saveData() {\n System.out.println(\"GateWay\");\n }", "@Override\n\tpublic void posSave() {\n\t\t\n\t}", "@Override\n\tpublic void posSave() {\n\t\t\n\t}", "public void save() {\r\n\t\ttry {\r\n\t\t\tthis.iniObjects();\r\n\t\t\tGxyService currentService = getGxyService();\r\n\t\t\tCompassSession session = new CobooCompass().getCompass().openSession();\r\n\t\t\tCompassTransaction tx = session.beginLocalTransaction();\r\n\t\t\tPerson person = null;\r\n\t\t\tCompassHits hits = session.find(\"ResidentpersonId:\" + this.personId.getHValue());\r\n\t\t\tif (hits.length() > 0) {\r\n\t\t\t\tCompassHit hit = hits.hit(0);\r\n\t\t\t\tperson = (Person) hit.getData();\r\n\t\t\t} else {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\tcal.setTime(this.visitTime[visitNo]);\r\n\t\t\tString StrYear = String.valueOf(cal.get(Calendar.YEAR));\r\n\r\n\t\t\tInfo gxyInfo = person.getGxyInfo();\r\n\t\t\tList<YearService> servicesOfYear = new ArrayList<YearService>();\r\n\t\t\tif (gxyInfo == null) {\r\n\t\t\t\tInfo Info = new GxyInfo();\r\n\t\t\t\tInfo.setIf_gxy(true);\r\n\t\t\t\tInfo.setDiagTime(new Date());\r\n\t\t\t\tperson.setGxyInfo(Info);\r\n\t\t\t\tgxyInfo = Info;\r\n\t\t\t} // else {\r\n\t\t\t\r\n\t\t\tservicesOfYear = gxyInfo.getYearServices();\r\n\t\t\tboolean found = false;\r\n\t\t\tfor (YearService ys : servicesOfYear) {\r\n\t\t\t\tif (ys.getYear().equals(StrYear)) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\tGxyService[] gxyServices = ys.getServicesOfYear();\r\n\t\t\t\t\tgxyServices[visitNo] = currentService;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tif (!found) {\r\n\t\t\t\tYearService newYs = new YearService();\r\n\t\t\t\tnewYs.setYear(StrYear);\r\n\t\t\t\tGxyService[] gxyServices = newYs.getServicesOfYear();\r\n\t\t\t\tfor (int i = 0; i < gxyServices.length; i++) {\r\n\t\t\t\t\tgxyServices[i] = new GxyService();\r\n\t\t\t\t\tgxyServices[i].setId(System.nanoTime());\r\n\t\t\t\t}\r\n\t\t\t\tgxyServices[visitNo] = currentService;\r\n\t\t\t\tservicesOfYear.add(newYs);\r\n\r\n\t\t\t}\r\n\t\t\t// }\r\n\t\t\tgxyInfo.setYearServices(servicesOfYear);\r\n\t\t\tperson.setGxyInfo(gxyInfo);\r\n\r\n\t\t\t// session.save(this.doctors[this.visitNo]);\r\n\t\t\t// gxyInfo.setId(System.nanoTime());\r\n\r\n\t\t\tsession.save(currentService);\r\n\t\t\tsession.save(person);\r\n\t\t\ttx.commit();\r\n\t\t\tsession.close();\r\n\t\t\tsuper.saveFile(this);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void saveJbdSendRecordHist(JbdSendRecordHist jbdSendRecordHist);", "@Override\n\tpublic void save() {\n\t\tSystem.out.println(\"save method\");\n\t}", "private void saveData() {\n }", "public void save(View view)\n {\n TextView tv_name = (TextView) findViewById(R.id.etInfopointName);\n TextView tv_file = (TextView) findViewById(R.id.etInfopointFile);\n TextView tv_qr = (TextView) findViewById(R.id.etInfopointQR);\n //Llamamos a la función de insercción en base de datos\n if(dataSource.InsertInfopoint(tv_name.getText().toString(), tv_file.getText().toString(), tv_qr.getText().toString()))\n {\n Intent resultado = new Intent();\n setResult(RESULT_OK, resultado);\n finish();\n }\n else\n {\n Intent resultado = new Intent();\n setResult(RESULT_CANCELED, resultado);\n finish();\n }\n\n }", "public Flight save(Flight flight);", "private boolean savingData(Track track){\n return sqLiteController.SAVE_TRACK_DATA(track);\n }", "void saveShipment(Shipment shipment);", "public final void save(final ByteBuffer buffer) {\r\n buffer.putInt(respawnRate);\r\n buffer.putShort((short) getId());\r\n buffer.putInt(getCount());\r\n buffer.putShort((short) (getLocation().getX() & 0xFFFF)).putShort((short) (getLocation().getY() & 0xFFFF))\r\n .put((byte) getLocation().getZ());\r\n }", "private void save() {\n var boolGrid = editor.getBoolGrid();\n //Generate a track grid from the bool frid\n var grid = Track.createFromBoolGrid(boolGrid);\n var valid = Track.isValidTrack(grid);\n if (!valid) {\n //fire an error event\n MessageBus.fire(new ErrorEvent(\"Invalid track\", \"\", 2));\n } else {\n //Save the track and pop back\n var generator = new TrackFromGridGenerator(grid);\n var track = generator.generateTrack();\n (new TrackStorageManager()).saveTrack(track);\n menu.navigationPop();\n menu.showError(new ErrorEvent(\"Saved track!\", \"\", 2, Colour.GREEN));\n }\n }", "void saveLineItem(LineItem lineItem);", "public void save() {\n }", "private void writeGPSDataToDB(String lat, String lon, String alt) {\n databaseHandler.setValueInExpInfo(lat, \"receiver_latitude\", experimentNumber);\n databaseHandler.setValueInExpInfo(lon, \"receiver_longitude\", experimentNumber);\n databaseHandler.setValueInExpInfo(alt, \"receiver_altitude\", experimentNumber);\n }", "public void save() {\n CSVWriter csvWriter = new CSVWriter();\n csvWriter.writeToTalks(\"phase1/src/Resources/Talks.csv\", this.getTalkManager()); //Not implemented yet\n }", "private boolean writeLocationObjectToDB(JacocDBLocation toAdd)\n {\n\tSQLiteDatabase db = this.getWritableDatabase();\n\n\tContentValues values = new ContentValues();\n\tvalues.put(this.LOCATION_NAME, toAdd.getLocationName());\n\tvalues.put(this.NE_REAL_LAT, toAdd.getRealLocation().getNorthEast().getLat());\n\tvalues.put(this.NE_REAL_LNG, toAdd.getRealLocation().getNorthEast().getLng());\n\tvalues.put(this.SW_REAL_LAT, toAdd.getRealLocation().getSouthWest().getLat());\n\tvalues.put(this.SW_REAL_LNG, toAdd.getRealLocation().getSouthWest().getLng());\n\tvalues.put(this.NE_MAP_LAT, toAdd.getMapLocation().getNorthEast().getLat());\n\tvalues.put(this.NE_MAP_LNG, toAdd.getMapLocation().getNorthEast().getLng());\n\tvalues.put(this.SW_MAP_LAT, toAdd.getMapLocation().getSouthWest().getLat());\n\tvalues.put(this.SW_MAP_LNG, toAdd.getMapLocation().getSouthWest().getLng());\n\tvalues.put(this.HIGH_SPEC, toAdd.getHighSpectrumRange());\n\tvalues.put(this.LOW_SPEC, toAdd.getLowSpectrumRange());\n\n\tdb.insert(TABLE_NAME, null, values);\n\tdb.close(); // Closing database connection\n\n\treturn true;\n }", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "public void saveData() {\n\t\t//place to save notes e.g to file\n\t}", "private void saveToFile(){\n this.currentMarkovChain.setMarkovName(this.txtMarkovChainName.getText());\n saveMarkovToCSVFileInformation();\n \n //Save to file\n Result result = DigPopGUIUtilityClass.saveDigPopGUIInformationSaveFile(\n this.digPopGUIInformation,\n this.digPopGUIInformation.getFilePath());\n }", "public void saveGoal(Goal goal);", "void save(JournalPage page);", "void insert(VRpDyLocationBh record);", "public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }", "public void save() {\n DataBuffer.saveDataLocally();\n\n //TODO save to db must be done properly\n DataBuffer.save(session);\n\n //TODO recording saved confirmation\n }", "@Override\n public void Save() {\n\t \n }", "public void save(PtJJdwcy entity);", "public void persistVisit(Visit visit) throws SQLException{\n\t\tpersistPlace(visit.getPlace());\n\t\t\n\t\tString readPlacePKQuery = \"SELECT id FROM Place WHERE name = ? AND descriptionFile = ?\";\n\t\tString insertVisitQuery = \"INSERT INTO Visit (visitTime, price, id_place) VALUES (?,?,?)\";\n\n\t\t//Then, get the primary key of the Place\n\t\tPreparedStatement preparedStatement = conn.prepareStatement(readPlacePKQuery);\n\t\t\n\t\tpreparedStatement.setString(1, visit.getPlace().getName());\n\t\tpreparedStatement.setString(2, visit.getPlace().getDescriptionFile());\n\t\t\n\t\tResultSet result = preparedStatement.executeQuery();\n\t\tresult.next();\n\t\t\n\t\tint placePK = result.getInt(\"id\");\n\t\t\n\t\tpreparedStatement.close();\n\n\t\t//Set visit in the database\n\t\tpreparedStatement = conn.prepareStatement(insertVisitQuery);\n\t\t\n\t\tpreparedStatement.setFloat(1, visit.getTime());\n\t\tpreparedStatement.setFloat(2, visit.getPrice());\n\t\tpreparedStatement.setInt(3, placePK);\n\n\t\tpreparedStatement.executeUpdate();\n\n\t\tpreparedStatement.close();\n\t}", "public void save() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.save(this);\r\n\t}", "public void saveComm() throws Exception {\n JFileChooser chooser = new JFileChooser();\n chooser.setFileFilter(new FileNameExtensionFilter(\"Log-Datei (*.log)\", \"log\"));\n\n File comfile = null;\n File home;\n File folder;\n Date date = Calendar.getInstance().getTime();\n DateFormat df = new SimpleDateFormat(\"yy.MM.dd-HH.mm.ss.SSS\");\n\n try {\n home = new File(System.getProperty(\"user.home\"));\n } catch (Exception e) {\n home = null;\n }\n\n if (home != null && home.exists()) {\n folder = new File(home + File.separator + \"Bike-Files\" + File.separator + \"Service_Files\");\n if (!folder.exists()) {\n if (!folder.mkdir()) {\n throw new Exception(\"Internal Error\");\n }\n }\n comfile = new File(folder + File.separator + \"CommLog_\" + df.format(date) + \".log\");\n }\n\n chooser.setSelectedFile(comfile);\n\n int rv = chooser.showSaveDialog(this);\n if (rv == JFileChooser.APPROVE_OPTION) {\n comfile = chooser.getSelectedFile();\n\n try (BufferedWriter w = new BufferedWriter(new FileWriter(comfile))) {\n CommunicationLogger.getInstance().writeFile(w);\n } catch (Exception ex) {\n LOG.severe(ex);\n }\n }\n }", "public void save() throws Exception {\n // create a File object for the output file\n File outputFile = new File(MinuteUpdater.mapDir, this.fileName);\n // outputFile.mkdirs();\n outputFile.createNewFile();\n FileOutputStream fileOutputStream = new FileOutputStream(outputFile);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n\n objectOutputStream.writeObject(this);\n objectOutputStream.close();\n }", "public void logLocation(View view) {\n writeGPSDataToDB(locationHandler.getLatitude(), locationHandler.getLongitude(), locationHandler.getAltitude());\n databaseHandler.setValueInExpInfo(((TextView) findViewById(R.id.accelerate_indicator_rec)).getText().toString(), \"receiver_orientation\", experimentNumber);\n accelerometerHandler.close();\n Toast.makeText(this, \"receivers GPS data logged\", Toast.LENGTH_SHORT).show();\n gpsLogged = true;\n }", "@Override\r\n\tpublic void save(XftPayment xtp) {\n\t\ttry {\r\n\t\t\tlogger.info(\"save..........servicr.....:\"+JSONUtils.beanToJson(xtp));\t\r\n\t\t\txftPaymentMapper.insert(xtp);\r\n\t\t}catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void saveLocation(Location newLocation) {\n FileOutputStream outputStream = null;\n Log.d(\"debugMode\", \"writing new location to memory\");\n byte[] writeLine = (\"\\n\"+ newLocation.returnFull()).getBytes();\n try {\n outputStream = openFileOutput(\"Locations.txt\", MODE_APPEND);\n outputStream.write(writeLine);\n outputStream.close();\n Log.d(\"debugMode\", \"New location saved\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void saveTimingInformation()\n\t{\n\t\ttry\n\t\t{\n\t\t\tFile saveFile = new File(\"asdasda.save\");\n\t\t\tPrintWriter writer = new PrintWriter(saveFile);\n\t\t\tif(saveFile.exists())\n\t\t\t{\n\t\t\t\tfor(QueryInfo current : queryList)\n\t\t\t\t{\n\t\t\t\t\twriter.println(current.getQuery());\n\t\t\t\t\twriter.println(current.getQueryTime());\n\t\t\t\t}\n\t\t\t\twriter.close();\n\t\t\t\tJOptionPane.showMessageDialog(getAppFrame(), queryList.size() + \" QueryInfo objects were saved\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(getAppFrame(), \"File not present. No QueryInfo objects saved\");\n\t\t\t}\n\t\t}\n\t\tcatch(IOException currentError)\n\t\t{\n\t\t\tdataController.displayErrors(currentError);\n\t\t}\n\t}", "public void saveLog(Log log) {\n\t\tsession.beginTransaction();\n\t\tsession.persist(log);\n\t\tsession.getTransaction().commit();\n\t}", "@Override\r\n\tpublic boolean savePosition(Position post) throws Exception {\n\t\treturn false;\r\n\t}", "public void writeLog(){\n\t\ttry\n\t\t{\n\t\t\tFileWriter writer = new FileWriter(\"toptrumps.log\");\n\t\t\twriter.write(log);\n\t\t\twriter.close();\n\t\t\tSystem.out.println(\"log saved to toptrumps.log\");\n\t\t\t\n\t\t\tDataBaseCon.gameInfo(winName, countRounds, roundWins);\n\t\t\tDataBaseCon.numGames();\n\t\t\tDataBaseCon.humanWins();\n\t\t\tDataBaseCon.aIWins();\n\t\t\tDataBaseCon.avgDraws();\n\t\t\tDataBaseCon.maxDraws();\n\t\t\t\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void save(XmlWriter w) throws Throwable {\n w.add(\"status\", new String[] { \"time\", new SimpleDateFormat(DateTime.DATE_TIME_FORMAT).format(_time) },\n _state);\n }", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "public void saveDetails() {\n\t\tTimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\tmodel.update(event, timelineUpdater);\n\n\t\tFacesMessage msg =\n\t\t new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking details \" + getRoom() + \" have been saved\", null);\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t}", "@Override\n\tpublic boolean saveActivityLog(PhysicalData activityLog) {\n\t\treturn mobileDao.saveActivityLog(activityLog);\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "public void saveOrUpdatePosPserver(PosPserver posPserver) throws DataAccessException\n\t{\n if(log.isDebugEnabled()){\n\t\tlog.debug(\"start saveOrUpdatePosPrinter method\");\n\t}\t\n posPserverDao.saveOrUpdate(posPserver); \n if(log.isDebugEnabled()){\n\t\tlog.debug(\"end saveOrUpdatePosPrinter method\");\n\t}\n\t}", "public void saveLogger(Logger log) {\n this.getHibernateTemplate().save(log);\n \n\t}", "@Override\n public void save() {\n\n }", "protected void save(DataOutputStream os) throws IOException {\n\n super.save(os);\n os.writeFloat(StartingFunds);\n os.writeInt(NumTestTraders);\n os.writeInt(NumSteps);\n }", "@Test\n public void storeSavesBotLocation() {\n BotMemoryRecord record = new BotMemoryRecord();\n record.store(Point.pt(5, 5));\n\n assertThat(record.getLastKnownLocation(), Matchers.is(Point.pt(5, 5)));\n }", "public void saveObject(XMLControl control, Object obj) {\n OffsetOrigin offset = (OffsetOrigin) obj;\n // save track data\n XML.getLoader(TTrack.class).saveObject(control, obj);\n // save fixed coordinates\n control.setValue(\"fixed_coordinates\", offset.isFixedCoordinates()); //$NON-NLS-1$\n // save world coordinates\n if (!offset.steps.isEmpty()) {\n Step[] steps = offset.getSteps();\n double[][] stepData = new double[steps.length][];\n for (int i = 0; i < steps.length; i++) {\n // save only key frames\n if (steps[i] == null || !offset.keyFrames.contains(i)) continue;\n OffsetOriginStep step = (OffsetOriginStep) steps[i];\n stepData[i] = new double[]{step.worldX, step.worldY};\n if (!control.getPropertyNames().contains(\"worldX\")) { //$NON-NLS-1$\n // include these for backward compatibility\n control.setValue(\"worldX\", step.worldX); //$NON-NLS-1$\n control.setValue(\"worldY\", step.worldY); //$NON-NLS-1$\n }\n }\n control.setValue(\"world_coordinates\", stepData); //$NON-NLS-1$\n }\n }", "@Override\n\tpublic int saveLog(Map map, String path, String type) {\n\t\ttry{\n\t\t\tif(StringUtils.isBlank((String) map.get(\"uploadtime\"))) {\n\t\t\t\tmap.put(\"uploadtime\", new Date());\n\t\t\t}\n\t\t\tif(StringUtils.isBlank((String) map.get(\"pictype\"))){\n\t\t\t\tmap.put(\"pictype\", type);\n\t\t\t}\t\n\t\t\tif(StringUtils.isBlank((String) map.get(\"picpath\"))||org.apache.commons.lang.StringUtils.isBlank((String) map.get(\"picspath\"))) {\n\t\t\t\tmap.put(\"picpath\",path);\n\t\t\t\tmap.put(\"picspath\", path);\n\t\t\t}\n\t\t\tString sql = \"insert into picupload (houseieee, camuuid, picname, pictype, picpath, picspath, taketime, uploadtime) values(:houseieee, :camuuid, :picname, :pictype, :picpath, :picspath, :taketime, :uploadtime)\";\t\n\t\t this.mapDao.executeSql2(sql, map);\n\t\t\t}catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\n\t\t\treturn 1;\n\t}", "int insert(HotspotLog record);", "public static void SaveProcessedData()\n\t{\n\t\tSystem.out.println(\"\\r\\n... Saving processed Data....\");\n\t\t\n\t\tString date = new SimpleDateFormat(\"yyyyMMddhhmm\").format(new Date());\n\t\tString generalInput = \"FeatureExpressionCollection=\" + FeatureExpressionCollection.GetCount() + \";\" + FeatureExpressionCollection.GetLoc() + \";\" + FeatureExpressionCollection.GetMeanLofc() + \";\" + FeatureExpressionCollection.numberOfFeatureConstants;\n\t\t\n\t\t// Save files\n\t\ttry \n\t\t{\n\t\t\tFileUtils.write(new File(date + \"_\" + featuresPath), FeatureExpressionCollection.SerializeFeatures());\n\t\t\tFileUtils.write(new File(date + \"_\" + methodsPath), MethodCollection.SerializeMethods());\n\t\t\tFileUtils.write(new File(date + \"_\" + filesPath), FileCollection.SerializeFiles());\n\t\t\tFileUtils.write(new File(date + \"_\" + generalPath), generalInput);\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\tSystem.out.println(\"ERROR: Could not save processed data files\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"... done!\");\n\t}", "int insert(PayLogInfoPo record);", "public void save(XmlWriter w) throws Throwable {\n w.add(\"log\", new String[] { \"type\", type().toString(), \"time\",\n new SimpleDateFormat(DateTime.DATE_TIME_FORMAT).format(time()) }, message());\n }", "static void writeGPXFile(Trail trail, Context context) {\r\n if(gpxParser == null)\r\n buildParser();\r\n\r\n GPX gpx = parseTrailtoGPX(trail);\r\n\r\n System.out.println(\"~~~~~~~~~~~~~~~\"+trail.getMetadata().getName());\r\n\r\n //create a new file with the given name\r\n File file = new File(context.getExternalFilesDir(null), trail.getMetadata().getName()+\".gpx\");\r\n FileOutputStream out;\r\n try {\r\n out = new FileOutputStream(file);\r\n gpxParser.writeGPX(gpx, out);\r\n } catch(FileNotFoundException e) {\r\n AlertUtils.showAlert(context,\"File not found\",\"Please notify the developers.\");\r\n } catch (TransformerException e) {\r\n AlertUtils.showAlert(context,\"Transformer Exception\",\"Please notify the developers.\");\r\n } catch (ParserConfigurationException e) {\r\n AlertUtils.showAlert(context,\"Parser Exception\",\"Please notify the developers.\");\r\n }\r\n }", "private void writeToFile(String pathName,Object logs) {\r\n try {\r\n File save = new File(pathName);\r\n FileOutputStream fileOutputStream = new FileOutputStream(save);\r\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\r\n objectOutputStream.writeObject(logs);\r\n // System.out.println(\"write successful for\"+pathName);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\r\n\tpublic void save(SyLoginLog log) {\n\t\tsyLoginLogDao.insert(log);\r\n\t}", "public void save(Person p) {\n\n\t}", "public void saveWalk() {\n try {\n long id = this.currentRoute.getId();\n DatabaseHandler db = new DatabaseHandler(this.getApplicationContext());\n currentRoute.setWaypoints(db.getAllWaypoints(id));\n\n HTTPPostSender postSender = new HTTPPostSender();\n postSender.buildString(currentRoute, this.getContentResolver());\n postSender.cm = (ConnectivityManager) getSystemService(this.getApplicationContext().CONNECTIVITY_SERVICE);\n\n\n\n\n if(isOnline()) {\n postSender.execute(this.currentRoute);\n Toast.makeText(this.getApplicationContext(),\"Walk successfully sent to server\",Toast.LENGTH_LONG).show();\n\n } else {\n //oh god why..\n Toast.makeText(this.getApplicationContext(),\"Something bad happened\",Toast.LENGTH_LONG).show();\n }\n } catch(Exception e) {\n Toast.makeText(this.getApplicationContext(),e.getMessage(),Toast.LENGTH_LONG).show();\n }\n }", "void save(Bill bill);", "public void saveCurrentSteps(User user, float distance) {\n TrackingRecord updateRecord = user.getRecords().todayRecord(distance);\n Map<String, Object> data = new HashMap<>();\n data.put(\"records\", updateRecord);\n\n fStore.collection(DB_NAME).document(getID()).set(data, SetOptions.merge());\n }", "@Override\r\n\tpublic void SavePlayerData() {\r\n\r\n Player player = (Player)Player.getPlayerInstance();\r\n\t\t\r\n\t\tString file = \"PlayerInfo.txt\";\r\n\t\tString playerlifepoint = \"\"+player.getLifePoints();\r\n\t\tString playerArmore = player.getArmorDescription();\r\n\t\ttry{\r\n\t\t\tPrintWriter print = new PrintWriter(file);\r\n\t\t\tprint.println(playerlifepoint);\r\n\t\t\tprint.println(playerArmore);\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public boolean save(UserFootPoint footPoint) {\n\t\ttry {\n\t\t\tthis.footPointDao.save(footPoint);\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "void saveCity(City city);", "public void savePosPserver(PosPserver posPserver) throws DataAccessException\n\t{\n\t \tif(log.isDebugEnabled()){\n\t\t\tlog.debug(\"start savePosPserver method\");\n\t\t}\n\t \tposPserverDao.save(posPserver);\n\t \tif(log.isDebugEnabled()){\n\t\t\tlog.debug(\"end savePosPserver method\");\n\t\t}\t\n\t}", "private void save() {\n Saver.saveTeam(team);\n }", "public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}", "public boolean save();", "public void saveData(){\n SerializableManager.saveSerializable(this,user,\"userInfo.data\");\n SerializableManager.saveSerializable(this,todayCollectedID,\"todayCollectedCoinID.data\");\n SerializableManager.saveSerializable(this,CollectedCoins,\"collectedCoin.data\");\n uploadUserData uploadUserData = new uploadUserData(this);\n uploadUserData.execute(this.Uid);\n System.out.println(Uid);\n\n }", "protected abstract boolean saveFields(Map changedFields_p) throws Exception;" ]
[ "0.74333876", "0.6330505", "0.62523997", "0.6219928", "0.6194801", "0.6028772", "0.5934333", "0.5934333", "0.5934333", "0.59029156", "0.5899094", "0.5885735", "0.588562", "0.5868885", "0.5864167", "0.585823", "0.5824451", "0.5791983", "0.57918036", "0.57918036", "0.57918036", "0.57918036", "0.5790121", "0.5763464", "0.57481706", "0.57164097", "0.5699765", "0.5696813", "0.5663198", "0.5663198", "0.5660115", "0.5659787", "0.5646455", "0.5639957", "0.56234384", "0.5597614", "0.5596324", "0.5591152", "0.5572536", "0.5563345", "0.5560491", "0.55535907", "0.553924", "0.5523618", "0.55233455", "0.55202526", "0.55202526", "0.5515607", "0.5513454", "0.5498626", "0.54975253", "0.54957145", "0.549444", "0.54887074", "0.54862994", "0.54846126", "0.5463103", "0.54588574", "0.5457417", "0.5452865", "0.5447908", "0.544573", "0.54449034", "0.5437304", "0.5417273", "0.5415608", "0.5413039", "0.5404398", "0.5403052", "0.5402624", "0.53982025", "0.5395341", "0.5395341", "0.53908116", "0.53860795", "0.53813744", "0.53806114", "0.5370769", "0.5368833", "0.536535", "0.5364029", "0.5363156", "0.53631365", "0.53564894", "0.5356487", "0.5354552", "0.5353379", "0.5350786", "0.53465515", "0.53434885", "0.5339951", "0.53385854", "0.5332712", "0.5330291", "0.532754", "0.53206253", "0.53184634", "0.5318063", "0.5318043", "0.53179246" ]
0.8317734
0
Removes a jbdTravelPointLog2013 from the database by logId
public void removeJbdTravelPointLog2013(final String logId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeJfiPayLog(final Long logId);", "void deleteTrackerUserLocationLog(final Integer id);", "public int removeLog(int logID) {\n\n int count = 0;\n LogDAO ldao = new LogDAO();\n ldao.connect();\n try {\n String query = \"DELETE FROM log_user WHERE log_id=(?);\";\n PreparedStatement pst = connection.prepareStatement(query);\n pst.setInt(1, logID+1);\n count = pst.executeUpdate();\n ldao.closeConnection();\n return count;\n } catch (SQLException ex) {\n ldao.closeConnection();\n System.out.println(\"SQLException in removeLog(int logID)\");\n }\n return count;\n\n }", "public JbdTravelPointLog2013 getJbdTravelPointLog2013(final String logId);", "int delTravelByIdRoute(Long id_route);", "int delTravelById(Long id_travel) throws TravelNotFoundException;", "@Override\r\n\tpublic void deleteLog(int id) throws RuntimeException {\n\t\tlogMapper.deleteLog(id);\r\n\t}", "int delWayBillByIdTravel(Long id_travel);", "int delRouteStoreByIdRoute(Long id_route);", "void deleteTrackerTableChangeLog(final Integer id);", "public void eliminarTripulante(Long id);", "public void Del(String id) {\n\t\tsql = \"delete from throw_history where throw_history_id='\"+id+\"'\";\n\t\tdao.executeUpdate(sql);\n\t\tSystem.out.println(\"=del===\"+sql);\n\t}", "void deleteTrackerCity(final Integer id);", "public void removeJbdSendRecordHist(final String id);", "public void removeHistory(long _rowIndex) {\n\t// Delete the row.\n\t SQLiteDatabase db = SQLiteDatabase.openDatabase(context.getDatabasePath(DATABASE_NAME).getAbsolutePath(), null, SQLiteDatabase.CREATE_IF_NECESSARY);\n \n String sql = \"Delete from airtime_history where _id = \" + _rowIndex; \n db.execSQL(sql);\n db.close();\n }", "public void removeCallLog(CallLog callLog);", "void deleteTrackerHistory(final Integer id);", "void deleteLocationById(long id);", "public void deleteByVaiTroID(long vaiTroId);", "void remover(Long id);", "void remover(Long id);", "@Delete({ \"delete from h5_app_download_log\", \"where id = #{id,jdbcType=BIGINT}\" })\n\tint deleteByPrimaryKey(Long id);", "@Override\n\tpublic int delete(String id) {\n\t\treturn sysActionLogDao.delete(id);\n\t}", "public abstract boolean delete(Log log) throws DataException;", "int delTravelByIdUser(Long id_user);", "void removeById(Long id) throws DaoException;", "void remove(Long id);", "void remove(Long id);", "public void removeByCompanyId(long companyId);", "void deleteRoutePoint(String routePoint, RouteDTO routeDTO);", "@Override\n\tpublic void deleteLog(boardDTO board) throws Exception {\n\t\tsqlSession.delete(namespace+\".log_delete\",board);\n\t\tsqlSession.delete(namespace+\".deleteHashtag\",board);\n\t\tsqlSession.delete(namespace+\".deleteFile\",board);\n\t\tsqlSession.delete(namespace+\".likedelete\",board);\n\t}", "public void removeByTodoId(long todoId);", "public void removeByid_(long id_);", "public int deleteByPrimaryKey(String id) {\r\n RAlarmLog key = new RAlarmLog();\r\n key.setId(id);\r\n int rows = getSqlMapClientTemplate().delete(\"R_ALARM_LOG.ibatorgenerated_deleteByPrimaryKey\", key);\r\n return rows;\r\n }", "public void deleteRuleLogById(int id) {\n\t\tadminLogDao.delete(id);\n\t}", "void eliminar(Long id);", "@Override\n\tpublic void deletebyUserId(int userId) {\n\t\tthis.smsActivityLogDao.deletebyUserId(userId);\n\t}", "boolean removeObject(PointLatLng point, String id);", "public void eliminar(Long id) throws AppException;", "public void remove(int objectId) throws SQLException;", "public void delete(int id) {\n database.delete(DatabaseSQLiteHelper.TABLE_SIGN_LOGS, DatabaseSQLiteHelper.LOGS_ID + \" = \" + id, null);\n }", "public void deleteLogico(Long itemRetiradaId) {\n\t\tItemRetirada itemRetirada = this.repository.findById(itemRetiradaId).get();\n\t\tthis.itemService.atualizaEstoque(itemRetirada, Servico.ENTRADA);\n\t\tthis.repository.deleteLogico(itemRetiradaId);\n\t}", "public void deleteUserProcessLog( String sessionId )\n\t{\n\t\tfor ( Iterator<Entry<String, Map<String, String>>> it = this.userProcessLogMap.entrySet().iterator(); it.hasNext(); )\n\t\t{\n\t\t\tEntry<String, Map<String, String>> entry = it.next();\n\t\t\tif ( entry.getKey().equals( sessionId ) )\n\t\t\t{\n\t\t\t\tit.remove();\n\t\t\t}\n\t\t}\n\t}", "public void deleteProcessLog( String processKey )\n\t{\n\t\tfor ( Iterator<Entry<String, ProcessLogHelper>> it = this.processLogMap.entrySet().iterator(); it.hasNext(); )\n\t\t{\n\t\t\tEntry<String, ProcessLogHelper> entry = it.next();\n\t\t\tif ( entry.getKey().equals( processKey ) )\n\t\t\t{\n\t\t\t\tit.remove();\n\t\t\t}\n\t\t}\n\t}", "void deleteById(long id);", "int delWayBillById(Long id_wayBill) throws WayBillNotFoundException;", "public void deleteTour(String id) {\n tourRepository.delete(Long.parseLong(id));\n }", "public boolean deleteChatLog(ChatLog cl)\n\t{\n\t\treturn chatLog.remove(cl);\n\t}", "public void DeleteActivity(iconnectionpool connectionPool, String id){\n try{\n Connection con=null;\n //get connection from Pool\n con=connectionPool.getConnection();\n Statement stmt=con.createStatement(); \n String sql=\"delete from similarplaces where id=\"+id;\n stmt.executeUpdate(sql); \n }catch(Exception e){}\n }", "void deleteById(Long id);", "void deleteById(Long id);", "void deleteById(Long id);", "void deleteById(Long id);", "@Override\n\tpublic void remover(int idServico) throws SQLException {\n\t\t\n\t}", "@Delete({\n \"delete from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n int deleteByPrimaryKey(BUMBCheckingLogKey key);", "@Override\n public void deleteBacklog(String id) {\n backlogRepository.delete(id);\n }", "@Override //删除id\n\tpublic void deletePoInfoById(String poinid) throws Exception {\n\t\tdao.delete(\"PoInfoMapper.deletePoInfoById\", poinid);\n\t}", "@Indexable(type = IndexableType.DELETE)\n\t@Override\n\tpublic WFMS_Position_Audit deleteWFMS_Position_Audit(String paId)\n\t\tthrows PortalException {\n\t\treturn wfms_Position_AuditPersistence.remove(paId);\n\t}", "public void saveJbdTravelPointLog2013(JbdTravelPointLog2013 jbdTravelPointLog2013);", "int delRouteById(Long id_route) throws RouteNotFoundException;", "static void remove(final LogContext logContext) {\n final Logger logger = logContext.getLoggerIfExists(NAME);\n if (logger != null) {\n detach(logger);\n }\n }", "public void deleteEmployeeTimeInfoById(int id) {\r\n\t\tOptional<TimeInformation> employeeTime = repository.findById(id); \r\n\t\tif(employeeTime.isPresent()) {\r\n\t\t\trepository.deleteById(id);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t}", "void removeProblem(String stopOrLineId, Date time) throws Exception;", "public static boolean delete(long id) {\r\n String sql = null;\r\n boolean ret = false;\r\n Statement theStatement = null;\r\n Connection theConnection = null;\r\n\r\n try {\r\n theConnection = AdminConnectionManager.getConnection(ME + \".delete\");\r\n theStatement = theConnection.createStatement();\r\n sql = \"delete from TaskTimeElement where \" +\r\n \"ID = \" + id;\r\n theStatement.executeUpdate(sql);\r\n ret = true;\r\n }\r\n catch (SQLException e) {\r\n Trace.error(\"sql=\" + sql, e);\r\n }\r\n finally {\r\n if (theStatement != null) {\r\n try {\r\n theStatement.close();\r\n }\r\n catch (SQLException e) {}\r\n }\r\n if (theConnection != null)\r\n AdminConnectionManager.releaseConnection(theConnection);\r\n }\r\n return ret;\r\n }", "@Override\n public void deleteFailedWorklog(Integer worklogId) {\n\n try (Connection connection = database.connect();\n PreparedStatement stmt = connection.prepareStatement(DELETE_FAILED_WORKLOG_SQL)) {\n stmt.setInt(1, worklogId);\n stmt.executeUpdate();\n } catch (SQLException e) {\n logger.logToDatabase(getClass().getName(), \"deleteFailedWorklog\", e);\n throw new InternalServerErrorException(e.getMessage());\n }\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete ProjectTransactionRecord : {}\", id);\n projectTransactionRecordRepository.delete(id);\n }", "int delWaybillByIdStore(Long id_store);", "private void deleteAuditTrailEntity(AuditTrailEntityDAO dao, IAuditTrailEntity trailEntity)\n {\n dao.delete(trailEntity);\n }", "public void delete() {\n Utils.inWriteLock(leaderIsrUpdateLock, () -> {\n assignedReplicaMap.clear();\n Set<Replica> inSyncReplicas = Sets.newHashSet();\n leaderReplicaIdOpt = Optional.empty();\n logManager.deleteLog(new TopicAndPartition(topic, partitionId));\n// error(String.format(\"Error deleting the log for partition <%s,%d>\", topic, partitionId), e);\n// Runtime.getRuntime().halt(1);\n return null;\n });\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete DqStandardDetailsEntityTime : {}\", id);\n dqStandardDetailsEntityTimeRepository.deleteById(id);\n }", "void deleteTrackerLocationGetType(final Integer id);", "public void deleteProjectRecord(int pgId) {\n String sql = \"DELETE FROM Project_Commit_Record WHERE pgid=?\";\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, pgId);\n preStmt.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void remove(Long id) {\n Track trackToDelete = trackRepository\n .findById(id)\n .orElseThrow(() -> logicExceptionComponent.getExceptionEntityNotFound(\"Track\", id));\n\n /**\n * Con la entidad encontrada en la DB (trackToDelete) se le indica el repository que debe hacer el borrado\n * de este objeto.\n */\n trackRepository.delete(trackToDelete);\n }", "int deleteByExample(PayLogInfoPoExample example);", "void deleteDag(Long id);", "public boolean delLoc(int _id) {\n return db.delete(DATABASE_TABLE_LOC, KEY_LOC_ROWID + \"=\" + _id, null) > 0;\n }", "public void deleteById(Long id);", "public void deleteLocation(int id){\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tdb.delete(table_location, key_id + \" = ? \", new String [] { String.valueOf(id) });\n\t\tdb.close();\n\t}", "boolean excluir(long id);", "@Override\r\n public void removerQuestaoDiscursiva(long id) throws Exception {\n rnQuestaoDiscursiva.remover(id);\r\n\r\n }", "public void eliminarIntemediaPersonaMovilidad(Movilidad mov){\n try{\n String query = \"DELETE FROM PERSONA_MOVILIDAD WHERE ID_MOVILIDAD = \"+ mov.getIdMovilidad();\n Query q = getSessionFactory().getCurrentSession().createSQLQuery(query);\n q.executeUpdate();\n }catch(Exception e){\n e.printStackTrace();\n }\n \n }", "void removeLog(byte[] key);", "void removeDetail(String id);", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete PositionMove : {}\", id);\n positionMoveRepository.delete(id);\n }", "public Integer Excluir(int ID){\n\n //EXCLUINDO REGISTRO E RETORNANDO O NÚMERO DE LINHAS AFETADAS\n return databaseUtil.GetConexaoDataBase().delete(\"tb_log\",\"log_ID = ?\", new String[]{Integer.toString(ID)});\n }", "public void deleteByChucVuID(long chucVuId);", "void deleteTrackerProjects(final Integer id);", "void deleteByProjectId(Long projectId);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);" ]
[ "0.71807164", "0.6522223", "0.6421567", "0.62926984", "0.62137526", "0.61158925", "0.5989459", "0.5953871", "0.58729243", "0.58555675", "0.5826477", "0.57705826", "0.57328403", "0.5702899", "0.56693363", "0.566886", "0.5667434", "0.56598884", "0.56510067", "0.56422544", "0.56422544", "0.56414336", "0.55830026", "0.5573712", "0.55574363", "0.5555725", "0.55525696", "0.55525696", "0.5529329", "0.55165714", "0.5513035", "0.54921526", "0.54816794", "0.5464726", "0.546119", "0.54202217", "0.5396717", "0.5378732", "0.53786504", "0.53695965", "0.536021", "0.53399277", "0.53365415", "0.5324298", "0.5321868", "0.5310117", "0.5309718", "0.5288503", "0.5264998", "0.52581817", "0.52581817", "0.52581817", "0.52581817", "0.52383876", "0.52297", "0.5226055", "0.521692", "0.5216535", "0.52149165", "0.521428", "0.52076465", "0.52061003", "0.5205228", "0.52043754", "0.51940453", "0.519363", "0.5191754", "0.5191723", "0.5189967", "0.5187116", "0.5182579", "0.51823884", "0.5181368", "0.5175791", "0.51754665", "0.51728964", "0.51616776", "0.51592994", "0.51481026", "0.51476", "0.5142059", "0.51374066", "0.51300484", "0.51292163", "0.5116754", "0.51156515", "0.5110879", "0.51067907", "0.5097642", "0.5097642", "0.5097642", "0.5097642", "0.5097642", "0.5097642", "0.5097642", "0.5097642", "0.5097642", "0.5097642", "0.5097642", "0.5097642" ]
0.8803687
0
Crear Objeto Producto y sus Observadores .
public static void main(String args[]) { Producto p = new Producto("123456", 1987.29f, 2123.10f); ObservadorCodigoBarras ObsCodigo = new ObservadorCodigoBarras(); ObservadorCosto ObsCosto = new ObservadorCosto(); // Agregando los Observadores para Producto! p.addObserver(ObsCodigo); p.addObserver(ObsCosto); // Crear y Manipular Cambios en el Producto. System.out.println("----Cambio de Codigo Barras---"); p.setCodigoBarra("654321"); System.out.println("----Cambio de Costo---"); p.setCosto(18879.6f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Producto (){\n\n }", "public Producto() {\r\n }", "public ProductoDTO(){\r\n\t\t\r\n\t}", "public Producto() {\r\n\t\tsuper();\r\n\t\tID = getIDnuevoProducto();\r\n\t\tnombre = \"\";\r\n\t\tvendedor = \"\";\r\n\t\tprecio = 0;\r\n\t\tcantidad = 0;\r\n\t\tenVenta = false;\r\n\t\tdescripcion = \"\";\r\n\t\tcategorias = new Categoria();\r\n\t\tcaracteristicas = null;//TODO CORREGIR\r\n\t}", "public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }", "public Productos() {\n super();\n // TODO Auto-generated constructor stub\n }", "@Override\n\tpublic DAOProducto crearDAOProductoAlmacen() {\n\t\treturn new DAOProducto();\n\t}", "public Venta(Producto producto,Cliente comprador,Cliente vendedor){\n this.fechaCompra=fechaCompra.now();\n this.comprador=comprador;\n this.vendedor=vendedor;\n this.producto=producto;\n \n }", "public void Addproduct(Product objproduct) {\n\t\t\n\t}", "public void agregar(Producto producto) throws BusinessErrorHelper;", "Operacion createOperacion();", "public Funcionalidad() {\n Cajero cajero1 = new Cajero(\"Pepe\", 2);\n empleados.put(cajero1.getID(), cajero1);\n Reponedor reponedor1 = new Reponedor(\"Juan\", 3);\n empleados.put(reponedor1.getID(), reponedor1);\n Producto producto1 = new Producto(\"Platano\", 10, 8);\n productos.add(producto1);\n Perecedero perecedero1 = new Perecedero(LocalDateTime.now(), \"Yogurt\", 10, 8);\n }", "private static void createProducts() {\n productRepository.addProduct(Product.builder()\n .name(\"Milk\")\n .barcode(new Barcode(\"5900017304007\"))\n .price(new BigDecimal(2.90))\n .build()\n );\n productRepository.addProduct(Product.builder()\n .name(\"Butter\")\n .barcode(new Barcode(\"5906217041483\"))\n .price(new BigDecimal(4.29))\n .build()\n );\n productRepository.addProduct(Product.builder()\n .name(\"Beer\")\n .barcode(new Barcode(\"5905927001114\"))\n .price(new BigDecimal(2.99))\n .build()\n );\n }", "public BuscarProducto(AgregandoProductos ventanaPadre) {\n this.daoProductos = new ProductoJpaController();\n this.ventanaPadre = ventanaPadre;\n initComponents();\n this.setupComponents();\n }", "Obligacion createObligacion();", "OperacionColeccion createOperacionColeccion();", "@Override\n\tpublic void entregarProductos(AgenteSaab a, Oferta o) {\n\t\t\n\t}", "@Test\r\n public void testCreate() throws Exception {\r\n PodamFactory pf=new PodamFactoryImpl();\r\n MonitoriaEntity nuevaEntity=pf.manufacturePojo(MonitoriaEntity.class);\r\n MonitoriaEntity respuestaEntity=persistence.create(nuevaEntity);\r\n Assert.assertNotNull(respuestaEntity);\r\n Assert.assertEquals(respuestaEntity.getId(), nuevaEntity.getId());\r\n Assert.assertEquals(respuestaEntity.getIdMonitor(), nuevaEntity.getIdMonitor());\r\n Assert.assertEquals(respuestaEntity.getTipo(), nuevaEntity.getTipo());\r\n \r\n \r\n }", "public BaseDatosProductos iniciarProductos() {\n\t\tBaseDatosProductos baseDatosProductos = new BaseDatosProductos();\n\t\t// construcion datos iniciales \n\t\tProductos Manzanas = new Productos(1, \"Manzanas\", 8000.0, 65);\n\t\tProductos Limones = new Productos(2, \"Limones\", 2300.0, 15);\n\t\tProductos Granadilla = new Productos(3, \"Granadilla\", 2500.0, 38);\n\t\tProductos Arandanos = new Productos(4, \"Arandanos\", 9300.0, 55);\n\t\tProductos Tomates = new Productos(5, \"Tomates\", 2100.0, 42);\n\t\tProductos Fresas = new Productos(6, \"Fresas\", 4100.0, 3);\n\t\tProductos Helado = new Productos(7, \"Helado\", 4500.0, 41);\n\t\tProductos Galletas = new Productos(8, \"Galletas\", 500.0, 8);\n\t\tProductos Chocolates = new Productos(9, \"Chocolates\", 3500.0, 806);\n\t\tProductos Jamon = new Productos(10, \"Jamon\", 15000.0, 10);\n\n\t\t\n\n\t\tbaseDatosProductos.agregar(Manzanas);\n\t\tbaseDatosProductos.agregar(Limones);\n\t\tbaseDatosProductos.agregar(Granadilla);\n\t\tbaseDatosProductos.agregar(Arandanos);\n\t\tbaseDatosProductos.agregar(Tomates);\n\t\tbaseDatosProductos.agregar(Fresas);\n\t\tbaseDatosProductos.agregar(Helado);\n\t\tbaseDatosProductos.agregar(Galletas);\n\t\tbaseDatosProductos.agregar(Chocolates);\n\t\tbaseDatosProductos.agregar(Jamon);\n\t\treturn baseDatosProductos;\n\t\t\n\t}", "Compuesta createCompuesta();", "public ProductosBean() {\r\n }", "public static void main(String[] args) {\n\t\tControladorProducto controlaPro = new ControladorProducto();\n\n\t\t// Guardamos en una lista de objetos de tipo cuenta(Mapeador) los datos\n\t\t// obtenidos\n\t\t// de la tabla Cuenta de la base de datos\n\t\tList<Producto> lista = controlaPro.findAll();\n\n\t\t// Imprimimos la lista\n\t\tSystem.out.println(\"\\n\\nEntidades de la tabla Cuenta:\");\n\t\tfor (Producto c : lista) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t// Vamos a guardar en un objeto el objeto que obtenemos pasando como parametro\n\t\t// el nombre\n\t\tProducto productoNombre = controlaPro.findByNombre(\"Manguera Camuflaje\");\n\n\t\t// Mostramos el objeto\n\t\tSystem.out.println(\"\\nEl objeto con el nombre Manguera Camuflaje es: \\n\" + productoNombre);\n\n\t\t// Vamos a guardar en un objeto el objeto que obtenemos pasando como parametro\n\t\t// su pk\n\n\t\tProducto productoPk = controlaPro.findByPK(2);\n\n\t\t// Mostramos el objeto\n\t\tSystem.out.println(\"\\nEl objeto con la Pk es: \\n\" + productoPk);\n\n\t\t// Vamos a crear un nuevo producto\n\t\tProducto nuevoProducto = new Producto();\n\n\t\tnuevoProducto.setNombreproducto(\"Embery Mono\");\n\t\t\n\t\t//Persistimos el nuevo producto\n\t\tcontrolaPro.crearEntidad(nuevoProducto);\n\n\t\tlista = controlaPro.findAll();\n\t\t// Imprimimos la lista\n\t\tSystem.out.println(\"\\n\\nEntidades de la tabla con nuevo producto:\");\n\t\tfor (Producto c : lista) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t\n\t\t//Modificamos el nuevo producto\n\t\tnuevoProducto.setNombreproducto(\"Caesar Dorada\");\n\n\t\tcontrolaPro.ModificarEntidad(nuevoProducto);\n\t\t\n\t\tlista = controlaPro.findAll();\n\t\t// Imprimimos la lista\n\t\tSystem.out.println(\"\\n\\nEntidades de la tabla con nuevo producto modificado:\");\n\t\tfor (Producto c : lista) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t\n\t\t//Borramos el nuevo producto\n\t\tcontrolaPro.borrarEntidad(controlaPro.findByPK(2));\n\t\t\n\t\tlista = controlaPro.findAll();\n\t\t// Imprimimos la lista\n\t\tSystem.out.println(\"\\n\\nEntidades de la tabla con nuevo producto eliminado:\");\n\t\tfor (Producto c : lista) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic DAOProducto_Lab crearDAOProducto() {\n\t\treturn null;\n\t}", "public GetProductoSrv() {\n\t\tsuper();\n\t\tinitializer();\n\t}", "public interface MovimientoService {\n public static final String PROPERTY_ID = \"id\";\n public static final String PROPERTY_PARTIDO_ID = \"partidoId\";\n public static final String PROPERTY_TIEMPO_DES = \"tiempoDes\";\n public static final String PROPERTY_MINUTO = \"minuto\";\n public static final String PROPERTY_SEGUNDO = \"segundo\";\n public static final String PROPERTY_TIPO = \"tipo\";\n public static final String PROPERTY_ORIGEN = \"origen\";\n public static final String PROPERTY_ENTRA_ID = \"entraId\";\n public static final String PROPERTY_ENTRA_NOMBRE = \"entraNombre\";\n public static final String PROPERTY_SALE_ID = \"saleId\";\n public static final String PROPERTY_SALE_NOMBRE = \"saleNombre\";\n\n Map<String,Object> createMovimiento(Map<String, String> movimiento);\n\n void deleteMovimiento(Long idMovimiento);\n\n List<Map<String,Object>> movimientosByPartido(Long idPartido);\n}", "@PostMapping(\"/productos\")\n @Timed\n public ResponseEntity<Producto> createProducto(@RequestBody Producto producto) throws URISyntaxException {\n log.debug(\"REST request to save Producto : {}\", producto);\n if (producto.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"idexists\", \"A new producto cannot already have an ID\")).body(null);\n }\n Producto result = productoRepository.save(producto);\n return ResponseEntity.created(new URI(\"/api/productos/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public void guardarProductosEnVenta() {\n try {\n //Si hay datos los guardamos...\n \n /****** Serialización de los objetos ******/\n //Serialización de las productosEnVenta\n FileOutputStream archivo = new FileOutputStream(\"productosVentaCliente\"+this.getCorreo()+\".dat\");\n ObjectOutputStream guardar= new ObjectOutputStream(archivo);\n //guardamos el array de productosEnVenta\n guardar.writeObject(productosEnVenta);\n archivo.close();\n \n\n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }", "public ProductoNoElaborado() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "private static void cadastroProduto() {\n\n\t\tString nome = Entrada(\"PRODUTO\");\n\t\tdouble PrecoComprado = Double.parseDouble(Entrada(\"VALOR COMPRA\"));\n\t\tdouble precoVenda = Double.parseDouble(Entrada(\"VALOR VENDA\"));\n String informacaoProduto = Entrada(\"INFORMAÇÃO DO PRODUTO\");\n String informacaoTecnicas = Entrada(\"INFORMAÇÕES TÉCNICAS\");\n\n\t\tProduto produto = new Produto(nome, PrecoComprado, precoVenda, informacaoProduto,informacaoTecnicas);\n\n\t\tListaDProduto.add(produto);\n\n\t}", "Documento createDocumento();", "public VentanaCrearProducto(ControladorProducto controladorProducto) {\n initComponents();\n this.controladorProducto=controladorProducto;\n txtCodigoCrearProducto.setText(String.valueOf(this.controladorProducto.getCodigo()));\n this.setSize(1000,600);\n }", "private RepositorioOrdemServicoHBM() {\n\n\t}", "private Produto passarProdutoParaDto(ProdutoDto produtoDto) {\n\t\tProduto produto = new Produto();\n\t\tproduto.setNome(produtoDto.getNome());\n\t\tproduto.setQuantidade(produtoDto.getQuantidade());\n\t\tproduto.setValor(produtoDto.getValor());\n\t\t\n\t\treturn produto;\n\t}", "@Test\n public void createComentarioTest() {\n PodamFactory factory = new PodamFactoryImpl();\n ComentarioEntity nuevaEntity = factory.manufacturePojo(ComentarioEntity.class);\n ComentarioEntity resultado = comentarioPersistence.create(nuevaEntity);\n\n Assert.assertNotNull(resultado);\n\n ComentarioEntity entity = em.find(ComentarioEntity.class, resultado.getId());\n\n Assert.assertEquals(nuevaEntity.getNombreUsuario(), entity.getNombreUsuario());\n \n }", "public Producto BuscarProducto(int id) {\n Producto nuevo = new Producto();\n try {\n conectar();\n ResultSet result = state.executeQuery(\"select * from producto where idproducto=\"+id+\";\");\n while(result.next()) {\n \n nuevo.setIdProducto((int)result.getObject(1));\n nuevo.setNombreProducto((String)result.getObject(2));\n nuevo.setFabricante((String)result.getObject(3));\n nuevo.setCantidad((int)result.getObject(4));\n nuevo.setPrecio((int)result.getObject(5));\n nuevo.setDescripcion((String)result.getObject(6));\n nuevo.setSucursal((int)result.getObject(7));\n }\n con.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return nuevo;\n }", "public void salvarProdutos(Produto produto){\n }", "public TelaProduto() {\n initComponents();\n \n carregaProdutos();\n }", "public ProductoRepository() {}", "private void agregarProducto(HttpServletRequest request, HttpServletResponse response) throws SQLException {\n\t\tString codArticulo = request.getParameter(\"CArt\");\n\t\tString seccion = request.getParameter(\"seccion\");\n\t\tString nombreArticulo = request.getParameter(\"NArt\");\n\t\tSimpleDateFormat formatoFecha = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tDate fecha = null;\n\t\ttry {\n\t\t\tfecha = formatoFecha.parse(request.getParameter(\"fecha\"));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tdouble precio = Double.parseDouble(request.getParameter(\"precio\"));\n\t\tString importado = request.getParameter(\"importado\");\n\t\tString paisOrigen = request.getParameter(\"POrig\");\n\t\t// Crear un objeto del tipo producto\n\t\tProducto producto = new Producto(codArticulo, seccion, nombreArticulo, precio, fecha, importado, paisOrigen);\n\t\t// Enviar el objeto al modelo e insertar el objeto producto en la BBDD\n\t\tmodeloProductos.agregarProducto(producto);\n\t\t// Volver al listado de productos\n\t\tobtenerProductos(request, response);\n\n\t}", "public String crearProducto(String id, String nombre, String precio, String idCategoria, \n String estado, String descripcion) {\n \n String validacion = \"\";\n if (verificarCamposVacios(id, nombre, precio, idCategoria, estado, descripcion) == false) {\n //Se crea en EntityManagerFactory con el nombre de nuestra unidad de persistencia\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"SG-RESTPU\");\n //se crea un objeto producto y se le asignan sus atributos\n if (verificarValoresNum(id,precio,idCategoria)) {\n //Se crea el controlador de la categoria del producto\n CategoriaProductoJpaController daoCategoriaProducto = new CategoriaProductoJpaController(emf);\n CategoriaProducto categoriaProducto = daoCategoriaProducto.findCategoriaProducto(Integer.parseInt(idCategoria));\n //se crea el controlador del producto \n ProductoJpaController daoProducto = new ProductoJpaController(emf);\n Producto producto = new Producto(Integer.parseInt(id), nombre);\n producto.setPrecio(Long.parseLong(precio));\n producto.setIdCategoria(categoriaProducto);\n producto.setDescripcion(descripcion);\n producto.setFotografia(copiarImagen());\n if (estado.equalsIgnoreCase(\"Activo\")) {\n producto.setEstado(true);\n } else {\n producto.setEstado(false);\n }\n try {\n if (ExisteProducto(nombre) == false) {\n daoProducto.create(producto);\n deshabilitar();\n limpiar();\n validacion = \"El producto se agrego exitosamente\";\n } else {\n validacion = \"El producto ya existe\";\n }\n } catch (NullPointerException ex) {\n limpiar();\n } catch (Exception ex) {\n Logger.getLogger(Gui_empleado.class.getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n validacion = \"El campo id, precio, idCategoria deben ser numéricos\";\n }\n } else {\n validacion = \"Llene los datos obligatorios\";\n }\n return validacion;\n }", "public ProductsVOClient() {\r\n }", "public String agregar(String trama) throws JsonProcessingException {\n\t\tString respuesta = \"\";\n\t\tRespuestaGeneralDto respuestaGeneral = new RespuestaGeneralDto();\n \t\tlogger.info(HILO + \"[ \" + Thread.currentThread().getId()+ \" ] \" \n \t\t\t\t+ \", ProductoService.agregar trama entrante para agregar o actualizar producto: \" + trama);\n\t\ttry {\n\t\t\t/*\n\t\t\t * Se convierte el dato String a estructura json para ser manipulado en JAVA\n\t\t\t */\n\t\t\tJSONObject obj = new JSONObject(trama);\n\t\t\tProducto producto = new Producto();\n\t\t\t/*\n\t\t\t * use: es una bandera para identificar el tipo de solicitud a realizar:\n\t\t\t * use: 0 -> agregar un nuevo proudcto a la base de datos;\n\t\t\t * use: 1 -> actualizar un producto existente en la base de datos\n\t\t\t */\n\t\t\tString use = obj.getString(\"use\");\n\t\t\tif(use.equalsIgnoreCase(\"0\")) {\n\t\t\t\tString nombre = obj.getString(\"nombre\");\n\t\t\t\t/*\n\t\t\t\t * Se realiza una consulta por nombre a la base de datos a la tabla producto\n\t\t\t\t * para verificar que no existe un producto con el mismo nombre ingresado.\n\t\t\t\t */\n\t\t\t\tProducto productoBusqueda = productoDao.buscarPorNombre(nombre);\n\t\t\t\tif(productoBusqueda.getProductoId() == null) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Si no existe un producto con el mismo nombre pasa a crear el nuevo producto\n\t\t\t\t\t */\n\t\t\t\t\tproducto.setProductoNombre(nombre);\n\t\t\t\t\tproducto.setProductoCantidad(obj.getLong(\"cantidad\"));\n\t\t\t\t\tTipoProducto tipoProducto = tipoProductoDao.consultarPorId(obj.getLong(\"tipoProducto\"));\n\t\t\t\t\tproducto.setProductoTipoProducto(tipoProducto);\n\t\t\t\t\tproducto.setProductoPrecio(obj.getLong(\"precio\"));\n\t\t\t\t\tproducto.setProductoFechaRegistro(new Date());\n\t\t\t\t\tproductoDao.update(producto);\n\t\t\t\t\trespuestaGeneral.setTipoRespuesta(\"0\");\n\t\t\t\t\trespuestaGeneral.setRespuesta(\"Nuevo producto registrado con éxito.\");\n\t\t\t\t\t/*\n\t\t\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t\t\t */\n\t\t\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t\t\t}else {\n\t\t\t\t\t/*\n\t\t\t\t\t * Si existe un producto con el mismo nombre, se devolvera una excepcion,\n\t\t\t\t\t * para indicarle al cliente.\n\t\t\t\t\t */\n\t\t\t\t\trespuestaGeneral.setTipoRespuesta(\"1\");\n\t\t\t\t\trespuestaGeneral.setRespuesta(\"Ya existe un producto con el nombre ingresado.\");\n\t\t\t\t\t/*\n\t\t\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t\t\t */\n\t\t\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\t/*\n\t\t\t\t * Se realiza una busqueda del producto registrado para actualizar\n\t\t\t\t * para implementar los datos que no van a ser reemplazados ni actualizados\n\t\t\t\t */\n\t\t\t\tProducto productoBuscar = productoDao.buscarPorId(obj.getLong(\"id\"));\n\t\t\t\tproducto.setProductoId(obj.getLong(\"id\"));\n\t\t\t\tproducto.setProductoNombre(obj.getString(\"nombre\"));\n\t\t\t\tproducto.setProductoCantidad(obj.getLong(\"cantidad\"));\n\t\t\t\tproducto.setProductoTipoProducto(productoBuscar.getProductoTipoProducto());\n\t\t\t\tproducto.setProductoPrecio(obj.getLong(\"precio\"));\n\t\t\t\tproducto.setProductoFechaRegistro(productoBuscar.getProductoFechaRegistro());\n\t\t\t\tproductoDao.update(producto);\n\t\t\t\trespuestaGeneral.setTipoRespuesta(\"0\");\n\t\t\t\trespuestaGeneral.setRespuesta(\"Producto actualizado con exito.\");\n\t\t\t\t/*\n\t\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t\t */\n\t\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t\t}\n\t\t\t/*\n\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t */\n\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t} catch (Exception e) {\n\t\t\t/*\n\t\t\t * En caso de un error, este se mostrara en los logs\n\t\t\t * Sera enviada la respuesta correspondiente al cliente.\n\t\t\t */\n\t\t\tlogger.error(HILO + \"[ \" + Thread.currentThread().getId()+ \" ] \" \n\t\t\t\t\t+ \"ProductoService.agregar, \"\n\t\t\t\t\t+ \", descripcion: \"\n\t\t\t\t\t+ e.getMessage());\n\t\t\trespuestaGeneral.setTipoRespuesta(\"1\");\n\t\t\trespuestaGeneral.setRespuesta(\"Error al ingresar los datos, por favor intente mas tarde.\");\n\t\t\t/*\n\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t */\n\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t}\n \t\tlogger.info(HILO + \"[ \" + Thread.currentThread().getId()+ \" ] \" \n \t\t\t\t+ \", ProductoService.agregar resultado de agregar/actualizar un producto: \" + respuesta);\n\t\treturn respuesta;\n\t}", "Foco createFoco();", "public Product() {}", "private static void crearPedidoGenerandoOPC() throws RemoteException {\n\n\t\tlong[] idVariedades = { 25, 29, 33 };\n\t\tint[] cantidades = { 6, 8, 11 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 3\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\t\t\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\n\t}", "private void createProducts() throws Exception {\n\n\t\tproductDetails200 = ElementFactory.getDefaultProduct(\"CiProd200\", defaultCategories);\n\t\tproductDetails400 = ElementFactory.getDefaultProduct(\"CiProd400\", defaultCategories);\n\n\t\tRestResponse createProduct = ProductRestUtils.createProduct(productDetails200, productManager1);\n\t\tResourceRestUtils.checkCreateResponse(createProduct);\n\t\tproduct200 = ResponseParser.parseToObjectUsingMapper(createProduct.getResponse(), Product.class);\n\n\t\tcreateProduct = ProductRestUtils.createProduct(productDetails400, productManager2);\n\t\tResourceRestUtils.checkCreateResponse(createProduct);\n\t\tproduct400 = ResponseParser.parseToObjectUsingMapper(createProduct.getResponse(), Product.class);\n\t}", "ProductDto createProduct(ProductDto productDto);", "public ProductosInventario(String codigoDeBarras, String nombre, Empresa empresa, int presentacion, int iva, int costo, int cantidad, String tipo, int precio) {\n\t\tthis.producto = new Producto(codigoDeBarras, nombre, empresa, presentacion, iva, costo,precio);\n\t\tthis.cantidad = 0;\n\t\tsetCantidad(cantidad);\n\t\tthis.tipo = tipo;\n\t}", "private void crearVista() {\n\t\tVista vista = Vista.getInstancia();\n\t\tvista.addObservador(this);\n\n\t}", "public List<Producto> traerTodos () {\n \n return jpaProducto.findProductoEntities();\n \n \n \n }", "public DoctoresResource() {\n servDoctores = new ServicioDoctores();\n }", "public ActualizarProducto() {\n initComponents();\n }", "public static Producto insertProducto(int codProd,String nomb_modelo,Cliente cliente){\n Producto prod = new Producto(codProd,nomb_modelo,cliente);\n try {\n prod.registrarProducto();\n } catch (SQLException ex) {\n // En caso de haber una excepcion se imprime el mensaje\n System.err.println(ex.getMessage());\n }\n return prod;\n }", "private ServicioProductoSingleton() {\n this.listaProductos = new ArrayList<>();\n }", "public ProductController()\n {\n listOfProduct = new ArrayList<Product>();\n listOfOrder = new ArrayList<Order>();\n aCart = new ShoppingCart();\n }", "@Test\n public void createTest() {\n // Se construye una fabrica de objetos\n PodamFactory factory = new PodamFactoryImpl();\n\n //A la fabrica de objetos se le pide que nos de un objeto del tipo que le pasamos por parametro\n ViajeroEntity viajero = factory.manufacturePojo(ViajeroEntity.class);\n\n ViajeroEntity result = vp.create(viajero);\n // Pruebo que el resultado del metodo create no sea null\n Assert.assertNotNull(result);\n\n // El entity manager busca en la base de datos si hay una entidad que coincida con la \n // entidad que acabo de crear por su id\n ViajeroEntity entity\n = em.find(ViajeroEntity.class, result.getId());\n\n // Verifico que para cada entidad creada por podam,\n // en la base de datos se reflejen esos mismos datos\n Assert.assertEquals(viajero.getContrasenha(), entity.getContrasenha());\n Assert.assertEquals(viajero.getCorreo(), entity.getCorreo());\n Assert.assertEquals(viajero.getFechaDeNacimiento(), entity.getFechaDeNacimiento());\n Assert.assertEquals(viajero.getNombre(), entity.getNombre());\n Assert.assertEquals(viajero.getNumDocumento(), entity.getNumDocumento());\n Assert.assertEquals(viajero.getTelefono(), entity.getTelefono());\n Assert.assertEquals(viajero.getTipoDocumento(), entity.getTipoDocumento());\n }", "public interface ModeloProdutoProduto extends DCIObjetoDominio , ModeloProdutoProdutoAgregadoI , ModeloProdutoProdutoDerivadaI\n{\n\n\t\n\tpublic long getIdModeloProdutoProduto();\n\tpublic void setIdModeloProdutoProduto(long valor);\n\t\n\t\n\tpublic long getIdModeloProdutoRa();\n\tpublic void setIdModeloProdutoRa(long valor);\n\t\n\t\n\tpublic long getIdProdutoRa();\n\tpublic void setIdProdutoRa(long valor);\n\t\n\t\n}", "private void doNovo() {\n contato = new ContatoDTO();\n popularTela();\n }", "public Product() {\n }", "public Product() {\n }", "public Producto actualizar(Producto producto) throws IWDaoException;", "public ProductoListarBean() {\r\n }", "public void guardarProductosVendidos() {\n try {\n //Si hay datos los guardamos...\n if (!productosVendidos.isEmpty()) {\n /****** Serialización de los objetos ******/\n //Serialización de los productosVendidos\n FileOutputStream archivo = new FileOutputStream(\"productosVendidos\"+this.getCorreo()+\".dat\");\n ObjectOutputStream guardar= new ObjectOutputStream(archivo);\n //guardamos el array de personas\n guardar.writeObject(productosVendidos);\n archivo.close();\n } else {\n System.out.println(\"Error: No hay datos...\");\n }\n\n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }", "public Producto(Producto p) {\r\n\t\tsuper();\r\n\t\tID = getIDnuevoProducto();\r\n\t\tsetNombre(p.getNombre());\r\n\t\tsetCantidad(p.getCantidad());\r\n\t\tsetEnVenta(p.isEnVenta());\r\n\t\tsetCaracteristicas(p.getCaracteristicas());\r\n\t\tsetCategoria(p.getCategoria());\r\n\t\tsetDescripcion(p.getDescripcion());\r\n\t\tsetPrecio(p.getPrecio());\r\n\t\tsetVendedor(p.getVendedor());\r\n\t}", "public NodoP(Productos _prod) {\n\t\t\tthis.producto = _prod;\n\t\t\tthis.siguiente = null;\n\t\t}", "private static void crearPedidoGenerandoOPP() throws RemoteException {\n\n\t\tlong[] idVariedades = { 25 };\n\t\tint[] cantidades = { 7 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 2\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\t}", "private static void crearPedidoGenerandoOPCyOrdenInsumo() throws RemoteException {\n\t\tlong[] idVariedades = { 63 };\n\t\tint[] cantidades = { 4 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 5\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\t}", "public static void main(String[] args) {\n Produto prod1 = new Produto(1, \"coca-cola\",200.99, true, 10 );\n\n //objeto instanciado pelo construtor 2\n Produto prod2 = new Produto();\n prod2.setCodigo(2);\n prod2.setNome(\"Fanta\");\n prod2.setDisponivel(true);\n prod2.setValor(300.88);\n prod2.setQuantidade(10);\n\n System.out.println(\"Empresa dos Produtos: \");\n\n\n }", "public ProductosPuntoVentaDaoImpl() {\r\n }", "public Product() { }", "public Product() { }", "public static Posee insertPosee(Date fecha_inicio,ServicioAdicional serv_adicional,\n Producto producto){\n Posee miPosee = new Posee(fecha_inicio,serv_adicional,producto);\n miPosee.registrarPosee();\n \n return miPosee;\n }", "@Test\n public void createVisitaTest() {\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity newEntity = factory.manufacturePojo(VisitaEntity.class);\n VisitaEntity result = VisitaPersistence.create(newEntity);\n\n Assert.assertNotNull(result);\n\n VisitaEntity entity = em.find(VisitaEntity.class, result.getId());\n\n Assert.assertEquals(newEntity.getId(), entity.getId());\n Assert.assertArrayEquals(newEntity.getFotos().toArray(), entity.getFotos().toArray());\n Assert.assertEquals(newEntity.getOferta(), entity.getOferta());\n Assert.assertEquals(newEntity.getUsuario(), entity.getUsuario());\n Assert.assertEquals(newEntity.getComentario(), entity.getComentario());\n Assert.assertEquals(newEntity.getCalificacion(), entity.getCalificacion());\n }", "@Override\n\tpublic void insertProduct(ProductVO dto) {\n\n\t}", "public JvnObject jvnCreateObject(Serializable o) throws jvn.JvnException { \n\t\t// to be completed \n\t\tJvnObject jObject = null;\n\t\ttry {\n\t\t\tjObject = new JvnObjectImpl(o, this.jRCoordonator.jvnGetObjectId());\n\t\t\tlistJObject.put(jObject.jvnGetObjectId(), jObject);\n\t\t\tSystem.out.println(\"jvnServerImpl - list Object Create: \" + listJObject.toString());\n\t\t} catch (RemoteException e) {\n\t\t\tSystem.out.println(\"Error creation object : \" + e.getMessage());\n\t\t}\n\t\treturn jObject;\n\t\t//return null; \n\t}", "public Product() {\n\t}", "public CrearProductos() {\n initComponents();\n }", "public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }", "public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }", "public void saveProduct(Product product);", "public Device createObject(String brand, String model, Integer price, String photo, String date);", "@FXML\n\tpublic void createProduct(ActionEvent event) {\n\t\tif (!txtProductName.getText().equals(\"\") && !txtProductPrice.getText().equals(\"\")\n\t\t\t\t&& ComboSize.getValue() != null && ComboType.getValue() != null && selectedIngredients.size() != 0) {\n\n\t\t\tProduct objProduct = new Product(txtProductName.getText(), ComboSize.getValue(), txtProductPrice.getText(),\n\t\t\t\t\tComboType.getValue(), selectedIngredients);\n\n\t\t\ttry {\n\t\t\t\trestaurant.addProduct(objProduct, empleadoUsername);\n\n\t\t\t\ttxtProductName.setText(null);\n\t\t\t\ttxtProductPrice.setText(null);\n\t\t\t\tComboSize.setValue(null);\n\t\t\t\tComboType.setValue(null);\n\t\t\t\tChoiceIngredients.setValue(null);\n\t\t\t\tselectedIngredients.clear();\n\t\t\t\tproductOptions.clear();\n\t\t\t\tproductOptions.addAll(restaurant.getStringReferencedIdsProducts());\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Todos los campos deben de ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar los datos\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "Motivo create(Motivo motivo);", "private void buscarProducto() {\n EntityManagerFactory emf= Persistence.createEntityManagerFactory(\"pintureriaPU\");\n List<Almacen> listaproducto= new FacadeAlmacen().buscarxnombre(jTextField1.getText().toUpperCase());\n DefaultTableModel modeloTabla=new DefaultTableModel();\n modeloTabla.addColumn(\"Id\");\n modeloTabla.addColumn(\"Producto\");\n modeloTabla.addColumn(\"Proveedor\");\n modeloTabla.addColumn(\"Precio\");\n modeloTabla.addColumn(\"Unidades Disponibles\");\n modeloTabla.addColumn(\"Localizacion\");\n \n \n for(int i=0; i<listaproducto.size(); i++){\n Vector vector=new Vector();\n vector.add(listaproducto.get(i).getId());\n vector.add(listaproducto.get(i).getProducto().getDescripcion());\n vector.add(listaproducto.get(i).getProducto().getProveedor().getNombre());\n vector.add(listaproducto.get(i).getProducto().getPrecio().getPrecio_contado());\n vector.add(listaproducto.get(i).getCantidad());\n vector.add(listaproducto.get(i).getLocalizacion());\n modeloTabla.addRow(vector);\n }\n jTable1.setModel(modeloTabla);\n }", "public Product build() {\n Product product = new Product();\n product.product_id = this.product_id;\n product.product_name = this.product_name;\n product.price = this.price;\n product.in_stock = this.in_stock;\n product.amount = this.amount;\n product.ordered_amount = this.ordered_amount;\n product.order_price = this.order_price;\n\n return product;\n }", "@Override\r\n\tpublic void inicializar() {\n\t\tproveedorDatamanager.setProveedorSearch(new Tcxpproveedor());\r\n\t\tproveedorDatamanager.getProveedorSearch().setTsyspersona(new Tsyspersona());\r\n\t\tproveedorDatamanager.setTipoIdColl(bunsysService.buscarObtenerCatalogos(proveedorDatamanager.getLoginDatamanager().getLogin().getPk().getCodigocompania(), ContenidoMessages.getInteger(\"cod_catalogo_tipoid_persona\")));\r\n\t\tproveedorDatamanager.setGrupoProvColl(bunsysService.buscarObtenerCatalogos(proveedorDatamanager.getLoginDatamanager().getLogin().getPk().getCodigocompania(), ContenidoMessages.getInteger(\"cod_catalogo_grupo_prov\")));\r\n\t\tproveedorDatamanager.setEstadoProvColl(bunsysService.buscarObtenerCatalogos(proveedorDatamanager.getLoginDatamanager().getLogin().getPk().getCodigocompania(), ContenidoMessages.getInteger(\"cod_catalogo_estado_persona\")));\r\n\t\tproveedorDatamanager.setProveedorComponente(new ProveedorComponent(proveedorDatamanager.getLoginDatamanager().getLogin().getPk().getCodigocompania()));\r\n\t}", "BeanPedido crearPedido(BeanCrearPedido pedido);", "public ControladorCatalogoServicios() {\r\n }", "void create(Product product) throws IllegalArgumentException;", "public void create() {\r\n for(int i=0; i< 50; i++){\r\n long id = (new Date()).getTime();\r\n Benefit newBeneficio = new Benefit();\r\n newBeneficio.setId(\"\"+id); \r\n newBeneficio.setCategory(\"almacenes \"+id);\r\n newBeneficio.setDescription(\"description \"+id);\r\n newBeneficio.setDiscount(i);\r\n newBeneficio.setStart_date(\"start_date \"+id);\r\n newBeneficio.setEnd_date(\"end_date \"+id);\r\n newBeneficio.setReview(\"review \"+id);\r\n newBeneficio.setTitle(\"title \"+id);\r\n newBeneficio.setLogo(\"logo \"+id);\r\n newBeneficio.setTwitter(\"twitter \"+id);\r\n newBeneficio.setFacebook(\"facebook \"+id);\r\n newBeneficio.setUrl(\"url \"+ id);\r\n \r\n Address address = new Address();\r\n address.setCity(\"Santiago \"+ id);\r\n address.setCountry(\"Santiago \"+ id);\r\n address.setLine_1(\"Linea 1 \"+ id);\r\n address.setLine_2(\"Linea 2 \"+ id);\r\n address.setLine_3(\"Linea 3 \"+ id);\r\n address.setPostcode(\"\" + id);\r\n address.setState(\"Region Metropolitana \"+ id);\r\n \r\n Location location = new Location();\r\n double[] cordenadas = {-77.99283,-33.9980};\r\n location.setCoordinates(cordenadas);\r\n location.setDistance(5.445);\r\n location.setType(\"Point\");\r\n \r\n Lobby lobby = new Lobby();\r\n lobby.setHours(\"HORA \"+ + id);\r\n \r\n newBeneficio = service.persist(newBeneficio);\r\n LOGGER.info(newBeneficio.toString());\r\n }\r\n }", "public RecyclerViewProductos( List<Producto> lista) {\n this.productoList=lista;\n }", "public void creoVehiculo() {\n\t\t\n\t\tAuto a= new Auto(false, 0);\n\t\ta.encender();\n\t\ta.setPatente(\"saraza\");\n\t\ta.setCantPuertas(123);\n\t\ta.setBaul(true);\n\t\t\n\t\tSystem.out.println(a);\n\t\t\n\t\tMoto m= new Moto();\n\t\tm.encender();\n\t\tm.frenar();\n\t\tm.setManubrio(true);\n\t\tm.setVelMax(543);\n\t\tm.setPatente(\"zas 241\");\n\t\tVehiculo a1= new Auto(true, 0);\n\t\ta1.setPatente(\"asd 423\");\n\t\t((Auto)a1).setBaul(true);\n\t\t((Auto)a1).setCantPuertas(15);\n\t\tif (a1 instanceof Auto) {\n\t\t\tAuto autito= (Auto) a1;\n\t\t\tautito.setBaul(true);\n\t\t\tautito.setCantPuertas(531);\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Moto) {\n\t\t\tMoto motito=(Moto) a1;\n\t\t\tmotito.setManubrio(false);\n\t\t\tmotito.setVelMax(15313);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Camion) {\n\t\t\tCamion camioncito=(Camion) a1;\n\t\t\tcamioncito.setAcoplado(false);\n\t\t\tcamioncito.setPatente(\"ge\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\tVehiculo a2= new Moto();\n\t\tSystem.out.println(a2);\n\t\ta1.frenar();\n\t\t\n\t\tArrayList<Vehiculo>listaVehiculo= new ArrayList<Vehiculo>();\n\t\tlistaVehiculo.add(new Auto(true, 53));\n\t\tlistaVehiculo.add(new Moto());\n\t\tlistaVehiculo.add(new Camion());\n\t\tfor (Vehiculo vehiculo : listaVehiculo) {\n\t\t\tSystem.out.println(\"clase:\" +vehiculo.getClass().getSimpleName());\n\t\t\tvehiculo.encender();\n\t\t\tvehiculo.frenar();\n\t\t\tSystem.out.println(\"=======================================\");\n\t\t\t\n\t\t}\n\t}", "public interface ProductManager extends Serializable {\n\t//Incrementa el precio de todos los productos\n public void increasePrice(int percentage);\n //Recupera todos los productos\n public List<Product> getProducts();\n\n}", "private static void crearPedidoGenerandoOPPyOrdenInsumo() throws RemoteException {\n\t\tlong[] idVariedades = { 34, 49 };\n\t\tint[] cantidades = { 4, 2 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 4\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\n\t}", "public Producto(String nombre, String vendedor, float precio, int cantidad,boolean enVenta, String descripcion,\r\n\t\t\tCaracteristica caracteristicas, Categoria categoria) {\r\n\t\tsuper();\r\n\t\tID = getIDnuevoProducto();\r\n\t\tsetNombre(nombre);\r\n\t\tsetCantidad(cantidad);\r\n\t\tsetEnVenta(enVenta);\r\n\t\tsetCaracteristicas(caracteristicas);\r\n\t\tsetCategoria(categoria);\r\n\t\tsetDescripcion(descripcion);\r\n\t\tsetPrecio(precio);\r\n\t\tsetVendedor(vendedor);\r\n\t}", "public void crearCompraComic(CompraComicDTO compraComicDTO);", "private void createSerie(ws.Serie entity) {\n ws.DrawdedeWebService port = service.getDrawdedeWebServicePort();\n port.createSerie(entity);\n }", "void saveProduct(Product product);", "private void loadProducts() {\n\t\tproduct1 = new Product();\n\t\tproduct1.setId(1L);\n\t\tproduct1.setName(HP);\n\t\tproduct1.setDescription(HP);\n\t\tproduct1.setPrice(BigDecimal.TEN);\n\n\t\tproduct2 = new Product();\n\t\tproduct2.setId(2L);\n\t\tproduct2.setName(LENOVO);\n\t\tproduct2.setDescription(LENOVO);\n\t\tproduct2.setPrice(new BigDecimal(20));\n\n\t}", "public void listarProducto() {\n }" ]
[ "0.6852494", "0.67944497", "0.6664634", "0.66234374", "0.65831524", "0.65691733", "0.653848", "0.6535493", "0.65351194", "0.6497024", "0.6374693", "0.637027", "0.63653105", "0.633358", "0.6316306", "0.62830323", "0.6281466", "0.627327", "0.62654716", "0.62481695", "0.62424004", "0.62160784", "0.61937624", "0.6184426", "0.6175223", "0.61528695", "0.61342376", "0.6132571", "0.6125275", "0.6115979", "0.61146903", "0.6110856", "0.6100658", "0.6094807", "0.6091999", "0.60908747", "0.6086299", "0.6080203", "0.6066343", "0.6056853", "0.60533905", "0.6046318", "0.60401636", "0.603255", "0.6031878", "0.60215867", "0.60186094", "0.60097694", "0.6001022", "0.59997314", "0.59997046", "0.599726", "0.59927636", "0.59755856", "0.5972367", "0.5971971", "0.59711033", "0.59647495", "0.59591424", "0.59591424", "0.59492606", "0.5945562", "0.5931508", "0.59292835", "0.5928823", "0.5915678", "0.59120494", "0.5889543", "0.5888231", "0.58849657", "0.58849657", "0.5882555", "0.58744204", "0.5873547", "0.58702344", "0.5862283", "0.5858157", "0.5854556", "0.58487713", "0.5842951", "0.5839552", "0.5837917", "0.583657", "0.5824271", "0.5816251", "0.58124256", "0.5808431", "0.5805537", "0.58029497", "0.5799826", "0.57957673", "0.57899374", "0.57887846", "0.5786477", "0.57862437", "0.57852817", "0.57840747", "0.5779502", "0.57792854", "0.5778282" ]
0.6788687
2
Fires NUM_CANNONS projectiles, that spread out as they fall
public Projectile[] fire() { /* * Hint, to get a spread, second parameter to Projectile() should * be something like (i - (NUM_CANNONS / 2)) * SPREAD */ Projectile[] x = new Projectile[NUM_CANNONS]; Position p = new Position(pos.getX() + InvaderShip.SHIPS_Y / 2, pos.getY() - InvaderShip.SHIPS_X / 2); x[0] = new Projectile(p, (0 - (NUM_CANNONS / 2)) * SPREAD, -PROJECTILE_SPEED, -.01 ); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fire() {\n\t\t// Has player waited cooldown before trying to fire again?\n\t\tif (System.currentTimeMillis() - this.lastFired > Config.WEAPON_COOLDOWN_TIME * 1000) {\n\t\t\t\n\t\t\t// Can this airship drop bombs?\n\t\t\tif (this.properties.FIRES_TNT) {\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 && cannonHasTnt(cannons[i], Config.NUM_TNT_TO_FIRE_NORMAL)) {\n\t\t\t\t\t\tdouble dist = 0.4;\n\t\t\t\t\t\tBlockFace face = ((Directional) cannons[i].getState().getData()).getFacing();\n\t\t\t\t\t\tint x = face.getModX();\n\t\t\t\t\t\tint z = face.getModZ();\n\t\t\t\t\t\tdist *= getCannonLength(cannons[i], -x, -z);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (cannons[i].getRelative(x, 0, z).getType().equals(Material.AIR)) {\n\t\t\t\t\t\t\tif (numfiredcannons < this.properties.MAX_NUMBER_OF_CANNONS) {\n\t\t\t\t\t\t\t\tnumfiredcannons++;\n\t\t\t\t\t\t\t\tlastFired = System.currentTimeMillis();\n\t\t\t\t\t\t\t\twithdrawTnt(cannons[i], Config.NUM_TNT_TO_FIRE_NORMAL);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// Spawn primed tnt firing in the direction of the dispenser TODO: maybe add sound effects for tnt firing? :P\n\t\t\t\t\t\t\t\tTNTPrimed tnt = cannons[i].getWorld().spawn(cannons[i].getLocation().clone().add(x, 0, z), TNTPrimed.class);\n\t\t\t\t\t\t\t\ttnt.setVelocity(new Vector(x * dist, 0.5, z * dist));\n\t\t\t\t\t\t\t} else {\n\t\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\tplayer.sendMessage(ChatColor.AQUA + \"Some cannons did not fire. Max cannon limit is \" + ChatColor.GOLD + this.properties.MAX_NUMBER_OF_CANNONS);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + this.properties.SHIP_TYPE + \" CANNOT FIRE TNT\");\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}", "public static void worldTimeStep() {\n\t\t//System.out.println(\"Time Step: \" + count);\n\t\tcount = count + 1;\n\t for (Critter A : Critter.population){\n\t if(A.energy<=0){\n\t\t\t\tA.isAlive = false;\n }\n else if(A.energy>0){\n\t A.isAlive=true;\n A.doTimeStep();\n if(A.energy<0){\n\t\t\t\t\tA.isAlive = false;\n\t\t\t\t}\n }\n\n }\n\t\tfor (Iterator<Critter> iterator = Critter.population.iterator(); iterator.hasNext();){\n\t\t\tCritter tmp = iterator.next();\n\t\t\tif (tmp.isAlive == false){\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\n encounters2();\n\n\t\tfor (Iterator<Critter> iterator = Critter.population.iterator(); iterator.hasNext();){\n\t\t\tCritter tmp = iterator.next();\n\t\t\tif (tmp.isAlive == false){\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\n\t\tmapCheck();\n\t\t// we have add reproduction\n\n\t\t// we have to add algae\n\t\tfor (int i = 0; i < Params.refresh_algae_count; i = i + 1){\n\t\t\t//Algae child = new Algae();\n\t\t\t//child.setEnergy(Params.start_energy);\n\t\t\t//makecritter takes care of anything\n\t\t\ttry{\n\t\t\t\tmakeCritter(\"Algae\");\n\t\t\t}\n\t\t\tcatch(InvalidCritterException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\t//deduct rest energy\n\t\tfor (Critter A : Critter.population){\n\t\t\tA.energy = A.getEnergy() - Params.rest_energy_cost;\n\t\t\tif(A.getEnergy()<=0){\n\t\t\t\tA.isAlive=false;\n\t\t\t}\n\t\t}\n\t\tfor (Iterator<Critter> iterator = Critter.population.iterator(); iterator.hasNext();){\n\t\t\tCritter tmp = iterator.next();\n\t\t\tif (tmp.isAlive == false){\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\t\t//babies add\n\t\tfor(Critter b: babies){\n\t\t\tb.isAlive=true;\n\t\t\tpopulation.add(b);\n\t\t}\n\t\t//not sure if this removes everything\n\t\tbabies.clear();\n\t}", "public void Update() {\r\n\t\t//if player is near and haven't fired in a while, fire a projectile\r\n\t\tif(!playerNear().equals(\"n\") && j > 250){\r\n\t\t\tfireProjectile(playerNear());\r\n\t\t\tj = 0;\r\n\t\t}\r\n\t\tj++;\r\n\r\n\t\t//COLLISION\r\n\t\tfor(int i = 0; i < AdventureManager.currentRoom.projectiles.size(); i++){ //Checks for collision with player projectiles\r\n\t\t\tif(((AdventureManager.currentRoom.projectiles.get(i).x + 50 > x) && (AdventureManager.currentRoom.projectiles.get(i).x + 50 < x+50) &&(AdventureManager.currentRoom.projectiles.get(i).y + 50> y) &&(AdventureManager.currentRoom.projectiles.get(i).y + 50< y+98) )\r\n\t\t\t\t\t|| ((AdventureManager.currentRoom.projectiles.get(i).x > x) && (AdventureManager.currentRoom.projectiles.get(i).x < x+50) &&(AdventureManager.currentRoom.projectiles.get(i).y + 50> y) &&(AdventureManager.currentRoom.projectiles.get(i).y + 50< y+98) )\r\n\r\n\t\t\t\t\t\t) {\r\n\r\n\t\t\t\t\tswitch(AdventureManager.currentRoom.projectiles.get(i).type) {\r\n\t\t\t\t\tcase \"fireball\": health -= AdventureManager.toon.intelligence; break;\r\n\t\t\t\t\tcase \"sword\": health -= AdventureManager.toon.strength;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tAdventureManager.currentRoom.projectiles.get(i).kill();\r\n\t\t\t\t}\r\n\t\t}\r\n\t\tif((AdventureManager.toon.y < y+50) && (AdventureManager.toon.y > y+40) && //Checks for collision with player\r\n\t\t\t\t(((AdventureManager.toon.x > x) && (AdventureManager.toon.x < x+50))\r\n\t\t\t\t|| ((AdventureManager.toon.x+50 > x) && AdventureManager.toon.x+50 < x+50))) {\r\n\t\t\tAdventureManager.toon.y = y+55; AdventureManager.toon.repaint();\r\n\t\t\tif(contact <= 0){\r\n\t\t\t\tAdventureManager.toon.damage(1);\r\n\t\t\t\tcontact = 50;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if((AdventureManager.toon.y+100 < y) && (AdventureManager.toon.y+100 > y-5) && (((AdventureManager.toon.x >= x) && (AdventureManager.toon.x <= x+50)) //Checks for collision with player\r\n\t\t\t\t|| ((AdventureManager.toon.x+50 >= x) && (AdventureManager.toon.x+50 <= x+50))\r\n\t\t\t\t|| ((AdventureManager.toon.x+25 >= x) && AdventureManager.toon.x+25 <= x+50))) {\r\n\t\t AdventureManager.toon.y = y-105; AdventureManager.toon.repaint();\r\n\t\t AdventureManager.toon.jumpCount = 25;\r\n\t\t if(contact <= 0){\r\n\t\t\t AdventureManager.toon.damage(1);\r\n\t\t\t contact = 50;\r\n\t\t }\r\n\t\t}\r\n\t\telse if(((AdventureManager.toon.x + 50) > x) && ((AdventureManager.toon.x+50)<x+20) && ( //Left Collision\r\n\t\t\t\t((AdventureManager.toon.y > y) && (AdventureManager.toon.y < y+50)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 25 > y) && (AdventureManager.toon.y + 25 < y+45)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 50 > y) && (AdventureManager.toon.y + 50 < y+45)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 75 > y) && (AdventureManager.toon.y + 75 < y+45)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 100 > y) && (AdventureManager.toon.y + 100 < y+45))\r\n\r\n\r\n\t\t\t\t) ) {\r\n\t\t\tAdventureManager.toon.x = x-51; AdventureManager.toon.repaint();\r\n\t\t\tif(contact <= 0){\r\n\t\t\t\tAdventureManager.toon.damage(1);\r\n\t\t\t\tcontact = 50;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(((AdventureManager.toon.x) > x+40) && ((AdventureManager.toon.x)<x+50) && ( //Right Collision\r\n\t\t\t\t((AdventureManager.toon.y > y) && (AdventureManager.toon.y < y+50)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 25 > y) && (AdventureManager.toon.y + 25 < y+50)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 50 > y) && (AdventureManager.toon.y + 50 < y+50)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 75 > y) && (AdventureManager.toon.y + 75 < y+50)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 100 > y) && (AdventureManager.toon.y + 100 < y+50))\r\n\r\n\r\n\t\t\t\t) ) {\r\n\t\t\tAdventureManager.toon.x = x+51; AdventureManager.toon.repaint();\r\n\t\t\tif(contact <= 0){\r\n\t\t\t\tAdventureManager.toon.damage(1);\r\n\t\t\t\tcontact = 50;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcontact--;\r\n\t\tif(health<=0){\r\n\t\t\tsetVisible(false);\r\n\t\t\talive = false;\r\n\t\t\tAdventureManager.currentRoom.enemies.remove(this);\r\n\t\t}\r\n\r\n\r\n\r\n\t\t\tif((y+100)>=AdventureManager.floorHeight) {\r\n\t\t\t\ty= AdventureManager.floorHeight -100;\r\n\t\t\t\tgravity *= 0;\r\n\r\n\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tgravity = 3;}\r\n\r\n\t\t\ty += gravity; setLocation(x,y);\r\n\r\n\t\t\tswitch(movetype) {\r\n\t\t\tcase 0: chasePlayer(); break;\r\n\t\t\tcase 1: randomMove(); break;\r\n\t\t\tcase 2: dontMove(); break;\r\n\t\t\t}\r\n\r\n\t\t\t}", "public void setObjectives(TiledMap map)\r\n/* 72: */ {\r\n/* 73: 80 */ this.mission = true;\r\n/* 74: 81 */ for (int x = 0; x < getWidthInTiles(); x++) {\r\n/* 75: 83 */ for (int y = 0; y < getHeightInTiles(); y++)\r\n/* 76: */ {\r\n/* 77: 85 */ this.reach[x][y] = checkTileProperty(x, y, \"reach\", \"true\");\r\n/* 78: 86 */ if (this.reach[x][y] != 0) {\r\n/* 79: 88 */ this.reachablePlaces += 1;\r\n/* 80: */ }\r\n/* 81: 90 */ this.fire[x][y] = checkTileProperty(x, y, \"fire\", \"true\");\r\n/* 82: 91 */ if (this.fire[x][y] != 0) {\r\n/* 83: 93 */ this.burnPlaces += 1;\r\n/* 84: */ }\r\n/* 85: */ }\r\n/* 86: */ }\r\n/* 87: */ }", "public static void worldTimeStep() {\r\n \t\r\n \t//remake the hash map based on the x and y coordinates of the critters\r\n \tremakeMap(population);\r\n \t\r\n \t//Iterate through the grid positions in the population HashMap\r\n \tIterator<String> populationIter = population.keySet().iterator();\r\n \twhile (populationIter.hasNext()) { \r\n String pos = populationIter.next();\r\n ArrayList<Critter> critterList = population.get(pos);\r\n \r\n //Iterate through the critters ArrayList \r\n ListIterator<Critter> currCritter = critterList.listIterator();\r\n while(currCritter.hasNext()) {\r\n \tCritter thisCritter = currCritter.next();\r\n \tthisCritter.hasMoved = false;\r\n \tthisCritter.doTimeStep();\r\n \tif(thisCritter.hasMoved || thisCritter.getEnergy() <= 0) {\r\n \t\tcurrCritter.remove();\r\n \t} else {\r\n \t\tcurrCritter.set(thisCritter);\r\n \t}\r\n }\r\n population.replace(pos, critterList);\r\n }\r\n \t\r\n \tfixPopulation();\r\n \tmergePopulationMoved(populationMoved);\r\n \t\r\n \tdoEncounters();\r\n \t\r\n \tfixPopulation();\r\n \tmergePopulationMoved(populationMoved); //Stage 1 Complete\r\n \r\n \t//deduct resting energy cost from all critters in the hash map\r\n \t//could do a FOR EACH loop instead of iterator -- fixed\r\n \tpopulationIter = population.keySet().iterator();\r\n \twhile(populationIter.hasNext()) {\r\n \t\tString pos = populationIter.next();\r\n ArrayList<Critter> critterList = population.get(pos);\r\n \r\n //Iterate through the Critters attached to the keys in the Hash Map\r\n ListIterator<Critter> currCritter = critterList.listIterator();\r\n while(currCritter.hasNext()) {\r\n \tCritter thisCritter = currCritter.next();\r\n \t//deduct the rest energy cost from each critter\r\n \tthisCritter.energy = thisCritter.energy - Params.REST_ENERGY_COST;\r\n \t//remove all critters that have died after reducing the rest energy cost\r\n \tif(thisCritter.getEnergy() <= 0) {\r\n \t\tcurrCritter.remove();\r\n \t} else {\r\n \t\tcurrCritter.set(thisCritter);\r\n \t}\r\n }\r\n population.replace(pos, critterList);\r\n \t}\r\n \t\r\n \tmergePopulationMoved(babies);\r\n \t\r\n \t\r\n \t//add the clovers in each refresh of the world \r\n \ttry {\r\n \t\tfor(int j = 0; j < Params.REFRESH_CLOVER_COUNT; j++) {\r\n \t\t\tcreateCritter(\"Clover\");\r\n \t\t}\r\n \t} catch(InvalidCritterException p) {\r\n \t\tp.printStackTrace();\r\n \t}\r\n }", "void placeToOutnumberEnemies(int numberOfArmies)\n\t{\n\tboolean[] outnumber = new boolean[countries.length];\n\tfor (int i = 0; i < countries.length; i++)\n\t\t{\toutnumber[i] = false;\t}\n\n\tfor (int i = 0; i < countries.length; i++)\n\t\t{\n\t\tif (countries[i].getOwner() != ID)\n\t\t\t{\n\t\t\t// find out if we outnumber this guy from somewhere\n\t\t\tCountry[] neigbors = countries[i].getAdjoiningList();\n\t\t\tfor (int n = 0; n < neigbors.length; n++)\n\t\t\t\t{\n\t\t\t\tif (neigbors[n].getOwner() == ID && neigbors[n].getArmies() > countries[i].getArmies())\n\t\t\t\t\t{\toutnumber[i] = true;\t}\n\t\t\t\t}\n\t\t\t}\n\t\telse\n\t\t\t{\t// we own it, so just say we outnumber it\n\t\t\toutnumber[i] = true;\n\t\t\t}\n\t\t}\n\n\t// So now reenforce all the non-outnumbered countries that we can\n\tfor (int i = 0; i < countries.length && numberOfArmies > 0; i++)\n\t\t{\n\t\tif (! outnumber[i])\n\t\t\t{\n\t\t\t// Find our strongest country that borders it\n\t\t\tint armies = 0;\n\t\t\tCountry us = null;\n\t\t\tCountry[] neigbors = countries[i].getAdjoiningList();\n\t\t\tfor (int n = 0; n < neigbors.length; n++) \n\t\t\t\t{\n\t\t\t\tif (neigbors[n].getOwner() == ID && neigbors[n].getArmies() > armies)\n {\n\t\t\t\t\tus = neigbors[n];\n armies = neigbors[n].getArmies();\n System.out.println(\"EvilPixie running fixed code path\");\n }\n\t\t\t\t}\n\t\t\tif (us != null)\n\t\t\t\t{\n\t\t\t\tint numToPlace = countries[i].getArmies() - us.getArmies();\n\t\t\t\tnumToPlace = Math.max(numToPlace, 1);\n\t\t\t\tboard.placeArmies(numToPlace, us);\n\t\t\t\tnumberOfArmies -= numToPlace;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\tif (numberOfArmies > 0)\n\t\t{\n\t\tdebug(\"placeToOutnumberEnemies didn't use up all the armies: \"+numberOfArmies);\n\t\tplaceNearEnemies(numberOfArmies);\n\t\t}\n\t}", "private void decorateMountains(int xStart, int xLength, int floor, ArrayList finalListElements, ArrayList states,boolean enemyAddedBefore)\r\n\t {\n\t if (floor < 1)\r\n\t \treturn;\r\n\r\n\t // boolean coins = random.nextInt(3) == 0;\r\n\t boolean rocks = true;\r\n\r\n\t //add an enemy line above the box\r\n\t Random r = new Random();\r\n\t boolean enemyAdded=addEnemyLine(xStart + 1, xLength - 1, floor - 1);\r\n\r\n\t int s = 1;\r\n\t int e = 1;\r\n\r\n\t if(enemyAdded==false && enemyAddedBefore==false)\r\n\t {\r\n\t if (floor - 2 > 0){\r\n\t if ((xLength - e) - (xStart + s) > 0){\r\n\t for(int x = xStart + s; x < xLength- e; x++){\r\n\t \tboolean flag=true;\r\n\t \tfor(int i=0;i<states.size();i++)\r\n\t \t{\r\n\t \t\tElements element=(Elements)finalListElements.get(i);\r\n\t \t\t\tBlockNode state=(BlockNode)states.get(i);\r\n\t \t\t\t\r\n\t \t\t\tint xElement = (int)(initialStraight+state.getX());\r\n\t \t int floorC= (int)state.getY()+1;\r\n\t \t int widthElement=element.getWidth();\r\n\t \t int heigthElement=element.getHeigth()+2;\r\n\t \t \r\n\t \t int widthElementNext=1;\r\n\t \t int heigthElementNext=0;\r\n\t \t \r\n\t \t if(x+(widthElementNext-1)>=xElement && x<xElement+widthElement && (floor-1)-heigthElementNext<=floorC && (floor-1)>= floorC-heigthElement )\r\n\t \t {\r\n\t \t \tflag=false;\r\n\t \t \tbreak;\r\n\t \t }\r\n\t \t \t \t \t\t \t \r\n\t \t } \r\n\t \tif(flag==true)\r\n\t \t{\r\n\t \t\tsetBlock(x, floor - 1, COIN);\r\n\t \t}\r\n\t \r\n\t //COINS++;\r\n\t }\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t s = random.nextInt(4);\r\n\t e = random.nextInt(4);\r\n\t \r\n\t //this fills the set of blocks and the hidden objects inside them\r\n\t /*\r\n\t if (floor - 4 > 0)\r\n\t {\r\n\t if ((xLength - 1 - e) - (xStart + 1 + s) > 2)\r\n\t {\r\n\t for (int x = xStart + 1 + s; x < xLength - 1 - e; x++)\r\n\t {\r\n\t if (rocks)\r\n\t {\r\n\t if (x != xStart + 1 && x != xLength - 2 && random.nextInt(3) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_POWERUP);\r\n\t //BLOCKS_POWER++;\r\n\t }\r\n\t else\r\n\t {\t//the fills a block with a hidden coin\r\n\t setBlock(x, floor - 4, BLOCK_COIN);\r\n\t //BLOCKS_COINS++;\r\n\t }\r\n\t }\r\n\t else if (random.nextInt(4) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (2 + 1 * 16));\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (1 + 1 * 16));\r\n\t }\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_EMPTY);\r\n\t //BLOCKS_EMPTY++;\r\n\t }\r\n\t }\r\n\t }\r\n\t //additionElementToList(\"Block\", 1,(xLength - 1 - e)-(xStart + 1 + s));\r\n\t }\r\n\t \r\n\t }*/\r\n\t }", "private void decorateMountainsFloat(int xStart, int xLength, int floor, boolean enemyAddedBefore, ArrayList finalListElements, ArrayList states)\r\n\t {\n\t if (floor < 1)\r\n\t \treturn;\r\n\r\n\t // boolean coins = random.nextInt(3) == 0;\r\n\t boolean rocks = true;\r\n\r\n\t //add an enemy line above the box\r\n\t Random r = new Random();\r\n\t boolean enemyAdded=addEnemyLine(xStart + 1, xLength - 1, floor - 1);\r\n\r\n\t int s = 1;\r\n\t int e = 1;\r\n\r\n\t if(enemyAdded==false && enemyAddedBefore==false)\r\n\t {\r\n\t if (floor - 2 > 0){\r\n\t if ((xLength - e) - (xStart + s) > 0){\r\n\t for(int x = xStart + s; x < xLength- e; x++){\r\n\t \tboolean flag=true;\r\n\t \tfor(int i=0;i<states.size();i++)\r\n\t \t{\r\n\t \t\tElements element=(Elements)finalListElements.get(i);\r\n\t \t\t\tBlockNode state=(BlockNode)states.get(i);\r\n\t \t\t\t\r\n\t \t\t\tint xElement = (int)(initialStraight+state.getX());\r\n\t \t int floorC= (int)state.getY()+1;\r\n\t \t int widthElement=element.getWidth();\r\n\t \t int heigthElement=element.getHeigth()+2;\r\n\t \t \r\n\t \t int widthElementNext=1;\r\n\t \t int heigthElementNext=0;\r\n\t \t \r\n\t \t if(x+(widthElementNext-1)>=xElement && x<xElement+widthElement && (floor-1)-heigthElementNext<=floorC && (floor-1)>= floorC-heigthElement )\r\n\t \t {\r\n\t \t \tflag=false;\r\n\t \t \tbreak;\r\n\t \t }\r\n\t \t \t \t \t\t \t \r\n\t \t } \r\n\t \tif(flag==true)\r\n\t \t{\r\n\t \t\tsetBlock(x, floor - 1, COIN);\r\n\t \t}\r\n\t \r\n\t //COINS++;\r\n\t }\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t s = random.nextInt(4);\r\n\t e = random.nextInt(4);\r\n\t \r\n\t //this fills the set of blocks and the hidden objects inside them\r\n\t /*\r\n\t if (floor - 4 > 0)\r\n\t {\r\n\t if ((xLength - 1 - e) - (xStart + 1 + s) > 2)\r\n\t {\r\n\t for (int x = xStart + 1 + s; x < xLength - 1 - e; x++)\r\n\t {\r\n\t if (rocks)\r\n\t {\r\n\t if (x != xStart + 1 && x != xLength - 2 && random.nextInt(3) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_POWERUP);\r\n\t //BLOCKS_POWER++;\r\n\t }\r\n\t else\r\n\t {\t//the fills a block with a hidden coin\r\n\t setBlock(x, floor - 4, BLOCK_COIN);\r\n\t //BLOCKS_COINS++;\r\n\t }\r\n\t }\r\n\t else if (random.nextInt(4) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (2 + 1 * 16));\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (1 + 1 * 16));\r\n\t }\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_EMPTY);\r\n\t //BLOCKS_EMPTY++;\r\n\t }\r\n\t }\r\n\t }\r\n\t //additionElementToList(\"Block\", 1,(xLength - 1 - e)-(xStart + 1 + s));\r\n\t }\r\n\t \r\n\t }*/\r\n\t }", "public void areaEffect(Player player){\n if(object.getProperties().containsKey(\"endLevel\")) {\n System.out.println(\"Fin du level\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n PlayScreen.setEndLevel();\n }\n\n if(object.getProperties().containsKey(\"startBossFight\")) {\n\n System.out.println(\"Start Boss Fight\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n\n TiledMapTileLayer.Cell cell = new TiledMapTileLayer.Cell();\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 6, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 7, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 8, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 9, cell);\n\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 6, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 7, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 8, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 9, cell);\n\n PlayScreen.cameraChangeBoss(true);\n setCategoryFilterFixture(GameTest.GROUND_BIT, PlayScreen.getFixtureStartBoss());\n\n }\n\n if(object.getProperties().containsKey(\"blueKnight\")) {\n System.out.println(\"Changement en bleu\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n getCell().setTile(null);\n PlayScreen.setColorKnight(\"blue\");\n }\n\n if(object.getProperties().containsKey(\"greyKnight\")) {\n System.out.println(\"Changement en gris\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n getCell().setTile(null);\n PlayScreen.setColorKnight(\"grey\");\n }\n\n if(object.getProperties().containsKey(\"redKnight\")) {\n System.out.println(\"Changement en rouge\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n getCell().setTile(null);\n PlayScreen.setColorKnight(\"red\");\n }\n\n }", "public static void worldTimeStep() {\n\t\t\n\t//Do time step for all critters\n\t\tfor (Critter c: population) {\n\t\t\tc.doTimeStep();\t\t\t\n\t\t}\n\t\n\t\t\n\t//Resolve encounters\n\t\tIterator<Critter> it1 = population.iterator();\n\t\tfightMode = true;\n\t\twhile(it1.hasNext())\n\t\t{\n\t\t\tCritter c = it1.next();\n\t\t\tIterator<Critter> it2 = population.iterator();\n\t\t\twhile(it2.hasNext()&&(c.energy > 0)) \n\t\t\t{\t\n\t\t\t\tCritter a =it2.next();\n\t\t\t\tif((c != a)&&(a.x_coord==c.x_coord)&&(a.y_coord==c.y_coord))\n\t\t\t\t{\n\t\t\t\t\tboolean cFighting = c.fight(a.toString());\n\t\t\t\t\tboolean aFighting = a.fight(c.toString());\n\t\t\t\t//If they are both still in the same location and alive, then fight\n\t\t\t\t\tif ((a.x_coord == c.x_coord) && (a.y_coord == c.y_coord) && (a.energy > 0) && (c.energy > 0)) {\t\t\n\t\t\t\t\t\tint cFight=0;\n\t\t\t\t\t\tint aFight=0;\n\t\t\t\t\t\tif(cFighting)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcFight = getRandomInt(100);\n\t\t\t\t\t\t\tcFight++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(aFighting)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taFight =getRandomInt(100);\n\t\t\t\t\t\t\taFight++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(cFight>aFight)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tc.energy+=(a.energy/2);\n\t\t\t\t\t\t\t//it2.remove();\n\t\t\t\t\t\t\ta.energy=0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(aFight>cFight)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ta.energy+=(c.energy/2);\n\t\t\t\t\t\t\t//it1.remove()\n\t\t\t\t\t\t\tc.energy=0;\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{\n\t\t\t\t\t\t\tif(aFight>50)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ta.energy+=(c.energy/2);\n\t\t\t\t\t\t\t\t//it1.remove();\n\t\t\t\t\t\t\t\tc.energy=0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tc.energy+=(a.energy);\n\t\t\t\t\t\t\t\t//it2.remove();\n\t\t\t\t\t\t\t\ta.energy=0;\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\tfightMode = false;\n\t\t\n\t//Update rest energy and reset hasMoved\n\t\tfor (Critter c2: population) {\n\t\t\tc2.hasMoved = false;\n\t\t\tc2.energy -= Params.rest_energy_cost;\n\t\t}\n\t\t\n\t//Spawn offspring and add to population\n\t\tpopulation.addAll(babies);\n\t\tbabies.clear();\n\t\t\n\t\tIterator<Critter> it3 = population.iterator();\n\t\twhile(it3.hasNext())\n\t\t{\n\t\t\tif(it3.next().energy<=0)\n\t\t\t\tit3.remove();\n\t\t}\n\t//Create new algae\n\t\tfor (int i = 0; i < Params.refresh_algae_count; i++) {\n\t\t\ttry {\n\t\t\t\tmakeCritter(\"Algae\");\n\t\t\t} catch (InvalidCritterException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "void raiseNumberOfStonesOnBoard();", "private void addMountains() {\n int randRow = 0;\n int randColumn = 0;\n int randValue = 0;\n do {\n randRow = (int)(Math.round(Math.random()*(MAP_LENGTH-4))) + 2;\n randColumn = (int)(Math.round(Math.random()*(MAP_LENGTH-4))) + 2;\n for (int i = (randRow - 2); i < (randRow + 2); i++) {\n for (int j = (randColumn - 2); j < (randColumn + 2); j++) {\n if ((tileMap[i][j].getTerrain() instanceof Grass) && (tileMap[i][j].isEmpty())) {\n randValue = (int)(Math.round(Math.random()));\n if (randValue == 0) {\n tileMap[i][j] = new Space(new Mountain(i, j)); //Create a mountain\n }\n }\n }\n }\n } while (!checkMountainCoverage());\n }", "private void updateClearedTiles() {\r\n int count = 0;\r\n for (int r = 0; r < gridSize; r++) {\r\n for (int c = 0; c < gridSize; c++) {\r\n if (!grid[r][c].isHidden() && !grid[r][c].isBomb()) {\r\n count++;\r\n }\r\n }\r\n }\r\n clearedTiles = count;\r\n }", "@Raw\r\n\tpublic void setNbProjectiles(int nbProjectiles) {\r\n\t\tthis.nbProjectiles = nbProjectiles;\r\n\t}", "public static int getCount()\n\t{\n\t\treturn projectileCount;\n\t}", "public Location attack() {\n resetBoard();\n\n if (getHits().isEmpty()) {\n// System.out.println(\"Hunting\");\n\n for (final int[] r : board) {\n for (int c = 0; c < r.length; c++) {\n if (getIntegers().contains(5) && (c < (r.length - 4)))\n if ((-1 != r[c]) && (-1 != r[c + 1]) && (-1 != r[c + 2]) && (-1 != r[c + 3]) && (-1 != r[c + 4])) {\n ++r[c];\n ++r[c + 1];\n ++r[c + 2];\n ++r[c + 3];\n ++r[c + 4];\n }\n\n if (getIntegers().contains(4) && (c < (r.length - 3)))\n if ((-1 != r[c]) && (-1 != r[c + 1]) && (-1 != r[c + 2]) && (-1 != r[c + 3])) {\n ++r[c];\n ++r[c + 1];\n ++r[c + 2];\n ++r[c + 3];\n }\n if (getIntegers().contains(3) && (c < (r.length - 2)))\n if ((-1 != r[c]) && (-1 != r[c + 1]) && (-1 != r[c + 2])) {\n ++r[c];\n ++r[c + 1];\n ++r[c + 2];\n\n }\n if (getIntegers().contains(3) && (2 == Collections.frequency(getIntegers(), 3)) && (c < (r.length - 2)))\n if ((-1 != r[c]) && (-1 != r[c + 1]) && (-1 != r[c + 2])) {\n ++r[c];\n ++r[c + 1];\n ++r[c + 2];\n\n }\n if (getIntegers().contains(2) && (c < (r.length - 1)))\n if ((-1 != r[c]) && (-1 != r[c + 1])) {\n ++r[c];\n ++r[c + 1];\n }\n }\n }\n\n for (int c = 0; c < board[0].length; c++) {\n for (int r = 0; r < board.length; r++) {\n if (getIntegers().contains(5) && (r < (board.length - 4)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c]) && (-1 != board[r + 3][c]) && (-1 != board[r + 4][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n ++board[r + 3][c];\n ++board[r + 4][c];\n }\n\n if (getIntegers().contains(4) && (r < (board.length - 3)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c]) && (-1 != board[r + 3][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n ++board[r + 3][c];\n }\n if (getIntegers().contains(3) && (r < (board.length - 2)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c])) {\n\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n\n\n }\n if (getIntegers().contains(3) && (2 == Collections.frequency(getIntegers(), 3)) && (r < (board.length - 2)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c])) {\n\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n\n\n }\n if (getIntegers().contains(2) && (r < (board.length - 1)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n }\n }\n }\n } else {\n// System.out.println(\"Hitting\");\n\n for (final Location hit : getHits()) {\n final int r = hit.getRow();\n final int c = hit.getCol();\n\n if (getIntegers().contains(2)) {\n if ((0 <= (c - 1)) && (-1 != board[r][c]) && (-1 != board[r][c - 1])) {\n ++board[r][c];\n ++board[r][c - 1];\n }\n\n\n if (((c + 1) < board[0].length) && (-1 != board[r][c]) && (-1 != board[r][c + 1])) {\n ++board[r][c];\n ++board[r][c + 1];\n }\n\n if ((0 <= (r - 1)) && (-1 != board[r][c]) && (-1 != board[r - 1][c])) {\n ++board[r][c];\n ++board[r - 1][c];\n }\n\n if (((r + 1) < board.length) && (-1 != board[r][c]) && (-1 != board[r + 1][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n }\n\n\n }\n if (getIntegers().contains(3)) {\n final int inc = Collections.frequency(getIntegers(), 3);\n\n if ((0 <= (c - 2)) && (-1 != board[r][c]) && (-1 != board[r][c - 1]) && (-1 != board[r][c - 2])) {\n board[r][c] += inc;\n board[r][c - 1] += inc;\n board[r][c - 2] += inc;\n }\n if (((c + 2) < board[0].length) && (-1 != board[r][c]) && (-1 != board[r][c + 1]) && (-1 != board[r][c + 2])) {\n board[r][c] += inc;\n board[r][c + 1] += inc;\n board[r][c + 2] += inc;\n }\n if ((0 <= (r - 2)) && (-1 != board[r][c]) && (-1 != board[r - 1][c]) && (-1 != board[r - 2][c])) {\n board[r][c] += inc;\n board[r - 1][c] += inc;\n board[r - 2][c] += inc;\n }\n if (((r + 2) < board.length) && (-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c])) {\n board[r][c] += inc;\n board[r + 1][c] += inc;\n board[r + 2][c] += inc;\n }\n\n\n }\n if (getIntegers().contains(4)) {\n if ((0 <= (c - 3)) && (-1 != board[r][c]) && (-1 != board[r][c - 1]) && (-1 != board[r][c - 2]) && (-1 != board[r][c - 3])) {\n ++board[r][c];\n ++board[r][c - 1];\n ++board[r][c - 2];\n ++board[r][c - 3];\n }\n if (((c + 3) < board[0].length) && (-1 != board[r][c]) && (-1 != board[r][c + 1]) && (-1 != board[r][c + 2]) && (-1 != board[r][c + 3])) {\n ++board[r][c];\n ++board[r][c + 1];\n ++board[r][c + 2];\n ++board[r][c + 3];\n }\n if ((0 <= (r - 3)) && (-1 != board[r][c]) && (-1 != board[r - 1][c]) && (-1 != board[r - 2][c]) && (-1 != board[r - 3][c])) {\n ++board[r][c];\n ++board[r - 1][c];\n ++board[r - 2][c];\n ++board[r - 3][c];\n }\n if (((r + 3) < board.length) && (-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c]) && (-1 != board[r + 3][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n ++board[r + 3][c];\n }\n\n\n }\n if (getIntegers().contains(5)) {\n if ((0 <= (c - 4)) && (-1 != board[r][c]) && (-1 != board[r][c - 1]) && (-1 != board[r][c - 2]) && (-1 != board[r][c - 3]) && (-1 != board[r][c - 4])) {\n ++board[r][c];\n ++board[r][c - 1];\n ++board[r][c - 2];\n ++board[r][c - 3];\n ++board[r][c - 4];\n }\n if (((c + 4) < board[0].length) && (-1 != board[r][c]) && (-1 != board[r][c + 1]) && (-1 != board[r][c + 2]) && (-1 != board[r][c + 3]) && (-1 != board[r][c + 4])) {\n ++board[r][c];\n ++board[r][c + 1];\n ++board[r][c + 2];\n ++board[r][c + 3];\n ++board[r][c + 4];\n }\n if ((0 <= (r - 4)) && (-1 != board[r][c]) && (-1 != board[r - 1][c]) && (-1 != board[r - 2][c]) && (-1 != board[r - 3][c]) && (-1 != board[r - 4][c])) {\n ++board[r][c];\n ++board[r - 1][c];\n ++board[r - 2][c];\n ++board[r - 3][c];\n ++board[r - 4][c];\n }\n if (((r + 4) < board.length) && (-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c]) && (-1 != board[r + 3][c]) && (-1 != board[r + 4][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n ++board[r + 3][c];\n ++board[r + 4][c];\n }\n }\n }\n\n for (final Location hit : getHits()) {\n board[hit.getRow()][hit.getCol()] = 0;\n }\n }\n\n// for (int[] i : board)\n// System.out.println(Arrays.toString(i));\n return findLargest();\n }", "@Override\n void planted() {\n super.planted();\n TimerTask Task = new TimerTask() {\n @Override\n public void run() {\n\n for (Drawable drawables : gameState.getDrawables()) {\n if (drawables instanceof Zombie) {\n int distance = (int) Math.sqrt(Math.pow((drawables.x - x), 2) + Math.pow((drawables.y - y), 2));\n if (distance <= explosionradious) {\n ((Zombie) drawables).hurt(Integer.MAX_VALUE);\n }\n }\n }\n\n life = 0;\n }\n\n };\n\n Timer timer = new Timer();\n timer.schedule(Task, 2000);\n }", "@Test\n public void testTerrainDimension() {\n IntStream.iterate(0, i -> i + 1).limit(LevelImpl.LEVEL_MAX).forEach(k -> {\n terrain = terrainFactory.create(level.getBlocksNumber());\n assertEquals(TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n TerrainFactoryImpl.TERRAIN_HEGHT / TerrainFactoryImpl.TERRAIN_ROWS);\n assertEquals(TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n TerrainFactoryImpl.TERRAIN_WIDTH / TerrainFactoryImpl.TERRAIN_COLUMNS);\n level.levelUp(); \n });\n }", "@Override\n public void postPopulate(MetropolisGenerator generator, Chunk chunk) {\n SchematicConfig.RoadCutout[] cuts = clipboard.getSettings().getCutouts();\n \n Cartesian base = new Cartesian(this.chunkX << 4, Constants.BUILD_HEIGHT - 1, this.chunkZ << 4);\n \n for (SchematicConfig.RoadCutout cut : cuts) {\n Cartesian offset, size;\n ContextType roadCheck;\n Parcel parcel;\n \n switch (direction) {\n case NORTH:\n offset = new Cartesian(clipboard.getSizeX(direction) - cut.startPoint, 0, -1);\n size = new Cartesian(-cut.length, cutoutHeight, -cutoutDepth);\n parcel = grid.getParcel(chunkX, chunkZ - 1);\n roadCheck = parcel.getContextType();\n if (roadCheck.equals(ContextType.STREET) || roadCheck.equals(ContextType.HIGHWAY)) {\n cutoutBlocks(generator, base.add(offset), size, Material.STONE);\n }\n break;\n case EAST:\n offset = new Cartesian(clipboard.getSizeX(direction), 0, clipboard.getSizeZ(direction) - cut.startPoint);\n size = new Cartesian(cutoutDepth, cutoutHeight, -cut.length);\n parcel = grid.getParcel(chunkX + (clipboard.getSizeX(direction) >> 4), chunkZ);\n roadCheck = parcel.getContextType();\n if (roadCheck.equals(ContextType.STREET) || roadCheck.equals(ContextType.HIGHWAY)) {\n cutoutBlocks(generator, base.add(offset), size, Material.STONE);\n }\n break;\n case SOUTH:\n offset = new Cartesian(cut.startPoint + 1, 0, clipboard.getSizeZ(direction));\n size = new Cartesian(cut.length, cutoutHeight, cutoutDepth);\n roadCheck = grid.getParcel(chunkX, chunkZ + (clipboard.getSizeZ(direction) >> 4)).getContextType();\n if (roadCheck.equals(ContextType.STREET) || roadCheck.equals(ContextType.HIGHWAY)) {\n cutoutBlocks(generator, base.add(offset), size, Material.STONE);\n }\n break;\n case WEST:\n offset = new Cartesian(-1, 0, cut.startPoint + 1);\n size = new Cartesian(-cutoutDepth, cutoutHeight, cut.length);\n parcel = grid.getParcel(chunkX - 1, chunkZ);\n roadCheck = parcel.getContextType();\n if (roadCheck.equals(ContextType.STREET) || roadCheck.equals(ContextType.HIGHWAY)) {\n cutoutBlocks(generator, base.add(offset), size, Material.STONE);\n }\n break;\n }\n }\n }", "private void combatPhase() {\n \t\n \tpause();\n \tDice.setFinalValMinusOne();\n\n \t// Go through each battle ground a resolve each conflict\n \tfor (Coord c : battleGrounds) {\n \t\t\n \tClickObserver.getInstance().setTerrainFlag(\"\");\n \t\n \tSystem.out.println(\"Entering battleGround\");\n \t\tfinal Terrain battleGround = Board.getTerrainWithCoord(c);\n \t\t\n \t\t// find the owner of terrain for post combat\n \tPlayer owner = battleGround.getOwner();\n \t\n \t\t// simulate a click on the first battleGround, cover all other terrains\n \t\tClickObserver.getInstance().setClickedTerrain(battleGround);\n \t\tPlatform.runLater(new Runnable() {\n @Override\n public void run() {\n \t\tClickObserver.getInstance().whenTerrainClicked();\n \t\tBoard.applyCovers();\n \t\tClickObserver.getInstance().getClickedTerrain().uncover();\n \tClickObserver.getInstance().setTerrainFlag(\"Disabled\");\n }\n });\n \t\t\n \t\t// Get the fort\n \t Fort battleFort = battleGround.getFort(); \n \t\t\n \t\t// List of players to battle in the terrain\n \t\tArrayList<Player> combatants = new ArrayList<Player>();\n \t\t\n \t\t// List of pieces that can attack (including forts, city/village)\n \t\tHashMap<String, ArrayList<Piece>> attackingPieces = new HashMap<String, ArrayList<Piece>>();\n \t\t\n \t\tSystem.out.println(battleGround.getContents().keySet());\n \t\t\n \t\tIterator<String> keySetIterator = battleGround.getContents().keySet().iterator();\n\t \twhile(keySetIterator.hasNext()) {\n\t \t\tString key = keySetIterator.next();\n\t \t\t\n \t\t\tcombatants.add(battleGround.getContents().get(key).getOwner());\n \t\t\tattackingPieces.put(battleGround.getContents().get(key).getOwner().getName(), (ArrayList<Piece>) battleGround.getContents().get(key).getStack().clone()); \n \t\t\t\n\t \t}\n\t \t\n\t \t\n\t \t\n\t \t// if the owner of the terrain has no pieces, just a fort or city/village\n\t\t\tif (!combatants.contains(battleGround.getOwner()) && battleFort != null) {\n\t\t\t\tcombatants.add(battleGround.getOwner());\n\t\t\t\tattackingPieces.put(battleGround.getOwner().getName(), new ArrayList<Piece>());\n\t\t\t}\n\n \t\t// add forts and city/village to attackingPieces\n \t\tif (battleFort != null) {\n \t\t\tattackingPieces.get(battleGround.getOwner().getName()).add(battleFort);\n \t\t}\n \t\t\n \t\tkeySetIterator = attackingPieces.keySet().iterator();\n\t \twhile (keySetIterator.hasNext()) {\n\t \t\tString key = keySetIterator.next();\n\t \t\t\n\t \t\tfor (Piece p : attackingPieces.get(key)) {\n\t \t\t\tif (p.getName().equals(\"Baron Munchhausen\") || p.getName().equals(\"Grand Duke\")) {\n\t \t\t\t\tif (p.getOwner() != battleGround.getOwner())\n\t \t\t\t\t\t((Performable)p).specialAbility();\n\t \t\t\t}\n\t \t\t\t\t\n\t \t\t}\n\t \t}\n \t\t// TODO implement city/village\n// \t\tif (City and village stuff here)\n \t\tSystem.out.println(combatants);\n \t\t\n \t\tboolean exploring = (!battleGround.isExplored() && battleGround.getContents().size() == 1);\n \t\t// Fight until all attackers are dead, or until the attacker becomes the owner of the hex\n \t\twhile (combatants.size() > 1 || exploring) {\n \t\t\t\n /////////////Exploration\n \t// Check if this is an exploration battle:\n \t\t// Must fight other players first\n \t\t\tboolean fightingWildThings = false;\n \tif (exploring) {\n\n \t\t\t\t// Set the battleGround explored\n \t\t\t\tbattleGround.setExplored(true);\n \t\n \t\tString exploringPlayer = null;\n \t\tIterator<String> keySetIter = battleGround.getContents().keySet().iterator();\n \t \twhile(keySetIter.hasNext()) {\n \t \t\tString key = keySetIter.next();\n \t \t\texploringPlayer = key;\n \t \t}\n \t\tplayer = battleGround.getContents(exploringPlayer).getOwner();\n \t\tplayer.flipAllUp();\n \t \t\n \t\t// Get user to roll die to see if explored right away\n \t\t\t\tPlatform.runLater(new Runnable() {\n \t @Override\n \t public void run() {\n \t \tDiceGUI.getInstance().uncover();\n \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() \n \t \t\t\t+ \", roll the die. You need a 1 or a 6 to explore this terrain without a fight!\");\n \t }\n \t\t\t\t});\n \t\t\t\t\n \t// Dice is set to -1 while it is 'rolling'. This waits for the roll to stop, ie not -1\n \t\t\t\tint luckyExplore = -1;\n \t\t\t\twhile (luckyExplore == -1) {\n \t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\tluckyExplore = Dice.getFinalVal();\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// If success TODO FIX this \n \t\t\t\tif (luckyExplore == 1 || luckyExplore == 6) {\n \t\t\t\t\t\n \t\t\t\t\t// Cover die. Display msg\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n \t\t @Override\n \t\t public void run() {\n \t\t \tDiceGUI.getInstance().cover();\n \t\t \tGUI.getHelpText().setText(\"Attack phase: Congrats!\" + player.getName() \n \t\t \t\t\t+ \"!, You get the terrain!\");\n \t\t }\n \t\t\t\t\t});\n \t\t\t\t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n \t\t\t\t\texploring = false;\n \t\t\t\t\tbreak;\n \t\t\t\t\t\n \t\t\t\t} else { // Else failure. Must fight or bribe\n \t\t\t\t\t\n \t\t\t\t\tfightingWildThings = true;\n \t\t\t\t\t\n \t\t\t\t\t// Cover die. Display msg\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n \t\t @Override\n \t\t public void run() {\n \t\t \tDiceGUI.getInstance().cover();\n \t\t \tbattleGround.coverPieces();\n \t\t \tGUI.getHelpText().setText(\"Attack phase: Boooo!\" + player.getName() \n \t\t \t\t\t+ \"!, You have to bribe, or fight for your right to explore!\");\n \t\t }\n \t\t\t\t\t});\n \t\t\t\t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n \t\t\t\t\t\n \t\t\t\t\t// add luckyExplore amount of pieces to terrain under wildThing player\n \t\t\t\t\tfinal ArrayList<Piece> wildPieces = TheCup.getInstance().draw(luckyExplore);\n \t\t\t\t\t\t\n \t\t\t\t\t// Update the infopanel with played pieces. Active done button\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n \t\t @Override\n \t\t public void run() {\n \t\t \twildThings.playWildPieces(wildPieces, battleGround);\n \t\t GUI.getDoneButton().setDisable(false);\n \t\t battleGround.coverPieces();\n \t\t \tInfoPanel.showTileInfo(battleGround);\n \t\t \n \t\t }\n \t\t\t\t\t});\n \t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\t\n \t\t\t\t\t//////Bribing here\n \t\t\t\t\tpause();\n \t\t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectCreatureToBribe\");\n \t\t\t\t\t\n \t\t\t\t\t// Uncover the pieces that the player can afford to bribe\n \t\t\t\t\t// canPay is false if there are no Pieces that the user can afford to bribe\n \t\t\t\t\tboolean canPay = false;\n \t\t\t\t\tfor (final Piece p : battleGround.getContents(wildThings.getName()).getStack()) {\n \t\t\t\t\t\tif (((Combatable)p).getCombatValue() <= player.getGold()) {\n \t\t\t\t\t\t\tcanPay = true;\n \t\t\t\t\t\t\tPlatform.runLater(new Runnable() {\n \t\t\t\t @Override\n \t\t\t\t public void run() {\n \t\t\t\t \tp.uncover();\n \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\ttry { Thread.sleep(50); } catch( Exception e ){ return; }\n \t\t\t\t\t\n \t\t\t\t\t// Continue looping until there are no more pieces user can afford to bribe, or user hits done button\n \t\t\t\t\twhile (canPay && isPaused) {\n \t\t\t\t\t\t\n \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t\t @Override\n\t \t\t public void run() {\n\t \t\t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() \n\t \t\t \t\t\t+ \", Click on creatures you would like to bribe\");\n\t \t\t }\n \t\t\t\t\t\t});\n \t\t\t\t\t\t\n \t\t\t\t\t\t// wait for user to hit done, or select a piece\n \t\t\t\t\t\tpieceClicked = null;\n \t\t\t\t\t\twhile(pieceClicked == null && isPaused) {\n \t\t\t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\t\t}\n \t\t\t\t\t\tif (pieceClicked != null) {\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t// spend gold for bribing. Remove clicked creature\n \t\t\t\t\t\t\tplayer.spendGold(((Combatable)pieceClicked).getCombatValue());\n \t\t\t\t\t\t\t((Combatable)pieceClicked).inflict();\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t// cover pieces that are too expensive\n \t\t\t\t\t\t\tPlatform.runLater(new Runnable() {\n \t\t\t\t @Override\n \t\t\t\t public void run() {\n \t\t\t\t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() \n \t\t\t \t\t\t+ \" bribed \" + pieceClicked.getName());\n \t\t\t\t \tInfoPanel.showTileInfo(battleGround);\n \t\t\t\t \tif (battleGround.getContents(wildThings.getName()) != null) {\n\t \t\t\t\t for (Piece p : battleGround.getContents(wildThings.getName()).getStack()) {\n\t \t\t\t\t \tif (((Combatable)p).getCombatValue() > player.getGold())\n\t \t\t\t\t \t\tp.cover();\n\t \t\t\t\t }\n \t\t\t\t \t}\n \t\t\t\t }\n \t\t\t\t\t\t\t});\n \t\t\t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t// Check if there are any pieces user can afford to bribe and set canPay to true if so\n \t\t\t\t\t\t\tcanPay = false;\n \t\t\t\t\t\t\tif (battleGround.getContents(wildThings.getName()) == null || battleGround.getContents(wildThings.getName()).getStack().size() == 1)\n \t\t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t\telse {\n\t \t\t\t\t\t\t\tfor (final Piece p : battleGround.getContents(wildThings.getName()).getStack()) {\n\t \t\t\t\t\t\t\t\tif (((Combatable)p).getCombatValue() <= player.getGold()) {\n\t \t\t\t\t\t\t\t\t\tcanPay = true;\n\t \t\t\t\t\t\t\t\t\tbreak;\n\t \t\t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t @Override\n\t\t\t public void run() {\n\t\t\t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() \n\t\t \t\t\t+ \" done bribing\");\n\t\t\t }\n \t\t\t\t\t});\n \t\t\t\t\tSystem.out.println(\"Made it past bribing\");\n \t\t\t\t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n \t\t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectPieceToAttackWith\");\n \t\t\t\t\t\n \t\t\t\t\t// Done bribing, on to fighting\n \t\t\t\t\t\n \t\t\t\t\t// find another player to control wildThings and move on to regular combat\n \t\t\t\t\t// to be used later \n \t\t\t\t\tPlayer explorer = player;\n \t\t\t\t\tPlayer wildThingsController = null;\n \t\t\t\t\tfor (Player p : playerList) {\n \t\t\t\t\t\tif (!p.getName().equals(player.getName()))\n \t\t\t\t\t\t\twildThingsController = p;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// If wild things still has pieces left:\n \t\t\t\t\tif (battleGround.getContents().containsKey(wildThings.getName())) {\n\t \t\t\t\t\tcombatants.add(battleGround.getContents().get(wildThings.getName()).getOwner());\n\t \t \t\t\tattackingPieces.put(wildThings.getName(), (ArrayList<Piece>) battleGround.getContents().get(wildThings.getName()).getStack().clone()); \n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// cover pieces again\n \t\t\t\tPlatform.runLater(new Runnable() {\n \t @Override\n \t public void run() {\n \t \tbattleGround.coverPieces();\n \t }\n \t\t\t\t});\n \t\t\t\t\n \t\t\t\tplayer.flipAllDown();\n \t} // end if (exploring)\n \t\t\t\n \t\t\tSystem.out.println(\"combatants.size() > 1 : \" + combatants.size());\n \t\t\tSystem.out.println(combatants);\n \t\t\t\n \t\t\t// This hashMap keeps track of the player to attack for each player\n \t\t\tHashMap<String, Player> toAttacks = new HashMap<String, Player>();\n\n\t\t\t\t// each player selects which other player to attack in case of more than two combatants\n \t\t\tif (combatants.size() > 2) {\n \t\t\t\t\n \t\t\t\tfor (final Player p : combatants) {\n \t\t\t\t\tif (!p.isWildThing()) {\n\t \t \t\tpause();\n\t \t \t\tClickObserver.getInstance().setPlayerFlag(\"Attacking: SelectPlayerToAttack\");\n\t \t \t\tplayer = p;\n\t\t \tPlatform.runLater(new Runnable() {\n\t\t \t @Override\n\t\t \t public void run() {\n\t\t \t \tPlayerBoard.getInstance().applyCovers();\n\t\t \t \tbattleGround.coverPieces();\n\t\t \t \t GUI.getHelpText().setText(\"Attack phase: \" + player.getName()\n\t\t \t + \", select which player to attack\");\n\t\t\t \t \t}\n\t\t \t });\n\t\t \tfor (final Player pl : combatants) {\n\t\t \t\tif (!pl.getName().equals(player.getName())) {\n\t\t \t\t\tPlatform.runLater(new Runnable() {\n\t\t \t \t @Override\n\t\t \t \t public void run() {\n\t\t \t \t \tPlayerBoard.getInstance().uncover(pl);\n\t\t \t \t }\n\t\t \t\t\t});\n\t\t \t\t}\n\t\t \t}\n\t\t \twhile (isPaused) {\n\t\t \ttry { Thread.sleep(100); } catch( Exception e ){ return; } \n\t\t \t }\n\t\t \t\n\t\t \t// ClickObserver sets playerClicked, then unpauses. This stores what player is attacking what player\n\t\t \ttoAttacks.put(p.getName(), playerClicked);\n\t \t \t\tClickObserver.getInstance().setPlayerFlag(\"\");\n\t\t \t\n\t \t \t} \n \t\t\t\t}\n \t\t\t\tcombatants.remove(wildThings);\n \t\t\t\tPlayerBoard.getInstance().removeCovers();\n \t\t\t\t\n \t } else { // Only two players fighting\n \t \t\n \t \tfor (Player p1 : combatants) {\n \t \t\tfor (Player p2 : combatants) {\n \t \t\t\tif (!p1.getName().equals(p2.getName())) {\n \t \t \ttoAttacks.put(p1.getName(), p2);\n \t \t\t\t}\n \t \t\t}\n \t \t}\n \t }\n \t\t\t\n ///////////////////Call out bluffs here:\n \t\t\tbattleGround.flipPiecesUp();\n \t\t\tfor (final Player p : combatants) {\n \t\t\t\t\n \t\t\t\t// Make sure not wildThings\n \t\t\t\tif (!p.isWildThing()) {\n \t\t\t\t\t\n \t\t\t\t\tArrayList <Piece> callOuts = new ArrayList<Piece>();\n \t\t\t\t\t\n \t\t\t\t\tfor (final Piece ap : attackingPieces.get(p.getName())) {\n \t\t\t\t\t\t\n \t\t\t\t\t\t// If not supported the gtfo\n \t\t\t\t\t\tif (!ap.isSupported()) {\n\n \t\t\t\t\t\t\tcallOuts.add(ap);\n \t\t\t\t\t\t\t((Combatable)ap).inflict();\n \t\t\t\t\t\t\ttry { Thread.sleep(250); } catch( Exception e ){ return; } \n \t\t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t \t @Override\n\t \t \t public void run() {\n\t \t \t \tInfoPanel.showTileInfo(battleGround);\n\t \t \t \tGUI.getHelpText().setText(\"Attack phase: \" + p.getName()\n\t\t\t \t + \" lost their \" + ap.getName() + \" in a called bluff!\");\n\t \t \t }\n\t \t\t\t});\n \t\t\t\t\t\t\ttry { Thread.sleep(250); } catch( Exception e ){ return; } \n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tfor (Piece co : callOuts) {\n \t\t\t\t\t\tattackingPieces.get(p.getName()).remove(co);\n \t\t\t\t\t}\n\t\t\t\t\t\tif (attackingPieces.get(p.getName()).size() == 0)\n\t\t\t\t\t\t\tattackingPieces.remove(p.getName());\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t// Check for defeated armies:\n\t\t\t\t// - find player with no more pieces on terrain\n\t\t\t\t// - remove any such players from combatants\n\t\t\t\t// - if only one combatant, end combat\n \t\t\tPlayer baby = null;\n \t\t\twhile (combatants.size() != attackingPieces.size()) {\n\t\t\t\t\tfor (Player pl : combatants) {\n\t\t\t\t\t\tif (!attackingPieces.containsKey(pl.getName())) {\n\t\t\t\t\t\t\tbaby = pl;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcombatants.remove(baby);\n \t\t\t}\n \t\t\tif (combatants.size() == 1) {\n \t\t\t\texploring = (!battleGround.isExplored() && battleGround.getContents().size() == 1);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\t// Set up this HashMap that will store successful attacking pieces\n \t\t\tHashMap<String, ArrayList<Piece>> successAttacks = new HashMap<String, ArrayList<Piece>>();\n \t\t\t// Set up this HashMap that will store piece marked to get damage inflicted\n\t\t\t\tHashMap<String, ArrayList<Piece>> toInflict = new HashMap<String, ArrayList<Piece>>();\n \t\t\tfor (Player p : combatants) {\n \t\t\t\t\n \t\t\t\tsuccessAttacks.put(p.getName(), new ArrayList<Piece>());\n \t\t\t\ttoInflict.put(p.getName(), new ArrayList<Piece>());\n \t\t\t}\n \t\t\t\n \t\t\t// Array List of pieces that need to be used during a particular phase\n\t\t\t\tfinal ArrayList<Piece> phaseThings = new ArrayList<Piece>();\n\t\t\t\t\n\t\t\t\t// Notify next phase, wait for a second\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \tbattleGround.coverPieces();\n\t \tGUI.getHelpText().setText(\"Attack phase: Next phase: Magic!\");\n\t }\n\t });\n\t\t\t\t\n\t\t\t\t// Pause for 2 seconds between phases\n\t\t\t\ttry { Thread.sleep(2000); } catch( Exception e ){ return; }\n\t\t\t\t\n/////////////////////// Magic phase\n \t\t\tfor (final Player pl : combatants) {\n \t\t\t\t\n \t\t\t\tplayer = pl;\n \t\t\t\t// Cover all pieces\n \t\t\t\tPlatform.runLater(new Runnable() {\n \t @Override\n \t public void run() {\n \t \t\tbattleGround.coverPieces();\n \t }\n \t });\n \t\t\t\t\n \t\t\t\t// For each piece, if its magic. Add it to the phaseThings array\n \t\t\t\tfor (Piece p : attackingPieces.get(pl.getName())) {\n \t\t\t\t\tif (p instanceof Combatable && ((Combatable)p).isMagic() && !(p instanceof Fort && ((Fort)p).getCombatValue() == 0)) \n \t\t\t\t\t\tphaseThings.add(p);\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// uncover magic pieces for clicking\n \t\t\t\tif (phaseThings.size() > 0) {\n\t \t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \t\t\t\tfor (Piece mag : phaseThings) \n\t \t\t\t\t\tmag.uncover();\n\t \t }\n\t \t });\n \t\t\t\t}\n\n\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"----------------------------------------------------------------\");\n\t\t\t\t\tSystem.out.println(\"attackingPieces.size(): \" + attackingPieces.size());\n\t\t\t\t\tSystem.out.println(\"attackingPieces.keySet(): \" + attackingPieces.keySet());\n\t\t\t\t\tIterator<String> keySetIte = battleGround.getContents().keySet().iterator();\n \t \twhile(keySetIte.hasNext()) {\n \t \t\tString key = keySetIte.next();\n\n \t\t\t\t\tSystem.out.println(\"key: \" + key);\n \t\t\t\t\tSystem.out.println(\"attackingPieces.get(key).size():\\n\" + attackingPieces.get(key).size());\n \t\t\t\t\tSystem.out.println(\"attackingPieces.get(key):\\n\" + attackingPieces.get(key));\n \t \t}\n\t\t\t\t\tSystem.out.println(\"----------------------------------------------------------------\");\n\t\t\t\t\t\n \t\t\t\t// Have user select a piece to attack with until there are no more magic pieces\n \t\t\t\twhile (phaseThings.size() > 0) {\n \t\t\t\t\t\n \t\t\t\t\t// Display message prompting user to select a magic piece\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() + \", select a magic piece to attack with\");\n\t \t }\n\t \t });\n \t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\t// Wait for user to select piece\n \t\t\t\tpieceClicked = null;\n \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectPieceToAttackWith\");\n \t\t\t\tClickObserver.getInstance().setFortFlag(\"Combat: SelectPieceToAttackWith\");\n \t\t\t\t\twhile (pieceClicked == null) { try { Thread.sleep(100); } catch( Exception e ){ return; } }\n\t \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"\");\n\t \t\t\t\tClickObserver.getInstance().setFortFlag(\"\");\n\t \t\t\t\t\n\t \t\t\t\t// hightlight piece that was selected, uncover the die to use, display message about rolling die\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tpieceClicked.highLight();\n\t \t \tDiceGUI.getInstance().uncover();\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() \n\t \t \t\t\t+ \", roll the die. You need a \" + ((Combatable)pieceClicked).getCombatValue() + \" or lower\");\n\t \t }\n \t\t\t\t\t});\n \t\t\t\t\t\n\t \t// Dice is set to -1 while it is 'rolling'. This waits for the roll to stop, ie not -1\n \t\t\t\t\tint attackStrength = -1;\n \t\t\t\t\twhile (attackStrength == -1) {\n \t\t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\t\tattackStrength = Dice.getFinalVal();\n \t\t\t\t\t}\n\t\t\t\t\t\t\n \t\t\t\t\t// If the roll was successful. Add to successfulThings Array, and change it image. prompt Failed attack\n \t\t\t\t\tif (attackStrength <= ((Combatable)pieceClicked).getCombatValue()) {\n \t\t\t\t\t\t\n \t\t\t\t\t\tsuccessAttacks.get(player.getName()).add(pieceClicked);\n \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n \t \t @Override\n \t \t public void run() {\n \t \t\t\t\t\t\t((Combatable)pieceClicked).setAttackResult(true);\n \t \t\t\t\t\t\tpieceClicked.cover();\n \t \t\t\t\t\t\tpieceClicked.unhighLight();\n \t \t \tGUI.getHelpText().setText(\"Attack phase: Successful Attack!\");\n \t \t }\n \t\t\t\t\t});\n \t\t\t\t\t\t\n \t\t\t\t\t} else { // else failed attack, update image, prompt Failed attack\n \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t \t @Override\n\t\t \t public void run() {\n\t\t \t\t\t\t\t\t((Combatable)pieceClicked).setAttackResult(false);\n\t\t \t\t\t\t\t\tpieceClicked.cover();\n \t \t\t\t\t\t\tpieceClicked.unhighLight();\n\t\t \t \tGUI.getHelpText().setText(\"Attack phase: Failed Attack!\");\n\t\t \t }\n\t \t\t\t\t\t});\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// Pause to a second for easy game play, remove the clicked piece from phaseThings\n \t\t\t\t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n \t\t\t\t\tphaseThings.remove(pieceClicked);\n \t\t\t\t}\n \t\t\t}\n\n\t\t\t\t// For each piece that had success, player who is being attacked must choose a piece\n \t\t\t// Gets tricky here. Will be tough for Networking :(\n \t\t\tfor (Player pl : combatants) {\n \t\t\t\t\n \t\t\t\t// Active player is set to the player who 'pl' is attack based on toAttack HashMap\n \t\t\t\tplayer = toAttacks.get(pl.getName()); // 'defender'\n \t\t\t\tfinal String plName = pl.getName();\n \t\t\t\t\n \t\t\t\t// For each piece of pl's that has a success (in successAttacks)\n \t\t\t\tint i = 0;\n \t\t\t\tfor (final Piece p : successAttacks.get(plName)) {\n\n \t\t\t\t\t// If there are more successful attacks then pieces to attack, break after using enough attacks\n \t\t\t\t\tif (i >= attackingPieces.get(player.getName()).size()) {\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// Display message, cover other players pieces, uncover active players pieces\n\t \t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() + \", Select a Piece to take a hit from \" + plName + \"'s \" + p.getName());\n\t \t \tbattleGround.coverPieces();\n\t \t \tbattleGround.uncoverPieces(player.getName());\n\t \t }\n\t\t\t\t\t\t});\n \t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\t\n\t \t\t\t\t// Cover pieces already choosen to be inflicted. Wait to make sure runLater covers pieces already selected\n\t \t\t\t\tfor (final Piece pi : toInflict.get(player.getName())) {\n\t \t\t\t\t\tif (!((pi instanceof Fort) && ((Fort)pi).getCombatValue() > 0)) {\n\t\t \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t \t @Override\n\t\t\t \t public void run() {\n\t\t\t\t \t\t\t\t\tpi.cover();\n\t\t\t \t }\n\t\t\t\t\t\t\t\t});\n\t \t\t\t\t\t}\n\t \t\t\t\t}//TODO here is where a pause might be needed\n\t \t\t\t\t\n\t \t\t\t\t// Wait for user to select piece\n \t\t\t\t\tpieceClicked = null;\n\t \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectPieceToGetHit\");\n\t \t\t\t\tClickObserver.getInstance().setFortFlag(\"Combat: SelectPieceToGetHit\");\n \t\t\t\t\twhile (pieceClicked == null) { try { Thread.sleep(100); } catch( Exception e ){ return; } }\n \t\t\t\t\tClickObserver.getInstance().setCreatureFlag(\"\");\n\t \t\t\t\tClickObserver.getInstance().setFortFlag(\"\");\n\t\t \t\t\t\n \t\t\t\t\t// Add to arrayList in HashMap of player to mark for future inflict. Cover pieces\n \t\t\t\t\ttoInflict.get(player.getName()).add(pieceClicked);\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tbattleGround.coverPieces();\n\t \t }\n\t\t\t\t\t\t});\n \t\t\t\t\ti++;\n \t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n\t \t\t\t\t\n \t\t\t\t}\n \t\t\t\t// Clear successful attacks for next phase\n \t\t\t\tsuccessAttacks.get(pl.getName()).clear();\n \t\t\t}\n \t\t\t\n \t\t\t// Remove little success and failure images, inflict if necessary\n \t\t\tfor (Player pl : combatants) {\n \t\t\t\t\n \t\t\t\t// Change piece image of success or failure to not visible\n \t\t\t\tfor (Piece p : attackingPieces.get(pl.getName())) \n \t\t\t\t\t((Combatable)p).resetAttack();\n \t\t\t\t\n\t\t\t\t\t// inflict return true if the piece is dead, and removes it from attackingPieces if so\n \t\t\t\t// Inflict is also responsible for removing from the CreatureStack\n \t\t\t\tfor (Piece p : toInflict.get(pl.getName())) {\n\t\t\t\t\t\tif (((Combatable)p).inflict()) \n\t\t\t\t\t\t\tattackingPieces.get(pl.getName()).remove(p);\n\t\t\t\t\t\tif (attackingPieces.get(pl.getName()).size() == 0)\n\t\t\t\t\t\t\tattackingPieces.remove(pl.getName());\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// Clear toInflict for next phase\n \t\t\t\ttoInflict.get(pl.getName()).clear();\n \t\t\t}\n\n\t\t\t\t// Update the InfoPanel gui for changed/removed pieces\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n \t\t\t\t\tInfoPanel.showTileInfo(battleGround);\n \t\t\t\t\tbattleGround.coverPieces();\n\t }\n\t\t\t\t});\n \t\t\t\n \t\t\t// Check for defeated armies:\n\t\t\t\t// - find player with no more pieces on terrain\n\t\t\t\t// - remove any such players from combatants\n\t\t\t\t// - if only one combatant, end combat\n \t\t\tbaby = null;\n \t\t\twhile (combatants.size() != attackingPieces.size()) {\n\t\t\t\t\tfor (Player pl : combatants) {\n\t\t\t\t\t\tif (!attackingPieces.containsKey(pl.getName())) {\n\t\t\t\t\t\t\tbaby = pl;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcombatants.remove(baby);\n \t\t\t}\n \t\t\tif (combatants.size() == 1) {\n \t\t\t\texploring = (!battleGround.isExplored() && battleGround.getContents().size() == 1);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n\t\t\t\t// Notify next phase, wait for a second\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \t\tbattleGround.coverPieces();\n\t \tGUI.getHelpText().setText(\"Attack phase: Next phase: Ranged!\");\n\t }\n\t });\n\t\t\t\t\n\t\t\t\t// Pause for 2 seconds between phases\n\t\t\t\ttry { Thread.sleep(2000); } catch( Exception e ){ return; }\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n//////////////////// Ranged phase\n\t\t\t\tfor (final Player pl : combatants) {\n \t\t\t\t\n \t\t\t\tplayer = pl;\n \t\t\t\t// Cover all pieces\n \t\t\t\tPlatform.runLater(new Runnable() {\n \t @Override\n \t public void run() {\n \t \t\tbattleGround.coverPieces();\n \t }\n \t });\n \t\t\t\t\n \t\t\t\t// For each piece, if its ranged. Add it to the phaseThings array\n \t\t\t\tfor (Piece p : attackingPieces.get(pl.getName())) {\n \t\t\t\t\tif (p instanceof Combatable && ((Combatable)p).isRanged() && !(p instanceof Fort && ((Fort)p).getCombatValue() == 0)) \n \t\t\t\t\t\tphaseThings.add(p);\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// uncover ranged pieces for clicking\n \t\t\t\tif (phaseThings.size() > 0) {\n\t \t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \t\t\t\tfor (Piece ran : phaseThings) \n\t \t\t\t\t\tran.uncover();\n\t \t }\n\t \t });\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// Have user select a piece to attack with until there are no more ranged pieces\n \t\t\t\twhile (phaseThings.size() > 0) {\n \t\t\t\t\t\n \t\t\t\t\t// Display message prompting user to select a ranged piece\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() + \", select a ranged piece to attack with\");\n\t \t }\n\t \t });\n\n \t\t\t\t\t// Wait for user to select piece\n \t\t\t\tpieceClicked = null;\n \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectPieceToAttackWith\");\n \t\t\t\tClickObserver.getInstance().setFortFlag(\"Combat: SelectPieceToAttackWith\");\n \t\t\t\t\twhile (pieceClicked == null) { try { Thread.sleep(100); } catch( Exception e ){ return; } }\n\t \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"\");\n\t \t\t\t\tClickObserver.getInstance().setFortFlag(\"\");\n\t \t\t\t\t\n\t \t\t\t\t// hightlight piece that was selected, uncover the die to use, display message about rolling die\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tpieceClicked.highLight();\n\t \t \tDiceGUI.getInstance().uncover();\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName()\n\t \t + \", roll the die. You need a \" + ((Combatable)pieceClicked).getCombatValue() + \" or lower\");\n\t \t }\n \t\t\t\t\t});\n \t\t\t\t\t\n\t \t// Dice is set to -1 while it is 'rolling'. This waits for the roll to stop, ie not -1\n \t\t\t\t\tint attackStrength = -1;\n \t\t\t\t\twhile (attackStrength == -1) {\n \t\t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\t\tattackStrength = Dice.getFinalVal();\n \t\t\t\t\t}\n\t\t\t\t\t\t\n \t\t\t\t\t// If the roll was successful. Add to successfulThings Array, and change it image. prompt Failed attack\n \t\t\t\t\tif (attackStrength <= ((Combatable)pieceClicked).getCombatValue()) {\n \t\t\t\t\t\t\n \t\t\t\t\t\tsuccessAttacks.get(player.getName()).add(pieceClicked);\n \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n \t \t @Override\n \t \t public void run() {\n \t \t\t\t\t\t\t((Combatable)pieceClicked).setAttackResult(true);\n \t \t\t\t\t\t\tpieceClicked.cover();\n \t \t\t\t\t\t\tpieceClicked.unhighLight();\n \t \t \tGUI.getHelpText().setText(\"Attack phase: Successful Attack!\");\n \t \t }\n \t\t\t\t\t});\n \t\t\t\t\t\t\n \t\t\t\t\t} else { // else failed attack, update image, prompt Failed attack\n \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t \t @Override\n\t\t \t public void run() {\n\t\t \t\t\t\t\t\t((Combatable)pieceClicked).setAttackResult(false);\n\t\t \t\t\t\t\t\tpieceClicked.cover();\n \t \t\t\t\t\t\tpieceClicked.unhighLight();\n\t\t \t \tGUI.getHelpText().setText(\"Attack phase: Failed Attack!\");\n\t\t \t }\n\t \t\t\t\t\t});\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// Pause to a second for easy game play, remove the clicked piece from phaseThings\n \t\t\t\t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n \t\t\t\t\tphaseThings.remove(pieceClicked);\n \t\t\t\t}\n \t\t\t}\n\n\t\t\t\t// For each piece that had success, player who is being attacked must choose a piece\n \t\t\t// Gets tricky here. Will be tough for Networking :(\n \t\t\tfor (Player pl : combatants) {\n \t\t\t\t\n \t\t\t\t// Active player is set to the player who 'pl' is attack based on toAttack HashMap\n \t\t\t\tplayer = toAttacks.get(pl.getName());\n \t\t\t\tfinal String plName = pl.getName();\n \t\t\t\t\n \t\t\t\t// For each piece of pl's that has a success (in successAttacks)\n \t\t\t\tint i = 0;\n \t\t\t\tfor (final Piece p : successAttacks.get(plName)) {\n\n \t\t\t\t\t// If there are more successful attacks then pieces to attack, break after using enough attacks\n \t\t\t\t\tif (i >= attackingPieces.get(player.getName()).size()) {\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// Display message, cover other players pieces, uncover active players pieces\n\t \t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() + \", Select a Piece to take a hit from \" + plName + \"'s \" + p.getName());\n\t \t \tbattleGround.coverPieces();\n\t \t \tbattleGround.uncoverPieces(player.getName());\n\t \t }\n\t\t\t\t\t\t});\n \t\t\t\t\t\n\t \t\t\t\t// Cover pieces already choosen to be inflicted. Wait to make sure runLater covers pieces already selected\n\t \t\t\t\tfor (final Piece pi : toInflict.get(player.getName())) {\n\t \t\t\t\t\tif (!((pi instanceof Fort) && ((Fort)pi).getCombatValue() > 0)) {\n\t\t \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t \t @Override\n\t\t\t \t public void run() {\n\t\t\t\t \t\t\t\t\tpi.cover();\n\t\t\t \t }\n\t\t\t\t\t\t\t\t});\n\t \t\t\t\t\t}\n\t \t\t\t\t}//TODO here is where a pause might be needed\n\t \t\t\t\t\n\t \t\t\t\t// Wait for user to select piece\n \t\t\t\t\tpieceClicked = null;\n\t \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectPieceToGetHit\");\n\t \t\t\t\tClickObserver.getInstance().setFortFlag(\"Combat: SelectPieceToGetHit\");\n \t\t\t\t\twhile (pieceClicked == null) { try { Thread.sleep(100); } catch( Exception e ){ return; } }\n \t\t\t\t\tClickObserver.getInstance().setFortFlag(\"\");\n \t\t\t\t\tClickObserver.getInstance().setCreatureFlag(\"\");\n\t\t \t\t\t\n \t\t\t\t\t// Add to arrayList in HashMap of player to mark for future inflict. Cover pieces\n \t\t\t\t\ttoInflict.get(player.getName()).add(pieceClicked);\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tbattleGround.coverPieces();\n\t \t }\n\t\t\t\t\t\t});\n \t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n\t \t\t\t\ti++;\n \t\t\t\t}\n \t\t\t\t// Clear successful attacks for next phase\n \t\t\t\tsuccessAttacks.get(pl.getName()).clear();\n \t\t\t}\n \t\t\t\n \t\t\t// Remove little success and failure images, inflict if necessary\n \t\t\tfor (Player pl : combatants) {\n \t\t\t\t\n \t\t\t\t// Change piece image of success or failure to not visible\n \t\t\t\tfor (Piece p : attackingPieces.get(pl.getName())) \n \t\t\t\t\t((Combatable)p).resetAttack();\n \t\t\t\t\n\t\t\t\t\t// inflict return true if the piece is dead, and removes it from attackingPieces if so\n \t\t\t\t// Inflict is also responsible for removing from the CreatureStack\n \t\t\t\tfor (Piece p : toInflict.get(pl.getName())) {\n\t\t\t\t\t\tif (((Combatable)p).inflict()) \n\t\t\t\t\t\t\tattackingPieces.get(pl.getName()).remove(p);\n\t\t\t\t\t\tif (attackingPieces.get(pl.getName()).size() == 0)\n\t\t\t\t\t\t\tattackingPieces.remove(pl.getName());\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// Clear toInflict for next phase\n \t\t\t\ttoInflict.get(pl.getName()).clear();\n \t\t\t}\n\n\t\t\t\t// Update the InfoPanel gui for changed/removed pieces\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n \t\t\t\t\tInfoPanel.showTileInfo(battleGround);\n \t\t\t\t\tbattleGround.coverPieces();\n\t }\n\t\t\t\t});\n \t\t\t\n \t\t\t// Check for defeated armies:\n\t\t\t\t// - find player with no more pieces on terrain\n\t\t\t\t// - remove any such players from combatants\n\t\t\t\t// - if only one combatant, end combat\n\t\t\t\tbaby = null;\n \t\t\twhile (combatants.size() != attackingPieces.size()) {\n\t\t\t\t\tfor (Player pl : combatants) {\n\t\t\t\t\t\tif (!attackingPieces.containsKey(pl.getName())) {\n\t\t\t\t\t\t\tbaby = pl;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcombatants.remove(baby);\n \t\t\t}\n \t\t\tif (combatants.size() == 1) {\n \t\t\t\texploring = (!battleGround.isExplored() && battleGround.getContents().size() == 1);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n\t\t\t\t// Notify next phase, wait for a second\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \t\tbattleGround.coverPieces();\n\t \tGUI.getHelpText().setText(\"Attack phase: Next phase: Melee!\");\n\t }\n\t });\n\t\t\t\t\n\t\t\t\t// Pause for 2 seconds between phases\n\t\t\t\ttry { Thread.sleep(2000); } catch( Exception e ){ return; }\n\t\t\t\t\n\n///////////////////////////// Melee phase\n\t\t\t\tfor (final Player pl : combatants) {\n \t\t\t\t\n \t\t\t\tplayer = pl;\n \t\t\t\t// Cover all pieces\n \t\t\t\tPlatform.runLater(new Runnable() {\n \t @Override\n \t public void run() {\n \t \t\tbattleGround.coverPieces();\n \t }\n \t });\n \t\t\t\t\n \t\t\t\t// For each piece, if its melee. Add it to the phaseThings array\n \t\t\t\tfor (Piece p : attackingPieces.get(pl.getName())) {\n \t\t\t\t\tif (p instanceof Combatable && !(((Combatable)p).isRanged() || ((Combatable)p).isMagic()) && !(p instanceof Fort && ((Fort)p).getCombatValue() == 0)) \n \t\t\t\t\t\tphaseThings.add(p);\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// uncover melee pieces for clicking\n \t\t\t\tif (phaseThings.size() > 0) {\n\t \t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \t\t\t\tfor (Piece mel : phaseThings) \n\t \t\t\t\t\tmel.uncover();\n\t \t }\n\t \t });\n \t\t\t\t}\n \t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\n \t\t\t\t// Have user select a piece to attack with until there are no more melee pieces\n \t\t\t\twhile (phaseThings.size() > 0) {\n \t\t\t\t\t\n \t\t\t\t\t// Display message prompting user to select a melee piece\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() + \", select a melee piece to attack with\");\n\t \t }\n\t \t });\n\n \t\t\t\t\t// Wait for user to select piece\n \t\t\t\tpieceClicked = null;\n \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectPieceToAttackWith\");\n \t\t\t\tClickObserver.getInstance().setFortFlag(\"Combat: SelectPieceToAttackWith\");\n \t\t\t\t\twhile (pieceClicked == null) { try { Thread.sleep(100); } catch( Exception e ){ return; } }\n\t \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"\");\n\t \t\t\t\tClickObserver.getInstance().setFortFlag(\"\");\n\t \t\t\t\t\n\t \t\t\t\t// Is it a charging piece?\n\t \t\t\t\tint charger;\n\t \t\t\t\tif (((Combatable)pieceClicked).isCharging()) {\n\t \t\t\t\t\tcharger = 2;\n\t \t\t\t\t} else\n\t \t\t\t\t\tcharger = 1;\n\t \t\t\t\t\n\t \t\t\t\t// do twice if piece is a charger\n\t \t\t\t\tfor (int i = 0; i < charger; i++) {\n\t \t\t\t\t\t\n\t\t \t\t\t\t// hightlight piece that was selected, uncover the die to use, display message about rolling die\n\t \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t \t @Override\n\t\t \t public void run() {\n\t\t \t \tpieceClicked.highLight();\n\t\t \t \tDiceGUI.getInstance().uncover();\n\t\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName()\n\t\t \t + \", roll the die. You need a \" + ((Combatable)pieceClicked).getCombatValue() + \" or lower\");\n\t\t \t }\n\t \t\t\t\t\t});\n\t \t\t\t\t\t\n\t\t \t// Dice is set to -1 while it is 'rolling'. This waits for the roll to stop, ie not -1\n\t \t\t\t\t\tint attackStrength = -1;\n\t \t\t\t\t\twhile (attackStrength == -1) {\n\t \t\t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n\t \t\t\t\t\t\tattackStrength = Dice.getFinalVal();\n\t \t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t \t\t\t\t\t// If the roll was successful. Add to successfulThings Array, and change it image. prompt Failed attack\n\t \t\t\t\t\tif (attackStrength <= ((Combatable)pieceClicked).getCombatValue()) {\n\t \t\t\t\t\t\t\n\t \t\t\t\t\t\tsuccessAttacks.get(player.getName()).add(pieceClicked);\n\t \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t \t @Override\n\t \t \t public void run() {\n\t \t \t\t\t\t\t\t((Combatable)pieceClicked).setAttackResult(true);\n\t \t \t\t\t\t\t\tpieceClicked.cover();\n\t \t \t\t\t\t\t\tpieceClicked.unhighLight();\n\t \t \t \tGUI.getHelpText().setText(\"Attack phase: Successful Attack!\");\n\t \t \t }\n\t \t\t\t\t\t});\n\t \t\t\t\t\t\t\n\t \t\t\t\t\t} else { // else failed attack, update image, prompt Failed attack\n\t \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t \t @Override\n\t\t\t \t public void run() {\n\t\t\t \t\t\t\t\t\t((Combatable)pieceClicked).setAttackResult(false);\n\t\t\t \t\t\t\t\t\tpieceClicked.cover();\n\t \t \t\t\t\t\t\tpieceClicked.unhighLight();\n\t\t\t \t \tGUI.getHelpText().setText(\"Attack phase: Failed Attack!\");\n\t\t\t \t }\n\t\t \t\t\t\t\t});\n\t \t\t\t\t\t}\n\t \t\t\t\t\t\n\t \t\t\t\t\t// If piece is charging, and it is its first attack, remove the cover again\n\t \t\t\t\t\tif (((Combatable)pieceClicked).isCharging() && i == 0) {\n\t \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t \t @Override\n\t\t\t \t public void run() {\n\t\t\t \t \tpieceClicked.uncover();\n\t\t\t \t }\n\t \t\t\t\t\t\t});\n\t \t\t\t\t\t}\n\t \t\t\t\t\t\n\t \t\t\t\t\t// Pause to a second for easy game play, remove the clicked piece from phaseThings\n\t \t\t\t\t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n\t \t\t\t\t}\n\n \t\t\t\t\tphaseThings.remove(pieceClicked);\n \t\t\t\t}\n \t\t\t}\n\n\t\t\t\t// For each piece that had success, player who is being attacked must choose a piece\n \t\t\t// Gets tricky here. Will be tough for Networking :(\n \t\t\tfor (Player pl : combatants) {\n \t\t\t\t\n \t\t\t\t// Active player is set to the player who 'pl' is attack based on toAttack HashMap\n \t\t\t\tplayer = toAttacks.get(pl.getName());\n \t\t\t\tfinal String plName = pl.getName();\n \t\t\t\t\n \t\t\t\t// For each piece of pl's that has a success (in successAttacks)\n \t\t\t\tint i = 0;\n \t\t\t\tfor (final Piece p : successAttacks.get(plName)) {\n \t\t\t\t\t\n \t\t\t\t\t// If there are more successful attacks then pieces to attack, break after using enough attacks\n \t\t\t\t\tif (i >= attackingPieces.get(player.getName()).size()) {\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// Display message, cover other players pieces, uncover active players pieces\n\t \t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() + \", Select a Piece to take a hit from \" + plName + \"'s \" + p.getName());\n\t \t \tbattleGround.coverPieces();\n\t \t \tbattleGround.uncoverPieces(player.getName());\n\t \t }\n\t\t\t\t\t\t});\n \t\t\t\t\t\n\t \t\t\t\t// Cover pieces already choosen to be inflicted. Wait to make sure runLater covers pieces already selected\n\t \t\t\t\tfor (final Piece pi : toInflict.get(player.getName())) {\n\t \t\t\t\t\tif (!((pi instanceof Fort) && ((Fort)pi).getCombatValue() > 0)) {\n\t\t \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t \t @Override\n\t\t\t \t public void run() {\n\t\t\t\t \t\t\t\t\tpi.cover();\n\t\t\t \t }\n\t\t\t\t\t\t\t\t});\n\t \t\t\t\t\t}\n\t \t\t\t\t}//TODO here is where a pause might be needed\n\t \t\t\t\t\n\t \t\t\t\t// Wait for user to select piece\n \t\t\t\t\tpieceClicked = null;\n\t \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectPieceToGetHit\");\n\t \t\t\t\tClickObserver.getInstance().setFortFlag(\"Combat: SelectPieceToGetHit\");\n \t\t\t\t\twhile (pieceClicked == null) { try { Thread.sleep(100); } catch( Exception e ){ return; } }\n \t\t\t\t\tClickObserver.getInstance().setCreatureFlag(\"\");\n \t\t\t\t\tClickObserver.getInstance().setFortFlag(\"\");\n\t\t \t\t\t\n \t\t\t\t\t// Add to arrayList in HashMap of player to mark for future inflict. Cover pieces\n \t\t\t\t\ttoInflict.get(player.getName()).add(pieceClicked);\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tbattleGround.coverPieces();\n\t \t }\n\t\t\t\t\t\t});\n \t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n\t \t\t\t\ti++;\n \t\t\t\t}\n \t\t\t\t// Clear successful attacks for next phase\n \t\t\t\tsuccessAttacks.get(pl.getName()).clear();\n \t\t\t}\n \t\t\t\n \t\t\t// Remove little success and failure images, inflict if necessary\n \t\t\tfor (Player pl : combatants) {\n \t\t\t\t\n \t\t\t\t// Change piece image of success or failure to not visible\n \t\t\t\tfor (Piece p : attackingPieces.get(pl.getName())) \n \t\t\t\t\t((Combatable)p).resetAttack();\n \t\t\t\t\n\t\t\t\t\t// inflict return true if the piece is dead, and removes it from attackingPieces if so\n \t\t\t\t// Inflict is also responsible for removing from the CreatureStack\n \t\t\t\tfor (Piece p : toInflict.get(pl.getName())) {\n\t\t\t\t\t\tif (((Combatable)p).inflict()) \n\t\t\t\t\t\t\tattackingPieces.get(pl.getName()).remove(p);\n\t\t\t\t\t\tif (attackingPieces.get(pl.getName()).size() == 0)\n\t\t\t\t\t\t\tattackingPieces.remove(pl.getName());\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// Clear toInflict for next phase\n \t\t\t\ttoInflict.get(pl.getName()).clear();\n \t\t\t}\n\n\t\t\t\t// Update the InfoPanel gui for changed/removed pieces\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n \t\t\t\t\tInfoPanel.showTileInfo(battleGround);\n \t\t\t\t\tbattleGround.coverPieces();\n\t }\n\t\t\t\t});\n \t\t\t\n \t\t\t// Check for defeated armies:\n\t\t\t\t// - find player with no more pieces on terrain\n\t\t\t\t// - remove any such players from combatants\n\t\t\t\t// - if only one combatant, end combat\n\t\t\t\tbaby = null;\n \t\t\twhile (combatants.size() != attackingPieces.size()) {\n\t\t\t\t\tfor (Player pl : combatants) {\n\t\t\t\t\t\tif (!attackingPieces.containsKey(pl.getName())) {\n\t\t\t\t\t\t\tbaby = pl;\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcombatants.remove(baby);\n \t\t\t}\n \t\t\tif (combatants.size() == 1) {\n \t\t\t\texploring = (!battleGround.isExplored() && battleGround.getContents().size() == 1);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n\t\t\t\t// Notify next phase, wait for a second\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \t\tbattleGround.coverPieces();\n\t \tGUI.getHelpText().setText(\"Attack phase: Next phase: Retreat!\");\n\t }\n\t });\n\t\t\t\t\n\t\t\t\t// Pause for 2 seconds between phases\n\t\t\t\ttry { Thread.sleep(2000); } catch( Exception e ){ return; }\n \t\t\t\n \t\t\t\n//////////////////////// Retreat phase\n\t\t\t\t// Can only retreat to a Terrain that has been explored and has no ememies on it\n\t\t\t\t\n\t\t\t\t// Display message, activate done button\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \tGUI.getHelpText().setText(\"Attack phase: Retreat some of your armies?\");\n\t\t GUI.getDoneButton().setDisable(false);\n\t }\n\t }); \t\t\t\t\n\t\t\t\t\n\t\t\t\t// For each combatant, ask if they would like to retreat\n\t\t for (Player pl : combatants) {\n\t\t \t\n\t\t \t// Make sure wildThings aren't trying to get away\n\t\t \tif (!pl.isWildThing()) {\n\t\t\t \tplayer = pl;\n\t \t InfoPanel.uncover(player.getName());\n\t\t\t\t ClickObserver.getInstance().setActivePlayer(player);\n\t\t\t\t ClickObserver.getInstance().setCreatureFlag(\"Combat: SelectRetreaters\");\n\t\t\t\t \n\t\t\t\t // Pause and wait for player to hit done button\n\t\t\t\t pause();\n\t\t\t Platform.runLater(new Runnable() {\n\t\t\t @Override\n\t\t\t public void run() {\n\t\t\t \tbattleGround.coverPieces();\n\t\t\t \tbattleGround.uncoverPieces(player.getName());\n\t\t\t \tbattleGround.coverFort();\n\t\t\t \t GUI.getHelpText().setText(\"Attack Phase: \" + player.getName() + \", You can retreat your armies\");\n\t\t\t }\n\t\t\t });\n\t\t\t\t while (isPaused && battleGround.getContents(player.getName()) != null) {\n\t\t\t \ttry { Thread.sleep(100); } catch( Exception e ){ return; } \n\t\t\t\t }\t \n\t\t\t\t ClickObserver.getInstance().setTerrainFlag(\"Disabled\");\n\t\t\t\t \n\t\t\t\t // TODO, maybe an if block here asking user if they would like to attack \n\t\t\t\t System.out.println(attackingPieces + \"---BEFORE CLEARING\");\n\t\t\t\t // Re-populate attackingPieces to check for changes\n\t\t\t\t attackingPieces.clear();\n\t\t\t\t Iterator<String> keySetIterator2 = battleGround.getContents().keySet().iterator();\n\t\t\t\t \twhile(keySetIterator2.hasNext()) {\n\t\t\t\t \t\tString key = keySetIterator2.next();\n System.out.println(key + \"=====key\");\n\t\t\t \t\t\tattackingPieces.put(battleGround.getContents().get(key).getOwner().getName(), (ArrayList<Piece>) battleGround.getContents().get(key).getStack().clone()); \n\t\t\t\t \t}\n // System.out.println(attackingPieces);\n\t\t\t\t \t// if the owner of the terrain has no pieces, just a fort or city/village\n System.out.println(\"===battleground\"+battleGround);\n System.out.println(\"===attackingPieces\"+attackingPieces);\n System.out.println(combatants.contains(battleGround.getOwner()) ? \"TRUE\" : \"FALSE\");\n\t\t\t\t\t\tif (combatants.contains(battleGround.getOwner()) && battleFort != null) {\n System.out.println(battleGround + \"===battleground\");\n\t\t\t\t\t\t\tattackingPieces.put(battleGround.getOwner().getName(), new ArrayList<Piece>());\n System.out.println(attackingPieces + \"===attacking pieces\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (battleFort != null) {\n System.out.println(battleFort.getName() + \"===battlefort\");\n System.out.println(battleFort.getOwner().getName() + \"===battlefort's owner\");\n \n\t\t\t\t\t\t\tattackingPieces.get(battleFort.getOwner().getName()).add(battleFort);\n System.out.println(attackingPieces.get(battleFort.getOwner().getName()));\n\t\t\t\t\t\t}\n\t//\t\t\t\t\tif (battleGround city/village)\n\t\t\t\t\t\t// TODO city/village\n\t\t\t\t \n\t\t\t\t\t\t\n\t\t\t\t // Check if all the players pieces are now gone\n\t\t\t\t if (!attackingPieces.containsKey(player.getName())) {\n\t\t\t\t \t\n\t\t\t\t \t// Display message, and remove player from combatants\n\t\t\t\t \tPlatform.runLater(new Runnable() {\n\t\t\t\t @Override\n\t\t\t\t public void run() {\n\t\t\t\t \t GUI.getHelpText().setText(\"Attack Phase: \" + player.getName() + \" has retreated all of their pieces!\");\n\t\t\t\t }\n\t\t\t\t });\n\t\t\t\t \t\n\t\t\t\t \t// If there is only 1 player fighting for the hex, \n\t\t\t\t \tif (attackingPieces.size() == 1) \n\t\t\t\t \t\tbreak;\n\t\t\t\t \t\n\t\t\t\t \t// Pause because somebody just retreated\n\t\t\t\t \ttry { Thread.sleep(2000); } catch( Exception e ){ return; }\n\t\t\t\t }\n\t\t\t\t \n\n\t \t InfoPanel.cover(player.getName());\n\t\t\t\t \n\t\t\t }\n\t\t }\n\t\t \n\t\t // Done button no longer needed\n\t\t Platform.runLater(new Runnable() {\n\t\t @Override\n\t\t public void run() {\n\t\t GUI.getDoneButton().setDisable(true);\n\t\t }\n\t\t });\n\t\t ClickObserver.getInstance().setCreatureFlag(\"\");\n\t\t ClickObserver.getInstance().setFortFlag(\"\");\n\t\t \n\t\t // Check for defeated armies:\n\t\t\t\t// - find player with no more pieces on terrain\n\t\t\t\t// - remove any such players from combatants\n\t\t\t\t// - if only one combatant, end combat\n \t\t\tbaby = null;\n \t\t\twhile (combatants.size() != attackingPieces.size()) {\n\t\t\t\t\tfor (Player pl : combatants) {\n\t\t\t\t\t\tif (!attackingPieces.containsKey(pl.getName())) {\n\t\t\t\t\t\t\tbaby = pl;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcombatants.remove(baby);\n \t\t\t}\n \t\t\tif (combatants.size() == 1) {\n \t\t\t\texploring = (!battleGround.isExplored() && battleGround.getContents().size() == 1);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n\n\t\t\t\texploring = (!battleGround.isExplored() && battleGround.getContents().size() == 1);\n\t\t\t\t\n\t\t\t\t// Add wildthings back to combatants if they were removed\n\t\t\t\tif (battleGround.getContents().containsKey(wildThings.getName()) && !combatants.contains(wildThings))\n\t\t\t\t\tcombatants.add(wildThings);\n\t\t\t\t\n \t\t} // end while (combatants.size() > 1 || exploring)\n \t\tbattleGround.coverFort();\n \t\t\n////////////////// Post Combat\n \t\t\n \t\t// sets player as the winner of the combat\n \t\t// Can be null if battle takes place on a hex owned by nobody, and each player lost all pieces\n \t\tPlatform.runLater(new Runnable() {\n @Override\n public void run() {\n \tbattleGround.removeBattleHex();\n }\n \t\t});\n \t\t\n \t\tif (combatants.size() == 0)\n \t\t\tplayer = battleGround.getOwner();\n \t\telse if (combatants.size() == 1 && combatants.get(0).getName().equals(wildThings.getName()))\n \t\t\tplayer = null;\n \t\telse\n \t\t\tplayer = combatants.get(0);\n \t\t\n \t\tSystem.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n \t\tSystem.out.println(\"combatants: \" + combatants);\n \t\tfor (Player p : combatants) {\n \t\tSystem.out.println(\"p.getName(): \"+ p.getName());\n \t\t\t\n \t\t}\n \t\tSystem.out.println(\"owner: \" + owner);\n \t\tSystem.out.println(\"combatants.get(0): \" + combatants.get(0));\n \t\tSystem.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n \t\t\n \t\t\n \t\t// Change ownership of hex to winner\n \t\tboolean ownerChanged = false;\n \t\tif (owner != null && combatants.size() > 0 && !battleGround.getOwner().equals(combatants.get(0))) {\n \t\t\tbattleGround.getOwner().removeHex(battleGround);\n \t\t\tcombatants.get(0).addHexOwned(battleGround);\n \t\t\townerChanged = true;\n \t\t}\n\t\t\t\n \t\t// See if fort is kept or downgraded.\n \t\tif (battleFort != null) {\n if (battleFort.getName().equals(\"Citadel\")) {\n owner.setCitadel(false);\n player.setCitadel(true);\n battleFort.healFort();\n player.addHexOwned(battleGround);\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getHelpText().setText(\"Post combat: \" + player.getName() + \", you get to keep the fort!\");\n }\n });\n checkWinners();\n return;\n }\n \t\t\n\t\t\t\t// Get player to click dice to see if fort is kept\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \tGUI.getHelpText().setText(\"Post combat: \" + player.getName() + \", roll the die to see if the fort is kept or downgraded\");\n\t \tDiceGUI.getInstance().uncover();\n\t \tInfoPanel.showTileInfo(battleGround);\n\t }\n\t });\n\t\t\t\t\n\t\t\t\t// Dice is set to -1 while it is 'rolling'. This waits for the roll to stop, ie not -1\n\t\t\t\tint oneOrSixGood = -1;\n\t\t\t\twhile (oneOrSixGood == -1) {\n\t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n\t\t\t\t\toneOrSixGood = Dice.getFinalVal();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// if a 1 or 6, keep fort (Keep it.... not turn it into a keep)\n\t\t\t\tif (oneOrSixGood == 1 || oneOrSixGood == 6) {\n\t\t\t\t\tbattleFort.healFort();\n\t\t\t\t\tplayer.addHexOwned(battleGround);\n\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t @Override\n\t\t public void run() {\n\t\t \tGUI.getHelpText().setText(\"Post combat: \" + player.getName() + \", you get to keep the fort!\");\n\t\t }\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\tbattleFort.downgrade();Platform.runLater(new Runnable() {\n\t\t @Override\n\t\t public void run() {\n\t\t \tGUI.getHelpText().setText(\"Post combat: \" + player.getName() + \", the fort was destroyed!\");\n\t\t }\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \tInfoPanel.showTileInfo(battleGround);\n\t }\n\t });\n\t\t\t\t\n\t\t\t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n\t\t\t\t\n\t\t\t\t\n \t\t}\n\n \t\tbattleGround.flipPiecesDown();\n\t\t\t// TODO city/village and special incomes if they are kept or lost/damaged \n \t\t\n \t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n \t}/// end Post combat\n\n \tPlatform.runLater(new Runnable() {\n @Override\n public void run() {\n//\t\t\t\tInfoPanel.showBattleStats();\n \tBoard.removeCovers();\n }\n\t\t});\n \t\n\t\tClickObserver.getInstance().setTerrainFlag(\"\");\n\t\tClickObserver.getInstance().setPlayerFlag(\"\");\n\t\tClickObserver.getInstance().setCreatureFlag(\"\");\n\t\tClickObserver.getInstance().setFortFlag(\"\");\n\t\tbattleGrounds.clear();\n }", "void initializeGrid() {\n int maxBombs = GridHelper.getMaxBombs((int)Math.pow(hiddenGrid.length, 2.0)); // A: How many bombs CAN this have?\n bombsPlaced = 0; // B: How many bombs DOES this have?\n int cycleCap = randomCycleCap(); // C: Sets cycleCap to a randomly generated number between 0 and 15,\n int cycleCellCount = 0; // D: cycleCap starts at zero and goes up\n\n for (int i = 0; i < hiddenGrid.length; i++) {\n for (int j = 0; j < hiddenGrid[i].length; j++) {\n\n if (hiddenGrid[i][j] == null) {\n setCell(i, j, 0); // a: initializes the null value to 0\n }\n if((cycleCellCount == cycleCap) && (bombsPlaced < maxBombs)){\n placeBomb(i, j, -1); // a: turns this cell into a bomb, increments cells around it\n cycleCellCount = 0; // b: Restarts the 'cycle counter'\n cycleCap = randomCycleCap(); // c: Gives us a new number to 'count down' to, to place the next bomb\n } else{\n ++cycleCellCount; // a. Moves to the next cell in the 'cycle' having done nothing\n }\n }\n }\n System.out.println(\"Bombs placed: \" + bombsPlaced);\n }", "@Override\n public void update() {\n// if (anim > 10000) anim = 0;\n// else anim++;\n setMousePossition();\n if (feildIsRightClicked()) {\n renderClicks = true;\n cannon.FireCannon();\n }\n else renderClicks = false;\n for (int i = 0; i < projectiles.size(); i++) {\n if (projectiles.get(i).isRemoved()) projectiles.remove(i);\n else projectiles.get(i).update();\n }\n }", "private void layMineField ( int n , int pct)\n { \n Random generator = new Random( n );\n \n for ( int r = 0 ; r < rows ; r++ )\n {\n for ( int c = 0; c < cols ; c++ ) \n {\n if ( generator.nextInt( 100 ) < pct )\n theMines[ r ][ c ] = 1; \n else\n theMines[ r ][ c ] = 0;\n }\n }\n }", "private void 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 }", "@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 removeMissiles(){\n nunMissiles--;\n }", "private static void trailRunAIRandom(int dimension, int numMines, int numTrails) {\n\t\tint numWins = 0;\n\n\t\tfor (int i = 0; i < numTrails; i++) {\n\t\t\tSystem.out.print(\"\\rProgress:\" + 100 * ((float) i / (float) numTrails) + \"%\");\n\n\t\t\tBoard board = new Board(dimension, numMines);\n\t\t\tAbstractPlayer player = new RandomPlayer(board, numMines);\n\n\t\t\tboolean isSolved = player.solve();\n\n\t\t\tif (isSolved) {\n\t\t\t\tnumWins++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\\rDone!\");\n\t\tSystem.out.println(\"WINS: \" + numWins + \"/\" + numTrails);\n\t\tSystem.out.println(\"WIN%: \" + 100 * ((float) numWins / (float) numTrails) + \"%\");\n\t}", "@Override\n public void action() throws Exception {\n if (!can_hit || count > 0)\n count++;\n if (count == 100) {\n can_hit = true;\n }\n else if (count == this.bombCountLimit) {\n bombPlaced--;\n count = 0;\n }\n\n if(Gdx.input.isKeyJustPressed(Input.Keys.SPACE)){\n go_ia=!go_ia;\n }\n if(go_ia){\n ia_count++;\n if(ia_count==11)\n ia_count=0;\n }\n if(go_ia&&ia_count==10) {\n\n int move = -1;\n int mode = 0;\n\n\n\n log.info(\"count bomb: \" + count);\n\n double enemyDist = sqrt(pow((playerX - enemyX), 2)+pow((playerY - enemyY), 2));\n if(powerUpFree) {\n currentGoalX = goalX;\n currentGoalY = goalY;\n if(deepSearch){\n currentGoalX = 1;\n currentGoalY = 1;\n }\n if(enemyDist < 7 && !enemyClean){\n if(enemyDist <= bombRange && sqrt(pow((playerX - goalX), 2)+pow((playerY - goalY), 2)) > 2)\n mode = 2;\n\n }\n }\n\n\n\n if (!can_hit) {\n mode = 1;\n log.info(\"can't hit\");\n }\n else if(doorLocked) {\n mode = 3;\n }\n /*if (count > 0 && count <= this.bombCountLimit && (playerX!=bombGoalX || playerY!=bombGoalY)){\n currentGoalX = bombGoalX;\n currentGoalY = bombGoalY;\n log.info(\"bomb goal\");\n }*/\n\n\n\n\n log.info(\"CURRENT goal x: \" + currentGoalX +\", CURRENT goal y: \" + currentGoalY);\n log.info(\"CURRENT bombgoal x: \" + bombGoalX +\", current bombgoal y: \" + bombGoalY);\n log.info(\"CURRENT player x: \" + playerX +\", current player y: \" + playerY);\n log.info(\"powerup free: \" + powerUpFree);\n log.info(\"CURRENT ENEMY: [\" + enemyX + \", \" + enemyY + \"] \");\n\n ArrayList<Action> actions = new ArrayList<>();\n ArrayList<Wall> walls = new ArrayList<>();\n ArrayList<EnemyPath> enemyPaths = new ArrayList<>();\n ArrayList<Around> around = new ArrayList<>();\n\n playerX = this.x/40;\n playerY = this.y/40;\n\n for( int i = 0; i < 4; i++ ){\n if (can_move[i]) {\n if (mode != 1 || checkSafe(i))\n actions.add(new Action(i));\n walls.add(new Wall(i, 0));\n }\n else if (can_destroy[i]){\n walls.add(new Wall(i, 1));\n if (mode != 1 || checkSafe(i))\n actions.add(new Action(i));\n }\n else\n walls.add(new Wall(i, 3));\n if(freeAround[i])\n around.add(new Around(i, 0));\n else\n around.add(new Around(i, 2));\n\n if ( !enemyFree[i] && enemyDist > bombRange)\n enemyPaths.add(new EnemyPath(i, 1));\n if( !enemyFree[i] && enemyDist <= bombRange || (bombRange == 1 && enemyDist <= 2))\n enemyPaths.add(new EnemyPath(i, 2));\n else if (enemyDist <= bombRange)\n enemyPaths.add(new EnemyPath(i, 1));\n else if(enemyFree[i])\n enemyPaths.add(new EnemyPath(i, 0));\n }\n if(sqrt(pow((playerX - bombGoalX), 2)+pow((playerY - bombGoalY), 2)) > bombRange ||\n mode != 1 || (playerX != bombGoalX && playerY != bombGoalY))\n actions.add(new Action(4));\n\n ai.load_fact( new Position(playerX, playerY),\n actions,\n makeDistances(buildDistances(currentGoalX, currentGoalY)),\n makeBombDistances(buildDistances(bombX, bombY)),\n makeEnemyDistances(buildDistances(enemyX, enemyY)),\n walls,\n around,\n enemyPaths,\n new Mode(mode)\n );\n\n AnswerSets answers = ai.getAnswerSets();\n while(answers.getAnswersets().get(0).getAnswerSet().isEmpty()){\n ai.load_fact( new Position(playerX, playerY),\n actions,\n makeDistances(buildDistances(currentGoalX, currentGoalY)),\n makeBombDistances(buildDistances(bombX, bombY)),\n makeEnemyDistances(buildDistances(enemyX, enemyY)),\n walls,\n around,\n enemyPaths,\n new Mode(mode)\n );\n answers = ai.getAnswerSets();\n }\n\n for (AnswerSet an : answers.getAnswersets()) {\n Pattern pattern = Pattern.compile(\"^choice\\\\((\\\\d+)\\\\)\");\n Matcher matcher;\n for (String atom : an.getAnswerSet()) {\n //System.out.println(atom);\n matcher = pattern.matcher(atom);\n\n if (matcher.find()) {\n log.info(\"DLV output: \" + matcher.group(1));\n move = Integer.parseInt(matcher.group(1));\n }\n }\n }\n if (move == 1) {\n set_allCan_move(0, true);\n this.x += 40;\n }\n else if (move == 2) {\n set_allCan_move(0, true);\n this.y += 40;\n }\n else if (move == 3) {\n set_allCan_move(0, true);\n this.y -= 40;\n }\n else if (move == 0) {\n set_allCan_move(0, true);\n this.x -= 40;\n }\n else if (move == 4 && can_hit && (playerX != goalX || playerY != goalY)) {\n ai_hit = true;\n can_hit = false;\n this.bombX=playerX;\n this.bombY=playerY;\n this.bombGoalX=playerX;\n this.bombGoalY=playerY;\n bombPlaced++;\n }\n moves.add(move);\n ai.clear();\n }\n else{\n playerX = this.x/40;\n playerY = this.y/40;\n }\n\n\n if (Gdx.input.isKeyPressed(Input.Keys.A)&&can_move[0]) {\n set_allCan_move(0, true);\n this.x -= 5;\n }\n if (Gdx.input.isKeyPressed(Input.Keys.D)&&can_move[1]) {\n set_allCan_move(0, true);\n this.x += 5;\n }\n if (Gdx.input.isKeyPressed((Input.Keys.W))&&can_move[2]) {\n this.y += 5;\n set_allCan_move(0, true);\n }\n if (Gdx.input.isKeyPressed((Input.Keys.S))&&can_move[3]){\n set_allCan_move(0, true);\n this.y -= 5;\n }\n if (Gdx.input.isKeyPressed((Input.Keys.Z)) && can_hit) {\n can_hit = false;\n this.bombX=playerX;\n this.bombY=playerY;\n this.bombGoalX=playerX;\n this.bombGoalY=playerY;\n bombPlaced++;\n }\n\n if (Gdx.input.isKeyPressed((Input.Keys.N)))\n log.info(\"CURRENT ENEMY: [\" + enemyX + \", \" + enemyY + \"] \");\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}", "private void setNumbers() {\n\t\tint w = worldWidth;\n\t\tint h = worldHeight;\n\t\tfor (int x = 0; x <= w - 1; x++) {\n\t\t\tfor (int y = 0; y <= h - 1; y++) {\n\t\t\t\tint numbers = 0;\n\n\t\t\t\tint right = x + 1;\n\t\t\t\tint left = x - 1;\n\t\t\t\tint up = y - 1;\n\t\t\t\tint down = y + 1;\n\n\t\t\t\tif (left < 0) {\n\t\t\t\t\tleft = 0;\n\t\t\t\t}\n\t\t\t\tif (up < 0) {\n\t\t\t\t\tup = 0;\n\t\t\t\t}\n\t\t\t\tif (down >= h) {\n\t\t\t\t\tdown = h - 1;\n\t\t\t\t}\n\t\t\t\tif (right >= w) {\n\t\t\t\t\tright = w - 1;\n\t\t\t\t}\n\n\t\t\t\tfor (int m = left; m <= right; m++) {\n\t\t\t\t\tfor (int n = up; n <= down; n++) {\n\t\t\t\t\t\tif (!(m == x && n == y)) {\n\t\t\t\t\t\t\tif (tileArr[m][n].hasBomb()) {\n\t\t\t\t\t\t\t\tnumbers++;\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\ttileArr[x][y].setNeighbors(numbers);\n\t\t\t}\n\n\t\t}\n\n\t}", "private void bombDifficulty(int maxBombs) {\r\n int randomRow;\r\n int randomCol;\r\n for(int bombAmount = 0; bombAmount < maxBombs;){\r\n randomRow = rand.nextInt(map.length-1);\r\n randomCol = rand.nextInt(map[0].length-1);\r\n if(map[randomRow][randomCol].getSafe() == false){\r\n //Do nothing. Checks if same row col is not chosen again\r\n }\r\n else {\r\n map[randomRow][randomCol].setSafe(false);\r\n if (TESTING_MODE) {\r\n map[randomRow][randomCol].setVisual(bomb);\r\n\r\n }\r\n bombAmount++;\r\n }\r\n }\r\n }", "private void createChamber() {\n\n // Give all tiles coordinates for map and temp map\n int CurrentY = 0;\n for (Tile[] tiles : map) {\n int CurrentX = 0;\n for (Tile tile : tiles) {\n tile.setPosition(new Coordinates(CurrentX, CurrentY));\n tile.setTerrain(Terrain.WALL);\n CurrentX++;\n }\n CurrentY++;\n }\n\n for (int y = 0; y < CAST_HEIGHT; y++) {\n for (int x = 0; x < CAST_WIDTH; x++) {\n tempMap[y][x].setPosition(new Coordinates(x, y));\n }\n }\n\n // Initialize algorithm at starting position (0, 0)\n tempMap[0][0].setVisited(true);\n numberOfCellsVisited = 1; //setting number of cells visited to 1 because I have visited one now!\n mapStack.push(tempMap[0][0]); //Chamber start position\n createMaze(tempMap[0][0]); //Chamber start position\n\n // Reveal top edge, sides, and bottom edge\n for (Tile tile : map[0]) {\n tile.setVisible(true);\n }\n for (Tile[] tiles : map) {\n tiles[0].setVisible(true);\n tiles[CHAMBER_WIDTH].setTerrain(Terrain.WALL);\n tiles[CHAMBER_WIDTH].setVisible(true);\n }\n for (Tile tile : map[CHAMBER_HEIGHT]) {\n tile.setVisible(true);\n }\n\n // Clear bugged walls\n for (int i = 1; i < MAP_HEIGHT - 2; i += 2)\n map[i][MAP_WIDTH - 2].setTerrain(Terrain.EMPTY);\n\n // Randomly make regulated holes in walls to create cycles\n Random rand = new Random(); // Preset rng for performance purposes\n for (int i = 1; i < MAP_HEIGHT - 1; i++) {\n for (int j = 1; j < MAP_WIDTH - 1; j++) {\n Tile tile = map[i][j];\n if (tile.getTerrain().equals(Terrain.WALL)) {\n\n // Neighbourhood Check\n int neighbourCount = 0, index = 0;\n boolean[] neighbourhood = new boolean[]{false, false, false, false}; // validity flags\n\n for (Direction direction : Direction.cardinals) {\n Coordinates targetCoordinates = Utility.locateDirection(tile.getPosition(), direction);\n Tile neighbour = getTileAtCoordinates(targetCoordinates);\n if (neighbour.getTerrain().equals(Terrain.WALL)) {\n neighbourCount++;\n neighbourhood[index] = true;\n }\n index++;\n }\n\n // Corner exclusion test, tests vertical NS and horizontal EW\n boolean isStraight = false;\n if (neighbourhood[0] && neighbourhood[1]) isStraight = true;\n if (neighbourhood[2] && neighbourhood[3]) isStraight = true;\n\n if (neighbourCount == 2 && isStraight) {\n if (rand.nextInt(5) == 4) tile.setTerrain(Terrain.EMPTY);\n }\n }\n }\n }\n\n // Check for enclosed spaces and create openings\n for (int i = 1; i < MAP_HEIGHT - 2; i++) probe(map[i][MAP_WIDTH - 2], Direction.EAST);\n }", "private boolean checkCoverage(int quartile) {\n int numLandTiles = 0;\n int numTiles = (int)(Math.pow((MAP_LENGTH/2),2));\n if (quartile == 0) { //First (top left) quartile\n for (int i = 0; i < MAP_LENGTH/2; i++) {\n for (int j = 0; j < MAP_LENGTH/2; j++) {\n if (tileMap[i][j] != null) {\n if (tileMap[i][j].getTerrain() instanceof Grass) {\n numLandTiles++; //Count the number of land tiles in the quartile\n }\n }\n }\n }\n } else if (quartile == 1) { //Second (top right) quartile\n for (int i = 0; i < MAP_LENGTH/2; i++) {\n for (int j = MAP_LENGTH/2; j < MAP_LENGTH; j++) {\n if (tileMap[i][j] != null) {\n if (tileMap[i][j].getTerrain() instanceof Grass) {\n numLandTiles++; //Count the number of land tiles in the quartile\n }\n }\n }\n }\n } else if (quartile == 2) { //Third (bottom left) quartile\n for (int i = MAP_LENGTH/2; i < MAP_LENGTH; i++) {\n for (int j = 0; j < MAP_LENGTH/2; j++) {\n if (tileMap[i][j] != null) {\n if (tileMap[i][j].getTerrain() instanceof Grass) {\n numLandTiles++; //Count the number of land tiles in the quartile\n }\n }\n }\n }\n } else { //Fourth (bottom right) quartile\n for (int i = MAP_LENGTH/2; i < MAP_LENGTH; i++) {\n for (int j = MAP_LENGTH/2; j < MAP_LENGTH; j++) {\n if (tileMap[i][j] != null) {\n if (tileMap[i][j].getTerrain() instanceof Grass) {\n numLandTiles++; //Count the number of land tiles in the quartile\n }\n }\n }\n }\n }\n if (numLandTiles > 0.4*numTiles) { //Check the ratio of the tiles\n return true; \n } else {\n return false;\n }\n }", "private void dragonAttack(int cubes) {\r\n\t\tif (status.contentEquals(\"over\")) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// Add additional cubes per danger card\r\n\t\tfor (int i = 0; i < 6; i++) {\r\n\t\t\tif (!dungeonRow[i].isBought() && dungeonRow[i].isHasDanger()) {\r\n\t\t\t\tcubes += 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tint totalClank = dragonClank;\r\n\t\tfor (int i = 0; i < players.size(); i++) {\r\n\t\t\tplayers.get(i).insertClank();\r\n\t\t\ttotalClank += players.get(i).getClankInBag();\r\n\t\t}\r\n\t\t\r\n\t\tdragonAttackingDelay = 2000;\r\n\t\tgameChannel.sendMessage(\":dragon: *Dragon Attack!* Pulling **\"+cubes+\"** clank...\").queueAfter(dragonAttackingDelay, TimeUnit.MILLISECONDS);\r\n\t\t\r\n\t\t// Randomly choose a cube\r\n\t\tdragonAttackEventText = \"**[ :dragon: ]** \";\r\n\t\tRandom r = new Random();\r\n\t\tfor (int i = 0; i < cubes && totalClank > 0 && status.contentEquals(\"ingame\"); i++) {\r\n\t\t\tboolean isLast = ((i == cubes-1) || totalClank == 1);\r\n\t\t\tint chance = r.nextInt(totalClank)+1;\r\n\t\t\tdragonAttackingDelay += 1000;\r\n\t\t\tif (chance <= dragonClank) {\r\n\t\t\t\tdragonClank -= 1;\r\n\t\t\t\t//addEvent(\":dragon: Pulled Black Clank\",false);\r\n\t\t\t\tif (isLast) {\r\n\t\t\t\t\tgameChannel.sendMessage(\"_ _ _ _ :game_die: Black clank was pulled. No damage dealt\").queueAfter(dragonAttackingDelay, TimeUnit.MILLISECONDS);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tgameChannel.sendMessage(\"** ** ** ** :game_die: Black clank was pulled. No damage dealt\").queueAfter(dragonAttackingDelay, TimeUnit.MILLISECONDS);\r\n\t\t\t\t}\r\n\t\t\t} else if (chance <= dragonClank+p1.getClankInBag()) {\r\n\t\t\t\tdragonHit(p1, isLast);\r\n\t\t\t} else if (chance <= dragonClank+p1.getClankInBag()+p2.getClankInBag()) {\r\n\t\t\t\tdragonHit(p2, isLast);\r\n\t\t\t} else if (chance <= dragonClank+p1.getClankInBag()+p2.getClankInBag()+p3.getClankInBag()) {\r\n\t\t\t\tdragonHit(p3, isLast);\r\n\t\t\t} else if (chance <= dragonClank+p1.getClankInBag()+p2.getClankInBag()+p3.getClankInBag()+p4.getClankInBag()) {\r\n\t\t\t\tdragonHit(p4, isLast);\r\n\t\t\t}\r\n\t\t\ttotalClank--;\r\n\t\t}\r\n\t\t// For deaths outside of dragon attack\r\n\t\tdragonAttackingDelay = 0;\r\n\t\tupdateBoardNoImageChange();\r\n\t\tupdateInfo(currentPlayer, false);\r\n\t\tupdateEvents(false);\r\n\t}", "public void initLogicBoard() {\n int numOfBombs = 0;\n while (numOfBombs<bombs) {\n int randX = (int) (Math.random() * (rows - 1));\n int randY = (int) (Math.random() * (cols - 1));\n if (allTiles[randX][randY].getType() != 10) {\n allTiles[randX][randY].setType(10);\n\n for (int m = randX - 1; m <= randX + 1; m++) {\n for (int n = randY - 1; n <= randY + 1; n++) {\n if ((m < rows && n < cols) && (m >= 0 && n >= 0)) {\n if (allTiles[m][n].getType() != 10)\n allTiles[m][n].setType(allTiles[m][n].getType() + 1);\n }\n }\n }\n numOfBombs++;\n\n }\n }\n }", "private static void trailRunAIFilter(int dimension, int numMines, int numTrails) {\n\t\tint numWins = 0;\n\n\t\tfor (int i = 0; i < numTrails; i++) {\n\t\t\tSystem.out.print(\"\\rProgress:\" + 100 * ((float) i / (float) numTrails) + \"%\");\n\n\t\t\tBoard board = new Board(dimension, numMines);\n\t\t\tAbstractPlayer player = new FilterPlayer(board, numMines);\n\n\t\t\tboolean isSolved = player.solve();\n\n\t\t\tif (isSolved) {\n\t\t\t\tnumWins++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\\rDone!\");\n\t\tSystem.out.println(\"WINS: \" + numWins + \"/\" + numTrails);\n\t\tSystem.out.println(\"WIN%: \" + 100 * ((float) numWins / (float) numTrails) + \"%\");\n\t}", "public void doTimeStep() {\r\n\t\twalk(getRandomInt(8));\r\n\t\tif (getEnergy() < 6 * Params.min_reproduce_energy && getEnergy() > Params.min_reproduce_energy) {\r\n\t\t\tCritter1 child = new Critter1();\r\n\t\t\treproduce(child, getRandomInt(8));\r\n\t\t\tnumberSpawned += 1;\r\n\t\t}else if(getEnergy() < Params.min_reproduce_energy) {\r\n\t\t\treturn;\r\n\t\t}else {\r\n\t\t\tCritter1 child1 = new Critter1();\r\n\t\t\treproduce(child1, getRandomInt(8));\r\n\t\t\tCritter1 child2 = new Critter1();\r\n\t\t\treproduce(child2, getRandomInt(8));\r\n\t\t\tnumberSpawned += 2;\r\n\t\t}\t\r\n\t}", "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}", "public void fireNPS()\n\t{\n\t\t//Only fire if a NonPlayerShip is spawned\n\t\tif(gameObj[2].size() > 0)\n\t\t{\n\t\t\t/*Create a new Missile\n\t\t\t * and set its location equal \n\t\t\t * to a randomly chosen NonPlayerShip\n\t\t\t * and speed greater than the NPS\n\t\t\t */\n\t\t\t\n\t\t\tint r = new Random().nextInt(gameObj[2].size());\n\t\t\tif(((NonPlayerShip)gameObj[2].get(r)).getMissileCount() > 0)\n\t\t\t{\n\t\t\t\tMissile mis = new Missile(true);\n\t\t\t\tmis.setDirection(((NonPlayerShip)gameObj[2].get(r)).getDirection());\n\t\t\t\tmis.setLocation(gameObj[2].get(r).getLocation());\n\t\t\t\tmis.setSpeed(((NonPlayerShip)gameObj[2].get(r)).getSpeed() + 4);\n\t\t\t\t//add Missile to the game world\n\t\t\t\tgameObj[3].add(mis);\n\t\t\t\tSystem.out.println(\"NPS has fired a misile\");\n\t\t\t\t((NonPlayerShip)gameObj[2].get(r)).launch();\n\t\t\t}else\n\t\t\t\tSystem.out.println(\"the chosen NPS is out of missiles\");\n\t\t}else \n\t\t\tSystem.out.println(\"A NPS is not currently spawned\");\t\t\n\t}", "private void assignCapitals() {\n City bestCity = null;\n int mostLandTilesSurrounding = 0;\n int landTilesSurrounding = 0;\n int minRow = 0;\n int maxRow = 0;\n int minColumn = 0;\n int maxColumn = 0;\n if (numPlayers == 2) {\n for (int i = 0; i < 2; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH-1;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH-1;\n minColumn = MAP_LENGTH/2;;\n maxColumn = MAP_LENGTH-1;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n }\n } else if (numPlayers == 3) {\n\n for (int i = 0; i < 3; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH / 2;\n minColumn = 0;\n maxColumn = MAP_LENGTH / 2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH / 2;\n minColumn = MAP_LENGTH / 2;\n maxColumn = MAP_LENGTH - 1;\n } else if (i == 2) {\n minRow = MAP_LENGTH / 2;\n maxRow = MAP_LENGTH - 1;\n minColumn = 0;\n maxColumn = MAP_LENGTH / 2;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n System.out.println(\"Capital city of player \" + i + \" is at \" + bestCity.getCol() + \", \" + bestCity.getRow()); //For checking capital city determination\n }\n } else if (numPlayers == 4) {\n for (int i = 0; i < 4; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH/2;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH/2;\n minColumn = MAP_LENGTH/2;\n maxColumn = MAP_LENGTH-1;\n } else if (i == 2) {\n minRow = MAP_LENGTH/2;\n maxRow = MAP_LENGTH-1;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 3) {\n minRow = MAP_LENGTH/2;\n maxRow = MAP_LENGTH-1;\n minColumn = MAP_LENGTH/2;\n maxColumn = MAP_LENGTH-1;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n }\n }\n }", "@Test\n public void TEST_UR_MAP_OBJECT_COUNT() {\n Map[] maps = new Map[3];\n maps[0] = new Map(\"Map1/Map1.tmx\", 1000, \"easy\");\n maps[1] = new Map(\"Map1/Map1.tmx\", 1000, \"medium\");\n maps[2] = new Map(\"Map1/Map1.tmx\", 1000, \"hard\");\n for (int i = 0; i <= 2; i++) {\n Map map = maps[i];\n map.createLanes();\n int obstacleCount = map.lanes[0].obstacles.length;\n int powerupCount = map.lanes[0].powerUps.length;\n for (int j = 1; j <= 3; j++) {\n assertEquals(map.lanes[j].obstacles.length, obstacleCount);\n assertEquals(map.lanes[j].powerUps.length, powerupCount);\n }\n }\n }", "public int getMountainCount() {\n\t\tcounter = 0;\n\t\tfor (int row = 0; row < battlefield.length; row++) {\n\t\t\tfor (int column = 0; column < battlefield[row].length; column++) {\n\t\t\t\tif (battlefield[row][column].getTerrain().getIcon() == \"M\") {\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn counter;\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 static void main(String[] args) {\n Tron.init();\n\n //We'll want to keep track of the turn number to make debugging easier.\n int turnNumber = 0;\n\n // Execute loop forever (or until game ends)\n while (true) {\n //Update turn number:\n turnNumber++;\n\n /* Get an integer map of the field. Each int\n * can either be Tron.Tile.EMPTY, Tron.Tile.ME,\n * Tron.Tile.OPPONENT, Tron.Tile.TAKEN_BY_ME,\n * Tron.Tile.TAKEN_BY_OPPONENT, or Tron.Tile.WALL */\n ArrayList<ArrayList<Tron.Tile>> mList = Tron.getMap();\n int[][] m = new int[mList.size()][mList.get(0).size()];\n for (int i = 0; i < mList.size(); i++) {\n for (int j = 0; j < mList.get(i).size(); j++) {\n m[i][j] = mList.get(i).get(j).ordinal();\n }\n }\n\n //Let's figure out where we are:\n int myLocX = 0, myLocY = 0;\n for(int y = 0; y < 16; y++) {\n for(int x = 0; x < 16; x++) {\n //I want to note that this is a little bit of a disgusting way of doing this comparison, and that you should change it later, but Java makes this uglier than C++\n if(Tron.Tile.values()[m[y][x]] == Tron.Tile.ME) {\n myLocX = x;\n myLocY = y;\n }\n }\n }\n\n //Let's find out which directions are safe to go in:\n boolean [] safe = emptyAdjacentSquares(m, myLocX, myLocY);\n\n //Let's look at the counts of empty squares around the possible squares to go to:\n int [] dirEmptyCount = new int[4];\n for(int a = 0; a < 4; a++) {\n if(safe[a]) {\n //Get the location we would be in if we went in a certain direction (specified by a).\n int[] possibleSquare = getLocation(myLocX, myLocY, a);\n //Make sure that square exists:\n if(possibleSquare[0] != -1 && possibleSquare[1] != -1) {\n //Find the squares around that square:\n boolean [] around = emptyAdjacentSquares(m, possibleSquare[0], possibleSquare[1]);\n //Count the number of empty squares around that square and set it in our array:\n dirEmptyCount[a] = 0;\n for(int b = 0; b < 4; b++) if(around[b]) dirEmptyCount[a]++;\n }\n }\n else dirEmptyCount[a] = 5; //Irrelevant, but we must ensure it's as large as possible because we don't want to go there.\n }\n\n //Log some basic information.\n Tron.log(\"-----------------------------------------------------\\nDebug for turn #\" + turnNumber + \":\\n\");\n for(int a = 0; a < 4; a++) Tron.log(\"Direction \" + stringFromDirection(a) + \" is \" + (safe[a] ? \"safe.\\n\" : \"not safe.\\n\"));\n\n /* Send your move. This can be Tron.Direction.NORTH,\n * Tron.Direction.SOUTH, Tron.Direction.EAST, or\n * Tron.Direction.WEST. */\n int minVal = 1000, minValLoc = 0;\n for(int a = 0; a < 4; a++) {\n if(dirEmptyCount[a] < minVal) {\n minVal = dirEmptyCount[a];\n minValLoc = a;\n }\n }\n Tron.sendMove(Tron.Direction.values()[minValLoc]);\n }\n }", "void makeNborLists(){\n\t\t\tfor (int i = 0; i < N; i++){\n\t\t\t\tint ct = 0;\n\t\t\t\tint boundsCt = 0;\n\t\t\t\tfor (int j = 0; j < maxNbors; j++){\n\t\t\t\t\tint nborSite = nborList[i][j];\n\t\t\t\t\tif(nborSite>=1){\n\t\t\t\t\t\tif (aliveLattice[nborSite]){\n\t\t\t\t\t\t\tct += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tboundsCt += 1;\n\t\t\t\t\t}\n\t\t\t\t\tint noDead = maxNbors - ct;\n\t\t\t\t\tfracDeadNbors[i] = (double)noDead/maxNbors;\n\t\t\t\t\tif(deadDissipation==true) noNborsForSite[i] = noNbors; \n\t\t\t\t\telse if (deadDissipation==false){\n\t\t\t\t\t\tif(boundaryConditions==\"Open\")\n\t\t\t\t\t\t\tnoNborsForSite[i]=ct+boundsCt;\n\t\t\t\t\t\telse if(boundaryConditions == \"Periodic\")\n\t\t\t\t\t\t\tnoNborsForSite[i]=ct;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(deadDissipation==true){\n\t\t\t\tfor (int i = 0; i < N; i++)\tnoNborsForSite[i] = noNbors; \n\t\t\t\tfor (int i = 0; i < N; i++){\n\t\t\t\t\tint ct = 0;\n\t\t\t\t\tfor (int j = 0; j < maxNbors; j++){\n\t\t\t\t\t\tif (aliveLattice[nborList[i][j]]){\n\t\t\t\t\t\t\tct += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint noDead = maxNbors - ct;\n\t\t\t\t\t\tfracDeadNbors[i] = (double)noDead/maxNbors;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else if (deadDissipation==false){\n\t\t\t\tfor (int i = 0; i < N; i++){\n\t\t\t\t\tint ct = 0;\n\t\t\t\t\tfor (int j = 0; j < maxNbors; j++){\n\t\t\t\t\t\tif (aliveLattice[nborList[i][j]]){\n\t\t\t\t\t\t\tct += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint noDead = maxNbors - ct;\n\t\t\t\t\t\tfracDeadNbors[i] = (double)noDead/maxNbors;\n\t\t\t\t\t\tnoNborsForSite[i]=ct;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}", "public boolean checkFire(float xTile, float yTile)\r\n/* 147: */ {\r\n/* 148:167 */ if ((this.mission) && (tileFireObjectives(xTile, yTile)))\r\n/* 149: */ {\r\n/* 150:169 */ this.fire[((int)xTile)][((int)yTile)] = 1;\r\n/* 151:170 */ this.burnPlaces -= 1;\r\n/* 152:171 */ if (this.burnPlaces == 0) {\r\n/* 153:173 */ return true;\r\n/* 154: */ }\r\n/* 155: */ }\r\n/* 156:177 */ return false;\r\n/* 157: */ }", "private void initiateProjectile() {\n\t}", "public void updateLavaTiles() {\n for (Tile tile : getTiles()) {\n Random random = new Random();\n if (tile.getType().matches(\"BurnTile\")) {\n tile.setTexture(\"Volcano_\" + (random.nextInt(4) + 5));\n }\n }\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 trackAndFire() {\n \t \tdouble theta;\n double distanciaObjetivo = myPos.distance(objetivo.pos);\n //Hallar el proximo punto en un perímetro definido\n \t\t//(30,30) elimina bordes y despues el -60 para la longitud de los dados\n Rectangle2D.Double perimetro = new Rectangle2D.Double(30, 30, getBattleFieldWidth() - 60, getBattleFieldHeight() - 60);\n \n \n \n //if my cannon is locked and ready and i got some energy left fire with\n //appropiate energy to not get stuck, fire in the execute rather than now\n \n if(getGunTurnRemaining() == 0 && myEnergy > 1) {\n setFire( Math.min(Math.min(myEnergy/6.0, 1000/distanciaObjetivo), objetivo.energy/3.0) );\n }\n \n //any other case, ill get aim lock with this function\n //normalize sets between pi -pi\n setTurnGunRightRadians(Utils.normalRelativeAngle(angulo(objetivo.pos, myPos) - getGunHeadingRadians()));\n \n\n double distNextPunto = myPos.distance(futurePos);\n \n \n if(distNextPunto > 20) {\n \t//aun estamos lejos\n \n \t\t\n \t\t//theta es el angulo que hemos de cortar para ponernos \"encarando\" bien\n theta = angulo(futurePos, myPos) - getHeadingRadians();\n \n \n double sentido = 1;\n \n if(Math.cos(theta) < 0) {\n theta += Math.PI;\n sentido = -1;\n }\n \n setAhead(distNextPunto * sentido);\n theta = Utils.normalRelativeAngle(theta);\n setTurnRightRadians(theta);\n \n if(theta > 1)setMaxVelocity(0.0);\n else setMaxVelocity(8.0); // max\n \n \t\n \n } else {\n \t //ENTRO AQUI SI ME QUEDA POCO PARA LLEGAR, SMOOTH CORNERING\n\n \t\t\n //probar 1000 coordenadas\n int iterNum = 1000;\n Point2D.Double cand;\n for(int i =0; i < iterNum; i++){\n \n //i dont want it to be close to another bot, thats the meaning of distanciaObjetivo*0.8\n cand = hallarPunto(myPos, Math.min(distanciaObjetivo*0.8, 100 + iterNum*Math.random()), 2*Math.PI*Math.random());\n if(perimetro.contains(cand) && evalHeuristic(cand) < evalHeuristic(futurePos)) {\n futurePos = cand;\n }\n \n \n } \n \n prevPos = myPos;\n \n }\n }", "@Override\r\n\tpublic void onThink() {\n\t\tint random = (shotsFired + 1) % 3 - 1;\r\n\t\tVacuumProjectile projectile = new VacuumProjectile(DAMAGE * this.owner.finalDamageOutputModifier, SPEED, this.owner.direction, Point.add(this.owner.gridLoc, new Point(0, random)), this.owner.teamID);\r\n\t\tthis.getMap().addGameElement(projectile);\r\n\t\tthis.shotsFired++;\r\n\t\tif(this.shotsFired >= NUM_SHOTS) {\r\n\t\t\tthis.finishSpell();\r\n\t\t}\r\n\t}", "private void generateMap () {\n for (int i = 0 ; i < n ; i++) {\n mapCoordinate[i] = new CoordinateInfo(100 * random.nextFloat(), 100 * random.nextFloat());\n\n for (int j = 0 ; j <= i ; j++) {\n mapDistance[i][j] = mapDistance[j][i] = getDistance(mapCoordinate[i], mapCoordinate[j]);\n }\n }\n }", "void collide() {\n for (Target t : this.helicopterpieces) {\n if (!t.isHelicopter && ((t.x == this.player.x && t.y == this.player.y)\n || (t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected--;\n t.isCollected = true;\n }\n if (t.isHelicopter && this.collected == 1\n && ((t.x == this.player.x && t.y == this.player.y) || (t.isHelicopter\n && this.collected == 1 && t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected = 0;\n this.helicopter.isCollected = true;\n }\n }\n }", "public static void shootCritters(){\n\t\tfor(Tower t : towers) \n\t\t\tt.shootCritters(CritterManager.getCritters());\n\t}", "public void fireNPS()\n\t{\n\t\t//Only fire if a NonPlayerShip is spawned\n\t\tIIterator iter = gameObj.getIterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tGameObject current = (GameObject)iter.getNext();\n\t\t\tif(current instanceof NonPlayerShip && ((NonPlayerShip)current).getMissileCount() > 0)\n\t\t\t{\n\n\t\t\t\t\tMissile mis = new Missile(true,getHeight(), getWidth());\n\t\t\t\t\tdouble x = ((NonPlayerShip)current).getLocation().getX();\n\t\t\t\t\tdouble y = ((NonPlayerShip)current).getLocation().getY() + ((NonPlayerShip)current).getSize()/2;\n\t\t\t\t\tmis.setLocation(new Point2D(x, y));\n\t\t\t\t\tmis.setDirection(((NonPlayerShip)current).getLauncher().getDirection());\n\t\t\t\t\tmis.setSpeed(((NonPlayerShip)current).getSpeed() + 20);\n\t\t\t\t\tgameObj.add(mis);\n\t\t\t\t\t((NonPlayerShip)current).launch();\n\t\t\t\t\tSystem.out.println(\"enemy missile added\");\n\t\t\t\t\tnotifyObservers();\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t}\t\t\n\t}", "private void generate()\r\n {\r\n mapPieces = myMap.Generate3();\r\n mapWidth = myMap.getMapWidth();\r\n mapHeight = myMap.getMapHeight();\r\n }", "private void generateMap(){\n int[] blockStepX = {X_STEP, 0, -X_STEP, -X_STEP, 0, X_STEP};\n int[] blockStepY = {Y_STEP_ONE, Y_STEP_TWO, Y_STEP_ONE, -Y_STEP_ONE, -Y_STEP_TWO, -Y_STEP_ONE};\n int blockSpecialValue = 0;\n int cellSpecial = 0;\n\n mapCells[origin.x/10][origin.y/10] = new EschatonCell(new CellPosition(0, 0, 0),\n new Point(origin.x, origin.y), blockSpecialValue);\n\n cellGrid[0][0][0] = new EschatonCell(new CellPosition(0, 0, 0),\n new Point(origin.x, origin.y), blockSpecialValue);\n\n for (int distanceFromOrigin = 0; distanceFromOrigin < config.getSizeOfMap();\n distanceFromOrigin++){\n\n int[] blockXVals = {origin.x,\n origin.x + X_STEP * distanceFromOrigin,\n origin.x + X_STEP * distanceFromOrigin,\n origin.x,\n origin.x - X_STEP * distanceFromOrigin,\n origin.x - X_STEP * distanceFromOrigin};\n\n int[] blockYVals = {origin.y - Y_STEP_TWO * distanceFromOrigin,\n origin.y - Y_STEP_ONE * distanceFromOrigin,\n origin.y + Y_STEP_ONE * distanceFromOrigin,\n origin.y + Y_STEP_TWO * distanceFromOrigin,\n origin.y + Y_STEP_ONE * distanceFromOrigin,\n origin.y - Y_STEP_ONE * distanceFromOrigin};\n\n blockSpecialValue = getRandomNumber(distanceFromOrigin, 0, 0);\n\n for (int block = 0; block < NUMBER_OF_BLOCKS; block ++){\n\n int blockXOrdinal = blockXVals[block];\n int blockYOrdinal = blockYVals[block];\n\n for (int blockSize = 0; blockSize < distanceFromOrigin; blockSize++){\n if(blockSpecialValue == blockSize){\n cellSpecial = getRandomNumber(2, 1, 1);\n }else {\n cellSpecial = 0;\n }\n cellGrid [distanceFromOrigin][block+1][blockSize+1] = makeNewCell(\n new CellPosition(distanceFromOrigin,block+1, blockSize+1),\n new Point(blockXOrdinal + blockStepX[block] * (blockSize + 1),\n blockYOrdinal + blockStepY[block] * (blockSize + 1)), cellSpecial);\n }\n }\n }\n }", "public void action() {\n\t\tsuppressed = false;\r\n\t\tpilot.setLinearSpeed(8);\r\n\t\tpilot.setLinearAcceleration(4);\r\n\t\tColorThread.updatePos = false;\r\n\t\tColorThread.updateCritical = false;\r\n\t\t//create a array to save the map information\r\n\t\tfor (int a = 0; a < 8; a++) {\r\n\t\t\tfor (int b = 0; b < 8; b++) {\r\n\t\t\t\trobot.probability[a][b] = -1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int a = 0; a < 8; a++) {\r\n\t\t\tfor (int b = 0; b < 8; b++) {\r\n\t\t\t\tif (a == 0 || a == 7 || b == 0 || b == 7) {\r\n\t\t\t\t\trobot.probability[a][b] = 100;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int a = 0; a < 6; a++) {\r\n\t\t\tfor (int b = 0; b < 6; b++) {\r\n\t\t\t\tif (robot.map[a][b].getOccupied() == 1) {\r\n\t\t\t\t\trobot.probability[a + 1][b + 1] = 100;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Step1: use ArrayList to save all of the probability situation.\r\n\t\tfloat front, left, right, back;\r\n\t\tfront = USThread.disSample[0];\r\n\t\trobot.setmotorM(90);\r\n\t\tDelay.msDelay(1000);\r\n\t\tleft = USThread.disSample[0];\r\n\t\trobot.setmotorM(-180);\r\n\t\tDelay.msDelay(1000);\r\n\t\tright = USThread.disSample[0];\r\n\t\trobot.setmotorM(90);\r\n\t\tDelay.msDelay(1000);\r\n\t\trobot.correctHeading(180);\r\n\t\tDelay.msDelay(1000);\r\n\t\tback = USThread.disSample[0];\r\n\t\trobot.correctHeading(180);\r\n\t\tfor (int a = 1; a < 7; a++) {\r\n\t\t\tfor (int b = 1; b < 7; b++) {\r\n\t\t\t\tif (robot.probability[a][b] == -1) {\r\n\t\t\t\t\tif (((robot.probability[a][b + 1] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t//direction is north\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(0, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"0 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a + 1][b] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is east\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(1, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"1 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a][b - 1] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is sourth\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(2, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"2 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a - 1][b] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is west\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(3, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"3 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Step 2: use loop to take control of robot walk and check the location correction\r\n\t\tboolean needLoop = true;\r\n\t\tint loopRound = 0;\r\n\t\twhile (needLoop) {\r\n\t\t\t// One of way to leave the loop is at the hospital\r\n\t\t\tif ((ColorThread.leftColSample[0] >= 0.2 && ColorThread.leftColSample[1] < 0.2\r\n\t\t\t\t\t&& ColorThread.leftColSample[1] >= 0.14 && ColorThread.leftColSample[2] <= 0.8)\r\n\t\t\t\t\t&& (ColorThread.rightColSample[0] >= 0.2 && ColorThread.rightColSample[1] < 0.2\r\n\t\t\t\t\t\t\t&& ColorThread.rightColSample[1] >= 0.11 && ColorThread.rightColSample[2] <= 0.08)) {\r\n\t\t\t\trobot.updatePosition(0, 0);\r\n\t\t\t\tint numOfAtYellow = 0;\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 1 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tnumOfAtYellow++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(numOfAtYellow == 1) {\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 1 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t}else {\r\n\t\t\t\t\t//have two way to go to the yellow part\r\n\t\t\t\t\tfront = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tleft = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(-180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tright = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tback = USThread.disSample[0];\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tif(front<0.25 && right<0.25 && left>0.25 && back>0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front<0.25 && right>0.25 && back>0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front>0.25 && right>0.25 && back<0.25 && left<0.25) {\r\n\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//Another way to leave the loop is the robot arrive the green cell.\r\n\t\t\tif ((ColorThread.leftColSample[0] <= 0.09 && ColorThread.leftColSample[1] >= 0.17\r\n\t\t\t\t\t&& ColorThread.leftColSample[2] <= 0.09)\r\n\t\t\t\t\t&& (ColorThread.rightColSample[0] <= 0.09 && ColorThread.rightColSample[1] >= 0.014\r\n\t\t\t\t\t\t\t&& ColorThread.rightColSample[2] <= 0.11)) {\r\n\t\t\t\trobot.updatePosition(5, 0);\r\n\t\t\t\tint numOfAtGreen = 0;\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 6 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tnumOfAtGreen++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(numOfAtGreen==1) {\r\n\t\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 6 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\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}else {\r\n\t\t\t\t\tfront = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tleft = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(-180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tright = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tback = USThread.disSample[0];\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tif(front<0.25 && right<0.25 && left>0.25 && back>0.25) {\r\n\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t}else if(front<0.25 && right>0.25 && back>0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front>0.25 && right>0.25 && back<0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//The third way of leave the loop is the robot have already know his position and direction.\r\n\t\t\tint maxStepNumber = 0;\r\n\t\t\tint numberOfMaxSteps = 0;\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\tif (robot.listOfPro.get(i).getSteps() > maxStepNumber) {\r\n\t\t\t\t\tmaxStepNumber = robot.listOfPro.get(i).getSteps();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\tif (robot.listOfPro.get(i).getSteps() == maxStepNumber) {\r\n\t\t\t\t\tnumberOfMaxSteps++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (numberOfMaxSteps == 1) {\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getSteps() == maxStepNumber) {\r\n\t\t\t\t\t\trobot.updatePosition(robot.listOfPro.get(i).getNowX() - 1,\r\n\t\t\t\t\t\t\t\trobot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\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\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//The below part are the loops.\r\n\t\t\tfront = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tleft = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(-180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tright = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tback = USThread.disSample[0];\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\t// move\r\n\t\t\t\r\n\t\t\tif (front > 0.25) {\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\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} else if (left > 0.25) {\r\n\t\t\t\trobot.correctHeading(-90);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\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} else if (right > 0.25) {\r\n\t\t\t\trobot.correctHeading(90);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\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} else {\r\n\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\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\t// It time to check the around situation\r\n\t\t\tfront = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tleft = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(-180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tright = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tback = USThread.disSample[0];\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t//System.out.println(robot.listOfPro.get(i).getSteps());\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\tif (((front < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\tif (((left < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\tif (((back < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (((right < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\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\tloopRound++;\r\n\t\t}\r\n\t\t// if is out the while loop, it will find the heading and the position of robot right now.\r\n\t\t//Step 3: It is time to use wavefront to come back to the hospital\r\n\t\trobot.restoreDefault();\r\n\t\trobot.RunMode = 1;\r\n\t\tColorThread.updatePos = true;\r\n\t\tColorThread.updateCritical = true;\r\n\t}", "public void drop() {\n\t\t// Has player waited cooldown before trying to fire again?\n\t\tif (System.currentTimeMillis() - this.lastFired > Config.WEAPON_COOLDOWN_TIME * 1000) {\n\t\t\t\n\t\t\t// Can this airship drop bombs?\n\t\t\tif (this.properties.DROPS_BOMB) {\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_BOMB)) {\n\t\t\t\t\t\tif (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_BOMB);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Spawn primed tnt firing downwards TODO: maybe add sound effects for tnt firing? :P\n\t\t\t\t\t\t\tTNTPrimed tnt = cannons[i].getWorld().spawn(cannons[i].getLocation().clone().add(0, -1, 0), TNTPrimed.class);\n\t\t\t\t\t\t\ttnt.setVelocity(new Vector(0, -0.5, 0));\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\tplayer.sendMessage(ChatColor.AQUA + \"Some cannons did not fire. Max cannon limit is \" + ChatColor.GOLD + this.properties.MAX_NUMBER_OF_CANNONS);\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 BOMBS\");\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}", "public Field.Fieldelements placeShotComputer() {\r\n int sizeX = this.fieldUser.getSizeX();\r\n int sizeY = this.fieldUser.getSizeY();\r\n \r\n // probability that a field contains a ship (not in percent, 1000 is best)\r\n double[][] probability = new double[sizeX][sizeY];\r\n double sumProbability = 0;\r\n \r\n for (int posX = 0; posX < sizeX; posX++) {\r\n for (int posY = 0; posY < sizeY; posY++) {\r\n // set probability for each field to 1\r\n probability[sizeX][sizeY] = 1.;\r\n \r\n // check neighbouring fields for hits and set probability to 1000\r\n if (Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX, posY - 1) ||\r\n Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX, posY + 1) ||\r\n Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX - 1, posY) ||\r\n Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX + 1, posY)) {\r\n probability[posX][posY] = 1000;\r\n }\r\n \r\n // 0 points if all fields above and below are SUNK or SHOT\r\n if ((Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX, posY - 1) || Field.Fieldelements.WATER == fieldUser.getFieldStatus(posX, posY - 1)) &&\r\n (Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX, posY + 1) || Field.Fieldelements.WATER == fieldUser.getFieldStatus(posX, posY + 1)) &&\r\n (Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX - 1, posY) || Field.Fieldelements.WATER == fieldUser.getFieldStatus(posX - 1, posY)) &&\r\n (Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX + 1, posY) || Field.Fieldelements.WATER == fieldUser.getFieldStatus(posX + 1, posY))\r\n ) {\r\n probability[posX][posY] = 0;\r\n }\r\n \r\n // 0 points if a neighbouring field is SUNK\r\n if (Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX - 1, posY - 1) ||\r\n Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX - 1, posY) ||\r\n Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX - 1, posY + 1) ||\r\n Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX, posY - 1) ||\r\n Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX, posY + 1) ||\r\n Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX + 1, posY - 1) ||\r\n Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX + 1, posY) ||\r\n Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX + 1, posY + 1)\r\n ) {\r\n probability[posX][posY] = 0;\r\n }\r\n \r\n // 0 points if top right, top left, bottom right or bottom left is HIT\r\n if (Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX - 1, posY - 1) ||\r\n Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX - 1, posY + 1) ||\r\n Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX + 1, posY - 1) ||\r\n Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX + 1, posY + 1)\r\n ) {\r\n probability[posX][posY] = 0;\r\n }\r\n \r\n // 0 points if a shot has already been placed\r\n if (Field.Fieldelements.WATER != fieldUser.getFieldStatus(posX, posY) &&\r\n Field.Fieldelements.SHIP != fieldUser.getFieldStatus(posX, posY)) {\r\n probability[posX][posY] = 0;\r\n }\r\n }\r\n }\r\n \r\n // calculate sum of all points\r\n // TODO check if probability must be smaller numbers\r\n for (int posX = 0; posX < sizeX; sizeX++) {\r\n for (int posY = 0; posY < sizeY; posY++) {\r\n sumProbability += probability[posX][posY];\r\n }\r\n }\r\n \r\n // random element\r\n Random random = new Random();\r\n sumProbability = random.nextInt((int) --sumProbability);\r\n sumProbability++; // must at least be 1\r\n int posY = -1;\r\n int posX = -1;\r\n while (posY < sizeY - 1 && sumProbability >= 0) {\r\n posY++;\r\n posX = -1;\r\n while (posX < sizeX && sumProbability >= 0) {\r\n posX++;\r\n sumProbability = sumProbability - probability[posX][posY];\r\n }\r\n }\r\n return fieldUser.shoot(posX, posY);\r\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 }", "protected void calculatePathfindingGrid(Tile[] tiles) {\n \n if(tiles == null) {\n return;\n }\n \n /**\n * Problem:\n * Because the tile size used by the path finding engine will most likely be\n * different from that of the visual effect size, we have to\n * look at all the visual tiles and judge whether they are blocking of\n * particular kinds of unit.\n * \n * Algorithm:\n * For land, air and sea take a look at the number of blocking/non-blocking\n * tiles there are and if there is over 50% either way then that will be the\n * PathTiles result.\n */\n \n // First get the size of the map in PathTile(s)\n int rows = getActualHeightInTiles();\n int cols = getActualWidthInTiles();\n \n // Calculate the number of tiles to a PathTile\n int tilesPerActualTilesX = getActualTileWidth() / getTileWidth();\n int tilesPerActualTilesY = getActualTileHeight() / getTileHeight();\n int tileCount = tilesPerActualTilesX * tilesPerActualTilesY;\n \n int tileCols = getWidthInTiles();\n \n // Create an array\n mPathTiles = new PathTile[ rows * cols ];\n \n // Iterate through these tiles\n for(int x = 0; x < cols ; x++) {\n for(int y = 0; y < rows; y++) {\n \n // Setup some variables\n int blockSea, blockAir, blockLand;\n blockAir = blockLand = blockSea = 0;\n \n // Figure out the percentage of each block\n for(int tx = 0; tx < tilesPerActualTilesX; tx++) {\n for(int ty = 0; ty < tilesPerActualTilesY; ty++) {\n \n int tileX = (x * tilesPerActualTilesX) + tx;\n int tileY = (y * tilesPerActualTilesY) + ty;\n \n Tile thisTile = tiles[ (tileY * tileCols) + tileX ];\n \n if(thisTile.blockAir()) {\n blockAir++;\n }\n \n if(thisTile.blockLand()) {\n blockLand++;\n }\n \n if(thisTile.blockSea()) {\n blockSea++;\n }\n \n }\n }\n \n // Calculate percentage\n float a,b,c;\n a = (float)blockAir / (float)tileCount;\n b = (float)blockLand / (float)tileCount;\n c = (float)blockSea / (float)tileCount;\n \n // Set the new tile\n mPathTiles[ (y * cols) + x ] = new PathTile( (a >= .5f), (b >= .5f), (c >= .5f) );\n \n // System.out.println(\"Grid \" + ((y * cols) + x) + \" (\" + x + \", \" + y + \") Air: \" + a + \" Land: \" + b + \" Sea: \" + c);\n \n }\n }\n \n }", "public void step()\n { \n //Remember, you need to access both row and column to specify a spot in the array\n //The scalar refers to how big the value could be\n //int someRandom = (int) (Math.random() * scalar)\n //remember that you need to watch for the edges of the array\n\t int randomRow = (int)(Math.random() * grid.length - 1);\n\t int randomCol = (int)(Math.random() * grid[0].length - 1);\n\t int randomDirection = (int)(Math.random() * 3);\n\t int randomDirectionFire = (int)(Math.random() * 4);\n\t int randomSpread = (int)(Math.random() * 100);\n\t int randomTelRow = (int)(Math.random() * grid.length);\n\t int randomTelCol = (int)(Math.random() * grid[0].length);\n\t \n\t //Sand\n\t if(grid[randomRow][randomCol] == SAND && (grid[randomRow + 1][randomCol] == EMPTY || grid[randomRow + 1][randomCol] == WATER))\n\t {\n\t\t if(grid[randomRow + 1][randomCol] == WATER)\n\t\t {\n\t\t\t grid[randomRow + 1][randomCol] = grid[randomRow][randomCol];\n\t\t\t grid[randomRow][randomCol] = WATER;\n\t\t }\n\t\t else\n\t\t {\n\t\t\t grid[randomRow + 1][randomCol] = grid[randomRow][randomCol];\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\n\t }\n\t //Water\n\t if(grid[randomRow][randomCol] == WATER && randomCol - 1 >= 0)\n\t {\n\t\t if(randomDirection == 1 && grid[randomRow + 1][randomCol] == EMPTY)\n\t\t {\n\t\t\t grid[randomRow + 1][randomCol] = WATER;\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t\t else if(randomDirection == 2 && grid[randomRow][randomCol - 1] == EMPTY)\n\t\t {\n\t\t\t grid[randomRow][randomCol - 1] = WATER;\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t\t else if(grid[randomRow][randomCol + 1] == EMPTY)\n\t\t {\n\t\t\t grid[randomRow][randomCol + 1] = WATER;\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t }\n\t //Helium\n\t if(grid[randomRow][randomCol] == HELIUM && randomCol - 1 >= 0 && randomRow - 1 >= 0)\n\t {\n\t\t if(grid[randomRow - 1][randomCol] == WATER)\n\t\t {\n\t\t\t grid[randomRow - 1][randomCol] = grid[randomRow][randomCol];\n\t\t\t grid[randomRow][randomCol] = WATER;\n\t\t }\n\t\t else if(randomDirection == 1 && grid[randomRow - 1][randomCol] == EMPTY)\n\t\t {\n\t\t\t grid[randomRow - 1][randomCol] = grid[randomRow][randomCol];\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t\t else if(randomDirection == 2 && grid[randomRow][randomCol - 1] == EMPTY)\n\t\t {\n\t\t\t grid[randomRow][randomCol - 1] = grid[randomRow][randomCol];\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t\t else if(grid[randomRow][randomCol + 1] == EMPTY)\n\t\t {\n\t\t\t grid[randomRow][randomCol + 1] = grid[randomRow][randomCol];\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t }\n\t \n\t //Bounce\n\t if(grid[randomRow][randomCol] == BOUNCE)\n\t { \t\n\t\t if(randomRow + 1 >= grid[0].length - 1 || randomRow + 1 == METAL)\n\t\t {\n\t\t\t hitEdge[randomCol] = true;\n\t\t }\n\t\t else if(randomRow - 1 < 0 || randomRow - 1 == METAL)\n\t\t {\n\t\t\t hitEdge[randomCol] = false;\n\t\t }\n\t\t \n\t\t if(hitEdge[randomCol] == true)\n\t\t {\n\t\t\t grid[randomRow - 1][randomCol] = BOUNCE;\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t\t else\n\t\t {\n\t\t\t grid[randomRow + 1][randomCol] = BOUNCE;\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t }\n\t \n\t //Virus\n\t if(grid[randomRow][randomCol] == VIRUS && randomCol - 1 >= 0 && randomRow - 1 >= 0)\n\t {\n\t\t if(grid[randomRow + 1][randomCol] == EMPTY)\n\t\t {\n\t\t\t grid[randomRow + 1][randomCol] = VIRUS;\n\t\t\t grid[randomRow][randomCol] = 0;\n\t\t }\n\t\t \n\t\t\t int temp = grid[randomRow + 1][randomCol];\n\t\t\t //VIRUS takeover\n\t\t\t if(grid[randomRow - 1][randomCol] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow - 1][randomCol] = VIRUS;\n\t\t\t }\n\t\t\t if(grid[randomRow + 1][randomCol] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow + 1][randomCol] = VIRUS;\n\t\t\t }\n\t\t\t if(grid[randomRow][randomCol - 1] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol - 1] = VIRUS;\n\t\t\t }\n\t\t\t if(grid[randomRow][randomCol + 1] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol + 1] = VIRUS;\n\t\t\t }\n\t\t\t //TEMP takeover\n\t\t\t grid[randomRow][randomCol] = temp;\n\t\t\t if(grid[randomRow - 1][randomCol] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow - 1][randomCol] = temp;\n\t\t\t }\n\t\t\t if(grid[randomRow + 1][randomCol] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow + 1][randomCol] = temp;\n\t\t\t }\n\t\t\t if(grid[randomRow][randomCol - 1] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol - 1] = temp;\n\t\t\t }\n\t\t\t if(grid[randomRow][randomCol + 1] != EMPTY)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol + 1] = temp;\n\t\t\t }\n\t }\n\t \n\t //Fire\n\t if(grid[randomRow][randomCol] == FIRE && randomCol - 1 >= 0 && randomRow - 1 >= 0)\n\t { \n\t\t if(randomDirectionFire == 1)\n\t\t {\n\t\t\t grid[randomRow][randomCol] = EMPTY;\n\t\t }\n\t\t else if(randomDirectionFire == 2)\n\t\t {\n\t\t\t grid[randomRow - 1][randomCol - 1] = FIRE;\n\t\t\t grid[randomRow][randomCol] = EMPTY;\n\t\t }\n\t\t else if(randomDirectionFire == 3)\n\t\t {\n\t\t\t grid[randomRow - 1][randomCol + 1] = FIRE;\n\t\t\t grid[randomRow][randomCol] = EMPTY;\n\t\t }\n\t\t \n\t\t //Fire Eats Vine\n\t\t if(grid[randomRow - 1][randomCol] == VINE)\n\t\t {\n\t\t\t grid[randomRow - 1][randomCol] = FIRE;\n\t\t }\n\t\t if(grid[randomRow + 1][randomCol] == VINE)\n\t\t {\n\t\t\t grid[randomRow + 1][randomCol] = FIRE;\n\t\t }\n\t\t if(grid[randomRow][randomCol - 1] == VINE)\n\t\t {\n\t\t\t grid[randomRow][randomCol - 1] = FIRE;\n\t\t }\n\t\t if(grid[randomRow][randomCol + 1] == VINE)\n\t\t {\n\t\t\t grid[randomRow][randomCol + 1] = FIRE;\n\t\t }\n\t\t \n\t\t //Fire Blows Up Helium\n\t\t if(grid[randomRow - 1][randomCol] == HELIUM && randomRow - 2 >= 0 && randomCol - 2 >= 0 && randomRow + 2 < grid[0].length && randomCol + 2 < grid.length)\n\t\t {\n\t\t\t //Explosion\n\t\t\t grid[randomRow - 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol + 2] = FIRE;\n\t\t\t //Clear Explosion\n\t\t\t grid[randomRow - 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol + 1] = EMPTY;\n\t\t }\n\t\t if(grid[randomRow + 1][randomCol] == HELIUM && randomRow - 2 >= 0 && randomCol - 2 >= 0 && randomRow + 2 < grid[0].length && randomCol + 2 < grid.length)\n\t\t {\n\t\t\t//Explosion\n\t\t\t grid[randomRow - 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol + 2] = FIRE;\n\t\t\t //Clear Explosion\n\t\t\t grid[randomRow - 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol + 1] = EMPTY;\n\t\t }\n\t\t if(grid[randomRow][randomCol - 1] == HELIUM && randomRow - 2 >= 0 && randomCol - 2 >= 0 && randomRow + 2 < grid[0].length && randomCol + 2 < grid.length)\n\t\t {\n\t\t\t//Explosion\n\t\t\t grid[randomRow - 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol + 2] = FIRE;\n\t\t\t //Clear Explosion\n\t\t\t grid[randomRow - 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol + 1] = EMPTY;\n\t\t }\n\t\t if(grid[randomRow][randomCol + 1] == HELIUM && randomRow - 2 >= 0 && randomCol - 2 >= 0 && randomRow + 2 < grid[0].length && randomCol + 2 < grid.length)\n\t\t {\n\t\t\t//Explosion\n\t\t\t grid[randomRow - 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow + 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol + 2] = FIRE;\n\t\t\t grid[randomRow - 2][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol - 2] = FIRE;\n\t\t\t grid[randomRow][randomCol + 2] = FIRE;\n\t\t\t //Clear Explosion\n\t\t\t grid[randomRow - 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow + 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol + 1] = EMPTY;\n\t\t\t grid[randomRow - 1][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol - 1] = EMPTY;\n\t\t\t grid[randomRow][randomCol + 1] = EMPTY;\n\t\t }\n\t }\n\t \n\t //Vine\n\t if(grid[randomRow][randomCol] == VINE && randomCol - 1 >= 0 && randomRow - 1 >= 0)\n\t {\n\t\t if(grid[randomRow + 1][randomCol] == EMPTY)\n\t\t { \n\t\t\t if(randomSpread == 1)\n\t\t\t {\n\t\t\t\t grid[randomRow + 1][randomCol] = VINE;\n\t\t\t }\n\t\t }\n\t\t else if(grid[randomRow + 1][randomCol] == WATER)\n\t\t {\n\t\t\t if(randomSpread >= 90)\n\t\t\t {\n\t\t\t\t grid[randomRow + 1][randomCol] = VINE;\n\t\t\t\t grid[randomRow][randomCol + 1] = VINE;\n\t\t\t\t grid[randomRow][randomCol - 1] = VINE;\n\t\t\t }\n\t\t }\n\t }\n\t \n\t //Teleport\n\t if(grid[randomRow][randomCol] == TELEPORT && randomCol - 1 >= 0 && randomRow - 1 >= 0)\n\t {\n\t\t grid[randomTelRow][randomTelCol] = TELEPORT;\n\t\t grid[randomRow][randomCol] = EMPTY;\n\t }\n\t \n\t //Laser\n\t if(grid[randomRow][randomCol] == LASER && randomCol - 1 >= 0 && randomRow - 1 >= 0)\n\t {\n\t\t if(randomDirectionLaser == 1 && randomRow - 4 >= 0)\n\t\t {\n\t\t\t grid[randomRow + 1][randomCol] = LASER;\n\t\t\t grid[randomRow - 4][randomCol] = EMPTY;\n\t\t\t if(randomRow + 1 == grid.length - 1)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow - 1][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow - 2][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow - 3][randomCol] = EMPTY;\n\t\t\t }\n\t\t }\n\t\t else if(randomDirectionLaser == 2)\n\t\t {\n\t\t\t grid[randomRow - 1][randomCol] = LASER;\n\t\t\t grid[randomRow + 4][randomCol] = EMPTY;\n\t\t\t if(randomRow - 1 == 0)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow + 1][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow + 2][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow + 3][randomCol] = EMPTY;\n\t\t\t }\n\t\t }\n\t\t else if(randomDirectionLaser == 3 && randomCol - 4 >= 0)\n\t\t {\n\t\t\t grid[randomRow][randomCol + 1] = LASER;\n\t\t\t grid[randomRow][randomCol - 4] = EMPTY;\n\t\t\t if(randomCol + 1 == grid[0].length - 1)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow][randomCol - 1] = EMPTY;\n\t\t\t\t grid[randomRow][randomCol - 2] = EMPTY;\n\t\t\t\t grid[randomRow][randomCol - 3] = EMPTY;\n\t\t\t }\n\t\t }\n\t\t else\n\t\t {\n\t\t\t grid[randomRow][randomCol - 1] = LASER;\n\t\t\t grid[randomRow][randomCol + 4] = EMPTY;\n\t\t\t if(randomCol - 1 == 0)\n\t\t\t {\n\t\t\t\t grid[randomRow][randomCol] = EMPTY;\n\t\t\t\t grid[randomRow][randomCol + 1] = EMPTY;\n\t\t\t\t grid[randomRow][randomCol + 2] = EMPTY;\n\t\t\t\t grid[randomRow][randomCol + 3] = EMPTY;\n\t\t\t }\n\t\t }\n\t }\n }", "@Override @Basic\r\n\tpublic int getNbProjectiles() {\r\n\t\treturn this.nbProjectiles;\r\n\t}", "@Override\n\tpublic void move(List<TileCollision> collidedTiles) \n\t{\t\t\t \n\t\tfor (TileCollision tc : collidedTiles)\n\t\t{\n\n\t\t\tint tileType = tc.theTile.getTileType();\n\n\t\t\tisWall = false;\n\t\t\t// 11 and 12 are the only tiles that are not walls.\n\t\t\tfor (int i = 0; i < 11; i++)\n\t\t\t{\n\t\t\t\tif (tileType == i) isWall = true;\n\t\t\t}\n\n\t\t\tif (tileType == 13 && tc.collisionSide == 0)\n\t\t\t{\n\t\t\t\tmoveUpToTileSide(tc);\n\t\t\t\tsetDirection(Direction.RIGHT.getValue());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (isWall)\n\t\t {\n\t\t\t\tmoveUpToTileSide(tc);\n\t\t\t\tsetDirection(randomDirection());\n\t\t\t\treturn;\n\t\t }\n\n\t\t\t// Only gets executed when pacman is in it normal state, and not in\n\t\t\t// hunter mode.\n\t\t\tif(!pacman.isHunter())\n\t\t\t{\n\t\t\t if(isPacmanToClose() && !inToCloseZone)\n\t\t\t {\n\t\t\t \tinToCloseZone = true;\n\n\t\t\t \tif (pacman.movesUp() || pacman.movesDown())\n\t\t\t \t{\n\t\t\t \t\treverseVerticalDirection();\n\t\t\t \t}\n\t\t\t \tif (pacman.movesLeft() || pacman.movesRight())\n\t\t\t \t{\n\t\t\t \t\treverseHorizontalDirection();\t\t\t \n\t\t\t \t}\n\t\t\t\t}\n\t\t\t else \n\t\t\t\t{\n\t\t\t\t\tinToCloseZone = false;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t// Only gets executed when pacman eat a power up and is the hunter.\n\t\t\telse if(pacman.isHunter())\n\t\t {\n\t\t\t if (isWall)\n\t\t\t { \n\t\t\t\t\tmoveUpToTileSide(tc);\n\t\t\t\t\tif (getDirection() == Direction.UP.getValue())\n\t\t\t\t\t{\n\t\t\t\t\t\tif(collided)\n\t\t\t\t\t\t{\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tsetDirection(Direction.DOWN.getValue());\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{\n\t\t\t\t\t\t\tsetDirection(Direction.RIGHT.getValue());\n\t\t\t\t\t\t\tcollided = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t else if (getDirection() == Direction.RIGHT.getValue())\n\t\t\t\t\t {\n\t\t\t if(collided)\n\t\t\t {\n\t\t\t \t setDirection(Direction.DOWN.getValue());\t\t\t \t \n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t\t\t\t setDirection(Direction.UP.getValue()); \n\t\t\t\t\t\t\t collided = true;\n\t\t\t }\n\t\t\t\t\t }\n\n\t\t\t\t\t else if (getDirection() == Direction.LEFT.getValue())\n\t\t\t\t\t {\n\t\t\t\t\t\t if(collided)\n\t\t\t\t\t\t {\n\t\t\t \t setDirection(Direction.RIGHT.getValue());\n\t\t\t\t\t\t }\n\t\t\t\t\t\t else\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t setDirection(Direction.UP.getValue()); \n\t\t\t\t\t\t\t collided = true;\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\n\t\t\t\t\t else if (getDirection() == Direction.DOWN.getValue())\n\t\t\t\t\t {\n\t\t\t\t\t\t if(collided)\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t setDirection(Direction.LEFT.getValue()); \t \n\t\t\t\t\t\t }\n\t\t\t\t\t else\n\t\t\t\t\t {\n\t\t\t\t\t\t\t setDirection(Direction.RIGHT.getValue()); \n\t\t\t\t\t\t\t collided = true;\n\t\t\t\t\t } \n\t\t\t\t\t }\t\t\t\t\t\t \n\t\t\t } \n\t\t\t else\n\t\t\t {\n\t\t\t collided = false;\t\t\t\t\t \n\t\t\t }\n\t\t }\n\t }\n\t}", "@Test\n public void testJuvenilesSpreadFromOutsideInsideGrid() {\n params = new CompletelySpatiallyRandomParams(0.5, 0);\n coloniser = new CompletelySpatiallyRandomColoniser(landCoverType, juvenilePine, juvenileOak,\n juvenileDeciduous, params);\n coloniser.updateJuvenilePresenceLayers();\n\n assertTrue(countJuvenilesInGrid(juvenilePine) >= 5);\n assertTrue(countJuvenilesInGrid(juvenileOak) >= 5);\n assertTrue(countJuvenilesInGrid(juvenileDeciduous) >= 5);\n }", "public void baptism() {\n for (Card targetCard : Battle.getInstance().getActiveAccount().getActiveCardsOnGround().values()) {\n if (targetCard instanceof Minion) {\n targetCard.setHolyBuff(2, 1);\n }\n }\n }", "private static void updateNeighbourTileDoors(Creature creature, int tilex, int tiley) {\n/* 2989 */ if (Tiles.isSolidCave(Tiles.decodeType(Server.caveMesh.getTile(tilex, tiley - 1)))) {\n/* */ \n/* 2991 */ VolaTile newTile = Zones.getOrCreateTile(tilex, tiley - 1, true);\n/* 2992 */ newTile.getSurfaceTile().doorCreatureMoved(creature, 0, 0);\n/* */ }\n/* */ else {\n/* */ \n/* 2996 */ VolaTile newTile = Zones.getOrCreateTile(tilex, tiley - 1, false);\n/* 2997 */ newTile.getCaveTile().doorCreatureMoved(creature, 0, 0);\n/* */ } \n/* */ \n/* */ \n/* 3001 */ if (Tiles.isSolidCave(Tiles.decodeType(Server.caveMesh.getTile(tilex + 1, tiley)))) {\n/* */ \n/* 3003 */ VolaTile newTile = Zones.getOrCreateTile(tilex + 1, tiley, true);\n/* 3004 */ newTile.getSurfaceTile().doorCreatureMoved(creature, 0, 0);\n/* */ }\n/* */ else {\n/* */ \n/* 3008 */ VolaTile newTile = Zones.getOrCreateTile(tilex + 1, tiley, false);\n/* 3009 */ newTile.getCaveTile().doorCreatureMoved(creature, 0, 0);\n/* */ } \n/* */ \n/* */ \n/* 3013 */ if (Tiles.isSolidCave(Tiles.decodeType(Server.caveMesh.getTile(tilex, tiley + 1)))) {\n/* */ \n/* 3015 */ VolaTile newTile = Zones.getOrCreateTile(tilex, tiley + 1, true);\n/* 3016 */ newTile.getSurfaceTile().doorCreatureMoved(creature, 0, 0);\n/* */ }\n/* */ else {\n/* */ \n/* 3020 */ VolaTile newTile = Zones.getOrCreateTile(tilex, tiley + 1, false);\n/* 3021 */ newTile.getCaveTile().doorCreatureMoved(creature, 0, 0);\n/* */ } \n/* */ \n/* */ \n/* 3025 */ if (Tiles.isSolidCave(Tiles.decodeType(Server.caveMesh.getTile(tilex - 1, tiley)))) {\n/* */ \n/* 3027 */ VolaTile newTile = Zones.getOrCreateTile(tilex - 1, tiley, true);\n/* 3028 */ newTile.getSurfaceTile().doorCreatureMoved(creature, 0, 0);\n/* */ }\n/* */ else {\n/* */ \n/* 3032 */ VolaTile newTile = Zones.getOrCreateTile(tilex - 1, tiley, false);\n/* 3033 */ newTile.getCaveTile().doorCreatureMoved(creature, 0, 0);\n/* */ } \n/* */ }", "public void setFire(float xTile, float yTile)\r\n/* 171: */ {\r\n/* 172:194 */ if (tileWalkable(xTile, yTile)) {\r\n/* 173:196 */ this.fire[((int)xTile)][((int)yTile)] = 1;\r\n/* 174: */ }\r\n/* 175: */ }", "public static void createInfluenceMap(Map<Pickup, Boolean> pickupStates) {\n mapWidth = Constants.screenWidth / CELL_SIZE;\n mapHeight = Constants.screenHeight / CELL_SIZE;\n influenceMap = new double[mapWidth][mapHeight];\n\n lowestValue = Double.MAX_VALUE;\n highestValue = -Double.MAX_VALUE;\n\n Vector2d cellCenter = new Vector2d();\n for (int y = 0; y < mapHeight; y++) {\n for (int x = 0; x < mapWidth; x++) {\n // get sum of all proximities to pickups here\n for (Pickup p : pickupStates.keySet()) {\n if (!pickupStates.get(p)) {\n // existing pickup\n cellCenter.set(CELL_SIZE * (x + 0.5), CELL_SIZE * (y + 0.5));\n double dist = cellCenter.dist(p.pos);\n //// use exponential dropoff instead of linear dropoff\n double value = 5 + Math.log1p(dist) * -1;\n //double value = (MAX_DIST - dist)/MAX_DIST;\n if (p.type == PickupType.MINE) value *= 0;\n\n influenceMap[x][y] += value * 50;\n }\n }\n }\n }\n\n // go through map and establish ranges\n for (int y = 0; y < mapHeight; y++) {\n for (int x = 0; x < mapWidth; x++) {\n double value = influenceMap[x][y];\n if (value > highestValue) highestValue = value;\n if (value < lowestValue) lowestValue = value;\n }\n }\n\n }", "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: */ }", "public void tick() {\n\t\tif (mainRef.player().getPos()[1] <= lastEnd.getPos()[1] + 2000)\r\n\t\t\tloadNextMap();\r\n\r\n\t\tfor (GameObject go : gameObjects)\r\n\t\t\tgo.tick();\r\n\r\n\t\t// Check Player Collision\r\n\t\t// Top-Left\r\n\t\tPointColObj cTL = new PointColObj(mainRef.player().getPos()[0] + mainRef.player().getCol()[2],\r\n\t\t\t\tmainRef.player().getPos()[1] + mainRef.player().getCol()[3]);\r\n\t\t// Top-Right\r\n\t\tPointColObj cTR = new PointColObj(mainRef.player().getPos()[0] + mainRef.player().getCol()[2],\r\n\t\t\t\tmainRef.player().getPos()[1] + mainRef.player().getCol()[3] + mainRef.player().getCol()[1]);\r\n\t\t// Bottom-Left\r\n\t\tPointColObj cBL = new PointColObj(\r\n\t\t\t\tmainRef.player().getPos()[0] + mainRef.player().getCol()[2] + mainRef.player().getCol()[0],\r\n\t\t\t\tmainRef.player().getPos()[1] + mainRef.player().getCol()[3]);\r\n\t\t// Bottom-Right\r\n\t\tPointColObj cBR = new PointColObj(\r\n\t\t\t\tmainRef.player().getPos()[0] + mainRef.player().getCol()[2] + mainRef.player().getCol()[0],\r\n\t\t\t\tmainRef.player().getPos()[1] + mainRef.player().getCol()[3] + mainRef.player().getCol()[1]);\r\n\r\n\t\t// Inverse Collision, no part of the player's ColBox should be not\r\n\t\t// colliding...\r\n\t\tif (checkCollisionWith(cTL).size() == 0 || checkCollisionWith(cTR).size() == 0\r\n\t\t\t\t|| checkCollisionWith(cBL).size() == 0 || checkCollisionWith(cBR).size() == 0) {\r\n\t\t\t// If it would have left the bounding box of the floor, reverse the\r\n\t\t\t// player's posiiton\r\n\t\t\tmainRef.player().setMoveBack(true);\r\n\t\t} else\r\n\t\t\tmainRef.player().setMoveBack(false);\r\n\r\n\t\t// Check General Collision\r\n\t\tArrayList<GameObject> allCol = checkCollisionWith(mainRef.player());\r\n\t\tfor (GameObject go : allCol) {\r\n\t\t\tif (go instanceof Tile) {\r\n\t\t\t\tTile gameTile = (Tile) go;\r\n\t\t\t\tif (gameTile.getType() == GameObjectRegistry.TILE_WALL\r\n\t\t\t\t\t\t|| gameTile.getType() == GameObjectRegistry.TILE_BASE\r\n\t\t\t\t\t\t|| gameTile.getType() == GameObjectRegistry.TILE_DOOR\r\n\t\t\t\t\t\t|| gameTile.getType() == GameObjectRegistry.TILE_SEWER\r\n\t\t\t\t\t\t|| (gameTile.getType() == GameObjectRegistry.TILE_WATERFALL && gameTile.getVar() == 0)) {\r\n\t\t\t\t\tmainRef.player().setMoveBack(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t} else if (go instanceof LineColObjHor || go instanceof LineColObjVert) {\r\n\t\t\t\tmainRef.player().setMoveBack(true);\r\n\t\t\t\tbreak;\r\n\t\t\t} else if (go instanceof SkillDrop) {\r\n\t\t\t\tSkillDrop d = (SkillDrop) go;\r\n\t\t\t\tmainRef.player().getInv()[d.getVariation()]++;\r\n\t\t\t\tremoveGameObject(go);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "public int checkCastle(Board b, char race) {\n Set<Coordinate> opponentPieces = (race == 'b') ? b.white : b.black;\n Set<Coordinate> opponentMoves = new HashSet<Coordinate>();\n\n for (Coordinate each : opponentPieces) {\n if (b.board[each.x][each.y] instanceof King) {\n continue;\n }\n if (b.board[each.x][each.y] instanceof Pawn) {\n opponentMoves.addAll(((Pawn) (b.board[each.x][each.y])).killableMoves(b));\n } else {\n opponentMoves.addAll(b.board[each.x][each.y].displayMoves(b));\n }\n }\n\n switch (race) {\n case 'b':\n if (b.board[0][4] != null && b.board[0][4].move == 0) {\n int i = 0;\n if (b.board[0][0] != null && b.board[0][0].move == 0) {\n if (b.board[0][1] == null && b.board[0][2] == null && b.board[0][3] == null) {\n if (!opponentMoves.contains(new Coordinate(0, 2)) && !opponentMoves.contains(new Coordinate(0, 3))\n && !opponentMoves.contains(new Coordinate(0, 4))) {\n i++;\n }\n }\n }\n\n if (b.board[0][7] != null && b.board[0][7].move == 0) {\n if (b.board[0][5] == null && b.board[0][6] == null) {\n if (!opponentMoves.contains(new Coordinate(0, 6)) && !opponentMoves.contains(new Coordinate(0, 5))\n && !opponentMoves.contains(new Coordinate(0, 4))) {\n i += 10;\n }\n }\n }\n return i;\n }\n break;\n\n case 'w':\n if (b.board[7][4] != null && b.board[7][4].move == 0) {\n int i = 20;\n if (b.board[7][0] != null && b.board[7][0].move == 0) {\n if (b.board[7][1] == null && b.board[7][2] == null && b.board[7][3] == null) {\n if (!opponentMoves.contains(new Coordinate(7, 2)) && !opponentMoves.contains(new Coordinate(7, 3))\n && !opponentMoves.contains(new Coordinate(7, 4))) {\n i++;\n }\n }\n }\n\n if (b.board[7][7] != null && b.board[7][7].move == 0) {\n if (b.board[7][5] == null && b.board[7][6] == null) {\n if (!opponentMoves.contains(new Coordinate(7, 6)) && !opponentMoves.contains(new Coordinate(7, 5))\n && !opponentMoves.contains(new Coordinate(7, 4))) {\n i += 10;\n }\n }\n }\n return i;\n }\n break;\n }\n return 69;\n }", "public int getNumMissiles(){\n return this.nunMissiles;\n }", "@Override\n public void run()\n {\n final int minX = region.getMinimumPoint().getX();\n final int minZ = region.getMinimumPoint().getZ();\n final int maxX = region.getMaximumPoint().getX();\n final int maxZ = region.getMaximumPoint().getZ();\n final int midX = (maxX - minX) / 2;\n final int midZ = (maxZ - minZ) / 2;\n double playerY = player.getLocation().getY();\n\n if (midX / 6 > 0)\n {\n int tmp = 0;\n final int amount = midX / 5;\n for (int i = 0; i < amount; i++)\n {\n final int x = minX + midX - tmp;\n final int x2 = minX + midX + tmp;\n for (double y = playerY - 10; y <= playerY + 10; y++)\n {\n player.spawnParticle(Particle.FLAME, x, y, minZ, 0);\n player.spawnParticle(Particle.FLAME, x, y, maxZ, 0);\n player.spawnParticle(Particle.FLAME, x2, y, minZ, 0);\n player.spawnParticle(Particle.FLAME, x2, y, maxZ, 0);\n }\n tmp += 5;\n }\n }\n if (midZ / 6 > 0)\n {\n int tmp = 0;\n final int amount = midZ / 5;\n for (int i = 0; i < amount; i++)\n {\n final int z = minZ + midZ - tmp;\n final int z2 = minZ + midZ + tmp;\n\n for (double y = playerY - 10; y <= playerY + 10; y++)\n {\n player.spawnParticle(Particle.FLAME, minX, y, z, 0);\n player.spawnParticle(Particle.FLAME, maxX, y, z, 0);\n player.spawnParticle(Particle.FLAME, minX, y, z2, 0);\n player.spawnParticle(Particle.FLAME, maxX, y, z2, 0);\n }\n tmp += 5;\n }\n }\n\n for (double y = playerY - 40; y <= 256; y++)\n {\n player.spawnParticle(Particle.FLAME, minX, y, minZ, 0);\n player.spawnParticle(Particle.FLAME, minX, y, maxZ, 0);\n player.spawnParticle(Particle.FLAME, maxX, y, minZ, 0);\n player.spawnParticle(Particle.FLAME, maxX, y, maxZ, 0);\n }\n timer--;\n\n if (0 > this.timer)\n {\n player.sendMessage(\"§5Boundaries have been expired.\");\n this.cancel();\n }\n }", "private static void trailRunAIProbabilistic(int dimension, int numMines, int numTrails) {\n\t\tint numWins = 0;\n\n\t\tfor (int i = 0; i < numTrails; i++) {\n\t\t\tSystem.out.print(\"\\rProgress:\" + 100 * ((float) i / (float) numTrails) + \"%\");\n\n\t\t\tBoard board = new Board(dimension, numMines);\n\t\t\tAbstractPlayer player = new ProbabilisticPlayer(board, numMines);\n\n\t\t\tboolean isSolved = player.solve();\n\n\t\t\tif (isSolved) {\n\t\t\t\tnumWins++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\\rDone!\");\n\t\tSystem.out.println(\"WINS: \" + numWins + \"/\" + numTrails);\n\t\tSystem.out.println(\"WIN%: \" + 100 * ((float) numWins / (float) numTrails) + \"%\");\n\t}", "public static void main(String[] args) {\n double radius = 256.0 / (Math.toRadians(MAX_LON) * 2);\n double maxLat = Math.toDegrees((Math.atan(Math.exp(256.0 / (radius * 2))) - (Math.PI / 4)) * 2);\n System.out.println(radius);\n System.out.println(maxLat);\n for (int i = 0; i <= 20; i++)\n {\n double r = LEVEL_1_RADIUS * Math.pow(2, i);\n MercatorProjector projector = new MercatorProjector(r, MAX_LAT);\n System.out.printf(\"%d :: Width = %f; Height = %f; Radius = %f\\n\", i, projector.getWidth(), projector.getHeight(), r);\n }\n }", "private void nourrireLePeuple() {\n\t\t\tint totalDepense = (int)((population * 1) + (populationColoniale * 0.8) + ((armee + armeeDeployee()) * nourritureParArmee));\r\n\t\t\tnourriture -= totalDepense;\r\n\t\t\tenFamine = (nourriture > 0) ? false : true;\r\n\t\t}", "private void fly() {\n\t\tint xTarget = 12 *Board.TILE_D;\r\n\t\tint yTarget = 12 * Board.TILE_D;\r\n\t\tif(centerX - xTarget >0) {\r\n\t\t\tcenterX--;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tcenterX++;\r\n\t\t}\r\n\t\tif(centerY - yTarget > 0) {\r\n\t\t\tcenterY --;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tcenterY ++;\r\n\t\t}\r\n\t}", "private static void mapCheck(){\n\t\tfor(int x = 0; x < Params.world_width; x = x + 1){\n\t\t\tfor(int y = 0; y < Params.world_height; y = y + 1){\n\t\t\t\tif(map[x][y] > 1){\n\t\t\t\t\t//System.out.println(\"Encounter Missing. Position: (\" + x + \",\" + y + \").\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private static int computeUnitsTrappedDynamicProgramming(int[] elevationMap) {\n int[] leftWalls = computeLeftWalls(elevationMap);\n int[] rightWalls = computeRightWalls(elevationMap);\n int units = 0;\n for (int x = 1; x < elevationMap.length; x++) {\n int current = elevationMap[x];\n int tallestLeft = leftWalls[x];\n int tallestRight = rightWalls[x];\n if (tallestLeft > current && tallestRight > current) {\n units += Math.min(tallestLeft, tallestRight) - current;\n }\n }\n return units;\n }", "@Override\r\n\tpublic int costOfShooting() {\r\n\t\treturn 50;\r\n\t}", "private void multiply_shotmap(Node parent, int valueMove, int[] shotmap){\n\t\t//Account for shooting back at the starting position\n\t\tfor(int x = 0; x <= 9; x++){\n\t\t\tfor(int y = 0; y <= 9; y++){\n\t\t\t\tif(shotmap[y*GRID+x] >= 0){ // need 0 because orign point is 0*65536 = 0\n\t\t\t\t\tint move = (((shotmap[y*GRID+x]&0xffff) << 16) | valueMove);\n\t\t\t\t\tif(move != 0) {\n\t\t\t\t\t\tparent.addChild(new Node(move,parent));\n//\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "State(int numJunkPiles) {\n this.numJunkPiles = numJunkPiles;\n }", "int getMonstersCount();", "int getMonstersCount();", "@Test\n public void TEST_UR_MAP_LENGTH() {\n Object[] objects = loadSave(\"emptyRiver\");\n Map map = (Map) objects[0];\n Player player = (Player) objects[1];\n AI[] opponents = (AI[]) objects[2];\n boolean[] NO_KEYS_PRESSED = {false, false, false, false};\n\n for (int i = 0; i < 60*30; i++) {\n map.stepWorld(player, opponents);\n player.updatePlayer(NO_KEYS_PRESSED, Gdx.graphics.getDeltaTime());\n }\n assertFalse(player.hasFinished());\n\n for (int i = 0; i < 60*30; i++) {\n map.stepWorld(player, opponents);\n player.updatePlayer(NO_KEYS_PRESSED, Gdx.graphics.getDeltaTime());\n }\n assertTrue(player.hasFinished());\n }", "public static void main(String[] args) {\n\n int gridWidth, gridHeight, humanNumber, goblinNumber, positionX, positionY, strength;\n ArrayList<Player> humanList = new ArrayList<>();\n ArrayList<Player> goblinList = new ArrayList<>();\n Scanner input = new Scanner(System.in);\n\n System.out.println(\" Welcome to Human vs. Goblin\");\n System.out.println();\n\n // Get the size of the grid\n System.out.print(\"Width of the grid (1-500): \");\n gridWidth = input.nextInt();\n if (gridWidth<1 || gridWidth>500) {\n gridWidth = 10; // In case input is wrong, set 10 as default;\n }\n\n System.out.print(\"Height of the grid (1-500): \");\n gridHeight = input.nextInt();\n if (gridHeight<1 || gridHeight>500)\n gridHeight = 10; // In case input is wrong, set 10 as default;\n\n // Init Grid\n World grid = new World(gridWidth, gridHeight);\n System.out.println();\n\n // Get the number of Players\n System.out.print(\"Number of human (0-\"+grid.getArea()+\"): \");\n humanNumber = input.nextInt();\n\n if (humanNumber<0 || humanNumber>grid.getArea()){\n humanNumber = grid.getArea()/3; // In case input is wrong, set one third as default;\n }\n\n System.out.print(\"Number of goblin (0-\"+(grid.getArea())+\"): \");\n goblinNumber = input.nextInt();\n if (goblinNumber<0 || goblinNumber>grid.getArea()){\n goblinNumber = grid.getArea()/3; // In case input is wrong, set one third as default;\n }\n\n Coordinates coordinates = new Coordinates(ThreadLocalRandom.current().nextInt(grid.getArea() -1,grid.getArea()), ThreadLocalRandom.current().nextInt(grid.getArea() -1,grid.getArea()));\n // Fill Grid with creatures\n for(int i=0;i<humanNumber;i++){\n do {\n positionX = ThreadLocalRandom.current().nextInt(0,grid.getWidth()-1);\n positionY = ThreadLocalRandom.current().nextInt(0,grid.getHeight()-1);\n strength = ThreadLocalRandom.current().nextInt(1,10);\n Human human = new Human(\"human\",strength,1, coordinates);\n humanList.add(human);\n\n } while (grid.addPlayer(positionX, positionY, humanList.get(i)));\n }\n for(int i=0;i<goblinNumber;i++){\n do {\n positionX = ThreadLocalRandom.current().nextInt(0,grid.getWidth()-1);\n positionY = ThreadLocalRandom.current().nextInt(0,grid.getHeight()-1);\n strength = ThreadLocalRandom.current().nextInt(1,10);\n Goblin goblin = new Goblin(\"goblin\",strength,1, coordinates);\n goblinList.add(goblin);\n\n } while (grid.addPlayer(positionX, positionY, goblinList.get(i)));\n }\n\n System.out.println();\n System.out.print(\"You have just created Human vs Goblin grid size of \"+grid.getSizeString()+\" \");\n System.out.println(\"with \"+humanNumber+\" humans and \"+goblinNumber+\" Goblins!\");\n System.out.println();\n Timer timer = new Timer();\n timer.schedule(new PlayGame(grid, timer),0,500);\n }", "public void update(GameState gameState) {\n for (int i = 0;i < map.length; i++) {\n for (int j = 0;j < map[0].length;j++) {\n if (map[i][j] == TileType.WATER) {\n continue;\n }\n\n if (map[i][j] == TileType.MY_ANT) {\n map[i][j] = TileType.LAND;\n }\n\n if (gameState.getMap()[i][j] != TileType.UNKNOWN) {\n this.map[i][j] = gameState.getMap()[i][j];\n }\n }\n }\n\n this.myAnts = gameState.getMyAnts();\n this.enemyAnts = gameState.getEnemyAnts();\n this.myHills = gameState.getMyHills();\n this.seenEnemyHills.addAll(gameState.getEnemyHills());\n\n // remove eaten food\n MapUtils mapUtils = new MapUtils(gameSetup);\n Set<Tile> filteredFood = new HashSet<Tile>();\n filteredFood.addAll(seenFood);\n for (Tile foodTile : seenFood) {\n if (mapUtils.isVisible(foodTile, gameState.getMyAnts(), gameSetup.getViewRadius2())\n && getTileType(foodTile) != TileType.FOOD) {\n filteredFood.remove(foodTile);\n }\n }\n\n // add new foods\n filteredFood.addAll(gameState.getFoodTiles());\n this.seenFood = filteredFood;\n\n // explore unseen areas\n Set<Tile> copy = new HashSet<Tile>();\n copy.addAll(unseenTiles);\n for (Tile tile : copy) {\n if (isVisible(tile)) {\n unseenTiles.remove(tile);\n }\n }\n\n // remove fallen defenders\n Set<Tile> defenders = new HashSet<Tile>();\n for (Tile defender : motherlandDefenders) {\n if (myAnts.contains(defender)) {\n defenders.add(defender);\n }\n }\n this.motherlandDefenders = defenders;\n\n // prevent stepping on own hill\n reservedTiles.clear();\n reservedTiles.addAll(gameState.getMyHills());\n\n targetTiles.clear();\n }", "@Override\r\n\tpublic void decreaseNbProjectilesWith(int amount) {\r\n\t\tif (getNbProjectiles() > 0)\t\r\n\t\t\tsetNbProjectiles( getNbProjectiles() - amount );\t\t\r\n\t}", "public static native int OpenMM_AmoebaTorsionTorsionForce_getNumTorsionTorsionGrids(PointerByReference target);", "void lowerNumberOfStonesOnBoard();", "void animalMove(int x,int y, Living[][] map,int gridLength, int gridWidth){\r\n \r\n boolean age=map[x][y].getAge();\r\n boolean gender=map[x][y].getGender();\r\n boolean checkRight=false;\r\n boolean checkLeft=false;\r\n boolean checkUp=false;\r\n boolean checkDown=false;\r\n boolean up=false;\r\n boolean down=false;\r\n boolean right=false;\r\n boolean left=false;\r\n boolean baby=false;\r\n boolean turn=map[x][y].getMovement(); //Check to see if it moved before in the array\r\n \r\n double random=Math.random();\r\n \r\n \r\n \r\n \r\n //Checks to see if it is possible to even see to the left first\r\n if(y-1>=0){\r\n left=true;\r\n \r\n if(turn && (map[x][y-1] instanceof Plant) ){ //Check to see if there is plants and goes to plants\r\n map[x][y].gainHealth((map[x][y-1].getHealth()));\r\n map[x][y].setMovement(false); \r\n map[x][y-1]=map[x][y];\r\n map[x][y]=null;\r\n turn=false; \r\n }\r\n if(turn && (map[x][y-1] instanceof Sheep) && (age==map[x][y-1].getAge()) ){ \r\n //If the ages match they must be false to be adults and both be opposite genders\r\n if(turn && !(age) && !(gender==map[x][y-1].getGender()) && (map[x][y].getHealth()>19) && (map[x][y-1].getHealth()>19) ){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){ \r\n \r\n if( (x+1<gridLength) && (map[x+1][y]==null)&& !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep\r\n map[x+1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n \r\n if( (x-1>=0) && (map[x-1][y]==null)&& !(baby) ){\r\n map[x-1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if((y+1<gridLength) && (map[x][y+1]==null) && !(baby) ){\r\n map[x][y+1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if(baby){ //If baby is made then sheep will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x][y-1].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x][y-1].setMovement(false);\r\n turn=false;\r\n baby=false;\r\n }\r\n }\r\n } \r\n }\r\n //If it can move to the left need to check if it can foresee more incase there wasn't any place for it to go\r\n if(y-2>=0){\r\n checkLeft=true;\r\n }\r\n }\r\n \r\n //Checks to see if it is possible to even see to the right first \r\n if(y+1<gridWidth){\r\n right=true;\r\n \r\n //Check to move on towards plants\r\n if(turn && (map[x][y+1] instanceof Plant)){\r\n map[x][y].gainHealth(map[x][y+1].getHealth()); \r\n map[x][y].setMovement(false); \r\n map[x][y+1]=map[x][y];\r\n map[x][y]=null;\r\n turn=false; \r\n }\r\n \r\n if(turn && (map[x][y+1] instanceof Sheep && age==map[x][y+1].getAge()) ){ \r\n //If the ages match they must be false to be adults and both be opposite genders\r\n if(turn && !(age) && !(gender==map[x][y+1].getGender()) && (map[x][y].getHealth()>19) && (map[x][y+1].getHealth()>19) ){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){\r\n \r\n if( (x+1<gridLength) && (map[x+1][y]==null) && !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep\r\n \r\n map[x+1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n \r\n if( (x-1>=0) && (map[x-1][y]==null) && !(baby) ){\r\n map[x-1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if( (y-1>=0) && (map[x][y-1]==null) && !(baby) ){\r\n map[x][y-1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if(baby){ //If baby is made then sheeps will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x][y+1].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x][y+1].setMovement(false);\r\n turn=false; \r\n baby=false;\r\n }\r\n }\r\n } \r\n }\r\n \r\n //If it can move to the right need to check if it can foresee more incase there wasn't any place for it to go\r\n if(y+2<gridWidth){ \r\n checkRight=true;\r\n }\r\n } \r\n \r\n //Check to see if it can go up\r\n if(x-1>=0){\r\n up=true;\r\n \r\n //Check for plant to go on to upwards \r\n if(turn && (map[x-1][y] instanceof Plant) ){\r\n map[x][y].gainHealth(map[x-1][y].getHealth()); \r\n map[x][y].setMovement(false); \r\n map[x-1][y]=map[x][y];\r\n map[x][y]=null;\r\n turn=false;\r\n }\r\n \r\n if(turn && (map[x-1][y] instanceof Sheep) && (age==map[x-1][y].getAge()) ){ \r\n //If the ages match age must be false to be adults and both be opposite genders and have more then 19 health\r\n if(turn && !age && !(gender==map[x-1][y].getGender()) &&map[x][y].getHealth()>19 &&map[x-1][y].getHealth()>19){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){\r\n if( (y+1<gridLength) && (map[x][y+1]==null) && !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep\r\n \r\n map[x][y+1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n if( (y-1>=0) && (map[x][y-1]==null) && !(baby) ){\r\n map[x][y-1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n \r\n if( (x+1<gridLength) && (map[x+1][y]==null) && !(baby) ){\r\n map[x+1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n \r\n if(baby){ //If baby is made then sheep will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x-1][y].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x-1][y].setMovement(false);\r\n turn=false; \r\n baby=false;\r\n }\r\n }\r\n } \r\n }\r\n \r\n //If it can move to upwards need to check if it can foresee more incase there wasn't any place for it to go\r\n if(x-2>=0){\r\n checkUp=true; \r\n }\r\n } \r\n //Check to see where to go downwards\r\n if(x+1<gridLength){\r\n down=true; \r\n \r\n //Check to see if any plants are downwards\r\n if(turn && (map[x+1][y] instanceof Plant) ){\r\n map[x][y].gainHealth( (map[x+1][y].getHealth()));\r\n map[x][y].setMovement(false);\r\n map[x+1][y]=map[x][y];\r\n map[x][y]=null;\r\n turn=false;\r\n } \r\n \r\n if(turn && (map[x+1][y] instanceof Sheep) && (age==map[x+1][y].getAge()) ){ \r\n \r\n //If the ages match they must be false to be adults and both be opposite genders\r\n if(turn && !(age) && !(gender==map[x+1][y].getGender()) && (map[x][y].getHealth()>=20) && (map[x+1][y].getHealth()>=20) ){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){\r\n if( (y+1<gridLength) && (map[x][y+1]==null) && !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep \r\n map[x][y+1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n if( (y-1>=0) && (map[x][y-1]==null) && !(baby) ){\r\n map[x][y-1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if( (x-1>=0) && (map[x+1][y]==null) && !(baby) ){\r\n map[x-1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if(baby){ //If baby is made then sheep will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x+1][y].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x+1][y].setMovement(false);\r\n turn=false;\r\n baby=false;\r\n }\r\n }\r\n } \r\n } \r\n if(x+2<gridLength){\r\n checkDown=true;\r\n }\r\n } \r\n \r\n //Movement towards plant only if no immediate sheep/plants are there to move to\r\n if(turn && checkRight && (map[x][y+2] instanceof Plant) ){\r\n if(map[x][y+1]==null){\r\n \r\n map[x][y+1]=map[x][y];\r\n map[x][y]=null;\r\n map[x][y+1].setMovement(false);\r\n turn=false;\r\n }\r\n }\r\n if(turn && checkDown && (map[x+2][y] instanceof Plant) ){\r\n if(map[x+1][y]==null){\r\n map[x+1][y]=map[x][y];\r\n map[x][y]=null;\r\n map[x+1][y].setMovement(false);\r\n turn=false;\r\n }\r\n } \r\n if(turn && checkUp && (map[x-2][y] instanceof Plant) ){\r\n if(map[x-1][y]==null){\r\n \r\n map[x-1][y]=map[x][y];\r\n map[x][y]=null;\r\n map[x-1][y].setMovement(false);\r\n turn=false;\r\n }\r\n }\r\n \r\n if(turn && checkLeft && (map[x][y-2] instanceof Plant) ){\r\n if(map[x][y-1]==null){\r\n map[x][y-1]=map[x][y];\r\n map[x][y]=null;\r\n map[x][y-1].setMovement(false);\r\n turn=false;\r\n }\r\n }\r\n \r\n //Random Movement if there are no plants to move towards \r\n if(turn && right && (random<=0.2) ){\r\n if(map[x][y+1]==null){\r\n map[x][y].setMovement(false);\r\n map[x][y+1]=map[x][y];\r\n map[x][y]=null; \r\n }\r\n }\r\n if(turn && left && (random>0.2) && (random<=0.4) ){\r\n if(map[x][y-1]==null){\r\n map[x][y].setMovement(false);\r\n map[x][y-1]=map[x][y];\r\n map[x][y]=null;\r\n }\r\n }\r\n if(turn && up && (random>0.4) && (random<=0.6) ){\r\n if(map[x-1][y]==null){\r\n map[x][y].setMovement(false);\r\n map[x-1][y]=map[x][y];\r\n map[x][y]=null;\r\n }\r\n }\r\n if(turn && down && (random>0.6) && (random<=0.8) ){\r\n if(map[x+1][y]==null){\r\n map[x][y].setMovement(false);\r\n map[x+1][y]=map[x][y];\r\n map[x][y]=null;\r\n }\r\n }\r\n }", "int numOfPillars() {\n // there are one more coordinate line than blocks in each direction\n // since each block must be hinged on a coordinate line on each side\n return (ni+1) * (nj+1);\n }", "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}", "public void populateGrid() {\n for (int i=0; i<5; i++) {\n int chance = (int) random(10);\n if (chance <= 3) {\n int hh = ((int) random(50) + 1) * pixelSize;\n int ww = ((int) random(30) + 1) * pixelSize;\n\n int x = ((int) random(((width/2)/pixelSize))) * pixelSize + width/4;\n int y = ((int) random((height-topHeight)/pixelSize)) * pixelSize + topHeight;\n\n new Wall(w/2, 190, hh, ww).render();\n }\n }\n\n int fewestNumberOfPowerUps = 3;\n int greatesNumberOfPowerUps = 6;\n int wSize = 2;\n int hSize = 2;\n\n powerUps = new ArrayList <PowerUp> ();\n createPowerUps (fewestNumberOfPowerUps, greatesNumberOfPowerUps, wSize, hSize);\n}", "public abstract int numOfFoodCellToReproduce();", "protected void check_turn(List<CollisionObject> collidables) {\n //Firing rays\n\n //select an area of 180 degrees (pi radians)\n boolean turn = true;\n Vector2 start_point = get_ray_fire_point();\n for (int ray = 0; ray <= number_of_rays; ray++) {\n\n if (turn) {\n ray--;\n float ray_angle = sprite.getRotation() + ((ray_angle_range / (number_of_rays / 2)) * ray);\n turn = false;\n } else {\n float ray_angle = sprite.getRotation() - ((ray_angle_range / (number_of_rays / 2)) * ray);\n turn = true;\n }\n\n float ray_angle = ((ray_angle_range / number_of_rays) * ray) + sprite.getRotation();\n\n for (float dist = 0; dist <= ray_range; dist += ray_step_size) {\n\n double tempx = (Math.cos(Math.toRadians(ray_angle)) * dist) + (start_point.x);\n double tempy = (Math.sin(Math.toRadians(ray_angle)) * dist) + (start_point.y);\n //check if there is a collision hull (other than self) at (tempx, tempy)\n for (CollisionObject collideable : collidables) {\n if (collideable.isShown() &&\n ((Obstacle) collideable).getSprite().getY() > sprite.getY() - 200 &&\n ((Obstacle) collideable).getSprite().getY() < sprite.getY() + 200 &&\n ((Obstacle) collideable).getSprite().getX() > sprite.getX() - 200 &&\n ((Obstacle) collideable).getSprite().getX() < sprite.getX() + 200)\n for (Shape2D bound : collideable.getBounds().getShapes()) {\n if (bound.contains((float) tempx, (float) tempy)) {\n // Determines which side the ai should turn to\n if (turn) {\n turn(-1);\n return;\n } else {\n turn(1);\n return;\n }\n\n }\n }\n\n }\n }\n }\n }", "public void setProjectileCount(int projectileCount) {\n\t\tthis.projectileCount = projectileCount;\n\t}", "private void addEnemyPowerUps() {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tint x = (int) (Math.random() * 10);\n\t\t\tint y = (int) (Math.random() * 10);\n\n\t\t\twhile (egrid[x][y] != 0) { // prevents overlaps\n\t\t\t\tx = (int) (Math.random() * 10);\n\t\t\t\ty = (int) (Math.random() * 10);\n\t\t\t}\n\n\t\t\tegrid[x][y] = 2;\n\t\t}\n\t}" ]
[ "0.6044503", "0.57883734", "0.5766132", "0.5607854", "0.5555612", "0.5519187", "0.5511871", "0.54100174", "0.5397725", "0.538987", "0.5385225", "0.5370265", "0.53646857", "0.53514856", "0.53468186", "0.5343243", "0.53394324", "0.5336323", "0.53195786", "0.53188884", "0.5310277", "0.5309138", "0.530913", "0.5301321", "0.5289763", "0.5283349", "0.5282981", "0.5274505", "0.52718455", "0.5264912", "0.5262302", "0.5253436", "0.52428776", "0.5236207", "0.5231303", "0.5222722", "0.5220393", "0.5202491", "0.51967204", "0.5194936", "0.51899016", "0.5188904", "0.51869315", "0.5176865", "0.51743716", "0.51522195", "0.514405", "0.51428103", "0.51406217", "0.5140276", "0.51314783", "0.51273924", "0.51260597", "0.51254714", "0.51144207", "0.5112285", "0.51108795", "0.5095602", "0.50948495", "0.5093449", "0.508858", "0.5081156", "0.5080262", "0.5079722", "0.5075104", "0.50720954", "0.5057994", "0.5056578", "0.50557727", "0.50509685", "0.50498915", "0.5047654", "0.5047449", "0.5039144", "0.5029638", "0.5027761", "0.50252295", "0.50246614", "0.50232244", "0.5016742", "0.5014712", "0.5014452", "0.5006108", "0.49950552", "0.4985275", "0.4985275", "0.4984562", "0.49823907", "0.498083", "0.49721575", "0.4971343", "0.49603406", "0.49566996", "0.4955051", "0.49542496", "0.49526104", "0.49487323", "0.4948226", "0.49461952", "0.49433354" ]
0.56003016
4
Test of loadItems method, of class VendingMachineDaoFileImpl.
@Test public void testLoadItemsExceptions() throws Exception { boolean testFailed = false; try { fillInventoryFileWithTestData(VALID); } catch (VendingMachinePersistenceException ex) { } try { dao.loadItems(); } catch (VendingMachinePersistenceException ex) { fail(); } try { fillInventoryFileWithTestData(FORMAT); } catch (VendingMachinePersistenceException ex) { } try { testFailed = true; dao.loadItems(); } catch (VendingMachinePersistenceException ex) { testFailed = false; } finally { if (testFailed) { fail(); } } try { fillInventoryFileWithTestData(INCOMPLETE); } catch (VendingMachinePersistenceException ex) { } try { testFailed = true; dao.loadItems(); } catch (VendingMachinePersistenceException ex) { testFailed = false; } finally { if (testFailed) { fail(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void loadItemsInternal();", "@Test\r\n\tpublic void loaderTest() {\r\n\t\tItem item = new Item();\r\n\t\tassertNotSame(item.getId(), 1);\r\n\t\ttry {\r\n\t\t\titem.loadById(1);\r\n\t\t\tassertEquals(item.getId(), 1);\r\n\t\t} catch (Exception e) {\r\n\t\t\tfail(\"Failed to load item id 1: Exception\");\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n public void loadItems(){\n Log.d(\"Presenter\",\"Loading Items\");\n mRepository.getItems(new DataSource.LoadItemsCallback() {\n @Override\n public void onItemsLoaded(List<Session> sessions) {\n Log.d(\"PRESENTER\",\"Loaded\");\n\n //mView.showItems(Items);\n }\n\n @Override\n public void onDataNotAvailable() {\n Log.d(\"PRESENTER\",\"Not Loaded\");\n }\n });\n }", "private void loadItems() {\n CheckItemsActivity context = this;\n makeRestGetRequest(String.format(Locale.getDefault(),\n RestClient.ITEMS_URL, checkId), (success, response) -> {\n if (!success) {\n Log.d(DEBUG_TAG, \"Load items fail\");\n Toast.makeText(context, LOAD_ITEMS_FAIL, Toast.LENGTH_SHORT).show();\n } else {\n try {\n items = ModelsBuilder.buildItemsFromJSON(response);\n // pass loaded items and categories to adapter and set adapter to Recycler View\n itemsListAdapter = new ItemsListAdapter(items, categories, context);\n recyclerView.setAdapter(itemsListAdapter);\n } catch (JSONException e) {\n Log.d(DEBUG_TAG, \"Load items parsing fail\");\n }\n }\n // set loading progress bar to invisible when loading is finished\n progressBar.setVisibility(View.INVISIBLE);\n });\n }", "public void getTestItems(){\n TestItemDAO itemsManager = DAOFactory.getTestItemDAO();\n //populate with values from the database\n if(!itemsManager.readAllTestItems(testItems)){\n //close the window due to read failure\n JOptionPane.showMessageDialog(rootPanel, \"Failed to read test items from database. Please check your internet connection and try again.\");\n System.exit(-1);\n }\n }", "@Override\n public List<Item> retrieveAllItems() throws VendingMachinePersistenceException {\n loadItemFile();\n List<Item> itemList = new ArrayList<>();\n for (Item currentItem: itemMap.values()) {\n itemList.add(currentItem);\n }\n\n return itemList;\n }", "public void loadItems() {\n\t\tArrayList<String> lines = readData();\n\t\tfor (int i = 1; i < lines.size(); i++) {\n\t\t\tString line = lines.get(i);\n\t\t\t\n\t\t\tString[] parts = line.split(\",\");\n\t\t\t\n//\t\t\tSystem.out.println(\"Name: \" + parts[0]);\n//\t\t\tSystem.out.println(\"Amount: \" + parts[1]);\n//\t\t\tSystem.out.println(\"Price: \" + parts[2]);\n//\t\t\tSystem.out.println(\"-------\");\n\t\t\t\n\t\t\tString name = parts[0].trim();\n\t\t\tint amount = Integer.parseInt(parts[1].trim());\n\t\t\tdouble price = Double.parseDouble(parts[2].trim());\n\t\t\t\n\t\t\tItem item = new Item(name, amount, price);\n\t\t\titemsInStock.add(item);\n\t\t}\n\t}", "private void loadItems() {\n try {\n if (ServerIdUtil.isServerId(memberId)) {\n if (ServerIdUtil.containsServerId(memberId)) {\n memberId = ServerIdUtil.getLocalId(memberId);\n } else {\n return;\n }\n }\n List<VideoReference> videoReferences = new Select().from(VideoReference.class).where(VideoReference_Table.userId.is(memberId)).orderBy(OrderBy.fromProperty(VideoReference_Table.date).descending()).queryList();\n List<String> videoIds = new ArrayList<>();\n for (VideoReference videoReference : videoReferences) {\n videoIds.add(videoReference.getId());\n }\n itemList = new Select().from(Video.class).where(Video_Table.id.in(videoIds)).orderBy(OrderBy.fromProperty(Video_Table.date).descending()).queryList();\n } catch (Throwable t) {\n itemList = new ArrayList<>();\n }\n }", "private void loadItem(Node item){\n\t\tprintStackTraceInvoke(loadMethod, item);\n\t}", "@Override\n\tpublic List<Item> loadItems(int start, int count) {\n\t\treturn null;\n\t}", "private void loadItem(String path) {\r\n assert (itemManager != null);\r\n \r\n try {\r\n Scanner sc = new Scanner(new File(path));\r\n while (sc.hasNext()) {\r\n int id = sc.nextInt();\r\n int x = sc.nextInt();\r\n int y = sc.nextInt();\r\n switch (id) {\r\n case 0: itemManager.addItem(Item.keyItem.createNew(x * Tile.TILEWIDTH, \r\n y * Tile.TILEHEIGHT)); \r\n break;\r\n case 1: itemManager.addItem(Item.candleItem.createNew(x * Tile.TILEWIDTH, \r\n y * Tile.TILEHEIGHT)); \r\n break;\r\n case 2: itemManager.addItem(Item.knifeItem.createNew(x * Tile.TILEWIDTH, \r\n y * Tile.TILEHEIGHT)); \r\n break;\r\n case 3: itemManager.addItem(Item.ghostAshItem.createNew(x * Tile.TILEWIDTH, \r\n y * Tile.TILEHEIGHT)); \r\n break;\r\n case 4: itemManager.addItem(Item.goldItem.createNew(x * Tile.TILEWIDTH, \r\n y * Tile.TILEHEIGHT)); \r\n break;\r\n default: itemManager.addItem(Item.ghostAshItem.createNew(x * Tile.TILEWIDTH, \r\n y * Tile.TILEHEIGHT)); \r\n break;\r\n }\r\n }\r\n sc.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void loadData () {\n // create an ObjectInputStream for the file we created before\n ObjectInputStream ois;\n try {\n ois = new ObjectInputStream(new FileInputStream(\"DB/Guest.ser\"));\n\n int noOfOrdRecords = ois.readInt();\n Guest.setMaxID(ois.readInt());\n System.out.println(\"GuestController: \" + noOfOrdRecords + \" Entries Loaded\");\n for (int i = 0; i < noOfOrdRecords; i++) {\n guestList.add((Guest) ois.readObject());\n //orderList.get(i).getTable().setAvailable(false);\n }\n } catch (IOException | ClassNotFoundException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }", "private void readItems() {\n }", "@BeforeClass\n\tpublic static void generatingItems() {\n\t\tfor (Item i : allItems) {\n\t\t\tif (i.getType().equals(\"spores engine\")) {\n\t\t\t\titem4 = i;\n\t\t\t}\n\t\t}\n\t\tltsTest = new LongTermStorage();\n\t\tltsTest1 = new LongTermStorage();\n\t}", "@Override\n public void loadData(final List<Integer> allCommerceItemIds) {\n if (allCommerceItemIds.size() == 0) {\n return;\n }\n int pos = 0;\n // initiates the loading of items and their price via REST. Since each item must\n // be loaded in a single request, this loop loads the items in chunks (otherwise\n // we might have too many requests at once)\n while (pos < allCommerceItemIds.size()) {\n try {\n Log.i(TAG, \"loaded items: \" + mDatabaseAccess.itemsDAO().selectItemCount());\n Log.i(TAG, \"loaded item prices: \" +\n mDatabaseAccess.itemsDAO().selectItemPriceCount());\n // creates a \",\" separated list of item IDs for the GET parameter\n String ids = RestHelper.splitIntToGetParamList(allCommerceItemIds,\n pos, ITEM_PROCESS_SIZE);\n // all prices to the \",\" separated ID list.\n List<Price> prices = mCommerceAccess.getPricesWithWifi(ids);\n\n processPrices(prices);\n pos += ITEM_PROCESS_SIZE;\n\n // to prevent too many request at once, wait every 1000 processed items\n if (pos % ITEM_PROCESS_WAIT_COUNT == 0) {\n waitMs(TOO_MANY_REQUEST_DELAY_MS);\n }\n } catch (ResponseException ex) {\n Log.e(TAG, \"An error has occurred while trying to load the commerce data from the\" +\n \" server side!\",\n ex);\n } catch (Exception ex) {\n Log.e(TAG, \"A general failure has occurred while trying to load commerce data.\",\n ex);\n }\n }\n }", "private void loadInventory(String fileName){\t\t\r\n\t\tList<String> list = new ArrayList<String>();\r\n\r\n\t\ttry (Stream<String> stream = Files.lines(Paths.get(fileName))) {\r\n\t\t\t//Convert it into a List\r\n\t\t\tlist = stream.collect(Collectors.toList());\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tfor(String itemList : list){\r\n\t\t\tString[] elements = itemList.split(\"--\");\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tswitch(elements[0].toUpperCase()){\r\n\t\t\t\t\tcase \"BURGER\":\r\n\t\t\t\t\t\t\tinventory.add(createBurger(elements));;\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\r\n\t\t\t\t\tcase \"SALAD\":\r\n\t\t\t\t\t\t\tinventory.add(createSalad(elements));;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"BEVERAGE\":\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tinventory.add(createBeverage(elements));;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"SIDE\":\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tinventory.add(createSide(elements));;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"DESSERT\":\r\n\t\t\t\t\t\t\tinventory.add(createDessert(elements));;\r\n\t\t\t\t\t\t\tbreak;\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}", "@Test\n public void testGetAllItems() throws Exception {\n Item firstItem = new Item(\"Snickers\");\n firstItem.setItemPrice(new BigDecimal(\"2.75\"));\n firstItem.setItemStock(10);\n\n Item secondItem = new Item(\"Kit-Kat\");\n secondItem.setItemPrice(new BigDecimal(\"3.00\"));\n secondItem.setItemStock(12);\n\n // ACT - add/get all items from the DAO\n testDao.addItem(firstItem.getItemName(), firstItem);\n testDao.addItem(secondItem.getItemName(), secondItem);\n\n List<Item> allItems = testDao.getAllItems();\n\n // Check in general\n assertNotNull(allItems, \"The list of items must not be null\");\n assertEquals(2, allItems.size(), \"Inventory should have two items\");\n\n // Check specifics\n assertTrue(testDao.getAllItems().contains(firstItem),\n \"The inventory shoudl include Snickers\");\n assertTrue(testDao.getAllItems().contains(secondItem),\n \"The inventory should include Kit-Kat\");\n // Need to include hashcose/equals/toString methods/additions to Item Class \n }", "private Runnable loadItems() {\n File file = new File(getFilesDir(), \"data.txt\");\n\n try {\n // Clears and adds appropriate items\n this._items.clear();\n this._items.addAll(FileUtils.readLines(file, Charset.defaultCharset()));\n } catch (IOException e) {\n Log.e(\"MainActivity\", \"Error reading items\", e);\n }\n\n // Return a callback function for saving items\n return () -> {\n try {\n FileUtils.writeLines(file, this._items);\n } catch (IOException e) {\n Log.e(\"MainActivity\", \"Error writing items\", e);\n }\n };\n }", "private void loadStartingInventory(){\n this.shelfList = floor.getShelf();\n Iterator<String> i = items.iterator();\n for (Shelf s : shelfList){\n while (s.hasFreeSpace()){\n s.addItem(i.next(), 1);\n }\n }\n }", "private void loadItemList() {\n this.presenter.initialize();\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static ArrayList<Item> loadItems(String filename)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(new FileInputStream(new File(filename)));\r\n\t\t\tArrayList<Item> items = (ArrayList<Item>)ois.readObject();\r\n\t\t\tois.close();\r\n\t\t\tSystem.out.println(\"Loaded items from disk: \" + items.size());\r\n\t\t\treturn items;\r\n\t\t} \r\n\t\tcatch (FileNotFoundException e2) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"No locally saved \" + filename + \" - creating a new one: \" + e2.getMessage());\r\n\t\t}\r\n\t\tcatch (IOException e2) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"IO Error: \" + e2.getMessage());\r\n\t\t} \r\n\t\tcatch (ClassNotFoundException e1) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"This copy of the program is missing some files: \" + e1.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private void loadDataFromMemory(String filename){\n shoppingList.clear();\n new ReadFromMemoryAsync(filename, getCurrentContext(), new ReadFromMemoryAsync.AsyncResponse(){\n\n @Override\n public void processFinish(List<ShoppingItem> output) {\n shoppingList.addAll(output);\n sortItems();\n }\n }).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n// for (ShoppingItem item: items) {\n// shoppingList.add(item);\n// }\n// sortItems();\n }", "@Override\n\tpublic void load() {\n\t\tsuper.load();\n\t\t\n\t\tUriAdapter adapter = new UriAdapter(config);\n\t\tbnetMap = loadBnetMap(adapter, config.getStoreUri(), getName());\n\t\tadapter.close();\n\t\t\n\t\titemIds = bnetMap.keySet();\n\t}", "@Test\r\n\tpublic void itemRetTest() {\r\n\t\tItem item = new Item();\r\n\t\ttry {\r\n\t\t\tint k = 0;\r\n\t\t\tk = item.getNumberOfItems(SELLER);\r\n\t\t\tassertNotSame(k, 0);\r\n\t\t\tItem tempSet[] = item.getAllForUser(SELLER);\r\n\t\t\tassertEquals(tempSet.length, k);\t\t\t// Retrieves correct number of items\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to get number of items for seller id \" + SELLER + \": SQLException\");\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tint k = 0;\r\n\t\t\tk = item.getNumberOfItemsInOrder(ORDER);\r\n\t\t\tassertNotSame(k, 0);\r\n\t\t\tItem tempSet[] = item.getAllByOrder(ORDER);\r\n\t\t\tassertEquals(tempSet.length, k);\t\t\t// Retrieves correct number of items\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to get number of items for order id \" + ORDER + \": SQLException\");\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tItem tempSet[] = item.getAllByOrder(ORDER);\r\n\t\t\tfor (int i = 0; i < tempSet.length; i++) {\r\n\t\t\t\tassertNotNull(tempSet[i]);\r\n\t\t\t\tassertNotNull(tempSet[i].getId());\r\n\t\t\t\tassertNotSame(tempSet[i].getId(), 0);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to load items for order id \" + ORDER + \": SQLException\");\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t}", "void loadProducts(String filename);", "@Override\r\n\tpublic void loadInfoFromMod(ModInfo modInfo, int startIndex, int endIndex, ArrayList<String> file, String pfad) {\n\t\tItem modul = new Item(pfad);\r\n\t\tmodul.loadInfo(modInfo, modul, startIndex, endIndex, file, pfad);\r\n\t\tmodInfo.entityTypeList.get(type_).put(modul.entityInfo.get(name), modul);\r\n\t\t//Logger.logInfo(\"Item\", \"loadInfoFromMod\", \"LoadedItem\", modInfo.entityTypeList.get(type_).keySet().toString());\r\n\t}", "@Override\n\tpublic void load() throws RemoteException {\n\t\tsuper.load();\n\t\t\n\t\tUriAdapter adapter = new UriAdapter(config);\n\t\tbnetMap = loadBnetMap(adapter, config.getStoreUri(), getName());\n\t\tadapter.close();\n\t\t\n\t\titemIds = bnetMap.keySet();\n\t}", "@Test\n public void testGetAllProducts() throws FileStorageException {\n List<Product> products = dao.getAllProducts();\n \n assertEquals(15, products.size());\n }", "private void loadLists() {\n }", "static private void loadGame() {\n ArrayList loadData = data.loadGame();\n\n //inventory\n inventory = new Inventory();\n LinkedTreeMap saveMap = (LinkedTreeMap) loadData.get(0);\n if (!saveMap.isEmpty()) {\n LinkedTreeMap inventoryItemWeight = (LinkedTreeMap) saveMap.get(\"itemWeight\");\n LinkedTreeMap inventoryItemQuantity = (LinkedTreeMap) saveMap.get(\"inventory\");\n String inventoryItemQuantityString = inventoryItemQuantity.toString();\n inventoryItemQuantityString = removeCrapCharsFromString(inventoryItemQuantityString);\n String itemListString = inventoryItemWeight.toString();\n itemListString = removeCrapCharsFromString(itemListString);\n\n for (int i = 0; i < inventoryItemWeight.size(); i++) {\n String itemSet;\n double itemQuantity;\n if (itemListString.contains(\",\")) {\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.indexOf(\",\")));\n inventoryItemQuantityString = inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\",\") + 1, inventoryItemQuantityString.length());\n itemSet = itemListString.substring(0, itemListString.indexOf(\",\"));\n itemListString = itemListString.substring(itemListString.indexOf(\",\") + 1, itemListString.length());\n } else {\n itemSet = itemListString;\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.length()));\n }\n String itemName = itemSet.substring(0, itemSet.indexOf(\"=\"));\n int itemWeight = Double.valueOf(itemSet.substring(itemSet.indexOf(\"=\") + 1, itemSet.length())).intValue();\n while (itemQuantity > 0) {\n Item item = new Item(itemName, \"\", itemWeight, true);\n inventory.addItemInInventory(item);\n itemQuantity--;\n }\n }\n }\n\n //itemList\n itemLocation = new ItemLocation();\n saveMap = (LinkedTreeMap) loadData.get(1);\n if (!saveMap.isEmpty()) {\n System.out.println(saveMap.keySet());\n LinkedTreeMap itemLocationOnMap = (LinkedTreeMap) saveMap;\n String rooms = saveMap.keySet().toString();\n rooms = removeCrapCharsFromString(rooms);\n for (int j = 0; j <= itemLocationOnMap.size() - 1; j++) {\n String itemToAdd;\n\n if (rooms.contains(\",\")) {\n itemToAdd = rooms.substring(0, rooms.indexOf(\",\"));\n } else {\n itemToAdd = rooms;\n }\n\n rooms = rooms.substring(rooms.indexOf(\",\") + 1, rooms.length());\n ArrayList itemInRoom = (ArrayList) itemLocationOnMap.get(itemToAdd);\n for (int i = 0; i < itemInRoom.size(); i++) {\n Item itemLocationToAdd;\n LinkedTreeMap itemT = (LinkedTreeMap) itemInRoom.get(i);\n String itemName = itemT.get(\"name\").toString();\n String itemDesc = \"\";\n int itemWeight = (int) Double.parseDouble(itemT.get(\"weight\").toString());\n boolean itemUseable = Boolean.getBoolean(itemT.get(\"useable\").toString());\n\n itemLocationToAdd = new PickableItem(itemName, itemDesc, itemWeight, itemUseable);\n itemLocation.addItem(itemToAdd, itemLocationToAdd);\n\n }\n }\n //set room\n String spawnRoom = loadData.get(3).toString();\n currentRoom = getRoomFromName(spawnRoom);\n }\n }", "@Test\r\n\tpublic void itemLiveTest() {\r\n\t\tItem item = new Item();\r\n\t\titem.setDescription(\"word\");\r\n\t\titem.setType(\"type\");\r\n\t\titem.setName(\"name\");\r\n\t\titem.setSellerId(SELLER);\r\n\t\titem.setCount(NUMBER);\r\n\t\titem.setPrice(FLOATNUMBER);\r\n\t\titem.setPicture(\"picture\");\r\n\t\ttry {\r\n\t\t\titem.createItem();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to create new item: SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\t// load newly created item\r\n\t\tItem itemNew = new Item();\t\t\r\n\t\tassertNotSame(itemNew.getId(), item.getId());\r\n\t\ttry {\r\n\t\t\titemNew.loadById(item.getId());\r\n\t\t\tassertEquals(itemNew.getId(), item.getId()); // item actually loaded\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to load item id \"+item.getId()+\": SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\titemNew.setName(\"another name\");\r\n\t\ttry {\r\n\t\t\titemNew.updateItem();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to update item id \"+itemNew.getId()+\": SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\t// load updated item\r\n\t\titem = new Item();\t\t\r\n\t\ttry {\r\n\t\t\titem.loadById(itemNew.getId());\r\n\t\t\tassertEquals(item.getId(), itemNew.getId()); // item actually loaded\r\n\t\t\tassertEquals(itemNew.getName(), \"another name\"); // update has been saved\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to load updated item id \"+itemNew.getId()+\": SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\titem.deleteItem(true);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to delete item id \"+item.getId()+\": SQLException\");\r\n\t\t}\t\t\r\n\t}", "@Override\n public void loadFoodItems(String filePath) {\n file = new File(filePath);\n \n // Check the file existence\n try {\n scnr = new Scanner(file);\n } catch (FileNotFoundException e1) {\n e1.printStackTrace();\n System.out.println(\"no such file\");\n }\n \n // Read the file and save the food info to food class\n try {\n while (scnr.hasNextLine()) {\n \t\n // read line by line\n String text = scnr.nextLine().trim();\n \n // if line is not empty\n \n // load the file to memory\n if (!text.isEmpty()) {\n \t\n String[] objects = text.split(\",\");\n \n //skip the data with wrong format\n if(objects.length != 12) continue;\n String id = objects[0];\n String name = objects[1];\n FoodItem food = new FoodItem(id, name);\n for(int i = 0; i < 5; i++) {\n \tfood.addNutrient(nutrition[i], Double.parseDouble(objects[2*(i+1)+1]));\n }\n foodItemList.add(food);\n \n }\n }\n \n // add the food item to nutrition BPTree\n \n Iterator<FoodItem> foodItr = foodItemList.iterator();\n while(foodItr.hasNext()) {\n \tIterator<BPTree<Double, FoodItem>> treeItr = nutriTree.iterator();\n \tFoodItem tempFood = foodItr.next();\n \tint i = 0;\n while(treeItr.hasNext()) {\n \ttreeItr.next().insert(tempFood.getNutrientValue(nutrition[i]), tempFood);\n \ti ++;\n }\n }\n \n \n scnr.close();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n System.out.println(\"Error in food data processing\");\n }\n }", "@Test\n void load() {\n Assert.assertEquals(r1,arrayStorage.load(r1.getUuid()));\n Assert.assertEquals(r2,arrayStorage.load(r2.getUuid()));\n\n }", "public void load2() throws Exception {\n String query = \"select * from catalog_snapshot where item_id = \" + item_id + \" and facility_id = '\" + facility_id + \"'\";\n query += \" and fac_item_id = '\" + this.fac_item_id + \"'\";\n DBResultSet dbrs = null;\n ResultSet rs = null;\n try {\n dbrs = db.doQuery(query);\n rs = dbrs.getResultSet();\n if (rs.next()) {\n setItemId( (int) rs.getInt(\"ITEM_ID\"));\n setFacItemId(rs.getString(\"FAC_ITEM_ID\"));\n setMaterialDesc(rs.getString(\"MATERIAL_DESC\"));\n setGrade(rs.getString(\"GRADE\"));\n setMfgDesc(rs.getString(\"MFG_DESC\"));\n setPartSize( (float) rs.getFloat(\"PART_SIZE\"));\n setSizeUnit(rs.getString(\"SIZE_UNIT\"));\n setPkgStyle(rs.getString(\"PKG_STYLE\"));\n setType(rs.getString(\"TYPE\"));\n setPrice(BothHelpObjs.makeBlankFromNull(rs.getString(\"PRICE\")));\n setShelfLife( (float) rs.getFloat(\"SHELF_LIFE\"));\n setShelfLifeUnit(rs.getString(\"SHELF_LIFE_UNIT\"));\n setUseage(rs.getString(\"USEAGE\"));\n setUseageUnit(rs.getString(\"USEAGE_UNIT\"));\n setApprovalStatus(rs.getString(\"APPROVAL_STATUS\"));\n setPersonnelId( (int) rs.getInt(\"PERSONNEL_ID\"));\n setUserGroupId(rs.getString(\"USER_GROUP_ID\"));\n setApplication(rs.getString(\"APPLICATION\"));\n setFacilityId(rs.getString(\"FACILITY_ID\"));\n setMsdsOn(rs.getString(\"MSDS_ON_LINE\"));\n setSpecOn(rs.getString(\"SPEC_ON_LINE\"));\n setMatId( (int) rs.getInt(\"MATERIAL_ID\"));\n setSpecId(rs.getString(\"SPEC_ID\"));\n setMfgPartNum(rs.getString(\"MFG_PART_NO\"));\n\n //trong 3-27-01\n setCaseQty(BothHelpObjs.makeZeroFromNull(rs.getString(\"CASE_QTY\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n HelpObjs.monitor(1,\n \"Error object(\" + this.getClass().getName() + \"): \" + e.getMessage(), null);\n throw e;\n } finally {\n dbrs.close();\n }\n return;\n }", "public void setLoadItems(String borrowedFileName) \n\t{\n\t\trecordCount = RESET_VALUE;\n\n\t\ttry \n\t\t{\n\t\t\tScanner infile = new Scanner(new FileInputStream(borrowedFileName));\n\n\t\t\twhile(infile.hasNext() == true && recordCount < MAX_ITEMS) \n\t\t\t{\n\t\t\t\titemIDs[recordCount] = infile.nextInt();\n\t\t\t\titemNames[recordCount] = infile.next(); \n\t\t\t\titemPrices[recordCount] = infile.nextDouble(); \n\t\t\t\tinStockCounts[recordCount] = infile.nextInt();\n\t\t\t\trecordCount++;\n\t\t\t}\n\n\t\t\tinfile.close();\n\n\t\t\t//sort parallel arrays by itemID\n\t\t\tsetBubbleSort();\n\n\t\t}//END try\n\n\t\tcatch(IOException ex) \n\t\t{\n\t\t\trecordCount = NOT_FOUND;\n\t\t}\n\t}", "protected abstract void loadData();", "@Test\n void loadData() {\n }", "private void readFile() {\n try (BufferedReader br = new BufferedReader(new FileReader(\"../CS2820/src/production/StartingInventory.txt\"))) {\n String line = br.readLine();\n while (line != null) {\n line = br.readLine();\n this.items.add(line);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Test\n public void contextLoads() {\n\n ServicosProdutos inserir = new ServicosProdutos() {\n @Override\n public ItemProduto inserir() {\n return super.inserir();\n }\n };\n\n ServicosProdutos listar = new ServicosProdutos() {\n @Override\n public ItemProduto listar() {\n return super.listar();\n }\n };\n\n\n\n ServicosProdutos alterar = new ServicosProdutos() {\n @Override\n public ItemProduto alterar() {\n return super.alterar();\n }\n };\n\n ServicosProdutos deletar = new ServicosProdutos() {\n @Override\n public ItemProduto deletar() {\n return super.deletar();\n }\n };\n\n\n\n }", "private void loadLists() {\n loadSavedCourses();\n loadSavedSchedules();\n }", "public void testLoadOrder() throws Exception {\n }", "private void populateItems() {\n \t try {\n \t File myObj = new File(\"items.txt\");\n \t Scanner myReader = new Scanner(myObj);\n \t while (myReader.hasNextLine()) {\n\t \t String data = myReader.nextLine();\n\t \t String[] variables = data.split(\",\");\n\t \t int price = (int) Math.floor(Math.random() * 100); \n\t \t \n\t \t itemList += variables[0] + \",\"+ variables[1] +\",\" + \"0\" + \", \"+ \",\"+price + \",\";\n\t \t Item x = new Item(variables[0], 0, \"\", price, variables[1]);\n\t \t items.add(x);\n \t }\n \t myReader.close();\n \t } catch (FileNotFoundException e) {\n \t System.out.println(\"An error occurred.\");\n \t e.printStackTrace();\n \t }\n\t\t\n\t}", "@Test\n public void getItem() {\n Item item = new Item();\n item.setName(\"Drill\");\n item.setDescription(\"Power Tool\");\n item.setDaily_rate(new BigDecimal(\"24.99\"));\n item = service.saveItem(item);\n\n // Copy the Item added to the mock database using the Item API method\n Item itemCopy = service.findItem(item.getItem_id());\n\n // Test the getItem() API method\n verify(itemDao, times(1)).getItem(item.getItem_id());\n TestCase.assertEquals(itemCopy, item);\n }", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/A_.XML\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"\");\n ArrayList<Object> arrayList0 = new ArrayList<Object>();\n FileInputStream fileInputStream0 = fileUtil0.fetchAccessories(\"\", arrayList0);\n assertEquals(0, fileInputStream0.available());\n }", "@Test\n public void getAllItem() {\n Item item1 = new Item();\n item1.setName(\"Drill\");\n item1.setDescription(\"Power Tool\");\n item1.setDaily_rate(new BigDecimal(\"24.99\"));\n item1 = service.saveItem(item1);\n\n // Add an Item to the mock database using the Item API method (item2)\n Item item2 = new Item();\n item2.setName(\"Screwdriver\");\n item2.setDescription(\"Hand Tool\");\n item2.setDaily_rate(new BigDecimal(\"4.99\"));\n item2 = service.saveItem(item2);\n\n // Add all the Item's in the mock database to a list of Items using the Item API method\n List<Item> itemList = service.findAllItems();\n\n // Test the getAllItem() API method\n TestCase.assertEquals(2, itemList.size());\n TestCase.assertEquals(item1, itemList.get(0));\n TestCase.assertEquals(item2, itemList.get(1));\n }", "protected void checkNotExistingItems() {\n Item actualItem;\n //non existing items\n actualItem = mDaoToTest.getItem(mContext, -123423);\n assertNull(\"Item not null\", actualItem);\n actualItem = mDaoToTest.getItem(mContext, RainbowBaseContentProviderDao.NOT_FOUND);\n assertNull(\"Item not null\", actualItem);\n actualItem = mDaoToTest.getItem(mContext, 345823);\n assertNull(\"Item not null\", actualItem);\n }", "@Test\n\tpublic void testLoadOrdersFromFile() {\n\t\tOrderRecord or = new OrderRecord();\n\t\tor.loadTitlesFromFile(orderRecordTitles);\n\t\tor.loadOrdersFromFile(orderRecordFile);\n\t\tassertEquals(or.getFirst(),3); // the first column that is a product title\n\t\tassertEquals(or.getLast(),24); // the last column that is a product title\n\t\tfor(int i = 3; i <= 24; i++) { // if a column title is within this range, it is a produc title\n\t\t\tif(!or.isProductTitle(i))\n\t\t\t\tfail();\n\t\t}\n\t\tassertEquals(or.getProductTitles().size(), ptCount);\n\t\ttry {\n\t\tassertEquals(or.getShortOrderInfo().length, 800);\n\t\t}catch(IOException ioe ) {\n\t\t\tthrow new IllegalArgumentException(ioe.getMessage());\n\t\t}catch(NullPointerException npe ) {\n\t\t\tthrow new NullPointerException(npe.getMessage());\n\t\t}\n\t\t// order list is empty before update method is called and contains 7 orders after method completes\n\t\tassertEquals(or.getOrderRecordList().size(),6);\n\t\tassertEquals(or.getStudyList().size(),2);\n\t\tassertEquals(or.getSiteList().size(),6);\n\t\t\n\t\tif(!or.getStudyList().get(0).equals(study006155))\n\t\t\tfail();\n\t\tif(!or.getStudyList().get(1).equals(study145986))\n\t\t\tfail();\n\t\t\n\t\tif(!or.getSiteList().get(1).equals(site5007))\n\t\t\tfail();\n\t\tif(!or.getSiteList().get(2).equals(site5008))\n\t\t\tfail();\n\t\tif(!or.getSiteList().get(5).equals(site5018))\n\t\t\tfail();\n\t\tif(or.getOrderRecordList().get(0).getNumber() != one )\n\t\t\tfail();\n\t\tif(or.getOrderRecordList().get(2).getNumber() != three )\n\t\t\tfail();\n\t\tif(or.getOrderRecordList().get(5).getNumber() != six )\n\t\t\tfail();\n\t\t\n\t\t// create new order record with more orders and check study list\n\t\tOrderRecord or2 = new OrderRecord();\n\t\tor2.loadTitlesFromFile(orderRecordTitles);\n\t\tor2.loadOrdersFromFile(moreOrderRecords);\n\t\t\n\t\tif(!or2.getStudyList().get(0).equals(study006155))\n\t\t\tfail();\n\t\tif(!or2.getStudyList().get(1).equals(study145986))\n\t\t\tfail();\n\t\tif(!or2.getStudyList().get(2).equals(study006156))\n\t\t\tfail();\n\t\tif(!or2.getStudyList().get(7).equals(\"006186\"))\n\t\t\tfail();\n\t\tif(!or2.getSiteList().get(0).equals(\"5002\") || !or2.getSiteList().get(1).equals(\"5007\") || !or2.getSiteList().get(2).equals(\"5008\"))\n\t\t\tfail();\n\t\tif(!or2.getSiteList().get(10).equals(\"2352\") || !or2.getSiteList().get(11).equals(\"2353\") || !or2.getSiteList().get(12).equals(\"2354\"))\n\t\t\tfail();\n\t\tif(!or2.getSiteList().get(23).equals(\"2034\") || !or2.getSiteList().get(24).equals(\"SHP\") )\n\t\t\tfail();\n\t\tif(!or2.getSiteList().get(92).equals(\"2539\") || !or2.getSiteList().get(93).equals(\"5017\") || !or2.getSiteList().get(94).equals(\"2211\") ||\n\t\t\t\t!or2.getSiteList().get(97).equals(\"2533\") || !or2.getSiteList().get(98).equals(\"2502\") || !or2.getSiteList().get(99).equals(\"5053\")\t)\n\t\t\tfail();\n\t\t\n\t\t\n\t\tif(!or2.getOrderRecordList().get(528).getPo().equals(\"17004101 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(529).getPo().equals(\"17004102 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(530).getPo().equals(\"17004103 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(531).getPo().equals(\"17004539 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(532).getPo().equals(\"18000008 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(533).getPo().equals(\"18000009 OD\")) fail();\n\t\tif(!or2.getOrderRecordList().get(534).getPo().equals(\"18000027 OD\")) fail();\n\t\t\n\t\tif(!or2.getOrderRecordList().get(442).getCity().equals(\"Tokyo\")) fail();\n\t\tif(!or2.getOrderRecordList().get(462).getCity().equals(\"Oklahoma City\")) fail();\n\t\tif(!or2.getOrderRecordList().get(246).getCity().equals(\"Jerez de La Frontera\")) fail();\n\t\tif(!or2.getOrderRecordList().get(248).getCity().equals(\"Salamanca, Castilla y Leon\")) fail();\n\t\tif(!or2.getOrderRecordList().get(43).getCity().equals(\"Milano\")) fail();\n\t\tif(!or2.getOrderRecordList().get(45).getCity().equals(\"Winston Salem\")) fail();\n\t\tif(!or2.getOrderRecordList().get(73).getCity().equals(\"Landsberg\")) fail();\n\t\tif(!or2.getOrderRecordList().get(530).getCity().equals(\"Tampa\")) fail();\n\t\t\n\t}", "@Test\n public void importTest1() {\n isl.exportSP();\n SharedPreferences sp = appContext.getSharedPreferences(spName, Context.MODE_PRIVATE);\n assertEquals(5, sp.getInt(\"nr\", 0));\n IngredientList isl2 = new IngredientList(sp, new TextFileReader(appContext)); //constructor automatically imports\n\n //check a random part of an ingredient present\n assertEquals(\"kruiden\", ((Ingredient) isl2.get(1)).category);\n\n //check if ingredient 5 is present correctly\n assertEquals(\"aardappelen\", isl2.get(4).name);\n assertEquals(\"geen\", ((Ingredient) isl2.get(4)).category);\n assertEquals(5, ((Ingredient) isl2.get(4)).amountNeed, 0);\n assertEquals(1, ((Ingredient) isl2.get(4)).amountHave, 0);\n assertEquals(Unit.NONE, ((Ingredient) isl2.get(4)).unit);\n\n //test text file import\n assertEquals(\"leek\", isl2.get(10).name);\n }", "protected void loadData()\n {\n }", "@Test\n public void testLoad() {\n System.out.println(\"load\");\n PubMedInitialCollection instance = PubMedInitialCollection.get();\n\n Collection<OpenAccessPaper> resultC = instance.getMyPapers();\n int result = resultC.size();\n int expResult = 40;\n assertEquals(expResult, result);\n\n }", "@Test\n public void loadJSONData() {\n listPresenter.loadData();\n\n // Verify json Data gets loaded\n verify(listServices).loadData();\n\n // Attempt to pass the data back to the view\n listPresenter.updateView(teamMemberList);\n\n // Verify view attempts to update\n verify(mainListView).updateList(teamMemberList);\n }", "@Test\n public void testGenerateWorkItems() {\n\n ArrayList<Integer> lFileIdx = new ArrayList<>( Arrays.asList( 10, 20, 30, 37 ) );\n List<String> lExpectedWorkItemKeys = new ArrayList<String>();\n\n iBulkLoadDataService.generateWorkItems( lFileIdx, WAREHOUSE_STOCK_LEVEL, iFileImportKey );\n\n DataSetArgument lArgs = new DataSetArgument();\n lArgs.add( \"type\", WORK_TYPE );\n QuerySet lQs = QuerySetFactory.getInstance().executeQuery( \"utl_work_item\", lArgs, \"data\" );\n\n // assert whether the no of work items created for particular data set is correct.\n assertEquals( \"Number of work items\", 4, lQs.getRowCount() );\n\n while ( lQs.next() ) {\n lExpectedWorkItemKeys.add( lQs.getString( \"data\" ) );\n }\n\n int lStartingIdx = 1;\n String lActualWorkItemKey = null;\n\n for ( int j = 0; j < lFileIdx.size(); j++ ) {\n\n lActualWorkItemKey = new MxKeyBuilder( iFileImportKey, WAREHOUSE_STOCK_LEVEL, lStartingIdx,\n lFileIdx.get( j ) ).build().toValueString();\n\n // assert whether the created work items are in the correct format to excute.\n assertEquals( lExpectedWorkItemKeys.get( j ), lActualWorkItemKey );\n lStartingIdx = lFileIdx.get( j ) + 1;\n }\n\n }", "@Test\n // Test Load\n public void loadTest() {\n ProjectMgr pmNew = getPmNameFalseLoad();\n try {\n pmNew.load(\"not-gunna-be-a-file\");\n Assertions.fail(\"An io exception should be thrown. This line should not be reached\");\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n\n }\n\n // Load project\n ProjectMgr pmLoad = getPmNameTrueLoadActualProject();\n try {\n pmLoad.load(\"not-gunna-be-a-file\");\n Assertions.fail(\"An io exception should be thrown. This line should not be reached\");\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n\n }\n\n // TODO: ParserConfigurationExceptin and SAXException not tested\n }", "public void loadFromDatabase(){\r\n /**\r\n * Open the file streams to the three files\r\n * Recover the state of data structures\r\n * Close the file streams\r\n */\r\n\r\n try{\r\n //Recover the state of unfinished set from unfinished.dat\r\n unfinishedFileInputStream = new FileInputStream(UNFINISHED_FILE_PATH);\r\n unfinishedSetInputStream = new ObjectInputStream(unfinishedFileInputStream);\r\n unfinished = (Set<Task>)unfinishedSetInputStream.readObject();\r\n unfinishedSetInputStream.close();\r\n unfinishedFileInputStream.close();\r\n\r\n //Recover the state of finished list from finished.dat\r\n finishedFileInputStream = new FileInputStream(FINISHED_FILE_PATH);\r\n finishedListInputStream = new ObjectInputStream(finishedFileInputStream);\r\n finished = (ArrayList<Task>)finishedListInputStream.readObject();\r\n finishedListInputStream.close();\r\n finishedFileInputStream.close();\r\n\r\n //Recover the state of activities list from activities.dat\r\n activitiesFileInputStream = new FileInputStream(ACTIVITIES_FILE_PATH);\r\n activitiesListInputStream = new ObjectInputStream(activitiesFileInputStream);\r\n activities = (ArrayList<Activity>)activitiesListInputStream.readObject();\r\n activitiesListInputStream.close();\r\n activitiesFileInputStream.close();\r\n\r\n generateWeeklySchedule();\r\n }\r\n catch(Exception e){\r\n System.out.println(e.getMessage());\r\n }\r\n }", "@Test\n\tpublic void testLoadEach() {\n\t\tCollection<QuestForUser> quests = \n\t\t\tqfuRepo.findByUserIdAndAll(\n\t\t\t\tuserId,\n\t\t\t\tnew Director<QuestForUserRepository.QuestForUserConditionBuilder>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void apply(QuestForUserConditionBuilder builder) {\n\t\t\t\t\t\tbuilder.complete(new Director<IBooleanConditionBuilder>() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void apply(IBooleanConditionBuilder builder) {\n\t\t\t\t\t\t\t\tbuilder.isTrue();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}).questId(new Director<IIntConditionBuilder>() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void apply(IIntConditionBuilder builder) {\n\t\t\t\t\t\t\t\tbuilder.inNumberCollection(questIds);\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\tlog.info(\"Found {} quests\", quests.size());\n\t\tAssert.assertTrue(\"Found all quests\", quests.size() == questIds.size());\n\t}", "@Test\n public void testGetVmItems() {\n System.out.println(\"getVmItems\");\n MainWindow1 instance = new MainWindow1();\n HashMap<String, VM> expResult = null;\n HashMap<String, VM> result = instance.getVmItems();\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 }", "@Test\r\n\tpublic void TestgetAllFoodItem() {\n\t\tassertNotNull(\"Test if there is valid food list to get food item\", foodList);\r\n\r\n\t\t// the food list is not empty so can view food items.\r\n\t\tfoodList.add(f1);\r\n\t\tC206_CaseStudy.getAllFoodItem(foodList);\r\n\t\tassertFalse(\"Test that if the food list is not empty so can view food\", foodList.isEmpty());\r\n\r\n\t\t// Continue from step 2, test that the size of the food list is 1 and is not\r\n\t\t// empty.\r\n\t\tassertEquals(\"Test that food list size is 1\", 1, foodList.size());\r\n\t\tassertFalse(\"Test that the food list is not empty\", foodList.isEmpty());\r\n\t}", "public abstract void loadData();", "public abstract void loadData();", "private void loadInv() {\n\t\titem = Main.inventory.business.getAllBaked();\n\t\tString test = \"ID, Name, Amount, Price\\n\";\n\t\t//formatting for string to load into the screen\n\t\tfor(int i=0 ; i< item.size() ; i++) {\n\t\t\ttest += (i+1) + \" \" + item.get(i).getName() +\", \" \n\t\t\t\t\t+ item.get(i).getQuantity() + \n\t\t\t\t\t\", $\"+ Main.inventory.business.getItemCost(item.get(i).getName()) +\"\\n\";\n\t\t}\n\t\tthis.inv.setText(test);\n\t}", "public void loadProducts() throws RetailException {\n\t\tObjectMapper objectMapper = new ObjectMapper();\n\t\ttry {\n\t\t\tif (!dataLoadedIndicator) {\n\t\t\t\tproductData = Collections.unmodifiableMap((Map<String, Product>) objectMapper.readValue(\n\t\t\t\t\t\tThread.currentThread().getContextClassLoader().getResourceAsStream(\"products.json\"),\n\t\t\t\t\t\tnew TypeReference<HashMap<String, Product>>() {\n\t\t\t\t\t\t}));\n\t\t\t\t// load properties file\n\t\t\t\tsalesTaxConfig = new Properties();\n\t\t\t\tsalesTaxConfig.load(Thread.currentThread().getContextClassLoader()\n\t\t\t\t\t\t.getResourceAsStream(\"sales_tax_entries.properties\"));\n\t\t\t\tdataLoadedIndicator = true;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"There was an exception trying to upoad product data {}\", e);\n\t\t\tthrow new RetailException(ErrorCodes.ERR_PRODUCT_DATA_LOAD_ERROR);\n\t\t}\n\t}", "@Test\n public void testLoadTagsFromStorage() throws Exception {\n // We add tags then clear all the datastructures\n getTagManager().addTag(tag1);\n getTagManager().addTag(tag2);\n getTagManager().addTag(tag3);\n getTagManager().addTag(tag4);\n getTagManager().addTag(tag5);\n getTagManager().addTag(tag6);\n Set<DeviceTag> tSet = getTagManager().getTags();\n assertTrue(tSet.size() == 6);\n getTagManager().clearTagsFromMemory();\n tSet = getTagManager().getTags();\n assertTrue(tSet.size() == 0);\n getTagManager().loadTagsFromStorage();\n tSet = getTagManager().getTags();\n assertTrue(tSet.size() == 6);\n }", "@Test\n public void testLoad() {\n List<User> result = userStore.load();\n\n assertEquals(3, result.size());\n\n assertEquals(\"Claire\", result.get(0).getUserId());\n assertEquals(\"Claire55\", result.get(0).getPassword());\n\n assertEquals(\"Todd\", result.get(1).getUserId());\n assertEquals(\"Todd34\", result.get(1).getPassword());\n }", "public LoadRestItem(int fno,String fname,int masterno,String mastername,int itemCode,String itemName,double dUnitPrice,double dTaxPrice,\n int dtaxClass,double mUnitPrice,double mTaxPrice,int mTaxClass,int currencyId,int subMenu){\n this.familyNno = fno;\n this.familyName = fname;\n this.masterNo = masterno;\n this.masterName = mastername;\n this.itemCode = itemCode;\n this.itemName = itemName;\n this.dUnitPrice = dUnitPrice;\n this.dTaxPrice = dTaxPrice;\n this.dtaxClass = dtaxClass;\n this.mUnitPrice = mUnitPrice;\n this.mTaxPrice = mTaxPrice;\n this.mTaxClass = mTaxClass; \n this.currencyId = currencyId;\n this.subMenu = subMenu;\n }", "public HashMap<String, Item> loadItems() {\n HashMap<String, Item> items = null;\n Gson gson = new Gson();\n try {\n BufferedReader reader = new BufferedReader(new FileReader(DEPOSITED_PATH));\n Type type = new TypeToken<HashMap<String, Item>>() {\n }.getType();\n items = gson.fromJson(reader, type);\n } catch (FileNotFoundException fnfe) {\n System.out.println(fnfe);\n }\n return items;\n }", "public void loadItem() {\n if (items == maxLoad) {\n throw new IllegalArgumentException(\"The dishwasher is full\");\n } else if (dishwasherState != State.ON) {\n throw new InvalidStateException(\"You cannot load dishes while the dishwasher is running/unloading\");\n }\n items++;\n }", "@Test\n public void testGetListItems() {\n System.out.println(\"getListItems\");\n DataModel instance = new DataModel();\n List expResult = null;\n List result = instance.getListItems();\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 }", "private void populateItems (ObservableList<Item> itemList) throws ClassNotFoundException {\n\t\ttblResult.setItems(itemList);\n\t}", "@SuppressWarnings(\"unchecked\")\r\n @Override\r\n public List<Item> loadItems(final int startIndex, final int count) {\r\n List<Item> items = new ArrayList<Item>();\r\n if (count <= 0) {\r\n return items;\r\n }\r\n \r\n TypedQuery<Tuple> selectQuery = getSelectQuery();\r\n adjustRetrievalBoundaries(selectQuery, startIndex, count);\r\n logger.debug(\">>>>> first: {}, count: {} \", selectQuery.getFirstResult(), selectQuery.getMaxResults());\r\n\t\tList<?> entities = selectQuery.getResultList();\r\n\t\tlogger.debug(\"<<<<<\");\r\n \r\n Object keyPropertyId = keyToIdMapper.getKeyPropertyId();\r\n int curCount = 0;\r\n for (Object entity : entities) {\r\n T curEntity = (T) ((Tuple) entity).get(0);\r\n Item item = toItem(curEntity);\r\n if (queryDefinition.isDetachedEntities()) {\r\n entityManager.detach(curEntity);\r\n }\r\n items.add(item);\r\n addToMapping(item, keyPropertyId, startIndex+curCount);\r\n //logger.debug(\"adding {} at index {}\",item, startIndex+curCount);\r\n curCount++;\r\n }\r\n return items;\r\n }", "@Override\n public List< Item > loadInBackground() {\n Cursor cursor = resolver.query( ItemContentProvider.CONTENT_URI, projection, \"isDeleted=?\",\n new String[]{ \"0\" }, ItemTable.COLUMN_ITEM + \" ASC\" );\n\n //TODO: Check if cursor actually contains data\n // Also close it\n return ItemUtils.cursorToList( cursor );\n }", "@Test\n\tpublic void testReadDataFromFiles2(){\n\t\tassertEquals((Integer)1 , DataLoader.data.get(\"http\"));\n\t\tassertEquals((Integer)1, DataLoader.data.get(\"search\"));\n\t}", "private void load() throws DAOSysException\t\t{\n\t\tif (_debug) System.out.println(\"AL:load()\");\n\t\tAnnualLeaseDAO dao = null;\n\t\ttry\t{\n\t\t\tdao = getDAO();\n\t\t\tsetModel((AnnualLeaseModel)dao.dbLoad(getPrimaryKey()));\n\n\t\t} catch (Exception ex)\t{\n\t\t\tthrow new DAOSysException(ex.getMessage());\n\t\t}\n\t}", "public void setLoadItems(String borrowedFileName, int borrowedSize) \n\t{\n\t\trecordCount = RESET_VALUE;\n\n\t\ttry \n\t\t{\n\t\t\tScanner infile = new Scanner(new FileInputStream(borrowedFileName));\n\n\t\t\twhile(infile.hasNext() == true && recordCount < MAX_ITEMS && recordCount < borrowedSize) \n\t\t\t{\n\t\t\t\titemIDs[recordCount] = infile.nextInt();\n\t\t\t\titemNames[recordCount] = infile.next();\n\t\t\t\titemPrices[recordCount] = infile.nextDouble();\n\t\t\t\torderQuantity[recordCount] = infile.nextInt();\n\t\t\t\torderTotals[recordCount] = infile.nextDouble(); \n\t\t\t\trecordCount++;\n\t\t\t}\n\n\t\t\t//close file\n\t\t\tinfile.close();\n\n\t\t\t//sort by itemID\n\t\t\tsetBubbleSort();\n\t\t}//END try\n\n\t\tcatch(IOException ex) \n\t\t{\n\t\t\trecordCount = NOT_FOUND;\n\t\t}\n\t}", "private void loadData(){\n\n fileName = EditedFiles.getActiveFacilityFile();\n getFacilities().clear();\n\n try {\n getFacilities().addAll(ReaderThreadRunner.startReader(fileName));\n } catch (ExecutionException | InterruptedException e) {\n e.printStackTrace();\n }\n\n\n observableList = FXCollections.observableList(getFacilities());\n facilitiesView.setItems(observableList);\n }", "@Override\n protected void load(ScanningContext context) {\n ResourceItem item = getRepository().getResourceItem(mType, mResourceName);\n\n // add this file to the list of files generating this resource item.\n item.add(this);\n\n // Ask for an ID refresh since we're adding an item that will generate an ID\n context.requestFullAapt();\n }", "public void loadMealPlanner(){\n try{\n //load the planner list of Days\n List<Days> returnedList = Data.<Days>loadList(mealPlannerFile);\n if (returnedList != null){\n //set to weeklist\n ObservableWeekList = FXCollections.observableList(returnedList);\n weekList.setItems(ObservableWeekList);\n } else {\n System.out.println(\"No meal planner Loaded \");\n }\n } catch (Exception e){\n System.out.println(\"Unable to load meal planner from file \" + shoppingListFile +\n \", the file may not exist\");\n e.printStackTrace();\n }\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/S_[.XML\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"\\\",\");\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.getSimilarItems(\"[\", \"\");\n assertEquals(2L, file0.length());\n assertNotNull(file0);\n }", "@Test\n public void testSimpleLoad() throws Exception {\n runTest(\"testSimpleLoad\",\n new byte[][][]{\n new byte[][]{Bytes.toBytes(\"aaaa\"), Bytes.toBytes(\"cccc\")},\n new byte[][]{Bytes.toBytes(\"ddd\"), Bytes.toBytes(\"ooo\")},\n });\n }", "public static void performTests() throws ModelManagementException {\n int count = VarModel.INSTANCE.getModelCount();\n UnloadTestModelLoader loader = new UnloadTestModelLoader();\n VarModel.INSTANCE.locations().addLocation(BASE, ProgressObserver.NO_OBSERVER);\n VarModel.INSTANCE.loaders().registerLoader(loader, ProgressObserver.NO_OBSERVER);\n // no model was loaded\n Assert.assertEquals(VarModel.INSTANCE.getModelCount(), count);\n // prepare all models\n for (ModelInfo<Project> info : loader.infos()) {\n Assert.assertTrue(loader.getProject(info) == VarModel.INSTANCE.load(info));\n }\n // no model was loaded\n Assert.assertEquals(VarModel.INSTANCE.getModelCount(), count + loader.infoCount());\n\n testUnloading(loader, \"f\", \"f\"); // f is not imported so it shall be unloaded\n testUnloading(loader, \"a\"); // a is imported so it shall not be unloaded\n testUnloading(loader, \"e\"); // e is imported so it shall not be unloaded\n testUnloading(loader, \"b\"); // b is imported and imports e so it shall not be unloaded\n testUnloading(loader, \"c\"); // c is imported so it shall not be unloaded\n testUnloading(loader, \"d\"); // d is imported so it shall not be unloaded\n testUnloading(loader, \"p1\", \"p1\", \"a\"); // p1 shall be unloaded, also a\n testUnloading(loader, \"p2\", \"p2\", \"c\"); // p2 shall be unloaded, also c\n testUnloading(loader, \"p3\", \"p3\", \"b\", \"e\"); // p3 shall be unloaded, also b and transitively e\n testUnloading(loader, \"p4\", \"p4\", \"d\"); // p4 shall be unloaded, as now d is not imported from other projects\n \n VarModel.INSTANCE.loaders().unregisterLoader(loader, ProgressObserver.NO_OBSERVER);\n VarModel.INSTANCE.locations().removeLocation(BASE, ProgressObserver.NO_OBSERVER);\n }", "@Test\n public void testLoadMessageListFromFolder() {\n System.out.println(\"loadMessageListFromFolder\");\n String folder = \"\";\n ArrayList<String> expResult = new ArrayList<String>();\n ArrayList<String> result = instance.loadMessageListFromFolder(folder);\n assertEquals(expResult, result);\n }", "@Test\n public void testCreateAndReadPositive() throws Exception{\n Item item = new Item();\n item.setName(\"item\");\n item.setType(ItemTypes.ALCOHOLIC_BEVERAGE);\n itemDao.create(item);\n Assert.assertNotNull(itemDao.read(item.getName()));\n }", "private void readItems() {\n // open file\n File file = getFilesDir();\n File todoFile = new File(file, \"scores.txt\");\n // try to find items to add\n try {\n items = new ArrayList<>(FileUtils.readLines(todoFile));\n } catch (IOException e) {\n items = new ArrayList<>();\n }\n }", "public ArrayList loadItems (String file) {\n ArrayList<Item> itemList = new ArrayList<>();\n\n File itemFile = new File(file);\n\n Scanner scanner = null;\n\n try{\n scanner = new Scanner(itemFile);\n\n } catch (FileNotFoundException e){\n e.printStackTrace();\n }\n\n while(scanner.hasNextLine()){\n String line = scanner.nextLine();\n String [] oneItem = line.split(\"=\");\n itemList.add(new Item(oneItem[0],Integer.parseInt(oneItem[1])));\n }\n\n\n return itemList;\n }", "public static boolean testLoading() {\r\n Data instance = new Data();\r\n Pokemon[] list;\r\n try {\r\n instance.update();\r\n list = instance.getPokemonList();\r\n int cnt = 0;\r\n while (cnt < list.length && list[cnt] != null)\r\n cnt++;\r\n if (cnt != 799) {\r\n System.out.print(\"Pokemon num incorrect: \");\r\n System.out.println(cnt - 1);\r\n return false;\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n System.out.println(\"fall the test in exception\");\r\n return false;\r\n }\r\n\r\n for (int i = 0; i < 6; i++) {\r\n if (!pokemonEq(testList[i], list[indices[i]])) {\r\n System.out.print(\"fail the test in check element \");\r\n System.out.println(i);\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }", "@Test(timeout = 4000)\n public void test20() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/A_X-0;;JLT_;1IJDVA.XML\");\n FileSystemHandling.createFolder(evoSuiteFile0);\n ArrayList<Object> arrayList0 = new ArrayList<Object>();\n FileInputStream fileInputStream0 = fileUtil0.fetchAccessories(\"X-0;;JLT_;1iJdvA\", arrayList0);\n assertNull(fileInputStream0);\n }", "@Override\n public void loadCartProductsData() {\n mCartPresenter.loadCartProductsData();\n }", "public void testLoadContentsId_1() throws Throwable {\n \tList<String> list = null;\n\t\ttry {\n\t\t\tlist = _contentSearcherDao.loadPublicContentsId(\"ART\", null, null, null);\n\t\t} catch (Throwable t) {\n\t\t\tthrow t;\n\t\t}\n\t\tassertEquals(4, list.size());\n\t\tassertFalse(list.contains(\"ART179\"));//contenuto non on-line\n\t\tassertTrue(list.contains(\"ART180\"));\n\t\tassertTrue(list.contains(\"ART187\"));\n\t\tassertTrue(list.contains(\"ART121\"));//contenuto administrator abilitato ai free\n\t\tassertFalse(list.contains(\"ART102\"));//contenuto di gruppo customers\n\t}", "private void loadItemsMaps()\n {\n _icons=new HashMap<String,List<Item>>(); \n _names=new HashMap<String,List<Item>>(); \n List<Item> items=ItemsManager.getInstance().getAllItems();\n for(Item item : items)\n {\n String icon=item.getIcon();\n if (icon!=null)\n {\n registerMapping(_icons,icon,item);\n String mainIconId=icon.substring(0,icon.indexOf('-'));\n registerMapping(_icons,mainIconId,item);\n String name=item.getName();\n registerMapping(_names,name,item);\n }\n }\n }", "public Item getVsLoad(){\n\t\tItem item = null;\n\t\tSession session = HibernateUtil.getSession();\n\t\tTransaction tx = null;\n\t\t\n\t\ttry{\n\t\t\ttx = session.beginTransaction();\n\t\t\tSystem.out.println(\"------Get------\");\n\t\t\titem = (Item)session.get(Item.class, 1);\n\t\t\tSystem.out.println(\"yo\");\n\t\t\tSystem.out.println(item);\n\t\t\t\n\t\t\tSystem.out.println(\"----Load----\");\n\t\t\titem = (Item)session.load(Item.class, 1);\n\t\t\tSystem.out.println(\"yo\");\n\t\t\tSystem.out.println(item);\n\t\t\t\n\t\t\tSystem.out.println(\"====getvsload no data=====\");\n\t\t\tSystem.out.println(\"------Get------\");\n\t\t\titem = (Item)session.get(Item.class, 1000);\n\t\t\tSystem.out.println(\"yo\");\n\t\t\tSystem.out.println(item);\n\t\t\t\n\t\t\tSystem.out.println(\"----Load----\");\n\t\t\t//item = (Item)session.load(Item.class, 2000);\n\t\t\tSystem.out.println(\"yo\");\n\t\t\tSystem.out.println(item);\n\t\t\t\n\t\t\tSystem.out.println(\"=====lvl1 caching====\");\n\t\t\titem = (Item)session.load(Item.class, 4);\n\t\t\tSystem.out.println(item);\n\t\t\titem = (Item)session.load(Item.class, 4);\n\t\t\tSystem.out.println(item);\n\t\t\ttx.commit();\n\t\t}catch(HibernateException e){\n\t\t\tif(tx!=null){\n\t\t\t\ttx.rollback();\n\t\t\t}\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tsession.close(); \n\t\t}\n\t\treturn item;\n\t}", "public VendingMachine(List<Item> items) {\r\n updateInventory(items);\r\n moneyLog = new Money();\r\n }", "@Test\r\n\tpublic void testAllItems(){\r\n\t\tString expectedResult = \"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15\";\r\n\t\tString itemsResults = Packer.pack(\"./src/test/resources/allItems.txt\");\r\n\t\tassertEquals(expectedResult, itemsResults);\r\n\t\tSystem.out.println(\"Test passed. AllItems.\");\r\n\t}", "@Test\n public void testLoadOrderData() throws Exception {\n dao.loadEnvironmentVariable();\n Order writeOrder = new Order();\n\n writeOrder.setOrderNumber(1);\n writeOrder.setOrderDate(LocalDate.parse(\"1900-01-01\"));\n writeOrder.setCustomer(\"Load Test\");\n writeOrder.setTax(new Tax(\"OH\", new BigDecimal(\"6.25\")));\n writeOrder.setProduct(new Product(\"Wood\", new BigDecimal(\"5.15\"), new BigDecimal(\"4.75\")));\n writeOrder.setArea(new BigDecimal(\"100.00\"));\n writeOrder.setMaterialCost(new BigDecimal(\"515.00\"));\n writeOrder.setLaborCost(new BigDecimal(\"475.00\"));\n writeOrder.setTaxCost(new BigDecimal(\"61.88\"));\n writeOrder.setTotal(new BigDecimal(\"1051.88\"));\n\n assertTrue(dao.getAllOrders().isEmpty());\n\n dao.addOrder(writeOrder);\n dao.writeOrderData();\n\n dao = null;\n\n OrdersDao dao2 = new OrdersDaoImpl();\n\n assertTrue(dao2.getAllOrders().isEmpty());\n\n dao2.loadOrderData();\n\n assertTrue(dao2.getAllOrders().size() >= 1);\n\n Files.deleteIfExists(Paths.get(System.getProperty(\"user.dir\") + \"/Orders_01011900.txt\"));\n }", "@Test\n public void testORMUsageToretrieveBlocks() throws DataloadGeneratorException {\n List<BlockDefEntityWrap> tbsBlockEntity = getTbsBlockEntity();\n// System.out.println(\"BlockDiagCodeMappingTEntity - \" + tbsBlockSaved);\n System.out.println(\"BlockDefTEntity - \" + tbsBlockEntity);\n// assertNotNull(tbsBlockSaved);\n }", "public Set<InventoryCarModel> loadInventoryItems() {\r\n\t\tSet<InventoryCarModel> items = new HashSet<InventoryCarModel>();\r\n\t\ttry(BufferedReader br = new BufferedReader(new FileReader(this.data_location))) {\r\n\t\t\tString line;\r\n\t\t\tint counter = 0;\r\n\t\t\twhile ((line = br.readLine()) != null && line != \"\\n\") {\r\n\t\t\t\tString[] values = line.split(\",\");\r\n\t\t\t\tif (values[0].equals(\"vin\")) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tInventoryCarModel Inventory = new InventoryCarModel(values[0], values[1], values[2], values[3], Integer.parseInt(values[4]));\r\n\t\t\t\t\titems.add(Inventory);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Error adding vehicle to inventory: \" + e.getMessage());\r\n\t\t}\r\n\t\treturn items;\r\n\t}", "@Test\n public void testGetItem() throws Exception {\n System.out.println(\"getItem\");\n Integer orcamentoItemId = null;\n EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();\n OrcamentoService instance = (OrcamentoService)container.getContext().lookup(\"java:global/classes/OrcamentoService\");\n Orcamentoitem expResult = null;\n Orcamentoitem result = instance.getItem(orcamentoItemId);\n assertEquals(expResult, result);\n container.close();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void loadItems(String filename) throws IOException, CSVException {\n\t\tinventory = new Stock();\n\n\t\tString[] itemProperties = Utilities.readCSV(filename, 5, 6);\n\t\tfor (String line : itemProperties) {\n\t\t\tString[] properties = line.split(\",\");\n\t\t\tItem item;\n\t\t\tif (properties.length == 5) {\n\t\t\t\titem = new Item(properties[0], Double.parseDouble(properties[1]), Double.parseDouble(properties[2]),\n\t\t\t\t\t\tInteger.parseInt(properties[3]), Integer.parseInt(properties[4]));\n\t\t\t} else {\n\t\t\t\titem = new ColdItem(properties[0], Double.parseDouble(properties[1]), Double.parseDouble(properties[2]),\n\t\t\t\t\t\tInteger.parseInt(properties[3]), Integer.parseInt(properties[4]),\n\t\t\t\t\t\tDouble.parseDouble(properties[5]));\n\t\t\t}\n\n\t\t\tinventory.add(item);\n\t\t}\n\n\t}", "public void loadItemOnCurrentPosition(int itemToLoad) {\n\n\t\t_loaded.add(itemToLoad);\n\n\t}", "@Test\n public void testListProducts() {\n List<Product> allProducts = testDao.listProducts();\n\n // First check the general contents of the list\n assertNotNull(allProducts, \"The list of products must not null\");\n assertEquals(4, allProducts.size(),\"List of products should have 4 products.\");\n \n // Then the specifics\n// assertTrue(testDao.getAllMonsters().contains(firstMonster),\n// \"The list of monsters should include Vladmir.\");\n// assertTrue(testDao.getAllMonsters().contains(secondMonster),\n// \"The list of monsters should include Warwick.\");\n }", "public void loadVehicles() throws IOException {\n File veFile = new File(VE_FILE);\n\n //Checks is file created\n if (!veFile.exists()) {\n veFile.createNewFile(); //If not, creates new file\n System.out.print(\"The data file vehicles.txt is not exits. \" +\n \"Creating new data file vehicles.txt... \" +\n \"Done!\");\n this.numberOfVehicle = 0; //New data file with the number of Vehicle is 0\n } else {\n //If file is existed, so loading this data file\n System.out.print(\"The data file vehicles.txt is found. \" +\n \"Data of vehicles is loading...\");\n\n //Loads text file into buffer\n try (BufferedReader br = new BufferedReader(new FileReader(VE_FILE))) {\n String line, contractId, type, licensePlate, chassisId, enginesId;\n\n //Reads number of vehicles\n line = br.readLine();\n if (line == null) return;\n this.numberOfVehicle = Integer.parseInt(line);\n\n for (int i = 0; i < this.numberOfVehicle; i++) {\n //Reads Vehicle's information\n contractId = br.readLine();\n type = br.readLine();\n licensePlate = br.readLine();\n chassisId = br.readLine();\n enginesId = br.readLine();\n\n\n //Create new instance of Vehicle and adds to Vehicle bank\n this.vehicles.add(new Vehicle(Integer.parseInt(contractId), type, licensePlate, chassisId, enginesId));\n }\n }\n System.out.print(\"Done!\");\n }\n }", "public void loadShoppingList(){\n try{\n //load the shopping list from the external file\n List<Ingredient> returnedList = Data.<Ingredient>loadList(shoppingListFile);\n if (returnedList != null){\n //convert list to an observableList\n shoppingListIngredients = FXCollections.observableList(returnedList);\n //set to the shopping list\n shoppingList.setItems(shoppingListIngredients);\n } else {\n System.out.println(\"No Shopping List Loaded \");\n }\n } catch (Exception e){\n System.out.println(\"Unable to load shopping list from file \" + shoppingListFile +\n \", the file may not exist\");\n e.printStackTrace();\n }\n }" ]
[ "0.76241994", "0.7035351", "0.65337044", "0.65006894", "0.6418006", "0.6330032", "0.62791425", "0.6247184", "0.6224041", "0.61357147", "0.6116004", "0.61128217", "0.6097048", "0.60587513", "0.60389656", "0.6012398", "0.5979527", "0.5978032", "0.5972983", "0.5954138", "0.58364356", "0.5817412", "0.58164185", "0.5811795", "0.5792928", "0.5772857", "0.5769463", "0.5767513", "0.5718978", "0.5710258", "0.5689063", "0.56700927", "0.5666031", "0.56583446", "0.5654027", "0.5634454", "0.5630118", "0.5611987", "0.5581228", "0.55738306", "0.5523787", "0.5506323", "0.5499151", "0.5494195", "0.54933405", "0.54783803", "0.54755074", "0.5471179", "0.5463638", "0.5454458", "0.5436396", "0.5431537", "0.5429265", "0.54208505", "0.5419863", "0.54118216", "0.5405304", "0.5401532", "0.5401532", "0.5398858", "0.5394612", "0.5383094", "0.53811216", "0.5379451", "0.53727305", "0.5356783", "0.53559166", "0.535254", "0.53524095", "0.5346659", "0.5344977", "0.5343407", "0.5337708", "0.5326819", "0.5297835", "0.5290228", "0.5284775", "0.5284716", "0.52819735", "0.5281611", "0.52801657", "0.52707916", "0.5268208", "0.5265441", "0.52647126", "0.5250214", "0.5243648", "0.52407026", "0.52402276", "0.5237696", "0.52323866", "0.52304137", "0.52301884", "0.522985", "0.5221363", "0.5220187", "0.52189153", "0.52124804", "0.52048606", "0.52032924" ]
0.6577273
2
Test of decrementInventory method, of class VendingMachineDaoFileImpl.
@Test public void testDecrementInventory() throws Exception { int firstDecrement; int secondDecrement; List<VendingItem> items; VendingItem twix; try { fillInventoryFileWithTestData(VALID); dao.loadItems(); } catch (VendingMachinePersistenceException ex) { } items = dao.getItems(); assertEquals(1, items.size()); twix = items.get(0); // firstDecrement = 19 firstDecrement = twix.decrementStock(); // secondDecrement = 18 secondDecrement = twix.decrementStock(); assertEquals(1, firstDecrement - secondDecrement); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testUpdateMilkInventory() throws InventoryException {\r\n coffeeMaker.addInventory(\"0\", \"5\", \"0\", \"0\");\r\n String updatedInventory = \"Coffee: 15\\nMilk: 20\\nSugar: 15\\nChocolate: 15\\n\";\r\n assertEquals(updatedInventory, coffeeMaker.checkInventory());\r\n }", "@Override\n\tpublic void closeInventory() {\n\t\t\n\t}", "@Test\r\n public void testUpdateCoffeeInventory() throws InventoryException {\r\n coffeeMaker.addInventory(\"5\", \"0\", \"0\", \"0\");\r\n String updatedInventory = \"Coffee: 20\\nMilk: 15\\nSugar: 15\\nChocolate: 15\\n\";\r\n assertEquals(updatedInventory, coffeeMaker.checkInventory());\r\n }", "@Test\r\n public void testUpdateSugarInventory() throws InventoryException {\r\n coffeeMaker.addInventory(\"0\", \"0\", \"5\", \"0\");\r\n String updatedInventory = \"Coffee: 15\\nMilk: 15\\nSugar: 20\\nChocolate: 15\\n\";\r\n assertEquals(updatedInventory, coffeeMaker.checkInventory());\r\n }", "void updateInventory(String busNumber, String tripDate, int inventory) throws NotFoundException;", "@Test\n\tpublic void testProcessInventoryUpdateOrderAdjustmentRemoveSku() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_ONHAND);\n\t\tinventory.setWarehouseUid(WAREHOUSE_UID);\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tproductSku.setSkuCode(SKU_CODE);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproductSku.setProduct(product);\n\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup = new InventoryJournalRollupImpl();\n\t\tijRollup.setAllocatedQuantityDelta(QUANTITY_10);\n\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\tallowing(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\n\t\t\t\tallowing(inventoryDao).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory));\n\t\t\t\tallowing(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(ijRollup));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t}\n\t\t});\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, 1,\tInventoryEventType.STOCK_ALLOCATE, EVENT_ORIGINATOR_TESTER,\tQUANTITY_10, order, null);\n\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\n\t\tassertEquals(inventoryDto.getQuantityOnHand(), QUANTITY_ONHAND);\n\t\tassertEquals(inventoryDto.getAvailableQuantityInStock(), QUANTITY_ONHAND - QUANTITY_10);\n\t\tassertEquals(inventoryDto.getAllocatedQuantity(), QUANTITY_10);\n\n\t\tfinal Inventory inventory2 = assembler.assembleDomainFromDto(inventoryDto);\n\t\tfinal InventoryJournalRollupImpl ijRollup2 = new InventoryJournalRollupImpl();\n\t\tijRollup2.setAllocatedQuantityDelta(QUANTITY_NEG_10);\n\n\t\tfinal InventoryDao inventoryDao2 = context.mock(InventoryDao.class, INVENTORY_DAO2);\n\t\tfinal InventoryJournalDao inventoryJournalDao2 = context.mock(InventoryJournalDao.class, INVENTORY_JOURNAL_DAO2);\n\n\t\tjournalingInventoryStrategy.setInventoryDao(inventoryDao2);\n\t\tjournalingInventoryStrategy.setInventoryJournalDao(inventoryJournalDao2);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\tallowing(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t\tallowing(inventoryDao2).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory2));\n\t\t\t\tallowing(inventoryJournalDao2).getRollup(inventoryKey); will(returnValue(ijRollup2));\n\t\t\t\toneOf(inventoryJournalDao2).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t}\n\t\t});\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, WAREHOUSE_UID,\tInventoryEventType.STOCK_DEALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\n\t\tinventoryDto = productInventoryManagementService.getInventory(inventory2.getSkuCode(), inventory2.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_0, inventoryDto.getAllocatedQuantity());\n\t}", "void closeInventory(Player player, CloseReason reason);", "@Test\n\tpublic void testProcessInventoryUpdateOrderAdjustmentChangeQty() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_ONHAND);\n\t\tfinal long warehouseUid = WAREHOUSE_UID;\n\t\tinventory.setWarehouseUid(warehouseUid);\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tfinal String skuCode = SKU_CODE;\n\t\tproductSku.setSkuCode(skuCode);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproduct.setGuid(PRODUCT);\n\t\tproductSku.setProduct(product);\n\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\t\torder.setStoreCode(store.getCode());\n\t\tfinal PhysicalOrderShipmentImpl shipment = getMockPhysicalOrderShipment();\n\t\tfinal OrderSku orderSku = new OrderSkuImpl();\n\t\torderSku.setProductSku(productSku);\n\t\tshipment.addShipmentOrderSku(orderSku);\n\t\torder.addShipment(shipment);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup = new InventoryJournalRollupImpl();\n\t\tijRollup.setAllocatedQuantityDelta(QUANTITY_10);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\toneOf(beanFactory).getBean(ALLOCATION_RESULT); will(returnValue(new AllocationResultImpl()));\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\n\t\t\t\tallowing(inventoryDao).getInventory(skuCode, warehouseUid); will(returnValue(inventory));\n\t\t\t\tallowing(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(ijRollup));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t}\n\t\t});\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, 1,\tInventoryEventType.STOCK_ALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND - QUANTITY_10, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_10, inventoryDto.getAllocatedQuantity());\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t}\n\t\t});\n\n\t\tfinal Inventory inventory2 = assembler.assembleDomainFromDto(inventoryDto);\n\n\t\tfinal InventoryDao inventoryDao2 = context.mock(InventoryDao.class, INVENTORY_DAO2);\n\n\t\tjournalingInventoryStrategy.setInventoryDao(inventoryDao2);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\tallowing(inventoryDao2).getInventory(skuCode, warehouseUid); will(returnValue(inventory2));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t}\n\t\t});\n\n\t\tallocationService.processAllocationEvent(\n\t\t\t\torderSku, AllocationEventType.ORDER_ADJUSTMENT_CHANGEQTY, EVENT_ORIGINATOR_TESTER, QUANTITY_10, null);\n\n\t\tinventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND - QUANTITY_10 - QUANTITY_10, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_10 + QUANTITY_10, inventoryDto.getAllocatedQuantity());\n\t}", "@Test\r\n public void testUpdateChocolateInventory() throws InventoryException {\r\n coffeeMaker.addInventory(\"0\", \"0\", \"0\", \"5\");\r\n String updatedInventory = \"Coffee: 15\\nMilk: 15\\nSugar: 15\\nChocolate: 20\\n\";\r\n assertEquals(updatedInventory, coffeeMaker.checkInventory());\r\n }", "public void closeInventory ( ) {\n\t\texecute ( handle -> handle.closeInventory ( ) );\n\t}", "@Test\n\tpublic void testProcessInventoryUpdateOrderCancellation() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_ONHAND);\n\t\tinventory.setWarehouseUid(WAREHOUSE_UID);\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tproductSku.setSkuCode(SKU_CODE);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproductSku.setProduct(product);\n\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup = new InventoryJournalRollupImpl();\n\t\tijRollup.setAllocatedQuantityDelta(QUANTITY_10);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\n\t\t\t\tallowing(inventoryDao).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory));\n\t\t\t\tallowing(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(ijRollup));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t}\n\t\t});\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, 1,\tInventoryEventType.STOCK_ALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND - QUANTITY_10, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_10, inventoryDto.getAllocatedQuantity());\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t}\n\t\t});\n\n\t\tfinal Inventory inventory2 = assembler.assembleDomainFromDto(inventoryDto);\n\n\t\tfinal InventoryDao inventoryDao2 = context.mock(InventoryDao.class, INVENTORY_DAO2);\n\t\tfinal InventoryJournalDao inventoryJournalDao2 = context.mock(InventoryJournalDao.class, INVENTORY_JOURNAL_DAO2);\n\t\tjournalingInventoryStrategy.setInventoryDao(inventoryDao2);\n\t\tjournalingInventoryStrategy.setInventoryJournalDao(inventoryJournalDao2);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup2 = new InventoryJournalRollupImpl();\n\t\tijRollup2.setAllocatedQuantityDelta(QUANTITY_NEG_10);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\tatLeast(1).of(inventoryDao2).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory2));\n\t\t\t\tatLeast(1).of(inventoryJournalDao2).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t\tatLeast(1).of(inventoryJournalDao2).getRollup(inventoryKey); will(returnValue(ijRollup2));\n\t\t\t}\n\t\t});\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, WAREHOUSE_UID,\tInventoryEventType.STOCK_DEALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\t\tinventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_0, inventoryDto.getAllocatedQuantity());\n\t}", "@Test\r\n public void testResetInventory2()\r\n {\r\n testLongTermStorage.addItem(item2, testLongTermStorage.getCapacity() / item2.getVolume());\r\n testLongTermStorage.resetInventory();\r\n assertEquals(\"Storage should be empty\", new HashMap<>(), testLongTermStorage.getInventory());\r\n }", "public Inventory inventoryDelete (TheGroceryStore g, LinkedList<Inventory> deleter) throws ItemNotFoundException;", "@Test\r\n\tpublic void testRemoveItem() {\r\n\t\tVendingMachineItem test = new VendingMachineItem(\"test\", 10.0);\r\n\t\tvendMachine.addItem(test, \"B\");\r\n\t\tassertEquals(test, vendMachine.removeItem(\"B\"));\r\n\t}", "@Test\n\tpublic void testProcessInventoryUpdateOrderPlaced() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_ONHAND);\n\t\tinventory.setWarehouseUid(WAREHOUSE_UID);\n\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tproductSku.setSkuCode(SKU_CODE);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproductSku.setProduct(product);\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup = new InventoryJournalRollupImpl();\n\t\tijRollup.setAllocatedQuantityDelta(QUANTITY_10);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\tallowing(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t\tallowing(beanFactory).getBean(INVENTORY_JOURNAL);\n\t\t\t\twill(returnValue(inventoryJournal));\n\t\t\t\tallowing(inventoryDao).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory));\n\t\t\t\tallowing(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(ijRollup));\n\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t}\n\t\t});\n\n\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, WAREHOUSE_UID,\tInventoryEventType.STOCK_ALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\n\t\t// WE SHALL CHECK THE RESULT FROM processInventoryUpdate()\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(inventoryDto.getQuantityOnHand(), QUANTITY_ONHAND);\n\t\tassertEquals(inventoryDto.getAvailableQuantityInStock(), QUANTITY_ONHAND - QUANTITY_10);\n\t\tassertEquals(inventoryDto.getAllocatedQuantity(), QUANTITY_10);\n\t}", "@Test\n\tpublic void testGetNumberOfItemsInInventory() throws IOException{\n\t\tassertEquals(amount, Model.getNumberOfItemsInInventory(item));\n\t}", "public void decrement() {\n items--;\n }", "@Test\n\tpublic void testProcessInventoryUpdateOrderShipmentRelease() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_ONHAND);\n\t\tinventory.setWarehouseUid(WAREHOUSE_UID);\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tfinal String skuCode = SKU_CODE;\n\t\tproductSku.setSkuCode(skuCode);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproductSku.setProduct(product);\n\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup = new InventoryJournalRollupImpl();\n\t\tijRollup.setAllocatedQuantityDelta(QUANTITY_10);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\n\t\t\t\tatLeast(1).of(inventoryDao).getInventory(skuCode, WAREHOUSE_UID); will(returnValue(inventory));\n\t\t\t\tatLeast(1).of(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(ijRollup));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t}\n\t\t});\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, 1,\tInventoryEventType.STOCK_ALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND - QUANTITY_10, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_10, inventoryDto.getAllocatedQuantity());\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t}\n\t\t});\n\n\t\tfinal Inventory inventory2 = assembler.assembleDomainFromDto(inventoryDto);\n\n\t\tfinal InventoryDao inventoryDao2 = context.mock(InventoryDao.class, INVENTORY_DAO2);\n\t\tfinal InventoryJournalDao inventoryJournalDao2 = context.mock(InventoryJournalDao.class, INVENTORY_JOURNAL_DAO2);\n\t\tjournalingInventoryStrategy.setInventoryDao(inventoryDao2);\n\t\tjournalingInventoryStrategy.setInventoryJournalDao(inventoryJournalDao2);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup2 = new InventoryJournalRollupImpl();\n\t\tijRollup2.setAllocatedQuantityDelta(QUANTITY_NEG_10);\n\t\tijRollup2.setQuantityOnHandDelta(QUANTITY_NEG_10);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\tatLeast(1).of(inventoryDao2).getInventory(skuCode, WAREHOUSE_UID); will(returnValue(inventory2));\n\t\t\t\tatLeast(1).of(inventoryJournalDao2).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t\tatLeast(1).of(inventoryJournalDao2).getRollup(inventoryKey); will(returnValue(ijRollup2));\n\t\t\t}\n\t\t});\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, WAREHOUSE_UID,\tInventoryEventType.STOCK_RELEASE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\t\tinventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND - QUANTITY_10, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND - QUANTITY_10, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_0, inventoryDto.getAllocatedQuantity());\n\t}", "@Override\n\tpublic int updateInventory(int tranNo, int amount) throws Exception {\n\t\treturn 0;\n\t}", "@Test(expected = VendingMachineException.class)\r\n\tpublic void testRemoveItem_empty_slot() {\r\n\t\tvendMachine.removeItem(\"D\");\r\n\t}", "@Test\r\n public void testResetInventory1()\r\n {\r\n testLongTermStorage.resetInventory();\r\n assertEquals(\"Storage should be empty\", new HashMap<>(), testLongTermStorage.getInventory());\r\n }", "@Test(expected = InsufficientInventoryException.class)\n\tpublic void testTypeInStockWhenOutOfStock() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_OF_10);\n\t\tinventory.setReservedQuantity(QUANTITY_OF_5);\n\t\tinventory.setWarehouseUid(WAREHOUSE_UID);\n\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tproductSku.setSkuCode(SKU_CODE);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproduct.setGuid(PRODUCT);\n\t\tproductSku.setProduct(product);\n\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\t\torder.setStoreCode(store.getCode());\n\t\tfinal PhysicalOrderShipmentImpl shipment = getMockPhysicalOrderShipment();\n\t\tfinal OrderSku orderSku = new OrderSkuImpl();\n\t\torderSku.setProductSku(productSku);\n\t\torderSku.setQuantity(QUANTITY_OF_5);\n\t\tshipment.addShipmentOrderSku(orderSku);\n\t\torder.addShipment(shipment);\n\n\t\tfinal IndexNotificationService indexNotificationService = context.mock(IndexNotificationService.class);\n\t\tproductInventoryManagementService.setIndexNotificationService(indexNotificationService);\n\n\t\tfinal InventoryKey inventoryKey = new InventoryKey();\n\t\tinventoryKey.setSkuCode(SKU_CODE);\n\t\tinventoryKey.setWarehouseUid(WAREHOUSE_UID);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t\tatLeast(1).of(beanFactory).getBean(ALLOCATION_RESULT); will(returnValue(new AllocationResultImpl()));\n\n\t\t\t\tallowing(inventoryDao).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory));\n\t\t\t\tallowing(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(new InventoryJournalRollupImpl()));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\n\t\t\t\toneOf(indexNotificationService).addNotificationForEntityIndexUpdate(IndexType.PRODUCT, product.getUidPk());\n\t\t\t}\n\t\t});\n\n\t\tallocationService.processAllocationEvent(orderSku, AllocationEventType.ORDER_PLACED, \"\", QUANTITY_OF_5, \"\");\n\n\t\tfinal InventoryJournalRollupImpl ijRollup2 = new InventoryJournalRollupImpl();\n\t\tijRollup2.setAllocatedQuantityDelta(QUANTITY_5);\n\n\t\tfinal InventoryJournalDao inventoryJournalDao2 = context.mock(InventoryJournalDao.class, INVENTORY_JOURNAL_DAO2);\n\t\tjournalingInventoryStrategy.setInventoryJournalDao(inventoryJournalDao2);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(inventoryJournalDao2).getRollup(inventoryKey); will(returnValue(ijRollup2));\n\t\t\t}\n\t\t});\n\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_OF_10, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(0, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_OF_5, inventoryDto.getAllocatedQuantity());\n\n\t\tfinal Inventory inventory3 = assembler.assembleDomainFromDto(inventoryDto);\n\t\tfinal InventoryDao inventoryDao3 = context.mock(InventoryDao.class, \"inventoryDao3\");\n\t\tjournalingInventoryStrategy.setInventoryDao(inventoryDao3);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tatLeast(1).of(inventoryDao3).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory3));\n\t\t\t}\n\t\t});\n\n\t\tallocationService.processAllocationEvent(orderSku, AllocationEventType.ORDER_PLACED, \"\", QUANTITY_OF_5, \"\");\n\t}", "public void setInventory(int inventory){\r\n inventoryNumber += inventory;\r\n }", "public void onInventoryChanged();", "public void setUnitsInventory(int unitsInventory){\n\t\tthis.unitsInventory = unitsInventory;\n\t}", "@Test\n\tpublic void testAddInventory() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"4\",\"7\",\"0\",\"9\");\n\t}", "public void updateInventory ( ) {\n\t\texecute ( handle -> handle.updateInventory ( ) );\n\t}", "@Test\n\tpublic void testSubtractItem() throws IOException{\n\t\tassertEquals(amount - subAmount, Model.subtractItem(item, subAmount + \"\"));\n\t}", "@Test\r\n public void testAddInventory() throws InventoryException {\r\n coffeeMaker.addInventory(\"4\", \"7\", \"0\", \"9\");\r\n coffeeMaker.addInventory(\"0\", \"0\", \"0\", \"0\");\r\n coffeeMaker.addInventory(\"3\", \"6\", \"9\", \"12\"); // this should not fail\r\n coffeeMaker.addInventory(\"10\", \"10\", \"10\", \"10\");// this should not fail\r\n }", "public void decreaseStock(int serialNum, int reduction){\n //loop through all Inventory\n for(int i=0; i<this.items.size(); i++){\n //check if inventoryItem has matching serialNumber with specified serialNum\n if(this.items.get(i).getSerialNum()==serialNum){\n //if serial numbers match, reduce inventory by specified amount\n this.items.get(i).removeFromQty(reduction);\n }\n }\n }", "public void deleteCardInventory() {\n try {\n System.out.println(\"********************ServiceBean=>deleteCardInventory********\");\n if (cardInventoryDataBean != null) {\n cardInventoryTransformerBean.deleteCardInventory(cardInventoryDataBean);\n retrieveCardInventoryList();\n System.out.println(\"CardInventory Delete Sussesfully\");\n messageDataBean.setMessage(\"CardInventory deleted successfully.\");\n messageDataBean.setIsSuccess(Boolean.TRUE);\n }\n } catch (Exception e) {\n System.out.println(e);\n messageDataBean.setMessage(\"Error in Deleting CardInventory.\");\n messageDataBean.setIsSuccess(Boolean.FALSE);\n }\n }", "@Test\n public void deleteItem() {\n Item item = new Item();\n item.setName(\"Drill\");\n item.setDescription(\"Power Tool\");\n item.setDaily_rate(new BigDecimal(\"24.99\"));\n item = service.saveItem(item);\n\n // Delete the Item from the database using the Item API method\n service.removeItem(item.getItem_id());\n\n // Test the deleteItem() method\n verify(itemDao, times(1)).deleteItem(integerArgumentCaptor.getValue());\n TestCase.assertEquals(item.getItem_id(), integerArgumentCaptor.getValue().intValue());\n }", "@Test\r\n\tpublic void testUpdateQuantity() throws IdNotContainedException { \r\n\t\tint initialQuantity = menu.findItemId(\"DES006\").getQuantity();\r\n\t int expectedQuantity = 2;\r\n\t processOrder.updateItemQuantity(currentOrder);\r\n\t int actualQuantity = menu.findItemId(\"DES006\").getQuantity();\r\n\t String message =\"Value updated succesfully\";\r\n\t\tassertEquals(message, actualQuantity, expectedQuantity ); \r\n assertTrue(actualQuantity > initialQuantity); //make sure that when updating the value has increased\r\n\r\n\t}", "@Override\n\tpublic void closeInventory(EntityPlayer player) {\n\t}", "@Override\n\tpublic void closeInventory(EntityPlayer player) {\n\t\t\n\t}", "public void sellProduct(){\n if(quantity > 0)\n this.quantity -= 1;\n else\n throw new IllegalArgumentException(\"Cannot sell \"+ this.model +\" with no inventory\");\n\n }", "@Override\n\tpublic void onInventoryChanged() {\n\t}", "private void decreaseStock() {\n\t\tint decreaseBy; // declares decreaseBy\n\t\tint sic_idHolder; // declares sic_idHolder\n\t\t\n\t\tSystem.out.println(\"Please enter the SIC-ID of the card you wish to edit:\");\n\t\tsic_idHolder = scan.nextInt();\n\t\tscan.nextLine();\n\n\t\tif(inventoryObject.cardExists(sic_idHolder)) { // checks to see if the card with the inputed ID exists\n\t\tSystem.out.println(\"Please enter the amount you wish to decrease the stock by (Note: This should be a positive number):\");\n\t\tdecreaseBy = scan.nextInt();\n\t\tscan.nextLine();\n\t\t\n\t\tif(decreaseBy <= 0) { //checks to see is decrease by is negative\n\t\t\tSystem.out.println(\"Error! You must decrease the stock by 1 or more\\n\");\n\t\t\tgetUserInfo();\n\t\t}\n\t\tif(inventoryObject.quantitySize(sic_idHolder) - decreaseBy < 0 ) { // checks to see if the current quantity minus decreasedBy is negative\n\t\t\tSystem.out.println(\"Error. Quantity can not be reduced to a negative number\\n\");\n\t\t\tgetUserInfo();\n\t\t}\n\t\tinventoryObject.decreaseStock(sic_idHolder, decreaseBy); // calls decreaseStock in InventoryManagement\n\t\tgetUserInfo();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"There are no cards with the ID you entered\\n\");\n\t\t\tgetUserInfo();\n\t\t}\n\t}", "@Ignore(\"QuantityEvent query\")\r\n @Test\r\n public void testStoreInventory() throws Exception\r\n {\r\n String epcToCheck = \"urn:epc:idpat:sgtin:0614141.107340.*\";\r\n XmlQuantityEventType event = dbHelper.getQuantityEventByEpcClass(epcToCheck);\r\n Assert.assertNull(event);\r\n\r\n runCaptureTest(STORE_INVENTORY_XML);\r\n\r\n event = dbHelper.getQuantityEventByEpcClass(epcToCheck);\r\n Assert.assertNotNull(event);\r\n }", "@Override\r\n\tpublic void onCloseInventory(InventoryCloseEvent e) {\n\t\t\r\n\t}", "@Test\n public void testRecordCurrentInventoryLevel() throws Exception {\n System.out.println(\"recordCurrentInventoryLevel\");\n Long factoryId = 1L;\n int result = FactoryInventoryManagementModule.recordCurrentInventoryLevel(factoryId);\n assertEquals(0, result);\n }", "@Test\n public void testRemoveItem() throws Exception {\n System.out.println(\"removeItem\");\n Orcamentoitem orcItem = null;\n EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();\n OrcamentoService instance = (OrcamentoService)container.getContext().lookup(\"java:global/classes/OrcamentoService\");\n instance.removeItem(orcItem);\n container.close();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void foodDeletedGoesAway() throws Exception {\n createFood();\n // locate the food item\n\n // delete the food item\n\n // check that food item no longer locatable\n\n }", "@Test\n\tpublic void deleteItemTest() {\n\t\tInteger associatedAccountId_1 = 1;\n\t\tString type_1 = \"deposit\";\n\t\tString date_1 = \"2018-04-03\";\n\t\tInteger amount_1 = 100;\n\t\tString description_1 = \"This is test transaction number one\";\n\t\tTransaction testDeleteTransaction_1 = new Transaction();\n\t\ttestDeleteTransaction_1.setAssociatedAccountId(associatedAccountId_1);\n\t\ttestDeleteTransaction_1.setType(type_1);\n\t\ttestDeleteTransaction_1.setDate(date_1);\n\t\ttestDeleteTransaction_1.setAmount(amount_1);\n\t\ttestDeleteTransaction_1.setDescription(description_1);\n\t\ttransacRepoTest.saveItem(testDeleteTransaction_1);\t\t\n\t\t\n\t\t//should now be 1 transaction in the repo\t\t\n\t\tArrayList<Transaction> transList = transacRepoTest.getItemsFromAccount(associatedAccountId_1);\n\t\tassertEquals(transList.size(), 1);\n\t\t\t\n\t\ttransacRepoTest.deleteItem(associatedAccountId_1);\n\n\t\t//should now be 0 transactions in the repo\n\t\ttransList = transacRepoTest.getItemsFromAccount(associatedAccountId_1);\n\t\tassertEquals(transList.size(), 0);\n\t\t\n\t}", "@Test(expected = InsufficientInventoryException.class)\n\tpublic void testTypeBackOrderWhenOutOfStock() {\n\t\tassertInventoryWithAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_FOR_BACK_ORDER);\n\t}", "private void deleteItem() {\n // Only perform the delete if this is an existing inventory item\n if (mCurrentInventoryUri != null) {\n // Call the ContentResolver to delete the inventory item at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentInventoryUri\n // content URI already identifies the inventory item that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentInventoryUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_inventory_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_inventory_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }", "@Override\n @Test\n public void equipTest() {\n Axe axes;\n Sword sword;\n Staff staff;\n Spear spear;\n Luz luz;\n Oscuridad oscuridad;\n Anima anima;\n Bow bow;\n axes = new Axe(\"Axe\", 20, 1, 2);\n sword = new Sword(\"Sword\", 20, 1, 2);\n spear = new Spear(\"Spear\", 20, 1, 2);\n staff = new Staff(\"Staff\", 20, 1, 2);\n bow = new Bow(\"Bow\", 20, 2, 3);\n anima = new Anima(\"Anima\", 20, 1, 2);\n luz = new Luz(\"Luz\", 20, 1, 2);\n oscuridad = new Oscuridad(\"Oscuridad\", 20, 1, 2);\n sorcererAnima.addItem(axes);\n sorcererAnima.equipItem(axes);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(axes);\n sorcererAnima.addItem(sword);\n sorcererAnima.equipItem(sword);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(sword);\n sorcererAnima.addItem(spear);\n sorcererAnima.equipItem(spear);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(spear);\n sorcererAnima.addItem(staff);\n sorcererAnima.equipItem(staff);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(staff);\n sorcererAnima.addItem(bow);\n sorcererAnima.equipItem(bow);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(bow);}", "public boolean deleteInventory(int itemId) {\n boolean done = false;\n String sql = \"DELETE FROM inventory WHERE item_id = ?\";\n try ( Connection con = connect(); PreparedStatement pstmt = con.prepareStatement(sql)) {\n pstmt.setInt(1, itemId);\n pstmt.executeUpdate();\n done = true;\n } catch (SQLException e) {\n System.out.println(e);\n }\n return done;\n }", "public void decreaseQuantity() {\n this.quantity--;\n this.updateTotalPrice();\n }", "@Test\n\tvoid purchaseTest() {\n\t\ttestCrew.setMoney(10000);\n\t\tfor(MedicalItem item: itemList) {\n\t\t\tint currentMoney = testCrew.getMoney();\n\t\t\titem.purchase(testCrew);\n\t\t\tassertEquals(testCrew.getMoney(), currentMoney - item.getPrice());\n\t\t\tassertTrue(testCrew.getMedicalItems().get(0).getClass().isAssignableFrom(item.getClass()));\n\t\t\ttestCrew.removeFromMedicalItems(testCrew.getMedicalItems().get(0));\n\t\t}\n\t}", "@Override\n\tpublic void deleteInventory(int inventoryId) {\n\t\tInventory inventory = new Inventory(inventoryId);\n\t\tinventoryDao.delete(inventory);\n\t}", "public void shoppingCartCleanUp(){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Shopping cart should be cleaned\");\r\n\t\ttry{\r\n\r\n\t\t\tsleep(1000);\r\n\t\t\tString aQty=getTextandreturn(locator_split(\"lnkShoppingCart\"));\r\n\t\t\tint iQty=Integer.parseInt(aQty);\r\n\t\t\tSystem.out.println(iQty);\r\n\t\t\tsleep(1000);\r\n\t\t\tif(iQty!=0){\r\n\t\t\t\t//click(locator_split(\"lnkShoppingCart\"));\r\n\t\t\t\tclickSpecificElement(returnByValue(getValue(\"TrashLinkText\")),0);\r\n\t\t\t\tshoppingCartCleanUp(); \t\r\n\t\t\t} \r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Removed the Cart Item(s)\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Shopping cart is not cleaned or Error in removing the items from shpping cart\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"lnkShoppingCart\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "@Test\n public void playerWithoutProduction (){\n player.playRole(new Trader(stockGlobal,1));\n assertEquals(true,player.getInventory().getDoublons()==0);\n\n }", "@Test\n public void downGoods()\n {\n }", "@Test\n public void decrementNumberOfRounds() {\n int decrementedNumberOfRounds = TimeValuesHelper.decrementValue(\"1\");\n Assert.assertEquals(0, decrementedNumberOfRounds);\n }", "public void checkInventoryClose(Player player) {\r\n\r\n //Get access from list\r\n ContainerAccess access = null;\r\n for (ContainerAccess acc : accessList) {\r\n if (acc.player == player) {\r\n access = acc;\r\n }\r\n }\r\n\r\n //If no access, return\r\n if (access == null) {\r\n return;\r\n }\r\n\r\n //Get current inventory, create diff string and add the database\r\n HashMap<String, Integer> after = InventoryUtil.compressInventory(access.container.getInventory().getContents());\r\n String diff = InventoryUtil.createDifferenceString(access.beforeInv, after);\r\n if (diff.length() > 1) {\r\n DataManager.addEntry(new ContainerEntry(player, access.loc, diff));\r\n }\r\n accessList.remove(access);\r\n\r\n }", "public void decreaseQuantity(int amount) {\n this.currentQuantity -= amount;\n }", "@Test(expected = VendingMachineException.class)\r\n\tpublic void testRemoveItem_invalid_code() {\r\n\t\tvendMachine.removeItem(\"F\");\r\n\t}", "public Inventory<T> subtract(final Inventory<T> inventory) {\n if (inventory == null) {\n return this;\n }\n final Map<T, Integer> freshMap = new HashMap<>();\n final Map<T, Integer> toSubtract = inventory.getItems();\n for (T t : enums) {\n final int quantity = items.get(t);\n final int subtract = toSubtract.get(t);\n if (subtract >= quantity) {\n freshMap.put(t, 0);\n } else {\n freshMap.put(t, quantity - subtract);\n }\n }\n return new Inventory<T>(enums, Collections.unmodifiableMap(freshMap));\n }", "public void decrementAmount() {\n this.amount--;\n amountSold++;\n }", "@Test\n public void removing_item_from_menu_should_decrease_menu_size_by_1() throws itemNotFoundException_Failure_Scenario {\n\n int initialMenuSize = restaurant.getMenu().size();\n restaurant.removeFromMenu(\"Vegetable lasagne\");\n assertEquals(initialMenuSize+1,restaurant.getMenu().size());\n System.out.println(\"Will Add instead of removal\");\n }", "@Test\n public void updateDecline() throws Exception {\n }", "@Modifying(clearAutomatically = true)\n @Query(\"UPDATE Item i SET i.quantity = i.quantity - ?1 WHERE i =?2\")\n int deductFromStock(double qty, Item item);", "@Test\n\tpublic void testProcessInventoryUpdateUpdateProductIndex() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_ONHAND);\n\t\tinventory.setWarehouseUid(WAREHOUSE_UID);\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tproductSku.setSkuCode(SKU_CODE);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproductSku.setProduct(product);\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\n\t\tfinal IndexNotificationService indexNotificationService = context.mock(IndexNotificationService.class);\n\t\tproductInventoryManagementService.setIndexNotificationService(indexNotificationService);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\tallowing(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\n\t\t\t\tallowing(inventoryDao).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory));\n\t\t\t\tallowing(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(new InventoryJournalRollupImpl()));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\n\t\t\t\texactly(2).of(indexNotificationService).addNotificationForEntityIndexUpdate(IndexType.PRODUCT, product.getUidPk());\n\t\t\t}\n\t\t});\n\n\t\t//Allocate\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, 1, InventoryEventType.STOCK_ALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_ONHAND, order, null);\n\n\t\tfinal InventoryJournalDao inventoryJournalDao2 = context.mock(InventoryJournalDao.class, INVENTORY_JOURNAL_DAO2);\n\t\tjournalingInventoryStrategy.setInventoryJournalDao(inventoryJournalDao2);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup2 = new InventoryJournalRollupImpl();\n\t\tijRollup2.setAllocatedQuantityDelta(QUANTITY_ONHAND);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tatLeast(1).of(inventoryJournalDao2).getRollup(inventoryKey); will(returnValue(ijRollup2));\n\t\t\t}\n\t\t});\n\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(0, inventoryDto.getAvailableQuantityInStock());\n\n\t\t//Deallocate\n\t\tfinal Inventory inventory3 = assembler.assembleDomainFromDto(inventoryDto);\n\n\t\tfinal InventoryDao inventoryDao3 = context.mock(InventoryDao.class, \"inventoryDao3\");\n\t\tfinal InventoryJournalDao inventoryJournalDao3 = context.mock(InventoryJournalDao.class, \"inventoryJournalDao3\");\n\t\tjournalingInventoryStrategy.setInventoryDao(inventoryDao3);\n\t\tjournalingInventoryStrategy.setInventoryJournalDao(inventoryJournalDao3);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tfinal InventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\tallowing(inventoryDao3).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory3));\n\t\t\t\tatLeast(1).of(inventoryJournalDao3).saveOrUpdate(inventoryJournal); will(returnValue(inventoryJournal));\n\t\t\t\tatLeast(1).of(inventoryJournalDao3).getRollup(inventoryKey); will(returnValue(new InventoryJournalRollupImpl()));\n\t\t\t}\n\t\t});\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, 1,\tInventoryEventType.STOCK_DEALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_ONHAND, order, null);\n\n\t\tfinal InventoryJournalDao inventoryJournalDao4 = context.mock(InventoryJournalDao.class, \"inventoryJournalDao4\");\n\t\tjournalingInventoryStrategy.setInventoryJournalDao(inventoryJournalDao4);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup4 = new InventoryJournalRollupImpl();\n\t\tijRollup4.setAllocatedQuantityDelta(-QUANTITY_ONHAND);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tatLeast(1).of(inventoryJournalDao4).getRollup(inventoryKey); will(returnValue(ijRollup4));\n\t\t\t}\n\t\t});\n\n\t\tinventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getAvailableQuantityInStock());\n\t}", "public int getUnitsInventory(){\n\t\treturn unitsInventory;\n\t}", "public void decreaseQuantity(View view) {\n Log.d(\"Method\", \"decreaseQuantity()\");\n updateQuantity(-1);\n }", "@Test\n public void getInventoryTest() {\n Map<String, Integer> response = api.getInventory();\n\n Assert.assertNotNull(response);\n Assert.assertFalse(response.isEmpty());\n\n verify(exactly(1), getRequestedFor(urlEqualTo(\"/store/inventory\")));\n }", "@Test\r\n public void testAtualizar() {\r\n TipoItemRN rn = new TipoItemRN();\r\n TipoItem tipoitem = new TipoItem();\r\n \r\n tipoitem.setDescricao(\"TesteAtualizarTipoItem\");\r\n rn.salvar(tipoitem);\r\n \r\n tipoitem=null;\r\n \r\n tipoitem = rn.pesquisarDescricaEq(\"TesteAtualizarTipoItem\");\r\n \r\n if (tipoitem != null){\r\n tipoitem.setDescricao(\"TesteAtualizarTipoItemAlterado\");\r\n rn.salvar(tipoitem);\r\n tipoitem=null;\r\n }\r\n tipoitem = rn.pesquisarDescricaEq(\"TesteAtualizarTipoItemAlterado\");\r\n \r\n assertEquals(\"TesteAtualizarTipoItemAlterado\", tipoitem.getDescricao());\r\n \r\n rn.remover(tipoitem);\r\n }", "@Override\n\tpublic void onInventoryChanged() {\n\t\tsuper.onInventoryChanged();\n\t}", "@After\r\n public void cleanTestObject()\r\n {\r\n testLongTermStorage.resetInventory();\r\n }", "@Test\n public void setAndThenDeleteStorageAndSelfDestruct() {\n byte[] txDataMethodArguments = ABIUtil.encodeMethodArguments(\"putStorage\");\n AvmRule.ResultWrapper resultWrapper = avmRule.call(from, dappAddr, BigInteger.ZERO, txDataMethodArguments, energyLimit, energyPrice);\n Assert.assertTrue(resultWrapper.getReceiptStatus().isSuccess());\n\n txDataMethodArguments = ABIUtil.encodeMethodArguments(\"resetStorageSelfDestruct\");\n resultWrapper = avmRule.call(from, dappAddr, BigInteger.ZERO, txDataMethodArguments, energyLimit, energyPrice);\n Assert.assertTrue(resultWrapper.getReceiptStatus().isSuccess());\n Assert.assertEquals(65168 - 65168 / 2, energyLimit - resultWrapper.getTransactionResult().getEnergyRemaining());\n }", "@Test\r\n\tpublic void remove_items() {\r\n//Go to http://www.automationpractice.com\r\n//Mouse hover on product one\r\n//Click 'Add to Cart'\r\n//Click 'Continue shopping' button\r\n//Verify Cart has text '1 Product'\r\n//Mouse hover over 'Cart 1 product' button\r\n//Verify product listed\r\n//Now mouse hover on another product\r\n//click 'Add to cart' button\r\n//Click on Porceed to checkout\r\n//Mouse hover over 'Cart 2 product' button\r\n//Verify 2 product listed now\r\n//click 'X'button for first product\r\n//Verify 1 product deleted and other remain\r\n\r\n\t}", "@Override\r\n public void updatedSaleInventory(ItemAndQuantity lastItem) {\r\n }", "public void removeItem(String itemName, int Qty) {\n if (checkExist(itemName, Qty) == true) {\n int i;\n //System.out.println(checkExist(itemName));\n for (i = 0; i < inventory.size(); i++) {\n Map<String, Object> removedItem = new HashMap<>();\n removedItem = inventory.get(i);\n\n if (itemName.equals(removedItem.get(\"Name\").toString())) {\n int a = Integer.parseInt((String) removedItem.get(\"Amount\"));\n removedItem.put(\"Amount\", a - Qty);\n\n if (a - Qty < 1) {\n removedItem.put(\"Existence\", \"N\");\n }\n }\n }\n } else {\n System.out.println(\"Item \" + itemName + \" is not available.\");\n for (int i = 0; i < inventory.size(); i++) {\n Map<String, Object> removedItem = new HashMap<>();\n removedItem = inventory.get(i);\n\n if (itemName.equals(removedItem.get(\"Name\").toString())) {\n System.out.println(\"Since item \" + itemName + \"'s amout is not enough, try less amount.\");\n }\n }\n }\n outPutFile();\n }", "public void onInventoryChanged()\n\t{\n\t\tfor (int i = 0; i < this.items.length; i++)\n\t\t{\n\t\t\tItemStack stack = this.items[i];\n\t\t\tif (stack != null && stack.stackSize <= 0)\n\t\t\t{\n\t\t\t\tthis.items[i] = null;\n\t\t\t}\n\n\t\t}\n\t}", "@Override\n public void onClick(View view) {\n int rowID = Integer.parseInt(view.getTag().toString());\n\n // Read data, in particular inventoryQuantity, from cursor based on rowID\n tempCursor.moveToFirst();\n // Find the index of columns of inventory attributes that we are interested in\n int idColumnIndex = tempCursor.getColumnIndex(InventoryEntry._ID);\n int tempQuantityColumnIndex = tempCursor.getColumnIndex(InventoryEntry.COLUMN_INVENTORY_QUANTITY);\n\n // Move cursor to location in list where user clicked on the button\n tempCursor.move(rowID);\n // Extract out the value we are interested in from the Cursor for the given column index\n // Reminder: temInventoryID is id in database which is AUTOINCREMENTing & rowID is id of row where user clicked\n int tempInventoryId = tempCursor.getInt(idColumnIndex);\n int tempInventoryQuantity = tempCursor.getInt(tempQuantityColumnIndex);\n\n // Reduce quantity by 1\n if (tempInventoryQuantity > 0) {\n tempInventoryQuantity--;\n } else {\n Toast.makeText(tempContext, \"Can't reduce quantity, already 0\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Prepare quantity to be stored/updated in database\n // Create ContentValues object where column names are the keys and extracted quantity value\n // from cursor is the values\n ContentValues values = new ContentValues();\n values.put(InventoryEntry.COLUMN_INVENTORY_QUANTITY, tempInventoryQuantity);\n\n // Set up WHERE clause, e.g: WHERE NAME=PAPER, WHERE _ID=4;\n String selection = InventoryEntry._ID + \" = ? \";\n String[] selectionArgs = {Integer.toString(tempInventoryId)};\n\n // Update inventory into the provider, returning number of rows updated\n InventoryDbHelper mDbHelper = new InventoryDbHelper(tempContext); // Create database helper\n\n // Gets the data repository in write mode\n SQLiteDatabase db = mDbHelper.getWritableDatabase();\n\n // Update database. Returned int the number of rows affected\n int numberOfRowsAffected = db.update(InventoryEntry.TABLE_NAME, values, selection, selectionArgs);\n\n // Show a toast message depending on whether or not the quantity update was successful\n if (numberOfRowsAffected < 1) {\n Toast.makeText(tempContext, \"Error with reducing quantity by 1\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(tempContext, \"Quantity reduced by 1\", Toast.LENGTH_SHORT).show();\n }\n if (numberOfRowsAffected != 0) {\n tempContext.getContentResolver().notifyChange(InventoryEntry.CONTENT_URI, null);\n }\n }", "@Test\n public void unarchiveAlreadyUnarchive() throws BusinessException {\n final ProductService productService = new ProductService();\n\n final Long pProductId = 1L;\n\n new Expectations() {\n\n {\n\n Deencapsulation.setField(productService, \"productDAO\", mockProductDAO);\n\n ProductBO productBO = new ProductBO();\n productBO.setStatus(Status.CREATED);\n mockProductDAO.get(1L);\n times = 1;\n returns(productBO);\n }\n };\n\n productService.unarchive(pProductId);\n }", "void updateInventory() {\n\n // make sure there isn't already an inventory record\n MrnInventory checkInv[] =\n new MrnInventory(survey.getSurveyId()).get();\n\n if (dbg3) {\n System.out.println(\"<br>updateInventory: survey.getSurveyId() = \" +\n survey.getSurveyId());\n System.out.println(\"<br>updateInventory: inventory = \" + inventory);\n System.out.println(\"<br>updateInventory: checkInv[0] = \" +\n checkInv[0]);\n System.out.println(\"<br>updateInventory: checkInv.length = \" +\n checkInv.length);\n } // if (dbg3)\n\n if (checkInv.length > 0) {\n\n //MrnInventory updInventory = new MrnInventory();\n\n if (dbg3) {\n System.out.println(\"<br>updateInventory: dateMin = \" + dateMin);\n System.out.println(\"<br>updateInventory: dateMax = \" + dateMax);\n System.out.println(\"<br>updateInventory: latitudeMin = \" + latitudeMin);\n System.out.println(\"<br>updateInventory: latitudeMax = \" + latitudeMax);\n System.out.println(\"<br>updateInventory: longitudeMin = \" + longitudeMin);\n System.out.println(\"<br>updateInventory: longitudeMax = \" + longitudeMax);\n } // if (dbg3)\n\n // check dates\n if (MrnInventory.DATENULL.equals(checkInv[0].getDateStart()) ||\n dateMin.before(checkInv[0].getDateStart())) {\n inventory.setDateStart(dateMin);\n\n } // if (dateMin.before(checkInv[0].getDateStart()))\n if (MrnInventory.DATENULL.equals(checkInv[0].getDateEnd()) ||\n dateMax.after(checkInv[0].getDateEnd())) {\n inventory.setDateEnd(dateMax);\n } // if (dateMax.after(checkInv[0].getDateEnd()))\n\n // check area\n if ((MrnInventory.FLOATNULL == checkInv[0].getLatNorth()) ||\n (latitudeMin < checkInv[0].getLatNorth())) {\n inventory.setLatNorth(latitudeMin);\n } // if (latitudeMin < checkInv[0].getLatNorth())\n if ((MrnInventory.FLOATNULL == checkInv[0].getLatSouth()) ||\n (latitudeMax > checkInv[0].getLatSouth())) {\n inventory.setLatSouth(latitudeMax);\n } // if (latitudeMin < checkInv[0].getLatSouth())\n if ((MrnInventory.FLOATNULL == checkInv[0].getLongWest()) ||\n (longitudeMin < checkInv[0].getLongWest())) {\n inventory.setLongWest(longitudeMin);\n } // if (longitudeMin < checkInv[0].getlongWest())\n if ((MrnInventory.FLOATNULL == checkInv[0].getLongEast()) ||\n (longitudeMax > checkInv[0].getLongEast())) {\n inventory.setLongEast(longitudeMax);\n } // if (longitudeMax < checkInv[0].getlongEast())\n\n // check others\n if (\"\".equals(checkInv[0].getCruiseName(\"\"))) {\n inventory.setCruiseName(inventory.getCruiseName());\n } // if (\"\".equals(checkInv[0].getCruiseName()))\n if (\"\".equals(checkInv[0].getProjectName(\"\"))) {\n inventory.setProjectName(inventory.getProjectName());\n } // if (\"\".equals(checkInv[0].getProjectName()))\n\n inventory.setDataRecorded(\"Y\");\n\n MrnInventory whereInventory =\n new MrnInventory(survey.getSurveyId());\n\n try {\n //whereInventory.upd(updInventory);\n whereInventory.upd(inventory);\n } catch(Exception e) {\n System.err.println(\"updateInventory: upd inventory = \" + inventory);\n System.err.println(\"updateInventory: upd whereInventory = \" + whereInventory);\n System.err.println(\"updateStation: upd sql = \" + whereInventory.getUpdStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\n \"<br>updateInventory: upd inventory = \" + inventory);\n if (dbg3) System.out.println(\n \"<br>updateInventory: upd whereInventory = \" + whereInventory);\n //if (dbg3)\n System.out.println(\"<br>updateInventory: updSQL = \" + whereInventory.getUpdStr());\n\n\n/* } else {\n inventory.setSurveyId(survey.getSurveyId());\n // defaults\n inventory.setDataCentre(\"SADCO\");\n //inventory.setCountryCode(0); // done in LoadMrnData\n inventory.setTargetCountryCode(0);\n inventory.setStnidPrefix(survey.getInstitute());\n inventory.setDataRecorded(\"Y\");\n\n // from data\n inventory.setDateStart(dateMin);\n inventory.setDateEnd(dateMax);\n inventory.setLatNorth(latitudeMin);\n inventory.setLatSouth(latitudeMax);\n inventory.setLongWest(longitudeMin);\n inventory.setLongEast(longitudeMax);\n\n // from screen - done in LoadMRNData.getArgsFromFile()\n //inventory.setCountryCode(screenInv.getCountryCode());\n //inventory.setPlanamCode(screenInv.getPlanamCode());\n //inventory.setInstitCode(screenInv.getInstitCode());\n //inventory.setCruiseName(screenInv.getCruiseName());\n //inventory.setProjectName(screenInv.getProjectName());\n //inventory.setAreaname(screenInv.getAreaname()); // use as default to show on screen\n //inventory.setDomain(screenInv.getDomain()); // use as default to show on screen\n\n inventory.put();\n*/\n } // if (checkInv.length > 0)\n\n // make sure there isn't already an invStats record\n MrnInvStats checkInvStats[] =\n new MrnInvStats(survey.getSurveyId()).get();\n\n MrnInvStats invStats = new MrnInvStats();\n\n if (checkInvStats.length > 0) {\n\n System.out.println(\"updateInventory: checkInvStats[0] = \" + checkInvStats[0]);\n\n invStats.setStationCnt(\n checkInvStats[0].getStationCnt() + newStationCount); //stationCount\n invStats.setWeatherCnt(\n checkNull(checkInvStats[0].getWeatherCnt()) + weatherCount);\n\n if (dataType == CURRENTS) {\n\n invStats.setWatcurrentsCnt(\n checkNull(checkInvStats[0].getWatcurrentsCnt()) + currentsCount);\n\n } else if (dataType == SEDIMENT) {\n\n System.out.println(\n \"updateInventory: checkInvStats[0].getSedphyCnt(), sedphyCount = \" +\n checkInvStats[0].getSedphyCnt() + \" \" + sedphyCount + \" \" +\n checkNull(checkInvStats[0].getSedphyCnt()));\n System.out.println(\n \"updateInventory: checkInvStats[0].getSedchem1Cnt(), sedchem1Count = \" +\n checkInvStats[0].getSedchem1Cnt() + \" \" + sedchem1Count + \" \" +\n checkNull(checkInvStats[0].getSedchem1Cnt()));\n System.out.println(\n \"updateInventory: checkInvStats[0].getSedchem2Cnt(), sedchem2Count = \" +\n checkInvStats[0].getSedchem2Cnt() + \" \" + sedchem2Count + \" \" +\n checkNull(checkInvStats[0].getSedchem2Cnt()));\n System.out.println(\n \"updateInventory: checkInvStats[0].getSedpol1Cnt(), sedpol1Count = \" +\n checkInvStats[0].getSedpol1Cnt() + \" \" + sedpol1Count + \" \" +\n checkNull(checkInvStats[0].getSedpol1Cnt()));\n System.out.println(\n \"updateInventory: checkInvStats[0].getSedpol2Cnt(), sedpol2Count = \" +\n checkInvStats[0].getSedpol2Cnt() + \" \" + sedpol2Count + \" \" +\n checkNull(checkInvStats[0].getSedpol2Cnt()));\n\n invStats.setSedphyCnt(\n checkNull(checkInvStats[0].getSedphyCnt()) + sedphyCount);\n invStats.setSedchem1Cnt(\n checkNull(checkInvStats[0].getSedchem1Cnt()) + sedchem1Count);\n invStats.setSedchem2Cnt(\n checkNull(checkInvStats[0].getSedchem2Cnt()) + sedchem2Count);\n invStats.setSedpol1Cnt(\n checkNull(checkInvStats[0].getSedpol1Cnt()) + sedpol1Count);\n invStats.setSedpol2Cnt(\n checkNull(checkInvStats[0].getSedpol2Cnt()) + sedpol2Count);\n\n System.out.println(\"updateInventory: invStats = \" + invStats);\n\n\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n\n invStats.setWatphyCnt(\n checkNull(checkInvStats[0].getWatphyCnt()) + watphyCount);\n invStats.setWatchem1Cnt(\n checkNull(checkInvStats[0].getWatchem1Cnt()) + watchem1Count);\n invStats.setWatchem2Cnt(\n checkNull(checkInvStats[0].getWatchem2Cnt()) + watchem2Count);\n invStats.setWatchlCnt(\n checkNull(checkInvStats[0].getWatchlCnt()) + watchlCount);\n invStats.setWatnutCnt(\n checkNull(checkInvStats[0].getWatnutCnt()) + watnutCount);\n invStats.setWatpol1Cnt(\n checkNull(checkInvStats[0].getWatpol1Cnt()) + watpol1Count);\n invStats.setWatpol2Cnt(\n checkNull(checkInvStats[0].getWatpol2Cnt()) + watpol2Count);\n\n } // if (dataType == CURRENTS)\n\n MrnInvStats whereInvStats =\n new MrnInvStats(survey.getSurveyId());\n try {\n whereInvStats.upd(invStats);\n } catch(Exception e) {\n System.err.println(\"updateInventory: upd invStats = \" + invStats);\n System.err.println(\"updateInventory: upd whereInvStats = \" + whereInvStats);\n System.err.println(\"updateInventory: upd sql = \" + whereInvStats.getUpdStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>updateInventory: upd invStats = \" +\n invStats);\n\n } else {\n\n invStats.setStationCnt(stationCount);\n invStats.setWeatherCnt(weatherCount);\n\n if (dataType == CURRENTS) {\n\n invStats.setWatcurrentsCnt(currentsCount);\n\n } else if (dataType == SEDIMENT) {\n\n invStats.setSedphyCnt(sedphyCount);\n invStats.setSedchem1Cnt(sedchem1Count);\n invStats.setSedchem2Cnt(sedchem2Count);\n invStats.setSedpol1Cnt(sedpol1Count);\n invStats.setSedpol2Cnt(sedpol2Count);\n\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n\n invStats.setWatphyCnt(watphyCount);\n invStats.setWatchem1Cnt(watchem1Count);\n invStats.setWatchem2Cnt(watchem2Count);\n invStats.setWatchlCnt(watchlCount);\n invStats.setWatnutCnt(watnutCount);\n invStats.setWatpol1Cnt(watpol1Count);\n invStats.setWatpol2Cnt(watpol2Count);\n\n } // if (dataType == CURRENTS)\n\n invStats.setSurveyId(survey.getSurveyId());\n try {\n invStats.put();\n } catch(Exception e) {\n System.err.println(\"updateInventory: put invStats = \" + invStats);\n System.err.println(\"updateInventory: put sql = \" + invStats.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>updateInventory: put invStats = \" +\n invStats);\n } // if (checkInvStats.length > 0)\n\n/* ????\n\n // define the value that should be updated\n MrnInventory updateInv = new MrnInventory();\n updateInv.setDateStart(dateMin);\n\n // define the 'where' clause\n MrnInventory whereInv = new MrnInventory(inventory.getSurveyId());\n\n // do the update\n whereInv.upd(updateInv);\n\n*/\n\n }", "public void onContainerClosed(EntityPlayer p_75134_1_) {\n/* 131 */ super.onContainerClosed(p_75134_1_);\n/* 132 */ this.field_111243_a.closeInventory(p_75134_1_);\n/* */ }", "void openInventory(Player player, SimpleInventory inventory);", "@Test\n\tpublic void getInventoryTest() {\n\t\tLongTermStorage ltsTest1 = new LongTermStorage();\n\t\tassertNotNull(ltsTest1.getInventory());\n\t}", "@Test(expected = InventoryException.class)\n\tpublic void testAddInventoryException() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"4\", \"-1\", \"asdf\", \"3\");\n\t}", "@Test\n public void shouldDecrementCredibilityScore(){\n mEventsReport.userUpVote();\n mEventsReport.userDownVote();\n assertEquals(0, mEventsReport.getReportCredibilityScore());\n }", "@Test\n @Prepare(autoImport = true, autoClearExistsData = true)\n public void testdeleteById() throws Exception {\n\n int[] ids = { 111123456, 111123457, 111123458, 111123459 };\n for (int id : ids) {\n inventoryOutDao.deleteById(id);\n }\n for (int id : ids) {\n assertNull(inventoryOutDao.getById(id));\n }\n\n // List<InventoryOutDO> list = inventoryOutDao.list(new\n // InventoryOutDO());\n // assertResultListSorted(list, \"id\");\n }", "@Override\n\tpublic void openInventory() {\n\t\t\n\t}", "@Test(expected = InventoryException.class)\r\n public void testAddInventoryException() throws InventoryException {\r\n coffeeMaker.addInventory(\"4\", \"-1\", \"asdf\", \"3\");\r\n coffeeMaker.addInventory(\"coffee\", \"milk\", \"sugar\", \"choco\");\r\n\r\n }", "@Test\n public void removeNegativeIdItemTest() {\n List<Item> items = itemSrv.getAllItems();\n Assert.assertNotNull(\"List of items is null\", items);\n\n Assert.assertEquals(\"Wrong initial size of the list, should be 0\", 0, items.size());\n\n Assert.assertEquals(\"Should have returned REMOVE_NON_EXISTENT code\", ErrCode.REMOVE_NON_EXISTENT, itemSrv.removeItemById(-1L));\n Assert.assertEquals(\"Negative and non-existing item deletion was attempted, count should be still 0\", 0, itemSrv.getAllItems().size());\n }", "public void dailyInventoryCheck(){\n\n\t\tint i;\n\t\tStock tempStock, tempRestockTracker;\n\t\tint listSizeInventory = this.inventory.size();\n\t\tfor(i = 0; i < listSizeInventory; i++){\n\n\t\t\t\tif(this.inventory.get(i).getStock() == 0){\n\t\t\t\t\t//If stock is 0 add 1 to the out of stock counnter then reset it to the inventory level\n\t\t\t\t\tthis.inventory.get(i).setStock(inventoryLevel);\n\t\t\t\t\tthis.inventoryOrdersDone.get(i).addStock(1);\n\t\t\t\t\t//inventoryOrdersDone.set(i,tempRestockTracker);\n\t\t\t\t\t//tempStock.setStock(inventoryLevel);\n\t\t\t\t\t//this.inventory.set(i,tempStock);\n\t\t\t\t}\n\t\t\t}\n\n\t}", "@Test\n public void deleteInvoice() {\n Customer customer = new Customer();\n customer.setFirstName(\"Dominick\");\n customer.setLastName(\"DeChristofaro\");\n customer.setEmail(\"[email protected]\");\n customer.setCompany(\"Omni\");\n customer.setPhone(\"999-999-9999\");\n customer = service.saveCustomer(customer);\n\n // Verify it was added to the database\n Customer customerCopy = service.findCustomer(customer.getCustomerId());\n TestCase.assertEquals(customerCopy, customer);\n\n // Add an Item to the database\n Item item = new Item();\n item.setName(\"Drill\");\n item.setDescription(\"Power Tool\");\n item.setDaily_rate(new BigDecimal(\"24.99\"));\n item = service.saveItem(item);\n\n // Verify it was added\n Item itemCopy = service.findItem(item.getItem_id());\n TestCase.assertEquals(itemCopy, item);\n\n // Add an InvoiceItem to the database\n Invoice_Item invoiceItem = new Invoice_Item();\n invoiceItem.setItem_id(item.getItem_id());\n invoiceItem.setQuantity(42);\n invoiceItem.setUnit_rate(new BigDecimal(\"4.99\"));\n invoiceItem.setDiscount(new BigDecimal(\"0.99\"));\n\n // Collect all the InvoiceItems into a list\n List<Invoice_Item> invoiceItemList = new ArrayList<>();\n invoiceItemList.add(invoiceItem);\n\n // Create an InvoiceViewModel\n InvoiceViewModel invoiceViewModel = new InvoiceViewModel();\n invoiceViewModel.setCustomer_id(customer.getCustomerId());\n invoiceViewModel.setOrder_date(LocalDate.of(2000,1,1));\n invoiceViewModel.setPickup_date(LocalDate.of(2000,2,2));\n invoiceViewModel.setReturn_date(LocalDate.of(2000,3,3));\n invoiceViewModel.setLate_fee(new BigDecimal(\"4.99\"));\n invoiceViewModel.setInvoice_items(invoiceItemList);\n invoiceViewModel = service.createInvoiceViewModel(invoiceViewModel);\n\n // Delete Invoice\n service.deleteInvoiceViewModel(invoiceViewModel.getInvoice_id());\n }", "@Test\n public void removing_item_from_menu_should_decrease_menu_size_by_1() throws itemNotFoundException {\n\n int initialMenuSize = restaurant.getMenu().size();\n restaurant.removeFromMenu(\"Vegetable lasagne\");\n assertEquals(initialMenuSize-1,restaurant.getMenu().size());\n }", "public abstract void decrement(int delta);", "public void decrement(View view){\n if(quantity == 1) {\n Toast t = Toast.makeText(this, \"You cannot order 0 coffees\", Toast.LENGTH_LONG);\n t.show();\n return;\n }//could be error if ever set not to a positive number\n\n quantity = quantity - 1;\n displayQuantity(quantity);\n }", "public void removeEventInventoryList (List<Inventory> eventInventoryList) throws InventoryNotFoundException {\n requireNonNull(eventInventoryList);\n\n System.out.println(\"removeEventInventoryList called with eventIL \" + eventInventoryList.size());\n\n for (Inventory item : eventInventoryList) {\n\n Optional<Inventory> optional = this.list.stream().filter(item::isSameInventory).findAny();\n\n if (optional.isPresent()) {\n\n Inventory existingItem = optional.get();\n\n System.out.println(\"EXISTINGITEM IS \" + existingItem.getEventInstances());\n\n existingItem.setEventInstances(existingItem.getEventInstances() - 1);\n\n if (existingItem.getEventInstances() == 0) {\n remove(existingItem);\n }\n\n System.out.println(\"NOW IT IS \" + existingItem.getEventInstances());\n\n }\n\n }\n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddMilkNotInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"abcd\", \"0\", \"0\");\n\t}", "@Test(expected = InventoryException.class)\n\tpublic void testAddSugarPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"15\", \"0\");\n\t}", "public void onQueryInventoryFinished(IabResult result, Inventory inv);", "@Test(expected = InventoryException.class)\n\tpublic void testAddSugarNotInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"abcd\", \"0\");\n\t}", "@Test\n void leaveQuiz() throws Exception {\n quizService.JoinQuiz( \"mahnaemehjeff\", \"S3NDB0BSANDV4G3N3\");\n int oldCount = quizService.findById(1L).getParticipants().size();\n\n quizService.LeaveQuiz(\"S3NDB0BSANDV4G3N3\", \"mahnaemehjeff\");\n int newCount = quizService.findById(1L).getParticipants().size();\n\n assertNotEquals(oldCount, newCount);\n }", "@Override\n public void onClick(View v) {\n\n ((CreateDocketActivityPart2) activity).deleteMachineItem(position);\n }", "@Test\n\t public void test002() {\n\t\tFloor newFloor = new Floor(6);\n\t\tShelf newShelf = new Shelf(new Point(0, 5));\n \tRobot newRobot = new Robot(newFloor,newShelf,2,2,100);\n \tinventory newInventory = new inventory(newFloor, newRobot);\n\t\t \n\t\tShelf s = newInventory.finditem(\"pen\");\n\t\tassertTrue(s.Item.contains(\"pen\"));\n\t }" ]
[ "0.63836735", "0.6383155", "0.63801086", "0.6258338", "0.6193177", "0.61651", "0.615756", "0.6140261", "0.6111631", "0.61038125", "0.60855055", "0.5977778", "0.58889186", "0.5879702", "0.5870186", "0.586065", "0.58527356", "0.58490574", "0.5840498", "0.5816706", "0.572902", "0.5721767", "0.568623", "0.5678723", "0.5676513", "0.5673727", "0.56661534", "0.56265765", "0.56166977", "0.5602831", "0.5580914", "0.55706203", "0.5566966", "0.5566641", "0.5560135", "0.5519192", "0.5513711", "0.551267", "0.55062056", "0.54982245", "0.5461505", "0.5444079", "0.5443141", "0.5410762", "0.5385077", "0.5380663", "0.5371436", "0.53660125", "0.53527683", "0.53398705", "0.53373915", "0.53333807", "0.5320991", "0.52929306", "0.52914375", "0.5284218", "0.5282439", "0.5276012", "0.52748877", "0.52724063", "0.52715224", "0.5261583", "0.52572757", "0.5254485", "0.52537674", "0.52520317", "0.5244788", "0.524474", "0.52417195", "0.52414787", "0.52334124", "0.5230392", "0.52296543", "0.52237386", "0.5221374", "0.5201685", "0.5198341", "0.5198222", "0.51955765", "0.5194814", "0.5191914", "0.51897764", "0.51866156", "0.5185767", "0.51847655", "0.5170009", "0.51691556", "0.51633406", "0.5162572", "0.5156905", "0.5153456", "0.51452184", "0.5144954", "0.5138663", "0.5137318", "0.51326716", "0.5131593", "0.51310635", "0.5127361", "0.51264316" ]
0.8349475
0
Compute inhabitants of a node as sum of inhabitants in his subneighborhoods
private long census(ConstituentsAddressNode crt) throws P2PDDSQLException { if(DEBUG) System.err.println("ConstituentsModel:census: start"); if((crt==null)||(crt.n_data==null)){ if(DEBUG) System.err.println("ConstituentsModel:census: end no ID"); return 0; } long n_ID = crt.n_data.neighborhoodID; if(DEBUG) System.err.println("ConstituentsModel:census: start nID="+n_ID); if(n_ID <= 0){ if(DEBUG) System.err.println("ConstituentsModel:census: start nID="+n_ID+" abandon"); return 0; } long result = 0; int neighborhoods[] = {0}; if(crt.isColapsed()){ if(DEBUG) System.err.println("ConstituentsModel:census: this is colapsed"); result = censusColapsed(crt, neighborhoods); }else{ for(int k=0; k<crt.children.length; k++) { if(!running){ if(DEBUG) System.err.println("ConstituentsModel:census: start nID="+n_ID+" abandon request"); return 0; } ConstituentsNode child = crt.children[k]; if(child instanceof ConstituentsAddressNode) { result += census((ConstituentsAddressNode)child); neighborhoods[0]++; } if(child instanceof ConstituentsIDNode) result ++; } } crt.neighborhoods = neighborhoods[0]; crt.location.inhabitants = (int)result; crt.location.censusDone = true; announce(crt); if(DEBUG) System.err.println("ConstituentsModel:censusColapsed: start nID="+n_ID+" got="+result); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int infectNeighbours(Map map);", "private Map<String, Integer> getContinentEnrichment(PersonActivity in) {\n\t\tList<String> places = in.getCategoryKeys(CategoryType.PLACE);\n\t\tMap<String, Integer> continents = places.stream().map(place -> countryContinentRelation.get(place))\n\t\t\t\t.filter(x -> x != null)\n\t\t\t\t.collect(Collectors.groupingBy(Function.identity(), Collectors.reducing(0, e -> 1, Integer::sum)));\n\t\treturn continents;\n\t}", "int sumRootToLeafNumbers();", "private int getAliveNeighboursCount (int line, int column) {\n assert isInUniverse(line,column);\n// System.out.println(\"getAliveNeighboursCount for \"+line+column);\n int aliveNeighbours = 0;\n// System.out.println(\"->\"+(line-1)+\"|\"+(column-1));\n if (isInUniverse((line-1),(column-1))) if (getCell((line-1),(column-1))) aliveNeighbours++; // -1/-1\n if (isInUniverse((line-1), column) ) if (getCell((line-1), column)) aliveNeighbours++; // -1/0\n if (isInUniverse((line-1),(column+1))) if (getCell((line-1),(column+1))) aliveNeighbours++; // -1/+1\n if (isInUniverse( line ,(column-1))) if (getCell( line ,(column-1))) aliveNeighbours++; // 0/-1\n if (isInUniverse( line ,(column+1))) if (getCell( line ,(column+1))) aliveNeighbours++; // 0/+1\n if (isInUniverse((line+1),(column-1))) if (getCell((line+1),(column-1))) aliveNeighbours++; // +1/-1\n if (isInUniverse((line+1), column) ) if (getCell((line+1), column)) aliveNeighbours++; // +1/0\n if (isInUniverse((line+1),(column+1))) if (getCell((line+1),(column+1))) aliveNeighbours++; // +1/+1\n// System.out.println(\"getAliveNeighboursCount done\");\n return aliveNeighbours;\n }", "public Map<V,Integer> inDegree () {\n Map<V,Integer> result = new HashMap<V,Integer>();\n for (V v: dag.keySet()) result.put(v, 0); // All in-degrees are 0. Will be updated later\n for (V from: dag.keySet()) {\n for (V to: dag.get(from)) {\n result.put(to, result.get(to) + 1); // Increment in-degree\n }\n }\n return result;\n }", "public int numIslands(char[][] grid) {\n\n int n = grid.length;\n if(n==0)\n return 0;\n int m = grid[0].length;\n if(m==0)\n return 0;\n \n int ans =0;\n for(int i=0;i<n;i++)\n {\n m = grid[i].length;\n for(int j=0;j<m;j++)\n {\n if(grid[i][j]=='1')\n {\n ans++;\n dfs(grid,i,j,n,m);\n }\n }\n }\n return ans;\n }", "public int numIslands(char[][] grid){\n int count = 0;\n for (nt i = 0; i < grid.length; i++){\n for (int j = 0; j < grid[0].length; j++){\n if (grid[i][j] == '1'){\n dfs(grid, i, j);\n count++;\n }\n }\n }\n return count;\n}", "public static int getNodeCount2(Node<Integer> node) {\n node.visited = true;\n //Count this node (1) and it's children (getNodeCount)\n return 1 + node.connected.stream().filter(n -> !n.visited).map(JourneyToMoon::getNodeCount2).reduce(Integer::sum).orElse(0);\n }", "public void updateNeighborhood(){\n\t\tList<AnimalEntity> holdingCell = new ArrayList<AnimalEntity>();\n\t\t\n\t\t//add all entities to cell\n\t\tfor(int key: creatureEntities.keySet()){\n\t\t\tfor(AnimalEntity entity: creatureEntities.get(key)){\n\t\t\t\tholdingCell.add(entity);\n\t\t\t}\n\t\t}\n\t\t//clear the neighborhood\n\t\tfor(int key: creatureEntities.keySet()){\n\t\t\tcreatureEntities.get(key).clear();\n\t\t}\n\t\t//add them back\n\t\tfor(AnimalEntity entity: holdingCell){\n\t\t\taddAnimal(entity);\n\t\t}\n\t}", "public int numIslands(char[][] grid) {\n\t int noOfIslands = 0;\n\t if(grid.length == 0) return 0;\n\t boolean[] [] visited = new boolean[grid.length][grid[0].length];\n\t \n\t for(int i=0;i<grid.length;i++){\n\t for(int j=0;j<grid[0].length;j++){\n\t if(visited[i][j] == false && grid[i][j]=='1'){\n\t gatherIslandNodes(visited, grid, i, j);\n\t noOfIslands++;\n\t }\n\t \n\t }\n\t }\n\t return noOfIslands;\n\t }", "public List<Inhabitant> getInhabitants() {\n\t\treturn inhabitants;\n\t}", "private void manhattan(Node node){\n int row1 = this.row;\n int col1 = this.col;\n int row2 = node.getRow();\n int col2 = node.getCol();\n\n int x = Math.abs(row1-row2);\n int y = Math.abs(col1-col2);\n\n this.hVal = x+y;\n }", "@Override\n\tpublic List<Cell> getImmediateNeighbors(Cell cell) {\n\t\tList<Cell> neighbors = new ArrayList<Cell>();\n\t\tint north, east, south, west;\n\t\t\n\t\tnorth = getNorthCell(cell);\n\t\teast = getEastCell(cell);\n\t\tsouth = getSouthCell(cell);\n\t\twest = getWestCell(cell);\n\t\t\n\t\tif (north != -1) { neighbors.add(getCellList().get(north)); }\n\t\tif (east != -1) { neighbors.add(getCellList().get(east)); }\n\t\tif (south != -1) { neighbors.add(getCellList().get(south)); }\n\t\tif (west != -1) { neighbors.add(getCellList().get(west)); }\n\t\t\n\t\treturn neighbors;\n\t}", "public int numIslands(char[][] grid) {\n int m = grid.length;\n if (m == 0) {\n return 0;\n }\n int n = grid[0].length;\n char[][] map = new char[m][n];\n int[][] visit = new int[m][n];\n for (int i = 0; i < m; i++)\n for (int j = 0; j < n; j++)\n map[i][j] = grid[i][j];\n\n int count = 0;\n\n for (int i = 0; i < m; i++)\n for (int j = 0; j < n; j++) {\n if (grid[i][j] == '1' && visit[i][j] == 0) {\n count++;\n findIsland(map, visit, i, j);\n }\n }\n\n return count;\n }", "public static int numIslands(char[][] grid) {\n int row = grid.length;\n int col = grid[0].length;\n int ans = 0;\n boolean[][] visited = new boolean[row][col];\n for (int i = 0; i < row; i++) {\n for (int j = 0; j < col; j++) {\n if (!visited[i][j] && grid[i][j] == '1') {\n dfs(grid, visited, i, j);\n ans++;\n }\n visited[i][j] = true;\n }\n }\n return ans;\n }", "public int[] getUnderlyingNeighbours(int node) {\n ArrayList ns = new ArrayList(10);// should be plenty\n for (int i = 0; i < nodeCount; i++)\n if (roads[node][i] > 0 || roads[i][node] > 0)\n ns.add(Integer.valueOf(i));\n int[] nbs = new int[ns.size()];\n for (int i = 0; i < ns.size(); i++)\n nbs[i] = ((Integer) ns.get(i)).intValue();\n return nbs;\n }", "protected abstract int countNeighbors(int x, int y);", "@Override\n public long[ ][ ] count() {\n // precompute common nodes\n for (int x = 0; x < n; x++) {\n for (int n1 = 0; n1 < deg[x]; n1++) {\n int a = adj[x][n1];\n for (int n2 = n1 + 1; n2 < deg[x]; n2++) {\n int b = adj[x][n2];\n Tuple ab = createTuple(a, b);\n common2.put(ab, common2.getOrDefault(ab, 0) + 1);\n for (int n3 = n2 + 1; n3 < deg[x]; n3++) {\n int c = adj[x][n3];\n boolean st = adjacent(adj[a], b) ? (adjacent(adj[a], c) || adjacent(adj[b], c)) :\n (adjacent(adj[a], c) && adjacent(adj[b], c));\n if (!st) continue;\n Tuple abc = createTuple(a, b, c);\n common3.put(abc, common3.getOrDefault(abc, 0) + 1);\n }\n }\n }\n }\n\n // precompute triangles that span over edges\n int[ ] tri = countTriangles();\n\n // count full graphlets\n long[ ] C5 = new long[n];\n int[ ] neigh = new int[n];\n int[ ] neigh2 = new int[n];\n int nn, nn2;\n for (int x = 0; x < n; x++) {\n for (int nx = 0; nx < deg[x]; nx++) {\n int y = adj[x][nx];\n if (y >= x) break;\n nn = 0;\n for (int ny = 0; ny < deg[y]; ny++) {\n int z = adj[y][ny];\n if (z >= y) break;\n if (adjacent(adj[x], z)) {\n neigh[nn++] = z;\n }\n }\n for (int i = 0; i < nn; i++) {\n int z = neigh[i];\n nn2 = 0;\n for (int j = i + 1; j < nn; j++) {\n int zz = neigh[j];\n if (adjacent(adj[z], zz)) {\n neigh2[nn2++] = zz;\n }\n }\n for (int i2 = 0; i2 < nn2; i2++) {\n int zz = neigh2[i2];\n for (int j2 = i2 + 1; j2 < nn2; j2++) {\n int zzz = neigh2[j2];\n if (adjacent(adj[zz], zzz)) {\n C5[x]++;\n C5[y]++;\n C5[z]++;\n C5[zz]++;\n C5[zzz]++;\n }\n }\n }\n }\n }\n }\n\n int[ ] common_x = new int[n];\n int[ ] common_x_list = new int[n];\n int ncx = 0;\n int[ ] common_a = new int[n];\n int[ ] common_a_list = new int[n];\n int nca = 0;\n\n // set up a system of equations relating orbit counts\n for (int x = 0; x < n; x++) {\n for (int i = 0; i < ncx; i++) common_x[common_x_list[i]] = 0;\n ncx = 0;\n\n // smaller graphlets\n orbit[x][0] = deg[x];\n for (int nx1 = 0; nx1 < deg[x]; nx1++) {\n int a = adj[x][nx1];\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = adj[x][nx2];\n if (adjacent(adj[a], b)) orbit[x][3]++;\n else orbit[x][2]++;\n }\n for (int na = 0; na < deg[a]; na++) {\n int b = adj[a][na];\n if (b != x && !adjacent(adj[x], b)) {\n orbit[x][1]++;\n if (common_x[b] == 0) common_x_list[ncx++] = b;\n common_x[b]++;\n }\n }\n }\n\n long f_71 = 0, f_70 = 0, f_67 = 0, f_66 = 0, f_58 = 0, f_57 = 0; // 14\n long f_69 = 0, f_68 = 0, f_64 = 0, f_61 = 0, f_60 = 0, f_55 = 0, f_48 = 0, f_42 = 0, f_41 = 0; // 13\n long f_65 = 0, f_63 = 0, f_59 = 0, f_54 = 0, f_47 = 0, f_46 = 0, f_40 = 0; // 12\n long f_62 = 0, f_53 = 0, f_51 = 0, f_50 = 0, f_49 = 0, f_38 = 0, f_37 = 0, f_36 = 0; // 8\n long f_44 = 0, f_33 = 0, f_30 = 0, f_26 = 0; // 11\n long f_52 = 0, f_43 = 0, f_32 = 0, f_29 = 0, f_25 = 0; // 10\n long f_56 = 0, f_45 = 0, f_39 = 0, f_31 = 0, f_28 = 0, f_24 = 0; // 9\n long f_35 = 0, f_34 = 0, f_27 = 0, f_18 = 0, f_16 = 0, f_15 = 0; // 4\n long f_17 = 0; // 5\n long f_22 = 0, f_20 = 0, f_19 = 0; // 6\n long f_23 = 0, f_21 = 0; // 7\n\n for (int nx1 = 0; nx1 < deg[x]; nx1++) {\n int a = inc[x][nx1]._1, xa = inc[x][nx1]._2;\n\n for (int i = 0; i < nca; i++) common_a[common_a_list[i]] = 0;\n nca = 0;\n for (int na = 0; na < deg[a]; na++) {\n int b = adj[a][na];\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = adj[b][nb];\n if (c == a || adjacent(adj[a], c)) continue;\n if (common_a[c] == 0) common_a_list[nca++] = c;\n common_a[c]++;\n }\n }\n\n // x = orbit-14 (tetrahedron)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nx3 = nx2 + 1; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (!adjacent(adj[a], c) || !adjacent(adj[b], c)) continue;\n orbit[x][14]++;\n f_70 += common3.getOrDefault(createTuple(a, b, c), 0) - 1;\n f_71 += (tri[xa] > 2 && tri[xb] > 2) ? (common3.getOrDefault(createTuple(x, a, b), 0) - 1) : 0;\n f_71 += (tri[xa] > 2 && tri[xc] > 2) ? (common3.getOrDefault(createTuple(x, a, c), 0) - 1) : 0;\n f_71 += (tri[xb] > 2 && tri[xc] > 2) ? (common3.getOrDefault(createTuple(x, b, c), 0) - 1) : 0;\n f_67 += tri[xa] - 2 + tri[xb] - 2 + tri[xc] - 2;\n f_66 += common2.getOrDefault(createTuple(a, b), 0) - 2;\n f_66 += common2.getOrDefault(createTuple(a, c), 0) - 2;\n f_66 += common2.getOrDefault(createTuple(b, c), 0) - 2;\n f_58 += deg[x] - 3;\n f_57 += deg[a] - 3 + deg[b] - 3 + deg[c] - 3;\n }\n }\n\n // x = orbit-13 (diamond)\n for (int nx2 = 0; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nx3 = nx2 + 1; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (!adjacent(adj[a], c) || adjacent(adj[b], c)) continue;\n orbit[x][13]++;\n f_69 += (tri[xb] > 1 && tri[xc] > 1) ? (common3.getOrDefault(createTuple(x, b, c), 0) - 1) : 0;\n f_68 += common3.getOrDefault(createTuple(a, b, c), 0) - 1;\n f_64 += common2.getOrDefault(createTuple(b, c), 0) - 2;\n f_61 += tri[xb] - 1 + tri[xc] - 1;\n f_60 += common2.getOrDefault(createTuple(a, b), 0) - 1;\n f_60 += common2.getOrDefault(createTuple(a, c), 0) - 1;\n f_55 += tri[xa] - 2;\n f_48 += deg[b] - 2 + deg[c] - 2;\n f_42 += deg[x] - 3;\n f_41 += deg[a] - 3;\n }\n }\n\n // x = orbit-12 (diamond)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int na = 0; na < deg[a]; na++) {\n int c = inc[a][na]._1, ac = inc[a][na]._2;\n if (c == x || adjacent(adj[x], c) || !adjacent(adj[b], c)) continue;\n orbit[x][12]++;\n f_65 += (tri[ac] > 1) ? common3.getOrDefault(createTuple(a, b, c), 0) : 0;\n f_63 += common_x[c] - 2;\n f_59 += tri[ac] - 1 + common2.getOrDefault(createTuple(b, c), 0) - 1;\n f_54 += common2.getOrDefault(createTuple(a, b), 0) - 2;\n f_47 += deg[x] - 2;\n f_46 += deg[c] - 2;\n f_40 += deg[a] - 3 + deg[b] - 3;\n }\n }\n\n // x = orbit-8 (cycle)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (adjacent(adj[a], b)) continue;\n for (int na = 0; na < deg[a]; na++) {\n int c = inc[a][na]._1, ac = inc[a][na]._2;\n if (c == x || adjacent(adj[x], c) || !adjacent(adj[b], c)) continue;\n orbit[x][8]++;\n f_62 += (tri[ac] > 0) ? common3.getOrDefault(createTuple(a, b, c), 0) : 0;\n f_53 += tri[xa] + tri[xb];\n f_51 += tri[ac] + common2.getOrDefault(createTuple(c, b), 0);\n f_50 += common_x[c] - 2;\n f_49 += common_a[b] - 2;\n f_38 += deg[x] - 2;\n f_37 += deg[a] - 2 + deg[b] - 2;\n f_36 += deg[c] - 2;\n }\n }\n\n // x = orbit-11 (paw)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nx3 = 0; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (c == a || c == b || adjacent(adj[a], c) || adjacent(adj[b], c)) continue;\n orbit[x][11]++;\n f_44 += tri[xc];\n f_33 += deg[x] - 3;\n f_30 += deg[c] - 1;\n f_26 += deg[a] - 2 + deg[b] - 2;\n }\n }\n\n // x = orbit-10 (paw)\n for (int nx2 = 0; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = inc[b][nb]._1, bc = inc[b][nb]._2;\n if (c == x || c == a || adjacent(adj[a], c) || adjacent(adj[x], c)) continue;\n orbit[x][10]++;\n f_52 += common_a[c] - 1;\n f_43 += tri[bc];\n f_32 += deg[b] - 3;\n f_29 += deg[c] - 1;\n f_25 += deg[a] - 2;\n }\n }\n\n // x = orbit-9 (paw)\n for (int na1 = 0; na1 < deg[a]; na1++) {\n int b = inc[a][na1]._1, ab = inc[a][na1]._2;\n if (b == x || adjacent(adj[x], b)) continue;\n for (int na2 = na1 + 1; na2 < deg[a]; na2++) {\n int c = inc[a][na2]._1, ac = inc[a][na2]._2;\n if (c == x || !adjacent(adj[b], c) || adjacent(adj[x], c)) continue;\n orbit[x][9]++;\n f_56 += (tri[ab] > 1 && tri[ac] > 1) ? common3.getOrDefault(createTuple(a, b, c), 0) : 0;\n f_45 += common2.getOrDefault(createTuple(b, c), 0) - 1;\n f_39 += tri[ab] - 1 + tri[ac] - 1;\n f_31 += deg[a] - 3;\n f_28 += deg[x] - 1;\n f_24 += deg[b] - 2 + deg[c] - 2;\n }\n }\n\n // x = orbit-4 (path)\n for (int na = 0; na < deg[a]; na++) {\n int b = inc[a][na]._1, ab = inc[a][na]._2;\n if (b == x || adjacent(adj[x], b)) continue;\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = inc[b][nb]._1, bc = inc[b][nb]._2;\n if (c == a || adjacent(adj[a], c) || adjacent(adj[x], c)) continue;\n orbit[x][4]++;\n f_35 += common_a[c] - 1;\n f_34 += common_x[c];\n f_27 += tri[bc];\n f_18 += deg[b] - 2;\n f_16 += deg[x] - 1;\n f_15 += deg[c] - 1;\n }\n }\n\n // x = orbit-5 (path)\n for (int nx2 = 0; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (b == a || adjacent(adj[a], b)) continue;\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = inc[b][nb]._1, bc = inc[b][nb]._2;\n if (c == x || adjacent(adj[a], c) || adjacent(adj[x], c)) continue;\n orbit[x][5]++;\n f_17 += deg[a] - 1;\n }\n }\n\n // x = orbit-6 (claw)\n for (int na1 = 0; na1 < deg[a]; na1++) {\n int b = inc[a][na1]._1, ab = inc[a][na1]._2;\n if (b == x || adjacent(adj[x], b)) continue;\n for (int na2 = na1 + 1; na2 < deg[a]; na2++) {\n int c = inc[a][na2]._1, ac = inc[a][na2]._2;\n if (c == x || adjacent(adj[x], c) || adjacent(adj[b], c)) continue;\n orbit[x][6]++;\n f_22 += deg[a] - 3;\n f_20 += deg[x] - 1;\n f_19 += deg[b] - 1 + deg[c] - 1;\n }\n }\n\n // x = orbit-7 (claw)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (adjacent(adj[a], b)) continue;\n for (int nx3 = nx2 + 1; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (adjacent(adj[a], c) || adjacent(adj[b], c)) continue;\n orbit[x][7]++;\n f_23 += deg[x] - 3;\n f_21 += deg[a] - 1 + deg[b] - 1 + deg[c] - 1;\n }\n }\n }\n\n // solve equations\n orbit[x][72] = C5[x];\n orbit[x][71] = (f_71 - 12 * orbit[x][72]) / 2;\n orbit[x][70] = (f_70 - 4 * orbit[x][72]);\n orbit[x][69] = (f_69 - 2 * orbit[x][71]) / 4;\n orbit[x][68] = (f_68 - 2 * orbit[x][71]);\n orbit[x][67] = (f_67 - 12 * orbit[x][72] - 4 * orbit[x][71]);\n orbit[x][66] = (f_66 - 12 * orbit[x][72] - 2 * orbit[x][71] - 3 * orbit[x][70]);\n orbit[x][65] = (f_65 - 3 * orbit[x][70]) / 2;\n orbit[x][64] = (f_64 - 2 * orbit[x][71] - 4 * orbit[x][69] - 1 * orbit[x][68]);\n orbit[x][63] = (f_63 - 3 * orbit[x][70] - 2 * orbit[x][68]);\n orbit[x][62] = (f_62 - 1 * orbit[x][68]) / 2;\n orbit[x][61] = (f_61 - 4 * orbit[x][71] - 8 * orbit[x][69] - 2 * orbit[x][67]) / 2;\n orbit[x][60] = (f_60 - 4 * orbit[x][71] - 2 * orbit[x][68] - 2 * orbit[x][67]);\n orbit[x][59] = (f_59 - 6 * orbit[x][70] - 2 * orbit[x][68] - 4 * orbit[x][65]);\n orbit[x][58] = (f_58 - 4 * orbit[x][72] - 2 * orbit[x][71] - 1 * orbit[x][67]);\n orbit[x][57] = (f_57 - 12 * orbit[x][72] - 4 * orbit[x][71] - 3 * orbit[x][70] - 1 * orbit[x][67] - 2 * orbit[x][66]);\n orbit[x][56] = (f_56 - 2 * orbit[x][65]) / 3;\n orbit[x][55] = (f_55 - 2 * orbit[x][71] - 2 * orbit[x][67]) / 3;\n orbit[x][54] = (f_54 - 3 * orbit[x][70] - 1 * orbit[x][66] - 2 * orbit[x][65]) / 2;\n orbit[x][53] = (f_53 - 2 * orbit[x][68] - 2 * orbit[x][64] - 2 * orbit[x][63]);\n orbit[x][52] = (f_52 - 2 * orbit[x][66] - 2 * orbit[x][64] - 1 * orbit[x][59]) / 2;\n orbit[x][51] = (f_51 - 2 * orbit[x][68] - 2 * orbit[x][63] - 4 * orbit[x][62]);\n orbit[x][50] = (f_50 - 1 * orbit[x][68] - 2 * orbit[x][63]) / 3;\n orbit[x][49] = (f_49 - 1 * orbit[x][68] - 1 * orbit[x][64] - 2 * orbit[x][62]) / 2;\n orbit[x][48] = (f_48 - 4 * orbit[x][71] - 8 * orbit[x][69] - 2 * orbit[x][68] - 2 * orbit[x][67] - 2 * orbit[x][64] - 2 * orbit[x][61] - 1 * orbit[x][60]);\n orbit[x][47] = (f_47 - 3 * orbit[x][70] - 2 * orbit[x][68] - 1 * orbit[x][66] - 1 * orbit[x][63] - 1 * orbit[x][60]);\n orbit[x][46] = (f_46 - 3 * orbit[x][70] - 2 * orbit[x][68] - 2 * orbit[x][65] - 1 * orbit[x][63] - 1 * orbit[x][59]);\n orbit[x][45] = (f_45 - 2 * orbit[x][65] - 2 * orbit[x][62] - 3 * orbit[x][56]);\n orbit[x][44] = (f_44 - 1 * orbit[x][67] - 2 * orbit[x][61]) / 4;\n orbit[x][43] = (f_43 - 2 * orbit[x][66] - 1 * orbit[x][60] - 1 * orbit[x][59]) / 2;\n orbit[x][42] = (f_42 - 2 * orbit[x][71] - 4 * orbit[x][69] - 2 * orbit[x][67] - 2 * orbit[x][61] - 3 * orbit[x][55]);\n orbit[x][41] = (f_41 - 2 * orbit[x][71] - 1 * orbit[x][68] - 2 * orbit[x][67] - 1 * orbit[x][60] - 3 * orbit[x][55]);\n orbit[x][40] = (f_40 - 6 * orbit[x][70] - 2 * orbit[x][68] - 2 * orbit[x][66] - 4 * orbit[x][65] - 1 * orbit[x][60] - 1 * orbit[x][59] - 4 * orbit[x][54]);\n orbit[x][39] = (f_39 - 4 * orbit[x][65] - 1 * orbit[x][59] - 6 * orbit[x][56]) / 2;\n orbit[x][38] = (f_38 - 1 * orbit[x][68] - 1 * orbit[x][64] - 2 * orbit[x][63] - 1 * orbit[x][53] - 3 * orbit[x][50]);\n orbit[x][37] = (f_37 - 2 * orbit[x][68] - 2 * orbit[x][64] - 2 * orbit[x][63] - 4 * orbit[x][62] - 1 * orbit[x][53] - 1 * orbit[x][51] - 4 * orbit[x][49]);\n orbit[x][36] = (f_36 - 1 * orbit[x][68] - 2 * orbit[x][63] - 2 * orbit[x][62] - 1 * orbit[x][51] - 3 * orbit[x][50]);\n orbit[x][35] = (f_35 - 1 * orbit[x][59] - 2 * orbit[x][52] - 2 * orbit[x][45]) / 2;\n orbit[x][34] = (f_34 - 1 * orbit[x][59] - 2 * orbit[x][52] - 1 * orbit[x][51]) / 2;\n orbit[x][33] = (f_33 - 1 * orbit[x][67] - 2 * orbit[x][61] - 3 * orbit[x][58] - 4 * orbit[x][44] - 2 * orbit[x][42]) / 2;\n orbit[x][32] = (f_32 - 2 * orbit[x][66] - 1 * orbit[x][60] - 1 * orbit[x][59] - 2 * orbit[x][57] - 2 * orbit[x][43] - 2 * orbit[x][41] - 1 * orbit[x][40]) / 2;\n orbit[x][31] = (f_31 - 2 * orbit[x][65] - 1 * orbit[x][59] - 3 * orbit[x][56] - 1 * orbit[x][43] - 2 * orbit[x][39]);\n orbit[x][30] = (f_30 - 1 * orbit[x][67] - 1 * orbit[x][63] - 2 * orbit[x][61] - 1 * orbit[x][53] - 4 * orbit[x][44]);\n orbit[x][29] = (f_29 - 2 * orbit[x][66] - 2 * orbit[x][64] - 1 * orbit[x][60] - 1 * orbit[x][59] - 1 * orbit[x][53] - 2 * orbit[x][52] - 2 * orbit[x][43]);\n orbit[x][28] = (f_28 - 2 * orbit[x][65] - 2 * orbit[x][62] - 1 * orbit[x][59] - 1 * orbit[x][51] - 1 * orbit[x][43]);\n orbit[x][27] = (f_27 - 1 * orbit[x][59] - 1 * orbit[x][51] - 2 * orbit[x][45]) / 2;\n orbit[x][26] = (f_26 - 2 * orbit[x][67] - 2 * orbit[x][63] - 2 * orbit[x][61] - 6 * orbit[x][58] - 1 * orbit[x][53] - 2 * orbit[x][47] - 2 * orbit[x][42]);\n orbit[x][25] = (f_25 - 2 * orbit[x][66] - 2 * orbit[x][64] - 1 * orbit[x][59] - 2 * orbit[x][57] - 2 * orbit[x][52] - 1 * orbit[x][48] - 1 * orbit[x][40]) / 2;\n orbit[x][24] = (f_24 - 4 * orbit[x][65] - 4 * orbit[x][62] - 1 * orbit[x][59] - 6 * orbit[x][56] - 1 * orbit[x][51] - 2 * orbit[x][45] - 2 * orbit[x][39]);\n orbit[x][23] = (f_23 - 1 * orbit[x][55] - 1 * orbit[x][42] - 2 * orbit[x][33]) / 4;\n orbit[x][22] = (f_22 - 2 * orbit[x][54] - 1 * orbit[x][40] - 1 * orbit[x][39] - 1 * orbit[x][32] - 2 * orbit[x][31]) / 3;\n orbit[x][21] = (f_21 - 3 * orbit[x][55] - 3 * orbit[x][50] - 2 * orbit[x][42] - 2 * orbit[x][38] - 2 * orbit[x][33]);\n orbit[x][20] = (f_20 - 2 * orbit[x][54] - 2 * orbit[x][49] - 1 * orbit[x][40] - 1 * orbit[x][37] - 1 * orbit[x][32]);\n orbit[x][19] = (f_19 - 4 * orbit[x][54] - 4 * orbit[x][49] - 1 * orbit[x][40] - 2 * orbit[x][39] - 1 * orbit[x][37] - 2 * orbit[x][35] - 2 * orbit[x][31]);\n orbit[x][18] = (f_18 - 1 * orbit[x][59] - 1 * orbit[x][51] - 2 * orbit[x][46] - 2 * orbit[x][45] - 2 * orbit[x][36] - 2 * orbit[x][27] - 1 * orbit[x][24]) / 2;\n orbit[x][17] = (f_17 - 1 * orbit[x][60] - 1 * orbit[x][53] - 1 * orbit[x][51] - 1 * orbit[x][48] - 1 * orbit[x][37] - 2 * orbit[x][34] - 2 * orbit[x][30]) / 2;\n orbit[x][16] = (f_16 - 1 * orbit[x][59] - 2 * orbit[x][52] - 1 * orbit[x][51] - 2 * orbit[x][46] - 2 * orbit[x][36] - 2 * orbit[x][34] - 1 * orbit[x][29]);\n orbit[x][15] = (f_15 - 1 * orbit[x][59] - 2 * orbit[x][52] - 1 * orbit[x][51] - 2 * orbit[x][45] - 2 * orbit[x][35] - 2 * orbit[x][34] - 2 * orbit[x][27]);\n }\n\n return orbit;\n }", "public int numDistinctIslands(int[][] grid){\n if(grid == null || grid.length == 0)\n return 0;\n Set<String> set = new HashSet<>();\n int row = grid.length, col = grid[0].length;\n for(int i = 0; i < row; i++){\n for(int j = 0; j < col; j++){\n if(grid[i][j] == 1){\n String path = dfs(grid, i, j, row, col, \"S\");\n set.add(path);\n }\n }\n }\n return set.size();\n }", "public int numIslands(char[][] grid) {\n int noOfRows = grid.length;\n int noOfCols = grid[0].length;\n int islands = 0;\n for (int row = 0; row < noOfRows; row++) {\n for (int col = 0; col < noOfCols; col++) {\n if (grid[row][col] == '1') {\n islands++;\n dfs(grid,row,col);\n }\n }\n }\n return islands;\n }", "protected int countNeighbours(int col, int row){\n int Total = 0;\r\n Total = getCell(col-1,row-1)? ++Total : Total;\r\n Total = getCell(col,row-1)? ++Total : Total;\r\n Total = getCell(col+1,row-1)? ++Total : Total;\r\n Total = getCell(col-1,row)? ++Total : Total;\r\n Total = getCell(col+1,row)? ++Total : Total;\r\n Total = getCell(col-1,row+1)? ++Total : Total;\r\n Total = getCell(col,row+1)? ++Total : Total;\r\n Total = getCell(col+1,row+1)? ++Total : Total;\r\n return Total;\r\n }", "public abstract Set<Tile> getNeighbors(Tile tile);", "static int numberAmazonTreasureTrucks(int rows, int column,\n\t\t\t\t\t\t\t\t List<List<Integer> > grid)\n {\n // WRITE YOUR CODE HERE\n int count = 0;\n for(int i=0;i<rows;i++) {\n for(int j=0;j<column;j++) {\n if(grid.get(i).get(j) == 1) {\n count++;\n markNeighbours(grid, i, j, rows, column);\n }\n }\n }\n return count;\n }", "public int dfs(int row, int col, int[][] grid) {\n //when current position is in bound and current element is 1, add area by 1 and continue recursively\n //find other 1's, until all four directions reach 0, finally we get area of current island\n if (col >= 0 && row >= 0 && row < grid.length && col < grid[0].length && grid[row][col] == 1) {\n grid[row][col] = 0;\n return 1 + dfs(row + 1, col, grid) + dfs(row - 1, col, grid)\n + dfs(row, col + 1, grid) + dfs(row, col - 1, grid);\n }\n //DO NOT forget return 0 for recursion exit when reach 0\n return 0;\n }", "public abstract int getNumberOfLivingNeighbours(int x, int y);", "void updateCellNumbers() {\n cells.stream().forEach(row -> row.stream().filter(cell -> !cell.isMine()).forEach(cell -> {\n int numNeighbouringMines =\n (int) getNeighboursOf(cell).stream().filter(neighbour -> neighbour.isMine()).count();\n cell.setNumber(numNeighbouringMines);\n }));\n }", "public abstract List<AStarNode> getNeighbours();", "private int numIslands_dfs(char[][] grid) {\n int m = grid.length;\n int n = grid[0].length;\n \n // 很多解法是将grid[i][j] 设置成0,这样也可以,只是会改变输入,可以讨论。\n boolean[] visited = new boolean[m * n]; // 这里就不用map了,一个一维数组就可以。\n \n int numOfIslands = 0;\n for (int i = 0; i < m; ++i) {\n for (int j = 0; j < n; ++j) {\n if (grid[i][j] == '1' && !visited[i * n + j]) {\n ++ numOfIslands;\n dfs(grid, i, j, visited);\n }\n }\n }\n return numOfIslands;\n }", "private void getNeighbors() {\n\t\tRowIterator iterator = currentGen.iterateRows();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElemIterator elem = iterator.next();\n\t\t\twhile (elem.hasNext()) {\n\t\t\t\tMatrixElem mElem = elem.next();\n\t\t\t\tint row = mElem.rowIndex();\n\t\t\t\tint col = mElem.columnIndex();\n\t\t\t\tint numNeighbors = 0;\n\t\t\t\tfor (int i = -1; i < 2; i++) { // loops through row above,\n\t\t\t\t\t\t\t\t\t\t\t\t// actual row, and row below\n\t\t\t\t\tfor (int j = -1; j < 2; j++) { // loops through column left,\n\t\t\t\t\t\t\t\t\t\t\t\t\t// actual column, coloumn\n\t\t\t\t\t\t\t\t\t\t\t\t\t// right\n\t\t\t\t\t\tif (!currentGen.elementAt(row + i, col + j).equals(\n\t\t\t\t\t\t\t\tfalse)) // element is alive, add 1 to neighbor\n\t\t\t\t\t\t\t\t\t\t// total\n\t\t\t\t\t\t\tnumNeighbors += 1;\n\t\t\t\t\t\telse { // element is not alive, add 1 to its total\n\t\t\t\t\t\t\t\t// number of neighbors\n\t\t\t\t\t\t\tInteger currentNeighbors = (Integer) neighbors\n\t\t\t\t\t\t\t\t\t.elementAt(row + i, col + j);\n\t\t\t\t\t\t\tneighbors.setValue(row + i, col + j,\n\t\t\t\t\t\t\t\t\tcurrentNeighbors + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tneighbors.setValue(row, col, numNeighbors - 1); // -1 to account\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// for counting\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// itself as a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// neighbor\n\t\t\t}\n\t\t}\n\t}", "public int numberofDistinctIslands(int[][] grid) {\n int rows = grid.length;\n if (rows == 0){\n return 0;\n }\n int cols = grid[0].length;\n int count = 0;\n\n visited = new boolean[rows][cols];\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n visited[i][j] = false;\n }\n }\n\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (grid[i][j] == 1 && !visited[i][j]){\n dfs(grid, i, j, rows, cols);\n count++;\n }\n }\n }\n\n System.out.println(count);\n return count;\n }", "public int islandPerimeter(int[][] grid) {\n\t\tflag = new boolean[grid.length][grid[0].length];\n\t\tfor(int i=0;i<grid.length;++i) {\n\t\t\tArrays.fill(flag[i], false);\n\t\t}\n for(int i=0;i<grid.length;++i) {\n \tfor(int j=0;j<grid[0].length;++j) {\n \t\tif(grid[i][j] == 1)\n \t\t\treturn find0s(grid,i,j);\n \t}\n }\n return 0;\n }", "static int findIslands(ArrayList<ArrayList<Integer>> a, int N, int M)\n {\n \n // Your code here\n int island_count = 0;\n for(int i=0;i<N;i++){\n for(int j=0;j<M;j++){\n if(a.get(i).get(j) == 1){\n island_count++;\n explore_island(a, i, j);\n }\n }\n }\n \n return island_count;\n \n }", "public int state_build_regions(HashMap<Integer, Integer> rmap) {\r\n\t\tUnionFind u=new UnionFind();\r\n\t\t\r\n\t\t//build Unionfind\r\n\t\tfor(Integer nodeIndex:allNodes.keySet()) {\r\n\t\t\r\n\t\t\tLinkedList<Integer> neighborsIndex=nowMap.get(nodeIndex);\r\n\t\t\tif(allNodes.get(nodeIndex).path==0) {\r\n\t\t\t\tfor(Integer nIndex:neighborsIndex) {\r\n\t\t\t\t\tif(allNodes.get(nIndex).path==0)\r\n\t\t\t\t\t\tu.union(allNodes.get(nIndex),allNodes.get(nodeIndex));\r\n\t\t\t\t}\r\n\t\t\t} else if(allNodes.get(nodeIndex).path!=0) {\r\n\t\t\t\tfor(Integer nIndex:neighborsIndex) {\r\n\t\t\t\t\tif(allNodes.get(nIndex).path!=0)\r\n\t\t\t\t\t\tu.union(allNodes.get(nIndex),allNodes.get(nodeIndex));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tint rcount=1;\r\n\t\tLinkedList<Node> count=new LinkedList<Node>();\r\n\t\t//find regions\r\n\t\tfor(Integer nIndex:allNodes.keySet()) {\r\n\t\t\tNode n=allNodes.get(nIndex);\r\n\t\t\tNode np=u.find(n);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(np.path==0) {\r\n\t\t\t\tif(count.contains(np)) {\r\n\t\t\t\t\trmap.put(nIndex, count.indexOf(np)+1);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tcount.add(np);\r\n\t\t\t\t\trmap.put(nIndex, count.indexOf(np)+1);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}else {\r\n\t\t\t\trmap.put(nIndex, -1);\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t\r\n\t\treturn rcount;\r\n\t}", "public int numIslands(char[][] grid) {\n if (grid == null || grid.length == 0) \n return 0;\n \n int count = 0;\n int nr = grid.length;\n int nc = grid[0].length;\n\n for (int r = 0; r < nr; r++) {\n for (int c = 0; c < nc; c++) {\n if (grid[r][c] == '1') {\n count++;\n dfs(grid, r, c);\n }\n }\n }\n return count;\n }", "@Override\n public int getNumNeighboringMines(int row, int col) {\n int count = 0, rowStart = Math.max(row - 1, 0), rowFinish = Math.min(row + 1, grid.length - 1), colStart = Math.max(col - 1, 0), colFinish = Math.min(col + 1, grid[0].length - 1);\n\n for (int curRow = rowStart; curRow <= rowFinish; curRow++) {\n for (int curCol = colStart; curCol <= colFinish; curCol++) {\n if (grid[curRow][curCol].getType() == Tile.MINE) count++;\n }\n }\n return count;\n }", "public static long journeyToMoon(int n, List<List<Integer>> astronaut) {\n // Write your code here\n Map<Integer, Node<Integer>> countryMap = new HashMap<>();\n for(List<Integer> pairs: astronaut) {\n Node<Integer> node1 = countryMap.computeIfAbsent(pairs.get(0), Node::new);\n Node<Integer> node2 = countryMap.computeIfAbsent(pairs.get(1), Node::new);\n node1.connected.add(node2);\n node2.connected.add(node1);\n }\n\n List<Integer> countryCluster = new ArrayList<>();\n for(Node<Integer> node: countryMap.values()) {\n if(node.connected.size() == 0) {\n countryCluster.add(1);\n } else if(!node.visited){\n countryCluster.add(getNodeCount3(node));\n }\n }\n List<Integer> countryNodes = countryMap.values().stream().map(nn -> nn.value).collect(Collectors.toList());\n List<Integer> missingNodes = new ArrayList<>();\n for(int i=0; i < n; i++) {\n if(!countryNodes.contains(i))\n missingNodes.add(i);\n }\n\n for(int i=0; i < missingNodes.size(); i++) {\n countryCluster.add(1);\n }\n\n long ans = 0;\n //For one country we cannot pair with any other astronauts\n if(countryCluster.size() >= 2) {\n ans = (long) countryCluster.get(0) * countryCluster.get(1);\n if(countryCluster.size() > 2) {\n int sum = countryCluster.get(0) + countryCluster.get(1);\n for(int i=2; i < countryCluster.size(); i++) {\n ans += (long) sum * countryCluster.get(i);\n sum += countryCluster.get(i);\n }\n }\n }\n\n /*\n permutation of two set with size A and B = AxB\n permutation of three set with size A,B,C = AxB + AxC + BxC = AxB + (A+B)xC\n permutation of four set with size A,B,C,D = AxB + AxC + AxD + BxC + BxD + CxD = AxB + (A+B)xC + (A+B+C)xD\n */\n /*\n if(keys.length == 1) {\n ans = keys[0].size();\n } else {\n ans = keys[0].size() * keys[1].size();\n if(keys.length > 2) {\n int sum = keys[0].size() + keys[1].size();\n for (int i = 2; i < keys.length; i++) {\n ans += sum * keys[i].size();\n sum += keys[i].size();\n }\n }\n }\n */\n return ans;\n }", "private double computeForcesWithNeighbourCells() {\r\n double potentialEnergy = 0;\r\n for (Cell[] cellPair: neighbourCells) { \r\n if (cellPair[1].firstMolecule == null) continue; // If cell2 is empty, skip\r\n \r\n for (Molecule m1 = cellPair[0].firstMolecule; m1 != null; m1 = m1.nextMoleculeInCell) {\r\n for (Molecule m2 = cellPair[1].firstMolecule; m2 != null; m2 = m2.nextMoleculeInCell) {\r\n double pe = computeForceBetweenMolecules(m1, m2);\r\n if (pe != 0) {\r\n potentialEnergy += pe;\r\n }\r\n }\r\n }\r\n }\r\n return potentialEnergy;\r\n }", "List<Integer> getNeighboursOf(int node) {\n\t\treturn adjList.get(node);\n\t}", "public List<SearchNode> expand() {\n\n List<SearchNode> neighbours = new ArrayList<>();\n\n if (this.getX() > 0) {\n SearchNode left = new SearchNode(this.getX() - 1, this.getY(), this.getDepth() + 1);\n neighbours.add(left);\n }\n if (this.getX() < 14) {\n SearchNode right = new SearchNode(this.getX() + 1, this.getY(), this.getDepth() + 1);\n neighbours.add(right);\n }\n if (this.getY() > 0) {\n SearchNode up = new SearchNode(this.getX(), this.getY() - 1, this.getDepth() + 1);\n neighbours.add(up);\n }\n if (this.getY() < 14) {\n SearchNode down = new SearchNode(this.getX(), this.getY() + 1, this.getDepth() + 1);\n neighbours.add(down);\n }\n\n return neighbours;\n }", "public int islandPerimeterIsland(int[][] grid)\n {\n\tfor (int i = 0; i < grid.length; i++)\n\t{\n\t for (int j = 0; j < grid[0].length; j++)\n\t {\n\t\tif (grid[i][j] == 1)\n\t\t return mark(grid, i, j);\n\t }\n\t}\n\treturn 0;\n }", "protected abstract Set<T> findNeighbors(T node, Map<T, T> parentMap);", "public Collection<N> neighbors();", "ArrayList<PathFindingNode> neighbours(PathFindingNode node);", "static int hourglassSum(int[][] arr) {\n int answer = 0 ;\n\n// validatable vertexes\n// i = 1,2,3,4\n// j = 1,2,3,4\n\n int[] adjacentArrX = {-1, -1,-1,0, 1,1,1};\n int[] adjacentArrY = {-1, 0, 1, 0, -1, 0, 1};\n\n for (int i = 1; i < 5; i++) {\n for (int j = 1; j < 5; j++) {\n int nowValue = Integer.MIN_VALUE;\n for (int r = 0; r < adjacentArrX.length; r++) {\n nowValue += arr[i + adjacentArrX[r]][j + adjacentArrY[r]];\n }\n answer = Math.max(answer, nowValue);\n }\n }\n\n\n return answer;\n\n }", "public void countAdjacentMines()\n {\n adjacentMines = 0;\n for (GameSquare square : getAdjacentSquares())\n {\n if (square.mine)\n {\n adjacentMines++;\n }\n }\n }", "private void countCells() {\n\t\tvisitedCells = 0;\n\t\ttotalCells = 0;\n\t\tfor (int ix = 0; ix < maxCells_x; ix++) {\n\t\t\tfor (int iy = 0; iy < maxCells_y; iy++) {\n\t\t\t\ttotalCells++;\n\t\t\t\tif (cell[ix][iy] == 1) {\n\t\t\t\t\tvisitedCells++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public ArrayList<Territory> getNeighbours() {\n\t\treturn neighbours;\n\t}", "static int displayN(Node node)\r\n {\r\n return node.neighbors.size();\r\n }", "public int numIslands(boolean[][] grid) {\n m = grid.length;\n if (m == 0) return 0;\n n = grid[0].length;\n if (n == 0) return 0;\n \n int ans = 0;\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n if (!grid[i][j]) continue;\n ans++;\n dfs(grid, i, j);\n }\n }\n return ans;\n }", "public static int numsIslands (boolean[][] grid) {\n\t\t/**\n\t\t * Have to pay attention to check the grid\n\t\t * Don't put it after the n, m claim\n\t\t * Because if grid == 0, there is no grid[0], so we will get outOfBound error\n\t\t * */\n\t\tif (grid == null || grid.length == 0 || grid[0].length == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tint n = grid.length;\n\t\tint m = grid[0].length;\n\t\t\n\t\tint islands = 0;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tif (grid[i][j]) {\n\t\t\t\t\tmarkAsVisited(grid, i, j);\n\t\t\t\t\tislands++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn islands;\n\t}", "private int Nodes(BTNode n){\r\n if (n == null)\r\n return 0;\r\n else {\r\n return ( (n.left == null? 0 : Nodes(n.left)) + (n.right == null? 0 : Nodes(n.right)) + 1 );\r\n }\r\n }", "private int neighborBombCount(Tile t) {\r\n int tileRow = t.getRow();\r\n int tileCol = t.getCol();\r\n int bombCount = 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 if (grid[r][c].isBomb()) {\r\n bombCount++;\r\n } \r\n }\r\n }\r\n }\r\n return bombCount; \r\n }", "private ArrayList<Integer> getCityEdges(HashMap<Integer,Integer> table){\n ArrayList<Integer> edges = new ArrayList<Integer>();\n edges.addAll(table.keySet());\n return edges;\n }", "public static void main(String[] args) {\n FenwickTree ft = new FenwickTree(10); // ft = {-,0,0,0,0,0,0,0, 0,0,0}\n ft.update(2, 1); // ft = {-,0,1,0,1,0,0,0, 1,0,0}, idx 2,4,8 => +1\n ft.update(4, 1); // ft = {-,0,1,0,2,0,0,0, 2,0,0}, idx 4,8 => +1\n ft.update(5, 2); // ft = {-,0,1,0,2,2,2,0, 4,0,0}, idx 5,6,8 => +2\n ft.update(6, 3); // ft = {-,0,1,0,2,2,5,0, 7,0,0}, idx 6,8 => +3\n ft.update(7, 2); // ft = {-,0,1,0,2,2,5,2, 9,0,0}, idx 7,8 => +2\n ft.update(8, 1); // ft = {-,0,1,0,2,2,5,2,10,0,0}, idx 8 => +1\n ft.update(9, 1); // ft = {-,0,1,0,2,2,5,2,10,1,1}, idx 9,10 => +1\n System.out.printf(\"%d\\n\", ft.rangeSumQuery(1, 1)); // 0 => ft[1] = 0\n System.out.printf(\"%d\\n\", ft.rangeSumQuery(1, 2)); // 1 => ft[2] = 1\n System.out.printf(\"%d\\n\", ft.rangeSumQuery(1, 6)); // 7 => ft[6] + ft[4] = 5 + 2 = 7\n System.out.printf(\"%d\\n\", ft.rangeSumQuery(1, 10)); // 11 => ft[10] + ft[8] = 1 + 10 = 11\n System.out.printf(\"%d\\n\", ft.rangeSumQuery(3, 6)); // 6 => rsq(1, 6) - rsq(1, 2) = 7 - 1\n\n ft.update(5, 2); // update demo\n System.out.printf(\"%d\\n\", ft.rangeSumQuery(1, 10)); // now 13\n }", "private List<Integer> getCells(Edge e) {\r\n\t\treturn getCells(e.getMBR());\r\n\t}", "int[] getEdgesIncidentTo(int... nodes);", "private int getNeighbours(Cell cell) {\n\n //Get the X, Y co-ordinates of the cell\n int cellX = cell.getXCord();\n int cellY = cell.getYCord();\n\n // Helper variable initially set to check all neighbours.\n int[][] neighbourCords = allCords;\n\n //Checks what location the cell is and which of its neighbours to check\n //This avoids any array out of bounds issues by trying to look outside the grid\n if (cellX == 0 && cellY == 0) {\n neighbourCords = topLeftCords;\n } else if (cellX == this.width - 1 && cellY == this.height - 1) {\n neighbourCords = bottomRightCords;\n } else if (cellX == this.width - 1 && cellY == 0) {\n neighbourCords = topRightCords;\n } else if (cellX == 0 && cellY == this.height - 1) {\n neighbourCords = bottomLeftCords;\n } else if (cellY == 0) {\n neighbourCords = topCords;\n } else if (cellX == 0) {\n neighbourCords = leftCords;\n } else if (cellX == this.width - 1) {\n neighbourCords = rightCords;\n } else if (cellY == this.height - 1) {\n neighbourCords = bottomCords;\n }\n\n // Return the number of neighbours\n return searchNeighbours(neighbourCords, cellX, cellY);\n }", "public static int numIslands(char[][] mat) {\r\n \r\n if(mat.length == 0 || mat[0].length == 0)\r\n \treturn 0;\r\n\r\n ROW = mat.length;\r\n\t\tCOL = mat[0].length;\r\n\r\n\t\t// Make a boolean matrix that will keep track whether a cell is visited or not\r\n\t\tboolean[][] visited = new boolean[ROW][COL];\r\n\t\t\r\n\t\t// We start counting the total number of DFS calls.\r\n\t\tint count = 0;\r\n\r\n\t\tfor (int i = 0; i < ROW; i++) \r\n\t\t{\r\n\t\t\tfor (int j = 0; j < COL; j++) \r\n\t\t\t{\r\n\t\t\t\t// If the cell is unvisited and is Land (1) check its neighbors by calling DFS()\r\n\t\t\t\t// This cell will be marked as visited in this process.\r\n\t\t\t\t// This cell will make a recursive call to each of their own 8 neighbors.\t\r\n\t\t\t\t// The base case of that recursion will be when all nodes of the subgraph have been visited\r\n\t\t\t\tif(mat[i][j] == '1' && !visited[i][j])\r\n\t\t\t\t{\r\n\t\t\t\t\tDFS(mat, i, j, visited);\r\n\r\n\t\t\t\t\t// After the above call is finished, a lot more 1s would've been converted into 0s.\r\n\t\t\t\t\t// Now the next time the above condition will be true will be when there is a disconnected 1 found.\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn count;\r\n }", "public static int numIslands(final char[][] grid) {\n int result = 0;\n for (int i = 0; i < grid.length; i++) {\n for (int j = 0; j < grid[i].length; j++) {\n if (grid[i][j] == '1' && traverseGrid(i, j, grid)) {\n result++;\n }\n }\n }\n return result;\n }", "public int countNeighbours() {\n\t\tint count = 0;\n\t\tif (this.hasNeighbour(0))\n\t\t\tcount++;\n\t\tif (this.hasNeighbour(1))\n\t\t\tcount++;\n\t\tif (this.hasNeighbour(2))\n\t\t\tcount++;\n\t\treturn count;\n\t}", "public int[] getNeighborhoodArray()\n\t{\n\t\treturn neighborhoodArray;\n\t}", "public abstract int countAllGroundAtoms(StandardPredicate predicate, List<Short> partitions);", "public int[] getNeighbours(int node) {\n ArrayList ns = new ArrayList(10);// should be plenty\n for (int i = 0; i < nodeCount; i++)\n if (roads[node][i] > 0)\n ns.add(Integer.valueOf(i));\n int[] nbs = new int[ns.size()];\n for (int i = 0; i < ns.size(); i++)\n nbs[i] = ((Integer) ns.get(i)).intValue();\n return nbs;\n }", "private void mapContinents() {\n\t\tElevationMap elevs = mRegion.getElevationMap();\r\n\t\tif (elevs.w != w || elevs.h != h)\r\n\t\t\tthrow new RuntimeException(\"Elevation map and continent map are not the same size.\");\r\n\t\t\r\n\t\t// Create continent map\r\n\t\tthis.mContinents = new int[w][h];\r\n\t\t// Set points below sea level to 0, all else to 2\r\n\t\tfor (int x = 0; x < w; ++x) {\r\n\t\t\tfor (int y = 0; y < h; ++y) {\r\n\t\t\t\t// MUST CHANGE THIS; SEA LEVEL HARD CODED TO 5\r\n\t\t\t\tif (elevs.getElev(x, y) < 5) mContinents[x][y] = 0;\r\n\t\t\t\telse mContinents[x][y] = 2;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Previous step separated land and water; now we distinguish unique land masses\r\n\t\tfor (int x = 0; x < w; ++x) {\r\n\t\t\tfor (int y = 0; y < h; ++y) {\r\n\t\t\t\t// \r\n\t\t\t\tif (mContinents[x][y] == 0) continue;\r\n\t\t\t\telse if (mContinents[x][y] == 2) {\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public interface INeighbor {\n public Set<Cell> getNeighbours();\n}", "private ArrayList<int[]> getAllNeighbours(int[] solution){\n ArrayList<int[]> neighbours = new ArrayList<int[]>();\n\n for(int i = 0; i <= solution.length - 1; i++){\n for(int j = solution.length - 1; j > i; j--){\n neighbours.add(getNeighbourSolution(solution, i, j));\n }\n }\n\n this.numberOfNeighbours = neighbours.size();\n return neighbours;\n }", "public abstract int getNeighboursNumber(int index);", "@Override\n public int edgeCount() {\n int count = 0;\n\n for(MyNode n : graphNodes.values()){\n count += n.inDegree();\n }\n\n return count;\n }", "public ArrayList<Integer> getNeighbours() {\n\t\tArrayList<Integer> result = new ArrayList<Integer>();\n\n\t\tfor (Border curBorder: allBorder) {\n\t\t\tresult.add(curBorder.countryID);\n\t\t}\n\n\t\treturn result;\n\t}", "private List<Node> getNeighbors(Node node) {\n List<Node> neighbors = new LinkedList<>();\n\n for(Node adjacent : node.getAdjacentNodesSet()) {\n if(!isSettled(adjacent)) {\n neighbors.add(adjacent);\n }\n }\n\n return neighbors;\n }", "List<Integer> getNeighbors(int x);", "int[] getInEdges(int... nodes);", "public int islandPerimeter(int[][] grid)\n {\n\tint peri = 0;\n\tfor (int i = 0; i < grid.length; i++)\n\t{\n\t for (int j = 0; j < grid[0].length; j++)\n\t {\n\t\tif (grid[i][j] == 1)\n\t\t{\n\t\t peri +=4;\n\t\t if (i > 0 && grid[i-1][j]==1)\n\t\t\tperi--;\n\t\t if (j > 0 && grid[i][j-1]==1)\n\t\t\tperi--;\n\t\t if (i <grid.length-1 && grid[i+1][j]==1)\n\t\t\tperi--;\n\t\t if (j < grid[0].length-1 && grid[i][j+1]==1)\n\t\t\tperi--;\n\t\t}\n\t }\n\t}\n\treturn 0;\n }", "int getFluidAmount(ICastingContainer inv);", "private LinkedList<int[]> neighborFinder(){\n LinkedList<int[]> neighborhood= new LinkedList<>();\n int[] curr_loc = blankFinder();\n int x = curr_loc[0];\n int y = curr_loc[1];\n if(x >0){\n neighborhood.add(new int[]{x-1, y});\n }\n if(x < n-1){\n neighborhood.add(new int[]{x+1, y});\n }\n if(y > 0){\n neighborhood.add(new int[]{x, y-1});\n }\n if(y < n-1) {\n neighborhood.add(new int[]{x, y+1});\n }\n\n\n return neighborhood;\n }", "private double computeForcesWithinCells() {\r\n double potentialEnergy = 0;\r\n \r\n for (int i = 0; i < nXCells; i++) {\r\n for (int j = 0; j < nYCells; j++) {\r\n for (Molecule m1 = cells[i][j].firstMolecule; m1 != null; m1 = m1.nextMoleculeInCell) {\r\n for (Molecule m2 = m1.nextMoleculeInCell; m2 != null; m2 = m2.nextMoleculeInCell) {\r\n double pe = computeForceBetweenMolecules(m1, m2);\r\n if (pe != 0) {\r\n potentialEnergy += pe;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return potentialEnergy;\r\n }", "public int my_leaf_count();", "public abstract int getPopulation(int west, int south, int east, int north);", "public static int numTrees(int n){\n int[] dp = new int[n+1];\n dp[0] = 1;\n for (int i = 1; i <= n; i++){\n for (int j = 0; j < i; j++){\n dp[i] += dp[j] * dp[i-1-j];\n }\n }\n\n return dp[n];\n }", "public static void main(String[] args) {\n TreeNode root = new TreeNode(10);\n root.left = new TreeNode(5);\n root.right = new TreeNode(12);\n root.left.left = new TreeNode(4);\n root.left.right = new TreeNode(7);\n List<List<Integer>> result = pathSum(root, 22);\n for(List<Integer> i: result) {\n System.out.println(i);\n }\n }", "public List<Integer> numIslands2(int m, int n, int[][] positions) {\n UnionFind uf = new UnionFind(m * n);\n List<Integer> res = new ArrayList<>();\n int[][] next = new int[][]{{1, 0}, {-1, 0}, {0, 1}, {0, -1}};\n\n for (int[] position : positions) {\n int currId = position[0] * n + position[1];\n // if it's a duplicate node - no need for extra computation\n if (uf.isLand(currId)) {\n res.add(uf.getNumOfConnectedComponents());\n continue;\n }\n\n // otherwise, add the node into the union find (set parent as itself)\n uf.turnToLand(currId);\n\n // check 4 neighbors and see whether we can connect with any nodes\n for (int[] step : next) {\n int neighborRow = position[0] + step[0], neighborCol = position[1] + step[1];\n int neighborId = neighborRow * n + neighborCol;\n // need to make sure the search is still in the grid + the neighbor is actually a land cell\n if (neighborRow >= 0 && neighborCol >= 0 && neighborRow < m && neighborCol < n && uf.isLand(neighborId)) {\n uf.union(currId, neighborId);\n }\n }\n // after union with the neighbors - get the number of updated connected components\n res.add(uf.getNumOfConnectedComponents());\n }\n return res;\n }", "public int sumDescendants() {\n if (left == null && right == null) {\n int oldVal = value;\n /* fill code*/\n value = 0;\n return oldVal;\n\n } else {\n int oldVal = value;\n\n /* fill code*/\n value = left.sumDescendants()+ right.sumDescendants();\n\n return oldVal + value;\n\n }\n }", "public int neighborCount(int row, int col) {//these are your current positions\n\t\tint neighborCell = 0;\n\t\t//array is zero based index\n\n\t\t//down one or row down one\n\t\tif(cellAt((row + 1) % rowCount, col)) //lets say our arrayCell is arrayCell(4,4)\n\t\t\tneighborCell++;\t\t\t\t\t\t// row here is your current cell(this is where you start and put your cell) and you add + 1 \n\t\t\t\t\t\t\t\t\t\t\t\t//lets say row is 1 then it is 1+1 = 2 \n\t\t\t\t\t\t\t\t\t\t\t\t//then 2 % 4(rowCount is 4) = 2\n\t\t\t\t\t\t\t\t\t\t\t\t//then your row is 2 and column 1\n\t\t\n\t\t//row up one\n\t\tif(cellAt((row + rowCount - 1) % rowCount , col))\n\t\t\tneighborCell++;\n\n\t\t//column right or column + 1\n\t\tif(cellAt(row, (col + 1)% colCount))\n\t\t\tneighborCell++;\n\n\t\t//column left or column -1\n\t\tif(cellAt(row,(col + colCount -1)% colCount))\n\t\t\tneighborCell++;\n\n\t\t//row up one and column right one\n\t\tif(cellAt((row + rowCount - 1) % rowCount,(col + 1)% colCount ))\n\t\t\tneighborCell++;\n\n\t\t//row down one and column right \n\t\tif(cellAt((row + 1) % rowCount,(col + 1)% colCount)) \n\t\t\tneighborCell++;\n\n\t\t//row down one and column left\n\t\tif(cellAt((row + 1) % rowCount,(col + colCount -1)% colCount)) \n\t\t\tneighborCell++;\n\n\t\t//row up one and column left\n\t\tif(cellAt((row + rowCount - 1) % rowCount, (col + colCount -1)% colCount))\n\t\t\tneighborCell++;\n\n\t\treturn neighborCell;\n\n\t}", "public int getDegree(){\n\t\treturn neighbours.size();\n\t}", "public int numIslands1(char[][] grid) {\n int res = 0;\n if (null == grid || grid.length == 0) {\n return res;\n }\n\n int nr = grid.length;\n int nc = grid[0].length;\n for (int i = 0; i < nr; i++) {\n for (int j = 0; j < nc; j++) {\n if (grid[i][j] == '1') {\n ++res;\n dfs(grid, i, j);\n }\n }\n }\n return res;\n }", "public int numIslands2(char[][] grid) {\n int res = 0;\n if (grid == null || grid.length == 0) {\n return res;\n }\n\n int nr = grid.length;\n int nc = grid[0].length;\n for (int i = 0; i < nr; i++) {\n for (int j = 0; j < nc; j++) {\n if (grid[i][j] == '1') {\n ++res;\n bfs(grid, i, j);\n }\n }\n }\n return res;\n }", "public void findNeighbours(ArrayList<int[]> visited , Grid curMap) {\r\n\t\tArrayList<int[]> visitd = visited;\r\n\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS cur pos:\" +Arrays.toString(nodePos));\r\n\t\t//for(int j=0; j<visitd.size();j++) {\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +Arrays.toString(visited.get(j)));\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS getvstd\" +Arrays.toString(visited.get(j)));\r\n\t\t//}\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +visited);\r\n\t\tCell left=curMap.getCell(0, 0);\r\n\t\tCell right=curMap.getCell(0, 0);\r\n\t\tCell upper=curMap.getCell(0, 0);\r\n\t\tCell down=curMap.getCell(0, 0);\r\n\t\t//the getStart() method returns x,y coordinates representing the point in x,y axes\r\n\t\t//so if either of [0] or [1] coordinate is zero then we have one less neighbor\r\n\t\tif (nodePos[1]> 0) {\r\n\t\t\tupper=curMap.getCell(nodePos[0], nodePos[1]-1) ; \r\n\t\t}\r\n\t\tif (nodePos[1] < M-1) {\r\n\t\t\tdown=curMap.getCell(nodePos[0], nodePos[1]+1);\r\n\t\t}\r\n\t\tif (nodePos[0] > 0) {\r\n\t\t\tleft=curMap.getCell(nodePos[0] - 1, nodePos[1]);\r\n\t\t}\r\n\t\tif (nodePos[0] < N-1) {\r\n\t\t\tright=curMap.getCell(nodePos[0]+1, nodePos[1]);\r\n\t\t}\r\n\t\t//for(int i=0;i<visitd.size();i++) {\r\n\t\t\t//System.out.println(Arrays.toString(visitd.get(i)));\t\r\n\t\t//}\r\n\t\t\r\n\t\t//check if the neighbor is wall,if its not add to the list\r\n\t\tif(nodePos[1]>0 && !upper.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] - 1}))) {\r\n\t\t\t//Node e=new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1},curMap);\r\n\t\t\t//if(e.getVisited()!=true) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1}, curMap)); // father of the new nodes is this node\r\n\t\t\t//}\r\n\t\t}\r\n\t\tif(nodePos[1]<M-1 &&!down.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] + 1}))){\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] + 1}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]>0 && !left.isWall() && (!exists(visitd,new int[] {nodePos[0] - 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] - 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]<N-1 && !right.isWall() && (!exists(visitd,new int[] {nodePos[0] + 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] + 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\t//for(int i=0; i<NodeChildren.size();i++) {\r\n\t\t\t//System.out.println(\"Paidia sth find:\" + Arrays.toString(NodeChildren.get(i).getNodePos()));\r\n\t\t//}\r\n\t\t\t\t\t\t\r\n\t}", "private List<Integer> getAdjacent(int node) {\n List<Integer> adjacent = new ArrayList<>();\n for (int i = 0; i < this.matrix[node].length; i++) {\n if (this.matrix[node][i]) {\n adjacent.add(i);\n }\n }\n return adjacent;\n }", "public int totalNodes(Node<T> n)\n\t{\n\t\tif (n == null) \n return 0; \n else \n { \n \t\n int lTotal = totalNodes(n.left); \n int rTotal = totalNodes(n.right); \n \n return (lTotal + rTotal + 1); \n \n \n \n } \n\t}", "private void nourrireLePeuple() {\n\t\t\tint totalDepense = (int)((population * 1) + (populationColoniale * 0.8) + ((armee + armeeDeployee()) * nourritureParArmee));\r\n\t\t\tnourriture -= totalDepense;\r\n\t\t\tenFamine = (nourriture > 0) ? false : true;\r\n\t\t}", "public abstract int numOfFoodCellToReproduce();", "private int getNeighborCount(int x, int y, Assignment assignment){\n\t\tint neighbors = 0;\n\n\t\t// try neighbor up\n\t\tif(isNeighborAt(x-1, y, assignment))\n\t\t\tneighbors++;\n\n\t\t// try neighbor up-left\n\t\tif(isNeighborAt(x-1, y-1, assignment))\n\t\t\tneighbors++;\n\n\t\t// try neighbor up-right\n\t\tif(isNeighborAt(x-1, y+1, assignment))\n\t\t\tneighbors++;\n\n\t\t// try neighbor down\n\t\tif(isNeighborAt(x+1, y, assignment))\n\t\t\tneighbors++;\n\n\t\t// try neighbor down-left\n\t\tif(isNeighborAt(x+1, y-1, assignment))\n\t\t\tneighbors++;\n\n\t\t// try neighbor down-right\n\t\tif(isNeighborAt(x+1, y+1, assignment))\n\t\t\tneighbors++;\n\n\t\t// try neighbor left\n\t\tif(isNeighborAt(x, y-1, assignment))\n\t\t\tneighbors++;\n\n\t\t// try neighbor right\n\t\tif(isNeighborAt(x, y+1, assignment))\n\t\t\tneighbors++;\n\n\t\treturn neighbors;\n\t}", "public abstract int neighboursInBlock(Set<Integer> block, int vertexIndex);", "public int getCellsUniverseSize(){\r\n return cellsUniverse.size();\r\n }", "private static List<HantoCoordinate> getPerimeterSpaces(Board b) {\n\n\t\tList<HantoCoordinate> perimeter = new ArrayList<HantoCoordinate>();\n\t\tList<HantoCoordinate> toVisit = b.getAllOccupiedCoordinates();\n\n\t\tfor(HantoCoordinate current : toVisit){\n\n\t\t\tfor(HantoCoordinate neighbor : HantoUtil.getAllNeighbors(current)){\n\n\t\t\t\tif(!toVisit.contains(neighbor) && !perimeter.contains(neighbor)){\n\t\t\t\t\tperimeter.add(neighbor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn perimeter;\n\t}", "private static int countNodes(TreeNode node) {\n if (node == null) {\n // Tree is empty, so it contains no nodes.\n return 0;\n } else {\n // Add up the root node and the nodes in its two subtrees.\n int leftCount = countNodes(node.left);\n int rightCount = countNodes(node.right);\n return 1 + leftCount + rightCount;\n }\n }", "private static int numTrees(int n) {\n int[] counts = new int[n + 2];\n counts[0] = 1;\n counts[1] = 1;\n for (int i = 2; i <= n; i++) {\n for (int j = 0; j < i; j++) {\n counts[i] += counts[j] * counts[i - j - 1];\n }\n }\n return counts[n];\n }", "public void calculate() {\n\t\t\n\t\tHashMap<Integer, Vertex> vertices = triangulation.getVertices();\n\t\tHashMap<Integer, Face> faces = triangulation.getFaces();\n\n\t\tHashMap<Integer, Integer> chords = new HashMap<Integer, Integer>();\n\t\tList<Vertex> onOuterCircle = new LinkedList<Vertex>();\n\t\tList<Edge> outerCircle = new LinkedList<Edge>();\n\n\t\tfor (Vertex v : vertices.values()) {\n\t\t\tchords.put(v.getId(), 0);\n\t\t\tchildren.put(v.getId(), new LinkedList<Integer>());\n\t\t}\n\n\t\t// determine outer face (randomly, use the first face)\n\t\tFace outerFace = null;\n\t\tfor (Face f : faces.values()) {\n\t\t\touterFace = f;\n\t\t\tbreak;\n\t\t}\n\t\tif (outerFace == null) {\n\t\t\t// there are no faces at all in the embedding\n\t\t\treturn;\n\t\t}\n\n\t\tEdge e = outerFace.getIncidentEdge();\n\t\tvertexOrder[1] = e.getSource();\n\t\tvertexOrder[0] = e.getTarget();\n\t\tonOuterCircle.add(e.getTarget());\n\t\tonOuterCircle.add(e.getNext().getTarget());\n\t\tonOuterCircle.add(e.getSource());\n\t\touterCircle.add(e.getNext().getNext().getTwin());\n\t\touterCircle.add(e.getNext().getTwin());\n\t\t\n\t\t//System.out.println(\"outerCircle 0 \" + outerCircle.get(0).getId() + \" - source: \" + outerCircle.get(0).getSource().getId() + \" - target: \" + outerCircle.get(0).getTarget().getId());\n\t\t//System.out.println(\"outerCircle 1 \" + outerCircle.get(1).getId() + \" - source: \" + outerCircle.get(1).getSource().getId() + \" - target: \" + outerCircle.get(1).getTarget().getId());\n\t\t\n\n\t\tfor (int k=vertexOrder.length-1; k>1; k--) {\n\t\t\t//System.out.println(\"k: \" + k + \" - outerCircle size: \" + outerCircle.size());\n\t\t\t// chose v != v_0,v_1 such that v on outer face, not considered yet and chords(v)=0\n\t\t\tVertex nextVertex = null;\n\t\t\tint nextVertexId = -1;\n\t\t\tfor (int i=0; i<onOuterCircle.size(); i++) {\n\t\t\t\tnextVertex = onOuterCircle.get(i);\n\t\t\t\tnextVertexId = nextVertex.getId();\n\t\t\t\tif (nextVertexId != vertexOrder[0].getId() && nextVertexId != vertexOrder[1].getId()\n\t\t\t\t\t\t&& chords.get(nextVertexId) == 0) {\n\t\t\t\t\t// remove from list\n\t\t\t\t\tonOuterCircle.remove(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(\"nextVertexId: \" + nextVertexId);\n\n\t\t\t// found the next vertex; add it to the considered vertices\n\t\t\tvertexOrder[k] = nextVertex;\n\t\t\t\n\t\t\t// determine children\n\t\t\tList<Integer> childrenNextVertex = children.get(nextVertexId);\n\t\t\t\n\t\t\t// update edges of outer circle\n\t\t\tint index = 0;\n\t\t\t\n\t\t\twhile (outerCircle.get(index).getTarget().getId() != nextVertexId) {\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\tEdge outofNextVertex = outerCircle.remove(index+1);\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"outOfNextVertex \" + outofNextVertex.getId() + \" - source: \" + outofNextVertex.getSource().getId() + \" - target: \" + outofNextVertex.getTarget().getId());\n\t\t\tEdge intoNextVertex = outerCircle.remove(index);\n\t\t\t//System.out.println(\"intoNextVertex \" + intoNextVertex.getId() + \" - source: \" + intoNextVertex.getSource().getId() + \" - target: \" + intoNextVertex.getTarget().getId());\n\t\t\tEdge current = intoNextVertex.getNext();\n\t\t\t//System.out.println(\"current \" + current.getId() + \" - source: \" + current.getSource().getId() + \" - target: \" + current.getTarget().getId());\n\t\t\t\n\t\t\tint endIndex = index;\n\t\t\t\n\t\t\twhile (current.getId() != outofNextVertex.getId()) {\n\t\t\t\tEdge onCircle = current.getNext().getTwin();\n\t\t\t\touterCircle.add(endIndex, onCircle);\n\t\t\t\t\n\t\t\t\tchildrenNextVertex.add(0, onCircle.getSource().getId());\n\t\t\t\t\n\t\t\t\tendIndex++;\n\t\t\t\tcurrent = current.getTwin().getNext();\n\t\t\t\tonOuterCircle.add(onCircle.getTarget());\n\t\t\t}\n\t\t\t\n\t\t\tEdge lastEdge = outofNextVertex.getNext().getTwin();\n\t\t\touterCircle.add(endIndex, lastEdge);\n\t\t\t\n\t\t\tchildrenNextVertex.add(0, lastEdge.getSource().getId());\n\t\t\tchildrenNextVertex.add(0, lastEdge.getTarget().getId());\n\n\t\t\t// update chords\n\t\t\tfor (Vertex v : onOuterCircle) {\n\t\t\t\tEdge incidentEdge = v.getOutEdge();\n\t\t\t\tint firstEdgeId = incidentEdge.getId();\n\t\t\t\tint chordCounter = -2; // the 2 neighbours are on the outer circle, but no chords\n\t\t\t\tdo {\n\t\t\t\t\tif (onOuterCircle.contains(incidentEdge.getTarget())) {\n\t\t\t\t\t\tchordCounter++;\n\t\t\t\t\t}\n\t\t\t\t\tincidentEdge = incidentEdge.getTwin().getNext();\n\t\t\t\t} while (incidentEdge.getId() != firstEdgeId);\n\t\t\t\tchords.put(v.getId(), chordCounter);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public int hashCode() {\n return Objects.hashCode(nodes(), edgeToIncidentNodes);\n }", "int getNodeCount();", "int getNodeCount();" ]
[ "0.5913391", "0.5775547", "0.54763615", "0.5434122", "0.5391493", "0.53490627", "0.53199804", "0.5316212", "0.5292579", "0.52872556", "0.5285824", "0.526582", "0.52558553", "0.5245733", "0.52417916", "0.5239695", "0.5239644", "0.52381253", "0.5227155", "0.52231854", "0.5219701", "0.521283", "0.52127016", "0.5202437", "0.52009034", "0.5197292", "0.51869756", "0.51790315", "0.5177519", "0.5167053", "0.51513374", "0.51457256", "0.5135623", "0.5134793", "0.5131936", "0.51288533", "0.50902253", "0.5087223", "0.5077733", "0.50710094", "0.50653124", "0.50649387", "0.5061971", "0.50617003", "0.5054953", "0.5047886", "0.50473064", "0.5038625", "0.5034477", "0.50252223", "0.5020361", "0.5008149", "0.5003253", "0.5002832", "0.5001274", "0.49965772", "0.49910134", "0.497561", "0.49626327", "0.49598667", "0.49540707", "0.49413553", "0.49412972", "0.49383453", "0.49252683", "0.49165842", "0.49126592", "0.49002394", "0.4898101", "0.48928624", "0.48847672", "0.4877752", "0.48692936", "0.48671296", "0.4856954", "0.4856318", "0.48531446", "0.4839808", "0.4839411", "0.4836711", "0.48360026", "0.48329902", "0.4824264", "0.48225448", "0.48210096", "0.48143622", "0.48020327", "0.4797681", "0.47874725", "0.47835582", "0.47815883", "0.47787228", "0.4772787", "0.47721723", "0.4771855", "0.47715104", "0.4768037", "0.47636098", "0.4763275", "0.4758227", "0.4758227" ]
0.0
-1
Compute the number of inhabitants and immediate neighborhoods in a visible but collapsed node
private long censusColapsed(ConstituentsAddressNode crt, int[]neighborhoods) throws P2PDDSQLException { if(DEBUG) System.err.println("ConstituentsModel:censusColapsed: start"); long result = 0; if((crt==null)||(crt.n_data==null)) return 0; long n_ID = crt.n_data.neighborhoodID; if(DEBUG) System.err.println("ConstituentsModel:censusColapsed: start nID="+n_ID); if(n_ID <= 0) return 0; String sql_c = "SELECT "+table.constituent.neighborhood_ID+ " FROM "+table.constituent.TNAME+ " WHERE "+table.constituent.neighborhood_ID+"=?;"; ArrayList<ArrayList<Object>> c = Application.db.select(sql_c, new String[]{n_ID+""}, DEBUG); result = c.size(); String sql_n = "SELECT "+table.neighborhood.neighborhood_ID+ " FROM "+table.neighborhood.TNAME+ " WHERE "+table.neighborhood.parent_nID+"=?;"; ArrayList<ArrayList<Object>> n = Application.db.select(sql_n, new String[]{n_ID+""}, DEBUG); neighborhoods[0] += n.size(); HashSet<String> visited = new HashSet<String>(); visited.add(""+n_ID); for(int k=0; k<n.size(); k++) { if(!running) return 0; result += censusHiddenNeighborhoods(Util.lval(n.get(k).get(0), -1), visited); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int displayN(Node node)\r\n {\r\n return node.neighbors.size();\r\n }", "private void countCells() {\n\t\tvisitedCells = 0;\n\t\ttotalCells = 0;\n\t\tfor (int ix = 0; ix < maxCells_x; ix++) {\n\t\t\tfor (int iy = 0; iy < maxCells_y; iy++) {\n\t\t\t\ttotalCells++;\n\t\t\t\tif (cell[ix][iy] == 1) {\n\t\t\t\t\tvisitedCells++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public int numberofDistinctIslands(int[][] grid) {\n int rows = grid.length;\n if (rows == 0){\n return 0;\n }\n int cols = grid[0].length;\n int count = 0;\n\n visited = new boolean[rows][cols];\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n visited[i][j] = false;\n }\n }\n\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (grid[i][j] == 1 && !visited[i][j]){\n dfs(grid, i, j, rows, cols);\n count++;\n }\n }\n }\n\n System.out.println(count);\n return count;\n }", "int getNodeCount();", "int getNodeCount();", "@Override\n public int getNumNeighboringMines(int row, int col) {\n int count = 0, rowStart = Math.max(row - 1, 0), rowFinish = Math.min(row + 1, grid.length - 1), colStart = Math.max(col - 1, 0), colFinish = Math.min(col + 1, grid[0].length - 1);\n\n for (int curRow = rowStart; curRow <= rowFinish; curRow++) {\n for (int curCol = colStart; curCol <= colFinish; curCol++) {\n if (grid[curRow][curCol].getType() == Tile.MINE) count++;\n }\n }\n return count;\n }", "public int numIslands(char[][] grid) {\n\n int n = grid.length;\n if(n==0)\n return 0;\n int m = grid[0].length;\n if(m==0)\n return 0;\n \n int ans =0;\n for(int i=0;i<n;i++)\n {\n m = grid[i].length;\n for(int j=0;j<m;j++)\n {\n if(grid[i][j]=='1')\n {\n ans++;\n dfs(grid,i,j,n,m);\n }\n }\n }\n return ans;\n }", "public static int numIslands(char[][] grid) {\n int row = grid.length;\n int col = grid[0].length;\n int ans = 0;\n boolean[][] visited = new boolean[row][col];\n for (int i = 0; i < row; i++) {\n for (int j = 0; j < col; j++) {\n if (!visited[i][j] && grid[i][j] == '1') {\n dfs(grid, visited, i, j);\n ans++;\n }\n visited[i][j] = true;\n }\n }\n return ans;\n }", "public int numIslands(boolean[][] grid) {\n m = grid.length;\n if (m == 0) return 0;\n n = grid[0].length;\n if (n == 0) return 0;\n \n int ans = 0;\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n if (!grid[i][j]) continue;\n ans++;\n dfs(grid, i, j);\n }\n }\n return ans;\n }", "int getNodesCount();", "int getNodesCount();", "private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}", "private int numIslands_dfs(char[][] grid) {\n int m = grid.length;\n int n = grid[0].length;\n \n // 很多解法是将grid[i][j] 设置成0,这样也可以,只是会改变输入,可以讨论。\n boolean[] visited = new boolean[m * n]; // 这里就不用map了,一个一维数组就可以。\n \n int numOfIslands = 0;\n for (int i = 0; i < m; ++i) {\n for (int j = 0; j < n; ++j) {\n if (grid[i][j] == '1' && !visited[i * n + j]) {\n ++ numOfIslands;\n dfs(grid, i, j, visited);\n }\n }\n }\n return numOfIslands;\n }", "public int countNeighbours() {\n\t\tint count = 0;\n\t\tif (this.hasNeighbour(0))\n\t\t\tcount++;\n\t\tif (this.hasNeighbour(1))\n\t\t\tcount++;\n\t\tif (this.hasNeighbour(2))\n\t\t\tcount++;\n\t\treturn count;\n\t}", "public int numIslands(char[][] grid) {\n\t int noOfIslands = 0;\n\t if(grid.length == 0) return 0;\n\t boolean[] [] visited = new boolean[grid.length][grid[0].length];\n\t \n\t for(int i=0;i<grid.length;i++){\n\t for(int j=0;j<grid[0].length;j++){\n\t if(visited[i][j] == false && grid[i][j]=='1'){\n\t gatherIslandNodes(visited, grid, i, j);\n\t noOfIslands++;\n\t }\n\t \n\t }\n\t }\n\t return noOfIslands;\n\t }", "public int numIslands(char[][] grid) {\n if (grid == null || grid.length == 0) \n return 0;\n \n int count = 0;\n int nr = grid.length;\n int nc = grid[0].length;\n\n for (int r = 0; r < nr; r++) {\n for (int c = 0; c < nc; c++) {\n if (grid[r][c] == '1') {\n count++;\n dfs(grid, r, c);\n }\n }\n }\n return count;\n }", "public int numDistinctIslands(int[][] grid){\n if(grid == null || grid.length == 0)\n return 0;\n Set<String> set = new HashSet<>();\n int row = grid.length, col = grid[0].length;\n for(int i = 0; i < row; i++){\n for(int j = 0; j < col; j++){\n if(grid[i][j] == 1){\n String path = dfs(grid, i, j, row, col, \"S\");\n set.add(path);\n }\n }\n }\n return set.size();\n }", "public int numIslands(char[][] grid) {\n int m = grid.length;\n if (m == 0) {\n return 0;\n }\n int n = grid[0].length;\n char[][] map = new char[m][n];\n int[][] visit = new int[m][n];\n for (int i = 0; i < m; i++)\n for (int j = 0; j < n; j++)\n map[i][j] = grid[i][j];\n\n int count = 0;\n\n for (int i = 0; i < m; i++)\n for (int j = 0; j < n; j++) {\n if (grid[i][j] == '1' && visit[i][j] == 0) {\n count++;\n findIsland(map, visit, i, j);\n }\n }\n\n return count;\n }", "protected abstract int countNeighbors(int x, int y);", "public int getVisitedCells() \r\n\t{\r\n\t\tint lastCell = path.size() - 1;\r\n\t\tint visitedCells = path.get(lastCell).getDiscoveryTime() + 1;\r\n\t\treturn visitedCells;\r\n\t}", "private int getAliveNeighboursCount (int line, int column) {\n assert isInUniverse(line,column);\n// System.out.println(\"getAliveNeighboursCount for \"+line+column);\n int aliveNeighbours = 0;\n// System.out.println(\"->\"+(line-1)+\"|\"+(column-1));\n if (isInUniverse((line-1),(column-1))) if (getCell((line-1),(column-1))) aliveNeighbours++; // -1/-1\n if (isInUniverse((line-1), column) ) if (getCell((line-1), column)) aliveNeighbours++; // -1/0\n if (isInUniverse((line-1),(column+1))) if (getCell((line-1),(column+1))) aliveNeighbours++; // -1/+1\n if (isInUniverse( line ,(column-1))) if (getCell( line ,(column-1))) aliveNeighbours++; // 0/-1\n if (isInUniverse( line ,(column+1))) if (getCell( line ,(column+1))) aliveNeighbours++; // 0/+1\n if (isInUniverse((line+1),(column-1))) if (getCell((line+1),(column-1))) aliveNeighbours++; // +1/-1\n if (isInUniverse((line+1), column) ) if (getCell((line+1), column)) aliveNeighbours++; // +1/0\n if (isInUniverse((line+1),(column+1))) if (getCell((line+1),(column+1))) aliveNeighbours++; // +1/+1\n// System.out.println(\"getAliveNeighboursCount done\");\n return aliveNeighbours;\n }", "public int numIslands(char[][] grid) {\n int noOfRows = grid.length;\n int noOfCols = grid[0].length;\n int islands = 0;\n for (int row = 0; row < noOfRows; row++) {\n for (int col = 0; col < noOfCols; col++) {\n if (grid[row][col] == '1') {\n islands++;\n dfs(grid,row,col);\n }\n }\n }\n return islands;\n }", "@Override\n public long[ ][ ] count() {\n // precompute common nodes\n for (int x = 0; x < n; x++) {\n for (int n1 = 0; n1 < deg[x]; n1++) {\n int a = adj[x][n1];\n for (int n2 = n1 + 1; n2 < deg[x]; n2++) {\n int b = adj[x][n2];\n Tuple ab = createTuple(a, b);\n common2.put(ab, common2.getOrDefault(ab, 0) + 1);\n for (int n3 = n2 + 1; n3 < deg[x]; n3++) {\n int c = adj[x][n3];\n boolean st = adjacent(adj[a], b) ? (adjacent(adj[a], c) || adjacent(adj[b], c)) :\n (adjacent(adj[a], c) && adjacent(adj[b], c));\n if (!st) continue;\n Tuple abc = createTuple(a, b, c);\n common3.put(abc, common3.getOrDefault(abc, 0) + 1);\n }\n }\n }\n }\n\n // precompute triangles that span over edges\n int[ ] tri = countTriangles();\n\n // count full graphlets\n long[ ] C5 = new long[n];\n int[ ] neigh = new int[n];\n int[ ] neigh2 = new int[n];\n int nn, nn2;\n for (int x = 0; x < n; x++) {\n for (int nx = 0; nx < deg[x]; nx++) {\n int y = adj[x][nx];\n if (y >= x) break;\n nn = 0;\n for (int ny = 0; ny < deg[y]; ny++) {\n int z = adj[y][ny];\n if (z >= y) break;\n if (adjacent(adj[x], z)) {\n neigh[nn++] = z;\n }\n }\n for (int i = 0; i < nn; i++) {\n int z = neigh[i];\n nn2 = 0;\n for (int j = i + 1; j < nn; j++) {\n int zz = neigh[j];\n if (adjacent(adj[z], zz)) {\n neigh2[nn2++] = zz;\n }\n }\n for (int i2 = 0; i2 < nn2; i2++) {\n int zz = neigh2[i2];\n for (int j2 = i2 + 1; j2 < nn2; j2++) {\n int zzz = neigh2[j2];\n if (adjacent(adj[zz], zzz)) {\n C5[x]++;\n C5[y]++;\n C5[z]++;\n C5[zz]++;\n C5[zzz]++;\n }\n }\n }\n }\n }\n }\n\n int[ ] common_x = new int[n];\n int[ ] common_x_list = new int[n];\n int ncx = 0;\n int[ ] common_a = new int[n];\n int[ ] common_a_list = new int[n];\n int nca = 0;\n\n // set up a system of equations relating orbit counts\n for (int x = 0; x < n; x++) {\n for (int i = 0; i < ncx; i++) common_x[common_x_list[i]] = 0;\n ncx = 0;\n\n // smaller graphlets\n orbit[x][0] = deg[x];\n for (int nx1 = 0; nx1 < deg[x]; nx1++) {\n int a = adj[x][nx1];\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = adj[x][nx2];\n if (adjacent(adj[a], b)) orbit[x][3]++;\n else orbit[x][2]++;\n }\n for (int na = 0; na < deg[a]; na++) {\n int b = adj[a][na];\n if (b != x && !adjacent(adj[x], b)) {\n orbit[x][1]++;\n if (common_x[b] == 0) common_x_list[ncx++] = b;\n common_x[b]++;\n }\n }\n }\n\n long f_71 = 0, f_70 = 0, f_67 = 0, f_66 = 0, f_58 = 0, f_57 = 0; // 14\n long f_69 = 0, f_68 = 0, f_64 = 0, f_61 = 0, f_60 = 0, f_55 = 0, f_48 = 0, f_42 = 0, f_41 = 0; // 13\n long f_65 = 0, f_63 = 0, f_59 = 0, f_54 = 0, f_47 = 0, f_46 = 0, f_40 = 0; // 12\n long f_62 = 0, f_53 = 0, f_51 = 0, f_50 = 0, f_49 = 0, f_38 = 0, f_37 = 0, f_36 = 0; // 8\n long f_44 = 0, f_33 = 0, f_30 = 0, f_26 = 0; // 11\n long f_52 = 0, f_43 = 0, f_32 = 0, f_29 = 0, f_25 = 0; // 10\n long f_56 = 0, f_45 = 0, f_39 = 0, f_31 = 0, f_28 = 0, f_24 = 0; // 9\n long f_35 = 0, f_34 = 0, f_27 = 0, f_18 = 0, f_16 = 0, f_15 = 0; // 4\n long f_17 = 0; // 5\n long f_22 = 0, f_20 = 0, f_19 = 0; // 6\n long f_23 = 0, f_21 = 0; // 7\n\n for (int nx1 = 0; nx1 < deg[x]; nx1++) {\n int a = inc[x][nx1]._1, xa = inc[x][nx1]._2;\n\n for (int i = 0; i < nca; i++) common_a[common_a_list[i]] = 0;\n nca = 0;\n for (int na = 0; na < deg[a]; na++) {\n int b = adj[a][na];\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = adj[b][nb];\n if (c == a || adjacent(adj[a], c)) continue;\n if (common_a[c] == 0) common_a_list[nca++] = c;\n common_a[c]++;\n }\n }\n\n // x = orbit-14 (tetrahedron)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nx3 = nx2 + 1; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (!adjacent(adj[a], c) || !adjacent(adj[b], c)) continue;\n orbit[x][14]++;\n f_70 += common3.getOrDefault(createTuple(a, b, c), 0) - 1;\n f_71 += (tri[xa] > 2 && tri[xb] > 2) ? (common3.getOrDefault(createTuple(x, a, b), 0) - 1) : 0;\n f_71 += (tri[xa] > 2 && tri[xc] > 2) ? (common3.getOrDefault(createTuple(x, a, c), 0) - 1) : 0;\n f_71 += (tri[xb] > 2 && tri[xc] > 2) ? (common3.getOrDefault(createTuple(x, b, c), 0) - 1) : 0;\n f_67 += tri[xa] - 2 + tri[xb] - 2 + tri[xc] - 2;\n f_66 += common2.getOrDefault(createTuple(a, b), 0) - 2;\n f_66 += common2.getOrDefault(createTuple(a, c), 0) - 2;\n f_66 += common2.getOrDefault(createTuple(b, c), 0) - 2;\n f_58 += deg[x] - 3;\n f_57 += deg[a] - 3 + deg[b] - 3 + deg[c] - 3;\n }\n }\n\n // x = orbit-13 (diamond)\n for (int nx2 = 0; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nx3 = nx2 + 1; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (!adjacent(adj[a], c) || adjacent(adj[b], c)) continue;\n orbit[x][13]++;\n f_69 += (tri[xb] > 1 && tri[xc] > 1) ? (common3.getOrDefault(createTuple(x, b, c), 0) - 1) : 0;\n f_68 += common3.getOrDefault(createTuple(a, b, c), 0) - 1;\n f_64 += common2.getOrDefault(createTuple(b, c), 0) - 2;\n f_61 += tri[xb] - 1 + tri[xc] - 1;\n f_60 += common2.getOrDefault(createTuple(a, b), 0) - 1;\n f_60 += common2.getOrDefault(createTuple(a, c), 0) - 1;\n f_55 += tri[xa] - 2;\n f_48 += deg[b] - 2 + deg[c] - 2;\n f_42 += deg[x] - 3;\n f_41 += deg[a] - 3;\n }\n }\n\n // x = orbit-12 (diamond)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int na = 0; na < deg[a]; na++) {\n int c = inc[a][na]._1, ac = inc[a][na]._2;\n if (c == x || adjacent(adj[x], c) || !adjacent(adj[b], c)) continue;\n orbit[x][12]++;\n f_65 += (tri[ac] > 1) ? common3.getOrDefault(createTuple(a, b, c), 0) : 0;\n f_63 += common_x[c] - 2;\n f_59 += tri[ac] - 1 + common2.getOrDefault(createTuple(b, c), 0) - 1;\n f_54 += common2.getOrDefault(createTuple(a, b), 0) - 2;\n f_47 += deg[x] - 2;\n f_46 += deg[c] - 2;\n f_40 += deg[a] - 3 + deg[b] - 3;\n }\n }\n\n // x = orbit-8 (cycle)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (adjacent(adj[a], b)) continue;\n for (int na = 0; na < deg[a]; na++) {\n int c = inc[a][na]._1, ac = inc[a][na]._2;\n if (c == x || adjacent(adj[x], c) || !adjacent(adj[b], c)) continue;\n orbit[x][8]++;\n f_62 += (tri[ac] > 0) ? common3.getOrDefault(createTuple(a, b, c), 0) : 0;\n f_53 += tri[xa] + tri[xb];\n f_51 += tri[ac] + common2.getOrDefault(createTuple(c, b), 0);\n f_50 += common_x[c] - 2;\n f_49 += common_a[b] - 2;\n f_38 += deg[x] - 2;\n f_37 += deg[a] - 2 + deg[b] - 2;\n f_36 += deg[c] - 2;\n }\n }\n\n // x = orbit-11 (paw)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nx3 = 0; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (c == a || c == b || adjacent(adj[a], c) || adjacent(adj[b], c)) continue;\n orbit[x][11]++;\n f_44 += tri[xc];\n f_33 += deg[x] - 3;\n f_30 += deg[c] - 1;\n f_26 += deg[a] - 2 + deg[b] - 2;\n }\n }\n\n // x = orbit-10 (paw)\n for (int nx2 = 0; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = inc[b][nb]._1, bc = inc[b][nb]._2;\n if (c == x || c == a || adjacent(adj[a], c) || adjacent(adj[x], c)) continue;\n orbit[x][10]++;\n f_52 += common_a[c] - 1;\n f_43 += tri[bc];\n f_32 += deg[b] - 3;\n f_29 += deg[c] - 1;\n f_25 += deg[a] - 2;\n }\n }\n\n // x = orbit-9 (paw)\n for (int na1 = 0; na1 < deg[a]; na1++) {\n int b = inc[a][na1]._1, ab = inc[a][na1]._2;\n if (b == x || adjacent(adj[x], b)) continue;\n for (int na2 = na1 + 1; na2 < deg[a]; na2++) {\n int c = inc[a][na2]._1, ac = inc[a][na2]._2;\n if (c == x || !adjacent(adj[b], c) || adjacent(adj[x], c)) continue;\n orbit[x][9]++;\n f_56 += (tri[ab] > 1 && tri[ac] > 1) ? common3.getOrDefault(createTuple(a, b, c), 0) : 0;\n f_45 += common2.getOrDefault(createTuple(b, c), 0) - 1;\n f_39 += tri[ab] - 1 + tri[ac] - 1;\n f_31 += deg[a] - 3;\n f_28 += deg[x] - 1;\n f_24 += deg[b] - 2 + deg[c] - 2;\n }\n }\n\n // x = orbit-4 (path)\n for (int na = 0; na < deg[a]; na++) {\n int b = inc[a][na]._1, ab = inc[a][na]._2;\n if (b == x || adjacent(adj[x], b)) continue;\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = inc[b][nb]._1, bc = inc[b][nb]._2;\n if (c == a || adjacent(adj[a], c) || adjacent(adj[x], c)) continue;\n orbit[x][4]++;\n f_35 += common_a[c] - 1;\n f_34 += common_x[c];\n f_27 += tri[bc];\n f_18 += deg[b] - 2;\n f_16 += deg[x] - 1;\n f_15 += deg[c] - 1;\n }\n }\n\n // x = orbit-5 (path)\n for (int nx2 = 0; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (b == a || adjacent(adj[a], b)) continue;\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = inc[b][nb]._1, bc = inc[b][nb]._2;\n if (c == x || adjacent(adj[a], c) || adjacent(adj[x], c)) continue;\n orbit[x][5]++;\n f_17 += deg[a] - 1;\n }\n }\n\n // x = orbit-6 (claw)\n for (int na1 = 0; na1 < deg[a]; na1++) {\n int b = inc[a][na1]._1, ab = inc[a][na1]._2;\n if (b == x || adjacent(adj[x], b)) continue;\n for (int na2 = na1 + 1; na2 < deg[a]; na2++) {\n int c = inc[a][na2]._1, ac = inc[a][na2]._2;\n if (c == x || adjacent(adj[x], c) || adjacent(adj[b], c)) continue;\n orbit[x][6]++;\n f_22 += deg[a] - 3;\n f_20 += deg[x] - 1;\n f_19 += deg[b] - 1 + deg[c] - 1;\n }\n }\n\n // x = orbit-7 (claw)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (adjacent(adj[a], b)) continue;\n for (int nx3 = nx2 + 1; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (adjacent(adj[a], c) || adjacent(adj[b], c)) continue;\n orbit[x][7]++;\n f_23 += deg[x] - 3;\n f_21 += deg[a] - 1 + deg[b] - 1 + deg[c] - 1;\n }\n }\n }\n\n // solve equations\n orbit[x][72] = C5[x];\n orbit[x][71] = (f_71 - 12 * orbit[x][72]) / 2;\n orbit[x][70] = (f_70 - 4 * orbit[x][72]);\n orbit[x][69] = (f_69 - 2 * orbit[x][71]) / 4;\n orbit[x][68] = (f_68 - 2 * orbit[x][71]);\n orbit[x][67] = (f_67 - 12 * orbit[x][72] - 4 * orbit[x][71]);\n orbit[x][66] = (f_66 - 12 * orbit[x][72] - 2 * orbit[x][71] - 3 * orbit[x][70]);\n orbit[x][65] = (f_65 - 3 * orbit[x][70]) / 2;\n orbit[x][64] = (f_64 - 2 * orbit[x][71] - 4 * orbit[x][69] - 1 * orbit[x][68]);\n orbit[x][63] = (f_63 - 3 * orbit[x][70] - 2 * orbit[x][68]);\n orbit[x][62] = (f_62 - 1 * orbit[x][68]) / 2;\n orbit[x][61] = (f_61 - 4 * orbit[x][71] - 8 * orbit[x][69] - 2 * orbit[x][67]) / 2;\n orbit[x][60] = (f_60 - 4 * orbit[x][71] - 2 * orbit[x][68] - 2 * orbit[x][67]);\n orbit[x][59] = (f_59 - 6 * orbit[x][70] - 2 * orbit[x][68] - 4 * orbit[x][65]);\n orbit[x][58] = (f_58 - 4 * orbit[x][72] - 2 * orbit[x][71] - 1 * orbit[x][67]);\n orbit[x][57] = (f_57 - 12 * orbit[x][72] - 4 * orbit[x][71] - 3 * orbit[x][70] - 1 * orbit[x][67] - 2 * orbit[x][66]);\n orbit[x][56] = (f_56 - 2 * orbit[x][65]) / 3;\n orbit[x][55] = (f_55 - 2 * orbit[x][71] - 2 * orbit[x][67]) / 3;\n orbit[x][54] = (f_54 - 3 * orbit[x][70] - 1 * orbit[x][66] - 2 * orbit[x][65]) / 2;\n orbit[x][53] = (f_53 - 2 * orbit[x][68] - 2 * orbit[x][64] - 2 * orbit[x][63]);\n orbit[x][52] = (f_52 - 2 * orbit[x][66] - 2 * orbit[x][64] - 1 * orbit[x][59]) / 2;\n orbit[x][51] = (f_51 - 2 * orbit[x][68] - 2 * orbit[x][63] - 4 * orbit[x][62]);\n orbit[x][50] = (f_50 - 1 * orbit[x][68] - 2 * orbit[x][63]) / 3;\n orbit[x][49] = (f_49 - 1 * orbit[x][68] - 1 * orbit[x][64] - 2 * orbit[x][62]) / 2;\n orbit[x][48] = (f_48 - 4 * orbit[x][71] - 8 * orbit[x][69] - 2 * orbit[x][68] - 2 * orbit[x][67] - 2 * orbit[x][64] - 2 * orbit[x][61] - 1 * orbit[x][60]);\n orbit[x][47] = (f_47 - 3 * orbit[x][70] - 2 * orbit[x][68] - 1 * orbit[x][66] - 1 * orbit[x][63] - 1 * orbit[x][60]);\n orbit[x][46] = (f_46 - 3 * orbit[x][70] - 2 * orbit[x][68] - 2 * orbit[x][65] - 1 * orbit[x][63] - 1 * orbit[x][59]);\n orbit[x][45] = (f_45 - 2 * orbit[x][65] - 2 * orbit[x][62] - 3 * orbit[x][56]);\n orbit[x][44] = (f_44 - 1 * orbit[x][67] - 2 * orbit[x][61]) / 4;\n orbit[x][43] = (f_43 - 2 * orbit[x][66] - 1 * orbit[x][60] - 1 * orbit[x][59]) / 2;\n orbit[x][42] = (f_42 - 2 * orbit[x][71] - 4 * orbit[x][69] - 2 * orbit[x][67] - 2 * orbit[x][61] - 3 * orbit[x][55]);\n orbit[x][41] = (f_41 - 2 * orbit[x][71] - 1 * orbit[x][68] - 2 * orbit[x][67] - 1 * orbit[x][60] - 3 * orbit[x][55]);\n orbit[x][40] = (f_40 - 6 * orbit[x][70] - 2 * orbit[x][68] - 2 * orbit[x][66] - 4 * orbit[x][65] - 1 * orbit[x][60] - 1 * orbit[x][59] - 4 * orbit[x][54]);\n orbit[x][39] = (f_39 - 4 * orbit[x][65] - 1 * orbit[x][59] - 6 * orbit[x][56]) / 2;\n orbit[x][38] = (f_38 - 1 * orbit[x][68] - 1 * orbit[x][64] - 2 * orbit[x][63] - 1 * orbit[x][53] - 3 * orbit[x][50]);\n orbit[x][37] = (f_37 - 2 * orbit[x][68] - 2 * orbit[x][64] - 2 * orbit[x][63] - 4 * orbit[x][62] - 1 * orbit[x][53] - 1 * orbit[x][51] - 4 * orbit[x][49]);\n orbit[x][36] = (f_36 - 1 * orbit[x][68] - 2 * orbit[x][63] - 2 * orbit[x][62] - 1 * orbit[x][51] - 3 * orbit[x][50]);\n orbit[x][35] = (f_35 - 1 * orbit[x][59] - 2 * orbit[x][52] - 2 * orbit[x][45]) / 2;\n orbit[x][34] = (f_34 - 1 * orbit[x][59] - 2 * orbit[x][52] - 1 * orbit[x][51]) / 2;\n orbit[x][33] = (f_33 - 1 * orbit[x][67] - 2 * orbit[x][61] - 3 * orbit[x][58] - 4 * orbit[x][44] - 2 * orbit[x][42]) / 2;\n orbit[x][32] = (f_32 - 2 * orbit[x][66] - 1 * orbit[x][60] - 1 * orbit[x][59] - 2 * orbit[x][57] - 2 * orbit[x][43] - 2 * orbit[x][41] - 1 * orbit[x][40]) / 2;\n orbit[x][31] = (f_31 - 2 * orbit[x][65] - 1 * orbit[x][59] - 3 * orbit[x][56] - 1 * orbit[x][43] - 2 * orbit[x][39]);\n orbit[x][30] = (f_30 - 1 * orbit[x][67] - 1 * orbit[x][63] - 2 * orbit[x][61] - 1 * orbit[x][53] - 4 * orbit[x][44]);\n orbit[x][29] = (f_29 - 2 * orbit[x][66] - 2 * orbit[x][64] - 1 * orbit[x][60] - 1 * orbit[x][59] - 1 * orbit[x][53] - 2 * orbit[x][52] - 2 * orbit[x][43]);\n orbit[x][28] = (f_28 - 2 * orbit[x][65] - 2 * orbit[x][62] - 1 * orbit[x][59] - 1 * orbit[x][51] - 1 * orbit[x][43]);\n orbit[x][27] = (f_27 - 1 * orbit[x][59] - 1 * orbit[x][51] - 2 * orbit[x][45]) / 2;\n orbit[x][26] = (f_26 - 2 * orbit[x][67] - 2 * orbit[x][63] - 2 * orbit[x][61] - 6 * orbit[x][58] - 1 * orbit[x][53] - 2 * orbit[x][47] - 2 * orbit[x][42]);\n orbit[x][25] = (f_25 - 2 * orbit[x][66] - 2 * orbit[x][64] - 1 * orbit[x][59] - 2 * orbit[x][57] - 2 * orbit[x][52] - 1 * orbit[x][48] - 1 * orbit[x][40]) / 2;\n orbit[x][24] = (f_24 - 4 * orbit[x][65] - 4 * orbit[x][62] - 1 * orbit[x][59] - 6 * orbit[x][56] - 1 * orbit[x][51] - 2 * orbit[x][45] - 2 * orbit[x][39]);\n orbit[x][23] = (f_23 - 1 * orbit[x][55] - 1 * orbit[x][42] - 2 * orbit[x][33]) / 4;\n orbit[x][22] = (f_22 - 2 * orbit[x][54] - 1 * orbit[x][40] - 1 * orbit[x][39] - 1 * orbit[x][32] - 2 * orbit[x][31]) / 3;\n orbit[x][21] = (f_21 - 3 * orbit[x][55] - 3 * orbit[x][50] - 2 * orbit[x][42] - 2 * orbit[x][38] - 2 * orbit[x][33]);\n orbit[x][20] = (f_20 - 2 * orbit[x][54] - 2 * orbit[x][49] - 1 * orbit[x][40] - 1 * orbit[x][37] - 1 * orbit[x][32]);\n orbit[x][19] = (f_19 - 4 * orbit[x][54] - 4 * orbit[x][49] - 1 * orbit[x][40] - 2 * orbit[x][39] - 1 * orbit[x][37] - 2 * orbit[x][35] - 2 * orbit[x][31]);\n orbit[x][18] = (f_18 - 1 * orbit[x][59] - 1 * orbit[x][51] - 2 * orbit[x][46] - 2 * orbit[x][45] - 2 * orbit[x][36] - 2 * orbit[x][27] - 1 * orbit[x][24]) / 2;\n orbit[x][17] = (f_17 - 1 * orbit[x][60] - 1 * orbit[x][53] - 1 * orbit[x][51] - 1 * orbit[x][48] - 1 * orbit[x][37] - 2 * orbit[x][34] - 2 * orbit[x][30]) / 2;\n orbit[x][16] = (f_16 - 1 * orbit[x][59] - 2 * orbit[x][52] - 1 * orbit[x][51] - 2 * orbit[x][46] - 2 * orbit[x][36] - 2 * orbit[x][34] - 1 * orbit[x][29]);\n orbit[x][15] = (f_15 - 1 * orbit[x][59] - 2 * orbit[x][52] - 1 * orbit[x][51] - 2 * orbit[x][45] - 2 * orbit[x][35] - 2 * orbit[x][34] - 2 * orbit[x][27]);\n }\n\n return orbit;\n }", "public int numNodes()\r\n {\r\n\tint s = 0;\r\n\tfor (final NodeTypeHolder nt : ntMap.values())\r\n\t s += nt.numNodes();\r\n\treturn s;\r\n }", "public int numIslands(char[][] grid){\n int count = 0;\n for (nt i = 0; i < grid.length; i++){\n for (int j = 0; j < grid[0].length; j++){\n if (grid[i][j] == '1'){\n dfs(grid, i, j);\n count++;\n }\n }\n }\n return count;\n}", "public static int getNodeCount2(Node<Integer> node) {\n node.visited = true;\n //Count this node (1) and it's children (getNodeCount)\n return 1 + node.connected.stream().filter(n -> !n.visited).map(JourneyToMoon::getNodeCount2).reduce(Integer::sum).orElse(0);\n }", "public static int numIslands(char[][] mat) {\r\n \r\n if(mat.length == 0 || mat[0].length == 0)\r\n \treturn 0;\r\n\r\n ROW = mat.length;\r\n\t\tCOL = mat[0].length;\r\n\r\n\t\t// Make a boolean matrix that will keep track whether a cell is visited or not\r\n\t\tboolean[][] visited = new boolean[ROW][COL];\r\n\t\t\r\n\t\t// We start counting the total number of DFS calls.\r\n\t\tint count = 0;\r\n\r\n\t\tfor (int i = 0; i < ROW; i++) \r\n\t\t{\r\n\t\t\tfor (int j = 0; j < COL; j++) \r\n\t\t\t{\r\n\t\t\t\t// If the cell is unvisited and is Land (1) check its neighbors by calling DFS()\r\n\t\t\t\t// This cell will be marked as visited in this process.\r\n\t\t\t\t// This cell will make a recursive call to each of their own 8 neighbors.\t\r\n\t\t\t\t// The base case of that recursion will be when all nodes of the subgraph have been visited\r\n\t\t\t\tif(mat[i][j] == '1' && !visited[i][j])\r\n\t\t\t\t{\r\n\t\t\t\t\tDFS(mat, i, j, visited);\r\n\r\n\t\t\t\t\t// After the above call is finished, a lot more 1s would've been converted into 0s.\r\n\t\t\t\t\t// Now the next time the above condition will be true will be when there is a disconnected 1 found.\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn count;\r\n }", "private int neighborBombCount(Tile t) {\r\n int tileRow = t.getRow();\r\n int tileCol = t.getCol();\r\n int bombCount = 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 if (grid[r][c].isBomb()) {\r\n bombCount++;\r\n } \r\n }\r\n }\r\n }\r\n return bombCount; \r\n }", "public static int countNodes() {\n\t\treturn count_nodes;\n\t}", "public static int DimNum() {\n\t\treturn root_map.size();\n\t}", "public int getNodeCount() {\n return node_.size();\n }", "public abstract int getNumberOfLivingNeighbours(int x, int y);", "int getBlockLocationsCount();", "public int countNodes() {\n int leftCount = left == null ? 0 : left.countNodes();\n int rightCount = right == null ? 0 : right.countNodes();\n return 1 + leftCount + rightCount;\n }", "public int getCellsUniverseSize(){\r\n return cellsUniverse.size();\r\n }", "public int getNodeCount() {\n resetAllTouched();\n return recurseNodeCount();\n }", "@Override\r\n\tpublic int getNumberOfNodes() {\n\t\tint leftNumber=0;\r\n\t\tint rightNumber=0;\r\n\t\tif(left!=null){\r\n\t\t\tleftNumber=left.getNumberOfNodes();\r\n\t\t}\r\n\t\tif(right!=null)\r\n\t\t\trightNumber=right.getNumberOfNodes();\r\n\t\treturn leftNumber+rightNumber+1;\r\n\t}", "protected int countNeighbours(int col, int row){\n int Total = 0;\r\n Total = getCell(col-1,row-1)? ++Total : Total;\r\n Total = getCell(col,row-1)? ++Total : Total;\r\n Total = getCell(col+1,row-1)? ++Total : Total;\r\n Total = getCell(col-1,row)? ++Total : Total;\r\n Total = getCell(col+1,row)? ++Total : Total;\r\n Total = getCell(col-1,row+1)? ++Total : Total;\r\n Total = getCell(col,row+1)? ++Total : Total;\r\n Total = getCell(col+1,row+1)? ++Total : Total;\r\n return Total;\r\n }", "int nbNode() {\n switch (type) {\n\n case EDGE:\n case PATH:\n case EVAL:\n if (edge.getEdgeVariable() == null) {\n return edge.nbNode();\n } else {\n return edge.nbNode() + 1;\n }\n\n case OPT_BIND:\n return size();\n }\n\n return 0;\n }", "private int getNeighborCount(int x, int y, Assignment assignment){\n\t\tint neighbors = 0;\n\n\t\t// try neighbor up\n\t\tif(isNeighborAt(x-1, y, assignment))\n\t\t\tneighbors++;\n\n\t\t// try neighbor up-left\n\t\tif(isNeighborAt(x-1, y-1, assignment))\n\t\t\tneighbors++;\n\n\t\t// try neighbor up-right\n\t\tif(isNeighborAt(x-1, y+1, assignment))\n\t\t\tneighbors++;\n\n\t\t// try neighbor down\n\t\tif(isNeighborAt(x+1, y, assignment))\n\t\t\tneighbors++;\n\n\t\t// try neighbor down-left\n\t\tif(isNeighborAt(x+1, y-1, assignment))\n\t\t\tneighbors++;\n\n\t\t// try neighbor down-right\n\t\tif(isNeighborAt(x+1, y+1, assignment))\n\t\t\tneighbors++;\n\n\t\t// try neighbor left\n\t\tif(isNeighborAt(x, y-1, assignment))\n\t\t\tneighbors++;\n\n\t\t// try neighbor right\n\t\tif(isNeighborAt(x, y+1, assignment))\n\t\t\tneighbors++;\n\n\t\treturn neighbors;\n\t}", "public Object getNumberOfConnectedComponents() {\r\n\t\tConnectivityInspector<Country, DefaultEdge> inspector=new ConnectivityInspector<Country, DefaultEdge>(graph);\r\n\t\treturn inspector.connectedSets().size();\r\n\t}", "public int my_leaf_count();", "public int getNodeCount(){\r\n HashSet<FlowGraphNode> visited = new HashSet<>();\r\n LinkedList<FlowGraphNode> queue = new LinkedList<>();\r\n queue.add(start);\r\n visited.add(start);\r\n while(!queue.isEmpty()){\r\n FlowGraphNode node = queue.pop();\r\n for(FlowGraphNode child : node.to){\r\n if(visited.add(child)){\r\n queue.add(child);\r\n }\r\n }\r\n }\r\n return visited.size();\r\n }", "int NoOfNodes() {\r\n return noOfNodes;\r\n }", "int getCellsCount();", "private int Nodes(BTNode n){\r\n if (n == null)\r\n return 0;\r\n else {\r\n return ( (n.left == null? 0 : Nodes(n.left)) + (n.right == null? 0 : Nodes(n.right)) + 1 );\r\n }\r\n }", "private static int getNumTotalEdges(){\r\n\t\t//return getMutMap().keySet().size();\r\n\t\treturn numCols+1;\r\n\t}", "int nodeCount();", "public static int numsIslands (boolean[][] grid) {\n\t\t/**\n\t\t * Have to pay attention to check the grid\n\t\t * Don't put it after the n, m claim\n\t\t * Because if grid == 0, there is no grid[0], so we will get outOfBound error\n\t\t * */\n\t\tif (grid == null || grid.length == 0 || grid[0].length == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tint n = grid.length;\n\t\tint m = grid[0].length;\n\t\t\n\t\tint islands = 0;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tif (grid[i][j]) {\n\t\t\t\t\tmarkAsVisited(grid, i, j);\n\t\t\t\t\tislands++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn islands;\n\t}", "private void computeDependentCount() {\n dependentCountArray = new int[numNodes+1];\n for(int i = 0; i < dependentCountArray.length;i++){\n dependentCountArray[i] = 0;\n }\n for(int i = 0; i < adjMatrix.length; i++){\n int hasDependentCounter = 0;\n for(int j = 0; j < adjMatrix[i].length; j++){\n\n if(adjMatrix[i][j] == 1){\n if(!allNodes[i].orphan){\n hasDependentCounter++;\n }\n }\n\n }\n dependentCountArray[i] = hasDependentCounter;\n }\n\n for(int i = 0; i < dependentCountArray.length;i++){\n //System.out.println(i + \" has dependent \" + dependentCountArray[i]);\n }\n\n\n\n }", "int numOfBlocks() {\n return ni * nj * nk;\n }", "@Override\r\n\tpublic int getNumberOfNodes() {\r\n\t\tint contador = 0;// Contador para el recursivo\r\n\t\treturn getNumberOfNodesRec(contador, raiz);\r\n\t}", "public int infectNeighbours(Map map);", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "private void getNeighbors() {\n\t\tRowIterator iterator = currentGen.iterateRows();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElemIterator elem = iterator.next();\n\t\t\twhile (elem.hasNext()) {\n\t\t\t\tMatrixElem mElem = elem.next();\n\t\t\t\tint row = mElem.rowIndex();\n\t\t\t\tint col = mElem.columnIndex();\n\t\t\t\tint numNeighbors = 0;\n\t\t\t\tfor (int i = -1; i < 2; i++) { // loops through row above,\n\t\t\t\t\t\t\t\t\t\t\t\t// actual row, and row below\n\t\t\t\t\tfor (int j = -1; j < 2; j++) { // loops through column left,\n\t\t\t\t\t\t\t\t\t\t\t\t\t// actual column, coloumn\n\t\t\t\t\t\t\t\t\t\t\t\t\t// right\n\t\t\t\t\t\tif (!currentGen.elementAt(row + i, col + j).equals(\n\t\t\t\t\t\t\t\tfalse)) // element is alive, add 1 to neighbor\n\t\t\t\t\t\t\t\t\t\t// total\n\t\t\t\t\t\t\tnumNeighbors += 1;\n\t\t\t\t\t\telse { // element is not alive, add 1 to its total\n\t\t\t\t\t\t\t\t// number of neighbors\n\t\t\t\t\t\t\tInteger currentNeighbors = (Integer) neighbors\n\t\t\t\t\t\t\t\t\t.elementAt(row + i, col + j);\n\t\t\t\t\t\t\tneighbors.setValue(row + i, col + j,\n\t\t\t\t\t\t\t\t\tcurrentNeighbors + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tneighbors.setValue(row, col, numNeighbors - 1); // -1 to account\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// for counting\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// itself as a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// neighbor\n\t\t\t}\n\t\t}\n\t}", "public int my_node_count();", "int totalNumberOfNodes();", "public int getNumOfNodes() {\n\t\treturn getNumOfNodes(this);\n\t}", "public int getNodeCount() {\n return nodeCount;\n }", "public int getNodeCount() {\n if (nodeBuilder_ == null) {\n return node_.size();\n } else {\n return nodeBuilder_.getCount();\n }\n }", "private int visitedNetworksCount() {\n final HashSet<String> visitedNetworksSet = new HashSet<>(mVisitedNetworks);\n return visitedNetworksSet.size();\n }", "int getBlockNumbersCount();", "public int countNodes(){\r\n \treturn count(root);\r\n }", "public int getNodeCount() {\n return dataTree.getNodeCount();\n }", "public int countNodes() {\r\n \r\n // call the private countNodes method with root\r\n return countNodes(root);\r\n }", "public int getNumConnections(ImmutableNodeInst n) {\n int myNodeId = n.nodeId;\n int i = searchConnectionByPort(myNodeId, 0);\n int j = i;\n for (; j < connections.length; j++) {\n int con = connections[j];\n ImmutableArcInst a = getArcs().get(con >>> 1);\n boolean end = (con & 1) != 0;\n int nodeId = end ? a.headNodeId : a.tailNodeId;\n if (nodeId != myNodeId) break;\n }\n return j - i;\n }", "private int getNumberOfNeighborConnections(Entity node)\r\n\t{\r\n\r\n\t\t// The directed graph is treated as a undirected graph to compute these\r\n\t\t// parameters.\r\n\t\t// UndirectedGraph<String, DefaultEdge> undirectedGraph = new\r\n\t\t// AsUndirectedGraph<String, DefaultEdge>(directedGraph);\r\n\r\n\t\tint numberOfConnections = 0;\r\n\r\n\t\t// get the set of neighbors\r\n\t\tSet<Entity> neighbors = getNeighbors(node);\r\n\r\n\t\tif (neighbors.size() > 0) {\r\n\t\t\t// for each pair of neighbors, test if there is a connection\r\n\t\t\tObject[] nodeArray = neighbors.toArray();\r\n\t\t\t// sort the Array so we can use a simple iteration with two for\r\n\t\t\t// loops to access all pairs\r\n\t\t\tArrays.sort(nodeArray);\r\n\r\n\t\t\tfor (int i = 0; i < neighbors.size(); i++) {\r\n\t\t\t\tEntity outerNode = (Entity) nodeArray[i];\r\n\t\t\t\tfor (int j = i + 1; j < neighbors.size(); j++) {\r\n\t\t\t\t\tEntity innerNode = (Entity) nodeArray[j];\r\n\t\t\t\t\t// in case of a connection increase connection counter\r\n\t\t\t\t\t// order of the nodes doesn't matter for undirected graphs\r\n\r\n\t\t\t\t\t// check if the neighbors are connected:\r\n\t\t\t\t\tif (containsEdge(innerNode, outerNode)\r\n\t\t\t\t\t\t\t|| containsEdge(outerNode, innerNode)) {\r\n\t\t\t\t\t\t// logger.info(\"There is a connection between the neighbors\");\r\n\t\t\t\t\t\tnumberOfConnections++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// logger.info(neighbors.size() + \" - \" + numberOfConnections);\r\n\r\n\t\treturn numberOfConnections;\r\n\t}", "private int countNodes(Node n) {\n int count = 1;\n if (n==null) return 0;\n\n for (int i = 0; i < n.getSubtreesSize(); i++) {\n count = count + countNodes(n.getSubtree(i));\n }\n\n return count;\n }", "int getDimensionsCount();", "public static int numIslands(final char[][] grid) {\n int result = 0;\n for (int i = 0; i < grid.length; i++) {\n for (int j = 0; j < grid[i].length; j++) {\n if (grid[i][j] == '1' && traverseGrid(i, j, grid)) {\n result++;\n }\n }\n }\n return result;\n }", "public int nodeSize()\n{\n\treturn getNodes().size();\n}", "public int nodesInTree() \n { \n return nodesInTree(header.rightChild); \n }", "@Override\n public int edgeCount() {\n int count = 0;\n\n for(MyNode n : graphNodes.values()){\n count += n.inDegree();\n }\n\n return count;\n }", "int sizeOf(int node){\n\t\tint counter =1;\r\n\t\tfor (int i=0;i<idNode.length;i++){ //Count all node with the same parent\r\n\t\t\tif (idNode[i]==node){\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn counter;\r\n\t}", "@Override\n public int nodeCount() {\n return graphNodes.size();\n }", "public int getNumEdges();", "protected int count_nbr_in_state ( int state )\r\n {\r\n OSPF_Interface oif;\r\n int count = 0;\r\n int i, j; \r\n int if_no, nbr_no;\r\n \r\n if_no = if_list.size();\r\n for ( i = 0; i < if_no; i++) {\r\n oif = (OSPF_Interface) if_list.elementAt(i);\r\n nbr_no = oif.neighbor_list.size();\r\n for ( j = 0; j < nbr_no; j++) {\r\n OSPF_Neighbor nbr = (OSPF_Neighbor) oif.neighbor_list.elementAt(j);\r\n if (nbr.state == state)\r\n count++;\r\n }\r\n }\r\n return count;\r\n }", "public int size() {\n return this.treeSize - this.unusedTreeIndices.size();\n }", "int getEdgeCount();", "static int numberAmazonTreasureTrucks(int rows, int column,\n\t\t\t\t\t\t\t\t List<List<Integer> > grid)\n {\n // WRITE YOUR CODE HERE\n int count = 0;\n for(int i=0;i<rows;i++) {\n for(int j=0;j<column;j++) {\n if(grid.get(i).get(j) == 1) {\n count++;\n markNeighbours(grid, i, j, rows, column);\n }\n }\n }\n return count;\n }", "public int numNodes() {\n return nodeVector.size();\n }", "protected int numNodes() {\n\t\treturn nodes.size();\n\t}", "public abstract int getNodeColumnCount();", "public void UpNumberOfVisitedNodes() {\n NumberOfVisitedNodes++;\n }", "public static int countActiveSpace(int mat[][], int i, int j) {\n\t\tfor (int n = 1; n < 30; n++) {\n\t\t\tfor (int p = 1; p < 30; p++) {\n\t\t\t\tvisited[n][p] = false;\n\t\t\t}\n\t\t}\n\t\tint count = 0;\n\t\t// create an empty queue\n\t\tQueue<Node> q = queue;\n\t\tq.clear();\n\t\t// mark source cell as visited and enqueue the source node\n\t\tvisited[j][i] = true;\n\t\tNode root = NodeFactory.createNode(i, j, 0, null, null);\n\t\tq.add(root);\n\t\tNode node = null;\n\t\twhile (!q.isEmpty()) {\n\t\t\tnode = q.poll();\n\t\t\ti = node.x;\n\t\t\tj = node.y;\n\t\t\tint dist = node.dist;\n\t\t\tfor (Direction dir : DIRECTIONS) {\n\t\t\t\tint nx = i + dir.x;\n\t\t\t\tint ny = j + dir.y;\n\t\t\t\tif (isValid(mat, visited, nx, ny)) {\n\t\t\t\t\t// mark next cell as visited and enqueue it\n\t\t\t\t\tvisited[ny][nx] = true;\n\t\t\t\t\tint ndist = dist + 1;\n\t\t\t\t\tNode newNode = NodeFactory.createNode(nx, ny, ndist, dir,\n\t\t\t\t\t\t\tnode);\n\t\t\t\t\tcount++;\n\t\t\t\t\tq.add(newNode);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn count;\n\t}", "int getBlockNumsCount();", "int getBlockNumsCount();", "int getChildCount();", "public int getEdgeCount(){\r\n HashSet<FlowGraphNode> visited = new HashSet<>();\r\n LinkedList<FlowGraphNode> queue = new LinkedList<>();\r\n queue.add(start);\r\n visited.add(start);\r\n int counter = 0;\r\n while(!queue.isEmpty()){\r\n FlowGraphNode node = queue.pop();\r\n counter += node.outDeg();\r\n for(FlowGraphNode child : node.to){\r\n if(visited.add(child)){\r\n queue.add(child);\r\n }\r\n }\r\n }\r\n return counter;\r\n }", "int numNodes() {\n\t\treturn num_nodes;\n\t}", "public int getNumAdjacentLivingCells(int row, int col) \n {\n int numLiving = 0;\n\n if (row - 1 >= 0 && col - 1 >= 0 && isAlive(getCell(row - 1, col - 1))) \n {\n numLiving++;\n }\n if (row - 1 >= 0 && isAlive(getCell(row - 1, col))) \n {\n numLiving++;\n }\n if (row - 1 >= 0 && col + 1 < getColumns() && isAlive(getCell(row - 1, col + 1))) \n {\n numLiving++;\n }\n if (col - 1 >= 0 && isAlive(getCell(row, col - 1))) \n {\n numLiving++;\n }\n if (col + 1 < getColumns() && isAlive(getCell(row, col + 1))) \n {\n numLiving++;\n }\n if (row + 1 < getRows() && col - 1 >= 0 && isAlive(getCell(row + 1, col - 1))) \n {\n numLiving++;\n }\n if (row + 1 < getRows() && isAlive(getCell(row + 1, col)))\n {\n numLiving++;\n }\n if (row + 1 < getRows() && col + 1 < getColumns() && isAlive(getCell(row + 1, col + 1))) \n {\n numLiving++;\n }\n return numLiving;\n }", "public int NumActiveNodes() {\n int count = 0;\n\n for (int n = 0; n < nodeVector.size(); ++n) {\n if (nodeVector.get(n).getIndex() != invalid_node_index) {\n ++count;\n }\n }\n\n return count;\n }", "public int numIslands1(char[][] grid) {\n int res = 0;\n if (null == grid || grid.length == 0) {\n return res;\n }\n\n int nr = grid.length;\n int nc = grid[0].length;\n for (int i = 0; i < nr; i++) {\n for (int j = 0; j < nc; j++) {\n if (grid[i][j] == '1') {\n ++res;\n dfs(grid, i, j);\n }\n }\n }\n return res;\n }", "int getChunksLocationCount();", "public abstract int numOfFoodCellToReproduce();", "public abstract int getNodeRowCount();", "protected static int countNeighbours(int i, int j, byte[][] currentGen){\n int count = 0;\n \n for(int x = i-1; x<i+2; x++){\n count+=checkBorders(x, j-1, currentGen);\n count+=checkBorders(x, j+1, currentGen);\n }\n count+=checkBorders(i-1, j, currentGen);\n count+=checkBorders(i+1, j, currentGen);\n\n return count;\n }", "int getNodeStatusListCount();", "public int neighborCount(int row, int col) {//these are your current positions\n\t\tint neighborCell = 0;\n\t\t//array is zero based index\n\n\t\t//down one or row down one\n\t\tif(cellAt((row + 1) % rowCount, col)) //lets say our arrayCell is arrayCell(4,4)\n\t\t\tneighborCell++;\t\t\t\t\t\t// row here is your current cell(this is where you start and put your cell) and you add + 1 \n\t\t\t\t\t\t\t\t\t\t\t\t//lets say row is 1 then it is 1+1 = 2 \n\t\t\t\t\t\t\t\t\t\t\t\t//then 2 % 4(rowCount is 4) = 2\n\t\t\t\t\t\t\t\t\t\t\t\t//then your row is 2 and column 1\n\t\t\n\t\t//row up one\n\t\tif(cellAt((row + rowCount - 1) % rowCount , col))\n\t\t\tneighborCell++;\n\n\t\t//column right or column + 1\n\t\tif(cellAt(row, (col + 1)% colCount))\n\t\t\tneighborCell++;\n\n\t\t//column left or column -1\n\t\tif(cellAt(row,(col + colCount -1)% colCount))\n\t\t\tneighborCell++;\n\n\t\t//row up one and column right one\n\t\tif(cellAt((row + rowCount - 1) % rowCount,(col + 1)% colCount ))\n\t\t\tneighborCell++;\n\n\t\t//row down one and column right \n\t\tif(cellAt((row + 1) % rowCount,(col + 1)% colCount)) \n\t\t\tneighborCell++;\n\n\t\t//row down one and column left\n\t\tif(cellAt((row + 1) % rowCount,(col + colCount -1)% colCount)) \n\t\t\tneighborCell++;\n\n\t\t//row up one and column left\n\t\tif(cellAt((row + rowCount - 1) % rowCount, (col + colCount -1)% colCount))\n\t\t\tneighborCell++;\n\n\t\treturn neighborCell;\n\n\t}", "public int countNodes()\n {\n return countNodes(root);\n }", "public int countNodes()\n {\n return countNodes(root);\n }" ]
[ "0.6923833", "0.6598544", "0.6543282", "0.63783187", "0.63783187", "0.63515705", "0.63409114", "0.6336977", "0.63101095", "0.6309001", "0.6309001", "0.630057", "0.62999016", "0.62691855", "0.6262902", "0.62464136", "0.6243945", "0.6232834", "0.62178576", "0.6190552", "0.6159162", "0.6144424", "0.6123061", "0.61100566", "0.61083543", "0.6080013", "0.6076862", "0.60653454", "0.6054073", "0.6052926", "0.6041097", "0.60357136", "0.60288155", "0.60158336", "0.6006416", "0.599137", "0.59704787", "0.59663", "0.59642595", "0.595963", "0.59346837", "0.593426", "0.59309554", "0.5926478", "0.5924335", "0.59215933", "0.59086335", "0.5907832", "0.5893165", "0.5870018", "0.586415", "0.58616054", "0.5856536", "0.58547425", "0.5853829", "0.5846749", "0.58389395", "0.58370054", "0.58274364", "0.58080214", "0.5787595", "0.5781707", "0.57674557", "0.5756755", "0.5752927", "0.57499576", "0.5744999", "0.57371706", "0.5735443", "0.57353675", "0.57256055", "0.5725356", "0.5709421", "0.570639", "0.57038736", "0.56929916", "0.56901824", "0.5688176", "0.5683294", "0.5682776", "0.56825614", "0.56775516", "0.5653541", "0.5649103", "0.5648994", "0.56406105", "0.56406105", "0.5638991", "0.5638806", "0.56379396", "0.56201565", "0.5619405", "0.56164694", "0.56145716", "0.5610441", "0.5599199", "0.5593473", "0.5587001", "0.55820245", "0.5579955", "0.5579955" ]
0.0
-1
announce census intermediary result only if it is still relevant
private void announce(ConstituentsAddressNode crt) { if(DEBUG) System.err.println("ConstituentsModel:announce: start"); if(DEBUG) if((crt!=null) && (crt.n_data!=null)) System.err.println("ConstituentsModel:announce: start nID="+crt.n_data.neighborhoodID); ConstituentsModel cm; Object[] path=null; synchronized(this) { if(!running || (model==null)){ if(DEBUG) System.err.println("ConstituentsModel:announce: irrelevant"); return; } cm = model; path = crt.getPath(); } try{ cm.fireTreeNodesChanged(new TreeModelEvent(this, path)); }catch(Exception e){ System.err.println("ConstituentsCensus: announce: "+e.getLocalizedMessage()); System.err.println("ConstituentsCensus: announce: path="+Util.concat(path, " ; ")); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void ackResult(boolean resultMatch);", "@Override\n\tpublic boolean isInterestedInSuccess() {\n\t\treturn false;\n\t}", "boolean hasCollectResult();", "private void checkResult() {\n if (parent != -1 && (numOfAck == (outgoingLinks.size() - 1))) {\n if (setOfAck.add(this.maxId)) {\n Message message = new Message(this.uid, this.maxId, \"ack\");\n sendTo(message, this.parent);\n }\n if (!termination) {\n marker.addNumOfTerminatedProc();\n termination = true;\n }\n } else if (parent == -1 && (numOfAck == outgoingLinks.size())) {\n System.out.println(this.uid + \" is the leader.\");\n marker.addNumOfTerminatedProc();\n }\n }", "private static void printAnswer(boolean result)\n {\n //Check if all the hils could be connected by the tunnels\n if (result)\n {\n //Print the cost off connecting all the hills\n System.out.println(\"Campus #\" + c + \": \" + totalCost);\n }\n else\n {\n //Have a snarky remark for the ants, who can not connect all their hills\n System.out.println(\"Campus #\" + c + \": I'm a programmer, not a miracle worker!\");\n }\n }", "boolean hasFinalTallyResult();", "public void infect() {\n isInfected = true;\n }", "Boolean getAccruedInterest();", "public void sensibleMatches2() \n { \n Map<String, Set<String>> clientMap = new HashMap<>();\n Set<String> interests = new HashSet<>();\n\n interests.add(\"Food\");\n interests.add(\"Wine\");\n interests.add(\"Tandems\");\n clientMap.put(\"Hal\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Walking\");\n interests.add(\"Welding\");\n clientMap.put(\"Gemma\", interests);\n\n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Cinema\");\n interests.add(\"Wine\");\n clientMap.put(\"Caroline\", interests);\n\n Set<String> halsInterests = clientMap.get(\"Hal\");\n String outputString;\n Set<String> eachClientInterests;\n Set<String> intersection ;\n\n for (String eachClient : clientMap.keySet()) \n {\n if (!eachClient.equals(\"Hal\")) \n {\n eachClientInterests = clientMap.get(eachClient);\n intersection = new HashSet<>(halsInterests);\n intersection.retainAll(eachClientInterests);\n outputString = \"Hal and \" + eachClient \n + \" have common interests: \"\n + intersection;\n System.out.println(outputString);\n }\n }\n }", "private long census(ConstituentsAddressNode crt) throws P2PDDSQLException {\n\t\tif(DEBUG) System.err.println(\"ConstituentsModel:census: start\");\n\t\tif((crt==null)||(crt.n_data==null)){\n\t\t\tif(DEBUG) System.err.println(\"ConstituentsModel:census: end no ID\");\n\t\t\treturn 0;\n\t\t}\n\t\tlong n_ID = crt.n_data.neighborhoodID;\n\t\tif(DEBUG) System.err.println(\"ConstituentsModel:census: start nID=\"+n_ID);\n\t\tif(n_ID <= 0){\n\t\t\tif(DEBUG) System.err.println(\"ConstituentsModel:census: start nID=\"+n_ID+\" abandon\");\t\t\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\t\n\t\tlong result = 0;\n\t\tint neighborhoods[] = {0};\n\t\t\n\t\tif(crt.isColapsed()){\n\t\t\tif(DEBUG) System.err.println(\"ConstituentsModel:census: this is colapsed\");\n\t\t\tresult = censusColapsed(crt, neighborhoods);\n\t\t}else{\n\t\t\tfor(int k=0; k<crt.children.length; k++) {\n\t\t\t\tif(!running){\n\t\t\t\t\tif(DEBUG) System.err.println(\"ConstituentsModel:census: start nID=\"+n_ID+\" abandon request\");\t\t\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t\tConstituentsNode child = crt.children[k];\n\t\t\t\tif(child instanceof ConstituentsAddressNode) {\n\t\t\t\t\tresult += census((ConstituentsAddressNode)child);\n\t\t\t\t\tneighborhoods[0]++;\n\t\t\t\t}\n\t\t\t\tif(child instanceof ConstituentsIDNode)\n\t\t\t\t\tresult ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tcrt.neighborhoods = neighborhoods[0];\n\t\tcrt.location.inhabitants = (int)result;\n\t\tcrt.location.censusDone = true;\n\t\t\n\t\tannounce(crt);\n\t\t\n\t\tif(DEBUG) System.err.println(\"ConstituentsModel:censusColapsed: start nID=\"+n_ID+\" got=\"+result);\t\t\n\t\treturn result;\n\t}", "public static boolean displayResult() {\r\n Counseling counseling = new Counseling();\r\n List<Student> studentList = counseling.getStudentList();\r\n\r\n try {\r\n \t//If everything goes correct then a new file is created at this location with the result of counseling in it\r\n PrintWriter writer = new PrintWriter\r\n (\"C:/Users/Aakanksha/workspace/DS2/src/counseling/Result.txt\", \"UTF-8\");\r\n for(Student student: studentList) {\r\n writer.println(student.getId() + \"\\t\" +\r\n student.getName() + \"\\t\" +\r\n student.getProgramAllocated());\r\n }\r\n writer.close();\r\n return true;\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n } \r\n }", "private static void ICCChamp2017() {\n\t\tSystem.out.println(\"Final Match In England\");\n\t\t\n\t}", "boolean hasHasAlcoholResult();", "public void announceWinners() {\n\t\tsynchronized (blockedAnnouncer) {\n\t\t\tif (resultsNotInAnnouncer(blockedAnnouncer)) {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tblockedAnnouncer.wait();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}// while\n\t\t\t}// if\n\t\t}// synch\n\t\twhile (waitingForResults.size() > 0) {\n\t\t\tsynchronized (waitingForResults.elementAt(0)) {\n\t\t\t\twaitingForResults.elementAt(0).notify();\n\t\t\t\twaitingForResults.removeElementAt(0);\n\t\t\t}// sncnh\n\t\t}// while\n\t}", "public void sensibleMatches1() \n { \n Map<String, Set<String>> clientMap = new HashMap<>();\n Set<String> interests = new HashSet<>();\n\n interests.add(\"Food\");\n interests.add(\"Wine\");\n interests.add(\"Tandems\");\n clientMap.put(\"Hal\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Walking\");\n interests.add(\"Welding\");\n clientMap.put(\"Gemma\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Cinema\");\n interests.add(\"Wine\");\n clientMap.put(\"Caroline\", interests);\n\n Set<String> halsInterests = clientMap.get(\"Hal\");\n String outputString;\n Set<String> eachClientInterests;\n Set<String> intersection ;\n\n Map<String, Set<String>> mapWithoutHal = new HashMap<>(clientMap);\n mapWithoutHal.remove(\"Hal\");\n for (String eachClient : mapWithoutHal.keySet()) \n {\n eachClientInterests = clientMap.get(eachClient);\n intersection = new HashSet<>(halsInterests);\n intersection.retainAll(eachClientInterests);\n outputString = \"Hal and \" + eachClient \n + \" have common interests: \"\n + intersection;\n System.out.println(outputString);\n }\n }", "private void checkResults() {\n\n if (Dealer.calcTotal() == p1.calcTotal()) {\n System.out.println(\"You and the dealer Tie, Here is your money back.\");\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (p1.calcTotal() > Dealer.calcTotal() && !bust) {\n System.out.println(\"You win!\");\n totalWinnings += betNum;\n p1.addPointCount(betNum);\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (Dealer.calcTotal() > 31) {\n System.out.println(\"Dealer busts. You Win!\");\n totalWinnings += betNum;\n p1.addPointCount(betNum);\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (Dealer.getTotal() > p1.calcTotal() && Dealer.getTotal() < 32) {\n System.out.println(\"Dealer Wins.\");\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n p1.subPointCount(betNum);\n }\n }", "private void announceRoundResult()\n {\n // Last actions of each player, to compare\n GameAction fpAction = firstPlayer.getLastAction();\n GameAction spAction = secondPlayer.getLastAction();\n\n // Display first IA game\n if (!hasHuman)\n {\n if (fpAction instanceof RockAction)\n {\n animateSelectedButton(firstPlayerRock, true);\n }\n else if (fpAction instanceof PaperAction)\n {\n animateSelectedButton(firstPlayerPaper, true);\n }\n else if (fpAction instanceof ScissorsAction)\n {\n animateSelectedButton(firstPlayerScissors, true);\n }\n }\n // Display second IA game\n if (spAction instanceof RockAction)\n {\n animateSelectedButton(secondPlayerRock, false);\n }\n else if (spAction instanceof PaperAction)\n {\n animateSelectedButton(secondPlayerPaper, false);\n }\n else if (spAction instanceof ScissorsAction)\n {\n animateSelectedButton(secondPlayerScissors, false);\n }\n\n\n // First player has played something ==> look at result\n if (firstPlayer.hasAlreadyPlayed())\n {\n switch (fpAction.versus(spAction))\n {\n case WIN:\n updateResultIcons(true, false);\n break;\n case DRAW:\n updateResultIcons(false, true);\n break;\n case LOSE:\n updateResultIcons(false, false);\n break;\n }\n }\n // First player didn't play ==> draw or loose\n else\n {\n // Draw\n if (!secondPlayer.hasAlreadyPlayed())\n {\n updateResultIcons(false, true);\n }\n // Lose\n else\n {\n updateResultIcons(false, false);\n }\n }\n }", "public void ex02() {\n\n boolean hasFinished = false;\n\n\n if (hasFinished==true) {\n printResults();\n }\n\n\n }", "void updateInterest() {\n // FIXME: Currently unimplemented\n }", "final void checkForComodification() {\n\t}", "public void approach(contestant c) throws InterruptedException {\n\n int rand1 = ThreadLocalRandom.current().nextInt(1500, 5000);\n int rand2 = ThreadLocalRandom.current().nextInt(1, 3);\n\n setPriority(10); //raise thread priority to make decision\n\n //System.out.println(this.getName() + \" is now talking to \" + c.getName());\n sleep(rand1); // simulate 'talking phase'\n\n visit[c.getID()] = true; // record contestant attempt\n\n if (rand2 == 2) { // if roll is successful (contestant gets number) (33.3% chance of success)\n\n msg(\"has given their number to \" + c.getName());\n //System.out.println(this.getName() + \" has given their number to \" + c.getName());\n c.datenums.add(this); // record successful match inside contestant\n\n } else\n\n msg(\"has rejected \" + c.getName());\n //System.out.println(this.getName() + \" has rejected \" + c.getName());\n\n sem.release();\n\n setPriority(5); //reset thread priority to default\n\n increaseRound(c); // increase round total\n\n }", "private void publishResults()\r\n\t{\n\t\tif (toBeOutputBranches.size() >= guiObject.getNumberOfBranchesFilter()) {\r\n\t\t\t\r\n\t\t\t//prints the default header each block gets\r\n\t\t\tmultiThreadingObj.myPublish(mainHeader);\r\n\t\t\t\r\n\t\t\t//prints out all of the branches (of a block) which passed the filters\r\n\t\t\tfor (Entry<String, String> branch : toBeOutputBranches.entrySet()) {\r\n\t\t\t\tString branchHeader = branch.getKey();\r\n\t\t\t\tString formattedBranch = branch.getValue();\r\n\t\t\t\tmultiThreadingObj.myPublish(branchHeader + formattedBranch);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//prints the upper state energies at the end of the block\r\n\t\t\tmultiThreadingObj.myPublish(energyVals);\r\n\t\t}\r\n\t}", "public String concludeRequest() {\n\t\treturn \"Already received a request\";\n\t}", "private void catch_up(int regency) {\n\n logger.debug(\"Verifying STOPDATA info\");\n ObjectOutputStream out = null;\n ByteArrayOutputStream bos = null;\n\n CertifiedDecision lastHighestCID = lcManager.getHighestLastCID(regency);\n\n int currentCID = lastHighestCID.getCID() + 1;\n HashSet<SignedObject> signedCollects = null;\n byte[] propose = null;\n int batchSize = -1;\n\n // normalize the collects and apply to them the predicate \"sound\"\n if (lcManager.sound(lcManager.selectCollects(regency, currentCID))) {\n\n logger.debug(\"Sound predicate is true\");\n\n signedCollects = lcManager.getCollects(regency); // all original collects that the replica has received\n\n Decision dec = new Decision(-1); // the only purpose of this object is to obtain the batchsize,\n // using code inside of createPropose()\n\n propose = tom.createPropose(dec);\n batchSize = dec.batchSize;\n \n try { // serialization of the CATCH-UP message\n bos = new ByteArrayOutputStream();\n out = new ObjectOutputStream(bos);\n\n out.writeObject(lastHighestCID);\n\n\t\t//TODO: Missing: serialization of the proof?\n out.writeObject(signedCollects);\n out.writeObject(propose);\n out.writeInt(batchSize);\n\n out.flush();\n bos.flush();\n\n byte[] payload = bos.toByteArray();\n out.close();\n bos.close();\n\n logger.info(\"Sending SYNC message for regency \" + regency);\n\n // send the CATCH-UP message\n communication.send(this.controller.getCurrentViewOtherAcceptors(),\n new LCMessage(this.controller.getStaticConf().getProcessId(), TOMUtil.SYNC, regency, payload));\n\n finalise(regency, lastHighestCID, signedCollects, propose, batchSize, true);\n\n } catch (IOException ex) {\n logger.error(\"Could not serialize message\", ex);\n }\n }\n }", "void setConsensus(boolean consensus) { this.consensus = consensus; }", "private void warResult() {\r\n // Get number of survivors alive\r\n int survivorCount = safeCount(survivors);\r\n if (survivorCount == 0) {\r\n System.out.println(\"None of the survivors made it.\");\r\n\t\t}\r\n else {\r\n System.out.println(\"It seems \" + survivorCount + \" have made it to safety.\");\r\n\t\t}\r\n }", "public void computeResult() throws InterruptedException {\n\n System.out.println(Pet.petCollection.get(Pet.getIndex()).getName() + \" is now competing against \" + opponent.getName() + \" ......\");\n System.out.println(\"\");\n System.out.println(\"Details of your pet: \" + \"\\n\" + Pet.petCollection.get(Pet.getIndex()).printPetDetails());\n System.out.println(\"\");\n System.out.println(\"Opponent's Details: \" + \"\\n\" + opponent.printPetDetails());\n System.out.println(\"\");\n Pet.petCollection.get(Pet.getIndex()).getCompetition().setCptEntered(Pet.petCollection.get(Pet.getIndex()).getCompetition().getCptEntered() + 1);\n if ((Pet.petCollection.get(Pet.getIndex()).stats.getEnergy() + Pet.petCollection.get(Pet.getIndex()).stats.getHappiness() + Pet.petCollection.get(Pet.getIndex()).stats.getHunger() + Pet.petCollection.get(Pet.getIndex()).stats.getThirst())\n > (opponent.stats.getEnergy() + opponent.stats.getHappiness() + opponent.stats.getHunger() + opponent.stats.getThirst())) {\n\n System.out.println(\"Congrats! \" + Pet.petCollection.get(Pet.getIndex()).getName() + \" wins! :)\");\n Pet.petCollection.get(Pet.getIndex()).getCompetition().setWinCount(Pet.petCollection.get(Pet.getIndex()).getCompetition().getWinCount() + 1);\n System.out.println(\"You've earned $200!\");\n System.out.println(\"\");\n Player.player.setCurrency(Player.player.getCurrency() + 200);\n } else if ((Pet.petCollection.get(Pet.getIndex()).stats.getEnergy() + Pet.petCollection.get(Pet.getIndex()).stats.getHappiness() + Pet.petCollection.get(Pet.getIndex()).stats.getHunger() + Pet.petCollection.get(Pet.getIndex()).stats.getThirst())\n == (opponent.stats.getEnergy() + opponent.stats.getHappiness() + opponent.stats.getHunger() + opponent.stats.getThirst())) {\n System.out.println(\"Draw! You get your money back!\");\n System.out.println(\"\");\n Player.player.setCurrency(Player.player.getCurrency() + 100);\n Pet.petCollection.get(Pet.getIndex()).getCompetition().setDrawCount(Pet.petCollection.get(Pet.getIndex()).getCompetition().getDrawCount() + 1);\n } else {\n Pet.petCollection.get(Pet.getIndex()).getCompetition().setLoseCount(Pet.petCollection.get(Pet.getIndex()).getCompetition().getLoseCount() + 1);\n System.out.println(\"Too bad \" + Pet.petCollection.get(Pet.getIndex()).getName() + \" loses! :(\");\n System.out.println(\"You will get $30 back!\");\n System.out.println(\"\");\n Player.player.setCurrency(Player.player.getCurrency() + 30);\n }\n\n }", "boolean getConsensus() { return this.consensus; }", "String getInter_contestable();", "String consilium(String patient) {\n return String.format(\"Consilium with %s is done.\", patient);\n }", "public void reportResult(UserInput ui, int numberOfInfectedAccumulated,\n int numberOfDeadAccumulated,\n int numberOfIll,\n int numberOfGetInfected,\n int numberOfDied,\n int numberOfRecovered) {\n if(ui.getIfLogging()) {\n System.out.println(\"InfectedAccu:\" + numberOfInfectedAccumulated +\n \", Dead accu:\" + numberOfDeadAccumulated +\n \", Ill:\" + numberOfIll +\n \", Infected:\" + numberOfGetInfected +\n \", Died:\" + numberOfDied +\n \", Recovered:\" + numberOfRecovered);\n }\n }", "private void results() {\n\t\t// when the election is not closed,\n\t\ttry{\n\t\t\tMap<String,Integer> results = election.getResultsFromPolls();\n\t\t\t// when the election is closed,\n\n\t\t\tCollection<Integer> values = results.values();\n\t\t\tint totalVotes = 0;\n\n\t\t\tfor(Integer i:values){\n\t\t\t\ttotalVotes += i;\n\t\t\t}\n\t\t\tSystem.out.println(\"Current election results for all polling places.\");\n\t\t\tSystem.out.println(\"NAME PARTY VOTES %\");\n\t\t\tprintResultsHelper(results,totalVotes);\n\n\t\t}catch(UnsupportedOperationException uoe){\n\t\t\tSystem.out.println(\"The election is still open for votes.\");\n\t\t\tSystem.out.println(\"You must close the election before viewing results.\");\n\t\t}\n\t}", "public void accomplishGoal() {\r\n isAccomplished = true;\r\n }", "public void checkInflected(Individual other)\n\t{\n\t\tdouble probability = world.getSpreadingFactor() * (1+(Math.max(other.getConversationTime(), getConversationTime()) / 10))\n\t\t\t\t* getMaskIndicator() * other.getMaskIndicator() * (1-(Math.min(other.getSocialDistance(), getSocialDistance()) / 10));\n\t\tif(Math.min(probability, 1) > 0.3)\n\t\t\tgetCovid();\n\t\t\t\n\t}", "private boolean finalMilestoneAccomplished()\n {\n if( (firstMilestoneAccomplished()) &&\n (secondMilestoneAccomplished()) &&\n (thirdMilestoneAccomplished()) &&\n (beliefs.puzzle[2][1] == 10) &&\n (beliefs.puzzle[2][2] == 11) &&\n (beliefs.puzzle[2][3] == 12) &&\n (beliefs.puzzle[3][1] == 14) &&\n (beliefs.puzzle[3][2] == 15)\n\n )\n return true;\n else\n return false;\n }", "public boolean isResultRefined() {\n return mRefineResult;\n }", "@Override\n public void noteNewTurn()\n {\n if ( traceStats && stateMachine.getInstanceId() == 1 )\n {\n ForwardDeadReckonLegalMoveInfo[] masterList = stateMachine.getFullPropNet().getMasterMoveList();\n for(int i = 0; i < bestResponseScores.length; i++)\n {\n float best = -Float.MAX_VALUE;\n float bestFollow = -Float.MAX_VALUE;\n int bestIndex = -1;\n int bestFollowIndex = -1;\n for(int j = 0; j < bestResponseScores.length; j++)\n {\n if ( responseSampleSize[i][j] > 0 )\n {\n float score = bestResponseScores[i][j]/responseSampleSize[i][j];\n if ( masterList[i].mRoleIndex != masterList[j].mRoleIndex)\n {\n if ( score > best )\n {\n best = score;\n bestIndex = j;\n }\n }\n else\n {\n if ( score > bestFollow )\n {\n bestFollow = score;\n bestFollowIndex = j;\n }\n }\n }\n }\n\n LOGGER.info(\"Best response to \" + masterList[i].mInputProposition + \": \" + (bestIndex == -1 ? \"NONE\" : masterList[bestIndex].mInputProposition + \" (\" + (100*best) + \"% [\" + responseSampleSize[i][bestIndex] + \"] )\"));\n LOGGER.info(\"Best follow-on to \" + masterList[i].mInputProposition + \": \" + (bestFollowIndex == -1 ? \"NONE\" : masterList[bestFollowIndex].mInputProposition + \" (\" + (100*bestFollow) + \"% [\" + responseSampleSize[i][bestFollowIndex] + \"] )\"));\n if ( bestIndex != -1 && opponentEquivalent[bestIndex] != bestFollowIndex )\n {\n int bestDeny = opponentEquivalent[bestIndex];\n LOGGER.info(\"Best denial to \" + masterList[i].mInputProposition + \": \" + (bestDeny == -1 ? \"NONE\" : masterList[bestDeny].mInputProposition + \" (\" + (100*(bestResponseScores[i][bestDeny]/responseSampleSize[i][bestDeny])) + \"% [\" + responseSampleSize[i][bestDeny] + \"] )\"));\n }\n }\n }\n\n // Reset the stats\n for(int i = 0; i < bestResponseScores.length; i++)\n {\n for(int j = 0; j < bestResponseScores.length; j++)\n {\n bestResponseScores[i][j] /= 2;\n responseSampleSize[i][j] /= 2;\n }\n }\n }", "private void finalise(int regency, CertifiedDecision lastHighestCID,\n HashSet<SignedObject> signedCollects, byte[] propose, int batchSize, boolean iAmLeader) {\n\n int currentCID = lastHighestCID.getCID() + 1;\n logger.debug(\"Final stage of LC protocol\");\n int me = this.controller.getStaticConf().getProcessId();\n Consensus cons = null;\n Epoch e = null;\n\n if (tom.getLastExec() + 1 < lastHighestCID.getCID()) { // is this a delayed replica?\n\n logger.info(\"NEEDING TO USE STATE TRANSFER!! (\" + lastHighestCID.getCID() + \")\");\n\n tempRegency = regency;\n tempLastHighestCID = lastHighestCID;\n tempSignedCollects = signedCollects;\n tempPropose = propose;\n tempBatchSize = batchSize;\n tempIAmLeader = iAmLeader;\n\n execManager.getStoppedMsgs().add(acceptor.getFactory().createPropose(currentCID, 0, propose));\n stateManager.requestAppState(lastHighestCID.getCID());\n\n return;\n\n } /*else if (tom.getLastExec() + 1 == lastHighestCID.getCID()) { // Is this replica still executing the last decided consensus?\n\n System.out.println(\"(Synchronizer.finalise) I'm still at the CID before the most recent one!!! (\" + lastHighestCID.getCID() + \")\");\n\n cons = execManager.getConsensus(lastHighestCID.getCID());\n e = cons.getLastEpoch();\n \n int ets = cons.getEts();\n \n if (e == null || e.getTimestamp() != ets) {\n e = cons.createEpoch(ets, controller);\n } else {\n e.clear();\n }\n \n byte[] hash = tom.computeHash(lastHighestCID.getCIDDecision());\n e.propValueHash = hash;\n e.propValue = lastHighestCID.getCIDDecision();\n\n e.deserializedPropValue = tom.checkProposedValue(lastHighestCID.getCIDDecision(), false);\n cons.decided(e, true); // pass the decision to the delivery thread\n }*/\n \n // install proof of the last decided consensus\n cons = execManager.getConsensus(lastHighestCID.getCID());\n e = null;\n \n Set<ConsensusMessage> consMsgs = lastHighestCID.getConsMessages();\n if (consMsgs == null) consMsgs = new HashSet();\n \n for (ConsensusMessage cm : consMsgs) {\n \n if (e == null) e = cons.getEpoch(cm.getEpoch(), true, controller);\n if (e.getTimestamp() != cm.getEpoch()) {\n logger.warn(\"Strange... proof of last decided consensus contains messages from more than just one epoch\");\n e = cons.getEpoch(cm.getEpoch(), true, controller);\n }\n e.addToProof(cm);\n \n if (cm.getType() == MessageFactory.ACCEPT) {\n e.setAccept(cm.getSender(), cm.getValue());\n }\n \n else if (cm.getType() == MessageFactory.WRITE) {\n e.setWrite(cm.getSender(), cm.getValue());\n }\n \n \n }\n if (e != null) {\n\n logger.info(\"Installed proof of last decided consensus \" + lastHighestCID.getCID());\n \n byte[] hash = tom.computeHash(lastHighestCID.getDecision());\n e.propValueHash = hash;\n e.propValue = lastHighestCID.getDecision();\n e.deserializedPropValue = tom.checkProposedValue(lastHighestCID.getDecision(), false);\n\n // Is this replica still executing the last decided consensus?\n if (tom.getLastExec() + 1 == lastHighestCID.getCID()) {\n \n logger.info(\"I'm still at the CID before the most recent one!!! (\" + lastHighestCID.getCID() + \")\");\n cons.decided(e, true);\n }\n else {\n cons.decided(e, false);\n }\n\n } else {\n logger.info(\"I did not install any proof of last decided consensus \" + lastHighestCID.getCID());\n }\n \n cons = null;\n e = null;\n \n // get a value that satisfies the predicate \"bind\"\n byte[] tmpval = null;\n HashSet<CollectData> selectedColls = lcManager.selectCollects(signedCollects, currentCID, regency);\n\n tmpval = lcManager.getBindValue(selectedColls);\n logger.debug(\"Trying to find a binded value\");\n\n // If such value does not exist, obtain the value written by the new leader\n if (tmpval == null && lcManager.unbound(selectedColls)) {\n logger.debug(\"Did not found a value that might have already been decided\");\n tmpval = propose;\n } else {\n logger.debug(\"Found a value that might have been decided\");\n }\n\n if (tmpval != null) { // did I manage to get some value?\n\n logger.debug(\"Resuming normal phase\");\n lcManager.removeCollects(regency); // avoid memory leaks\n\n // stop the re-transmission of the STOP message for all regencies up to this one\n removeSTOPretransmissions(regency);\n \n cons = execManager.getConsensus(currentCID);\n\n e = cons.getLastEpoch();\n\n int ets = cons.getEts();\n\n //Update current consensus with latest ETS. This may be necessary\n //if I 'jumped' to a consensus instance ahead of the one I was executing\n \n //int currentETS = lcManager.getETS(currentCID, selectedColls);\n //if (currentETS > ets) {\n if (regency > ets) {\n \n //System.out.println(\"(Synchronizer.finalise) Updating consensus' ETS after SYNC (from \" + ets + \" to \" + currentETS +\")\");\n logger.debug(\"Updating consensus' ETS after SYNC (from \" + ets + \" to \" + regency +\")\");\n\n /*do {\n cons.incEts();\n } while (cons.getEts() != currentETS);*/\n \n cons.setETS(regency);\n \n //cons.createEpoch(currentETS, controller);\n cons.createEpoch(regency, controller);\n \n e = cons.getLastEpoch();\n }\n\n // Make sure the epoch is created\n /*if (e == null || e.getTimestamp() != ets) {\n e = cons.createEpoch(ets, controller);\n } else {\n e.clear();\n }*/\n if (e == null || e.getTimestamp() != regency) {\n e = cons.createEpoch(regency, controller);\n } else {\n e.clear();\n }\n \n /********* LEADER CHANGE CODE ********/\n cons.removeWritten(tmpval);\n cons.addWritten(tmpval);\n /*************************************/\n \n byte[] hash = tom.computeHash(tmpval);\n e.propValueHash = hash;\n e.propValue = tmpval;\n\n e.deserializedPropValue = tom.checkProposedValue(tmpval, false);\n\n if (cons.getDecision().firstMessageProposed == null) {\n if (e.deserializedPropValue != null\n && e.deserializedPropValue.length > 0) {\n cons.getDecision().firstMessageProposed = e.deserializedPropValue[0];\n } else {\n cons.getDecision().firstMessageProposed = new TOMMessage(); // to avoid null pointer\n }\n }\n if (this.controller.getStaticConf().isBFT()) {\n e.setWrite(me, hash);\n } else {\n e.setAccept(me, hash);\n\n /********* LEADER CHANGE CODE ********/\n logger.debug(\"[CFT Mode] Setting consensus \" + currentCID + \" QuorumWrite tiemstamp to \" + e.getConsensus().getEts() + \" and value \" + Arrays.toString(hash));\n \t e.getConsensus().setQuorumWrites(hash);\n /*************************************/\n\n }\n\n // resume normal operation\n execManager.restart();\n //leaderChanged = true;\n tom.setInExec(currentCID);\n if (iAmLeader) {\n logger.debug(\"Waking up proposer thread\");\n tom.imAmTheLeader();\n } // waik up the thread that propose values in normal operation\n\n // send a WRITE/ACCEPT message to the other replicas\n if (this.controller.getStaticConf().isBFT()) {\n logger.info(\"Sending WRITE message for CID \" + currentCID + \", timestamp \" + e.getTimestamp() + \", value \" + Arrays.toString(e.propValueHash));\n communication.send(this.controller.getCurrentViewOtherAcceptors(),\n acceptor.getFactory().createWrite(currentCID, e.getTimestamp(), e.propValueHash));\n e.writeSent();\n } else {\n logger.info(\"Sending ACCEPT message for CID \" + currentCID + \", timestamp \" + e.getTimestamp() + \", value \" + Arrays.toString(e.propValueHash));\n communication.send(this.controller.getCurrentViewOtherAcceptors(),\n acceptor.getFactory().createAccept(currentCID, e.getTimestamp(), e.propValueHash));\n e.acceptSent();\n }\n } else {\n logger.warn(\"Sync phase failed for regency\" + regency);\n }\n }", "@Override\r\n public void searchFinished (Search search) {\n if (required != null || forbidden != null) {\r\n StringBuilder sb = new StringBuilder();\r\n for (int i = 0; i < numMachines; i++) {\r\n String msg = allCoverage[i].getConstraintViolation();\r\n if (msg != null){\r\n sb.append(msg);\r\n }\r\n }\r\n if (sb.length() > 0){\r\n errorMsg = sb.toString();\r\n search.error(this);\r\n }\r\n }\r\n }", "private void checkAndUpdate() {\n if (csProposeEnter.get()) {\n if (numRepliesReceived.get() == (config.getNumNodes() - 1)\n && requestQueue.peek().getFromID().equals(nodeID)) {\n csProposeEnter.set(false);\n csAllowEnter.set(true);\n }\n }\n }", "boolean hasIsComplete();", "boolean hasIsComplete();", "@Override\n protected void updateCAS(JCas aJCas, JSONObject jsonResult) throws AnalysisEngineProcessException {\n double fullDocSentiment = 0;\n int sentenceCount = 0;\n\n if (jsonResult.has(\"sentences\")) {\n for (Object sen : jsonResult.getJSONArray(\"sentences\")) {\n JSONObject sentence = (JSONObject) sen;\n\n int begin = sentence.getJSONObject(\"sentence\").getInt(\"begin\");\n int end = sentence.getJSONObject(\"sentence\").getInt(\"end\");\n double sentimentValue = sentence.getDouble(\"sentiment\");\n\n fullDocSentiment += sentimentValue;\n sentenceCount += 1;\n\n Sentiment sentiment = new Sentiment(aJCas, begin, end);\n sentiment.setSentiment(sentimentValue);\n sentiment.addToIndexes();\n\n // Always sentence based\n AnnotationComment comment = new AnnotationComment(aJCas);\n comment.setReference(sentiment);\n comment.setKey(\"selection\");\n comment.setValue(SENTENCE_TYPE);\n comment.addToIndexes();\n }\n }\n\n // Add document sentiment\n if (sentenceCount > 1) {\n fullDocSentiment = fullDocSentiment / sentenceCount;\n\n Sentiment sentiment = new Sentiment(aJCas, 0, aJCas.getDocumentText().length());\n sentiment.setSentiment(fullDocSentiment);\n sentiment.addToIndexes();\n\n AnnotationComment comment = new AnnotationComment(aJCas);\n comment.setReference(sentiment);\n comment.setKey(\"selection\");\n comment.setValue(SENTENCE_TYPE);\n comment.addToIndexes();\n }\n }", "private void declareWinner(){\r\n System.out.println(\"All proposals received\");\r\n AID best = proposals.get(0).getSender();\r\n for(ACLMessage proposal: proposals){\r\n String time = proposal.getContent().replaceFirst(\"bid\\\\(\", \"\");\r\n time = time.replaceFirst(\" sec\\\\)\", \"\");\r\n String bestTimeString = \r\n proposal.getContent().\r\n replaceFirst(\"bid\\\\(\", \"\").\r\n replaceFirst(\" sec\\\\)\", \"\");\r\n int bestTime = Integer.parseInt(bestTimeString);\r\n int propTime = Integer.parseInt(time);\r\n if (bestTime > propTime) {\r\n best = proposal.getSender();\r\n }\r\n }\r\n sendMessage(best, \"\", ACLMessage.ACCEPT_PROPOSAL);\r\n Object[] ob = new Object[2];\r\n ob[0] = best;\r\n ob[1] = currentPartial;\r\n expectedReturn.add(ob);\r\n System.out.println(\"Accepting proposal from \" + best.getLocalName());\r\n for(ACLMessage proposal: proposals){\r\n if(!proposal.getSender().equals(best)){\r\n sendMessage(proposal.getSender(), \"\", ACLMessage.REJECT_PROPOSAL);\r\n }\r\n }\r\n proposals.clear();\r\n solvables.remove(0);\r\n if(!solvables.isEmpty()){\r\n \r\n auctionJob(solvables.get(0));\r\n }\r\n }", "public void finalResult() {\n ConnectionSockets.getInstance().sendMessage(Integer.toString(points)+\"\\n\");\n System.out.println(\"escreveu para o oponente\");\n opponentPoints = Integer.parseInt(ConnectionSockets.getInstance().receiveMessage());\n System.out.println(\"leu do oponente\");\n if(points != opponentPoints) {\n if (points > opponentPoints) {// Won\n MatchController.getInstance().getSets().add(1);\n MatchController.getInstance().increaseSet();\n } else { //Lost\n MatchController.getInstance().getSets().add(0);\n MatchController.getInstance().increaseSet();\n }\n }\n }", "boolean hasCandidate();", "public boolean cleaningAck(Msg ack) {\n\t\tnotYetAck.offer(ack);\n\t\tString lastUser = ack.user;\n\t\tif(CommitDecision.size() == 1 && CommitDecision.containsKey(lastUser)) {\n\t\t\tSystem.out.println(\"last ack received\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isReviewed(int index) {\n if (index % 2 != 0) {\n index -= 1;\n }\n index = index / 2;\n if ( ( (Integer) clusters[index][3]).intValue() == 1) {\n return true;\n }\n else {\n return false;\n }\n }", "public void matchesDemo() \n {\n Map<String, Set<String>> clientMap = new HashMap<>();\n Set<String> interests = new HashSet<>();\n\n interests.add(\"Food\");\n interests.add(\"Wine\");\n interests.add(\"Tandems\");\n clientMap.put(\"Hal\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Walking\");\n interests.add(\"Welding\");\n clientMap.put(\"Gemma\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Cinema\");\n interests.add(\"Wine\");\n clientMap.put(\"Caroline\", interests);\n\n Set<String> halsInterests = clientMap.get(\"Hal\");\n String outputString;\n Set<String> eachClientInterests;\n Set<String> intersection;\n\n for (String eachClient : clientMap.keySet()) \n {\n eachClientInterests = clientMap.get(eachClient);\n intersection = new HashSet<>(halsInterests);\n intersection.retainAll(eachClientInterests);\n outputString = \"Hal and \" + eachClient \n + \" have common interests: \"\n + intersection;\n System.out.println(outputString) ;\n }\n }", "private void showResult() {\n int i = 0;\n matchList.forEach(match -> match.proceed());\n for (Match match : matchList) {\n setTextInlabels(match.showTeamWithResult(), i);\n i++;\n }\n }", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "public void informResult(Object content){\n\n\t\tif( isParticipant() && ( getState() == RequestProtocolState.SENDING_RESULT ) ){\n\t\t\tsendMessage(content, Performative.INFORM, getInitiator());\n\t\t\tsetFinalStep();\n\t\t}\n\t\telse if( isInitiator() ){\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.16\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.17\")); //$NON-NLS-1$\n\t\t}\n\t}", "public abstract boolean isComplete();", "@Test\r\n\tpublic void testConcurentUpdate() throws InterruptedException, ExecutionException{\r\n\t\tfinal Annotations annos = new Annotations();\r\n\t\t// Apply these annos to this node.\r\n\t\tannos.setId(KeyFactory.keyToString(node.getId()));\r\n\t\tannos.addAnnotation(\"stringKey\", \"String\");\r\n\t\t\r\n\t\tLoopingAnnotaionsWoker workerOne = new LoopingAnnotaionsWoker(dboAnnotationsDao, 10, annos);\r\n\t\tLoopingAnnotaionsWoker workerTwo = new LoopingAnnotaionsWoker(dboAnnotationsDao, 10, annos);\r\n\t\t// Start both workers\r\n\t\tExecutorService pool = Executors.newFixedThreadPool(2);\r\n\t\tFuture<Boolean> furtureOne = pool.submit(workerOne);\r\n\t\tFuture<Boolean> furtureTwo = pool.submit(workerTwo);\r\n\t\t// Wait for the threads to finish.\r\n\r\n\t\tassertTrue(furtureOne.get());\r\n\t\tassertTrue(furtureTwo.get());\r\n\r\n\t\t// There should be no duplication.\r\n\t\tAnnotations clone = dboAnnotationsDao.getAnnotations(node.getId());\r\n\t\t// There should be no duplication.\r\n\t\tassertNotNull(clone);\r\n\t\tCollection list = clone.getAllValues(\"stringKey\");\r\n\t\tassertNotNull(list);\r\n\t\tassertEquals(\"There should only be one value for this annotations. That means multiple threads caused duplication!\", 1, list.size());\r\n\t\tassertEquals(\"String\", list.iterator().next() );\r\n\t}", "private void doResearch() {\n\t\tSystem.out.println(\"Students must do research\");\n\t}", "protected void cb(CBResult ncResult, Set<NodesPair> nps,\n\t\t\t\t\t\t\tString errorString) {\n\t\t\t\t\t\tlong timer=System.currentTimeMillis();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (nps != null && nps.size() > 0) {\n\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t.println(\"\\n==================\\n Alive No. of landmarks: \"\n\t\t\t\t\t\t\t\t\t\t\t+ nps.size()\n\t\t\t\t\t\t\t\t\t\t\t+ \"\\n==================\\n\");\n\n\t\t\t\t\t\t\tIterator<NodesPair> NP = nps.iterator();\n\t\t\t\t\t\t\twhile (NP.hasNext()) {\n\t\t\t\t\t\t\t\tNodesPair tmp = NP.next();\n\t\t\t\t\t\t\t\tif (tmp != null && tmp.rtt >= 0) {\n\n\t\t\t\t\t\t\t\t\tAddressIF peer = (AddressIF)tmp.endNode;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//====================================================\n\t\t\t\t\t\t\t\t\tif (!ncManager.pendingLatency.containsKey(peer)) {\n\t\t\t\t\t\t\t\t\t\tncManager.pendingLatency.put(peer,\n\t\t\t\t\t\t\t\t\t\t\t\tnew RemoteState<AddressIF>(peer));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tncManager.pendingLatency.get(peer).addSample(tmp.rtt, timer);\n\t\t\t\t\t\t\t\t\t//=====================================================\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (!pendingHSHLandmarks.containsKey(Timer)\n\t\t\t\t\t\t\t\t\t\t\t|| pendingHSHLandmarks.get(Timer).IndexOfLandmarks == null) {\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tint index = pendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t\t.indexOf(peer);\n\n\t\t\t\t\t\t\t\t\tif (index < 0) {\n\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t// found the element, and it is smaller\n\t\t\t\t\t\t\t\t\t\t// than\n\t\t\t\t\t\t\t\t\t\t// rank, i.e., it is closer to the\n\t\t\t\t\t\t\t\t\t\t// target\n\t\t\t\t\t\t\t\t\t\taliveLandmarks.add(peer);\n\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// wrong measurements\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// empty\n\t\t\t\t\t\t\t// all nodes fail, so there are no alive nodes\n\t\t\t\t\t\t\tif (pendingHSHLandmarks.containsKey(Timer)) {\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.remove(Timer);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// some landmarks are offline, we clear records and\n\t\t\t\t\t\t// start\n\t\t\t\t\t\tif (pendingHSHLandmarks.containsKey(Timer)) {\n\n\t\t\t\t\t\t\tif (aliveLandmarks.size() < 0.8 * expectedLandmarks) {\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.remove(Timer);\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// the landmarks are healthy, so we can sleep\n\t\t\t\t\t\t\t\t// awhile\n\t\t\t\t\t\t\t\t// TODO: remove dead landmarks, and resize the\n\t\t\t\t\t\t\t\t// landmarks\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t.clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t.addAll(aliveLandmarks);\n\n\t\t\t\t\t\t\t\t// pendingHSHLandmarks.get(Timer).readyForUpdate=false;\n\t\t\t\t\t\t\t\tfinal Set<AddressIF> nodes = new HashSet<AddressIF>(\n\t\t\t\t\t\t\t\t\t\t1);\n\n\t\t\t\t\t\t\t\tnodes\n\t\t\t\t\t\t\t\t\t\t.addAll(pendingHSHLandmarks.get(Timer).IndexOfLandmarks);\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).readyForUpdate = true;\n\n\t\t\t\t\t\t\t\t//update the rtts\n\t\t\t\t\t\t\t\t updateRTTs(Timer.longValue(),nodes, new\n\t\t\t\t\t\t\t\t CB1<String>(){ protected void cb(CBResult\n\t\t\t\t\t\t\t\t ncResult, String errorString){ switch\n\t\t\t\t\t\t\t\t (ncResult.state) { case OK: {\n\t\t\t\t\t\t\t\t System.out.println(\"$: Update completed\");\n\t\t\t\t\t\t\t\t System.out.println();\n\t\t\t\t\t\t\t\t if(errorString.length()<=0){\n\t\t\t\t\t\t\t\t pendingHSHLandmarks\n\t\t\t\t\t\t\t\t .get(Timer).readyForUpdate=true; }\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t break; } case ERROR: case TIMEOUT: { break; }\n\t\t\t\t\t\t\t\t } nodes.clear(); } });\n\t\t\t\t\t\t\t\t \n\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "boolean experimentCompleted();", "if (charge == adhocTicket.getCharge()) {\n System.out.println(\"Charge is passed\");\n }", "ResultLog() {\r\n interactions = new boolean[1];\r\n indexRef = 0;\r\n }", "public void handleAck() {\n\t\tlong start = System.currentTimeMillis();\n\t\tlong end = start;\t\n\t\tint userCnt = users.size();\n\t\tSystem.out.println(\"handling ack in Server\");\n\t\twhile(CommitDecision.size() != 0){\n\t\t\tif(end - start >= 3000) {\n\t\t\t\tfor(String user: CommitDecision.keySet()) {\n\t\t\t\t\tSystem.out.println(\"resend ack to \"+ user+ \" for task \"+ filename);\n\t\t\t\t\tPL.sendMessage(CommitDecision.get(user));\n\t\t\t\t}\n\t\t\t\tstart = end;\n\t\t\t}else {\n\t\t\t\tMsg tmp = notYetAck.poll();\n\t\t\t\tif(tmp != null && CommitDecision.containsKey(tmp.user)) {\n\t\t\t\t\tCommitDecision.remove(tmp.user);\n\t\t\t\t\tSystem.out.println(tmp.user+\" 's ack has been received\");\n\t\t\t\t}\n\t\t\t\tend = System.currentTimeMillis();\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n\tpublic String summarize(Context context) {\n\t\treturn \"FINISHED\";\n\t\t\n//\t\treturn String.format(\"Normal:\\n%s\\n\" +\n//\t\t\t\t\"========================================\\n\" +\n//\t\t\t\t\"Modified:\\n%s\", machine1.formatedResume(), machine2.formatedResume());\n\t}", "boolean JoiningCriteriaMet() {\n\t\tfor(int i = timeService.getCurrentYear()-1; i > timeService.getCurrentYear() - KyotoEntryYears; i--) {\n\t\t\tif (carbonOutputMap.get(i) > emissionsTargetMap.get(i)) {\n\t\t\t\treturn(false);\n\t\t\t}\n\t\t}\n\t\treturn(true); // \n\t}", "public void can_counter()\n {\n candidate_count=0;\n for (HashMap.Entry<String,Candidate> set : allCandidates.entrySet())\n {\n candidate_count++;\n }\n }", "boolean hasCustomInterest();", "private void reportTestResult() {\n TestDescription testId = new TestDescription(mCurrentTestFile, mCurrentTestName);\n if (mCurrentTestStatus.equals(\"ok\")) {\n mTestResultCache.put(testId, null);\n } else if (mCurrentTestStatus.equals(\"ignored\")) {\n mTestResultCache.put(testId, SKIPPED_ENTRY);\n } else if (mCurrentTestStatus.equals(\"FAILED\")) {\n // Rust tests report \"FAILED\" without stack trace.\n mTestResultCache.put(testId, FAILED_ENTRY);\n } else {\n mTestResultCache.put(testId, mCurrentTestStatus);\n }\n }", "private static void FinalIndVsPAk() {\n\t\tSystem.out.println(\"Pak Lost The Match\");\n\t\t\n\t}", "public boolean isContinuingEducationPassed(CapIDModel capID) throws AAException, RemoteException;", "@Override\n protected boolean shouldAck() {\n return true;\n }", "protected int analyzeAck(Action action) {\n int rc = 0;\n byte ack = action.getBuffer()[0];\n byte reason = action.getBuffer()[1];\n\n if ( ack == Frame.DAT_NAK ) rc = reason;\n\n return rc;\n }", "public final boolean\n hasOutcome() { return hasOutcome_; }", "public void ack() {\n }", "void displayResults(boolean newFrame)\n {\n Vector alorders = new Vector();\n SequenceI[][] results = new SequenceI[jobs.length][];\n AlignmentOrder[] orders = new AlignmentOrder[jobs.length];\n for (int j = 0; j < jobs.length; j++)\n {\n if (jobs[j].hasResults())\n {\n Object[] res = ((MsaWSJob) jobs[j]).getAlignment();\n alorders.add(res[1]);\n results[j] = (SequenceI[]) res[0];\n orders[j] = (AlignmentOrder) res[1];\n\n // SequenceI[] alignment = input.getUpdated\n }\n else\n {\n results[j] = null;\n }\n }\n Object[] newview = input.getUpdatedView(results, orders, getGapChar());\n // trash references to original result data\n for (int j = 0; j < jobs.length; j++)\n {\n results[j] = null;\n orders[j] = null;\n }\n SequenceI[] alignment = (SequenceI[]) newview[0];\n ColumnSelection columnselection = (ColumnSelection) newview[1];\n Alignment al = new Alignment(alignment);\n // TODO: add 'provenance' property to alignment from the method notes\n // accompanying each subjob\n if (dataset != null)\n {\n al.setDataset(dataset);\n }\n\n propagateDatasetMappings(al);\n // JBNote- TODO: warn user if a block is input rather than aligned data ?\n\n if (newFrame)\n {\n AlignFrame af = new AlignFrame(al, columnselection,\n AlignFrame.DEFAULT_WIDTH, AlignFrame.DEFAULT_HEIGHT);\n\n // initialise with same renderer settings as in parent alignframe.\n af.getFeatureRenderer().transferSettings(this.featureSettings);\n // update orders\n if (alorders.size() > 0)\n {\n if (alorders.size() == 1)\n {\n af.addSortByOrderMenuItem(WebServiceName + \" Ordering\",\n (AlignmentOrder) alorders.get(0));\n }\n else\n {\n // construct a non-redundant ordering set\n Vector names = new Vector();\n for (int i = 0, l = alorders.size(); i < l; i++)\n {\n String orderName = new String(\" Region \" + i);\n int j = i + 1;\n\n while (j < l)\n {\n if (((AlignmentOrder) alorders.get(i))\n .equals(((AlignmentOrder) alorders.get(j))))\n {\n alorders.remove(j);\n l--;\n orderName += \",\" + j;\n }\n else\n {\n j++;\n }\n }\n\n if (i == 0 && j == 1)\n {\n names.add(new String(\"\"));\n }\n else\n {\n names.add(orderName);\n }\n }\n for (int i = 0, l = alorders.size(); i < l; i++)\n {\n af.addSortByOrderMenuItem(\n WebServiceName + ((String) names.get(i)) + \" Ordering\",\n (AlignmentOrder) alorders.get(i));\n }\n }\n }\n\n Desktop.addInternalFrame(af, alTitle, AlignFrame.DEFAULT_WIDTH,\n AlignFrame.DEFAULT_HEIGHT);\n\n }\n else\n {\n System.out.println(\"MERGE WITH OLD FRAME\");\n // TODO: modify alignment in original frame, replacing old for new\n // alignment using the commands.EditCommand model to ensure the update can\n // be undone\n }\n }", "private void showResults() {\n if (!sent) {\n if(checkAnswerOne()) {\n nbOfCorrectAnswers++;\n }\n if(checkAnswerTwo()) {\n nbOfCorrectAnswers++;\n }\n if(checkAnswerThree()) {\n nbOfCorrectAnswers++;\n }\n if(checkAnswerFour()) {\n nbOfCorrectAnswers++;\n }\n\n showResultAsToast(nbOfCorrectAnswers);\n\n } else {\n showResultAsToast(nbOfCorrectAnswers);\n }\n }", "public synchronized void putResult(EarlyCcsVulnerabilityType result) {\n if (result != null) {\n switch (result) {\n case NOT_VULNERABLE:\n putResult(AnalyzedProperty.VULNERABLE_TO_EARLY_CCS, false);\n break;\n case UNKNOWN:\n resultMap.put(AnalyzedProperty.VULNERABLE_TO_EARLY_CCS.toString(), TestResult.UNCERTAIN);\n break;\n default:\n putResult(AnalyzedProperty.VULNERABLE_TO_EARLY_CCS, true);\n }\n } else {\n resultMap.put(AnalyzedProperty.VULNERABLE_TO_EARLY_CCS.toString(), TestResult.COULD_NOT_TEST);\n }\n }", "public void reasoningFinished(ReasoningResult result);", "public void processSurveyAck( UserSurvey userSurvey,String status);", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t\tStringTokenizer st = new StringTokenizer(outcome, \" \");\r\n\t\t//Initializing modified summary\r\n\t\tmodifiedSummary = new String();\r\n\t\t\r\n\t\twhile(st.hasMoreTokens()){\r\n\t\t\t\r\n\t\t\tString temp = st.nextToken();\r\n\t\t\t//String buffer is thread safe as concatenation is synced\r\n\t\t\tStringBuffer moded = new StringBuffer();\r\n\t\t\tmoded.append(temp.substring(0,1).toUpperCase());\r\n\t\t\tmoded.append(temp.substring(1));\r\n\t\t\t\r\n\t\t\tif(st.hasMoreTokens())\r\n\t\t\t\tmodifiedSummary = modifiedSummary + moded + \" \" ;\r\n\t\t\telse\r\n\t\t\t\tmodifiedSummary = modifiedSummary + moded;\r\n\t\t}\r\n\t\t\r\n\t}", "private void checkin() {\r\n\t\tif (admittedinterns < 20) {\r\n\t\t\tDoctorManage();\r\n\t\t\taddinterns(1);\r\n\t\t\tScreentocharge();\r\n\t\t} else {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Por el dia no se admiten mas pacientes\");\r\n\t\t\t\r\n\t\t}\r\n\t}", "public boolean okReveiced () {\n\t\t\treturn resultDetected[RESULT_INDEX_OK];\n\t\t}", "boolean hasAck();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "private void meetWithHrForBenefitAndSalryInfo() {\n metWithHr = true;\n }", "boolean withAdvanceInCampaign();", "@Override\r\n\tpublic boolean wasIncident() {\r\n\t\tdouble random = Math.random()*100;\r\n\t\tif(random<=25) return true;\r\n\t\treturn false;\r\n\t}", "public void checkFinish()\t{\n\t\tif(readCompareResult() == true)\t{\n\t\t\tfinished = true;\n\t\t}\n\t}", "public boolean hasResult()\n/* */ {\n/* 119 */ return this.result != RESULT_NONE;\n/* */ }", "void addHasAlcoholResult(Object newHasAlcoholResult);", "boolean ack( long revision );", "public void updateState(){\n\t\t\n\t\t\n\t\t\n\t\tArrayList<String> toAdd = new ArrayList<String>();\n\t\tArrayList<String> toRemove = new ArrayList<String>();\n\n\t\tthis.lastAdded.clear();\n\t\tthis.lastFulfilled.clear();\n\t\tthis.lastViolated.clear();\n\t\t\n\t\ttry {\n\n\t\t\tdo{\n\t\t\t\ttoAdd.clear();\n\t\t\t\ttoRemove.clear();\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iActive = reasoner.findall(\"xactive(A,Fa,Fm,Fd,Fr,Timeout)&not(as(A,Fa,Fm,Fd,Fr,Timeout))\");\n\t\t\t\twhile(iActive.hasNext()){\n\t\t\t\t\tUnifier un = iActive.next();\n\t\t\t\t\ttoAdd.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+ adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastAdded.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+ adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iViol = reasoner.findall(\"xviol(A,Fa,Fm,Fd,Fr,Timeout)&not(vs(A,Fa,Fm,Fd,Fr,Timeout))\");\n\t\t\t\twhile(iViol.hasNext()){\n\t\t\t\t\tUnifier un = iViol.next();\n\t\t\t\t\ttoAdd.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastViolated.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iDeactF = reasoner.findall(\"xdeact_f(A,Fa,Fm,Fd,Fr,Timeout)\");\n\t\t\t\twhile(iDeactF.hasNext()){\n\t\t\t\t\tUnifier un = iDeactF.next();\n\t\t\t\t\ttoAdd.add(\"ds(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString()+\",\"+un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastFulfilled.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iDeactR = reasoner.findall(\"xdeact_r(A,Fa,Fm,Fd,Fr,Timeout)\");\n\t\t\t\twhile(iDeactR.hasNext()){\n\t\t\t\t\tUnifier un = iDeactR.next();\n\t\t\t\t\ttoAdd.add(\"ds(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastFulfilled.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iFailed = reasoner.findall(\"xfailed(A,Fa,Fm,Fd,Fr,Timeout)\");\n\t\t\t\twhile(iFailed.hasNext()){\n\t\t\t\t\tUnifier un = iFailed.next();\n\t\t\t\t\ttoAdd.add(\"fs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//norms deactivated (fulfilled) whose maintenance condition does not hold can be removed.\n\t\t\t\t//if they are not removed, new instances of the same norm are not activated\n\t\t\t\tIterator<Unifier> iDeactivated_to_remove = reasoner.findall(\"ds(A,Fa,Fm,Fd,Fr,Timeout)&not(Fm)\");\n\t\t\t\twhile(iDeactivated_to_remove.hasNext()){\n\t\t\t\t\tUnifier un = iDeactivated_to_remove.next();\n\t\t\t\t\ttoRemove.add(\"ds(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t\tfor(String s:toAdd){\n\t\t\t\t\treasoner.assertValue(s);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(String s:toRemove){\n\t\t\t\t\treasoner.retract(s);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}while(toAdd.size()>0|toRemove.size()>0);\t\t\t\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "boolean hasInitialResponse();" ]
[ "0.65733695", "0.5590564", "0.5543691", "0.55132604", "0.5457688", "0.5303366", "0.52621263", "0.52383506", "0.5234783", "0.52015895", "0.5143498", "0.5109321", "0.5102565", "0.50960207", "0.5093026", "0.50924087", "0.5088021", "0.5083733", "0.50828236", "0.5071075", "0.50704706", "0.50569564", "0.5040081", "0.5038746", "0.5034564", "0.5025545", "0.5013076", "0.5000722", "0.4978608", "0.4973505", "0.49726602", "0.49662384", "0.49325466", "0.49214625", "0.49091813", "0.4892851", "0.48907083", "0.4890557", "0.48754108", "0.48562694", "0.4850769", "0.4850769", "0.48416072", "0.48396304", "0.48338297", "0.48231584", "0.48224023", "0.48009643", "0.4800279", "0.47947675", "0.47891265", "0.47819078", "0.47809535", "0.47805625", "0.477601", "0.4762828", "0.47623584", "0.47572264", "0.4752361", "0.47516426", "0.4750378", "0.4746315", "0.47436315", "0.47377446", "0.47287485", "0.4728576", "0.47270247", "0.4725876", "0.47197217", "0.471892", "0.4718533", "0.470739", "0.47009394", "0.4695279", "0.4694981", "0.46924925", "0.4691952", "0.4691251", "0.46904343", "0.46865857", "0.4682407", "0.4682407", "0.4682407", "0.4682407", "0.4682407", "0.4682407", "0.4682407", "0.4682407", "0.4682407", "0.4682407", "0.4682407", "0.4682407", "0.4680812", "0.4676626", "0.46760648", "0.46727362", "0.4668525", "0.46676224", "0.46676093", "0.46675897", "0.46658814" ]
0.0
-1
Failed to read value
@Override public void onCancelled(DatabaseError error) { Toast.makeText(MainActivity.this, "error", Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean shouldReadValue();", "Object readValue();", "private @NotNull ErrorValue finishReadingError()\n throws IOException, JsonFormatException {\n stepOver(JsonToken.VALUE_NUMBER_INT, \"integer value\");\n int errorCode;\n try { errorCode = currentValueAsInt(); } catch (JsonParseException ignored) {\n throw expected(\"integer error code\");\n }\n stepOver(JsonFormat.ERROR_MESSAGE_FIELD);\n stepOver(JsonToken.VALUE_STRING, \"string value\");\n String message = currentText();\n // TODO read custom error properties here (if we decide to support these)\n stepOver(JsonToken.END_OBJECT);\n return new ErrorValue(errorCode, message, null);\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n Log.w(TAG, \"Failed to read value.\" + databaseError.toString());\n }", "Text getValue() throws IOException;", "@Override\n public void onCancelled(@NonNull DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Firebase read \", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n // Failed to read value\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError databaseError) {\n Log.w(TAG, \"Failed to read value.\", databaseError.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Tag\",\"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Tag\",\"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.d(UIUtil.TAG, \"Failed to read value.\", error.toException());\n }", "@Test\n void deserialize_test_with_invalid_value() {\n assertThatThrownBy(\n () -> jsonConverter.readValue(\"{\\\"transport\\\": -1}\", TestDTO.class)\n ).isInstanceOf(DataConversionException.class);\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "abstract Object getValue (String str, ValidationContext vc) throws DatatypeException;", "@Override\r\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\r\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }", "public int readValue() { \n\t\treturn (port.readRawValue() - offset); \n\t}", "@Override\r\n public Object getValueFromString(String text_p) throws Exception\r\n {\n return null;\r\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "protected E readValue(LineReader reader, long indexElement) throws IOException {\n int length = (int) getValueLength(indexElement);\n if (length == 0) {\n return getValueConverter().bytesToValue(buffer, 0);\n }\n long valPos = getValuePosition(indexElement);\n if (log.isTraceEnabled()) {\n log.trace(\"readValue: Retrieving value of length \" + length + \" from file at position \" + valPos);\n }\n synchronized (this) {\n reader.seek(valPos);\n if (buffer.length < length) {\n buffer = new byte[length];\n }\n reader.readFully(buffer, 0, length);\n }\n/* for (int i = 0 ; i < length ; i++) {\n System.out.println(buffer[i]);\n }\n */\n return getValueConverter().bytesToValue(buffer, length);\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read test value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "public String getValue() {\n/* 99 */ return this.value;\n/* */ }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Jinx\", \"Failed to read value.\", error.toException());\n }", "@Test(expected = IllegalArgumentException.class)\n public void testFromValueWithException() {\n System.out.println(\"fromValue\");\n String value = \"DELETED\";\n StatusType expResult = StatusType.DELETED;\n StatusType result = StatusType.fromValue(value);\n assertEquals(expResult, result);\n }", "public ValueOutOfBoundsException(String message){\n super(message);\n //do nothing else\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(null, \"Failed to read value.\", error.toException());\n }", "private @NotNull Val finishReadingValue(@NotNull Tag tag) throws IOException, JsonFormatException {\n\n DatumType type = tag.type;\n @NotNull JsonToken token = currentToken();\n // null?\n if (token == JsonToken.VALUE_NULL) return type.createValue(null);\n // error?\n final @Nullable String firstFieldName;\n if (token == JsonToken.START_OBJECT) { // can be a record or an error\n firstFieldName = nextFieldName(); // advances to next token (field name or end object - in valid cases)\n if (JsonFormat.ERROR_CODE_FIELD.equals(firstFieldName)) return type.createValue(finishReadingError());\n } else firstFieldName = null;\n // datum\n final @NotNull Datum datum = finishReadingDatum(token, firstFieldName, type);\n return datum.asValue();\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Oof2\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Oof2\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(UIUtil.TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Payments\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"taches \", \"Failed to read value.\", error.toException());\n }", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"ASDG\", \"Failed to read value.\", error.toException());\n }", "Object nextValue() throws IOException;", "@Override\n public void onCancelled(DatabaseError error) {\n Log.d(\"ERROR TAG\", \"Failed to read value.\", error.toException());\n }", "private void read() {\n\t\tticketint = preticketint.getInt(\"ticketint\", 0);\r\n\t\tLog.d(\"ticketint\", \"ticketint\" + \"read\" + ticketint);\r\n\t}", "@BeforeStep\n\tprivate void retriveValue(StepExecution stepExecution) throws PhotoOmniException{\n\t\tif (LOGGER.isDebugEnabled()) {\n\t\t\tLOGGER.debug(\" Entering into PMByWICCustomReader.retriveValue() \");\n\t\t}\n\t\ttry {\n\t\t\tJobExecution objJobExecution = stepExecution.getJobExecution();\n\t\t\tExecutionContext objExecutionContext = objJobExecution.getExecutionContext();\n\t\t\tobjPMBYWICReportPrefDataBean = (PMBYWICReportPrefDataBean) objExecutionContext.get(\"refDataKey\");\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(\" Error occoured at PMByWICCustomReader.retriveValue() >----> \" + e);\n\t\t\tthrow new PhotoOmniException(e.getMessage());\n\t\t}finally {\n\t\t\tif (LOGGER.isDebugEnabled()) {\n\t\t\t\tLOGGER.debug(\" Exiting From PMByWICCustomReader.retriveValue() >----> \");\n\t\t\t}\n\t\t}\n\t}", "private void checkNotUnknown() {\n if (isUnknown())\n throw new AnalysisException(\"Unexpected 'unknown' value!\");\n }", "public InvalidRifValueException(Throwable cause) {\n super(cause);\n }", "@Override\r\n public void onCancelled(DatabaseError error) {\n Log.w(\"\", \"Failed to read value.\", error.toException());\r\n //showProgress(false);\r\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "public void testInvalidTextValueWithBrokenUTF8() throws Exception\n {\n final byte[] input = readResource(\"/data/clusterfuzz-cbor-35979.cbor\");\n try (JsonParser p = MAPPER.createParser(input)) {\n assertToken(JsonToken.VALUE_STRING, p.nextToken());\n p.getText();\n fail(\"Should not pass\");\n } catch (StreamReadException e) {\n verifyException(e, \"Truncated UTF-8 character in Short Unicode Name (36 bytes)\");\n }\n\n }", "public Address getValue() throws UnmappedAddressException, UnalignedAddressException, WrongTypeException;", "public String getStringValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a string.\");\n }", "public static int getValue_from_die()\n {\n return value_from_die;\n }", "@Override\n public void onCancelled(@NonNull DatabaseError error) {\n Log.i(\"OnCancelled\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"error\", \"Failed to read value.\", error.toException());\n }", "protected Object readUnknownData() throws IOException {\r\n byte[] bytesValue;\r\n Byte[] bytesV;\r\n Preferences.debug(\"Unknown data; length is \" + elementLength + \" fp = \" + getFilePointer() + \"\\n\", 2);\r\n\r\n if (elementLength <= 0) {\r\n Preferences.debug(\"Unknown data; Error length is \" + elementLength + \"!!!!!\\n\", 2);\r\n\r\n return null;\r\n }\r\n\r\n bytesValue = new byte[elementLength];\r\n read(bytesValue);\r\n bytesV = new Byte[elementLength];\r\n\r\n for (int k = 0; k < bytesValue.length; k++) {\r\n bytesV[k] = new Byte(bytesValue[k]);\r\n }\r\n\r\n return bytesV;\r\n }", "@Test\n public void shouldThrowExceptionIfFailsToGetVariableAsIntByOid() throws IOException {\n expect(configuration.createPDU(PDU.GET)).andReturn(new PDU());\n expect(snmpInterface.send(isA(PDU.class), same(target))).andThrow(new IOException());\n\n replayAll();\n final Integer variableAsInt = session.getVariableAsInt(\"1\");\n\n assertNull(variableAsInt);\n verifyAll();\n\n }", "public void testGetValue() {\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n test1.prev();\n test1.moveToPos(8);\n assertTrue(test1.getValue().inRange(8));\n for (int i = 0; i < 10; i++) {\n test1.next();\n }\n try {\n test1.getValue();\n }\n catch (Exception e) {\n assertTrue(e instanceof NoSuchElementException);\n }\n }", "public abstract String getValue();", "public abstract String getValue();", "public abstract String getValue();", "@Override\r\n\t\tpublic long getValue() {\n\t\t\treturn -1;\r\n\t\t}", "public void _read(org.omg.CORBA.portable.InputStream istream)\r\n {\r\n value = EtudiantDejaInscritExceptionHelper.read(istream);\r\n }" ]
[ "0.6520245", "0.644224", "0.62601036", "0.6077715", "0.6027265", "0.59389204", "0.5928014", "0.5897478", "0.5892562", "0.5891626", "0.5821752", "0.5813256", "0.5813256", "0.58093756", "0.58006567", "0.5798476", "0.5776234", "0.5774579", "0.57361126", "0.5728217", "0.57143444", "0.5699661", "0.56832033", "0.5678807", "0.5678807", "0.5678807", "0.5678807", "0.5678807", "0.5678807", "0.5678807", "0.5678807", "0.5678807", "0.5678807", "0.5678807", "0.5678807", "0.5678807", "0.5678807", "0.5678807", "0.5678807", "0.5678807", "0.5678807", "0.5678807", "0.5677442", "0.5675753", "0.5673998", "0.5673998", "0.5639195", "0.5639195", "0.5639195", "0.5639195", "0.5639195", "0.56246144", "0.56246144", "0.56246144", "0.56246144", "0.56246144", "0.56246144", "0.5616912", "0.56142795", "0.5613676", "0.5605406", "0.5584552", "0.5570884", "0.5567774", "0.5567774", "0.55625266", "0.5544951", "0.55435926", "0.55421937", "0.55421937", "0.55421937", "0.55421937", "0.55421937", "0.55421937", "0.55421937", "0.55421937", "0.55421937", "0.55421937", "0.5525155", "0.55243915", "0.55217975", "0.5517537", "0.551731", "0.55162007", "0.5509505", "0.5503448", "0.55026805", "0.549577", "0.5493651", "0.5481864", "0.547583", "0.54632115", "0.54314864", "0.54267025", "0.5424288", "0.5423057", "0.54224277", "0.54224277", "0.54224277", "0.54200286", "0.54182553" ]
0.0
-1
Created by jing on 2017/6/20.
public interface ScientificResearchMapperCustom { void addScientificRearch(ScientificResearch scientificResearch); List<ScientificResearch> ScientificList(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n public void init() {\n\n }", "private void poetries() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void anular() {\n\n\t}", "private void init() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n void init() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void getExras() {\n }", "@Override\n public void init() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo38117a() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@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\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "private void strin() {\n\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\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\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 nghe() {\n\n\t}", "private void kk12() {\n\n\t}", "@Override\n protected void init() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void memoria() {\n \n }", "private void init() {\n\n\n\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n public void initialize() { \n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void init() {\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo6081a() {\n }", "@Override\n public int describeContents() { return 0; }", "private void m50366E() {\n }", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n public void initialize() {\n \n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}" ]
[ "0.60178953", "0.5924875", "0.5753268", "0.57487655", "0.57241213", "0.57241213", "0.56683016", "0.5657303", "0.5641615", "0.5629565", "0.56122655", "0.5604059", "0.5585402", "0.5569011", "0.5553501", "0.550633", "0.5505787", "0.5501574", "0.55003947", "0.55003947", "0.55003947", "0.55003947", "0.55003947", "0.54989266", "0.5496463", "0.5488144", "0.5485184", "0.5484599", "0.54811156", "0.54804707", "0.54756457", "0.5457406", "0.545096", "0.5449358", "0.5448268", "0.5436047", "0.5434134", "0.5434134", "0.5434134", "0.5434134", "0.5434134", "0.5434134", "0.5424573", "0.5424573", "0.5414762", "0.5414762", "0.5414762", "0.5414736", "0.5404423", "0.53970313", "0.5395664", "0.5394424", "0.5394424", "0.5394424", "0.5393856", "0.5393856", "0.5392", "0.5392", "0.5392", "0.53856957", "0.53856957", "0.5378034", "0.5377876", "0.53677374", "0.53668714", "0.53587186", "0.5352469", "0.53425384", "0.53389245", "0.53369194", "0.5336222", "0.5325946", "0.53231394", "0.5317812", "0.531255", "0.52953947", "0.52905446", "0.52886677", "0.5283592", "0.5279808", "0.5279808", "0.5279808", "0.5279808", "0.5279808", "0.5279808", "0.5279808", "0.52753043", "0.5274976", "0.5266671", "0.5254695", "0.5254473", "0.5234252", "0.5227931", "0.52273035", "0.5221461", "0.5221167", "0.5199765", "0.5191691", "0.51881486", "0.51852614", "0.51852614" ]
0.0
-1
TODO support enums TODO support interfaces
@Override public SymbolReference<ResolvedReferenceTypeDeclaration> tryToSolveType(String name) { try { return foundTypes.get(name, () -> { SymbolReference<ResolvedReferenceTypeDeclaration> result = tryToSolveTypeUncached(name); if (result.isSolved()) { return SymbolReference.solved(result.getCorrespondingDeclaration()); } return result; }); } catch (ExecutionException e) { throw new RuntimeException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface BaseEnum {\n\n int getStatus();\n\n String getDesc();\n}", "public interface LMCPEnum {\n\n public long getSeriesNameAsLong();\n\n public String getSeriesName();\n\n public int getSeriesVersion();\n\n public String getName(long type);\n\n public long getType(String name);\n\n public LMCPObject getInstance(long type);\n\n public java.util.Collection<String> getAllTypes();\n}", "public interface EnumParameter extends ParameterValue {\r\n}", "public interface SubsystemEnum {\n\n SubsystemBase getSubsystem();\n\n}", "public interface KmipEnum {\n\n String name();\n\n Long getValue();\n}", "public interface CodeEnum {\n int getCode();\n}", "public interface CodeEnum {\n Integer getCode();\n\n String getMeaning();\n}", "public interface CodeEnum {\n\n Integer getCode();\n}", "public interface CodeEnum {\n Integer getCode();\n}", "public interface MybatisStringTypeHandlerEnum {\n public String getString();\n}", "public interface EntidadBase extends EntidadOrdenada {\n enum tipo {\n seccion, informacion\n }\n\n SeccionBase getSeccionBase();\n\n void setSeccionBase(SeccionBase seccionBase);\n\n tipo getTipoEntidad();\n}", "public interface GI\n{\n public static final class CONNSTATUS extends Enum\n {\n\n private static final CONNSTATUS $VALUES[];\n public static final CONNSTATUS CONNECTING;\n public static final CONNSTATUS OFFLINE;\n public static final CONNSTATUS ONLINE;\n public static final CONNSTATUS PAUSING;\n public static final CONNSTATUS WRAPPER_UNKNOWN_VALUE;\n private static final j intToTypeMap;\n private final int value;\n\n public static CONNSTATUS fromInt(int i)\n {\n CONNSTATUS connstatus = (CONNSTATUS)intToTypeMap.a(i);\n if (connstatus != null)\n {\n return connstatus;\n } else\n {\n return WRAPPER_UNKNOWN_VALUE;\n }\n }\n\n public static CONNSTATUS valueOf(String s)\n {\n return (CONNSTATUS)Enum.valueOf(com/skype/GI$CONNSTATUS, s);\n }\n\n public static CONNSTATUS[] values()\n {\n return (CONNSTATUS[])$VALUES.clone();\n }\n\n public final int toInt()\n {\n return value;\n }\n\n static \n {\n OFFLINE = new CONNSTATUS(\"OFFLINE\", 0, 0);\n CONNECTING = new CONNSTATUS(\"CONNECTING\", 1, 1);\n PAUSING = new CONNSTATUS(\"PAUSING\", 2, 2);\n ONLINE = new CONNSTATUS(\"ONLINE\", 3, 3);\n WRAPPER_UNKNOWN_VALUE = new CONNSTATUS(\"WRAPPER_UNKNOWN_VALUE\", 4, 0x7fffffff);\n $VALUES = (new CONNSTATUS[] {\n OFFLINE, CONNECTING, PAUSING, ONLINE, WRAPPER_UNKNOWN_VALUE\n });\n intToTypeMap = new j();\n CONNSTATUS aconnstatus[] = values();\n int k = aconnstatus.length;\n for (int i = 0; i < k; i++)\n {\n CONNSTATUS connstatus = aconnstatus[i];\n intToTypeMap.a(connstatus.value, connstatus);\n }\n\n }\n\n private CONNSTATUS(String s, int i, int k)\n {\n super(s, i);\n value = k;\n }\n }\n\n public static final class FILEERROR extends Enum\n {\n\n private static final FILEERROR $VALUES[];\n public static final FILEERROR CREATE_ERROR;\n public static final FILEERROR DISK_FULL;\n public static final FILEERROR NO_FILEERROR;\n public static final FILEERROR OPEN_ERROR;\n public static final FILEERROR READ_ERROR;\n public static final FILEERROR WRAPPER_UNKNOWN_VALUE;\n public static final FILEERROR WRITE_ERROR;\n private static final j intToTypeMap;\n private final int value;\n\n public static FILEERROR fromInt(int i)\n {\n FILEERROR fileerror = (FILEERROR)intToTypeMap.a(i);\n if (fileerror != null)\n {\n return fileerror;\n } else\n {\n return WRAPPER_UNKNOWN_VALUE;\n }\n }\n\n public static FILEERROR valueOf(String s)\n {\n return (FILEERROR)Enum.valueOf(com/skype/GI$FILEERROR, s);\n }\n\n public static FILEERROR[] values()\n {\n return (FILEERROR[])$VALUES.clone();\n }\n\n public final int toInt()\n {\n return value;\n }\n\n static \n {\n NO_FILEERROR = new FILEERROR(\"NO_FILEERROR\", 0, 0);\n DISK_FULL = new FILEERROR(\"DISK_FULL\", 1, 1);\n CREATE_ERROR = new FILEERROR(\"CREATE_ERROR\", 2, 2);\n OPEN_ERROR = new FILEERROR(\"OPEN_ERROR\", 3, 3);\n READ_ERROR = new FILEERROR(\"READ_ERROR\", 4, 4);\n WRITE_ERROR = new FILEERROR(\"WRITE_ERROR\", 5, 5);\n WRAPPER_UNKNOWN_VALUE = new FILEERROR(\"WRAPPER_UNKNOWN_VALUE\", 6, 0x7fffffff);\n $VALUES = (new FILEERROR[] {\n NO_FILEERROR, DISK_FULL, CREATE_ERROR, OPEN_ERROR, READ_ERROR, WRITE_ERROR, WRAPPER_UNKNOWN_VALUE\n });\n intToTypeMap = new j();\n FILEERROR afileerror[] = values();\n int k = afileerror.length;\n for (int i = 0; i < k; i++)\n {\n FILEERROR fileerror = afileerror[i];\n intToTypeMap.a(fileerror.value, fileerror);\n }\n\n }\n\n private FILEERROR(String s, int i, int k)\n {\n super(s, i);\n value = k;\n }\n }\n\n public static interface GIIListener\n {\n\n public abstract void onConnStatusChange(GI gi, CONNSTATUS connstatus);\n\n public abstract void onFileError(GI gi, FILEERROR fileerror);\n\n public abstract void onLibStatusChange(GI gi, LIBSTATUS libstatus);\n\n public abstract void onNodeinfoChange(GI gi, byte abyte0[]);\n\n public abstract void onProxyAuthenticationFailure(GI gi, PROXYTYPE proxytype);\n }\n\n public static class GetLastFileError_Result\n {\n\n public String m_filename;\n public int m_lowlevelCode;\n public FILEERROR m_return;\n\n public void init(int i, byte abyte0[], FILEERROR fileerror)\n {\n m_lowlevelCode = i;\n m_filename = NativeStringConvert.ConvertFromNativeBytes(abyte0);\n m_return = fileerror;\n }\n\n public GetLastFileError_Result()\n {\n }\n }\n\n public static final class LIBSTATUS extends Enum\n {\n\n private static final LIBSTATUS $VALUES[];\n public static final LIBSTATUS CONSTRUCTED;\n public static final LIBSTATUS FATAL_ERROR;\n public static final LIBSTATUS RUNNING;\n public static final LIBSTATUS STARTING;\n public static final LIBSTATUS STOPPED;\n public static final LIBSTATUS STOPPING;\n public static final LIBSTATUS WRAPPER_UNKNOWN_VALUE;\n private static final j intToTypeMap;\n private final int value;\n\n public static LIBSTATUS fromInt(int i)\n {\n LIBSTATUS libstatus = (LIBSTATUS)intToTypeMap.a(i);\n if (libstatus != null)\n {\n return libstatus;\n } else\n {\n return WRAPPER_UNKNOWN_VALUE;\n }\n }\n\n public static LIBSTATUS valueOf(String s)\n {\n return (LIBSTATUS)Enum.valueOf(com/skype/GI$LIBSTATUS, s);\n }\n\n public static LIBSTATUS[] values()\n {\n return (LIBSTATUS[])$VALUES.clone();\n }\n\n public final int toInt()\n {\n return value;\n }\n\n static \n {\n CONSTRUCTED = new LIBSTATUS(\"CONSTRUCTED\", 0, 0);\n STARTING = new LIBSTATUS(\"STARTING\", 1, 1);\n RUNNING = new LIBSTATUS(\"RUNNING\", 2, 2);\n STOPPING = new LIBSTATUS(\"STOPPING\", 3, 3);\n STOPPED = new LIBSTATUS(\"STOPPED\", 4, 4);\n FATAL_ERROR = new LIBSTATUS(\"FATAL_ERROR\", 5, 5);\n WRAPPER_UNKNOWN_VALUE = new LIBSTATUS(\"WRAPPER_UNKNOWN_VALUE\", 6, 0x7fffffff);\n $VALUES = (new LIBSTATUS[] {\n CONSTRUCTED, STARTING, RUNNING, STOPPING, STOPPED, FATAL_ERROR, WRAPPER_UNKNOWN_VALUE\n });\n intToTypeMap = new j();\n LIBSTATUS alibstatus[] = values();\n int k = alibstatus.length;\n for (int i = 0; i < k; i++)\n {\n LIBSTATUS libstatus = alibstatus[i];\n intToTypeMap.a(libstatus.value, libstatus);\n }\n\n }\n\n private LIBSTATUS(String s, int i, int k)\n {\n super(s, i);\n value = k;\n }\n }\n\n public static final class NETWORKACTIVITYLEVEL extends Enum\n {\n\n private static final NETWORKACTIVITYLEVEL $VALUES[];\n public static final NETWORKACTIVITYLEVEL NAL_FIRST_QUIET_LEVEL;\n public static final NETWORKACTIVITYLEVEL NAL_LAST_LEVEL_DONT_USE;\n public static final NETWORKACTIVITYLEVEL NAL_NORMAL_LEVEL;\n public static final NETWORKACTIVITYLEVEL NAL_QUIET_SUSPENDED_LEVEL;\n public static final NETWORKACTIVITYLEVEL NAL_QUIET_SUSPENDED_OFFLINE_LEVEL;\n public static final NETWORKACTIVITYLEVEL NAL_QUIET_WITH_NETWORK_LEVEL;\n public static final NETWORKACTIVITYLEVEL WRAPPER_UNKNOWN_VALUE;\n private static final j intToTypeMap;\n private final int value;\n\n public static NETWORKACTIVITYLEVEL fromInt(int i)\n {\n NETWORKACTIVITYLEVEL networkactivitylevel = (NETWORKACTIVITYLEVEL)intToTypeMap.a(i);\n if (networkactivitylevel != null)\n {\n return networkactivitylevel;\n } else\n {\n return WRAPPER_UNKNOWN_VALUE;\n }\n }\n\n public static NETWORKACTIVITYLEVEL valueOf(String s)\n {\n return (NETWORKACTIVITYLEVEL)Enum.valueOf(com/skype/GI$NETWORKACTIVITYLEVEL, s);\n }\n\n public static NETWORKACTIVITYLEVEL[] values()\n {\n return (NETWORKACTIVITYLEVEL[])$VALUES.clone();\n }\n\n public final int toInt()\n {\n return value;\n }\n\n static \n {\n NAL_NORMAL_LEVEL = new NETWORKACTIVITYLEVEL(\"NAL_NORMAL_LEVEL\", 0, 3);\n NAL_FIRST_QUIET_LEVEL = new NETWORKACTIVITYLEVEL(\"NAL_FIRST_QUIET_LEVEL\", 1, 7);\n NAL_QUIET_WITH_NETWORK_LEVEL = new NETWORKACTIVITYLEVEL(\"NAL_QUIET_WITH_NETWORK_LEVEL\", 2, 7);\n NAL_QUIET_SUSPENDED_LEVEL = new NETWORKACTIVITYLEVEL(\"NAL_QUIET_SUSPENDED_LEVEL\", 3, 8);\n NAL_QUIET_SUSPENDED_OFFLINE_LEVEL = new NETWORKACTIVITYLEVEL(\"NAL_QUIET_SUSPENDED_OFFLINE_LEVEL\", 4, 9);\n NAL_LAST_LEVEL_DONT_USE = new NETWORKACTIVITYLEVEL(\"NAL_LAST_LEVEL_DONT_USE\", 5, 10);\n WRAPPER_UNKNOWN_VALUE = new NETWORKACTIVITYLEVEL(\"WRAPPER_UNKNOWN_VALUE\", 6, 0x7fffffff);\n $VALUES = (new NETWORKACTIVITYLEVEL[] {\n NAL_NORMAL_LEVEL, NAL_FIRST_QUIET_LEVEL, NAL_QUIET_WITH_NETWORK_LEVEL, NAL_QUIET_SUSPENDED_LEVEL, NAL_QUIET_SUSPENDED_OFFLINE_LEVEL, NAL_LAST_LEVEL_DONT_USE, WRAPPER_UNKNOWN_VALUE\n });\n intToTypeMap = new j();\n NETWORKACTIVITYLEVEL anetworkactivitylevel[] = values();\n int k = anetworkactivitylevel.length;\n for (int i = 0; i < k; i++)\n {\n NETWORKACTIVITYLEVEL networkactivitylevel = anetworkactivitylevel[i];\n intToTypeMap.a(networkactivitylevel.value, networkactivitylevel);\n }\n\n }\n\n private NETWORKACTIVITYLEVEL(String s, int i, int k)\n {\n super(s, i);\n value = k;\n }\n }\n\n public static final class PROXYTYPE extends Enum\n {\n\n private static final PROXYTYPE $VALUES[];\n public static final PROXYTYPE HTTPS_PROXY;\n public static final PROXYTYPE SOCKS_PROXY;\n public static final PROXYTYPE WRAPPER_UNKNOWN_VALUE;\n private static final j intToTypeMap;\n private final int value;\n\n public static PROXYTYPE fromInt(int i)\n {\n PROXYTYPE proxytype = (PROXYTYPE)intToTypeMap.a(i);\n if (proxytype != null)\n {\n return proxytype;\n } else\n {\n return WRAPPER_UNKNOWN_VALUE;\n }\n }\n\n public static PROXYTYPE valueOf(String s)\n {\n return (PROXYTYPE)Enum.valueOf(com/skype/GI$PROXYTYPE, s);\n }\n\n public static PROXYTYPE[] values()\n {\n return (PROXYTYPE[])$VALUES.clone();\n }\n\n public final int toInt()\n {\n return value;\n }\n\n static \n {\n HTTPS_PROXY = new PROXYTYPE(\"HTTPS_PROXY\", 0, 0);\n SOCKS_PROXY = new PROXYTYPE(\"SOCKS_PROXY\", 1, 1);\n WRAPPER_UNKNOWN_VALUE = new PROXYTYPE(\"WRAPPER_UNKNOWN_VALUE\", 2, 0x7fffffff);\n $VALUES = (new PROXYTYPE[] {\n HTTPS_PROXY, SOCKS_PROXY, WRAPPER_UNKNOWN_VALUE\n });\n intToTypeMap = new j();\n PROXYTYPE aproxytype[] = values();\n int k = aproxytype.length;\n for (int i = 0; i < k; i++)\n {\n PROXYTYPE proxytype = aproxytype[i];\n intToTypeMap.a(proxytype.value, proxytype);\n }\n\n }\n\n private PROXYTYPE(String s, int i, int k)\n {\n super(s, i);\n value = k;\n }\n }\n\n\n public abstract void addListener(GIIListener giilistener);\n\n public abstract void connect();\n\n public abstract void disconnect();\n\n public abstract CONNSTATUS getConnStatus();\n\n public abstract String getDebugInfo();\n\n public abstract String getFatalErrorMessage();\n\n public abstract GetLastFileError_Result getLastFileError();\n\n public abstract LIBSTATUS getLibStatus();\n\n public abstract Setup getSetup();\n\n public abstract int getUsedPort();\n\n public abstract void log(String s, String s1);\n\n public abstract void pollEvents();\n\n public abstract void pollEvents(int i);\n\n public abstract void removeListener(GIIListener giilistener);\n\n public abstract void setDefaultPeers(String s);\n\n public abstract void setSystemID(long l);\n}", "@Override\r\n\tpublic void visit(EnumDefinition enumDefinition) {\n\r\n\t}", "public interface FamilyRole\n {\n /**\n * 1:Dad\n */\n String DAD = \"1\";\n /**\n * 2:Mom\n */\n String MOM = \"2\";\n /**\n * 3:Son\n */\n String SON = \"3\";\n /**\n * 4:Daughter\n */\n String DAUGHTER = \"4\";\n /**\n * 5:Grandpa\n */\n String GRANDPA = \"5\";\n /**\n * 6:Grandma\n */\n String GRANDMA = \"6\";\n /**\n * 7:Maid\n */\n String MAID = \"7\";\n /**\n * 8:Driver\n */\n String DRIVER = \"8\";\n /**\n * 9:Other\n */\n String OTHER = \"9\";\n\n }", "public interface IEnumResponseCode {\n\t/**\n\t * Returns the code of a response message\n\t * @return {@link String}\n\t */\n\tpublic String getCode();\n\t\n\t/**\n\t * Returns the description of a response message\n\t * @return {@link String}\n\t */\n\tpublic String getDescription();\n\t\n}", "protected EnumSyntax[] getEnumValueTable() {\n/* 206 */ return (EnumSyntax[])myEnumValueTable;\n/* */ }", "@Test\n public void testCreationOfAccountWithEnum() {\n\n AccountWithEnum accountWithEnum = new AccountWithEnum();\n Assert.assertEquals(accountWithEnum.getAccountType(), AccountType.CHECKING);\n }", "public interface e {\n\n /* compiled from: ImageHeaderParser */\n public enum a {\n GIF(true),\n JPEG(false),\n RAW(false),\n PNG_A(true),\n PNG(false),\n WEBP_A(true),\n WEBP(false),\n UNKNOWN(false);\n \n private final boolean hasAlpha;\n\n private a(boolean z) {\n this.hasAlpha = z;\n }\n\n public boolean a() {\n return this.hasAlpha;\n }\n }\n\n int a(InputStream inputStream, b bVar) throws IOException;\n\n a a(InputStream inputStream) throws IOException;\n\n a a(ByteBuffer byteBuffer) throws IOException;\n}", "public interface CHANGED_TYPE {\r\n public static final int FEE = 1;\r\n public static final int GRACE_PERIOD = 2;\r\n }", "EnumValue createEnumValue();", "EnumValue createEnumValue();", "EnumValue createEnumValue();", "EnumRef createEnumRef();", "public interface Animalable {\n public enum AnimalClass {\n VERTEBRATE,\n INVERTEBRATE\n }\n\n public enum AnimalSubClass{\n REPTILE,\n FISH,\n AMPHIBIAN,\n BIRD,\n MAMMAL\n }\n\n public interface AnimalOrders {\n enum MammalOrders implements AnimalOrders {\n RODENTIA,\n CHIROPTERA,\n INSECTIVORA,\n MARSUPIALIA,\n CARNIVORA,\n PRIMATES,\n ARTIODACTYLA,\n CETACEA,\n LAGOMORPHA,\n PINNIPEDIA,\n EDENTATA,\n PERRISSODACTYLA,\n PROBOSCIDEA\n }\n enum BirdOrders implements AnimalOrders {\n STRUTHIONIFORMES,\n CRACIFORMES,\n GALLIFORMES,\n ANSERIFORMES,\n TURNICIFORMES,\n PICIFORMES,\n GALBULIFORMES,\n BUCEROTIFORMES,\n UPUPIFORMES,\n TROGONIFORMES,\n CORACIIFORMES,\n COLIIFORMES,\n CUCULIFORMES,\n PSITTACIFORMES,\n APODIFORMES,\n TROCHILIFORMES,\n MUSOPHAGIFORMES,\n STRIGIFORMES,\n COLUMBIFORMES,\n GRUIFORMES,\n CICONIIFORMES\n }\n\n enum ReptilOrders implements AnimalOrders{\n RHYNCOCEPHALIA,\n SQUAMATA,\n CHELONIA,\n CROCODILIA\n }\n\n enum FishOrders implements AnimalOrders {\n PREHISTORIC,\n BONY,\n CARTILAGINOUS,\n JAWLESS\n }\n\n enum AmphibianOrders implements AnimalOrders {\n ANURA,\n URODELA,\n APODA\n }\n }\n\n public enum Motion{\n SWIM,\n CRAWL,\n CLIMB,\n RUN,\n WALK,\n JUMP,\n FLY,\n DIG\n }\n\n public enum FeedingBehaviour {\n AUTOTROPH,\n CARNIVORE,\n ERGIVORE,\n HERBIVORE,\n OMNIVORE,\n SCAVENGER,\n INSECTIVORE\n }\n\n public enum Media {\n AIR,\n EARTH,\n WATER\n }\n\n public enum Sex {\n MALE,\n FEMALE,\n HERMAPHRODITE\n }\n\n public AnimalClass getMyClass();\n public void setMyClass(AnimalClass animalClass);\n\n public AnimalSubClass getMySubClass();\n public void setMySubClass(AnimalSubClass animalSubClass);\n\n public AnimalOrders getMyOrder();\n public void setMyOrder(AnimalOrders myOrder);\n\n public FeedingBehaviour getMyFeedingBehaviour();\n public void setMyFeedingBehaviour(FeedingBehaviour myConsumption);\n\n public ArrayList<Media> getMyMedia();\n public void addMedia(Media aMedia);\n\n public ArrayList<Motion> getMyMotion();\n public void addMotion(Motion aMotion);\n\n public String getName();\n public void setName(String name);\n\n public String getCommonName();\n public void setCommonName(String commonName);\n\n public String getScientificName();\n public void setScientificName(String scientificName);\n\n public Boolean amIHazardous();\n public void setHazardous(boolean hazardous);\n\n public Sex getMySex();\n public void setMySex(Sex aSex);\n\n public Timestamp getLastTimeFed();\n public void feedMe(Timestamp aTime, Edible food);\n\n public int getFeedingPeriod();\n public void setFeedingPeriod(int every);\n\n public boolean timeToFeed();\n\n public int howFullIsMyBelly();\n\n public boolean isAdult();\n\n public void setAsAdult();\n\n public void setAsBaby();\n\n\n\n\n}", "public interface C5906u {\n String getName();\n\n String getValue();\n}", "EnumListValue createEnumListValue();", "Enumeration createEnumeration();", "public interface OperationType {\n char getOperationType();\n}", "public interface CustomMof14EnumLiteralClass extends javax.jmi.reflect.RefClass {\n /**\n * The default factory operation used to create an instance object.\n * @return The created instance object.\n */\n public CustomMof14EnumLiteral createCustomMof14EnumLiteral();\n}", "public ServicesFormatEnum(){\n super();\n }", "public interface User {\n\n public enum UserType{\n STUDENT, TA, PROFESSOR\n }\n UserType getUserType();\n String getToken();\n String getName();\n String getUsername();\n String getEmail();\n //int getNumberOfGroups();\n}", "public interface FusionStatus {\n\n /**\n * Defines status of a player\n */\n interface Player {\n /**\n * player playing as hare\n */\n int PLAYER_TYPE_HARE = 100;\n\n /**\n * player playing as hound\n */\n int PLAYER_TYPE_HOUND = 101;\n }\n\n /**\n * Defines states of a game session\n */\n interface GameState {\n String WAITING_FOR_SECOND_PLAYER = \"WAITING_FOR_SECOND_PLAYER\";\n String TURN_HARE = \"TURN_HARE\";\n String TURN_HOUND = \"TURN_HOUND\";\n String WIN_HARE_BY_ESCAPE = \"WIN_HARE_BY_ESCAPE\";\n String WIN_HARE_BY_STALLING = \"WIN_HARE_BY_STALLING\";\n String WIN_HOUND = \"WIN_HOUND\";\n }\n\n}", "public interface QueryTypeFactory extends QueryAllFactory<QueryTypeEnum, QueryTypeParser, QueryType>\n{\n \n}", "public interface TransfileEnumsInstanciable\n{\n /**\n * Gets an Instance of the correct packet corresponding to the ByteBuffer\n * given in parameter.\n * \n * @param bbr\n * the ByteBuffer\n * @return an instance of the correct packet\n * @throws UncompletedPackageException\n */\n abstract public TransfilePackets getInstance(ByteBuffer bbr)\n throws UncompletedPackageException;\n}", "public interface AlarmLevel {\n\n String getCode();\n\n}", "@Test\n public void testEnumFunctions() {\n assertEquals(3, Ack.values().length);\n assertEquals(Ack.OK, Ack.valueOf(\"OK\"));\n assertEquals(Ack.WARN, Ack.valueOf(\"WARN\"));\n assertEquals(Ack.ERROR, Ack.valueOf(\"ERROR\"));\n }", "public void testEnum() {\n assertNotNull(MazeCell.valueOf(MazeCell.UNEXPLORED.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.INVALID_CELL.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.CURRENT_PATH.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.FAILED_PATH.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.WALL.toString()));\n }", "@Test\r\n public void test2(){\n colorEnum = Color.GREEN;\r\n System.out.println(colorEnum);\r\n System.out.println(colorEnum.name());\r\n System.out.println(colorEnum.ordinal());\r\n System.out.println(colorEnum.toString());\r\n Color[] values = Color.values();\r\n System.out.println(Arrays.toString(values));\r\n }", "public interface AllClass extends AllClassAndEnum\r\n{\r\n}", "public interface Event {\n enum eventTriggers{\n Add_Event,\n Delete_Event,\n Reject_Event,\n Accept_Event,\n Find_Free_time\n }\n\n void addevent(AbstractEvent event);\n\n public void deleteEvent(String eventName);\n\n void update(AbstractEvent oldEvent,AbstractEvent newEvent);\n\n}", "interface ApsalarAPI {\n\n /* compiled from: ApEvent */\n public static class Status {\n static final int INVALID = -1;\n static final int POSTPONE = 0;\n static final int SUCCESS = 1;\n }\n\n /* compiled from: ApEvent */\n public static class Type {\n static final int END_SESSION = 4;\n static final int EVENT = 3;\n static final int HEARTBEAT = 2;\n static final int NONE = 0;\n static final int REGISTER = 5;\n static final int RETRY = -1;\n static final int SESSION = 1;\n static final int TRIGGER = 6;\n }\n\n int REST();\n}", "EEnum createEEnum();", "public interface AircraftType {\r\n String getAircraftType();\r\n}", "public interface RelationsType {\n\n int OBSERVERS = 1;\n int FANS = 2;\n int FRIENDS = 3;\n\n}", "@JsonDeserialize(using = BaseEnumDeserializer.class)\npublic interface BaseEnum extends Serializable {\n\n /**\n * 按枚举的value获取枚举实例\n *\n * @param enumType\n * @param value\n * @param <T>\n * @return\n */\n static <T extends BaseEnum> T fromValue(Class<T> enumType, int value) {\n for (T object : enumType.getEnumConstants()) {\n if (Objects.equals(value, object.getValue())) {\n return object;\n }\n }\n throw new IllegalArgumentException(\"No enum value \" + value + \" of \" + enumType.getCanonicalName());\n }\n\n static <T extends BaseEnum> boolean equals(T t1, T t2) {\n return t1 != null && t2 != null && t1.getValue() == t2.getValue();\n }\n\n /**\n * IBaseDbEnum枚举转换成map\n *\n * @param enumType\n * @param <T>\n * @return\n */\n static <T extends BaseEnum> Map<Integer, String> toMap(Class<T> enumType) {\n Map<Integer, String> map = Maps.newHashMap();\n for (T t : enumType.getEnumConstants()) {\n map.put(t.getValue(), t.getName());\n }\n return map;\n }\n\n static <T extends BaseEnum> List<Integer> getValues(Class<T> enumType) {\n List<Integer> list = Lists.newArrayList();\n for (T t : enumType.getEnumConstants()) {\n list.add(t.getValue());\n }\n return list;\n }\n\n static <T extends BaseEnum> List<String> getNames(Class<T> enumType) {\n List<String> list = Lists.newArrayList();\n for (T t : enumType.getEnumConstants()) {\n list.add(t.getName());\n }\n return list;\n }\n\n static <T extends BaseEnum> boolean containsValue(Class<T> enumType, int value) {\n for (T t : enumType.getEnumConstants()) {\n if (value == t.getValue()) {\n return true;\n }\n }\n return false;\n }\n\n static <T extends BaseEnum> int getEnumIndex(Class<T> enumType, T enumInstance) {\n for (int i = 0; i < enumType.getEnumConstants().length; i++) {\n if (enumInstance == enumType.getEnumConstants()[i]) {\n return i;\n }\n }\n return -1;\n }\n\n /**\n * 用于显示的枚举名\n *\n * @return\n */\n String getName();\n\n /**\n * 存储到数据库的枚举值\n *\n * @return\n */\n @JsonValue\n int getValue();\n\n}", "public interface SRSTet extends Tetromino {\r\n @Override\r\n default String getName() {\r\n return \"SRS \" + getType();\r\n }\r\n}", "@SuppressWarnings(\"unchecked\")\n private String toString(Object obj)\n {\n if (obj instanceof Enum)\n return ((Enum) obj).name();\n return obj.toString();\n\n }", "public interface ValueState {\n }", "public static interface Enum_Cal_fechPass {\n\t\tint resta = 1;\n\t\t\n\t}", "public static void main(String arg[])\r\n\t {\n\t \r\n\t color ob=color.RED;\r\n\t \r\n\t // System.out.println(\"An Enumeration Object:\"+ob);\r\n\t \r\n\t System.out.println(\"Enumeration Objects Ordinal Values:\"+ob.ordinal());\r\n\t }", "abstract public Type type();", "public interface ParamsParser<E extends Enum<E>> {\n\n Pair<EnumMap<E, String>, List<Parameter>> parse(String data) throws HeaderParseErrorException;\n\n boolean checkQuotedParam(E param, String data);\n\n boolean checkTokenParam(E param, String data);\n\n}", "public interface JsonValue {\n\n /**\n * The enum Value type.\n */\n enum ValueType\n {\n /**\n * Json object value type.\n */\n JSON_OBJECT,\n /**\n * Json array value type.\n */\n JSON_ARRAY,\n /**\n * Json string value type.\n */\n JSON_STRING,\n /**\n * Json number value type.\n */\n JSON_NUMBER,\n /**\n * Json boolean value type.\n */\n JSON_BOOLEAN\n }\n\n /**\n * Gets json value type.\n *\n * @return the json value type\n */\n ValueType getJsonValueType();\n\n}", "@Test\n public void operator_enum() {\n OutputNode output = new OutputNode(\"testing\", typeOf(Result.class), typeOf(String.class));\n OperatorNode operator = new OperatorNode(\n classOf(SimpleOp.class), typeOf(Result.class), typeOf(String.class),\n output, new ValueElement(valueOf(BasicTypeKind.VOID), typeOf(Enum.class)));\n InputNode root = new InputNode(operator);\n MockContext context = new MockContext();\n testing(root, context, op -> {\n op.process(\"Hello, world!\");\n });\n assertThat(context.get(\"testing\"), contains(\"Hello, world!VOID\"));\n }", "public interface Status {\n\n public void setArchived(Character archived);\n\n public Character getArchived();\n\n public boolean isActive();\n\n}", "public abstract String getObjectType();", "public String getElement()\n {\n return \"enum\";\n }", "public interface QARole {\n public static final int QARole_Attendee = 0;\n public static final int QARole_Host = 2;\n public static final int QARole_Panelist = 1;\n}", "public interface IInventoryInfos{\n\n /**\n * Gets value share.ressource.\n *\n * @param type the type\n * @return the value share.ressource\n */\n int getValueRessource(TypeRessource type);\n\n /**\n * Gets value max share.ressource.\n *\n * @param type the type\n * @return the value max share.ressource\n */\n int getValueMaxRessource(TypeRessource type);\n\n}", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "public interface Value {\n\t}", "@Test\n public void test_constructor_0(){\n\tSystem.out.println(\"Testing TracerIsotopes's enumerations and getters.\");\n //Tests if values are correct for all enumerations, and tests the getters as well. You cannot instantiate new inumerations.\n \n TracerIsotopes ave=TracerIsotopes.concPb205t;\n assertEquals(\"concPb205t\",ave.getName());\n\n ave=TracerIsotopes.concU235t;\n assertEquals(\"concU235t\",ave.getName());\n \n ave=TracerIsotopes.concU236t;\n assertEquals(\"concU236t\",ave.getName()); \n \n String[] list=TracerIsotopes.getNames();\n assertEquals(\"concPb205t\",list[0]);\n assertEquals(\"concU235t\",list[1]);\n assertEquals(\"concU236t\",list[2]);\n \n \n \n }", "Enum getType();", "public static void main(String[] args) {\n\n for (OperateTypeEnum test : OperateTypeEnum.values()) {\n System.out.println(test.name()+\" \"+test.ordinal());\n }\n\n EnumMap<OperateTypeEnum, String> enumMap = new EnumMap<OperateTypeEnum, String>(OperateTypeEnum.class);\n enumMap.put(OperateTypeEnum.DELETE, \"dddddddddddddd\");\n enumMap.put(OperateTypeEnum.UPDATE, \"uuuuuuuuuuuuuu\");\n for (Map.Entry<OperateTypeEnum, String> entry : enumMap.entrySet()) {\n System.out.println(entry.getValue() + entry.getKey().getEnumDesc());\n }\n\n// EnumSet<OperateTypeEnum> enumSets = EnumSet.of(OperateTypeEnum.DELETE);\n// EnumSet<OperateTypeEnum> enumSets = EnumSet.allOf(OperateTypeEnum.class);\n// EnumSet<OperateTypeEnum> enumSets = EnumSet.range(OperateTypeEnum.DELETE,OperateTypeEnum.UPDATE);\n EnumSet<OperateTypeEnum> enumSet = EnumSet.noneOf(OperateTypeEnum.class);\n enumSet.add(OperateTypeEnum.DELETE);\n enumSet.add(OperateTypeEnum.UPDATE);\n for (Iterator<OperateTypeEnum> it = enumSet.iterator(); it.hasNext();) {\n System.out.println(it.next().getEnumDesc());\n }\n for (OperateTypeEnum enumTest : enumSet) {\n System.out.println(enumTest.getEnumDesc() + \" ..... \");\n }\n\n EnumSet<OperateTypeEnum> enumSets = EnumSet.copyOf(enumSet);\n }", "public interface ResourceAdapter {\n\n public enum Item {\n INPUT_SAME_AS_OUTPUT_ERROR,\n AUTO_KEY_SELECTION_ERROR,\n LOADING_CERTIFICATE_AND_KEY,\n PARSING_CENTRAL_DIRECTORY,\n GENERATING_MANIFEST,\n GENERATING_SIGNATURE_FILE,\n GENERATING_SIGNATURE_BLOCK,\n COPYING_ZIP_ENTRY\n };\n\n public String getString( Item item, Object... args);\n}", "private Enums(String s, int j)\n\t {\n\t System.out.println(3);\n\t }", "private Enums(int i)\n\t {\n\t System.out.println(2);\n\t }", "public void testValidEnums () {\t\n\t\tString example = \"AM\";\n\t\tRadioBand enumAm = RadioBand.valueForString(example);\n\t\texample = \"FM\";\n\t\tRadioBand enumFm = RadioBand.valueForString(example);\n\t\texample = \"XM\";\n\t\tRadioBand enumXm = RadioBand.valueForString(example);\n\n\t\tassertNotNull(\"AM returned null\", enumAm);\n\t\tassertNotNull(\"FM returned null\", enumFm);\n\t\tassertNotNull(\"XM returned null\", enumXm);\n\t}", "public abstract Enum<?> getType();", "public interface TypeOperationService {\n\n\n}", "abstract public String getType();", "protected abstract String getType();", "public interface Division extends BusinessObject, Serializable {\n\n /**\n * Accessor method for Name.\n * <br>longTextAttribute The name of the division\n *\n * @return java.lang.String attribute of this Division.\n */\n public java.lang.String getName();\n\n /**\n * Mutator method for Name.\n * <br>longTextAttribute The name of the division\n *\n * @param aName set java.lang.String attribute of this Division.\n */\n public void setName(java.lang.String aName);\n\n\n /**\n * The enumeration for Name\n */\n public final static int NAME = 0;\n\n\n\n\n\n}", "public interface METHODS {\n public static int TIME = 0;\n public static int DISTANCE= 1;\n public static int STEPS = 2;\n public static int ACHIEVEMENTS = 3;\n }", "public abstract O value();", "public interface IPopScheduleType {\r\n}", "public interface StatusCapable\n{\n /**\n * Get the status of the object.\n * @return\n * the status of the object\n */\n SummaryStatusEnum getSummaryStatus();\n}", "public interface DefaultStat extends SwitchOptionStatSequence\n{\n}", "public interface Food2 extends Food {\n enum Appetizer implements Food {\n\n }\n}", "public interface Individual {\n\n\t/**\n\t * \n\t * @return this individual's alphabet\n\t */\n\tAlphabet getAlphabet();\n\n\t/**\n\t * \n\t * @return the individual's fitness\n\t */\n\tdouble getFitness();\n}", "interface GAAllele {\r\n interface Type {\r\n int ENUMERATED = 1;\r\n int BOUNDED = 2;\r\n int DISCRETIZED = 3;\r\n }\r\n\r\n interface BoundType {\r\n int NONE = 0;\r\n int INCLUSIVE = 1;\r\n int EXCLUSIVE = 2;\r\n }\r\n}", "public interface EnumsKeyConstants {\n\n /*客户状态*/\n static final String CSTM_STATE = \"CSTM_STATE\";\n\n interface CSTMSTATE {\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*正常*/\n static final String NORMAL = \"01\";\n\n /*停用*/\n static final String BLOCKUP = \"02\";\n\n /*冻结*/\n static final String FROZEN = \"03\";\n }\n\n /*短信类型*/\n static final String SMS_TYPE = \"SMS_TYPE\";\n\n interface SMSTYPE {\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*验证码*/\n static final String VERCODE = \"01\";\n\n /*通知*/\n static final String NOTICE = \"02\";\n\n /*营销*/\n static final String MARKETING = \"03\";\n\n /*未知*/\n static final String UNKNOWN = \"04\";\n }\n\n /*模板类型*/\n static final String SMODEL_TYPE = \"SMODEL_TYPE\";\n\n interface SMODELTYPE {\n /*验证码*/\n static final String VERCODE = \"01\";\n\n /*通知&订单*/\n static final String NOTICE = \"02\";\n }\n\n /*审核状态*/\n static final String AUDIT_STATE = \"AUDIT_STATE\";\n\n interface AUDITSTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*审核中*/\n static final String ING = \"01\";\n\n /*审核通过*/\n static final String ED = \"02\";\n\n /*审核驳回*/\n static final String DF = \"03\";\n\n }\n\n /*运营商类型*/\n static final String OPERATOR_TYPE = \"OPERATOR_TYPE\";\n\n interface OPERATORTYPE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*移动*/\n static final String MOBILE = \"01\";\n\n /*电信*/\n static final String TELECOM = \"02\";\n\n /*联通*/\n static final String UNICOM = \"03\";\n }\n\n /*通道状态*/\n static final String CHANNEL_STATE = \"CHANNEL_STATE\";\n\n interface CHANNELSTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*可用*/\n static final String ENABLE = \"01\";\n\n /*禁用*/\n static final String DISABLE = \"02\";\n }\n\n /*短信发送状态*/\n static final String SMSSEND_STATE = \"SMSSEND_STATE\";\n\n interface SMSSENDSTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*成功*/\n static final String SUCCESS = \"01\";\n\n /*失败*/\n static final String FAILURE = \"02\";\n\n /*未知*/\n static final String UNKNOWN = \"03\";\n\n /*无效*/\n static final String INVALID = \"04\";\n\n /*其他*/\n static final String OTHER = \"05\";\n }\n\n /*短息接收状态*/\n static final String SMSDELIV_STATE = \"SMSDELIV_STATE\";\n\n interface SMSDELIVSTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*收到*/\n static final String DELIV = \"01\";\n\n /*未收到*/\n static final String UNDELIV = \"02\";\n }\n\n /*批次单状态*/\n static final String BATCH_STATE = \"BATCH_STATE\";\n\n interface BATCHSTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*等待发送*/\n static final String WAIT = \"01\";\n\n /*发送中*/\n static final String ING = \"02\";\n\n /*完成*/\n static final String FINISH = \"03\";\n\n /*已撤回*/\n static final String REVOKE = \"04\";\n\n /*已驳回*/\n static final String REJECT = \"05\";\n }\n\n /*适用范围类型*/\n static final String USEAGE_TYPE = \"USEAGE_TYPE\";\n\n interface USEAGETYPE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*通用*/\n static final String PUB = \"01\";\n\n /*个人*/\n static final String PRI = \"02\";\n }\n\n /*是否发送*/\n static final String SMSSEND_CODE = \"SMSSEND_CODE\";\n\n interface SMSSENDCODE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*发送*/\n static final String SEND = \"01\";\n\n /*不发送*/\n static final String DESEND = \"02\";\n }\n\n /*短信数量增减类型*/\n static final String ACCOUNT_TYPE = \"ACCOUNT_TYPE\";\n\n interface ACCNTTYPE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*充值*/\n static final String ADDITION = \"01\";\n\n /*消费*/\n static final String SUBTRACTION = \"02\";\n\n }\n\n /*充值单审核状态*/\n static final String RECHARGE_STATE = \"RECHARGE_STATE\";\n\n interface RECHARGESTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*成功*/\n static final String SUCCESS = \"01\";\n\n /*失败*/\n static final String FAILURE = \"02\";\n\n /*确认中*/\n static final String COMFIRM = \"03\";\n\n /*已取消*/\n static final String CANCEL = \"04\";\n\n }\n\n /*手机号是否在黑名单中*/\n static final String REPLY_BLACK = \"REPLY_BLACK\";\n\n interface REPLYBLACK{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*不在黑名单中*/\n static final String NOTINT = \"01\";\n\n /*在黑名单中*/\n static final String INT = \"02\";\n\n\n }\n /*逻辑删除enable*/\n static final String DELETE_ENABLE = \"DELETE_ENABLE\";\n\n interface DELETEENABLE{\n\n /*已删除*/\n static final Integer DELETE = 0;\n\n /*未删除*/\n static final Integer UNDELE = 1;\n\n\n }\n /*适用范围 模板 通用,个人*/\n static final String SUIT_RANGE = \"SUIT_RANGE\";\n\n interface SUITRANGE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*通用*/\n static final String COMMON = \"01\";\n\n /*个人*/\n static final String PERSONAL = \"02\";\n\n\n }\n\n /*使用場景 01 平台 , 02 接口*/\n static final String USE_TYPE = \"USE_TYPE\";\n\n interface USETYPE{\n\n /*平台*/\n static final String PLTFC = \"01\";\n\n /*接口*/\n static final String INTFC = \"02\";\n }\n\n /* 提醒类型 */\n static final String REMIND_TYPE = \"REMIND_TYPE\";\n\n interface REMINDTYPE{\n /* 未知 */\n static final String UNKNOWN = \"00\";\n /* 短信数量 */\n static final String SMS_NUM = \"01\";\n /* 发送频率*/\n static final String SEND_RATE = \"02\";\n }\n\n /* 阈值类型 */\n static final String THRESHOLD_TYPE = \"THRESHOLD_TYPE\";\n\n interface THRESHOLDTYPE {\n /* 未知 */\n static final String UNKNOWN = \"00\";\n /* 小于 */\n static final String LESS_THAN = \"01\";\n /* 等于*/\n static final String EQUAL = \"02\";\n /* 大于*/\n static final String GREATER_THAN = \"03\";\n }\n\n /* 客户类型 */\n static final String CSTM_TYPE = \"CSTM_TYPE\";\n\n interface CSTMTYPE{\n /* 未知 */\n static final String UNKNOWN = \"00\";\n /* 个人 */\n static final String PERSON = \"01\";\n /* 企业*/\n static final String COMPANY = \"02\";\n }\n\n /* 支付状态 */\n static final String PAY_TYPE = \"PAY_TYPE\";\n\n interface PAYTYPE{\n /* 审核中 */\n static final String UNPAY = \"01\";\n /* 通过 */\n static final String PAY = \"02\";\n /* 驳回 */\n static final String REJECT = \"03\";\n /* 已取消 */\n static final String CANCEL = \"04\";\n }\n\n /* 任务状态 */\n static final String TASK_STATE = \"TASK_STATE\";\n\n interface TASKSTATE{\n /* 待发送 */\n static final String WAIT_SEND = \"01\";\n /* 已发送 */\n static final String SEND = \"02\";\n /* 成功 */\n static final String SUCCESS = \"03\";\n /* 失败 */\n static final String FAIL = \"04\";\n }\n\n /* 收款账户 */\n static final String PAY_ACCOUNT = \"PAY_ACCOUNT\";\n\n interface PAYACCOUNT{\n /* 个人账户 */\n static final String PRIVATE = \"01\";\n /* 对公账户 */\n static final String PUBLIC = \"02\";\n }\n\n}", "public interface EGImmediate extends EGNonRecurring {\r\n}", "public interface GetRenderModelErrorNameFromEnum_callback extends Callback {\r\n\t\tPointer apply(int error);\r\n\t}", "public int getType() { return type; }", "public int getType() { return type; }", "public interface IItemDataEnum extends IStringSerializable{\n\t/**\n\t * This should return the unlocalized name of the sub item/block, without the mod ID or the item ID this is a sub item/block of\n\t * \n\t * @return\n\t */\n\tString getUnlocalizedName();\n\t\n\t/**\n\t * This should return the full unlocalized name for use in texture registry\n\t * \n\t * @return\n\t */\n\tString getTextureName();\n\t\n\t/**\n\t * Returns the meta value of the sub item/block\n\t * \n\t * @return\n\t */\n\tint getMeta();\n}", "public interface RequestType {\n String GET = \"GET\";\n String POST = \"POST\";\n String UPDATE = \"UPDATE\";\n String DELETE = \"DELETE\";\n String DEFAULT = \"DEFAULT\";\n}", "public abstract int getType();", "public abstract int getType();", "public abstract int getType();", "@Override abstract public String type();", "public interface ClientType {\n String RED = \"红方\";\n String BLUE = \"蓝方\";\n String AUDIENCE = \"观战者\";\n}", "public abstract String getType();" ]
[ "0.6423574", "0.6379911", "0.63478005", "0.61830604", "0.61167914", "0.6026974", "0.6003322", "0.600283", "0.59774005", "0.5864978", "0.5778142", "0.5756904", "0.5751093", "0.57035995", "0.56878823", "0.56731844", "0.56545466", "0.56446844", "0.5626586", "0.5611425", "0.5611425", "0.5611425", "0.5599986", "0.559595", "0.5578816", "0.5567644", "0.55606467", "0.5559911", "0.55374014", "0.55182505", "0.5496062", "0.5484043", "0.54825974", "0.5476795", "0.54469705", "0.5445781", "0.5444595", "0.543154", "0.542958", "0.5429046", "0.5428697", "0.541504", "0.541418", "0.5411912", "0.5410999", "0.54019785", "0.5395144", "0.5391703", "0.53906083", "0.5376483", "0.5373745", "0.5372879", "0.5368347", "0.5363239", "0.5356085", "0.5355062", "0.5348058", "0.5347906", "0.53375316", "0.53302336", "0.53302336", "0.53302336", "0.53302336", "0.53302336", "0.53302336", "0.53302336", "0.53302336", "0.5329027", "0.53261316", "0.53251415", "0.53226614", "0.5316656", "0.53150046", "0.53107667", "0.53060937", "0.53026366", "0.5299563", "0.5299204", "0.52949816", "0.5279574", "0.5276945", "0.52743316", "0.5267399", "0.52670103", "0.5265999", "0.52627534", "0.52610886", "0.52555496", "0.52518153", "0.52516484", "0.52492374", "0.5249088", "0.5249088", "0.5248546", "0.52484584", "0.5241541", "0.5241541", "0.5241541", "0.5239664", "0.52354854", "0.52347714" ]
0.0
-1
/ JADX INFO: Can't fix incorrect switch cases order, some code will duplicate / JADX WARNING: Missing exception handler attribute for start block: B:63:0x0116 / Code decompiled incorrectly, please refer to instructions dump.
public void httpUrlFetch(ohos.miscservices.httpaccess.data.RequestData r10, ohos.miscservices.httpaccess.HttpProbe r11) { /* // Method dump skipped, instructions count: 376 */ throw new UnsupportedOperationException("Method not decompiled: ohos.miscservices.httpaccess.HttpFetchImpl.httpUrlFetch(ohos.miscservices.httpaccess.data.RequestData, ohos.miscservices.httpaccess.HttpProbe):void"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo2485a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = r2.f11863a;\n monitor-enter(r0);\n r1 = r2.f11873l;\t Catch:{ all -> 0x002a }\n if (r1 != 0) goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x0007:\n r1 = r2.f11872k;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x000c;\t Catch:{ all -> 0x002a }\n L_0x000b:\n goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x000c:\n r1 = r2.f11875n;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x0015;\n L_0x0010:\n r1 = r2.f11875n;\t Catch:{ RemoteException -> 0x0015 }\n r1.cancel();\t Catch:{ RemoteException -> 0x0015 }\n L_0x0015:\n r1 = r2.f11870i;\t Catch:{ all -> 0x002a }\n m14216b(r1);\t Catch:{ all -> 0x002a }\n r1 = 1;\t Catch:{ all -> 0x002a }\n r2.f11873l = r1;\t Catch:{ all -> 0x002a }\n r1 = com.google.android.gms.common.api.Status.zzfnm;\t Catch:{ all -> 0x002a }\n r1 = r2.mo3568a(r1);\t Catch:{ all -> 0x002a }\n r2.m14217c(r1);\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x0028:\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x002a:\n r1 = move-exception;\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a():void\");\n }", "private void 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 }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(3046);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"R$_Ff!sF,uE4P'wGFDy\");\n String[] stringArray0 = new String[8];\n stringArray0[0] = \"R$_Ff!sF,uE4P'wGFDy\";\n stringArray0[1] = \"s4#6U\";\n stringArray0[2] = \"R$_Ff!sF,uE4P'wGFDy\";\n stringArray0[3] = \")1Dc@`M-,v4\";\n stringArray0[4] = \"R$_Ff!sF,uE4P'wGFDy\";\n stringArray0[5] = \"s4#6U\";\n stringArray0[6] = \"R$_Ff!sF,uE4P'wGFDy\";\n stringArray0[7] = \"s4#6U\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-493), \"R$_Ff!sF,uE4P'wGFDy\", \"2m<}(%PX(!\", \"R$_Ff!sF,uE4P'wGFDy\", stringArray0, false, false);\n Label label0 = new Label();\n Label label1 = label0.successor;\n int[] intArray0 = new int[3];\n label0.status = 1913;\n intArray0[0] = 187;\n intArray0[1] = 2;\n intArray0[2] = 187;\n Label[] labelArray0 = new Label[1];\n methodWriter0.visitLabel(label0);\n labelArray0[0] = null;\n // Undeclared exception!\n try { \n methodWriter0.visitLookupSwitchInsn(label0, intArray0, labelArray0);\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.MethodWriter\", e);\n }\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 }", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(32767);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"tE\";\n stringArray0[1] = \"tE\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 32767, \"&h'pH__a\", \"tE\", \"org.objectweb.asm.jip.Attribute\", stringArray0, false, false);\n MethodWriter methodWriter1 = methodWriter0.next;\n Label label0 = new Label();\n Label[] labelArray0 = new Label[6];\n Label label1 = label0.getFirst();\n label0.info = (Object) label1;\n labelArray0[1] = label0;\n labelArray0[2] = label0;\n labelArray0[3] = label0;\n labelArray0[4] = label0;\n labelArray0[5] = label0;\n // Undeclared exception!\n try { \n methodWriter0.visitTableSwitchInsn((-1060), (-431), label0, labelArray0);\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.MethodWriter\", e);\n }\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(218);\n String[] stringArray0 = new String[0];\n String string0 = \"6U7NPvC\";\n String string1 = \"LineNumberTable\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"6U7NPvC\", \"LineNumberTable\", \".s.IFJDCS\", stringArray0, false, false);\n MethodWriter methodWriter1 = methodWriter0.next;\n Label label0 = new Label();\n Label label1 = label0.getFirst();\n MethodWriter methodWriter2 = classWriter0.lastMethod;\n Label[] labelArray0 = new Label[7];\n labelArray0[0] = label0;\n labelArray0[1] = label0;\n labelArray0[2] = label0;\n labelArray0[3] = label0;\n labelArray0[4] = label1;\n labelArray0[5] = label0;\n Label label2 = new Label();\n labelArray0[6] = label2;\n methodWriter2.visitTableSwitchInsn((-226294317), 186, label1, labelArray0);\n int[] intArray0 = new int[2];\n intArray0[0] = (-226294317);\n intArray0[1] = (-226294317);\n // Undeclared exception!\n try { \n methodWriter2.visitLookupSwitchInsn(label0, intArray0, labelArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 2\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "@Test(timeout = 4000)\n public void test054() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(23);\n classWriter0.toByteArray();\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \".JAR\", \".JAR\", \".JAR\", (String[]) null, false, false);\n Label label0 = new Label();\n Label[] labelArray0 = new Label[5];\n labelArray0[0] = label0;\n Label label1 = label0.next;\n labelArray0[1] = null;\n labelArray0[2] = label0;\n labelArray0[3] = label0;\n labelArray0[4] = label0;\n // Undeclared exception!\n try { \n methodWriter0.visitTableSwitchInsn((-2030), (-3196), label0, labelArray0);\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.MethodWriter\", e);\n }\n }", "protected void do_switch() {\n {\n bind(OPC.CONST_0); iparmNone();\n pre(FLOW_NEXT); do_const(0); post();\n bind(OPC.CONST_1); iparmNone();\n pre(FLOW_NEXT); do_const(1); post();\n bind(OPC.CONST_2); iparmNone();\n pre(FLOW_NEXT); do_const(2); post();\n bind(OPC.CONST_3); iparmNone();\n pre(FLOW_NEXT); do_const(3); post();\n bind(OPC.CONST_4); iparmNone();\n pre(FLOW_NEXT); do_const(4); post();\n bind(OPC.CONST_5); iparmNone();\n pre(FLOW_NEXT); do_const(5); post();\n bind(OPC.CONST_6); iparmNone();\n pre(FLOW_NEXT); do_const(6); post();\n bind(OPC.CONST_7); iparmNone();\n pre(FLOW_NEXT); do_const(7); post();\n bind(OPC.CONST_8); iparmNone();\n pre(FLOW_NEXT); do_const(8); post();\n bind(OPC.CONST_9); iparmNone();\n pre(FLOW_NEXT); do_const(9); post();\n bind(OPC.CONST_10); iparmNone();\n pre(FLOW_NEXT); do_const(10); post();\n bind(OPC.CONST_11); iparmNone();\n pre(FLOW_NEXT); do_const(11); post();\n bind(OPC.CONST_12); iparmNone();\n pre(FLOW_NEXT); do_const(12); post();\n bind(OPC.CONST_13); iparmNone();\n pre(FLOW_NEXT); do_const(13); post();\n bind(OPC.CONST_14); iparmNone();\n pre(FLOW_NEXT); do_const(14); post();\n bind(OPC.CONST_15); iparmNone();\n pre(FLOW_NEXT); do_const(15); post();\n bind(OPC.OBJECT_0); iparmNone();\n pre(FLOW_NEXT); do_object(0); post();\n bind(OPC.OBJECT_1); iparmNone();\n pre(FLOW_NEXT); do_object(1); post();\n bind(OPC.OBJECT_2); iparmNone();\n pre(FLOW_NEXT); do_object(2); post();\n bind(OPC.OBJECT_3); iparmNone();\n pre(FLOW_NEXT); do_object(3); post();\n bind(OPC.OBJECT_4); iparmNone();\n pre(FLOW_NEXT); do_object(4); post();\n bind(OPC.OBJECT_5); iparmNone();\n pre(FLOW_NEXT); do_object(5); post();\n bind(OPC.OBJECT_6); iparmNone();\n pre(FLOW_NEXT); do_object(6); post();\n bind(OPC.OBJECT_7); iparmNone();\n pre(FLOW_NEXT); do_object(7); post();\n bind(OPC.OBJECT_8); iparmNone();\n pre(FLOW_NEXT); do_object(8); post();\n bind(OPC.OBJECT_9); iparmNone();\n pre(FLOW_NEXT); do_object(9); post();\n bind(OPC.OBJECT_10); iparmNone();\n pre(FLOW_NEXT); do_object(10); post();\n bind(OPC.OBJECT_11); iparmNone();\n pre(FLOW_NEXT); do_object(11); post();\n bind(OPC.OBJECT_12); iparmNone();\n pre(FLOW_NEXT); do_object(12); post();\n bind(OPC.OBJECT_13); iparmNone();\n pre(FLOW_NEXT); do_object(13); post();\n bind(OPC.OBJECT_14); iparmNone();\n pre(FLOW_NEXT); do_object(14); post();\n bind(OPC.OBJECT_15); iparmNone();\n pre(FLOW_NEXT); do_object(15); post();\n bind(OPC.LOAD_0); iparmNone();\n pre(FLOW_NEXT); do_load(0); post();\n bind(OPC.LOAD_1); iparmNone();\n pre(FLOW_NEXT); do_load(1); post();\n bind(OPC.LOAD_2); iparmNone();\n pre(FLOW_NEXT); do_load(2); post();\n bind(OPC.LOAD_3); iparmNone();\n pre(FLOW_NEXT); do_load(3); post();\n bind(OPC.LOAD_4); iparmNone();\n pre(FLOW_NEXT); do_load(4); post();\n bind(OPC.LOAD_5); iparmNone();\n pre(FLOW_NEXT); do_load(5); post();\n bind(OPC.LOAD_6); iparmNone();\n pre(FLOW_NEXT); do_load(6); post();\n bind(OPC.LOAD_7); iparmNone();\n pre(FLOW_NEXT); do_load(7); post();\n bind(OPC.LOAD_8); iparmNone();\n pre(FLOW_NEXT); do_load(8); post();\n bind(OPC.LOAD_9); iparmNone();\n pre(FLOW_NEXT); do_load(9); post();\n bind(OPC.LOAD_10); iparmNone();\n pre(FLOW_NEXT); do_load(10); post();\n bind(OPC.LOAD_11); iparmNone();\n pre(FLOW_NEXT); do_load(11); post();\n bind(OPC.LOAD_12); iparmNone();\n pre(FLOW_NEXT); do_load(12); post();\n bind(OPC.LOAD_13); iparmNone();\n pre(FLOW_NEXT); do_load(13); post();\n bind(OPC.LOAD_14); iparmNone();\n pre(FLOW_NEXT); do_load(14); post();\n bind(OPC.LOAD_15); iparmNone();\n pre(FLOW_NEXT); do_load(15); post();\n bind(OPC.STORE_0); iparmNone();\n pre(FLOW_NEXT); do_store(0); post();\n bind(OPC.STORE_1); iparmNone();\n pre(FLOW_NEXT); do_store(1); post();\n bind(OPC.STORE_2); iparmNone();\n pre(FLOW_NEXT); do_store(2); post();\n bind(OPC.STORE_3); iparmNone();\n pre(FLOW_NEXT); do_store(3); post();\n bind(OPC.STORE_4); iparmNone();\n pre(FLOW_NEXT); do_store(4); post();\n bind(OPC.STORE_5); iparmNone();\n pre(FLOW_NEXT); do_store(5); post();\n bind(OPC.STORE_6); iparmNone();\n pre(FLOW_NEXT); do_store(6); post();\n bind(OPC.STORE_7); iparmNone();\n pre(FLOW_NEXT); do_store(7); post();\n bind(OPC.STORE_8); iparmNone();\n pre(FLOW_NEXT); do_store(8); post();\n bind(OPC.STORE_9); iparmNone();\n pre(FLOW_NEXT); do_store(9); post();\n bind(OPC.STORE_10); iparmNone();\n pre(FLOW_NEXT); do_store(10); post();\n bind(OPC.STORE_11); iparmNone();\n pre(FLOW_NEXT); do_store(11); post();\n bind(OPC.STORE_12); iparmNone();\n pre(FLOW_NEXT); do_store(12); post();\n bind(OPC.STORE_13); iparmNone();\n pre(FLOW_NEXT); do_store(13); post();\n bind(OPC.STORE_14); iparmNone();\n pre(FLOW_NEXT); do_store(14); post();\n bind(OPC.STORE_15); iparmNone();\n pre(FLOW_NEXT); do_store(15); post();\n bind(OPC.LOADPARM_0); iparmNone();\n pre(FLOW_NEXT); do_loadparm(0); post();\n bind(OPC.LOADPARM_1); iparmNone();\n pre(FLOW_NEXT); do_loadparm(1); post();\n bind(OPC.LOADPARM_2); iparmNone();\n pre(FLOW_NEXT); do_loadparm(2); post();\n bind(OPC.LOADPARM_3); iparmNone();\n pre(FLOW_NEXT); do_loadparm(3); post();\n bind(OPC.LOADPARM_4); iparmNone();\n pre(FLOW_NEXT); do_loadparm(4); post();\n bind(OPC.LOADPARM_5); iparmNone();\n pre(FLOW_NEXT); do_loadparm(5); post();\n bind(OPC.LOADPARM_6); iparmNone();\n pre(FLOW_NEXT); do_loadparm(6); post();\n bind(OPC.LOADPARM_7); iparmNone();\n pre(FLOW_NEXT); do_loadparm(7); post();\n bind(OPC.WIDE_M1); iparmNone();\n pre(FLOW_CHANGE); do_wide(-1); post();\n bind(OPC.WIDE_0); iparmNone();\n pre(FLOW_CHANGE); do_wide(0); post();\n bind(OPC.WIDE_1); iparmNone();\n pre(FLOW_CHANGE); do_wide(1); post();\n bind(OPC.WIDE_SHORT); iparmNone();\n pre(FLOW_CHANGE); do_wide_short(); post();\n bind(OPC.WIDE_INT); iparmNone();\n pre(FLOW_CHANGE); do_wide_int(); post();\n bind(OPC.ESCAPE); iparmNone();\n pre(FLOW_CHANGE); do_escape(); post();\n bind(OPC.ESCAPE_WIDE_M1); iparmNone();\n pre(FLOW_CHANGE); do_escape_wide(-1); post();\n bind(OPC.ESCAPE_WIDE_0); iparmNone();\n pre(FLOW_CHANGE); do_escape_wide(0); post();\n bind(OPC.ESCAPE_WIDE_1); iparmNone();\n pre(FLOW_CHANGE); do_escape_wide(1); post();\n bind(OPC.ESCAPE_WIDE_SHORT); iparmNone();\n pre(FLOW_CHANGE); do_escape_wide_short(); post();\n bind(OPC.ESCAPE_WIDE_INT); iparmNone();\n pre(FLOW_CHANGE); do_escape_wide_int(); post();\n bind(OPC.CATCH); iparmNone();\n pre(FLOW_NEXT); do_catch(); post();\n bind(OPC.CONST_NULL); iparmNone();\n pre(FLOW_NEXT); do_const_null(); post();\n bind(OPC.CONST_M1); iparmNone();\n pre(FLOW_NEXT); do_const(-1); post();\n bind(OPC.CONST_BYTE); iparmNone();\n pre(FLOW_NEXT); do_const_byte(); post();\n bind(OPC.CONST_SHORT); iparmNone();\n pre(FLOW_NEXT); do_const_short(); post();\n bind(OPC.CONST_CHAR); iparmNone();\n pre(FLOW_NEXT); do_const_char(); post();\n bind(OPC.CONST_INT); iparmNone();\n pre(FLOW_NEXT); do_const_int(); post();\n bind(OPC.CONST_LONG); iparmNone();\n pre(FLOW_NEXT); do_const_long(); post();\n bind(OPC.OBJECT); iparmUByte();\n bind(OPC.OBJECT_WIDE); pre(FLOW_NEXT); do_object(); post();\n bind(OPC.LOAD); iparmUByte();\n bind(OPC.LOAD_WIDE); pre(FLOW_NEXT); do_load(); post(); \n bind(OPC.LOAD_I2); iparmUByte();\n bind(OPC.LOAD_I2_WIDE); pre(FLOW_NEXT); do_load_i2(); post();\n bind(OPC.STORE); iparmUByte();\n bind(OPC.STORE_WIDE); pre(FLOW_NEXT); do_store(); post();\n bind(OPC.STORE_I2); iparmUByte();\n bind(OPC.STORE_I2_WIDE); pre(FLOW_NEXT); do_store_i2(); post();\n bind(OPC.LOADPARM); iparmUByte();\n bind(OPC.LOADPARM_WIDE); pre(FLOW_NEXT); do_loadparm(); post();\n bind(OPC.LOADPARM_I2); iparmUByte();\n bind(OPC.LOADPARM_I2_WIDE); pre(FLOW_NEXT); do_loadparm_i2(); post();\n bind(OPC.STOREPARM); iparmUByte();\n bind(OPC.STOREPARM_WIDE); pre(FLOW_NEXT); do_storeparm(); post();\n bind(OPC.STOREPARM_I2); iparmUByte();\n bind(OPC.STOREPARM_I2_WIDE); pre(FLOW_NEXT); do_storeparm_i2(); post();\n bind(OPC.INC); iparmUByte();\n bind(OPC.INC_WIDE); pre(FLOW_NEXT); do_inc(); post(); \n bind(OPC.DEC); iparmUByte();\n bind(OPC.DEC_WIDE); pre(FLOW_NEXT); do_dec(); post(); \n bind(OPC.INCPARM); iparmUByte();\n bind(OPC.INCPARM_WIDE); pre(FLOW_NEXT); do_incparm(); post();\n bind(OPC.DECPARM); iparmUByte();\n bind(OPC.DECPARM_WIDE); pre(FLOW_NEXT); do_decparm(); post();\n bind(OPC.GOTO); iparmByte();\n bind(OPC.GOTO_WIDE); pre(FLOW_CHANGE); do_goto(); post();\n bind(OPC.IF_EQ_O); iparmByte();\n bind(OPC.IF_EQ_O_WIDE); pre(FLOW_CHANGE); do_if(1, EQ, OOP); post();\n bind(OPC.IF_NE_O); iparmByte();\n bind(OPC.IF_NE_O_WIDE); pre(FLOW_CHANGE); do_if(1, NE, OOP); post();\n bind(OPC.IF_CMPEQ_O); iparmByte();\n bind(OPC.IF_CMPEQ_O_WIDE); pre(FLOW_CHANGE); do_if(2, EQ, OOP); post();\n bind(OPC.IF_CMPNE_O); iparmByte();\n bind(OPC.IF_CMPNE_O_WIDE); pre(FLOW_CHANGE); do_if(2, NE, OOP); post();\n bind(OPC.IF_EQ_I); iparmByte();\n bind(OPC.IF_EQ_I_WIDE); pre(FLOW_CHANGE); do_if(1, EQ, INT); post();\n bind(OPC.IF_NE_I); iparmByte();\n bind(OPC.IF_NE_I_WIDE); pre(FLOW_CHANGE); do_if(1, NE, INT); post();\n bind(OPC.IF_LT_I); iparmByte();\n bind(OPC.IF_LT_I_WIDE); pre(FLOW_CHANGE); do_if(1, LT, INT); post();\n bind(OPC.IF_LE_I); iparmByte();\n bind(OPC.IF_LE_I_WIDE); pre(FLOW_CHANGE); do_if(1, LE, INT); post();\n bind(OPC.IF_GT_I); iparmByte();\n bind(OPC.IF_GT_I_WIDE); pre(FLOW_CHANGE); do_if(1, GT, INT); post();\n bind(OPC.IF_GE_I); iparmByte();\n bind(OPC.IF_GE_I_WIDE); pre(FLOW_CHANGE); do_if(1, GE, INT); post();\n bind(OPC.IF_CMPEQ_I); iparmByte();\n bind(OPC.IF_CMPEQ_I_WIDE); pre(FLOW_CHANGE); do_if(2, EQ, INT); post();\n bind(OPC.IF_CMPNE_I); iparmByte();\n bind(OPC.IF_CMPNE_I_WIDE); pre(FLOW_CHANGE); do_if(2, NE, INT); post();\n bind(OPC.IF_CMPLT_I); iparmByte();\n bind(OPC.IF_CMPLT_I_WIDE); pre(FLOW_CHANGE); do_if(2, LT, INT); post();\n bind(OPC.IF_CMPLE_I); iparmByte();\n bind(OPC.IF_CMPLE_I_WIDE); pre(FLOW_CHANGE); do_if(2, LE, INT); post();\n bind(OPC.IF_CMPGT_I); iparmByte();\n bind(OPC.IF_CMPGT_I_WIDE); pre(FLOW_CHANGE); do_if(2, GT, INT); post();\n bind(OPC.IF_CMPGE_I); iparmByte();\n bind(OPC.IF_CMPGE_I_WIDE); pre(FLOW_CHANGE); do_if(2, GE, INT); post();\n bind(OPC.IF_EQ_L); iparmByte();\n bind(OPC.IF_EQ_L_WIDE); pre(FLOW_CHANGE); do_if(1, EQ, LONG); post();\n bind(OPC.IF_NE_L); iparmByte();\n bind(OPC.IF_NE_L_WIDE); pre(FLOW_CHANGE); do_if(1, NE, LONG); post();\n bind(OPC.IF_LT_L); iparmByte();\n bind(OPC.IF_LT_L_WIDE); pre(FLOW_CHANGE); do_if(1, LT, LONG); post();\n bind(OPC.IF_LE_L); iparmByte();\n bind(OPC.IF_LE_L_WIDE); pre(FLOW_CHANGE); do_if(1, LE, LONG); post();\n bind(OPC.IF_GT_L); iparmByte();\n bind(OPC.IF_GT_L_WIDE); pre(FLOW_CHANGE); do_if(1, GT, LONG); post();\n bind(OPC.IF_GE_L); iparmByte();\n bind(OPC.IF_GE_L_WIDE); pre(FLOW_CHANGE); do_if(1, GE, LONG); post();\n bind(OPC.IF_CMPEQ_L); iparmByte();\n bind(OPC.IF_CMPEQ_L_WIDE); pre(FLOW_CHANGE); do_if(2, EQ, LONG); post();\n bind(OPC.IF_CMPNE_L); iparmByte();\n bind(OPC.IF_CMPNE_L_WIDE); pre(FLOW_CHANGE); do_if(2, NE, LONG); post();\n bind(OPC.IF_CMPLT_L); iparmByte();\n bind(OPC.IF_CMPLT_L_WIDE); pre(FLOW_CHANGE); do_if(2, LT, LONG); post();\n bind(OPC.IF_CMPLE_L); iparmByte();\n bind(OPC.IF_CMPLE_L_WIDE); pre(FLOW_CHANGE); do_if(2, LE, LONG); post();\n bind(OPC.IF_CMPGT_L); iparmByte();\n bind(OPC.IF_CMPGT_L_WIDE); pre(FLOW_CHANGE); do_if(2, GT, LONG); post();\n bind(OPC.IF_CMPGE_L); iparmByte();\n bind(OPC.IF_CMPGE_L_WIDE); pre(FLOW_CHANGE); do_if(2, GE, LONG); post();\n bind(OPC.GETSTATIC_I); iparmUByte();\n bind(OPC.GETSTATIC_I_WIDE); pre(FLOW_CALL); do_getstatic(INT); post();\n bind(OPC.GETSTATIC_O); iparmUByte();\n bind(OPC.GETSTATIC_O_WIDE); pre(FLOW_CALL); do_getstatic(OOP); post();\n bind(OPC.GETSTATIC_L); iparmUByte();\n bind(OPC.GETSTATIC_L_WIDE); pre(FLOW_CALL); do_getstatic(LONG); post();\n bind(OPC.CLASS_GETSTATIC_I); iparmUByte();\n bind(OPC.CLASS_GETSTATIC_I_WIDE); pre(FLOW_CALL); do_class_getstatic(INT); post();\n bind(OPC.CLASS_GETSTATIC_O); iparmUByte();\n bind(OPC.CLASS_GETSTATIC_O_WIDE); pre(FLOW_CALL); do_class_getstatic(OOP); post();\n bind(OPC.CLASS_GETSTATIC_L); iparmUByte();\n bind(OPC.CLASS_GETSTATIC_L_WIDE); pre(FLOW_CALL); do_class_getstatic(LONG); post();\n bind(OPC.PUTSTATIC_I); iparmUByte();\n bind(OPC.PUTSTATIC_I_WIDE); pre(FLOW_CALL); do_putstatic(INT); post();\n bind(OPC.PUTSTATIC_O); iparmUByte();\n bind(OPC.PUTSTATIC_O_WIDE); pre(FLOW_CALL); do_putstatic(OOP); post();\n bind(OPC.PUTSTATIC_L); iparmUByte();\n bind(OPC.PUTSTATIC_L_WIDE); pre(FLOW_CALL); do_putstatic(LONG); post();\n bind(OPC.CLASS_PUTSTATIC_I); iparmUByte();\n bind(OPC.CLASS_PUTSTATIC_I_WIDE); pre(FLOW_CALL); do_class_putstatic(INT); post();\n bind(OPC.CLASS_PUTSTATIC_O); iparmUByte();\n bind(OPC.CLASS_PUTSTATIC_O_WIDE); pre(FLOW_CALL); do_class_putstatic(OOP); post();\n bind(OPC.CLASS_PUTSTATIC_L); iparmUByte();\n bind(OPC.CLASS_PUTSTATIC_L_WIDE); pre(FLOW_CALL); do_class_putstatic(LONG); post();\n bind(OPC.GETFIELD_I); iparmUByte();\n bind(OPC.GETFIELD_I_WIDE); pre(FLOW_CALL); do_getfield(INT); post();\n bind(OPC.GETFIELD_B); iparmUByte();\n bind(OPC.GETFIELD_B_WIDE); pre(FLOW_CALL); do_getfield(BYTE); post();\n bind(OPC.GETFIELD_S); iparmUByte();\n bind(OPC.GETFIELD_S_WIDE); pre(FLOW_CALL); do_getfield(SHORT); post();\n bind(OPC.GETFIELD_C); iparmUByte();\n bind(OPC.GETFIELD_C_WIDE); pre(FLOW_CALL); do_getfield(USHORT); post();\n bind(OPC.GETFIELD_O); iparmUByte();\n bind(OPC.GETFIELD_O_WIDE); pre(FLOW_CALL); do_getfield(OOP); post();\n bind(OPC.GETFIELD_L); iparmUByte();\n bind(OPC.GETFIELD_L_WIDE); pre(FLOW_CALL); do_getfield(LONG); post();\n bind(OPC.GETFIELD0_I); iparmUByte();\n bind(OPC.GETFIELD0_I_WIDE); pre(FLOW_NEXT); do_getfield0(INT); post();\n bind(OPC.GETFIELD0_B); iparmUByte();\n bind(OPC.GETFIELD0_B_WIDE); pre(FLOW_NEXT); do_getfield0(BYTE); post();\n bind(OPC.GETFIELD0_S); iparmUByte();\n bind(OPC.GETFIELD0_S_WIDE); pre(FLOW_NEXT); do_getfield0(SHORT); post();\n bind(OPC.GETFIELD0_C); iparmUByte();\n bind(OPC.GETFIELD0_C_WIDE); pre(FLOW_NEXT); do_getfield0(USHORT); post();\n bind(OPC.GETFIELD0_O); iparmUByte();\n bind(OPC.GETFIELD0_O_WIDE); pre(FLOW_NEXT); do_getfield0(OOP); post();\n bind(OPC.GETFIELD0_L); iparmUByte();\n bind(OPC.GETFIELD0_L_WIDE); pre(FLOW_NEXT); do_getfield0(LONG); post();\n bind(OPC.PUTFIELD_I); iparmUByte();\n bind(OPC.PUTFIELD_I_WIDE); pre(FLOW_CALL); do_putfield(INT); post();\n bind(OPC.PUTFIELD_B); iparmUByte();\n bind(OPC.PUTFIELD_B_WIDE); pre(FLOW_CALL); do_putfield(BYTE); post();\n bind(OPC.PUTFIELD_S); iparmUByte();\n bind(OPC.PUTFIELD_S_WIDE); pre(FLOW_CALL); do_putfield(SHORT); post();\n bind(OPC.PUTFIELD_O); iparmUByte();\n bind(OPC.PUTFIELD_O_WIDE); pre(FLOW_CALL); do_putfield(OOP); post();\n bind(OPC.PUTFIELD_L); iparmUByte();\n bind(OPC.PUTFIELD_L_WIDE); pre(FLOW_CALL); do_putfield(LONG); post();\n bind(OPC.PUTFIELD0_I); iparmUByte();\n bind(OPC.PUTFIELD0_I_WIDE); pre(FLOW_NEXT); do_putfield0(INT); post();\n bind(OPC.PUTFIELD0_B); iparmUByte();\n bind(OPC.PUTFIELD0_B_WIDE); pre(FLOW_NEXT); do_putfield0(BYTE); post();\n bind(OPC.PUTFIELD0_S); iparmUByte();\n bind(OPC.PUTFIELD0_S_WIDE); pre(FLOW_NEXT); do_putfield0(SHORT); post();\n bind(OPC.PUTFIELD0_O); iparmUByte();\n bind(OPC.PUTFIELD0_O_WIDE); pre(FLOW_NEXT); do_putfield0(OOP); post();\n bind(OPC.PUTFIELD0_L); iparmUByte();\n bind(OPC.PUTFIELD0_L_WIDE); pre(FLOW_NEXT); do_putfield0(LONG); post();\n bind(OPC.INVOKEVIRTUAL_I); iparmUByte();\n bind(OPC.INVOKEVIRTUAL_I_WIDE); pre(FLOW_CALL); do_invokevirtual(INT); post();\n bind(OPC.INVOKEVIRTUAL_V); iparmUByte();\n bind(OPC.INVOKEVIRTUAL_V_WIDE); pre(FLOW_CALL); do_invokevirtual(VOID); post();\n bind(OPC.INVOKEVIRTUAL_L); iparmUByte();\n bind(OPC.INVOKEVIRTUAL_L_WIDE); pre(FLOW_CALL); do_invokevirtual(LONG); post();\n bind(OPC.INVOKEVIRTUAL_O); iparmUByte();\n bind(OPC.INVOKEVIRTUAL_O_WIDE); pre(FLOW_CALL); do_invokevirtual(OOP); post();\n bind(OPC.INVOKESTATIC_I); iparmUByte();\n bind(OPC.INVOKESTATIC_I_WIDE); pre(FLOW_CALL); do_invokestatic(INT); post();\n bind(OPC.INVOKESTATIC_V); iparmUByte();\n bind(OPC.INVOKESTATIC_V_WIDE); pre(FLOW_CALL); do_invokestatic(VOID); post();\n bind(OPC.INVOKESTATIC_L); iparmUByte();\n bind(OPC.INVOKESTATIC_L_WIDE); pre(FLOW_CALL); do_invokestatic(LONG); post();\n bind(OPC.INVOKESTATIC_O); iparmUByte();\n bind(OPC.INVOKESTATIC_O_WIDE); pre(FLOW_CALL); do_invokestatic(OOP); post();\n bind(OPC.INVOKESUPER_I); iparmUByte();\n bind(OPC.INVOKESUPER_I_WIDE); pre(FLOW_CALL); do_invokesuper(INT); post();\n bind(OPC.INVOKESUPER_V); iparmUByte();\n bind(OPC.INVOKESUPER_V_WIDE); pre(FLOW_CALL); do_invokesuper(VOID); post();\n bind(OPC.INVOKESUPER_L); iparmUByte();\n bind(OPC.INVOKESUPER_L_WIDE); pre(FLOW_CALL); do_invokesuper(LONG); post();\n bind(OPC.INVOKESUPER_O); iparmUByte();\n bind(OPC.INVOKESUPER_O_WIDE); pre(FLOW_CALL); do_invokesuper(OOP); post();\n bind(OPC.INVOKENATIVE_I); iparmUByte();\n bind(OPC.INVOKENATIVE_I_WIDE); pre(FLOW_CALL); do_invokenative(INT); post();\n bind(OPC.INVOKENATIVE_V); iparmUByte();\n bind(OPC.INVOKENATIVE_V_WIDE); pre(FLOW_CALL); do_invokenative(VOID); post();\n bind(OPC.INVOKENATIVE_L); iparmUByte();\n bind(OPC.INVOKENATIVE_L_WIDE); pre(FLOW_CALL); do_invokenative(LONG); post();\n bind(OPC.INVOKENATIVE_O); iparmUByte();\n bind(OPC.INVOKENATIVE_O_WIDE); pre(FLOW_CALL); do_invokenative(OOP); post();\n bind(OPC.FINDSLOT); iparmUByte();\n bind(OPC.FINDSLOT_WIDE); pre(FLOW_CALL); do_findslot(); post();\n bind(OPC.EXTEND); iparmUByte();\n bind(OPC.EXTEND_WIDE); pre(FLOW_NEXT); do_extend(); post();\n bind(OPC.INVOKESLOT_I); iparmNone();\n pre(FLOW_CALL); do_invokeslot(INT); post();\n bind(OPC.INVOKESLOT_V); iparmNone();\n pre(FLOW_CALL); do_invokeslot(VOID); post();\n bind(OPC.INVOKESLOT_L); iparmNone();\n pre(FLOW_CALL); do_invokeslot(LONG); post();\n bind(OPC.INVOKESLOT_O); iparmNone();\n pre(FLOW_CALL); do_invokeslot(OOP); post();\n bind(OPC.RETURN_V); iparmNone();\n pre(FLOW_CHANGE); do_return(VOID); post();\n bind(OPC.RETURN_I); iparmNone();\n pre(FLOW_CHANGE); do_return(INT); post();\n bind(OPC.RETURN_L); iparmNone();\n pre(FLOW_CHANGE); do_return(LONG); post();\n bind(OPC.RETURN_O); iparmNone();\n pre(FLOW_CHANGE); do_return(OOP); post();\n bind(OPC.TABLESWITCH_I); iparmNone();\n pre(FLOW_CHANGE); do_tableswitch(INT); post();\n bind(OPC.TABLESWITCH_S); iparmNone();\n pre(FLOW_CHANGE); do_tableswitch(SHORT); post();\n bind(OPC.EXTEND0); iparmNone();\n pre(FLOW_NEXT); do_extend0(); post();\n bind(OPC.ADD_I); iparmNone();\n pre(FLOW_NEXT); do_add(INT); post();\n bind(OPC.SUB_I); iparmNone();\n pre(FLOW_NEXT); do_sub(INT); post();\n bind(OPC.AND_I); iparmNone();\n pre(FLOW_NEXT); do_and(INT); post();\n bind(OPC.OR_I); iparmNone();\n pre(FLOW_NEXT); do_or(INT); post();\n bind(OPC.XOR_I); iparmNone();\n pre(FLOW_NEXT); do_xor(INT); post();\n bind(OPC.SHL_I); iparmNone();\n pre(FLOW_NEXT); do_shl(INT); post();\n bind(OPC.SHR_I); iparmNone();\n pre(FLOW_NEXT); do_shr(INT); post();\n bind(OPC.USHR_I); iparmNone();\n pre(FLOW_NEXT); do_ushr(INT); post();\n bind(OPC.MUL_I); iparmNone();\n pre(FLOW_NEXT); do_mul(INT); post();\n bind(OPC.DIV_I); iparmNone();\n pre(FLOW_CALL); do_div(INT); post();\n bind(OPC.REM_I); iparmNone();\n pre(FLOW_CALL); do_rem(INT); post();\n bind(OPC.NEG_I); iparmNone();\n pre(FLOW_NEXT); do_neg(INT); post();\n bind(OPC.I2B); iparmNone();\n pre(FLOW_NEXT); do_i2b(); post(); \n bind(OPC.I2S); iparmNone();\n pre(FLOW_NEXT); do_i2s(); post(); \n bind(OPC.I2C); iparmNone();\n pre(FLOW_NEXT); do_i2c(); post(); \n bind(OPC.ADD_L); iparmNone();\n pre(FLOW_NEXT); do_add(LONG); post();\n bind(OPC.SUB_L); iparmNone();\n pre(FLOW_NEXT); do_sub(LONG); post();\n bind(OPC.MUL_L); iparmNone();\n pre(FLOW_NEXT); do_mul(LONG); post();\n bind(OPC.DIV_L); iparmNone();\n pre(FLOW_CALL); do_div(LONG); post();\n bind(OPC.REM_L); iparmNone();\n pre(FLOW_CALL); do_rem(LONG); post();\n bind(OPC.AND_L); iparmNone();\n pre(FLOW_NEXT); do_and(LONG); post();\n bind(OPC.OR_L); iparmNone();\n pre(FLOW_NEXT); do_or(LONG); post();\n bind(OPC.XOR_L); iparmNone();\n pre(FLOW_NEXT); do_xor(LONG); post();\n bind(OPC.NEG_L); iparmNone();\n pre(FLOW_NEXT); do_neg(LONG); post();\n bind(OPC.SHL_L); iparmNone();\n pre(FLOW_NEXT); do_shl(LONG); post();\n bind(OPC.SHR_L); iparmNone();\n pre(FLOW_NEXT); do_shr(LONG); post();\n bind(OPC.USHR_L); iparmNone();\n pre(FLOW_NEXT); do_ushr(LONG); post();\n bind(OPC.L2I); iparmNone();\n pre(FLOW_NEXT); do_l2i(); post(); \n bind(OPC.I2L); iparmNone();\n pre(FLOW_NEXT); do_i2l(); post(); \n bind(OPC.THROW); iparmNone();\n pre(FLOW_CALL); do_throw(); post();\n bind(OPC.POP_1); iparmNone();\n pre(FLOW_NEXT); do_pop(1); post(); \n bind(OPC.POP_2); iparmNone();\n pre(FLOW_NEXT); do_pop(2); post(); \n bind(OPC.MONITORENTER); iparmNone();\n pre(FLOW_CALL); do_monitorenter(); post();\n bind(OPC.MONITOREXIT); iparmNone();\n pre(FLOW_CALL); do_monitorexit(); post();\n bind(OPC.CLASS_MONITORENTER); iparmNone();\n pre(FLOW_CALL); do_class_monitorenter(); post();\n bind(OPC.CLASS_MONITOREXIT); iparmNone();\n pre(FLOW_CALL); do_class_monitorexit(); post();\n bind(OPC.ARRAYLENGTH); iparmNone();\n pre(FLOW_CALL); do_arraylength(); post();\n bind(OPC.NEW); iparmNone();\n pre(FLOW_CALL); do_new(); post(); \n bind(OPC.NEWARRAY); iparmNone();\n pre(FLOW_CALL); do_newarray(); post();\n bind(OPC.NEWDIMENSION); iparmNone();\n pre(FLOW_CALL); do_newdimension(); post();\n bind(OPC.CLASS_CLINIT); iparmNone();\n pre(FLOW_CALL); do_class_clinit(); post();\n bind(OPC.BBTARGET_SYS); iparmNone();\n pre(FLOW_NEXT); do_bbtarget_sys(); post();\n bind(OPC.BBTARGET_APP); iparmNone();\n pre(FLOW_CALL); do_bbtarget_app(); post();\n bind(OPC.INSTANCEOF); iparmNone();\n pre(FLOW_CALL); do_instanceof(); post();\n bind(OPC.CHECKCAST); iparmNone();\n pre(FLOW_CALL); do_checkcast(); post();\n bind(OPC.ALOAD_I); iparmNone();\n pre(FLOW_CALL); do_aload(INT); post();\n bind(OPC.ALOAD_B); iparmNone();\n pre(FLOW_CALL); do_aload(BYTE); post();\n bind(OPC.ALOAD_S); iparmNone();\n pre(FLOW_CALL); do_aload(SHORT); post();\n bind(OPC.ALOAD_C); iparmNone();\n pre(FLOW_CALL); do_aload(USHORT); post();\n bind(OPC.ALOAD_O); iparmNone();\n pre(FLOW_CALL); do_aload(OOP); post();\n bind(OPC.ALOAD_L); iparmNone();\n pre(FLOW_CALL); do_aload(LONG); post();\n bind(OPC.ASTORE_I); iparmNone();\n pre(FLOW_CALL); do_astore(INT); post();\n bind(OPC.ASTORE_B); iparmNone();\n pre(FLOW_CALL); do_astore(BYTE); post();\n bind(OPC.ASTORE_S); iparmNone();\n pre(FLOW_CALL); do_astore(SHORT); post();\n bind(OPC.ASTORE_O); iparmNone();\n pre(FLOW_CALL); do_astore(OOP); post();\n bind(OPC.ASTORE_L); iparmNone();\n pre(FLOW_CALL); do_astore(LONG); post();\n bind(OPC.LOOKUP_I); iparmNone();\n pre(FLOW_CALL); do_lookup(INT); post();\n bind(OPC.LOOKUP_B); iparmNone();\n pre(FLOW_CALL); do_lookup(BYTE); post();\n bind(OPC.LOOKUP_S); iparmNone();\n pre(FLOW_CALL); do_lookup(SHORT); post();\n bind(OPC.PAUSE); iparmNone();\n pre(FLOW_NEXT); do_pause(); post();\n\n/*if[FLOATS]*/\n bind(OPC.FCMPL); iparmNone();\n pre(FLOW_NEXT); do_fcmpl(); post();\n bind(OPC.FCMPG); iparmNone();\n pre(FLOW_NEXT); do_fcmpg(); post();\n bind(OPC.DCMPL); iparmNone();\n pre(FLOW_NEXT); do_dcmpl(); post();\n bind(OPC.DCMPG); iparmNone();\n pre(FLOW_NEXT); do_dcmpg(); post();\n bind(OPC.GETSTATIC_F); iparmUByte();\n bind(OPC.GETSTATIC_F_WIDE); pre(FLOW_CALL); do_getstatic(FLOAT); post();\n bind(OPC.GETSTATIC_D); iparmUByte();\n bind(OPC.GETSTATIC_D_WIDE); pre(FLOW_CALL); do_getstatic(DOUBLE); post();\n bind(OPC.CLASS_GETSTATIC_F); iparmUByte();\n bind(OPC.CLASS_GETSTATIC_F_WIDE); pre(FLOW_CALL); do_class_getstatic(FLOAT); post();\n bind(OPC.CLASS_GETSTATIC_D); iparmUByte();\n bind(OPC.CLASS_GETSTATIC_D_WIDE); pre(FLOW_CALL); do_class_getstatic(DOUBLE); post();\n bind(OPC.PUTSTATIC_F); iparmUByte();\n bind(OPC.PUTSTATIC_F_WIDE); pre(FLOW_CALL); do_putstatic(FLOAT); post();\n bind(OPC.PUTSTATIC_D); iparmUByte();\n bind(OPC.PUTSTATIC_D_WIDE); pre(FLOW_CALL); do_putstatic(DOUBLE); post();\n bind(OPC.CLASS_PUTSTATIC_F); iparmUByte();\n bind(OPC.CLASS_PUTSTATIC_F_WIDE); pre(FLOW_CALL); do_class_putstatic(FLOAT); post();\n bind(OPC.CLASS_PUTSTATIC_D); iparmUByte();\n bind(OPC.CLASS_PUTSTATIC_D_WIDE); pre(FLOW_CALL); do_class_putstatic(DOUBLE); post();\n bind(OPC.GETFIELD_F); iparmUByte();\n bind(OPC.GETFIELD_F_WIDE); pre(FLOW_CALL); do_getfield(FLOAT); post();\n bind(OPC.GETFIELD_D); iparmUByte();\n bind(OPC.GETFIELD_D_WIDE); pre(FLOW_CALL); do_getfield(DOUBLE); post();\n bind(OPC.GETFIELD0_F); iparmUByte();\n bind(OPC.GETFIELD0_F_WIDE); pre(FLOW_NEXT); do_getfield0(FLOAT); post();\n bind(OPC.GETFIELD0_D); iparmUByte();\n bind(OPC.GETFIELD0_D_WIDE); pre(FLOW_NEXT); do_getfield0(DOUBLE); post();\n bind(OPC.PUTFIELD_F); iparmUByte();\n bind(OPC.PUTFIELD_F_WIDE); pre(FLOW_CALL); do_putfield(FLOAT); post();\n bind(OPC.PUTFIELD_D); iparmUByte();\n bind(OPC.PUTFIELD_D_WIDE); pre(FLOW_CALL); do_putfield(DOUBLE); post();\n bind(OPC.PUTFIELD0_F); iparmUByte();\n bind(OPC.PUTFIELD0_F_WIDE); pre(FLOW_NEXT); do_putfield0(FLOAT); post();\n bind(OPC.PUTFIELD0_D); iparmUByte();\n bind(OPC.PUTFIELD0_D_WIDE); pre(FLOW_NEXT); do_putfield0(DOUBLE); post();\n bind(OPC.INVOKEVIRTUAL_F); iparmUByte();\n bind(OPC.INVOKEVIRTUAL_F_WIDE); pre(FLOW_CALL); do_invokevirtual(FLOAT); post();\n bind(OPC.INVOKEVIRTUAL_D); iparmUByte();\n bind(OPC.INVOKEVIRTUAL_D_WIDE); pre(FLOW_CALL); do_invokevirtual(DOUBLE); post();\n bind(OPC.INVOKESTATIC_F); iparmUByte();\n bind(OPC.INVOKESTATIC_F_WIDE); pre(FLOW_CALL); do_invokestatic(FLOAT); post();\n bind(OPC.INVOKESTATIC_D); iparmUByte();\n bind(OPC.INVOKESTATIC_D_WIDE); pre(FLOW_CALL); do_invokestatic(DOUBLE); post();\n bind(OPC.INVOKESUPER_F); iparmUByte();\n bind(OPC.INVOKESUPER_F_WIDE); pre(FLOW_CALL); do_invokesuper(FLOAT); post();\n bind(OPC.INVOKESUPER_D); iparmUByte();\n bind(OPC.INVOKESUPER_D_WIDE); pre(FLOW_CALL); do_invokesuper(DOUBLE); post();\n bind(OPC.INVOKENATIVE_F); iparmUByte();\n bind(OPC.INVOKENATIVE_F_WIDE); pre(FLOW_CALL); do_invokenative(FLOAT); post();\n bind(OPC.INVOKENATIVE_D); iparmUByte();\n bind(OPC.INVOKENATIVE_D_WIDE); pre(FLOW_CALL); do_invokenative(DOUBLE); post();\n bind(OPC.INVOKESLOT_F); iparmNone();\n pre(FLOW_CALL); do_invokeslot(FLOAT); post();\n bind(OPC.INVOKESLOT_D); iparmNone();\n pre(FLOW_CALL); do_invokeslot(DOUBLE); post();\n bind(OPC.RETURN_F); iparmNone();\n pre(FLOW_CHANGE); do_return(FLOAT); post();\n bind(OPC.RETURN_D); iparmNone();\n pre(FLOW_CHANGE); do_return(DOUBLE); post();\n bind(OPC.CONST_FLOAT); iparmNone();\n pre(FLOW_CHANGE); do_const_float(); post();\n bind(OPC.CONST_DOUBLE); iparmNone();\n pre(FLOW_CHANGE); do_const_double(); post();\n bind(OPC.ADD_F); iparmNone();\n pre(FLOW_NEXT); do_add(FLOAT); post();\n bind(OPC.SUB_F); iparmNone();\n pre(FLOW_NEXT); do_sub(FLOAT); post();\n bind(OPC.MUL_F); iparmNone();\n pre(FLOW_NEXT); do_mul(FLOAT); post();\n bind(OPC.DIV_F); iparmNone();\n pre(FLOW_NEXT); do_div(FLOAT); post();\n bind(OPC.REM_F); iparmNone();\n pre(FLOW_NEXT); do_rem(FLOAT); post();\n bind(OPC.NEG_F); iparmNone();\n pre(FLOW_NEXT); do_neg(FLOAT); post();\n bind(OPC.ADD_D); iparmNone();\n pre(FLOW_NEXT); do_add(DOUBLE); post();\n bind(OPC.SUB_D); iparmNone();\n pre(FLOW_NEXT); do_sub(DOUBLE); post();\n bind(OPC.MUL_D); iparmNone();\n pre(FLOW_NEXT); do_mul(DOUBLE); post();\n bind(OPC.DIV_D); iparmNone();\n pre(FLOW_NEXT); do_div(DOUBLE); post();\n bind(OPC.REM_D); iparmNone();\n pre(FLOW_NEXT); do_rem(DOUBLE); post();\n bind(OPC.NEG_D); iparmNone();\n pre(FLOW_NEXT); do_neg(DOUBLE); post();\n bind(OPC.I2F); iparmNone();\n pre(FLOW_NEXT); do_i2f(); post(); \n bind(OPC.L2F); iparmNone();\n pre(FLOW_NEXT); do_l2f(); post(); \n bind(OPC.F2I); iparmNone();\n pre(FLOW_NEXT); do_f2i(); post(); \n bind(OPC.F2L); iparmNone();\n pre(FLOW_NEXT); do_f2l(); post(); \n bind(OPC.I2D); iparmNone();\n pre(FLOW_NEXT); do_i2d(); post(); \n bind(OPC.L2D); iparmNone();\n pre(FLOW_NEXT); do_l2d(); post(); \n bind(OPC.F2D); iparmNone();\n pre(FLOW_NEXT); do_f2d(); post(); \n bind(OPC.D2I); iparmNone();\n pre(FLOW_NEXT); do_d2i(); post(); \n bind(OPC.D2L); iparmNone();\n pre(FLOW_NEXT); do_d2l(); post(); \n bind(OPC.D2F); iparmNone();\n pre(FLOW_NEXT); do_d2f(); post(); \n bind(OPC.ALOAD_F); iparmNone();\n pre(FLOW_CALL); do_aload(FLOAT); post();\n bind(OPC.ALOAD_D); iparmNone();\n pre(FLOW_CALL); do_aload(DOUBLE); post();\n bind(OPC.ASTORE_F); iparmNone();\n pre(FLOW_CALL); do_astore(FLOAT); post();\n bind(OPC.ASTORE_D); iparmNone();\n pre(FLOW_CALL); do_astore(DOUBLE); post();\n/*end[FLOATS]*/\n }\n }", "@Override // X.AnonymousClass0PN\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void A0D() {\n /*\n r5 = this;\n super.A0D()\n X.08d r0 = r5.A05\n X.0OQ r4 = r0.A04()\n X.0Rk r3 = r4.A00() // Catch:{ all -> 0x003d }\n X.0BK r2 = r4.A04 // Catch:{ all -> 0x0036 }\n java.lang.String r1 = \"DELETE FROM receipt_device\"\n java.lang.String r0 = \"CLEAR_TABLE_RECEIPT_DEVICE\"\n r2.A0C(r1, r0) // Catch:{ all -> 0x0036 }\n X.08m r1 = r5.A03 // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"receipt_device_migration_complete\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_index\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_retry\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n r3.A00() // Catch:{ all -> 0x0036 }\n r3.close()\n r4.close()\n java.lang.String r0 = \"ReceiptDeviceStore/ReceiptDeviceDatabaseMigration/resetMigration/done\"\n com.whatsapp.util.Log.i(r0)\n return\n L_0x0036:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x0038 }\n L_0x0038:\n r0 = move-exception\n r3.close() // Catch:{ all -> 0x003c }\n L_0x003c:\n throw r0\n L_0x003d:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x003f }\n L_0x003f:\n r0 = move-exception\n r4.close() // Catch:{ all -> 0x0043 }\n L_0x0043:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C43661yk.A0D():void\");\n }", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(218);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"Label offset position has not been resolved yet\";\n stringArray0[1] = \"'0\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"'0\", \"Label offset position has not been resolved yet\", \"'0\", stringArray0, false, false);\n Label label0 = new Label();\n Label label1 = label0.successor;\n Label[] labelArray0 = new Label[3];\n labelArray0[0] = null;\n label0.outputStackMax = 218;\n methodWriter0.visitMethodInsn(787, \"Ljava/lang/Synthetic;\", \"Label offset position has not been resolved yet\", \"'0\");\n int[] intArray0 = new int[9];\n intArray0[0] = 218;\n intArray0[1] = 2;\n intArray0[2] = 218;\n intArray0[3] = 787;\n intArray0[4] = 1;\n intArray0[5] = 218;\n intArray0[6] = 2;\n intArray0[7] = 218;\n intArray0[8] = 1;\n MethodWriter.getNewOffset(intArray0, intArray0, label0);\n int[] intArray1 = new int[4];\n intArray1[1] = 218;\n intArray1[2] = 218;\n intArray1[3] = 1;\n // Undeclared exception!\n try { \n methodWriter0.visitLookupSwitchInsn(label0, intArray1, labelArray0);\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.MethodWriter\", e);\n }\n }", "static void method_7086() {\r\n // $FF: Couldn't be decompiled\r\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 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 long mo915b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = -1;\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n if (r2 == 0) goto L_0x000d;\t Catch:{ NumberFormatException -> 0x000e }\n L_0x0006:\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ NumberFormatException -> 0x000e }\n r0 = r2;\n L_0x000d:\n return r0;\n L_0x000e:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.b.b():long\");\n }", "private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }", "private void handleSimSwitched() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.handleSimSwitched():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.handleSimSwitched():void\");\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void m1654a(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/293907205.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r7.m322b();\n r7 = r7.m321a();\n r1 = 0;\n L_0x0009:\n r2 = \"http.request\";\n r8.mo160a(r2, r7);\n r1 = r1 + 1;\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x002f }\n if (r2 != 0) goto L_0x0020;\t Catch:{ IOException -> 0x002f }\n L_0x0018:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x002f }\n r2.mo2023a(r0, r8, r3);\t Catch:{ IOException -> 0x002f }\n goto L_0x002b;\t Catch:{ IOException -> 0x002f }\n L_0x0020:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x002f }\n r3 = p000a.p001a.p002a.p003a.p032l.C0150c.m428a(r3);\t Catch:{ IOException -> 0x002f }\n r2.mo1931b(r3);\t Catch:{ IOException -> 0x002f }\n L_0x002b:\n r6.m1660a(r0, r8);\t Catch:{ IOException -> 0x002f }\n return;\n L_0x002f:\n r2 = move-exception;\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0035 }\n r3.close();\t Catch:{ IOException -> 0x0035 }\n L_0x0035:\n r3 = r6.f1520h;\n r3 = r3.retryRequest(r2, r1, r8);\n if (r3 == 0) goto L_0x00a0;\n L_0x003d:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x0009;\n L_0x0045:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"I/O exception (\";\n r4.append(r5);\n r5 = r2.getClass();\n r5 = r5.getName();\n r4.append(r5);\n r5 = \") caught when connecting to \";\n r4.append(r5);\n r4.append(r0);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x0088;\n L_0x007f:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x0088:\n r2 = r6.f1513a;\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"Retrying connect to \";\n r3.append(r4);\n r3.append(r0);\n r3 = r3.toString();\n r2.m269d(r3);\n goto L_0x0009;\n L_0x00a0:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.a(a.a.a.a.i.b.x, a.a.a.a.n.e):void\");\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void m13383b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x000a }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x000a }\n r2 = 0;\t Catch:{ Exception -> 0x000a }\n r0.delete(r1, r2, r2);\t Catch:{ Exception -> 0x000a }\n L_0x000a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.b():void\");\n }", "public void a() {\n block8 : {\n block9 : {\n var1_1 = this.f();\n var2_2 = false;\n if (var1_1) break block8;\n this.j.c();\n var6_3 = this.k;\n var7_4 = this.b;\n var8_5 = (l)var6_3;\n var9_6 = var8_5.a(var7_4);\n if (var9_6 != null) break block9;\n this.a(false);\n var2_2 = true;\n ** GOTO lbl30\n }\n if (var9_6 != n.b) ** GOTO lbl26\n this.a(this.g);\n var11_7 = this.k;\n var12_8 = this.b;\n var13_9 = (l)var11_7;\n try {\n block10 : {\n var2_2 = var13_9.a(var12_8).d();\n break block10;\nlbl26: // 1 sources:\n var10_10 = var9_6.d();\n var2_2 = false;\n if (!var10_10) {\n this.b();\n }\n }\n this.j.g();\n }\n finally {\n this.j.d();\n }\n }\n if ((var3_12 = this.c) == null) return;\n if (var2_2) {\n var4_13 = var3_12.iterator();\n while (var4_13.hasNext()) {\n ((d)var4_13.next()).a(this.b);\n }\n }\n e.a(this.h, this.j, this.c);\n }\n\n /*\n * Exception decompiling\n */\n public final void a(ListenableWorker.a var1_1) {\n // This method has failed to decompile. When submitting a bug report, please provide this stack trace, and (if you hold appropriate legal rights) the relevant class file.\n // org.benf.cfr.reader.util.ConfusedCFRException: Tried to end blocks [4[TRYBLOCK]], but top level block is 10[WHILELOOP]\n // org.benf.cfr.reader.b.a.a.j.a(Op04StructuredStatement.java:432)\n // org.benf.cfr.reader.b.a.a.j.d(Op04StructuredStatement.java:484)\n // org.benf.cfr.reader.b.a.a.i.a(Op03SimpleStatement.java:607)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:692)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:182)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:127)\n // org.benf.cfr.reader.entities.attributes.f.c(AttributeCode.java:96)\n // org.benf.cfr.reader.entities.g.p(Method.java:396)\n // org.benf.cfr.reader.entities.d.e(ClassFile.java:890)\n // org.benf.cfr.reader.entities.d.b(ClassFile.java:792)\n // org.benf.cfr.reader.b.a(Driver.java:128)\n // org.benf.cfr.reader.a.a(CfrDriverImpl.java:63)\n // com.njlabs.showjava.decompilers.JavaExtractionWorker.decompileWithCFR(JavaExtractionWorker.kt:61)\n // com.njlabs.showjava.decompilers.JavaExtractionWorker.doWork(JavaExtractionWorker.kt:130)\n // com.njlabs.showjava.decompilers.BaseDecompiler.withAttempt(BaseDecompiler.kt:108)\n // com.njlabs.showjava.workers.DecompilerWorker$b.run(DecompilerWorker.kt:118)\n // java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)\n // java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)\n // java.lang.Thread.run(Thread.java:919)\n throw new IllegalStateException(\"Decompilation failed\");\n }\n\n public final void a(String string) {\n LinkedList linkedList = new LinkedList();\n linkedList.add((Object)string);\n while (!linkedList.isEmpty()) {\n String string2 = (String)linkedList.remove();\n if (((l)this.k).a(string2) != n.f) {\n k k2 = this.k;\n n n2 = n.d;\n String[] arrstring = new String[]{string2};\n ((l)k2).a(n2, arrstring);\n }\n linkedList.addAll((Collection)((a.i.r.p.c)this.l).a(string2));\n }\n }\n\n /*\n * Enabled aggressive block sorting\n * Enabled unnecessary exception pruning\n * Enabled aggressive exception aggregation\n */\n public final void a(boolean bl) {\n this.j.c();\n k k2 = this.j.k();\n l l2 = (l)k2;\n List list = l2.a();\n ArrayList arrayList = (ArrayList)list;\n boolean bl2 = arrayList.isEmpty();\n if (bl2) {\n f.a(this.a, RescheduleReceiver.class, false);\n }\n this.j.g();\n this.p.c((Object)bl);\n return;\n finally {\n this.j.d();\n }\n }\n\n public final void b() {\n this.j.c();\n k k2 = this.k;\n n n2 = n.a;\n String[] arrstring = new String[]{this.b};\n l l2 = (l)k2;\n l2.a(n2, arrstring);\n k k3 = this.k;\n String string = this.b;\n long l3 = System.currentTimeMillis();\n l l4 = (l)k3;\n l4.b(string, l3);\n k k4 = this.k;\n String string2 = this.b;\n l l5 = (l)k4;\n try {\n l5.a(string2, -1L);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(true);\n }\n }\n\n public final void c() {\n this.j.c();\n k k2 = this.k;\n String string = this.b;\n long l2 = System.currentTimeMillis();\n l l3 = (l)k2;\n l3.b(string, l2);\n k k3 = this.k;\n n n2 = n.a;\n String[] arrstring = new String[]{this.b};\n l l4 = (l)k3;\n l4.a(n2, arrstring);\n k k4 = this.k;\n String string2 = this.b;\n l l5 = (l)k4;\n l5.f(string2);\n k k5 = this.k;\n String string3 = this.b;\n l l6 = (l)k5;\n try {\n l6.a(string3, -1L);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(false);\n }\n }\n\n public final void d() {\n k k2 = this.k;\n String string = this.b;\n n n2 = ((l)k2).a(string);\n if (n2 == n.b) {\n h h2 = h.a();\n String string2 = s;\n Object[] arrobject = new Object[]{this.b};\n h2.a(string2, String.format((String)\"Status for %s is RUNNING;not doing any work and rescheduling for later execution\", (Object[])arrobject), new Throwable[0]);\n this.a(true);\n return;\n }\n h h4 = h.a();\n String string3 = s;\n Object[] arrobject = new Object[]{this.b, n2};\n h4.a(string3, String.format((String)\"Status for %s is %s; not doing any work\", (Object[])arrobject), new Throwable[0]);\n this.a(false);\n }\n\n public void e() {\n this.j.c();\n this.a(this.b);\n a.i.e e2 = ((ListenableWorker.a.a)this.g).a;\n k k2 = this.k;\n String string = this.b;\n l l2 = (l)k2;\n try {\n l2.a(string, e2);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(false);\n }\n }\n\n public final boolean f() {\n if (this.r) {\n h h2 = h.a();\n String string = s;\n Object[] arrobject = new Object[]{this.o};\n h2.a(string, String.format((String)\"Work interrupted for %s\", (Object[])arrobject), new Throwable[0]);\n k k2 = this.k;\n String string2 = this.b;\n n n2 = ((l)k2).a(string2);\n if (n2 == null) {\n this.a(false);\n return true;\n }\n this.a(true ^ n2.d());\n return true;\n }\n return false;\n }\n\n /*\n * Loose catch block\n * Enabled aggressive block sorting\n * Enabled unnecessary exception pruning\n * Enabled aggressive exception aggregation\n * Lifted jumps to return sites\n */\n public void run() {\n int n2;\n block42 : {\n block41 : {\n i i2;\n Cursor cursor;\n block48 : {\n block46 : {\n ListenableWorker listenableWorker;\n block47 : {\n a.i.e e2;\n block44 : {\n g g2;\n block45 : {\n block40 : {\n boolean bl;\n Iterator iterator;\n j j2;\n StringBuilder stringBuilder;\n block43 : {\n a.i.r.p.n n3 = this.m;\n String string = this.b;\n o o2 = (o)n3;\n if (o2 == null) throw null;\n n2 = 1;\n i i3 = i.a((String)\"SELECT DISTINCT tag FROM worktag WHERE work_spec_id=?\", (int)n2);\n if (string == null) {\n i3.bindNull(n2);\n } else {\n i3.bindString(n2, string);\n }\n o2.a.b();\n Cursor cursor2 = a.f.l.a.a(o2.a, (a.g.a.e)i3, false);\n ArrayList arrayList = new ArrayList(cursor2.getCount());\n while (cursor2.moveToNext()) {\n arrayList.add((Object)cursor2.getString(0));\n }\n this.n = arrayList;\n stringBuilder = new StringBuilder(\"Work [ id=\");\n stringBuilder.append(this.b);\n stringBuilder.append(\", tags={ \");\n iterator = arrayList.iterator();\n bl = true;\n break block43;\n finally {\n cursor2.close();\n i3.b();\n }\n }\n while (iterator.hasNext()) {\n String string = (String)iterator.next();\n if (bl) {\n bl = false;\n } else {\n stringBuilder.append(\", \");\n }\n stringBuilder.append(string);\n }\n stringBuilder.append(\" } ]\");\n this.o = stringBuilder.toString();\n if (this.f()) {\n return;\n }\n this.j.c();\n k k2 = this.k;\n String string = this.b;\n l l2 = (l)k2;\n this.e = j2 = l2.d(string);\n if (j2 == null) {\n h h2 = h.a();\n String string2 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.b;\n h2.b(string2, String.format((String)\"Didn't find WorkSpec for id %s\", (Object[])arrobject), new Throwable[0]);\n this.a(false);\n return;\n }\n if (j2.b != n.a) {\n this.d();\n this.j.g();\n h h4 = h.a();\n String string3 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h4.a(string3, String.format((String)\"%s is not in ENQUEUED state. Nothing more to do.\", (Object[])arrobject), new Throwable[0]);\n return;\n }\n if (j2.d() || this.e.c()) {\n long l3 = System.currentTimeMillis();\n boolean bl2 = this.e.n == 0L;\n if (!bl2 && l3 < this.e.a()) {\n h h5 = h.a();\n String string4 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h5.a(string4, String.format((String)\"Delaying execution for %s because it is being executed before schedule.\", (Object[])arrobject), new Throwable[0]);\n this.a((boolean)n2);\n return;\n }\n }\n this.j.g();\n if (!this.e.d()) break block40;\n e2 = this.e.e;\n break block44;\n }\n g2 = g.a(this.e.d);\n if (g2 != null) break block45;\n h h6 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.d;\n h6.b(string, String.format((String)\"Could not create Input Merger %s\", (Object[])arrobject), new Throwable[0]);\n break block46;\n }\n ArrayList arrayList = new ArrayList();\n arrayList.add((Object)this.e.e);\n k k3 = this.k;\n String string = this.b;\n l l4 = (l)k3;\n if (l4 == null) throw null;\n i2 = i.a((String)\"SELECT output FROM workspec WHERE id IN (SELECT prerequisite_id FROM dependency WHERE work_spec_id=?)\", (int)n2);\n if (string == null) {\n i2.bindNull(n2);\n } else {\n i2.bindString(n2, string);\n }\n l4.a.b();\n cursor = a.f.l.a.a(l4.a, (a.g.a.e)i2, false);\n ArrayList arrayList2 = new ArrayList(cursor.getCount());\n while (cursor.moveToNext()) {\n arrayList2.add((Object)a.i.e.b(cursor.getBlob(0)));\n }\n arrayList.addAll((Collection)arrayList2);\n e2 = g2.a((List<a.i.e>)arrayList);\n }\n a.i.e e3 = e2;\n UUID uUID = UUID.fromString((String)this.b);\n List<String> list = this.n;\n WorkerParameters.a a2 = this.d;\n int n5 = this.e.k;\n a.i.b b2 = this.h;\n WorkerParameters workerParameters = new WorkerParameters(uUID, e3, list, a2, n5, b2.a, this.i, b2.c);\n if (this.f == null) {\n this.f = this.h.c.a(this.a, this.e.c, workerParameters);\n }\n if ((listenableWorker = this.f) != null) break block47;\n h h7 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h7.b(string, String.format((String)\"Could not create Worker %s\", (Object[])arrobject), new Throwable[0]);\n break block46;\n }\n if (!listenableWorker.isUsed()) break block48;\n h h8 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h8.b(string, String.format((String)\"Received an already-used Worker %s; WorkerFactory should return new instances\", (Object[])arrobject), new Throwable[0]);\n }\n this.e();\n return;\n }\n this.f.setUsed();\n this.j.c();\n k k4 = this.k;\n String string = this.b;\n l l5 = (l)k4;\n if (l5.a(string) != n.a) break block41;\n k k5 = this.k;\n n n7 = n.b;\n String[] arrstring = new String[n2];\n arrstring[0] = this.b;\n l l6 = (l)k5;\n l6.a(n7, arrstring);\n k k6 = this.k;\n String string5 = this.b;\n l l7 = (l)k6;\n try {\n l7.e(string5);\n break block42;\n }\n finally {\n cursor.close();\n i2.b();\n }\n catch (Throwable throwable) {\n throw throwable;\n }\n finally {\n this.j.d();\n }\n }\n n2 = 0;\n }\n this.j.g();\n if (n2 != 0) {\n if (this.f()) {\n return;\n }\n c c2 = new c();\n ((a.i.r.q.m.b)this.i).c.execute((Runnable)new a.i.r.k(this, c2));\n c2.a((Runnable)new a.i.r.l(this, c2, this.o), ((a.i.r.q.m.b)this.i).a);\n return;\n }\n this.d();\n return;\n finally {\n this.j.d();\n }\n }\n\n public static class a {\n public Context a;\n public ListenableWorker b;\n public a.i.r.q.m.a c;\n public a.i.b d;\n public WorkDatabase e;\n public String f;\n public List<d> g;\n public WorkerParameters.a h = new WorkerParameters.a();\n\n public a(Context context, a.i.b b2, a.i.r.q.m.a a2, WorkDatabase workDatabase, String string) {\n this.a = context.getApplicationContext();\n this.c = a2;\n this.d = b2;\n this.e = workDatabase;\n this.f = string;\n }\n }\n\n}", "protected void method_2247() {\r\n // $FF: Couldn't be decompiled\r\n }", "void m5768b() throws C0841b;", "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 }", "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\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 final com.google.wireless.android.finsky.dfe.p505c.p506a.ec m35437b(com.google.protobuf.nano.C7213a r8) {\n /*\n r7 = this;\n r1 = 0;\n L_0x0001:\n r0 = r8.m33550a();\n switch(r0) {\n case 0: goto L_0x000e;\n case 8: goto L_0x000f;\n case 16: goto L_0x004c;\n case 26: goto L_0x006f;\n case 34: goto L_0x007c;\n default: goto L_0x0008;\n };\n L_0x0008:\n r0 = super.a(r8, r0);\n if (r0 != 0) goto L_0x0001;\n L_0x000e:\n return r7;\n L_0x000f:\n r2 = r7.f37533a;\n r2 = r2 | 1;\n r7.f37533a = r2;\n r2 = r8.m33573o();\n r3 = r8.m33567i();\t Catch:{ IllegalArgumentException -> 0x003b }\n switch(r3) {\n case 0: goto L_0x0043;\n case 1: goto L_0x0043;\n default: goto L_0x0020;\n };\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x0020:\n r4 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x003b }\n r5 = 42;\n r6 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x003b }\n r6.<init>(r5);\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r6.append(r3);\t Catch:{ IllegalArgumentException -> 0x003b }\n r5 = \" is not a valid enum ResultCode\";\n r3 = r3.append(r5);\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r3.toString();\t Catch:{ IllegalArgumentException -> 0x003b }\n r4.<init>(r3);\t Catch:{ IllegalArgumentException -> 0x003b }\n throw r4;\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x003b:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x0043:\n r7.f37534b = r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r7.f37533a;\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r3 | 1;\n r7.f37533a = r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n goto L_0x0001;\n L_0x004c:\n r2 = r7.f37533a;\n r2 = r2 | 2;\n r7.f37533a = r2;\n r2 = r8.m33573o();\n r3 = r8.m33560d();\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = com.google.wireless.android.finsky.dfe.p505c.p506a.dp.m35391a(r3);\t Catch:{ IllegalArgumentException -> 0x0067 }\n r7.f37535c = r3;\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = r7.f37533a;\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = r3 | 2;\n r7.f37533a = r3;\t Catch:{ IllegalArgumentException -> 0x0067 }\n goto L_0x0001;\n L_0x0067:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x006f:\n r0 = r8.m33565g();\n r7.f37536d = r0;\n r0 = r7.f37533a;\n r0 = r0 | 4;\n r7.f37533a = r0;\n goto L_0x0001;\n L_0x007c:\n r0 = 34;\n r2 = com.google.protobuf.nano.C7222l.m33624a(r8, r0);\n r0 = r7.f37537e;\n if (r0 != 0) goto L_0x00a8;\n L_0x0086:\n r0 = r1;\n L_0x0087:\n r2 = r2 + r0;\n r2 = new com.google.wireless.android.finsky.dfe.p505c.p506a.ed[r2];\n if (r0 == 0) goto L_0x0091;\n L_0x008c:\n r3 = r7.f37537e;\n java.lang.System.arraycopy(r3, r1, r2, r1, r0);\n L_0x0091:\n r3 = r2.length;\n r3 = r3 + -1;\n if (r0 >= r3) goto L_0x00ac;\n L_0x0096:\n r3 = new com.google.wireless.android.finsky.dfe.c.a.ed;\n r3.<init>();\n r2[r0] = r3;\n r3 = r2[r0];\n r8.m33552a(r3);\n r8.m33550a();\n r0 = r0 + 1;\n goto L_0x0091;\n L_0x00a8:\n r0 = r7.f37537e;\n r0 = r0.length;\n goto L_0x0087;\n L_0x00ac:\n r3 = new com.google.wireless.android.finsky.dfe.c.a.ed;\n r3.<init>();\n r2[r0] = r3;\n r0 = r2[r0];\n r8.m33552a(r0);\n r7.f37537e = r2;\n goto L_0x0001;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.c.a.ec.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.c.a.ec\");\n }", "void a(bu var1_1, f var2_2, Map var3_3, double var4_4, double var6_5) {\n block6 : {\n var14_6 = fj.z;\n var8_7 = M.b();\n var9_8 = var2_2.a();\n while (var9_8.f()) {\n var10_9 = var9_8.a();\n if (var14_6) break block6;\n if (!var10_9.e() || var1_1.i((y.c.d)var10_9).bendCount() > 1) ** GOTO lbl-1000\n var11_10 = var1_1.i((y.c.d)var10_9);\n var12_11 = var11_10.getSourceRealizer();\n if (var1_1.i((y.c.d)var10_9).bendCount() == 0) {\n var11_10.appendBend(var11_10.getSourcePort().a(var12_11), var11_10.getSourcePort().b(var12_11) - 20.0 - var12_11.getHeight());\n }\n this.a(var1_1, var4_4, var6_5, (y.c.d)var10_9, true, false, false, var10_9.c());\n if (var14_6) lbl-1000: // 2 sources:\n {\n var8_7.a(var10_9, true);\n var8_7.a((Object)var3_3.get(var10_9), true);\n }\n var9_8.g();\n if (!var14_6) continue;\n }\n var1_1.a(as.a, var8_7);\n }\n var9_8 = new as();\n var9_8.a(5.0);\n var9_8.b(false);\n var9_8.a(true);\n try {\n var10_9 = new bI(1);\n var10_9.a(false);\n var10_9.b(true);\n var10_9.d().a(true);\n var10_9.a(var1_1, (ah)var9_8);\n return;\n }\n finally {\n var1_1.d_(as.a);\n }\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 }", "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 }", "void m5770d() throws C0841b;", "public static boolean a(android.content.Context r4, byte[] r5) {\n /*\n r1 = d;\n r0 = 0;\n L_0x0003:\n r2 = c();\t Catch:{ Exception -> 0x003a }\n if (r2 != 0) goto L_0x0010;\n L_0x0009:\n r2 = e;\t Catch:{ Exception -> 0x003a }\n r2.block();\t Catch:{ Exception -> 0x003a }\n if (r1 == 0) goto L_0x0003;\n L_0x0010:\n r1 = z;\t Catch:{ Exception -> 0x003a }\n r2 = 22;\n r1 = r1[r2];\t Catch:{ Exception -> 0x003a }\n com.whatsapp.util.Log.i(r1);\t Catch:{ Exception -> 0x003a }\n r1 = com.whatsapp.contact.o.NOTIFICATION_DELTA;\t Catch:{ Exception -> 0x003a }\n r0 = a(r4, r1, r5);\t Catch:{ Exception -> 0x003a }\n r1 = b();\t Catch:{ Exception -> 0x0038 }\n if (r1 != 0) goto L_0x002e;\n L_0x0025:\n r1 = z;\t Catch:{ Exception -> 0x0038 }\n r2 = 16;\n r1 = r1[r2];\t Catch:{ Exception -> 0x0038 }\n com.whatsapp.util.Log.e(r1);\t Catch:{ Exception -> 0x0038 }\n L_0x002e:\n r1 = z;\n r2 = 18;\n r1 = r1[r2];\n com.whatsapp.util.Log.i(r1);\n L_0x0037:\n return r0;\n L_0x0038:\n r0 = move-exception;\n throw r0;\n L_0x003a:\n r1 = move-exception;\n r2 = z;\t Catch:{ all -> 0x005d }\n r3 = 20;\n r2 = r2[r3];\t Catch:{ all -> 0x005d }\n com.whatsapp.util.Log.b(r2, r1);\t Catch:{ all -> 0x005d }\n r1 = b();\n if (r1 != 0) goto L_0x0053;\n L_0x004a:\n r1 = z;\n r2 = 19;\n r1 = r1[r2];\n com.whatsapp.util.Log.e(r1);\n L_0x0053:\n r1 = z;\n r2 = 23;\n r1 = r1[r2];\n com.whatsapp.util.Log.i(r1);\n goto L_0x0037;\n L_0x005d:\n r0 = move-exception;\n r1 = b();\t Catch:{ Exception -> 0x0077 }\n if (r1 != 0) goto L_0x006d;\n L_0x0064:\n r1 = z;\t Catch:{ Exception -> 0x0077 }\n r2 = 21;\n r1 = r1[r2];\t Catch:{ Exception -> 0x0077 }\n com.whatsapp.util.Log.e(r1);\t Catch:{ Exception -> 0x0077 }\n L_0x006d:\n r1 = z;\n r2 = 17;\n r1 = r1[r2];\n com.whatsapp.util.Log.i(r1);\n throw r0;\n L_0x0077:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.contact.i.a(android.content.Context, byte[]):boolean\");\n }", "@Test(timeout = 4000)\n public void test044() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(4096);\n ClassWriter classWriter1 = new ClassWriter((-2894));\n String[] stringArray0 = new String[7];\n stringArray0[0] = \"ConstantValue\";\n stringArray0[1] = \"LocalVariableTable\";\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n stringArray0[2] = \"ConstantValue\";\n stringArray0[3] = \"ConstantValue\";\n stringArray0[4] = \"0T1MW_`O#}<L\";\n stringArray0[5] = \"h#w=z5(0SfaM)DKLY\";\n stringArray0[6] = \"Synthetic\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 1, \"ConstantValue\", \"h#w=z5(0SfaM)DKLY\", \"Synthetic\", stringArray0, true, false);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"LocalVariableTable\");\n Label label0 = new Label();\n Edge edge0 = label0.successors;\n // Undeclared exception!\n try { \n methodWriter0.visitMethodInsn((-2894), \"/#p[v!vM>^U#((tz?0\", \"0T1MW_`O#}<L\", \"Code\");\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "void m5771e() throws C0841b;", "private final void asx() {\n /*\n r12 = this;\n r0 = r12.cFE;\n if (r0 == 0) goto L_0x0073;\n L_0x0004:\n r1 = r12.cxs;\n if (r1 == 0) goto L_0x0073;\n L_0x0008:\n r1 = r12.ayL;\n if (r1 != 0) goto L_0x000d;\n L_0x000c:\n goto L_0x0073;\n L_0x000d:\n r2 = 0;\n if (r1 == 0) goto L_0x0027;\n L_0x0010:\n r1 = r1.Km();\n if (r1 == 0) goto L_0x0027;\n L_0x0016:\n r1 = r1.aar();\n if (r1 == 0) goto L_0x0027;\n L_0x001c:\n r3 = r0.getName();\n r1 = r1.get(r3);\n r1 = (java.util.ArrayList) r1;\n goto L_0x0028;\n L_0x0027:\n r1 = r2;\n L_0x0028:\n if (r1 == 0) goto L_0x0051;\n L_0x002a:\n r1 = (java.lang.Iterable) r1;\n r1 = kotlin.collections.u.Z(r1);\n if (r1 == 0) goto L_0x0051;\n L_0x0032:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$1;\n r3.<init>(r12);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.b(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x003f:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$2;\n r3.<init>(r0);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.f(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x004c:\n r1 = kotlin.sequences.n.f(r1);\n goto L_0x0052;\n L_0x0051:\n r1 = r2;\n L_0x0052:\n r3 = r12.asr();\n if (r1 == 0) goto L_0x0059;\n L_0x0058:\n goto L_0x005d;\n L_0x0059:\n r1 = kotlin.collections.m.emptyList();\n L_0x005d:\n r4 = r12.bub;\n if (r4 == 0) goto L_0x006d;\n L_0x0061:\n r5 = 0;\n r6 = 0;\n r7 = 1;\n r8 = 0;\n r9 = 0;\n r10 = 19;\n r11 = 0;\n r2 = com.iqoption.core.util.e.a(r4, r5, r6, r7, r8, r9, r10, r11);\n L_0x006d:\n r3.c(r1, r2);\n r12.d(r0);\n L_0x0073:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.asx():void\");\n }", "public void method_7081() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void handleSwitchModem(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.handleSwitchModem(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.handleSwitchModem(int):void\");\n }", "@Test(timeout = 4000)\n public void test071() throws Throwable {\n Label label0 = new Label();\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"oc[MfnZM[~MHOK iO\");\n ClassWriter classWriter0 = new ClassWriter((-2450));\n classWriter0.newInteger((-2450));\n classWriter0.thisName = \"p@7pE4I\";\n String[] stringArray0 = new String[0];\n classWriter0.visitInnerClass((String) null, \"p@7pE4I\", (String) null, 2257);\n ByteVector byteVector0 = new ByteVector(1);\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-2217), \"p@7pE4I\", \"TET-!0-b\", (String) null, stringArray0, false, false);\n Label[] labelArray0 = new Label[4];\n labelArray0[0] = label0;\n label0.status = (-1274);\n labelArray0[1] = label0;\n labelArray0[2] = label0;\n labelArray0[3] = label0;\n methodWriter0.visitTableSwitchInsn(1, (-2450), label0, labelArray0);\n methodWriter0.put(byteVector0);\n methodWriter0.visitJumpInsn(183, label0);\n methodWriter0.visitFieldInsn(959, \"TET-!0-b\", \"),-a}=[<X(poa~{!\", \"TET-!0-b\");\n methodWriter0.visitTryCatchBlock(label0, label0, label0, \"p@7pE4I\");\n int[] intArray0 = new int[6];\n intArray0[0] = (-2450);\n intArray0[1] = 959;\n intArray0[2] = (-484);\n intArray0[3] = (-1274);\n intArray0[4] = 183;\n intArray0[5] = (-1274);\n MethodWriter.getNewOffset(intArray0, intArray0, label0);\n assertArrayEquals(new int[] {(-2450), 959, (-484), (-1274), 183, (-1274)}, intArray0);\n }", "void m5769c() throws C0841b;", "public boolean mo9310a(java.lang.Exception r4) {\n /*\n r3 = this;\n java.lang.Object r0 = r3.f8650a\n monitor-enter(r0)\n boolean r1 = r3.f8651b // Catch:{ all -> 0x002c }\n r2 = 0\n if (r1 == 0) goto L_0x000a\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n return r2\n L_0x000a:\n r1 = 1\n r3.f8651b = r1 // Catch:{ all -> 0x002c }\n r3.f8654e = r4 // Catch:{ all -> 0x002c }\n r3.f8655f = r2 // Catch:{ all -> 0x002c }\n java.lang.Object r4 = r3.f8650a // Catch:{ all -> 0x002c }\n r4.notifyAll() // Catch:{ all -> 0x002c }\n r3.m11250m() // Catch:{ all -> 0x002c }\n boolean r4 = r3.f8655f // Catch:{ all -> 0x002c }\n if (r4 != 0) goto L_0x002a\n bolts.n$q r4 = m11249l() // Catch:{ all -> 0x002c }\n if (r4 == 0) goto L_0x002a\n bolts.p r4 = new bolts.p // Catch:{ all -> 0x002c }\n r4.<init>(r3) // Catch:{ all -> 0x002c }\n r3.f8656g = r4 // Catch:{ all -> 0x002c }\n L_0x002a:\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n return r1\n L_0x002c:\n r4 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: bolts.C2177n.mo9310a(java.lang.Exception):boolean\");\n }", "public void m9741j() throws cf {\r\n }", "private static synchronized void e(android.content.Context r11) {\n /*\n java.lang.Class<com.tencent.wxop.stat.g> r0 = com.tencent.wxop.stat.g.class\n monitor-enter(r0)\n if (r11 != 0) goto L_0x0007\n monitor-exit(r0)\n return\n L_0x0007:\n com.tencent.wxop.stat.a.f r1 = g // Catch:{ all -> 0x0099 }\n if (r1 != 0) goto L_0x0097\n java.lang.String r1 = com.tencent.wxop.stat.d.h // Catch:{ all -> 0x0099 }\n r2 = 0\n long r4 = com.tencent.wxop.stat.a.r.a((android.content.Context) r11, (java.lang.String) r1, (long) r2) // Catch:{ all -> 0x0099 }\n java.lang.String r1 = \"2.0.4\"\n long r6 = com.tencent.wxop.stat.a.n.b((java.lang.String) r1) // Catch:{ all -> 0x0099 }\n r1 = 1\n r8 = 0\n int r9 = (r6 > r4 ? 1 : (r6 == r4 ? 0 : -1))\n if (r9 > 0) goto L_0x003b\n com.tencent.wxop.stat.a.b r1 = r // Catch:{ all -> 0x0099 }\n java.lang.StringBuilder r9 = new java.lang.StringBuilder // Catch:{ all -> 0x0099 }\n java.lang.String r10 = \"MTA is disable for current version:\"\n r9.<init>(r10) // Catch:{ all -> 0x0099 }\n r9.append(r6) // Catch:{ all -> 0x0099 }\n java.lang.String r6 = \",wakeup version:\"\n r9.append(r6) // Catch:{ all -> 0x0099 }\n r9.append(r4) // Catch:{ all -> 0x0099 }\n java.lang.String r4 = r9.toString() // Catch:{ all -> 0x0099 }\n r1.d(r4) // Catch:{ all -> 0x0099 }\n r1 = 0\n L_0x003b:\n java.lang.String r4 = com.tencent.wxop.stat.d.i // Catch:{ all -> 0x0099 }\n long r2 = com.tencent.wxop.stat.a.r.a((android.content.Context) r11, (java.lang.String) r4, (long) r2) // Catch:{ all -> 0x0099 }\n long r4 = java.lang.System.currentTimeMillis() // Catch:{ all -> 0x0099 }\n int r6 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r6 <= 0) goto L_0x0069\n com.tencent.wxop.stat.a.b r1 = r // Catch:{ all -> 0x0099 }\n java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch:{ all -> 0x0099 }\n java.lang.String r5 = \"MTA is disable for current time:\"\n r4.<init>(r5) // Catch:{ all -> 0x0099 }\n long r5 = java.lang.System.currentTimeMillis() // Catch:{ all -> 0x0099 }\n r4.append(r5) // Catch:{ all -> 0x0099 }\n java.lang.String r5 = \",wakeup time:\"\n r4.append(r5) // Catch:{ all -> 0x0099 }\n r4.append(r2) // Catch:{ all -> 0x0099 }\n java.lang.String r2 = r4.toString() // Catch:{ all -> 0x0099 }\n r1.d(r2) // Catch:{ all -> 0x0099 }\n r1 = 0\n L_0x0069:\n com.tencent.wxop.stat.d.a((boolean) r1) // Catch:{ all -> 0x0099 }\n if (r1 != 0) goto L_0x0070\n monitor-exit(r0)\n return\n L_0x0070:\n android.content.Context r11 = r11.getApplicationContext() // Catch:{ all -> 0x0099 }\n t = r11 // Catch:{ all -> 0x0099 }\n com.tencent.wxop.stat.a.f r1 = new com.tencent.wxop.stat.a.f // Catch:{ all -> 0x0099 }\n r1.<init>() // Catch:{ all -> 0x0099 }\n g = r1 // Catch:{ all -> 0x0099 }\n java.lang.String r1 = com.tencent.wxop.stat.a.n.a((int) r8) // Catch:{ all -> 0x0099 }\n l = r1 // Catch:{ all -> 0x0099 }\n long r1 = java.lang.System.currentTimeMillis() // Catch:{ all -> 0x0099 }\n long r3 = com.tencent.wxop.stat.d.p // Catch:{ all -> 0x0099 }\n r5 = 0\n long r1 = r1 + r3\n f79893b = r1 // Catch:{ all -> 0x0099 }\n com.tencent.wxop.stat.a.f r1 = g // Catch:{ all -> 0x0099 }\n com.tencent.wxop.stat.am r2 = new com.tencent.wxop.stat.am // Catch:{ all -> 0x0099 }\n r2.<init>(r11) // Catch:{ all -> 0x0099 }\n r1.a(r2) // Catch:{ all -> 0x0099 }\n L_0x0097:\n monitor-exit(r0)\n return\n L_0x0099:\n r11 = move-exception\n monitor-exit(r0)\n throw r11\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.wxop.stat.g.e(android.content.Context):void\");\n }", "protected void method_2141() {\r\n // $FF: Couldn't be decompiled\r\n }", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(3046);\n String[] stringArray0 = new String[8];\n stringArray0[0] = \"R$_Ff!sF,uE4P'wGFDy\";\n stringArray0[1] = \"s4#6U\";\n stringArray0[2] = \"81<U@W{b30+,bjYk\";\n stringArray0[3] = \")1Dc@`M-,v4\";\n stringArray0[4] = \"R$_Ff!sF,uE4P'wGFDy\";\n stringArray0[5] = \"s4#6U\";\n stringArray0[6] = \"R$_Ff!sF,uE4P'wGFDy\";\n stringArray0[7] = \"s4#6U\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-493), \"R$_Ff!sF,uE4P'wGFDy\", \"2m<}(%PX(!\", \"R$_Ff!sF,uE4P'wGFDy\", stringArray0, false, false);\n Label label0 = new Label();\n Label label1 = new Label();\n int[] intArray0 = new int[3];\n intArray0[0] = 187;\n intArray0[2] = 187;\n Label[] labelArray0 = new Label[1];\n labelArray0[0] = label1;\n methodWriter0.visitLookupSwitchInsn(label0, intArray0, labelArray0);\n assertEquals(1, labelArray0.length);\n }", "static void method_28() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_1148() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }", "public 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 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 }", "static void method_2226() {\r\n // $FF: Couldn't be decompiled\r\n }", "private synchronized void a(com.whatsapp.util.x r11, boolean r12) {\n /*\n r10 = this;\n r0 = 0;\n monitor-enter(r10);\n r2 = com.whatsapp.util.Log.h;\t Catch:{ all -> 0x0016 }\n r3 = com.whatsapp.util.x.a(r11);\t Catch:{ all -> 0x0016 }\n r1 = com.whatsapp.util.bl.b(r3);\t Catch:{ IllegalArgumentException -> 0x0014 }\n if (r1 == r11) goto L_0x0019;\n L_0x000e:\n r0 = new java.lang.IllegalStateException;\t Catch:{ IllegalArgumentException -> 0x0014 }\n r0.<init>();\t Catch:{ IllegalArgumentException -> 0x0014 }\n throw r0;\t Catch:{ IllegalArgumentException -> 0x0014 }\n L_0x0014:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0016:\n r0 = move-exception;\n monitor-exit(r10);\n throw r0;\n L_0x0019:\n if (r12 == 0) goto L_0x0058;\n L_0x001b:\n r1 = com.whatsapp.util.bl.d(r3);\t Catch:{ IllegalArgumentException -> 0x0052 }\n if (r1 != 0) goto L_0x0058;\n L_0x0021:\n r1 = r0;\n L_0x0022:\n r4 = r10.b;\t Catch:{ all -> 0x0016 }\n if (r1 >= r4) goto L_0x0058;\n L_0x0026:\n r4 = r3.b(r1);\t Catch:{ IllegalArgumentException -> 0x0050 }\n r4 = r4.exists();\t Catch:{ IllegalArgumentException -> 0x0050 }\n if (r4 != 0) goto L_0x0054;\n L_0x0030:\n r11.b();\t Catch:{ IllegalArgumentException -> 0x0050 }\n r0 = new java.lang.IllegalStateException;\t Catch:{ IllegalArgumentException -> 0x0050 }\n r2 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0050 }\n r2.<init>();\t Catch:{ IllegalArgumentException -> 0x0050 }\n r3 = z;\t Catch:{ IllegalArgumentException -> 0x0050 }\n r4 = 24;\n r3 = r3[r4];\t Catch:{ IllegalArgumentException -> 0x0050 }\n r2 = r2.append(r3);\t Catch:{ IllegalArgumentException -> 0x0050 }\n r1 = r2.append(r1);\t Catch:{ IllegalArgumentException -> 0x0050 }\n r1 = r1.toString();\t Catch:{ IllegalArgumentException -> 0x0050 }\n r0.<init>(r1);\t Catch:{ IllegalArgumentException -> 0x0050 }\n throw r0;\t Catch:{ IllegalArgumentException -> 0x0050 }\n L_0x0050:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0052:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0054:\n r1 = r1 + 1;\n if (r2 == 0) goto L_0x0022;\n L_0x0058:\n r1 = r10.b;\t Catch:{ all -> 0x0016 }\n if (r0 >= r1) goto L_0x008f;\n L_0x005c:\n r1 = r3.b(r0);\t Catch:{ all -> 0x0016 }\n if (r12 == 0) goto L_0x0088;\n L_0x0062:\n r4 = r1.exists();\t Catch:{ IllegalArgumentException -> 0x0126 }\n if (r4 == 0) goto L_0x008b;\n L_0x0068:\n r4 = r3.a(r0);\t Catch:{ all -> 0x0016 }\n r1.renameTo(r4);\t Catch:{ all -> 0x0016 }\n r5 = com.whatsapp.util.bl.e(r3);\t Catch:{ all -> 0x0016 }\n r6 = r5[r0];\t Catch:{ all -> 0x0016 }\n r4 = r4.length();\t Catch:{ all -> 0x0016 }\n r8 = com.whatsapp.util.bl.e(r3);\t Catch:{ IllegalArgumentException -> 0x0128 }\n r8[r0] = r4;\t Catch:{ IllegalArgumentException -> 0x0128 }\n r8 = r10.i;\t Catch:{ IllegalArgumentException -> 0x0128 }\n r6 = r8 - r6;\n r4 = r4 + r6;\n r10.i = r4;\t Catch:{ IllegalArgumentException -> 0x0128 }\n if (r2 == 0) goto L_0x008b;\n L_0x0088:\n a(r1);\t Catch:{ IllegalArgumentException -> 0x0128 }\n L_0x008b:\n r0 = r0 + 1;\n if (r2 == 0) goto L_0x0058;\n L_0x008f:\n r0 = r10.e;\t Catch:{ IllegalArgumentException -> 0x012a }\n r0 = r0 + 1;\n r10.e = r0;\t Catch:{ IllegalArgumentException -> 0x012a }\n r0 = 0;\n com.whatsapp.util.bl.a(r3, r0);\t Catch:{ IllegalArgumentException -> 0x012a }\n r0 = com.whatsapp.util.bl.d(r3);\t Catch:{ IllegalArgumentException -> 0x012a }\n r0 = r0 | r12;\n if (r0 == 0) goto L_0x00e0;\n L_0x00a0:\n r0 = 1;\n com.whatsapp.util.bl.a(r3, r0);\t Catch:{ IllegalArgumentException -> 0x012c }\n r0 = r10.m;\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x012c }\n r1.<init>();\t Catch:{ IllegalArgumentException -> 0x012c }\n r4 = z;\t Catch:{ IllegalArgumentException -> 0x012c }\n r5 = 26;\n r4 = r4[r5];\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = r1.append(r4);\t Catch:{ IllegalArgumentException -> 0x012c }\n r4 = com.whatsapp.util.bl.a(r3);\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = r1.append(r4);\t Catch:{ IllegalArgumentException -> 0x012c }\n r4 = r3.a();\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = r1.append(r4);\t Catch:{ IllegalArgumentException -> 0x012c }\n r4 = 10;\n r1 = r1.append(r4);\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = r1.toString();\t Catch:{ IllegalArgumentException -> 0x012c }\n r0.write(r1);\t Catch:{ IllegalArgumentException -> 0x012c }\n if (r12 == 0) goto L_0x010f;\n L_0x00d4:\n r0 = r10.n;\t Catch:{ IllegalArgumentException -> 0x012e }\n r4 = 1;\n r4 = r4 + r0;\n r10.n = r4;\t Catch:{ IllegalArgumentException -> 0x012e }\n com.whatsapp.util.bl.a(r3, r0);\t Catch:{ IllegalArgumentException -> 0x012e }\n if (r2 == 0) goto L_0x010f;\n L_0x00e0:\n r0 = r10.k;\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = com.whatsapp.util.bl.a(r3);\t Catch:{ IllegalArgumentException -> 0x012e }\n r0.remove(r1);\t Catch:{ IllegalArgumentException -> 0x012e }\n r0 = r10.m;\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x012e }\n r1.<init>();\t Catch:{ IllegalArgumentException -> 0x012e }\n r2 = z;\t Catch:{ IllegalArgumentException -> 0x012e }\n r4 = 25;\n r2 = r2[r4];\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = r1.append(r2);\t Catch:{ IllegalArgumentException -> 0x012e }\n r2 = com.whatsapp.util.bl.a(r3);\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = r1.append(r2);\t Catch:{ IllegalArgumentException -> 0x012e }\n r2 = 10;\n r1 = r1.append(r2);\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = r1.toString();\t Catch:{ IllegalArgumentException -> 0x012e }\n r0.write(r1);\t Catch:{ IllegalArgumentException -> 0x012e }\n L_0x010f:\n r0 = r10.i;\t Catch:{ IllegalArgumentException -> 0x0130 }\n r2 = r10.c;\t Catch:{ IllegalArgumentException -> 0x0130 }\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 > 0) goto L_0x011d;\n L_0x0117:\n r0 = r10.f();\t Catch:{ IllegalArgumentException -> 0x0132 }\n if (r0 == 0) goto L_0x0124;\n L_0x011d:\n r0 = r10.d;\t Catch:{ IllegalArgumentException -> 0x0132 }\n r1 = r10.j;\t Catch:{ IllegalArgumentException -> 0x0132 }\n r0.submit(r1);\t Catch:{ IllegalArgumentException -> 0x0132 }\n L_0x0124:\n monitor-exit(r10);\n return;\n L_0x0126:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0128:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x012a:\n r0 = move-exception;\n throw r0;\t Catch:{ IllegalArgumentException -> 0x012c }\n L_0x012c:\n r0 = move-exception;\n throw r0;\t Catch:{ IllegalArgumentException -> 0x012e }\n L_0x012e:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0130:\n r0 = move-exception;\n throw r0;\t Catch:{ IllegalArgumentException -> 0x0132 }\n L_0x0132:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.util.b6.a(com.whatsapp.util.x, boolean):void\");\n }", "public void m7211c() {\n /*\n r34 = this;\n r16 = 0;\n r15 = 0;\n r5 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case -1172269795: goto L_0x002e;\n case 2157948: goto L_0x0038;\n case 2571565: goto L_0x0024;\n default: goto L_0x0018;\n };\n L_0x0018:\n r2 = r3;\n L_0x0019:\n switch(r2) {\n case 0: goto L_0x0042;\n case 1: goto L_0x0162;\n case 2: goto L_0x01a9;\n default: goto L_0x001c;\n };\n L_0x001c:\n r2 = \"Undefined type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n L_0x0023:\n return;\n L_0x0024:\n r4 = \"TEXT\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x002c:\n r2 = 0;\n goto L_0x0019;\n L_0x002e:\n r4 = \"STICKER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0036:\n r2 = 1;\n goto L_0x0019;\n L_0x0038:\n r4 = \"FILE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0040:\n r2 = 2;\n goto L_0x0019;\n L_0x0042:\n r4 = mobi.mmdt.ott.provider.p169c.C1594n.TEXT;\n r33 = r5;\n L_0x0046:\n r8 = mobi.mmdt.componentsutils.p079a.p084e.C1113a.m6421a();\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.IN;\n r0 = r34;\n r2 = r0.f4758b;\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.p109d.p111b.C1309a.m6934a(r3);\n r3 = r3.m6942b();\n r2 = r2.equals(r3);\n if (r2 == 0) goto L_0x0064;\n L_0x0062:\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.OUT;\n L_0x0064:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m7972a(r2, r3, r10);\n if (r2 != 0) goto L_0x0023;\n L_0x0072:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n if (r2 == 0) goto L_0x008a;\n L_0x007a:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n r0 = r34;\n r3 = r0.f4759c;\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x024e;\n L_0x008a:\n r17 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x00b8;\n L_0x0098:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x00b8;\n L_0x00aa:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r17 = r2;\n L_0x00b8:\n r2 = new mobi.mmdt.ott.d.a.b;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.NOT_READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n r2.<init>(r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16, r17);\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.logic.p157e.C1509a.m7621a(r3);\n r0 = r34;\n r4 = r0.f4762f;\n r0 = r33;\n r3.m7626a(r2, r0, r4);\n L_0x00f2:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x013c;\n L_0x00fe:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x013c;\n L_0x0110:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n mobi.mmdt.ott.provider.p169c.C1583c.m7976b(r3, r4, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m8003n(r3, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n r5 = mobi.mmdt.ott.provider.p169c.C1595o.SINGLE;\n mobi.mmdt.ott.logic.p112a.p120c.p121a.p123b.C1387u.m7218a(r3, r4, r2, r5);\n L_0x013c:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = \"TEXT\";\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x0023;\n L_0x0150:\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.b;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4762f;\n r2.<init>(r3, r15, r4);\n mobi.mmdt.ott.logic.C1494c.m7541c(r2);\n goto L_0x0023;\n L_0x0162:\n r6 = mobi.mmdt.ott.provider.p169c.C1594n.STICKER;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"STICKER_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4762f;\n r4 = \"STICKER_PACKAGE_ID\";\n r3 = r3.get(r4);\n r3 = (java.lang.String) r3;\n r0 = r34;\n r4 = r0.f4762f;\n r7 = \"STICKER_VERSION\";\n r4 = r4.get(r7);\n r4 = (java.lang.String) r4;\n if (r4 == 0) goto L_0x02c9;\n L_0x018a:\n if (r2 == 0) goto L_0x02c9;\n L_0x018c:\n if (r3 == 0) goto L_0x02c9;\n L_0x018e:\n r7 = r4.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x0194:\n r7 = r2.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x019a:\n r7 = r3.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x01a0:\n r16 = mobi.mmdt.ott.provider.p174h.C1629b.m8295a(r4, r3, r2);\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n L_0x01a9:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"FILE_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case 327328941: goto L_0x01de;\n case 796404377: goto L_0x01ca;\n case 802160718: goto L_0x01e8;\n case 808293817: goto L_0x01d4;\n default: goto L_0x01bd;\n };\n L_0x01bd:\n r2 = r3;\n L_0x01be:\n switch(r2) {\n case 0: goto L_0x01f2;\n case 1: goto L_0x020c;\n case 2: goto L_0x0222;\n case 3: goto L_0x0238;\n default: goto L_0x01c1;\n };\n L_0x01c1:\n r2 = \"Undefined file type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n goto L_0x0023;\n L_0x01ca:\n r4 = \"FILE_TYPE_IMAGE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01d2:\n r2 = 0;\n goto L_0x01be;\n L_0x01d4:\n r4 = \"FILE_TYPE_VIDEO\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01dc:\n r2 = 1;\n goto L_0x01be;\n L_0x01de:\n r4 = \"FILE_TYPE_PUSH_TO_TALK\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01e6:\n r2 = 2;\n goto L_0x01be;\n L_0x01e8:\n r4 = \"FILE_TYPE_OTHER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01f0:\n r2 = 3;\n goto L_0x01be;\n L_0x01f2:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.IMAGE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.IMAGE;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n L_0x0207:\n r33 = r2;\n r4 = r3;\n goto L_0x0046;\n L_0x020c:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.VIDEO;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.VIDEO;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0222:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.PUSH_TO_TALK;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.PUSH_TO_TALK;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0238:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.FILE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.OTHER;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x024e:\n if (r33 == 0) goto L_0x029c;\n L_0x0250:\n r0 = r34;\n r0 = r0.f4757a;\n r18 = r0;\n r19 = r33.m8082n();\n r20 = r33.m8069a();\n r21 = r33.m8079k();\n r22 = r33.m8073e();\n r23 = r33.m8078j();\n r24 = r33.m8077i();\n r26 = 0;\n r27 = r33.m8081m();\n r28 = r33.m8080l();\n r29 = r33.m8075g();\n r30 = r33.m8071c();\n r31 = r33.m8072d();\n r32 = r33.m8070b();\n r33 = r33.m8074f();\n r2 = mobi.mmdt.ott.provider.p170d.C1598c.m8100a(r18, r19, r20, r21, r22, r23, r24, r26, r27, r28, r29, r30, r31, r32, r33);\n r2 = r2.getLastPathSegment();\n r2 = java.lang.Long.parseLong(r2);\n r15 = java.lang.Long.valueOf(r2);\n L_0x029c:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n mobi.mmdt.ott.provider.p169c.C1583c.m7966a(r2, r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16);\n goto L_0x00f2;\n L_0x02c9:\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: mobi.mmdt.ott.logic.a.c.a.b.s.c():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 }", "private static boolean m20205b(java.lang.Throwable r3) {\n /*\n r0 = r3\n L_0x0001:\n if (r0 == 0) goto L_0x0015\n boolean r1 = r0 instanceof com.google.android.exoplayer2.upstream.DataSourceException\n if (r1 == 0) goto L_0x0010\n r1 = r0\n com.google.android.exoplayer2.upstream.DataSourceException r1 = (com.google.android.exoplayer2.upstream.DataSourceException) r1\n int r1 = r1.f18593a\n if (r1 != 0) goto L_0x0010\n r2 = 1\n return r2\n L_0x0010:\n java.lang.Throwable r0 = r0.getCause()\n goto L_0x0001\n L_0x0015:\n r1 = 0\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.upstream.cache.C8465b.m20205b(java.io.IOException):boolean\");\n }", "private void a(com.bytedance.crash.nativecrash.c r6, java.lang.String r7, boolean r8) {\n /*\n r5 = this;\n r0 = 0\n boolean r1 = r6.c() // Catch:{ Throwable -> 0x009a }\n if (r1 != 0) goto L_0x0008\n return\n L_0x0008:\n com.bytedance.crash.e.d r8 = a((com.bytedance.crash.nativecrash.c) r6, (boolean) r8) // Catch:{ Throwable -> 0x009a }\n if (r8 == 0) goto L_0x0099\n org.json.JSONObject r1 = r8.f19424b // Catch:{ Throwable -> 0x009a }\n if (r1 == 0) goto L_0x0099\n java.io.File r1 = r6.f19496a // Catch:{ Throwable -> 0x009a }\n java.lang.String r2 = \".npth\"\n java.io.File r1 = com.bytedance.crash.i.h.a(r1, r2) // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.db.a r2 = com.bytedance.crash.db.a.a() // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = r1.getAbsolutePath() // Catch:{ Throwable -> 0x009a }\n boolean r2 = r2.a((java.lang.String) r3) // Catch:{ Throwable -> 0x009a }\n if (r2 != 0) goto L_0x0096\n org.json.JSONObject r2 = r8.f19424b // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = \"upload_scene\"\n java.lang.String r4 = \"launch_scan\"\n r2.put(r3, r4) // Catch:{ Throwable -> 0x009a }\n if (r7 == 0) goto L_0x0038\n java.lang.String r3 = \"crash_uuid\"\n r2.put(r3, r7) // Catch:{ Throwable -> 0x009a }\n L_0x0038:\n com.bytedance.crash.d r7 = com.bytedance.crash.d.NATIVE // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = com.bytedance.crash.c.a.f19382f // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.a r7 = com.bytedance.crash.event.b.a((com.bytedance.crash.d) r7, (java.lang.String) r3, (org.json.JSONObject) r2) // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r7) // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.a r7 = r7.clone() // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = com.bytedance.crash.c.a.g // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.a r7 = r7.eventType(r3) // Catch:{ Throwable -> 0x009a }\n java.lang.String r0 = r8.f19423a // Catch:{ Throwable -> 0x0093 }\n java.lang.String r2 = r2.toString() // Catch:{ Throwable -> 0x0093 }\n java.lang.String r8 = r8.f19425c // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.upload.h r8 = com.bytedance.crash.upload.b.a((java.lang.String) r0, (java.lang.String) r2, (java.lang.String) r8) // Catch:{ Throwable -> 0x0093 }\n boolean r0 = r8.a() // Catch:{ Throwable -> 0x0093 }\n if (r0 == 0) goto L_0x0083\n boolean r6 = r6.e() // Catch:{ Throwable -> 0x0093 }\n if (r6 != 0) goto L_0x0074\n com.bytedance.crash.db.a r6 = com.bytedance.crash.db.a.a() // Catch:{ Throwable -> 0x0093 }\n java.lang.String r0 = r1.getAbsolutePath() // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.db.a.a r0 = com.bytedance.crash.db.a.a.a(r0) // Catch:{ Throwable -> 0x0093 }\n r6.a((com.bytedance.crash.db.a.a) r0) // Catch:{ Throwable -> 0x0093 }\n L_0x0074:\n r6 = 0\n com.bytedance.crash.event.a r6 = r7.state(r6) // Catch:{ Throwable -> 0x0093 }\n org.json.JSONObject r8 = r8.f19589c // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.a r6 = r6.errorInfo((org.json.JSONObject) r8) // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r6) // Catch:{ Throwable -> 0x0093 }\n goto L_0x0099\n L_0x0083:\n int r6 = r8.f19587a // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.a r6 = r7.state(r6) // Catch:{ Throwable -> 0x0093 }\n java.lang.String r8 = r8.f19588b // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.a r6 = r6.errorInfo((java.lang.String) r8) // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r6) // Catch:{ Throwable -> 0x0093 }\n goto L_0x00aa\n L_0x0093:\n r6 = move-exception\n r0 = r7\n goto L_0x009b\n L_0x0096:\n r6.e() // Catch:{ Throwable -> 0x009a }\n L_0x0099:\n return\n L_0x009a:\n r6 = move-exception\n L_0x009b:\n if (r0 == 0) goto L_0x00aa\n r7 = 211(0xd3, float:2.96E-43)\n com.bytedance.crash.event.a r7 = r0.state(r7)\n com.bytedance.crash.event.a r6 = r7.errorInfo((java.lang.Throwable) r6)\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r6)\n L_0x00aa:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.crash.runtime.d.a(com.bytedance.crash.nativecrash.c, java.lang.String, boolean):void\");\n }", "private final com.google.android.finsky.verifier.p259a.p260a.C4709m m21920b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 16: goto L_0x0015;\n case 26: goto L_0x0046;\n case 34: goto L_0x0053;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r7.f();\n r6.f24221c = r0;\n goto L_0x0000;\n L_0x0015:\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x003b }\n switch(r2) {\n case 0: goto L_0x0043;\n case 1: goto L_0x0020;\n case 2: goto L_0x0043;\n default: goto L_0x0020;\n };\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x0020:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x003b }\n r4 = 44;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x003b }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x003b }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x003b }\n r4 = \" is not a valid enum ResourceType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x003b }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x003b }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x003b }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x003b:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x0043:\n r6.f24222d = r2;\t Catch:{ IllegalArgumentException -> 0x003b }\n goto L_0x0000;\n L_0x0046:\n r0 = r7.g();\n r6.f24223e = r0;\n r0 = r6.f24220b;\n r0 = r0 | 1;\n r6.f24220b = r0;\n goto L_0x0000;\n L_0x0053:\n r0 = r7.f();\n r6.f24224f = r0;\n r0 = r6.f24220b;\n r0 = r0 | 2;\n r6.f24220b = r0;\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.finsky.verifier.a.a.m.b(com.google.protobuf.nano.a):com.google.android.finsky.verifier.a.a.m\");\n }", "private synchronized void m29549c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x0050 }\n if (r0 == 0) goto L_0x004b;\t Catch:{ all -> 0x0050 }\n L_0x0005:\n r0 = com.google.android.m4b.maps.cg.bx.m23056a();\t Catch:{ all -> 0x0050 }\n r1 = 0;\n r2 = r6.f24854d;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r3 = r6.f24853c;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r2 = r2.openFileInput(r3);\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n if (r2 == 0) goto L_0x0027;\n L_0x0014:\n r3 = new com.google.android.m4b.maps.ar.a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.de.af.f19891a;\t Catch:{ IOException -> 0x0036 }\n r3.<init>(r4);\t Catch:{ IOException -> 0x0036 }\n r6.f24851a = r3;\t Catch:{ IOException -> 0x0036 }\n r3 = r6.f24851a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.ap.C4655c.m20771a(r2);\t Catch:{ IOException -> 0x0036 }\n r3.m20819a(r4);\t Catch:{ IOException -> 0x0036 }\n goto L_0x0029;\t Catch:{ IOException -> 0x0036 }\n L_0x0027:\n r6.f24851a = r1;\t Catch:{ IOException -> 0x0036 }\n L_0x0029:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n L_0x002c:\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n goto L_0x004b;\n L_0x0030:\n r2 = move-exception;\n r5 = r2;\n r2 = r1;\n r1 = r5;\n goto L_0x0044;\n L_0x0035:\n r2 = r1;\n L_0x0036:\n r6.f24851a = r1;\t Catch:{ all -> 0x0043 }\n r1 = r6.f24854d;\t Catch:{ all -> 0x0043 }\n r3 = r6.f24853c;\t Catch:{ all -> 0x0043 }\n r1.deleteFile(r3);\t Catch:{ all -> 0x0043 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n goto L_0x002c;\t Catch:{ all -> 0x0050 }\n L_0x0043:\n r1 = move-exception;\t Catch:{ all -> 0x0050 }\n L_0x0044:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n throw r1;\t Catch:{ all -> 0x0050 }\n L_0x004b:\n r0 = 1;\t Catch:{ all -> 0x0050 }\n r6.f24852b = r0;\t Catch:{ all -> 0x0050 }\n monitor-exit(r6);\n return;\n L_0x0050:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.c():void\");\n }", "private static final void a() {\n NoClassDefFoundError noClassDefFoundError2;\n block5: {\n int n10 = 0;\n Object object = null;\n try {\n int n11 = i.h.d.l();\n if (n11 == 0) {\n object = i.h.d.f();\n i.h.d.s((Set)object);\n }\n StaticLoggerBinder.getSingleton();\n p = n11 = 3;\n i.h.d.r((Set)object);\n i.h.d.g();\n i.h.d.p();\n object = q;\n ((h)object).b();\n return;\n }\n catch (Exception exception) {\n i.h.d.e(exception);\n IllegalStateException illegalStateException = new IllegalStateException(\"Unexpected initialization failure\", exception);\n throw illegalStateException;\n }\n catch (NoSuchMethodError noSuchMethodError) {\n String string2 = noSuchMethodError.getMessage();\n if (string2 == null) throw noSuchMethodError;\n String string3 = \"org.slf4j.impl.StaticLoggerBinder.getSingleton()\";\n int n12 = string2.contains(string3);\n if (n12 == 0) throw noSuchMethodError;\n p = n12 = 2;\n i.h.h.i.c(\"slf4j-api 1.6.x (or later) is incompatible with this binding.\");\n i.h.h.i.c(\"Your binding is version 1.5.5 or earlier.\");\n string2 = \"Upgrade your binding to version 1.6.x.\";\n i.h.h.i.c(string2);\n throw noSuchMethodError;\n }\n catch (NoClassDefFoundError noClassDefFoundError2) {\n String string4 = noClassDefFoundError2.getMessage();\n boolean bl2 = i.h.d.m(string4);\n if (!bl2) break block5;\n p = n10 = 4;\n i.h.h.i.c(\"Failed to load class \\\"org.slf4j.impl.StaticLoggerBinder\\\".\");\n i.h.h.i.c(\"Defaulting to no-operation (NOP) logger implementation\");\n String string5 = \"See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.\";\n i.h.h.i.c(string5);\n }\n return;\n }\n i.h.d.e(noClassDefFoundError2);\n throw noClassDefFoundError2;\n }", "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 int getEventCode() {\n/* 41 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void handleInvalidSimNotify(int r1, android.os.AsyncResult r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.handleInvalidSimNotify(int, android.os.AsyncResult):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.handleInvalidSimNotify(int, android.os.AsyncResult):void\");\n }", "@Override\r\n \tprotected void handlePossibleInterpreterChange() {\n \t\t\r\n \t}", "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 }", "private final com.google.android.p306h.p307a.p308a.C5685v m26927b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 8: goto L_0x000e;\n case 18: goto L_0x0043;\n case 24: goto L_0x0054;\n case 32: goto L_0x005f;\n case 42: goto L_0x006a;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x0034 }\n switch(r2) {\n case 0: goto L_0x003c;\n case 1: goto L_0x003c;\n case 2: goto L_0x003c;\n case 3: goto L_0x003c;\n case 4: goto L_0x003c;\n case 5: goto L_0x003c;\n case 101: goto L_0x003c;\n case 102: goto L_0x003c;\n case 103: goto L_0x003c;\n case 104: goto L_0x003c;\n case 105: goto L_0x003c;\n case 106: goto L_0x003c;\n case 107: goto L_0x003c;\n case 108: goto L_0x003c;\n case 201: goto L_0x003c;\n case 202: goto L_0x003c;\n case 203: goto L_0x003c;\n case 204: goto L_0x003c;\n case 205: goto L_0x003c;\n case 206: goto L_0x003c;\n case 207: goto L_0x003c;\n case 208: goto L_0x003c;\n case 209: goto L_0x003c;\n case 301: goto L_0x003c;\n case 302: goto L_0x003c;\n case 303: goto L_0x003c;\n case 304: goto L_0x003c;\n case 305: goto L_0x003c;\n case 306: goto L_0x003c;\n case 307: goto L_0x003c;\n case 401: goto L_0x003c;\n case 402: goto L_0x003c;\n case 403: goto L_0x003c;\n case 404: goto L_0x003c;\n case 501: goto L_0x003c;\n case 502: goto L_0x003c;\n case 503: goto L_0x003c;\n case 504: goto L_0x003c;\n case 601: goto L_0x003c;\n case 602: goto L_0x003c;\n case 603: goto L_0x003c;\n case 604: goto L_0x003c;\n case 605: goto L_0x003c;\n case 606: goto L_0x003c;\n case 607: goto L_0x003c;\n case 608: goto L_0x003c;\n case 609: goto L_0x003c;\n case 610: goto L_0x003c;\n case 611: goto L_0x003c;\n case 612: goto L_0x003c;\n case 613: goto L_0x003c;\n case 614: goto L_0x003c;\n case 615: goto L_0x003c;\n case 616: goto L_0x003c;\n case 617: goto L_0x003c;\n case 618: goto L_0x003c;\n case 619: goto L_0x003c;\n case 620: goto L_0x003c;\n case 621: goto L_0x003c;\n case 622: goto L_0x003c;\n case 623: goto L_0x003c;\n case 624: goto L_0x003c;\n case 625: goto L_0x003c;\n case 626: goto L_0x003c;\n case 627: goto L_0x003c;\n case 628: goto L_0x003c;\n case 629: goto L_0x003c;\n case 630: goto L_0x003c;\n case 631: goto L_0x003c;\n case 632: goto L_0x003c;\n case 633: goto L_0x003c;\n case 634: goto L_0x003c;\n case 635: goto L_0x003c;\n case 636: goto L_0x003c;\n case 637: goto L_0x003c;\n case 638: goto L_0x003c;\n case 639: goto L_0x003c;\n case 640: goto L_0x003c;\n case 641: goto L_0x003c;\n case 701: goto L_0x003c;\n case 702: goto L_0x003c;\n case 703: goto L_0x003c;\n case 704: goto L_0x003c;\n case 705: goto L_0x003c;\n case 706: goto L_0x003c;\n case 707: goto L_0x003c;\n case 708: goto L_0x003c;\n case 709: goto L_0x003c;\n case 710: goto L_0x003c;\n case 711: goto L_0x003c;\n case 712: goto L_0x003c;\n case 713: goto L_0x003c;\n case 714: goto L_0x003c;\n case 715: goto L_0x003c;\n case 716: goto L_0x003c;\n case 717: goto L_0x003c;\n case 718: goto L_0x003c;\n case 719: goto L_0x003c;\n case 720: goto L_0x003c;\n case 721: goto L_0x003c;\n case 722: goto L_0x003c;\n case 801: goto L_0x003c;\n case 802: goto L_0x003c;\n case 803: goto L_0x003c;\n case 901: goto L_0x003c;\n case 902: goto L_0x003c;\n case 903: goto L_0x003c;\n case 904: goto L_0x003c;\n case 905: goto L_0x003c;\n case 906: goto L_0x003c;\n case 907: goto L_0x003c;\n case 908: goto L_0x003c;\n case 909: goto L_0x003c;\n case 910: goto L_0x003c;\n case 911: goto L_0x003c;\n case 912: goto L_0x003c;\n case 1001: goto L_0x003c;\n case 1002: goto L_0x003c;\n case 1003: goto L_0x003c;\n case 1004: goto L_0x003c;\n case 1005: goto L_0x003c;\n case 1006: goto L_0x003c;\n case 1101: goto L_0x003c;\n case 1102: goto L_0x003c;\n case 1201: goto L_0x003c;\n case 1301: goto L_0x003c;\n case 1302: goto L_0x003c;\n case 1303: goto L_0x003c;\n case 1304: goto L_0x003c;\n case 1305: goto L_0x003c;\n case 1306: goto L_0x003c;\n case 1307: goto L_0x003c;\n case 1308: goto L_0x003c;\n case 1309: goto L_0x003c;\n case 1310: goto L_0x003c;\n case 1311: goto L_0x003c;\n case 1312: goto L_0x003c;\n case 1313: goto L_0x003c;\n case 1314: goto L_0x003c;\n case 1315: goto L_0x003c;\n case 1316: goto L_0x003c;\n case 1317: goto L_0x003c;\n case 1318: goto L_0x003c;\n case 1319: goto L_0x003c;\n case 1320: goto L_0x003c;\n case 1321: goto L_0x003c;\n case 1322: goto L_0x003c;\n case 1323: goto L_0x003c;\n case 1324: goto L_0x003c;\n case 1325: goto L_0x003c;\n case 1326: goto L_0x003c;\n case 1327: goto L_0x003c;\n case 1328: goto L_0x003c;\n case 1329: goto L_0x003c;\n case 1330: goto L_0x003c;\n case 1331: goto L_0x003c;\n case 1332: goto L_0x003c;\n case 1333: goto L_0x003c;\n case 1334: goto L_0x003c;\n case 1335: goto L_0x003c;\n case 1336: goto L_0x003c;\n case 1337: goto L_0x003c;\n case 1338: goto L_0x003c;\n case 1339: goto L_0x003c;\n case 1340: goto L_0x003c;\n case 1341: goto L_0x003c;\n case 1342: goto L_0x003c;\n case 1343: goto L_0x003c;\n case 1344: goto L_0x003c;\n case 1345: goto L_0x003c;\n case 1346: goto L_0x003c;\n case 1347: goto L_0x003c;\n case 1401: goto L_0x003c;\n case 1402: goto L_0x003c;\n case 1403: goto L_0x003c;\n case 1404: goto L_0x003c;\n case 1405: goto L_0x003c;\n case 1406: goto L_0x003c;\n case 1407: goto L_0x003c;\n case 1408: goto L_0x003c;\n case 1409: goto L_0x003c;\n case 1410: goto L_0x003c;\n case 1411: goto L_0x003c;\n case 1412: goto L_0x003c;\n case 1413: goto L_0x003c;\n case 1414: goto L_0x003c;\n case 1415: goto L_0x003c;\n case 1416: goto L_0x003c;\n case 1417: goto L_0x003c;\n case 1418: goto L_0x003c;\n case 1419: goto L_0x003c;\n case 1420: goto L_0x003c;\n case 1421: goto L_0x003c;\n case 1422: goto L_0x003c;\n case 1423: goto L_0x003c;\n case 1424: goto L_0x003c;\n case 1425: goto L_0x003c;\n case 1426: goto L_0x003c;\n case 1427: goto L_0x003c;\n case 1601: goto L_0x003c;\n case 1602: goto L_0x003c;\n case 1603: goto L_0x003c;\n case 1604: goto L_0x003c;\n case 1605: goto L_0x003c;\n case 1606: goto L_0x003c;\n case 1607: goto L_0x003c;\n case 1608: goto L_0x003c;\n case 1609: goto L_0x003c;\n case 1610: goto L_0x003c;\n case 1611: goto L_0x003c;\n case 1612: goto L_0x003c;\n case 1613: goto L_0x003c;\n case 1614: goto L_0x003c;\n case 1615: goto L_0x003c;\n case 1616: goto L_0x003c;\n case 1617: goto L_0x003c;\n case 1618: goto L_0x003c;\n case 1619: goto L_0x003c;\n case 1620: goto L_0x003c;\n case 1621: goto L_0x003c;\n case 1622: goto L_0x003c;\n case 1623: goto L_0x003c;\n case 1624: goto L_0x003c;\n case 1625: goto L_0x003c;\n case 1626: goto L_0x003c;\n case 1627: goto L_0x003c;\n case 1628: goto L_0x003c;\n case 1629: goto L_0x003c;\n case 1630: goto L_0x003c;\n case 1631: goto L_0x003c;\n case 1632: goto L_0x003c;\n case 1633: goto L_0x003c;\n case 1634: goto L_0x003c;\n case 1635: goto L_0x003c;\n case 1636: goto L_0x003c;\n case 1637: goto L_0x003c;\n case 1638: goto L_0x003c;\n case 1639: goto L_0x003c;\n case 1640: goto L_0x003c;\n case 1641: goto L_0x003c;\n case 1642: goto L_0x003c;\n case 1643: goto L_0x003c;\n case 1644: goto L_0x003c;\n case 1645: goto L_0x003c;\n case 1646: goto L_0x003c;\n case 1647: goto L_0x003c;\n case 1648: goto L_0x003c;\n case 1649: goto L_0x003c;\n case 1650: goto L_0x003c;\n case 1651: goto L_0x003c;\n case 1652: goto L_0x003c;\n case 1653: goto L_0x003c;\n case 1654: goto L_0x003c;\n case 1655: goto L_0x003c;\n case 1656: goto L_0x003c;\n case 1657: goto L_0x003c;\n case 1658: goto L_0x003c;\n case 1659: goto L_0x003c;\n case 1660: goto L_0x003c;\n case 1801: goto L_0x003c;\n case 1802: goto L_0x003c;\n case 1803: goto L_0x003c;\n case 1804: goto L_0x003c;\n case 1805: goto L_0x003c;\n case 1806: goto L_0x003c;\n case 1807: goto L_0x003c;\n case 1808: goto L_0x003c;\n case 1809: goto L_0x003c;\n case 1810: goto L_0x003c;\n case 1811: goto L_0x003c;\n case 1812: goto L_0x003c;\n case 1813: goto L_0x003c;\n case 1814: goto L_0x003c;\n case 1815: goto L_0x003c;\n case 1816: goto L_0x003c;\n case 1817: goto L_0x003c;\n case 1901: goto L_0x003c;\n case 1902: goto L_0x003c;\n case 1903: goto L_0x003c;\n case 1904: goto L_0x003c;\n case 1905: goto L_0x003c;\n case 1906: goto L_0x003c;\n case 1907: goto L_0x003c;\n case 1908: goto L_0x003c;\n case 1909: goto L_0x003c;\n case 2001: goto L_0x003c;\n case 2101: goto L_0x003c;\n case 2102: goto L_0x003c;\n case 2103: goto L_0x003c;\n case 2104: goto L_0x003c;\n case 2105: goto L_0x003c;\n case 2106: goto L_0x003c;\n case 2107: goto L_0x003c;\n case 2108: goto L_0x003c;\n case 2109: goto L_0x003c;\n case 2110: goto L_0x003c;\n case 2111: goto L_0x003c;\n case 2112: goto L_0x003c;\n case 2113: goto L_0x003c;\n case 2114: goto L_0x003c;\n case 2115: goto L_0x003c;\n case 2116: goto L_0x003c;\n case 2117: goto L_0x003c;\n case 2118: goto L_0x003c;\n case 2119: goto L_0x003c;\n case 2120: goto L_0x003c;\n case 2121: goto L_0x003c;\n case 2122: goto L_0x003c;\n case 2123: goto L_0x003c;\n case 2124: goto L_0x003c;\n case 2201: goto L_0x003c;\n case 2202: goto L_0x003c;\n case 2203: goto L_0x003c;\n case 2204: goto L_0x003c;\n case 2205: goto L_0x003c;\n case 2206: goto L_0x003c;\n case 2207: goto L_0x003c;\n case 2208: goto L_0x003c;\n case 2209: goto L_0x003c;\n case 2210: goto L_0x003c;\n case 2211: goto L_0x003c;\n case 2212: goto L_0x003c;\n case 2213: goto L_0x003c;\n case 2214: goto L_0x003c;\n case 2215: goto L_0x003c;\n case 2301: goto L_0x003c;\n case 2302: goto L_0x003c;\n case 2303: goto L_0x003c;\n case 2304: goto L_0x003c;\n case 2401: goto L_0x003c;\n case 2402: goto L_0x003c;\n case 2501: goto L_0x003c;\n case 2502: goto L_0x003c;\n case 2503: goto L_0x003c;\n case 2504: goto L_0x003c;\n case 2505: goto L_0x003c;\n case 2506: goto L_0x003c;\n case 2507: goto L_0x003c;\n case 2508: goto L_0x003c;\n case 2509: goto L_0x003c;\n case 2510: goto L_0x003c;\n case 2511: goto L_0x003c;\n case 2512: goto L_0x003c;\n case 2513: goto L_0x003c;\n case 2514: goto L_0x003c;\n case 2515: goto L_0x003c;\n case 2516: goto L_0x003c;\n case 2517: goto L_0x003c;\n case 2518: goto L_0x003c;\n case 2519: goto L_0x003c;\n case 2601: goto L_0x003c;\n case 2602: goto L_0x003c;\n case 2701: goto L_0x003c;\n case 2702: goto L_0x003c;\n case 2703: goto L_0x003c;\n case 2704: goto L_0x003c;\n case 2705: goto L_0x003c;\n case 2706: goto L_0x003c;\n case 2707: goto L_0x003c;\n case 2801: goto L_0x003c;\n case 2802: goto L_0x003c;\n case 2803: goto L_0x003c;\n case 2804: goto L_0x003c;\n case 2805: goto L_0x003c;\n case 2806: goto L_0x003c;\n case 2807: goto L_0x003c;\n case 2808: goto L_0x003c;\n case 2809: goto L_0x003c;\n case 2810: goto L_0x003c;\n case 2811: goto L_0x003c;\n case 2812: goto L_0x003c;\n case 2813: goto L_0x003c;\n case 2814: goto L_0x003c;\n case 2815: goto L_0x003c;\n case 2816: goto L_0x003c;\n case 2817: goto L_0x003c;\n case 2818: goto L_0x003c;\n case 2819: goto L_0x003c;\n case 2820: goto L_0x003c;\n case 2821: goto L_0x003c;\n case 2822: goto L_0x003c;\n case 2823: goto L_0x003c;\n case 2824: goto L_0x003c;\n case 2825: goto L_0x003c;\n case 2826: goto L_0x003c;\n case 2901: goto L_0x003c;\n case 2902: goto L_0x003c;\n case 2903: goto L_0x003c;\n case 2904: goto L_0x003c;\n case 2905: goto L_0x003c;\n case 2906: goto L_0x003c;\n case 2907: goto L_0x003c;\n case 3001: goto L_0x003c;\n case 3002: goto L_0x003c;\n case 3003: goto L_0x003c;\n case 3004: goto L_0x003c;\n case 3005: goto L_0x003c;\n default: goto L_0x0019;\n };\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0019:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = 41;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = \" is not a valid enum EventType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0034 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0034:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x003c:\n r2 = java.lang.Integer.valueOf(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r6.f28837a = r2;\t Catch:{ IllegalArgumentException -> 0x0034 }\n goto L_0x0000;\n L_0x0043:\n r0 = r6.f28838b;\n if (r0 != 0) goto L_0x004e;\n L_0x0047:\n r0 = new com.google.android.h.a.a.u;\n r0.<init>();\n r6.f28838b = r0;\n L_0x004e:\n r0 = r6.f28838b;\n r7.a(r0);\n goto L_0x0000;\n L_0x0054:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28839c = r0;\n goto L_0x0000;\n L_0x005f:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28840d = r0;\n goto L_0x0000;\n L_0x006a:\n r0 = r6.f28841e;\n if (r0 != 0) goto L_0x0075;\n L_0x006e:\n r0 = new com.google.android.h.a.a.o;\n r0.<init>();\n r6.f28841e = r0;\n L_0x0075:\n r0 = r6.f28841e;\n r7.a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.h.a.a.v.b(com.google.protobuf.nano.a):com.google.android.h.a.a.v\");\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 runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "public void method_2250() {\r\n // $FF: Couldn't be decompiled\r\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 }", "static void method_6338() {\r\n // $FF: Couldn't be decompiled\r\n }", "private final boolean e() {\n /*\n r15 = this;\n r2 = 0\n r1 = 0\n dtd r0 = r15.m // Catch:{ all -> 0x008e }\n if (r0 != 0) goto L_0x000d\n dtd r0 = new dtd // Catch:{ all -> 0x008e }\n r0.<init>() // Catch:{ all -> 0x008e }\n r15.m = r0 // Catch:{ all -> 0x008e }\n L_0x000d:\n int r0 = r15.k // Catch:{ all -> 0x008e }\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x039e\n dvk r3 = r15.g // Catch:{ all -> 0x008e }\n if (r3 == 0) goto L_0x0356\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 == 0) goto L_0x0025\n int r3 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != r4) goto L_0x0032\n L_0x0025:\n r3 = 2097152(0x200000, float:2.938736E-39)\n int r3 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = new byte[r3] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r15.h = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r15.i = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0032:\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r4\n int r6 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r7 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r8 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r9 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n boolean r0 = r7.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x00ac\n r0 = 1\n L_0x0047:\n java.lang.String r3 = \"GzipInflatingBuffer is closed\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r0 = 1\n r5 = r3\n L_0x004f:\n if (r0 == 0) goto L_0x02ef\n int r3 = r6 - r5\n if (r3 <= 0) goto L_0x02ef\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.ordinal() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n switch(r0) {\n case 0: goto L_0x00ae;\n case 1: goto L_0x0148;\n case 2: goto L_0x0171;\n case 3: goto L_0x01d7;\n case 4: goto L_0x01fc;\n case 5: goto L_0x0221;\n case 6: goto L_0x0256;\n case 7: goto L_0x0289;\n case 8: goto L_0x02a2;\n case 9: goto L_0x02e9;\n default: goto L_0x005e;\n } // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x005e:\n java.lang.AssertionError r0 = new java.lang.AssertionError // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4 + 15\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5.<init>(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = \"Invalid state: \"\n java.lang.StringBuilder r4 = r5.append(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.StringBuilder r3 = r4.append(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = r3.toString() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0087:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x008e:\n r0 = move-exception\n if (r2 <= 0) goto L_0x00ab\n dxe r3 = r15.a\n r3.a(r2)\n dxh r3 = r15.j\n dxh r4 = defpackage.dxh.BODY\n if (r3 != r4) goto L_0x00ab\n dvk r3 = r15.g\n if (r3 == 0) goto L_0x03c9\n dzo r2 = r15.d\n long r4 = (long) r1\n r2.d(r4)\n int r2 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n L_0x00ab:\n throw r0\n L_0x00ac:\n r0 = 0\n goto L_0x0047\n L_0x00ae:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x00ba\n r0 = 0\n goto L_0x004f\n L_0x00ba:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 35615(0x8b1f, float:4.9907E-41)\n if (r0 == r3) goto L_0x00d4\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Not in GZIP format\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00cd:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x00d4:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 8\n if (r0 == r3) goto L_0x00e6\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Unsupported compression method\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00e6:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.j = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvl r4 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 6\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r10.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r10\n if (r3 <= 0) goto L_0x03d9\n r0 = 6\n int r0 = java.lang.Math.min(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r10 = r10.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r11 = r11.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r10, r11, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = 6 - r0\n r3 = r0\n L_0x0118:\n if (r3 <= 0) goto L_0x013b\n r0 = 512(0x200, float:7.175E-43)\n byte[] r10 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x011f:\n if (r0 >= r3) goto L_0x013b\n int r11 = r3 - r0\n r12 = 512(0x200, float:7.175E-43)\n int r11 = java.lang.Math.min(r11, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r12 = r12.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.a(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r12 = r12.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.update(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r11\n goto L_0x011f\n L_0x013b:\n dvk r0 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 6\n defpackage.dvk.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA_LEN // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0148:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 4\n r3 = 4\n if (r0 == r3) goto L_0x0156\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0156:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0162\n r0 = 0\n goto L_0x004f\n L_0x0162:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.k = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0171:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 >= r3) goto L_0x017e\n r0 = 0\n goto L_0x004f\n L_0x017e:\n dvl r10 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x03d6\n int r0 = java.lang.Math.min(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r11 = r11.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r12 = r12.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r11, r12, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r4 - r0\n r3 = r0\n L_0x01a8:\n if (r3 <= 0) goto L_0x01cb\n r0 = 512(0x200, float:7.175E-43)\n byte[] r11 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x01af:\n if (r0 >= r3) goto L_0x01cb\n int r12 = r3 - r0\n r13 = 512(0x200, float:7.175E-43)\n int r12 = java.lang.Math.min(r12, r13) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r13 = r13.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.a(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r13 = r13.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.update(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r12\n goto L_0x01af\n L_0x01cb:\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.b(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01d7:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 8\n r3 = 8\n if (r0 != r3) goto L_0x01f5\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x01e1:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x01f3\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x01e1\n r0 = 1\n L_0x01ee:\n if (r0 != 0) goto L_0x01f5\n r0 = 0\n goto L_0x004f\n L_0x01f3:\n r0 = 0\n goto L_0x01ee\n L_0x01f5:\n dvm r0 = defpackage.dvm.HEADER_COMMENT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01fc:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 16\n r3 = 16\n if (r0 != r3) goto L_0x021a\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0206:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x0218\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x0206\n r0 = 1\n L_0x0213:\n if (r0 != 0) goto L_0x021a\n r0 = 0\n goto L_0x004f\n L_0x0218:\n r0 = 0\n goto L_0x0213\n L_0x021a:\n dvm r0 = defpackage.dvm.HEADER_CRC // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0221:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 2\n r3 = 2\n if (r0 != r3) goto L_0x024f\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0234\n r0 = 0\n goto L_0x004f\n L_0x0234:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n long r10 = r0.getValue() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = (int) r10 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 65535(0xffff, float:9.1834E-41)\n r0 = r0 & r3\n dvl r3 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == r3) goto L_0x024f\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Corrupt GZIP header\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x024f:\n dvm r0 = defpackage.dvm.INITIALIZE_INFLATER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0256:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x027e\n java.util.zip.Inflater r0 = new java.util.zip.Inflater // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 1\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.g = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0262:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x0284\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x027b:\n r0 = 1\n goto L_0x004f\n L_0x027e:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x0262\n L_0x0284:\n dvm r0 = defpackage.dvm.INFLATER_NEEDS_INPUT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x027b\n L_0x0289:\n int r0 = r9 + r5\n int r0 = r7.a(r8, r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r5 + r0\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r4 = defpackage.dvm.TRAILER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r4) goto L_0x029e\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5 = r3\n goto L_0x004f\n L_0x029e:\n r0 = 1\n r5 = r3\n goto L_0x004f\n L_0x02a2:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == 0) goto L_0x02c7\n r0 = 1\n L_0x02a7:\n java.lang.String r3 = \"inflater is null\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x02c9\n r0 = 1\n L_0x02b3:\n java.lang.String r3 = \"inflaterInput has unconsumed bytes\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r0 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 512(0x200, float:7.175E-43)\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x02cb\n r0 = 0\n goto L_0x004f\n L_0x02c7:\n r0 = 0\n goto L_0x02a7\n L_0x02c9:\n r0 = 0\n goto L_0x02b3\n L_0x02cb:\n r3 = 0\n r7.e = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.f = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r3 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.a(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x02e9:\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x004f\n L_0x02ef:\n if (r0 == 0) goto L_0x0301\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = defpackage.dvm.HEADER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x0334\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x0334\n L_0x0301:\n r0 = 1\n L_0x0302:\n r7.n = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.l // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.l = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r2 = r2 + r3\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.m = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r1 = r1 + r3\n if (r5 != 0) goto L_0x0342\n if (r2 <= 0) goto L_0x0332\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0332\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x0336\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0332:\n r0 = 0\n L_0x0333:\n return r0\n L_0x0334:\n r0 = 0\n goto L_0x0302\n L_0x0336:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0332\n L_0x0342:\n dtd r0 = r15.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dxv r3 = defpackage.dxw.a(r3, r4, r5) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.a(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r5\n r15.i = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x000d\n L_0x0356:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n if (r3 != 0) goto L_0x0386\n if (r2 <= 0) goto L_0x0378\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0378\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x037a\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0378:\n r0 = 0\n goto L_0x0333\n L_0x037a:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0378\n L_0x0386:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ all -> 0x008e }\n int r2 = r2 + r0\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n dtd r4 = r15.n // Catch:{ all -> 0x008e }\n dxv r0 = r4.a(r0) // Catch:{ all -> 0x008e }\n dtd r0 = (defpackage.dtd) r0 // Catch:{ all -> 0x008e }\n r3.a(r0) // Catch:{ all -> 0x008e }\n goto L_0x000d\n L_0x039e:\n if (r2 <= 0) goto L_0x03ba\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x03ba\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x03bd\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x03ba:\n r0 = 1\n goto L_0x0333\n L_0x03bd:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x03ba\n L_0x03c9:\n dzo r1 = r15.d\n long r4 = (long) r2\n r1.d(r4)\n int r1 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n goto L_0x00ab\n L_0x03d6:\n r3 = r4\n goto L_0x01a8\n L_0x03d9:\n r3 = r0\n goto L_0x0118\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxd.e():boolean\");\n }", "private void a(java.lang.String r11, java.lang.String r12, boolean r13, boolean r14, com.google.ae r15) {\n /*\n r10 = this;\n r9 = 48;\n r8 = 2;\n r6 = F;\n if (r11 != 0) goto L_0x0017;\n L_0x0007:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x0015 }\n r1 = com.google.dk.NOT_A_NUMBER;\t Catch:{ ao -> 0x0015 }\n r2 = J;\t Catch:{ ao -> 0x0015 }\n r3 = 47;\n r2 = r2[r3];\t Catch:{ ao -> 0x0015 }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x0015 }\n throw r0;\t Catch:{ ao -> 0x0015 }\n L_0x0015:\n r0 = move-exception;\n throw r0;\n L_0x0017:\n r0 = r11.length();\t Catch:{ ao -> 0x002d }\n r1 = 250; // 0xfa float:3.5E-43 double:1.235E-321;\n if (r0 <= r1) goto L_0x002f;\n L_0x001f:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x002d }\n r1 = com.google.dk.TOO_LONG;\t Catch:{ ao -> 0x002d }\n r2 = J;\t Catch:{ ao -> 0x002d }\n r3 = 41;\n r2 = r2[r3];\t Catch:{ ao -> 0x002d }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x002d }\n throw r0;\t Catch:{ ao -> 0x002d }\n L_0x002d:\n r0 = move-exception;\n throw r0;\n L_0x002f:\n r7 = new java.lang.StringBuilder;\n r7.<init>();\n r10.a(r11, r7);\t Catch:{ ao -> 0x004f }\n r0 = r7.toString();\t Catch:{ ao -> 0x004f }\n r0 = b(r0);\t Catch:{ ao -> 0x004f }\n if (r0 != 0) goto L_0x0051;\n L_0x0041:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x004f }\n r1 = com.google.dk.NOT_A_NUMBER;\t Catch:{ ao -> 0x004f }\n r2 = J;\t Catch:{ ao -> 0x004f }\n r3 = 48;\n r2 = r2[r3];\t Catch:{ ao -> 0x004f }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x004f }\n throw r0;\t Catch:{ ao -> 0x004f }\n L_0x004f:\n r0 = move-exception;\n throw r0;\n L_0x0051:\n if (r14 == 0) goto L_0x006f;\n L_0x0053:\n r0 = r7.toString();\t Catch:{ ao -> 0x006d }\n r0 = r10.a(r0, r12);\t Catch:{ ao -> 0x006d }\n if (r0 != 0) goto L_0x006f;\n L_0x005d:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x006b }\n r1 = com.google.dk.INVALID_COUNTRY_CODE;\t Catch:{ ao -> 0x006b }\n r2 = J;\t Catch:{ ao -> 0x006b }\n r3 = 46;\n r2 = r2[r3];\t Catch:{ ao -> 0x006b }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x006b }\n throw r0;\t Catch:{ ao -> 0x006b }\n L_0x006b:\n r0 = move-exception;\n throw r0;\n L_0x006d:\n r0 = move-exception;\n throw r0;\t Catch:{ ao -> 0x006b }\n L_0x006f:\n if (r13 == 0) goto L_0x0074;\n L_0x0071:\n r15.b(r11);\t Catch:{ ao -> 0x00d3 }\n L_0x0074:\n r0 = r10.b(r7);\n r1 = r0.length();\t Catch:{ ao -> 0x00d5 }\n if (r1 <= 0) goto L_0x0081;\n L_0x007e:\n r15.a(r0);\t Catch:{ ao -> 0x00d5 }\n L_0x0081:\n r2 = r10.e(r12);\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r1 = r7.toString();\t Catch:{ ao -> 0x00d7 }\n r0 = r10;\n r4 = r13;\n r5 = r15;\n r0 = r0.a(r1, r2, r3, r4, r5);\t Catch:{ ao -> 0x00d7 }\n L_0x0095:\n if (r0 == 0) goto L_0x0182;\n L_0x0097:\n r1 = r10.b(r0);\n r4 = r1.equals(r12);\n if (r4 != 0) goto L_0x017f;\n L_0x00a1:\n r0 = r10.a(r0, r1);\n L_0x00a5:\n if (r6 == 0) goto L_0x00bd;\n L_0x00a7:\n a(r7);\t Catch:{ ao -> 0x0121 }\n r3.append(r7);\t Catch:{ ao -> 0x0121 }\n if (r12 == 0) goto L_0x00b8;\n L_0x00af:\n r1 = r0.L();\n r15.a(r1);\t Catch:{ ao -> 0x0123 }\n if (r6 == 0) goto L_0x00bd;\n L_0x00b8:\n if (r13 == 0) goto L_0x00bd;\n L_0x00ba:\n r15.l();\t Catch:{ ao -> 0x0125 }\n L_0x00bd:\n r1 = r3.length();\t Catch:{ ao -> 0x00d1 }\n if (r1 >= r8) goto L_0x0127;\n L_0x00c3:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x00d1 }\n r1 = com.google.dk.TOO_SHORT_NSN;\t Catch:{ ao -> 0x00d1 }\n r2 = J;\t Catch:{ ao -> 0x00d1 }\n r3 = 44;\n r2 = r2[r3];\t Catch:{ ao -> 0x00d1 }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x00d1 }\n throw r0;\t Catch:{ ao -> 0x00d1 }\n L_0x00d1:\n r0 = move-exception;\n throw r0;\n L_0x00d3:\n r0 = move-exception;\n throw r0;\n L_0x00d5:\n r0 = move-exception;\n throw r0;\n L_0x00d7:\n r0 = move-exception;\n r1 = g;\n r4 = r7.toString();\n r1 = r1.matcher(r4);\n r4 = r0.a();\t Catch:{ ao -> 0x0111 }\n r5 = com.google.dk.INVALID_COUNTRY_CODE;\t Catch:{ ao -> 0x0111 }\n if (r4 != r5) goto L_0x0113;\n L_0x00ea:\n r4 = r1.lookingAt();\t Catch:{ ao -> 0x0111 }\n if (r4 == 0) goto L_0x0113;\n L_0x00f0:\n r0 = r1.end();\n r1 = r7.substring(r0);\n r0 = r10;\n r4 = r13;\n r5 = r15;\n r0 = r0.a(r1, r2, r3, r4, r5);\n if (r0 != 0) goto L_0x0095;\n L_0x0101:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x010f }\n r1 = com.google.dk.INVALID_COUNTRY_CODE;\t Catch:{ ao -> 0x010f }\n r2 = J;\t Catch:{ ao -> 0x010f }\n r3 = 43;\n r2 = r2[r3];\t Catch:{ ao -> 0x010f }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x010f }\n throw r0;\t Catch:{ ao -> 0x010f }\n L_0x010f:\n r0 = move-exception;\n throw r0;\n L_0x0111:\n r0 = move-exception;\n throw r0;\n L_0x0113:\n r1 = new com.google.ao;\n r2 = r0.a();\n r0 = r0.getMessage();\n r1.<init>(r2, r0);\n throw r1;\n L_0x0121:\n r0 = move-exception;\n throw r0;\n L_0x0123:\n r0 = move-exception;\n throw r0;\t Catch:{ ao -> 0x0125 }\n L_0x0125:\n r0 = move-exception;\n throw r0;\n L_0x0127:\n if (r0 == 0) goto L_0x013a;\n L_0x0129:\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r10.a(r3, r0, r1);\t Catch:{ ao -> 0x0150 }\n if (r13 == 0) goto L_0x013a;\n L_0x0133:\n r0 = r1.toString();\t Catch:{ ao -> 0x0150 }\n r15.c(r0);\t Catch:{ ao -> 0x0150 }\n L_0x013a:\n r0 = r3.length();\n if (r0 >= r8) goto L_0x0152;\n L_0x0140:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x014e }\n r1 = com.google.dk.TOO_SHORT_NSN;\t Catch:{ ao -> 0x014e }\n r2 = J;\t Catch:{ ao -> 0x014e }\n r3 = 42;\n r2 = r2[r3];\t Catch:{ ao -> 0x014e }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x014e }\n throw r0;\t Catch:{ ao -> 0x014e }\n L_0x014e:\n r0 = move-exception;\n throw r0;\n L_0x0150:\n r0 = move-exception;\n throw r0;\n L_0x0152:\n r1 = 16;\n if (r0 <= r1) goto L_0x0166;\n L_0x0156:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x0164 }\n r1 = com.google.dk.TOO_LONG;\t Catch:{ ao -> 0x0164 }\n r2 = J;\t Catch:{ ao -> 0x0164 }\n r3 = 45;\n r2 = r2[r3];\t Catch:{ ao -> 0x0164 }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x0164 }\n throw r0;\t Catch:{ ao -> 0x0164 }\n L_0x0164:\n r0 = move-exception;\n throw r0;\n L_0x0166:\n r0 = 0;\n r0 = r3.charAt(r0);\t Catch:{ ao -> 0x017d }\n if (r0 != r9) goto L_0x0171;\n L_0x016d:\n r0 = 1;\n r15.a(r0);\t Catch:{ ao -> 0x017d }\n L_0x0171:\n r0 = r3.toString();\n r0 = java.lang.Long.parseLong(r0);\n r15.a(r0);\n return;\n L_0x017d:\n r0 = move-exception;\n throw r0;\n L_0x017f:\n r0 = r2;\n goto L_0x00a5;\n L_0x0182:\n r0 = r2;\n goto L_0x00a7;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, java.lang.String, boolean, boolean, com.google.ae):void\");\n }", "public final synchronized void mo5320b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r1 = 0;\t Catch:{ all -> 0x004c }\n r2 = 0;\t Catch:{ all -> 0x004c }\n if (r0 == 0) goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0007:\n r0 = r6.f24851a;\t Catch:{ all -> 0x004c }\n if (r0 != 0) goto L_0x0013;\t Catch:{ all -> 0x004c }\n L_0x000b:\n r0 = r6.f24854d;\t Catch:{ all -> 0x004c }\n r3 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r0.deleteFile(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0013:\n r0 = com.google.android.m4b.maps.cg.bx.m23058b();\t Catch:{ all -> 0x004c }\n r3 = r6.f24854d;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24853c;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r3 = r3.openFileOutput(r4, r1);\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24851a;\t Catch:{ IOException -> 0x0033 }\n r4 = r4.m20837d();\t Catch:{ IOException -> 0x0033 }\n r3.write(r4);\t Catch:{ IOException -> 0x0033 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n L_0x002b:\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\n L_0x002f:\n r1 = move-exception;\n r3 = r2;\n goto L_0x003f;\n L_0x0032:\n r3 = r2;\n L_0x0033:\n r4 = r6.f24854d;\t Catch:{ all -> 0x003e }\n r5 = r6.f24853c;\t Catch:{ all -> 0x003e }\n r4.deleteFile(r5);\t Catch:{ all -> 0x003e }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n goto L_0x002b;\t Catch:{ all -> 0x004c }\n L_0x003e:\n r1 = move-exception;\t Catch:{ all -> 0x004c }\n L_0x003f:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n throw r1;\t Catch:{ all -> 0x004c }\n L_0x0046:\n r6.f24851a = r2;\t Catch:{ all -> 0x004c }\n r6.f24852b = r1;\t Catch:{ all -> 0x004c }\n monitor-exit(r6);\n return;\n L_0x004c:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.b():void\");\n }", "public void method_2486(ahl var1, int var2, int var3, int var4) {\r\n String[] var10000 = class_752.method_4253();\r\n int var6 = var1.method_33(var2, var3, var4);\r\n String[] var5 = var10000;\r\n if(method_2687(var6)) {\r\n label47: {\r\n label46: {\r\n label45: {\r\n label44: {\r\n label43: {\r\n label42: {\r\n float var7 = 0.25F;\r\n if(var5 != null) {\r\n switch(method_2686(var6)) {\r\n case 0:\r\n this.method_2443(0.0F, 0.25F, 0.0F, 1.0F, 1.0F, 1.0F);\r\n break;\r\n case 1:\r\n break label42;\r\n case 2:\r\n break label43;\r\n case 3:\r\n break label44;\r\n case 4:\r\n break label45;\r\n case 5:\r\n break label46;\r\n default:\r\n break label47;\r\n }\r\n }\r\n\r\n if(var5 != null) {\r\n break label47;\r\n }\r\n }\r\n\r\n this.method_2443(0.0F, 0.0F, 0.0F, 1.0F, 0.75F, 1.0F);\r\n if(var5 != null) {\r\n break label47;\r\n }\r\n }\r\n\r\n this.method_2443(0.0F, 0.0F, 0.25F, 1.0F, 1.0F, 1.0F);\r\n if(var5 != null) {\r\n break label47;\r\n }\r\n }\r\n\r\n this.method_2443(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 0.75F);\r\n if(var5 != null) {\r\n break label47;\r\n }\r\n }\r\n\r\n this.method_2443(0.25F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);\r\n if(var5 != null) {\r\n break label47;\r\n }\r\n }\r\n\r\n this.method_2443(0.0F, 0.0F, 0.0F, 0.75F, 1.0F, 1.0F);\r\n }\r\n\r\n if(var5 != null) {\r\n return;\r\n }\r\n }\r\n\r\n this.method_2443(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);\r\n }", "@Test(timeout = 4000)\n public void test097() throws Throwable {\n Label label0 = new Label();\n ClassWriter classWriter0 = new ClassWriter((-2450));\n classWriter0.newInteger((-2450));\n classWriter0.thisName = \"p@7pE4I\";\n String[] stringArray0 = new String[0];\n classWriter0.visitInnerClass((String) null, \"p@7pE4I\", \"p@7pE4I\", 2257);\n ByteVector byteVector0 = new ByteVector(1);\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-2450), \"p@7pE4I\", \"p@7pE4I\", (String) null, stringArray0, false, false);\n Label[] labelArray0 = new Label[4];\n labelArray0[0] = label0;\n label0.status = (-1274);\n labelArray0[1] = label0;\n labelArray0[2] = label0;\n label0.info = (Object) null;\n labelArray0[3] = label0;\n methodWriter0.visitTableSwitchInsn(1, (-2450), label0, labelArray0);\n methodWriter0.put(byteVector0);\n methodWriter0.visitJumpInsn((-2013884532), label0);\n methodWriter0.visitFieldInsn(1, \"oc[MfnZM[~MHOK iO\", \"p@7pE4I\", \"'@Cix/db]3YECoja=\");\n methodWriter0.visitTryCatchBlock(label0, label0, label0, (String) null);\n methodWriter0.visitJumpInsn(1198, label0);\n methodWriter0.visitMaxs((-1274), (-1460));\n methodWriter0.visitJumpInsn(1198, label0);\n ByteVector byteVector1 = byteVector0.putByte(177);\n methodWriter0.put(byteVector1);\n assertSame(byteVector0, byteVector1);\n }", "private synchronized void m3985g() {\n /*\n r8 = this;\n monitor-enter(r8);\n r2 = java.lang.Thread.currentThread();\t Catch:{ all -> 0x0063 }\n r3 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r3 = r3.mo1186c();\t Catch:{ all -> 0x0063 }\n r2 = r2.equals(r3);\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0021;\n L_0x0011:\n r2 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1185b();\t Catch:{ all -> 0x0063 }\n r3 = new com.google.analytics.tracking.android.aa;\t Catch:{ all -> 0x0063 }\n r3.<init>(r8);\t Catch:{ all -> 0x0063 }\n r2.add(r3);\t Catch:{ all -> 0x0063 }\n L_0x001f:\n monitor-exit(r8);\n return;\n L_0x0021:\n r2 = r8.f2122n;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x0028;\n L_0x0025:\n r8.m3999d();\t Catch:{ all -> 0x0063 }\n L_0x0028:\n r2 = com.google.analytics.tracking.android.ab.f1966a;\t Catch:{ all -> 0x0063 }\n r3 = r8.f2110b;\t Catch:{ all -> 0x0063 }\n r3 = r3.ordinal();\t Catch:{ all -> 0x0063 }\n r2 = r2[r3];\t Catch:{ all -> 0x0063 }\n switch(r2) {\n case 1: goto L_0x0036;\n case 2: goto L_0x006e;\n case 3: goto L_0x00aa;\n default: goto L_0x0035;\n };\t Catch:{ all -> 0x0063 }\n L_0x0035:\n goto L_0x001f;\n L_0x0036:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0066;\n L_0x003e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.poll();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to store\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2112d;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1197a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n goto L_0x0036;\n L_0x0063:\n r2 = move-exception;\n monitor-exit(r8);\n throw r2;\n L_0x0066:\n r2 = r8.f2121m;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x001f;\n L_0x006a:\n r8.m3987h();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x006e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x00a0;\n L_0x0076:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.peek();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to service\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2111c;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1204a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2.poll();\t Catch:{ all -> 0x0063 }\n goto L_0x006e;\n L_0x00a0:\n r2 = r8.f2123o;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1198a();\t Catch:{ all -> 0x0063 }\n r8.f2109a = r2;\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x00aa:\n r2 = \"Need to reconnect\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x001f;\n L_0x00b7:\n r8.m3991j();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.analytics.tracking.android.y.g():void\");\n }", "public final void A04(java.io.IOException r11) {\n /*\n // Method dump skipped, instructions count: 113\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.X0.A04(java.io.IOException):void\");\n }", "@com.android.internal.annotations.VisibleForTesting\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void handleSimStateChange(int r7, int r8, int r9) {\n /*\n // Method dump skipped, instructions count: 183\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.keyguard.KeyguardUpdateMonitor.handleSimStateChange(int, int, int):void\");\n }", "public void method_2139() {\r\n // $FF: Couldn't be decompiled\r\n }", "@org.jetbrains.annotations.Nullable\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public java.lang.Object run(@org.jetbrains.annotations.NotNull com.sumsub.sns.core.domain.GetConfigUseCase.Params r9, @org.jetbrains.annotations.NotNull kotlin.coroutines.Continuation<? super com.sumsub.sns.core.domain.model.Either<? extends java.lang.Exception, com.sumsub.sns.core.data.model.AppConfig>> r10) {\n /*\n r8 = this;\n boolean r9 = r10 instanceof com.sumsub.sns.core.domain.GetConfigUseCase.a\n if (r9 == 0) goto L_0x0013\n r9 = r10\n com.sumsub.sns.core.domain.GetConfigUseCase$a r9 = (com.sumsub.sns.core.domain.GetConfigUseCase.a) r9\n int r0 = r9.b\n r1 = -2147483648(0xffffffff80000000, float:-0.0)\n r2 = r0 & r1\n if (r2 == 0) goto L_0x0013\n int r0 = r0 - r1\n r9.b = r0\n goto L_0x0018\n L_0x0013:\n com.sumsub.sns.core.domain.GetConfigUseCase$a r9 = new com.sumsub.sns.core.domain.GetConfigUseCase$a\n r9.<init>(r8, r10)\n L_0x0018:\n java.lang.Object r10 = r9.a\n java.lang.Object r6 = t6.p.a.a.getCOROUTINE_SUSPENDED()\n int r0 = r9.b\n r7 = 2\n r1 = 1\n if (r0 == 0) goto L_0x003e\n if (r0 == r1) goto L_0x0034\n if (r0 != r7) goto L_0x002c\n kotlin.ResultKt.throwOnFailure(r10)\n goto L_0x006e\n L_0x002c:\n java.lang.IllegalStateException r9 = new java.lang.IllegalStateException\n java.lang.String r10 = \"call to 'resume' before 'invoke' with coroutine\"\n r9.<init>(r10)\n throw r9\n L_0x0034:\n java.lang.Object r0 = r9.d\n com.sumsub.sns.core.domain.GetConfigUseCase r0 = (com.sumsub.sns.core.domain.GetConfigUseCase) r0\n kotlin.ResultKt.throwOnFailure(r10) // Catch:{ Exception -> 0x003c }\n goto L_0x0058\n L_0x003c:\n r10 = move-exception\n goto L_0x0062\n L_0x003e:\n kotlin.ResultKt.throwOnFailure(r10)\n com.sumsub.sns.core.data.source.common.CommonRepository r0 = r8.getCommonRepository() // Catch:{ Exception -> 0x0060 }\n java.lang.String r10 = r8.b // Catch:{ Exception -> 0x0060 }\n r2 = 0\n r4 = 2\n r5 = 0\n r9.d = r8 // Catch:{ Exception -> 0x0060 }\n r9.b = r1 // Catch:{ Exception -> 0x0060 }\n r1 = r10\n r3 = r9\n java.lang.Object r10 = com.sumsub.sns.core.data.source.common.CommonRepository.DefaultImpls.getConfig$default(r0, r1, r2, r3, r4, r5) // Catch:{ Exception -> 0x0060 }\n if (r10 != r6) goto L_0x0057\n return r6\n L_0x0057:\n r0 = r8\n L_0x0058:\n com.sumsub.sns.core.data.model.AppConfig r10 = (com.sumsub.sns.core.data.model.AppConfig) r10\n com.sumsub.sns.core.domain.model.Either$Right r1 = new com.sumsub.sns.core.domain.model.Either$Right\n r1.<init>(r10)\n return r1\n L_0x0060:\n r10 = move-exception\n r0 = r8\n L_0x0062:\n r1 = 0\n r9.d = r1\n r9.b = r7\n java.lang.Object r10 = r0.onWrapException(r10, r9)\n if (r10 != r6) goto L_0x006e\n return r6\n L_0x006e:\n com.sumsub.sns.core.domain.model.Either$Left r9 = new com.sumsub.sns.core.domain.model.Either$Left\n r9.<init>(r10)\n return r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.sumsub.sns.core.domain.GetConfigUseCase.run(com.sumsub.sns.core.domain.GetConfigUseCase$Params, kotlin.coroutines.Continuation):java.lang.Object\");\n }", "public void method_2113() {\r\n // $FF: Couldn't be decompiled\r\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 }", "private final void m699a(boolean r24, boolean r25, boolean r26, boolean r27, boolean r28) {\n /*\n r23 = this;\n r1 = r23\n bkp r0 = r1.f516a\n r0.mo2044a()\n r2 = 0\n r1.f538w = r2\n ajf r0 = r1.f528m\n r0.mo377a()\n r3 = 0\n r1.f513D = r3\n akx[] r3 = r1.f535t\n int r4 = r3.length\n r5 = 0\n L_0x0017:\n java.lang.String r6 = \"ExoPlayerImplInternal\"\n if (r5 >= r4) goto L_0x002c\n r0 = r3[r5]\n r1.m695a(r0) // Catch:{ ajh -> 0x0023, RuntimeException -> 0x0021 }\n goto L_0x0029\n L_0x0021:\n r0 = move-exception\n goto L_0x0024\n L_0x0023:\n r0 = move-exception\n L_0x0024:\n java.lang.String r7 = \"Disable failed.\"\n android.util.Log.e(r6, r7, r0)\n L_0x0029:\n int r5 = r5 + 1\n goto L_0x0017\n L_0x002c:\n if (r24 == 0) goto L_0x0045\n akx[] r3 = r1.f518c\n int r4 = r3.length\n r5 = 0\n L_0x0032:\n if (r5 < r4) goto L_0x0035\n goto L_0x0045\n L_0x0035:\n r0 = r3[r5]\n r0.mo366n() // Catch:{ RuntimeException -> 0x003b }\n goto L_0x0042\n L_0x003b:\n r0 = move-exception\n r7 = r0\n java.lang.String r0 = \"Reset failed.\"\n android.util.Log.e(r6, r0, r7)\n L_0x0042:\n int r5 = r5 + 1\n goto L_0x0032\n L_0x0045:\n akx[] r0 = new p000.akx[r2]\n r1.f535t = r0\n r0 = 0\n r3 = 1\n if (r26 == 0) goto L_0x0050\n r1.f512C = r0\n goto L_0x0084\n L_0x0050:\n if (r27 == 0) goto L_0x0083\n akd r4 = r1.f512C\n if (r4 != 0) goto L_0x0082\n akp r4 = r1.f533r\n alh r4 = r4.f611a\n boolean r4 = r4.mo552c()\n if (r4 != 0) goto L_0x0081\n akp r4 = r1.f533r\n alh r5 = r4.f611a\n awt r4 = r4.f612b\n java.lang.Object r4 = r4.f2566a\n alf r6 = r1.f526k\n r5.mo547a(r4, r6)\n akp r4 = r1.f533r\n long r4 = r4.f623m\n alf r6 = r1.f526k\n long r6 = r6.f669c\n akd r8 = new akd\n alh r9 = p000.alh.f685a\n long r4 = r4 + r6\n r8.<init>(r9, r2, r4)\n r1.f512C = r8\n goto L_0x0086\n L_0x0081:\n L_0x0082:\n goto L_0x0086\n L_0x0083:\n L_0x0084:\n r3 = r26\n L_0x0086:\n akn r4 = r1.f531p\n r5 = r27 ^ 1\n r4.mo454a(r5)\n r1.f539x = r2\n if (r27 == 0) goto L_0x00ae\n akn r4 = r1.f531p\n alh r5 = p000.alh.f685a\n r4.f598a = r5\n java.util.ArrayList r4 = r1.f530o\n int r5 = r4.size()\n if (r5 > 0) goto L_0x00a7\n java.util.ArrayList r4 = r1.f530o\n r4.clear()\n r1.f514E = r2\n goto L_0x00ae\n L_0x00a7:\n java.lang.Object r2 = r4.get(r2)\n akb r2 = (p000.akb) r2\n throw r0\n L_0x00ae:\n if (r3 == 0) goto L_0x00bd\n akp r2 = r1.f533r\n alg r4 = r1.f525j\n alf r5 = r1.f526k\n awt r2 = r2.mo461a(r4, r5)\n r16 = r2\n goto L_0x00c3\n L_0x00bd:\n akp r2 = r1.f533r\n awt r2 = r2.f612b\n r16 = r2\n L_0x00c3:\n r4 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n if (r3 != 0) goto L_0x00d1\n akp r2 = r1.f533r\n long r6 = r2.f623m\n r21 = r6\n goto L_0x00d4\n L_0x00d1:\n r21 = r4\n L_0x00d4:\n if (r3 != 0) goto L_0x00dc\n akp r2 = r1.f533r\n long r2 = r2.f614d\n r9 = r2\n goto L_0x00de\n L_0x00dc:\n r9 = r4\n L_0x00de:\n akp r2 = new akp\n if (r27 != 0) goto L_0x00e8\n akp r3 = r1.f533r\n alh r3 = r3.f611a\n r5 = r3\n goto L_0x00eb\n L_0x00e8:\n alh r3 = p000.alh.f685a\n r5 = r3\n L_0x00eb:\n akp r3 = r1.f533r\n int r11 = r3.f615e\n if (r28 != 0) goto L_0x00f5\n ajh r4 = r3.f616f\n r12 = r4\n goto L_0x00f7\n L_0x00f5:\n r12 = r0\n L_0x00f7:\n if (r27 != 0) goto L_0x00fd\n aye r3 = r3.f618h\n r14 = r3\n goto L_0x0100\n L_0x00fd:\n aye r3 = p000.aye.f2750a\n r14 = r3\n L_0x0100:\n if (r27 != 0) goto L_0x0108\n akp r3 = r1.f533r\n bgr r3 = r3.f619i\n r15 = r3\n goto L_0x010b\n L_0x0108:\n bgr r3 = r1.f521f\n r15 = r3\n L_0x010b:\n r13 = 0\n r19 = 0\n r4 = r2\n r6 = r16\n r7 = r21\n r17 = r21\n r4.<init>(r5, r6, r7, r9, r11, r12, r13, r14, r15, r16, r17, r19, r21)\n r1.f533r = r2\n if (r25 == 0) goto L_0x0125\n awv r2 = r1.f534s\n if (r2 == 0) goto L_0x0125\n r2.mo1475c(r1)\n r1.f534s = r0\n L_0x0125:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m699a(boolean, boolean, boolean, boolean, boolean):void\");\n }", "public void mo12628c() {\n }", "@Test(timeout = 4000)\n public void test077() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1790259313));\n classWriter0.newInteger((-2013884528));\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"LocalVariableTable\";\n stringArray0[1] = \"LocalVariableTable\";\n stringArray0[2] = \"cM6G}.\";\n stringArray0[3] = \"H\";\n classWriter0.newConst(\"cM6G}.\");\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-1790259313), \"9~\\\"GM0+ ?&-(JmN[0f.\", \"Fj)3/|(;sZXz$\", \"LocalVariableTable\", stringArray0, true, true);\n Label label0 = new Label();\n // Undeclared exception!\n try { \n methodWriter0.visitJumpInsn((-2013884528), label0);\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.Frame\", e);\n }\n }", "private void m3989a(org.xmlpull.v1.XmlPullParser r11, android.util.AttributeSet r12, android.view.Menu r13) {\n /*\n r10 = this;\n r4 = 0;\n r1 = 1;\n r6 = 0;\n r7 = new android.support.v7.view.k;\n r7.<init>(r10, r13);\n r0 = r11.getEventType();\n L_0x000c:\n r2 = 2;\n if (r0 != r2) goto L_0x004a;\n L_0x000f:\n r0 = r11.getName();\n r2 = \"menu\";\n r2 = r0.equals(r2);\n if (r2 == 0) goto L_0x0031;\n L_0x001b:\n r0 = r11.next();\n L_0x001f:\n r2 = r4;\n r5 = r6;\n r3 = r0;\n r0 = r6;\n L_0x0023:\n if (r0 != 0) goto L_0x00e1;\n L_0x0025:\n switch(r3) {\n case 1: goto L_0x00d9;\n case 2: goto L_0x0051;\n case 3: goto L_0x0087;\n default: goto L_0x0028;\n };\n L_0x0028:\n r3 = r5;\n L_0x0029:\n r5 = r11.next();\n r9 = r3;\n r3 = r5;\n r5 = r9;\n goto L_0x0023;\n L_0x0031:\n r1 = new java.lang.RuntimeException;\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"Expecting menu, got \";\n r2 = r2.append(r3);\n r0 = r2.append(r0);\n r0 = r0.toString();\n r1.<init>(r0);\n throw r1;\n L_0x004a:\n r0 = r11.next();\n if (r0 != r1) goto L_0x000c;\n L_0x0050:\n goto L_0x001f;\n L_0x0051:\n if (r5 == 0) goto L_0x0055;\n L_0x0053:\n r3 = r5;\n goto L_0x0029;\n L_0x0055:\n r3 = r11.getName();\n r8 = \"group\";\n r8 = r3.equals(r8);\n if (r8 == 0) goto L_0x0066;\n L_0x0061:\n r7.m4001a(r12);\n r3 = r5;\n goto L_0x0029;\n L_0x0066:\n r8 = \"item\";\n r8 = r3.equals(r8);\n if (r8 == 0) goto L_0x0073;\n L_0x006e:\n r7.m4003b(r12);\n r3 = r5;\n goto L_0x0029;\n L_0x0073:\n r8 = \"menu\";\n r8 = r3.equals(r8);\n if (r8 == 0) goto L_0x0084;\n L_0x007b:\n r3 = r7.m4004c();\n r10.m3989a(r11, r12, r3);\n r3 = r5;\n goto L_0x0029;\n L_0x0084:\n r2 = r3;\n r3 = r1;\n goto L_0x0029;\n L_0x0087:\n r3 = r11.getName();\n if (r5 == 0) goto L_0x0096;\n L_0x008d:\n r8 = r3.equals(r2);\n if (r8 == 0) goto L_0x0096;\n L_0x0093:\n r2 = r4;\n r3 = r6;\n goto L_0x0029;\n L_0x0096:\n r8 = \"group\";\n r8 = r3.equals(r8);\n if (r8 == 0) goto L_0x00a3;\n L_0x009e:\n r7.m4000a();\n r3 = r5;\n goto L_0x0029;\n L_0x00a3:\n r8 = \"item\";\n r8 = r3.equals(r8);\n if (r8 == 0) goto L_0x00cd;\n L_0x00ab:\n r3 = r7.m4005d();\n if (r3 != 0) goto L_0x0028;\n L_0x00b1:\n r3 = r7.f2104z;\n if (r3 == 0) goto L_0x00c7;\n L_0x00b7:\n r3 = r7.f2104z;\n r3 = r3.hasSubMenu();\n if (r3 == 0) goto L_0x00c7;\n L_0x00c1:\n r7.m4004c();\n r3 = r5;\n goto L_0x0029;\n L_0x00c7:\n r7.m4002b();\n r3 = r5;\n goto L_0x0029;\n L_0x00cd:\n r8 = \"menu\";\n r3 = r3.equals(r8);\n if (r3 == 0) goto L_0x0028;\n L_0x00d5:\n r0 = r1;\n r3 = r5;\n goto L_0x0029;\n L_0x00d9:\n r0 = new java.lang.RuntimeException;\n r1 = \"Unexpected end of document\";\n r0.<init>(r1);\n throw r0;\n L_0x00e1:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.v7.view.i.a(org.xmlpull.v1.XmlPullParser, android.util.AttributeSet, android.view.Menu):void\");\n }", "static /* synthetic */ android.os.Handler m19-get1(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.-get1(android.telecom.ConnectionServiceAdapterServant):android.os.Handler, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.-get1(android.telecom.ConnectionServiceAdapterServant):android.os.Handler\");\n }", "private final void step4() { switch (b[k])\n\t {\n\t case 'e': if (ends(\"icate\")) { r(\"ic\"); break; }\n\t if (ends(\"ative\")) { r(\"\"); break; }\n\t if (ends(\"alize\")) { r(\"al\"); break; }\n\t break;\n\t case 'i': if (ends(\"iciti\")) { r(\"ic\"); break; }\n\t break;\n\t case 'l': if (ends(\"ical\")) { r(\"ic\"); break; }\n\t if (ends(\"ful\")) { r(\"\"); break; }\n\t break;\n\t case 's': if (ends(\"ness\")) { r(\"\"); break; }\n\t break;\n\t } }", "protected int handlePrevious(int position) {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void method_2046() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void changeJumps(int breakBCI, int delta) {\n int bci = 0;\n int bc;\n\n // Now, adjust any affected instructions.\n while (bci < bytecodesLength) {\n bc = (bytecodes[bci] & 0xFF);\n\n if (((bc >= opc_ifeq) && (bc <= opc_if_acmpne)) || (bc == opc_ifnull) || (bc == opc_ifnonnull) || (bc == opc_goto)\n || (bc == opc_jsr)) {\n changeJump(bci, bci + 1, true, breakBCI, delta);\n } else {\n switch (bc) {\n case opc_goto_w:\n case opc_jsr_w:\n changeJump(bci, bci + 1, false, breakBCI, delta);\n\n break;\n case opc_tableswitch:\n case opc_lookupswitch: {\n int recPad = getOrigSwitchPadding(bci, (bc != opc_tableswitch));\n int oldPad = (recPad != -1) ? recPad : (align(bci + 1) - (bci + 1));\n\n if (bci > breakBCI) {\n int new_bci = bci + delta;\n int newPad = align(new_bci + 1) - (new_bci + 1);\n\n // Do we need to check the padding?\n if (newPad != oldPad) {\n if (recPad == -1) {\n changes.push(new ChangeSwitchPadding(bci, oldPad, (bc != opc_tableswitch)));\n }\n }\n }\n\n // Then the rest, which depends on the kind of switch.\n if (bc == opc_tableswitch) {\n changeJump(bci, bci + 1 + oldPad, false, breakBCI, delta);\n\n // We cannot use the Bytecode_tableswitch abstraction, since the padding might not be correct.\n int lo = getInt(bci + 1 + oldPad + (4 * 1));\n int hi = getInt(bci + 1 + oldPad + (4 * 2));\n int n = hi - lo + 1;\n\n for (int k = 0; k < n; k++) {\n changeJump(bci, bci + 1 + oldPad + (4 * (k + 3)), false, breakBCI, delta);\n }\n\n // Special next-bci calculation here...\n bci += (1 + oldPad + ((n + 3) * 4));\n\n continue;\n } else {\n changeJump(bci, bci + 1 + oldPad, false, breakBCI, delta);\n\n // We cannot use the Bytecode_lookupswitch abstraction, since the padding might not be correct.\n int npairs = getInt(bci + 1 + oldPad + (4 * 1));\n\n for (int k = 0; k < npairs; k++) {\n changeJump(bci, bci + 1 + oldPad + (4 * (2 + (2 * k) + 1)), false, breakBCI, delta);\n }\n\n // Special next-bci calculation here...\n bci += (1 + oldPad + ((2 + (npairs * 2)) * 4));\n\n continue;\n }\n }\n default:\n break;\n }\n }\n\n bci += opcodeLength(bci);\n }\n }", "static void feladat9() {\n\t}", "public void a(int r9) {\n /*\n r8 = this;\n boolean r0 = r8.ea()\n if (r0 != 0) goto L_0x0007\n return\n L_0x0007:\n c.c.a.n.s.e.a.a r0 = r8.ja\n r1 = 0\n java.lang.String r2 = \"paymentOptionsAdapter\"\n if (r0 == 0) goto L_0x021d\n r0.f(r9)\n c.c.a.n.s.e.a.a r9 = r8.ja\n if (r9 == 0) goto L_0x0219\n com.farsitel.bazaar.data.feature.payment.PaymentGateway r9 = r9.f()\n int r0 = c.c.a.e.descriptionTextView\n android.view.View r0 = r8.e(r0)\n android.widget.TextView r0 = (android.widget.TextView) r0\n if (r0 == 0) goto L_0x002a\n java.lang.String r1 = r9.c()\n r0.setText(r1)\n L_0x002a:\n java.lang.String r0 = r9.f()\n int r0 = r0.length()\n r1 = 1\n r2 = 0\n if (r0 != 0) goto L_0x0038\n r0 = 1\n goto L_0x0039\n L_0x0038:\n r0 = 0\n L_0x0039:\n if (r0 == 0) goto L_0x0049\n int r0 = c.c.a.e.subDescriptionTextView\n android.view.View r0 = r8.e(r0)\n android.widget.TextView r0 = (android.widget.TextView) r0\n if (r0 == 0) goto L_0x005d\n c.c.a.d.b.l.a(r0)\n goto L_0x005d\n L_0x0049:\n int r0 = c.c.a.e.subDescriptionTextView\n android.view.View r0 = r8.e(r0)\n android.widget.TextView r0 = (android.widget.TextView) r0\n if (r0 == 0) goto L_0x005d\n c.c.a.d.b.l.c(r0)\n java.lang.String r3 = r9.f()\n r0.setText(r3)\n L_0x005d:\n java.lang.String r0 = r9.h()\n com.farsitel.bazaar.ui.payment.payment.options.PaymentGatewayType r3 = com.farsitel.bazaar.ui.payment.payment.options.PaymentGatewayType.CREDIT\n java.lang.String r3 = r3.f()\n boolean r0 = h.f.b.j.a((java.lang.Object) r0, (java.lang.Object) r3)\n java.lang.String r3 = \"creditTextView\"\n if (r0 == 0) goto L_0x00a6\n java.lang.String r0 = r8.la\n int r0 = r0.length()\n if (r0 <= 0) goto L_0x0079\n r0 = 1\n goto L_0x007a\n L_0x0079:\n r0 = 0\n L_0x007a:\n if (r0 == 0) goto L_0x00a6\n int r0 = c.c.a.e.creditTextView\n android.view.View r0 = r8.e(r0)\n androidx.appcompat.widget.AppCompatTextView r0 = (androidx.appcompat.widget.AppCompatTextView) r0\n h.f.b.j.a((java.lang.Object) r0, (java.lang.String) r3)\n r4 = 2131755581(0x7f10023d, float:1.9142045E38)\n java.lang.Object[] r5 = new java.lang.Object[r1]\n java.lang.String r6 = r8.la\n r5[r2] = r6\n java.lang.String r4 = r8.a((int) r4, (java.lang.Object[]) r5)\n r0.setText(r4)\n int r0 = c.c.a.e.creditTextView\n android.view.View r0 = r8.e(r0)\n androidx.appcompat.widget.AppCompatTextView r0 = (androidx.appcompat.widget.AppCompatTextView) r0\n h.f.b.j.a((java.lang.Object) r0, (java.lang.String) r3)\n c.c.a.d.b.l.c(r0)\n goto L_0x00b4\n L_0x00a6:\n int r0 = c.c.a.e.creditTextView\n android.view.View r0 = r8.e(r0)\n androidx.appcompat.widget.AppCompatTextView r0 = (androidx.appcompat.widget.AppCompatTextView) r0\n h.f.b.j.a((java.lang.Object) r0, (java.lang.String) r3)\n c.c.a.d.b.l.a(r0)\n L_0x00b4:\n int r0 = c.c.a.e.payButton\n android.view.View r0 = r8.e(r0)\n com.farsitel.bazaar.widget.LoadingButton r0 = (com.farsitel.bazaar.widget.LoadingButton) r0\n boolean r3 = r8.b(r9)\n if (r3 == 0) goto L_0x00cf\n r3 = 2131755250(0x7f1000f2, float:1.9141374E38)\n java.lang.String r3 = r8.b((int) r3)\n java.lang.String r4 = \"getString(R.string.increase_credit)\"\n h.f.b.j.a((java.lang.Object) r3, (java.lang.String) r4)\n goto L_0x00db\n L_0x00cf:\n r3 = 2131755362(0x7f100162, float:1.9141601E38)\n java.lang.String r3 = r8.b((int) r3)\n java.lang.String r4 = \"getString(R.string.pay)\"\n h.f.b.j.a((java.lang.Object) r3, (java.lang.String) r4)\n L_0x00db:\n r0.setText(r3)\n java.lang.String r0 = r9.a()\n java.lang.String r3 = \"null cannot be cast to non-null type kotlin.CharSequence\"\n if (r0 == 0) goto L_0x0213\n java.lang.CharSequence r0 = h.k.n.f(r0)\n java.lang.String r0 = r0.toString()\n int r0 = r0.length()\n if (r0 != 0) goto L_0x00f6\n r0 = 1\n goto L_0x00f7\n L_0x00f6:\n r0 = 0\n L_0x00f7:\n java.lang.String r4 = \"agreementDivider\"\n r5 = 2131755043(0x7f100023, float:1.9140954E38)\n if (r0 == 0) goto L_0x016f\n java.lang.String r9 = r8.ma\n if (r9 == 0) goto L_0x0169\n java.lang.CharSequence r9 = h.k.n.f(r9)\n java.lang.String r9 = r9.toString()\n int r9 = r9.length()\n if (r9 != 0) goto L_0x0112\n r9 = 1\n goto L_0x0113\n L_0x0112:\n r9 = 0\n L_0x0113:\n if (r9 == 0) goto L_0x0133\n int r9 = c.c.a.e.agreementDivider\n android.view.View r9 = r8.e(r9)\n h.f.b.j.a((java.lang.Object) r9, (java.lang.String) r4)\n c.c.a.d.b.l.a(r9)\n int r9 = c.c.a.e.agreementTextView\n android.view.View r9 = r8.e(r9)\n androidx.appcompat.widget.AppCompatTextView r9 = (androidx.appcompat.widget.AppCompatTextView) r9\n java.lang.String r0 = \"agreementTextView\"\n h.f.b.j.a((java.lang.Object) r9, (java.lang.String) r0)\n c.c.a.d.b.l.a(r9)\n goto L_0x0200\n L_0x0133:\n int r9 = c.c.a.e.agreementDivider\n android.view.View r9 = r8.e(r9)\n h.f.b.j.a((java.lang.Object) r9, (java.lang.String) r4)\n c.c.a.d.b.l.c(r9)\n int r9 = c.c.a.e.agreementTextView\n android.view.View r9 = r8.e(r9)\n androidx.appcompat.widget.AppCompatTextView r9 = (androidx.appcompat.widget.AppCompatTextView) r9\n c.c.a.d.b.l.c(r9)\n java.lang.Object[] r0 = new java.lang.Object[r1]\n java.lang.String r1 = r8.ma\n if (r1 == 0) goto L_0x0163\n java.lang.CharSequence r1 = h.k.n.f(r1)\n java.lang.String r1 = r1.toString()\n r0[r2] = r1\n java.lang.String r0 = r8.a((int) r5, (java.lang.Object[]) r0)\n r9.setText(r0)\n goto L_0x0200\n L_0x0163:\n kotlin.TypeCastException r9 = new kotlin.TypeCastException\n r9.<init>(r3)\n throw r9\n L_0x0169:\n kotlin.TypeCastException r9 = new kotlin.TypeCastException\n r9.<init>(r3)\n throw r9\n L_0x016f:\n java.lang.String r0 = r8.ma\n if (r0 == 0) goto L_0x020d\n java.lang.CharSequence r0 = h.k.n.f(r0)\n java.lang.String r0 = r0.toString()\n int r0 = r0.length()\n if (r0 != 0) goto L_0x0183\n r0 = 1\n goto L_0x0184\n L_0x0183:\n r0 = 0\n L_0x0184:\n if (r0 == 0) goto L_0x01a3\n java.lang.Object[] r0 = new java.lang.Object[r1]\n java.lang.String r9 = r9.a()\n if (r9 == 0) goto L_0x019d\n java.lang.CharSequence r9 = h.k.n.f(r9)\n java.lang.String r9 = r9.toString()\n r0[r2] = r9\n java.lang.String r9 = r8.a((int) r5, (java.lang.Object[]) r0)\n goto L_0x01e1\n L_0x019d:\n kotlin.TypeCastException r9 = new kotlin.TypeCastException\n r9.<init>(r3)\n throw r9\n L_0x01a3:\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n r0.<init>()\n java.lang.Object[] r6 = new java.lang.Object[r1]\n java.lang.String r7 = r8.ma\n if (r7 == 0) goto L_0x0207\n java.lang.CharSequence r7 = h.k.n.f(r7)\n java.lang.String r7 = r7.toString()\n r6[r2] = r7\n java.lang.String r6 = r8.a((int) r5, (java.lang.Object[]) r6)\n r0.append(r6)\n java.lang.String r6 = \"\\n\\n\"\n r0.append(r6)\n java.lang.Object[] r1 = new java.lang.Object[r1]\n java.lang.String r9 = r9.a()\n if (r9 == 0) goto L_0x0201\n java.lang.CharSequence r9 = h.k.n.f(r9)\n java.lang.String r9 = r9.toString()\n r1[r2] = r9\n java.lang.String r9 = r8.a((int) r5, (java.lang.Object[]) r1)\n r0.append(r9)\n java.lang.String r9 = r0.toString()\n L_0x01e1:\n java.lang.String r0 = \"if (agreementDescription…ent.trim())\\n }\"\n h.f.b.j.a((java.lang.Object) r9, (java.lang.String) r0)\n int r0 = c.c.a.e.agreementDivider\n android.view.View r0 = r8.e(r0)\n h.f.b.j.a((java.lang.Object) r0, (java.lang.String) r4)\n c.c.a.d.b.l.c(r0)\n int r0 = c.c.a.e.agreementTextView\n android.view.View r0 = r8.e(r0)\n androidx.appcompat.widget.AppCompatTextView r0 = (androidx.appcompat.widget.AppCompatTextView) r0\n c.c.a.d.b.l.c(r0)\n r0.setText(r9)\n L_0x0200:\n return\n L_0x0201:\n kotlin.TypeCastException r9 = new kotlin.TypeCastException\n r9.<init>(r3)\n throw r9\n L_0x0207:\n kotlin.TypeCastException r9 = new kotlin.TypeCastException\n r9.<init>(r3)\n throw r9\n L_0x020d:\n kotlin.TypeCastException r9 = new kotlin.TypeCastException\n r9.<init>(r3)\n throw r9\n L_0x0213:\n kotlin.TypeCastException r9 = new kotlin.TypeCastException\n r9.<init>(r3)\n throw r9\n L_0x0219:\n h.f.b.j.c(r2)\n throw r1\n L_0x021d:\n h.f.b.j.c(r2)\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.farsitel.bazaar.ui.payment.payment.options.PaymentOptionsFragment.a(int):void\");\n }", "private void m3011a(android.content.Context r6, int r7) {\n /*\n r5 = this;\n android.content.res.Resources r0 = r6.getResources()\n android.content.res.XmlResourceParser r7 = r0.getXml(r7)\n r0 = 0\n int r1 = r7.getEventType() // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n L_0x000d:\n r2 = 1\n if (r1 == r2) goto L_0x009f\n if (r1 == 0) goto L_0x008d\n switch(r1) {\n case 2: goto L_0x0017;\n case 3: goto L_0x0090;\n default: goto L_0x0015;\n } // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n L_0x0015:\n goto L_0x0090\n L_0x0017:\n java.lang.String r1 = r7.getName() // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n r3 = -1\n int r4 = r1.hashCode() // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n switch(r4) {\n case -1349929691: goto L_0x004b;\n case 80204913: goto L_0x0041;\n case 1382829617: goto L_0x0038;\n case 1657696882: goto L_0x002e;\n case 1901439077: goto L_0x0024;\n default: goto L_0x0023;\n } // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n L_0x0023:\n goto L_0x0055\n L_0x0024:\n java.lang.String r2 = \"Variant\"\n boolean r2 = r1.equals(r2) // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n if (r2 == 0) goto L_0x0055\n r2 = 3\n goto L_0x0056\n L_0x002e:\n java.lang.String r2 = \"layoutDescription\"\n boolean r2 = r1.equals(r2) // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n if (r2 == 0) goto L_0x0055\n r2 = 0\n goto L_0x0056\n L_0x0038:\n java.lang.String r4 = \"StateSet\"\n boolean r4 = r1.equals(r4) // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n if (r4 == 0) goto L_0x0055\n goto L_0x0056\n L_0x0041:\n java.lang.String r2 = \"State\"\n boolean r2 = r1.equals(r2) // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n if (r2 == 0) goto L_0x0055\n r2 = 2\n goto L_0x0056\n L_0x004b:\n java.lang.String r2 = \"ConstraintSet\"\n boolean r2 = r1.equals(r2) // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n if (r2 == 0) goto L_0x0055\n r2 = 4\n goto L_0x0056\n L_0x0055:\n r2 = -1\n L_0x0056:\n switch(r2) {\n case 0: goto L_0x0090;\n case 1: goto L_0x0090;\n case 2: goto L_0x006b;\n case 3: goto L_0x0060;\n case 4: goto L_0x005c;\n default: goto L_0x0059;\n } // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n L_0x0059:\n java.lang.String r2 = \"ConstraintLayoutStates\"\n goto L_0x0078\n L_0x005c:\n r5.m3012a(r6, r7) // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n goto L_0x0090\n L_0x0060:\n androidx.constraintlayout.widget.d$b r1 = new androidx.constraintlayout.widget.d$b // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n r1.<init>(r6, r7) // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n if (r0 == 0) goto L_0x0090\n r0.mo3288a(r1) // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n goto L_0x0090\n L_0x006b:\n androidx.constraintlayout.widget.d$a r0 = new androidx.constraintlayout.widget.d$a // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n r0.<init>(r6, r7) // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n android.util.SparseArray<androidx.constraintlayout.widget.d$a> r1 = r5.f2572e // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n int r2 = r0.f2575a // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n r1.put(r2, r0) // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n goto L_0x0090\n L_0x0078:\n java.lang.StringBuilder r3 = new java.lang.StringBuilder // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n r3.<init>() // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n java.lang.String r4 = \"unknown tag \"\n r3.append(r4) // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n r3.append(r1) // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n java.lang.String r1 = r3.toString() // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n android.util.Log.v(r2, r1) // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n goto L_0x0090\n L_0x008d:\n r7.getName() // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n L_0x0090:\n int r1 = r7.next() // Catch:{ XmlPullParserException -> 0x009b, IOException -> 0x0096 }\n goto L_0x000d\n L_0x0096:\n r6 = move-exception\n r6.printStackTrace()\n goto L_0x009f\n L_0x009b:\n r6 = move-exception\n r6.printStackTrace()\n L_0x009f:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.constraintlayout.widget.C0806d.m3011a(android.content.Context, int):void\");\n }", "void handleCodeChange(Injector r) {\n r.handleSwitchPadding(bci, padding, isLookupSwitch);\n }", "private void level4() {\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 }", "public void mo1976s() throws cf {\r\n }", "static void feladat4() {\n\t}", "public final void mo91715d() {\n }" ]
[ "0.64855826", "0.6483132", "0.6401096", "0.63408256", "0.63189226", "0.63001037", "0.62381727", "0.6210813", "0.61889416", "0.6184843", "0.6156618", "0.60819614", "0.60459995", "0.60404", "0.6033794", "0.6018485", "0.5975837", "0.5930047", "0.5924787", "0.591991", "0.5915743", "0.5915276", "0.5907095", "0.5904717", "0.5899738", "0.5893357", "0.5888701", "0.58837795", "0.58718646", "0.5837669", "0.58241916", "0.58159024", "0.58079946", "0.57961786", "0.5792519", "0.57845426", "0.5783804", "0.57671845", "0.5752894", "0.5752143", "0.57447225", "0.57437205", "0.57187384", "0.57112664", "0.5710798", "0.5707778", "0.5706982", "0.5706982", "0.5703942", "0.5701627", "0.5697576", "0.5692558", "0.56844604", "0.56700873", "0.56673044", "0.5666406", "0.56560344", "0.5633729", "0.5633278", "0.5630242", "0.5622325", "0.5619838", "0.56147224", "0.56100595", "0.5605803", "0.560348", "0.5602255", "0.5602255", "0.5597333", "0.5596639", "0.55955726", "0.5585906", "0.55828834", "0.5582247", "0.5579987", "0.5579346", "0.5573796", "0.55686384", "0.55682427", "0.55636346", "0.55596924", "0.55478024", "0.55372703", "0.55357546", "0.553079", "0.552775", "0.5526537", "0.551337", "0.55069077", "0.55040985", "0.54907864", "0.5485259", "0.5485229", "0.5474077", "0.54713875", "0.5470539", "0.5464887", "0.5463596", "0.5463145", "0.54604226", "0.54570323" ]
0.0
-1
/ JADX WARNING: Missing exception handler attribute for start block: B:22:0x0062 / Code decompiled incorrectly, please refer to instructions dump.
public java.net.HttpURLConnection buildConnectionWithStream(ohos.miscservices.httpaccess.data.RequestData r6) { /* // Method dump skipped, instructions count: 137 */ throw new UnsupportedOperationException("Method not decompiled: ohos.miscservices.httpaccess.HttpFetchImpl.buildConnectionWithStream(ohos.miscservices.httpaccess.data.RequestData):java.net.HttpURLConnection"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void m5770d() throws C0841b;", "void m5771e() throws C0841b;", "void m5768b() throws C0841b;", "private void m14210a(java.io.IOException r4, java.io.IOException r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = f12370a;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = f12370a;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = 1;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = new java.lang.Object[r1];\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r2 = 0;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1[r2] = r5;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r0.invoke(r4, r1);\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.connection.RouteException.a(java.io.IOException, java.io.IOException):void\");\n }", "public void 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 void m9741j() throws cf {\r\n }", "public void mo1944a() throws cf {\r\n }", "public void mo1964g() throws cf {\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_7086() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void mo3613a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f18081b;\n monitor-enter(r0);\n r1 = r4.f18080a;\t Catch:{ all -> 0x001f }\n if (r1 == 0) goto L_0x0009;\t Catch:{ all -> 0x001f }\n L_0x0007:\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n return;\t Catch:{ all -> 0x001f }\n L_0x0009:\n r1 = 1;\t Catch:{ all -> 0x001f }\n r4.f18080a = r1;\t Catch:{ all -> 0x001f }\n r2 = r4.f18081b;\t Catch:{ all -> 0x001f }\n r3 = r2.f12200d;\t Catch:{ all -> 0x001f }\n r3 = r3 + r1;\t Catch:{ all -> 0x001f }\n r2.f12200d = r3;\t Catch:{ all -> 0x001f }\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n r0 = r4.f18083d;\n okhttp3.internal.C2933c.m14194a(r0);\n r0 = r4.f18082c;\t Catch:{ IOException -> 0x001e }\n r0.m14100c();\t Catch:{ IOException -> 0x001e }\n L_0x001e:\n return;\n L_0x001f:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a.a():void\");\n }", "private 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 }", "void m5769c() throws C0841b;", "protected void method_2247() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "@Override // X.AnonymousClass0PN\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void A0D() {\n /*\n r5 = this;\n super.A0D()\n X.08d r0 = r5.A05\n X.0OQ r4 = r0.A04()\n X.0Rk r3 = r4.A00() // Catch:{ all -> 0x003d }\n X.0BK r2 = r4.A04 // Catch:{ all -> 0x0036 }\n java.lang.String r1 = \"DELETE FROM receipt_device\"\n java.lang.String r0 = \"CLEAR_TABLE_RECEIPT_DEVICE\"\n r2.A0C(r1, r0) // Catch:{ all -> 0x0036 }\n X.08m r1 = r5.A03 // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"receipt_device_migration_complete\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_index\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_retry\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n r3.A00() // Catch:{ all -> 0x0036 }\n r3.close()\n r4.close()\n java.lang.String r0 = \"ReceiptDeviceStore/ReceiptDeviceDatabaseMigration/resetMigration/done\"\n com.whatsapp.util.Log.i(r0)\n return\n L_0x0036:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x0038 }\n L_0x0038:\n r0 = move-exception\n r3.close() // Catch:{ all -> 0x003c }\n L_0x003c:\n throw r0\n L_0x003d:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x003f }\n L_0x003f:\n r0 = move-exception\n r4.close() // Catch:{ all -> 0x0043 }\n L_0x0043:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C43661yk.A0D():void\");\n }", "void mo57276a(Exception exc);", "public void mo1976s() throws cf {\r\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 }", "public void mo1966i() throws cf {\r\n }", "protected void method_2141() {\r\n // $FF: Couldn't be decompiled\r\n }", "private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }", "static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }", "public 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 void mo1962e() throws cf {\r\n }", "public void mo1960c() throws cf {\r\n }", "static void m13383b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x000a }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x000a }\n r2 = 0;\t Catch:{ Exception -> 0x000a }\n r0.delete(r1, r2, r2);\t Catch:{ Exception -> 0x000a }\n L_0x000a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.b():void\");\n }", "public void mo1963f() throws cf {\r\n }", "public void method_7081() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_1148() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2139() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_2226() {\r\n // $FF: Couldn't be decompiled\r\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1790259326));\n classWriter0.newInteger((-2013884533));\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"LocalVariableTable\";\n stringArray0[1] = \"LocalVariableTable\";\n stringArray0[2] = \"cM6G}.\";\n stringArray0[3] = \"H\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-2013884533), \"H\", \"cM6G}.\", \"cM6G}.\", stringArray0, false, false);\n methodWriter0.visitLdcInsn(\"H\");\n // Undeclared exception!\n try { \n methodWriter0.visitLineNumber(1, (Label) null);\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.MethodWriter\", e);\n }\n }", "@Test(timeout = 4000)\n public void test034() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(1048576);\n ClassWriter classWriter1 = new ClassWriter(285212630);\n Item item0 = classWriter1.newFieldItem(\"%B\\\"F$,FHLc-:\", \"%B\\\"F$,FHLc-:\", \"%B\\\"F$,FHLc-:\");\n classWriter1.toByteArray();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Frame frame1 = new Frame();\n classWriter0.visitField(1048576, \"%B\\\"F$,FHLc-:\", \"%B\\\"F$,FHLc-:\", \"u1;`1Jz{4~0\", (Object) null);\n // Undeclared exception!\n try { \n frame1.execute(191, 1, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n int int0 = 2320;\n ClassWriter classWriter0 = new ClassWriter(2320);\n String string0 = \"c6c\\\\)y~[K\";\n String[] stringArray0 = new String[0];\n boolean boolean0 = true;\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2127, \"c6c)y~[K\", \"c6c)y~[K\", \"c6c)y~[K\", stringArray0, true, true);\n Label label0 = null;\n // Undeclared exception!\n try { \n methodWriter0.visitLineNumber(115, (Label) null);\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.MethodWriter\", e);\n }\n }", "public final void mo83182c_(Exception exc) {\n }", "public void method_2250() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_28() {\r\n // $FF: Couldn't be decompiled\r\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(2694);\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-2160), \"\", \"\", \"\", (String[]) null, false, false);\n // Undeclared exception!\n try { \n methodWriter0.visitMethodInsn(1, \"\", \"Qu&Dpe|l~l,7f={:f!\", (String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(3131);\n FieldWriter fieldWriter0 = (FieldWriter)classWriter0.visitField(182, \"IK\", \"IK\", \"IK\", \"The FileFilter must not be null\");\n classWriter0.firstField = fieldWriter0;\n ClassWriter classWriter1 = new ClassWriter(1);\n Item item0 = classWriter0.key2;\n fieldWriter0.getSize();\n fieldWriter0.visitAnnotation(\"Exceptions\", false);\n classWriter1.newFloat((-2110.0F));\n item0.hashCode = 231;\n // Undeclared exception!\n try { \n frame0.execute(182, 1, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\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 }", "@Test(timeout = 4000)\n public void test104() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(0);\n ClassWriter classWriter1 = new ClassWriter(2);\n classWriter0.visitSource(\"&l{u&egzGn.@\", \"&l{u&egzGn.@\");\n ClassWriter classWriter2 = new ClassWriter(0);\n ClassWriter classWriter3 = new ClassWriter(1);\n Item item0 = classWriter1.newLong(1);\n Item item1 = new Item(1, item0);\n // Undeclared exception!\n try { \n frame0.execute(194, 1, classWriter0, item1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public void method_2046() {\r\n // $FF: Couldn't be decompiled\r\n }", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.FLOAT_TYPE;\n // Undeclared exception!\n try { \n frame0.execute(5, 3, (ClassWriter) null, (Item) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\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 }", "@Test(timeout = 4000)\n public void test077() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1790259313));\n classWriter0.newInteger((-2013884528));\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"LocalVariableTable\";\n stringArray0[1] = \"LocalVariableTable\";\n stringArray0[2] = \"cM6G}.\";\n stringArray0[3] = \"H\";\n classWriter0.newConst(\"cM6G}.\");\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-1790259313), \"9~\\\"GM0+ ?&-(JmN[0f.\", \"Fj)3/|(;sZXz$\", \"LocalVariableTable\", stringArray0, true, true);\n Label label0 = new Label();\n // Undeclared exception!\n try { \n methodWriter0.visitJumpInsn((-2013884528), label0);\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.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(32767);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"tE\";\n stringArray0[1] = \"tE\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 32767, \"&h'pH__a\", \"tE\", \"org.objectweb.asm.jip.Attribute\", stringArray0, false, false);\n MethodWriter methodWriter1 = new MethodWriter(classWriter0, 2, \"org.objectweb.asm.jip.Attribute\", \"_b}n0f['\", \"_b}n0f['\", stringArray0, false, false);\n Frame frame0 = new Frame();\n Label label0 = frame0.owner;\n MethodWriter methodWriter2 = classWriter0.firstMethod;\n methodWriter2.visitTypeInsn(262144, \"_b}n0f['\");\n methodWriter2.visitTypeInsn(1639, \"tE\");\n // Undeclared exception!\n try { \n methodWriter0.visitLocalVariable(\"tE\", \"tE\", \"org.objectweb.asm.jip.Attribute\", (Label) null, (Label) null, (-2699));\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.MethodWriter\", e);\n }\n }", "@Test(timeout = 4000)\n public void test040() throws Throwable {\n Frame frame0 = new Frame();\n Type.getReturnType(\"Zu.y \");\n Type type0 = Type.DOUBLE_TYPE;\n Type type1 = Type.DOUBLE_TYPE;\n Type type2 = Type.VOID_TYPE;\n Type type3 = Type.BOOLEAN_TYPE;\n Type type4 = Type.FLOAT_TYPE;\n ClassWriter classWriter0 = new ClassWriter(16777222);\n Item item0 = classWriter0.key2;\n // Undeclared exception!\n try { \n frame0.execute(158, 76, (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = null;\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n Type type3 = Type.DOUBLE_TYPE;\n Item item0 = new Item((-532));\n int int0 = 180;\n // Undeclared exception!\n try { \n frame0.execute(180, 4, (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "static void method_6338() {\r\n // $FF: Couldn't be decompiled\r\n }", "public JCatchBlock _catch(final JClass exception) {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: nop \n // 1: nop \n // 2: nop \n // 3: laload \n // 4: nop \n // 5: aconst_null \n // 6: nop \n // 7: aconst_null \n // 8: nop \n // 9: nop \n // 10: nop \n // 11: iconst_2 \n // 12: aload_0 /* this */\n // 13: getfield com/sun/codemodel/JTryBlock.body:Lcom/sun/codemodel/JBlock;\n // 16: areturn \n // 17: nop \n // 18: nop \n // 19: nop \n // 20: iconst_m1 \n // 21: nop \n // LocalVariableTable:\n // Start Length Slot Name Signature\n // ----- ------ ---- --------- -------------------------------\n // 0 22 0 this Lcom/sun/codemodel/JTryBlock;\n // 0 22 1 exception Lcom/sun/codemodel/JClass;\n // 9 13 2 cb Lcom/sun/codemodel/JCatchBlock;\n // \n // The error that occurred was:\n // \n // java.lang.ArrayIndexOutOfBoundsException\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "@Test(timeout = 4000)\n public void test023() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.visitSource(\"JSR/RET are not suppPrtej with computeFrames option\", (String) null);\n int int0 = Frame.INTEGER;\n Item item0 = classWriter0.newInteger((-1786));\n int int1 = 187;\n // Undeclared exception!\n try { \n frame0.execute(187, 49, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(1048576);\n ClassWriter classWriter1 = new ClassWriter(285212648);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n Item item0 = classWriter1.newFieldItem(\"%B\\\"F$,FHLc-:\", \"%B\\\"F$,FHLc-:\", \"%B\\\"F$,FHLc-:\");\n classWriter1.toByteArray();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n MethodWriter methodWriter0 = classWriter1.lastMethod;\n classWriter1.lastMethod = null;\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"QllX9_#%O~uxqo\");\n item0.strVal3 = \"qld m+eDWv\";\n // Undeclared exception!\n try { \n frame0.execute((-1044), (-3128), classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public void method_2197() {\r\n // $FF: Couldn't be decompiled\r\n }", "public int getEventCode() {\n/* 41 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private static boolean m20205b(java.lang.Throwable r3) {\n /*\n r0 = r3\n L_0x0001:\n if (r0 == 0) goto L_0x0015\n boolean r1 = r0 instanceof com.google.android.exoplayer2.upstream.DataSourceException\n if (r1 == 0) goto L_0x0010\n r1 = r0\n com.google.android.exoplayer2.upstream.DataSourceException r1 = (com.google.android.exoplayer2.upstream.DataSourceException) r1\n int r1 = r1.f18593a\n if (r1 != 0) goto L_0x0010\n r2 = 1\n return r2\n L_0x0010:\n java.lang.Throwable r0 = r0.getCause()\n goto L_0x0001\n L_0x0015:\n r1 = 0\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.upstream.cache.C8465b.m20205b(java.io.IOException):boolean\");\n }", "@Test(timeout = 4000)\n public void test079() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.visitSource(\"JSR/RET are not suppPrtej with computeFrames option\", (String) null);\n ClassWriter classWriter1 = new ClassWriter((-2425));\n Item item0 = classWriter1.newLong(1);\n int int0 = (-1981);\n Item item1 = new Item((-1981), item0);\n item1.next = item0;\n // Undeclared exception!\n try { \n frame0.execute(175, (-1981), classWriter0, item1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test126() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Class<String> class0 = String.class;\n Type.getDescriptor(class0);\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.FLOAT_TYPE;\n typeArray0[6] = type6;\n Type type7 = Type.SHORT_TYPE;\n Item item0 = new Item();\n // Undeclared exception!\n try { \n frame0.execute(6, 189, (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\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 }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.visitSource(\"JSR/RET are not suppPrtej with computeFrames option\", (String) null);\n byte[] byteArray0 = new byte[0];\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n Item item0 = classWriter0.newClassItem(\"java/lang/String\");\n classWriter0.newLong((byte) (-51));\n // Undeclared exception!\n try { \n frame0.execute((byte) (-99), (byte) (-51), classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test105() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(23);\n classWriter0.toByteArray();\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \".JAR\", \".JAR\", \".JAR\", (String[]) null, false, false);\n Attribute attribute0 = new Attribute(\"LineNumberTable\");\n methodWriter0.getSize();\n // Undeclared exception!\n try { \n methodWriter0.visitFrame(0, 1, (Object[]) null, 23, (Object[]) null);\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.MethodWriter\", e);\n }\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n Frame frame0 = new Frame();\n Type type0 = Type.DOUBLE_TYPE;\n Type type1 = Type.DOUBLE_TYPE;\n Label label0 = new Label();\n label0.info = (Object) label0;\n Item item0 = new Item(10);\n type0.getClassName();\n int[] intArray0 = new int[7];\n intArray0[0] = 1;\n intArray0[1] = 4;\n intArray0[2] = 1;\n intArray0[3] = 25165824;\n intArray0[4] = 5;\n intArray0[5] = 13;\n intArray0[6] = 1;\n frame0.inputLocals = intArray0;\n // Undeclared exception!\n try { \n frame0.execute(128, 150, (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public void mo37873b() {\n try {\n C13262e.this.f34192f.mo38032a(this.f34247f);\n } catch (IOException e) {\n C13202e d = C13202e.m34581d();\n StringBuilder sb = new StringBuilder();\n sb.append(\"Http2Connection.Listener failure for \");\n sb.append(C13262e.this.f34194h);\n d.mo37897a(4, sb.toString(), (Throwable) e);\n try {\n this.f34247f.mo38133a(C13256a.PROTOCOL_ERROR, e);\n } catch (IOException unused) {\n }\n }\n }", "public void method_2113() {\r\n // $FF: Couldn't be decompiled\r\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 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 }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(16777267);\n Class<Object> class0 = Object.class;\n Type.getType(class0);\n Type type0 = Type.BYTE_TYPE;\n Type.getObjectType(\"The prefix must not be null\");\n Type type1 = Type.INT_TYPE;\n int[] intArray0 = new int[8];\n intArray0[0] = 6;\n intArray0[1] = 7;\n intArray0[2] = 2;\n intArray0[3] = 1;\n intArray0[4] = 2;\n intArray0[5] = 4;\n intArray0[6] = 9;\n intArray0[7] = 4;\n frame0.inputStack = intArray0;\n Item item0 = new Item();\n item0.hashCode = 1687;\n // Undeclared exception!\n try { \n frame0.execute(111, 164, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n Frame frame0 = new Frame();\n Type type0 = Type.DOUBLE_TYPE;\n Type type1 = Type.INT_TYPE;\n Type type2 = Type.INT_TYPE;\n Type type3 = Type.DOUBLE_TYPE;\n Type type4 = Type.INT_TYPE;\n Type type5 = Type.DOUBLE_TYPE;\n Type type6 = Type.DOUBLE_TYPE;\n Item item0 = new Item(7);\n // Undeclared exception!\n try { \n frame0.execute(77, 2562, (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test017() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(1432);\n Type type0 = Type.BYTE_TYPE;\n classWriter0.toByteArray();\n // Undeclared exception!\n try { \n frame0.execute(24, (-338), classWriter0, (Item) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test105() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Type type0 = Type.DOUBLE_TYPE;\n Type type1 = Type.VOID_TYPE;\n Type type2 = Type.BOOLEAN_TYPE;\n Type type3 = Type.FLOAT_TYPE;\n Type type4 = Type.SHORT_TYPE;\n ClassWriter classWriter0 = new ClassWriter(158);\n Item item0 = classWriter0.key2;\n Item item1 = new Item(10);\n // Undeclared exception!\n try { \n frame0.execute(176, 0, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public void mo5385r() {\n throw null;\n }", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter(16777228);\n ClassWriter classWriter1 = new ClassWriter(2);\n ClassWriter classWriter2 = new ClassWriter(2);\n Item item0 = classWriter2.newLong(2);\n classWriter1.newLong(2178L);\n classWriter2.toByteArray();\n // Undeclared exception!\n try { \n frame0.execute(197, (-5054), classWriter2, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(82);\n String[] stringArray0 = new String[5];\n stringArray0[0] = \"wheel.asm.Frame\";\n stringArray0[1] = \"wheel.asm.Frame\";\n stringArray0[2] = \"wheel.asm.Frame\";\n int[] intArray0 = new int[8];\n intArray0[0] = 82;\n intArray0[1] = 1;\n intArray0[2] = (-2095);\n intArray0[3] = 82;\n intArray0[4] = 82;\n intArray0[5] = 82;\n intArray0[6] = (-268435456);\n intArray0[7] = (-106);\n frame0.inputLocals = intArray0;\n stringArray0[3] = \"wheel.asm.Frame\";\n stringArray0[4] = \"wheel.asm.Frame\";\n classWriter0.visit(82, (-106), \"wheel.asm.Frame\", \"wheel.asm.Frame\", \"wheel.asm.Frame\", stringArray0);\n // Undeclared exception!\n try { \n frame0.execute(170, 82, classWriter0, (Item) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test044() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(4096);\n ClassWriter classWriter1 = new ClassWriter((-2894));\n String[] stringArray0 = new String[7];\n stringArray0[0] = \"ConstantValue\";\n stringArray0[1] = \"LocalVariableTable\";\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n stringArray0[2] = \"ConstantValue\";\n stringArray0[3] = \"ConstantValue\";\n stringArray0[4] = \"0T1MW_`O#}<L\";\n stringArray0[5] = \"h#w=z5(0SfaM)DKLY\";\n stringArray0[6] = \"Synthetic\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 1, \"ConstantValue\", \"h#w=z5(0SfaM)DKLY\", \"Synthetic\", stringArray0, true, false);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"LocalVariableTable\");\n Label label0 = new Label();\n Edge edge0 = label0.successors;\n // Undeclared exception!\n try { \n methodWriter0.visitMethodInsn((-2894), \"/#p[v!vM>^U#((tz?0\", \"0T1MW_`O#}<L\", \"Code\");\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n Label label0 = new Label();\n label0.getFirst();\n ClassWriter classWriter0 = new ClassWriter(3002);\n Item item0 = classWriter0.newFieldItem(\"zOfq\", \"zv)])\\\"nPel4&5\", \"\");\n ClassWriter classWriter1 = new ClassWriter(1);\n ClassWriter classWriter2 = new ClassWriter((-201));\n int int0 = Frame.INTEGER;\n classWriter1.newInteger(172);\n Frame frame0 = new Frame();\n // Undeclared exception!\n try { \n frame0.execute(12, (-1108), classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test015() throws Throwable {\n Frame frame0 = new Frame();\n Type type0 = Type.DOUBLE_TYPE;\n Type type1 = Type.DOUBLE_TYPE;\n Label label0 = new Label();\n label0.info = (Object) label0;\n Item item0 = new Item(10);\n type0.getClassName();\n int[] intArray0 = new int[7];\n intArray0[0] = 1;\n intArray0[1] = 4;\n intArray0[2] = 1;\n intArray0[3] = 25165824;\n intArray0[4] = 5;\n intArray0[5] = 13;\n intArray0[6] = 1;\n frame0.inputLocals = intArray0;\n // Undeclared exception!\n try { \n frame0.execute(19, 1243, (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1790259326));\n int int0 = (-2013884528);\n Item item0 = classWriter0.key;\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"H\";\n stringArray0[1] = \"H\";\n stringArray0[2] = \"cM6G}.\";\n stringArray0[3] = \"H\";\n String string0 = \"!`EadfDEPz-?X.0{\";\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"!`EadfDEPz-?X.0{\");\n classWriter0.newConst(\"cM6G}.\");\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-1790259326), \"9~\\\"GM0+ ?&-(JmN[0f.\", \"Fj)3/|(;sZXz$\", \"H\", stringArray0, true, false);\n Label label0 = new Label();\n // Undeclared exception!\n try { \n methodWriter0.visitJumpInsn((-2013884528), label0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -2013884528\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "public synchronized void mo28699e() {\n if (mo27566d()) {\n throw new PooledByteBuffer.C3959a();\n }\n }", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter(16777228);\n ClassWriter classWriter1 = new ClassWriter(2);\n Item item0 = classWriter0.newFieldItem(\"\", \"\", \"T~1S2uS7<aMtHqcUL\");\n Frame frame1 = new Frame();\n // Undeclared exception!\n try { \n frame1.execute(154, 1, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\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 }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.VOID_TYPE;\n Type type7 = Type.BOOLEAN_TYPE;\n Type type8 = Type.FLOAT_TYPE;\n Type type9 = Type.SHORT_TYPE;\n ClassWriter classWriter0 = new ClassWriter(9);\n Item item0 = classWriter0.key2;\n Item item1 = new Item((-1541));\n // Undeclared exception!\n try { \n frame0.execute(9, 0, (ClassWriter) null, item1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test038() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.toByteArray();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Item item0 = classWriter0.newDouble(2);\n // Undeclared exception!\n try { \n frame0.execute(152, (-1776), classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(8);\n FieldWriter fieldWriter0 = new FieldWriter(classWriter0, 8, \"\", \"\", \"\", \"\");\n Attribute attribute0 = new Attribute(\"Signature\");\n fieldWriter0.visitAttribute(attribute0);\n ByteVector byteVector0 = classWriter0.pool;\n // Undeclared exception!\n try { \n fieldWriter0.put(byteVector0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Attribute\", e);\n }\n }", "public final void mo91715d() {\n }", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.visitSource(\"JSR/RET are not suppPrtej with computeFrames option\", (String) null);\n ClassWriter classWriter1 = new ClassWriter((-2425));\n Item item0 = classWriter1.newLong(1);\n Item item1 = new Item((-1981), item0);\n item1.next = item0;\n // Undeclared exception!\n try { \n frame0.execute(156, 156, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test018() throws Throwable {\n Label label0 = new Label();\n Label label1 = new Label();\n ClassWriter classWriter0 = new ClassWriter(3002);\n classWriter0.newFieldItem(\"zOfq\", \"zv)])\\\"nPel4&5\", \"\");\n ClassWriter classWriter1 = new ClassWriter(162);\n classWriter1.toByteArray();\n Type type0 = Type.VOID_TYPE;\n Type type1 = Type.BOOLEAN_TYPE;\n Type type2 = Type.FLOAT_TYPE;\n Type type3 = Type.SHORT_TYPE;\n ClassWriter classWriter2 = new ClassWriter(40);\n Item item0 = classWriter0.key2;\n Item item1 = new Item(2);\n Frame frame0 = new Frame();\n // Undeclared exception!\n try { \n frame0.execute(26, (-345), classWriter2, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n Frame frame0 = new Frame();\n Label label0 = new Label();\n Label label1 = label0.getFirst();\n frame0.owner = label1;\n ClassWriter classWriter0 = new ClassWriter(3002);\n classWriter0.visitSource(\"JSR/RET are not supported with computeFrames option\", (String) null);\n ClassWriter classWriter1 = new ClassWriter(966);\n Item item0 = classWriter1.newLong(2);\n Item item1 = new Item((-3501), item0);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"LineNumberTable\");\n // Undeclared exception!\n try { \n frame0.execute(169, (-2746), classWriter1, item1);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // JSR/RET are not supported with computeFrames option\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public boolean mo9310a(java.lang.Exception r4) {\n /*\n r3 = this;\n java.lang.Object r0 = r3.f8650a\n monitor-enter(r0)\n boolean r1 = r3.f8651b // Catch:{ all -> 0x002c }\n r2 = 0\n if (r1 == 0) goto L_0x000a\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n return r2\n L_0x000a:\n r1 = 1\n r3.f8651b = r1 // Catch:{ all -> 0x002c }\n r3.f8654e = r4 // Catch:{ all -> 0x002c }\n r3.f8655f = r2 // Catch:{ all -> 0x002c }\n java.lang.Object r4 = r3.f8650a // Catch:{ all -> 0x002c }\n r4.notifyAll() // Catch:{ all -> 0x002c }\n r3.m11250m() // Catch:{ all -> 0x002c }\n boolean r4 = r3.f8655f // Catch:{ all -> 0x002c }\n if (r4 != 0) goto L_0x002a\n bolts.n$q r4 = m11249l() // Catch:{ all -> 0x002c }\n if (r4 == 0) goto L_0x002a\n bolts.p r4 = new bolts.p // Catch:{ all -> 0x002c }\n r4.<init>(r3) // Catch:{ all -> 0x002c }\n r3.f8656g = r4 // Catch:{ all -> 0x002c }\n L_0x002a:\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n return r1\n L_0x002c:\n r4 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: bolts.C2177n.mo9310a(java.lang.Exception):boolean\");\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n Frame frame0 = new Frame();\n Class<String> class0 = String.class;\n Type.getType(class0);\n Type.getType(class0);\n Type.getObjectType(\"The prefix must not be null\");\n Type type0 = Type.INT_TYPE;\n ClassWriter classWriter0 = new ClassWriter(1093);\n Item item0 = classWriter0.newFieldItem(\"%B\\\"F$,FHLc-:\", \"%B\\\"F$,FHLc-:\", \"%B\\\"F$,FHLc-:\");\n classWriter0.toByteArray();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n // Undeclared exception!\n try { \n frame0.execute(153, 3176, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-2450));\n String string0 = \"9~\\\"GM0+ ?&-(JmN[0f.\";\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"`abrPw?i1\");\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-2450), \"9~\\\"GM0+ ?&-(JmN[0f.\", \"Fj)3/|(;sZXz$\", \"oc[MfnZM[~MHOK iO\", (String[]) null, false, false);\n Object object0 = new Object();\n classWriter0.newInteger((-2450));\n classWriter0.newDouble((-2450));\n Item item0 = classWriter0.key3;\n // Undeclared exception!\n try { \n methodWriter0.visitFrame((-1), 2, (Object[]) null, 2, (Object[]) null);\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.MethodWriter\", e);\n }\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 }", "@Test(timeout = 4000)\n public void test054() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(1048575);\n ClassWriter classWriter1 = new ClassWriter(1);\n ClassWriter classWriter2 = new ClassWriter((-719));\n Item item0 = classWriter2.newClassItem(\"n0*\");\n Item item1 = new Item(2, item0);\n Item item2 = new Item(184, item0);\n classWriter2.toByteArray();\n // Undeclared exception!\n try { \n frame0.execute(179, 1048575, classWriter2, item1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1790259326));\n classWriter0.newInteger((-2013884533));\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"LocalVariableTable\";\n stringArray0[1] = \"LocalVariableTable\";\n stringArray0[2] = \"cM6G}.\";\n stringArray0[3] = \"H\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-2013884533), \"H\", \"cM6G}.\", \"cM6G}.\", stringArray0, false, false);\n Frame frame0 = new Frame();\n Label label0 = frame0.owner;\n // Undeclared exception!\n try { \n methodWriter0.visitLocalVariable(\"org.objectweb.asm.jip.FieldWriter\", (String) null, \"cM6G}.\", (Label) null, (Label) null, (-2013884533));\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.MethodWriter\", e);\n }\n }", "@Test(timeout = 4000)\n public void test066() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(82);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"8oFH#X_'UA\");\n int int0 = 174;\n Item item0 = classWriter0.newMethodItem(\"AnnotationDefault\", \"5\", \"AnnotationDefault\", false);\n // Undeclared exception!\n try { \n frame0.execute(174, 1199, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public void mo1972o() throws cf {\r\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter((-4015));\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", (String[]) null, false, true);\n methodWriter0.visitMultiANewArrayInsn(\"dVw2Z7M){e/Y(#j\", (-615));\n MethodWriter methodWriter1 = new MethodWriter(classWriter0, 2, \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", (String[]) null, true, true);\n Label label0 = new Label();\n int int0 = 268435455;\n // Undeclared exception!\n try { \n methodWriter1.visitFieldInsn(268435455, \"\", \"Exceptions\", \"KY0B/+MuB[P.E(8)u)\");\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\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 }", "@Test(timeout = 4000)\n public void test037() throws Throwable {\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"e}\");\n Frame frame0 = new Frame();\n int[] intArray0 = new int[5];\n frame0.inputStack = intArray0;\n ClassWriter classWriter0 = new ClassWriter(0);\n int[] intArray1 = new int[1];\n intArray1[0] = 2;\n frame0.inputLocals = intArray1;\n Item item0 = classWriter0.key3;\n // Undeclared exception!\n try { \n frame0.execute(41, 41, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(159);\n ClassWriter classWriter1 = new ClassWriter(2);\n classWriter1.newFieldItem(\"y])rS3DhfdTg\", \"y])rS3DhfdTg\", \"\");\n Item item0 = classWriter0.newLong(1);\n classWriter0.newLong(2);\n Item item1 = classWriter0.key2;\n // Undeclared exception!\n try { \n frame0.execute(159, 1, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }" ]
[ "0.6622938", "0.65499234", "0.65286624", "0.65016764", "0.64930683", "0.6487903", "0.64740235", "0.6387663", "0.637852", "0.636549", "0.63542855", "0.6343996", "0.6342478", "0.63242215", "0.6269011", "0.6254493", "0.6233788", "0.6167304", "0.6162668", "0.61588717", "0.6153475", "0.6151473", "0.61431915", "0.6124282", "0.6124282", "0.6107939", "0.6105122", "0.6096242", "0.6086792", "0.6067738", "0.6063755", "0.606225", "0.6046128", "0.59917307", "0.59869176", "0.59775776", "0.5971027", "0.5960824", "0.59566355", "0.5955954", "0.5955342", "0.5951458", "0.59482914", "0.59454894", "0.5936808", "0.593554", "0.5934738", "0.59341013", "0.59339446", "0.59292436", "0.592826", "0.59239", "0.5922906", "0.59204334", "0.59132963", "0.59119457", "0.5908488", "0.59013987", "0.58973837", "0.58733886", "0.5868331", "0.5867464", "0.5859768", "0.585967", "0.5829398", "0.5828739", "0.5820564", "0.5805123", "0.58051157", "0.58010757", "0.5799374", "0.5795684", "0.57935375", "0.57902753", "0.57866657", "0.5784718", "0.57841754", "0.5780497", "0.5780122", "0.5777339", "0.5767596", "0.5765436", "0.57636774", "0.5752488", "0.5751882", "0.5751858", "0.57503223", "0.5747715", "0.57456833", "0.57456267", "0.5745573", "0.57453394", "0.5743376", "0.57429796", "0.5739808", "0.57367414", "0.5736555", "0.57337636", "0.57312554", "0.5730958", "0.5727605" ]
0.0
-1
Initialize the page objects
public HomePage(){ PageFactory.initElements(driver, this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init() {\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tpageLists.add(new Page(i));\n\t\t}\n\t}", "private void initPages() {\n\t\tloginPage = new LoginPage(driver);\n\t\tflipkart = new FlipkartPage(driver);\n\t\t\n\t}", "protected void init() {\n PageFactory.initElements(webDriver, this);\n }", "public BasePageObject() {\n this.driver = BrowserManager.getInstance().getDriver();\n this.wait = BrowserManager.getInstance().getWait();\n PageFactory.initElements(driver, this);\n }", "public ProcessPage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t \n\n\t}", "public HomePage(){\n\t\t\tPageFactory.initElements(driver, this); \n\t\t}", "public HomePage() \r\n\t{\r\n\t\tPageFactory.initElements(driver, this);\r\n\t\t\r\n\t}", "public HomePage() { \n\t\t\tPageFactory.initElements(driver, this);\n\t\t}", "public HomePage(){\r\n\tPageFactory.initElements(driver, this);\t\r\n\t}", "public HomePage(){\n PageFactory.initElements(driver, this);\n }", "public HomePage(){\r\n\t\tPageFactory.initElements(driver, this);\r\n\r\n\r\n\t}", "public HomePage() {\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}", "public HomePage() {\n \t\tPageFactory.initElements(driver, this);\n \t}", "public Page() {\n PageFactory.initElements(getDriver(), this); //snippet to use for @FindBy\n }", "public DocsAppHomePO ()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}", "protected void doAdditionalPageInitialization(IPage page) {\n }", "public PersonalPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "private void init() {\n CycleViewPage page = (CycleViewPage) findViewById(R.id.main_view_page);\n page.setAdapter(new InfiniteImageAdapter(createImages()));\n page.setCurrentItem(Integer.MAX_VALUE / 2);\n page.setCycleSwitch(true);\n }", "public HomePage() {\n\t\t\tPageFactory.initElements(driver, this);\n\t\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public UserPage()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}", "private void initData() {\n\t\tpages = new ArrayList<WallpaperPage>();\n\n\t}", "@Override\n protected void init(PageDto page, HttpServletRequest request, HttpServletResponse response, Model model) {\n\n }", "private void init() {\n setPageTransformer(true, new VerticalPageTransformer());\n setOverScrollMode(OVER_SCROLL_NEVER);\n }", "public LoginPage(){\n PageFactory.initElements(driver, this); //all vars in this class will be init with this driver\n }", "protected void createPages() {\n\t\tcreateIntroEditor();\n\t\tcreatePageMainEditor();\n\t\tcreatePageController();\n\t\tcreateCssEditor();\n\t\tcreatePageTextEditor();\n\t\trefreshPageMainEditor();\n\t\trefreshPageControllerEditor();\n\t\trefreshCssEditor();\n\t\tsetDirty(false);\n\t}", "public HomePageActions() {\n\t\tPageFactory.initElements(driver,HomePageObjects.class);\n\t}", "public TreinamentoPage() {\r\n\t\tPageFactory.initElements(TestRule.getDriver(), this);\r\n\t}", "private void init() {\n\t\tinitDesign();\n\t\tinitHandlers();\n\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "public SettingPage() {\n\t\tPageFactory.initElements(driver, this);\t\t\n\t}", "public MainPage() {\n initComponents();\n \n initPage();\n }", "private final void createAppPages() {\r\n\t\t//Instantiate Page objects that have no associated test properties\r\n\t\t//Note that if a test DOES need to specify test properties for one of these pages\r\n\t\t// (e.g., search terms), it can create its own local version of the page, and pass\r\n\t\t// the pagePropertiesFilenameKey argument, OR create it here, by calling createPage\r\n\t\t// instead of createStaticPage\r\n\r\n\t\t//Can also instantiate regular (i.e., with associated test properties) DD-specific\r\n\t\t// Page objects here, but typically it is best for the test or utility methods to do that;\r\n\t\t// if we do it here we may end up creating Page objects that never get used.\r\n }", "private LWPageUtilities()\n {\n }", "public PIMPage()throws IOException\n\t{\n\t\tPageFactory.initElements(driver,this);\n\t\t\n\t}", "public PageUtil() {\n\n\t}", "public SearchPage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "public MyProfilePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HeaderSettingsPage()\n {\n initialize();\n }", "private void init()\n {\n wikiContext.runInTenantContext(branch, getWikiSelector(), new CallableX<Void, RuntimeException>()\n {\n @Override\n public Void call() throws RuntimeException\n {\n GWikiElement page = wikiContext.getWikiWeb().getElement(pageId);\n WorkflowPopupActionBean.this.page = page;\n\n // check if dependent objects exists\n List<GWikiElementInfo> childs = wikiContext.getElementFinder().getAllDirectChilds(page.getElementInfo());\n for (final GWikiElementInfo child : childs) {\n getDepObjects().add(wikiContext.getWikiWeb().getElement(child));\n getSubpagesRec(child, 2);\n }\n return null;\n }\n\n /**\n * Recursive fetch of child elements\n */\n private void getSubpagesRec(GWikiElementInfo parent, int curDepth)\n {\n List<GWikiElementInfo> childs = wikiContext.getElementFinder().getAllDirectChilds(parent);\n for (final GWikiElementInfo child : childs) {\n getDepObjects().add(wikiContext.getWikiWeb().getElement(child));\n getSubpagesRec(child, ++curDepth);\n }\n }\n });\n }", "protected static void initializePageActions() throws Exception {\n\t\tloginPageAction = new LoginPageActions(getDriver(), getBaseURL(), getTestSetup());\n\t\tcomplianceReportsPageAction = new ComplianceReportsPageActions(getDriver(), getBaseURL(), getTestSetup());\n\t\tmanageLocationPageActions = new ManageLocationPageActions(getDriver(), getBaseURL(), getTestSetup());\n\t\tsetReportsPage((ComplianceReportsPage)complianceReportsPageAction.getPageObject());\n\t}", "public StartPage() {\n initComponents();\n \n }", "public LoginPage()\r\n\t{\r\n\t\tPageFactory.initElements(driver,this);\r\n\t}", "public ContactsPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "private void init() {\n this.listaObjetos = new ArrayList();\n this.root = null;\n this.objeto = new Tblobjeto();\n this.pagina = new Tblpagina();\n this.selectedObj = null;\n this.menus = null;\n this.subMenus = null;\n this.acciones = null;\n this.nodes = new ArrayList<TreeNode>();\n this.selectedObjeto = null;\n this.selectedTipo = null;\n this.renderPaginaForm = null;\n this.renderGrupoForm = null;\n this.selectedGrupo = null;\n this.populateTreeTable();\n }", "private void init() {\n\t\tinitData();\n\t\tmViewPager = (ViewPagerCompat) findViewById(R.id.id_viewpager);\n\t\tnaviBar = findViewById(R.id.navi_bar);\n\t\tNavigationBarUtils.initNavigationBar(this, naviBar, true, ScreenContents.class, false, ScreenViewPager.class,\n\t\t\t\tfalse, ScreenContents.class);\n\t\tmViewPager.setPageTransformer(true, new DepthPageTransformer());\n\t\t// mViewPager.setPageTransformer(true, new RotateDownPageTransformer());\n\t\tmViewPager.setAdapter(new PagerAdapter() {\n\t\t\t@Override\n\t\t\tpublic Object instantiateItem(ViewGroup container, int position) {\n\n\t\t\t\tcontainer.addView(mImageViews.get(position));\n\t\t\t\treturn mImageViews.get(position);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void destroyItem(ViewGroup container, int position, Object object) {\n\n\t\t\t\tcontainer.removeView(mImageViews.get(position));\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic boolean isViewFromObject(View view, Object object) {\n\t\t\t\treturn view == object;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int getCount() {\n\t\t\t\treturn mImgIds.length;\n\t\t\t}\n\t\t});\n\t}", "public ContactPage() {\n\t\t\t\n\t\t\t\tPageFactory.initElements(driver, this);\n\t\t\t}", "@Override\n\tprotected void initOwnPageComponents() {\n\t\tLOG.debug(\"###BtpnBasePage:initPageComponents()====> Start\");\n\t\tsuper.initOwnPageComponents();\n\t\taddSelfCarePageComponents();\n\t\tLOG.debug(\"###BtpnBasePage:initPageComponents()====> End\");\n\t}", "public LoginPage()\n{\n\tPageFactory.initElements(driver, this);\n}", "public PageList() { \n// fileIO = new CharFileIO(\"utf-8\");\n// We are not currently using this to extract 'title' because it doesn't work \n// for whose title and meta-description tags are not explicitly specified;\n// Such as pages written in scripting languages like .jsp, .asp etc \n// parseJob = new ParseJob();\n }", "public WorkflowsPage () {\n\t\t\t\tPageFactory.initElements(driver, this);\n\t\t\t}", "public PageControl() {}", "@BeforeAll\n public void beforeAll() {\n driver = browserGetter.getChromeDriver();\n //initialize page object class\n page = PageFactory.initElements(driver, WebElementInteractionPage.class);\n }", "private void initialize() {\r\n this.setSize(new Dimension(800,600));\r\n this.setContentPane(getJPanel());\r\n\r\n List<String> title = new ArrayList<String>();\r\n title.add(\"Select\");\r\n title.add(\"Field Id\");\r\n title.add(\"Field Name\");\r\n title.add(\"Field Type\");\r\n title.add(\"Image\");\r\n\r\n List<JComponent> componentList = new ArrayList<JComponent>();\r\n componentList.add(checkInit);\r\n componentList.add(fieldIdInit);\r\n componentList.add(filedNameInit);\r\n componentList.add(fieldTypeInit);\r\n componentList.add(imageButton);\r\n\r\n String []arrColumn = {\"SELECT\", \"FIELD_ID\", \"FIELD_NAME\", \"FIELD_TYPE\", \"FIELD_VALUE\"};\r\n String []arrTitle = {\"SELECT\", \"FIELD_ID\", \"FIELD_NAME\", \"FIELD_TYPE\", \"FIELD_VALUE\"};\r\n // init grid\r\n grid = new GridUtils(pageSheet, title, componentList, arrColumn, preButton, afterButton, 5, arrTitle);\r\n // set title\r\n grid.setPageInfo(pageInfoLbl);\r\n \r\n searchDetailList();\r\n \r\n initComboBox();\r\n \r\n setTitle(\"Page Select page\");\r\n\t}", "protected static void initializePageActions() throws Exception {\n\t\tloginPageAction = new LoginPageActions(getDriver(), getBaseURL(), getTestSetup());\n\t\tmanageLocationPageAction = ActionBuilder.createManageLocationPageAction();\n\t\teqReportsPageAction = new EQReportsPageActions(getDriver(), getBaseURL(), getTestSetup());\n\t\teqReportsPage = (EQReportsPage)eqReportsPageAction.getPageObject();\n\t\tsetReportsPage(eqReportsPage);\n\t}", "public HomePage (WebDriver driver1)\r\n\t\t\t{\r\n\t\t\t\tPageFactory.initElements(driver1, this);\r\n\t\t\t}", "public HomePageAustria() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "@Override\r\n\tprotected void initPage() {\n\t\t\r\n\t\t\r\n\t\tJPanel paneLabel = new JPanel();\r\n\t\t//JPanel panelTabs = new JPanel();\r\n\t\t\r\n\t\t\r\n\t\t//pack.setVisible(false);\r\n\r\n\t\t//setlay out\r\n\t\t//panelTabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add label to label panel\r\n\t\tpaneLabel.add(new JLabel(\"Please select Objects To export\"));\r\n\t\t//tabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add tabs\r\n\t\ttabs.addTab(\"Packages\", null, pack, \"Packages\");\r\n\t\ttabs.addTab(\"Functions\", null, fun, \"Functions\");\r\n\t\ttabs.addTab(\"Procedures\", null, proc, \"Procedures\");\r\n\t\ttabs.addTab(\"Schemas\", null, sch, \"Schemas\");\r\n\t\t\r\n\t\t\r\n\t\ttabs.setTabPlacement(JTabbedPane.TOP);\r\n\t\t\r\n\t\t//add tabs to tabpanel panel\r\n\t\t//panelTabs.add(tabs);\r\n\t\t\r\n\t\t//add data tables to panels\r\n\t\tpackTbl = new JObjectTable(pack);\r\n\t\tfunTbl = new JObjectTable(fun);\r\n\t\tschTbl = new JObjectTable(sch);\r\n\t\tprocTbl = new JObjectTable(proc);\r\n\t\t\r\n\t\t//set layout\r\n\t\tsetLayout(new GridLayout(1,1));\r\n\t\t\r\n\t\t//add label & tabs to page panel\r\n\t\t//add(paneLabel, BorderLayout.NORTH);\r\n\t\t//add(panelTabs,BorderLayout.CENTER);\r\n\t\tadd(tabs);\r\n\t\t\r\n\t\t//init select all check boxes\r\n\t\tinitChecks();\r\n\t\t\r\n\t\t//add checks to panel\r\n\t\tpack.add(ckPack);\r\n\t\tfun.add(ckFun);\r\n\t\tsch.add(ckSchema);\r\n\t\tproc.add(ckProc);\r\n\t\t\r\n\t}", "public LoginPage(){\n\t\tPageFactory.initElements(driver, this);\n\t}", "@Override\n public void establish() {\n logger.info(\"Opening page {}...\", pageObject);\n initializePage();\n pageObject.open();\n }", "public CalendarPage() {\n\t\t\n\t\tPageFactory.initElements(driver, this);\n\t}", "public LoginPage(){\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "public Loginpage()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HotelsPage() {\n PageFactory.initElements(driver, this);\n }", "public QualificationsPage(){\n PageFactory.initElements(driver, this);\n }", "@BeforeMethod\n\tpublic void setUp() {\n\t\tdriver = new FirefoxDriver();\n\t\t\n\t\t// Launch the wikia.com web site\n\t\tdriver.get(WEBSITE_ADDRESS);\n\t\tHomePage = PageFactory.initElements(driver, HomePagePO.class);\n\t\tLoginContainer = PageFactory.initElements(driver, LoginContainerPO.class);\n\t}", "public MockPageContext() {\n super();\n MockPageContext.init();\n }", "protected void construct()\n\t{\n\t\tassert(driver != null);\n\t\t// V�rification que l'on est bien sur la bonne page\n\t String sTitle = driver.getTitle();\n\t\tif(!sTitle.equals(TITLE)) {\n throw new IllegalStateException(\"This is not Login Page, current page is: \" +driver.getCurrentUrl());\n\t\t}\t\t\n\t\ttbUserName = driver.findElement(ByUserName);\n\t\ttbPassword = driver.findElement(ByPassword);\n\t\tbtnConnect = driver.findElement(ByConnect);\n\t}", "public SettingsPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "@Override\n\tprotected void init() throws Exception {\n\t\toid = getParameter(\"oid\");\n\t\tif (AppUtil.isEmpty(oid)) {\n\t\t\toid = getArgument(\"oid\");\n\t\t}\n\t\tif (AppUtil.isEmpty(oid)) {\n\t\t\tsetupNewPage();\n\t\t} else {\n\t\t\tsetupEditPage();\n\t\t}\n\t}", "@Override\n protected void init(VaadinRequest request) {\n\n // html <title> attribute\n getPage().setTitle(\"Patient Management System\");\n\n // instantiate a full screen layout and add it\n VerticalLayout layout = new VerticalLayout();\n layout.setSizeFull();\n setContent(layout);\n\n // header row\n layout.addComponent(getHeader());\n\n // main container\n HorizontalLayout main = getMainContainer();\n layout.addComponent(main);\n layout.setExpandRatio(main, 1.0f); // make main container use all available space\n main.addComponent(getNavigation());\n VerticalLayout canvas = getCanvas();\n main.addComponent(canvas);\n\n // tell the navigation to use\n navigator = new Navigator(this, canvas);\n\n // Assembles all presenters/views and adds them to the navigator\n initializeClasses();\n\n // Navigates to the startpage\n navigator.navigateTo(JournalView.NAME);\n\n }", "public LoginPage() {\r\n\t\t\t\r\n\t\t\t//Initialize webElements.\r\n\t\t\tPageFactory.initElements(driver, this);\r\n\t\t}", "@Override\n public void afterPropertiesSet() {\n // TODO: instead of autowiring initialize page objects with proxies\n try {\n Field mapField = Validator.class.getDeclaredField(\"map\");\n mapField.setAccessible(true);\n mapField.set(validator, map);\n\n Field uiField = Validator.class.getDeclaredField(\"ui\");\n uiField.setAccessible(true);\n uiField.set(validator, ui);\n } catch (ReflectiveOperationException e) {\n throw new RuntimeException(\"Could not instantiate the page object!\", e);\n }\n }", "public RegistrationPage() {\t\t\r\n\t\tdriver = DriverManager.getThreadSafeDriver();\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}", "public void init(IPageSite pageSite) {\n \t\tsuper.init(pageSite);\n \t}", "public HomePage() {\n initComponents();\n }", "public HomePage() {\n initComponents();\n }", "private void initializePaging() {\r\n\t\t\r\n\t\tList<Fragment> fragments = new Vector<Fragment>();\r\n\t\tfragments.add(Fragment.instantiate(this, ContactBookFragment.class.getName()));\r\n\t\tfragments.add(Fragment.instantiate(this, MainDashBoardFragment.class.getName()));\r\n\t\tfragments.add(Fragment.instantiate(this, GroupDashBoardFragment.class.getName()));\r\n\t\tthis.mPagerAdapter = new PagerAdapter(super.getSupportFragmentManager(), fragments);\r\n\t\t//\r\n\t\tViewPager pager = (ViewPager)super.findViewById(R.id.viewpager);\r\n\t\tpager.setAdapter(this.mPagerAdapter);\r\n\t\tpager.setCurrentItem(1);\t// Set the default page to Main Dash Board\r\n\t}", "public void testInitialize()\r\n {\r\n OverviewPage page = new OverviewPage();\r\n PageManager pm = createPageManager();\r\n page.initialize(pm);\r\n assertSame(\"Page manager not set\", pm, page.getPageManager());\r\n for (int i = 0; i < page.tabPanel.getWidgetCount(); i++)\r\n {\r\n AbstractOverviewTable<?> table =\r\n (AbstractOverviewTable<?>) page.tabPanel.getWidget(i);\r\n assertSame(\"Page manager not set\", pm, table.getPageManager());\r\n }\r\n }", "public PageAdapter() {\n this.mapper = new MapperImpl();\n }", "public PageObject(WebDriver driver) {\n this.driver = driver;\n PageFactory.initElements(driver, this);\n }", "private IndexPage initializeTest() {\n Dimension dimension = new Dimension(1920, 1080);\n driver.manage().window().setSize(dimension);\n driver.get(baseUrl);\n indexPage = new IndexPage(driver);\n return indexPage;\n }", "private void initView() {\n\t\tsna_viewpager = (ViewPager) findViewById(R.id.sna_viewpager);\r\n\t\thost_bt = (Button) findViewById(R.id.host_bt);\r\n\t\tcomment_bt = (Button) findViewById(R.id.comment_bt);\r\n\t\tback_iv = (ImageView) findViewById(R.id.back_iv);\r\n\t\trelativeLayout_project = (RelativeLayout) findViewById(R.id.relativeLayout_project);\r\n\t\trelativeLayout_addr = (RelativeLayout) findViewById(R.id.relativeLayout_addr);\r\n\t\trelativeLayout_activity = (RelativeLayout) findViewById(R.id.relativeLayout_activity);\r\n\t\trelativeLayout_host = (RelativeLayout) findViewById(R.id.relativeLayout_host);\r\n\t\trelativeLayout_comment = (RelativeLayout) findViewById(R.id.relativeLayout_comment);\r\n\t\tll_point = (LinearLayout) findViewById(R.id.ll_point);\r\n\t\tstoyrName = (TextView) findViewById(R.id.stoyrName);\r\n\t\tstory_addr = (TextView) findViewById(R.id.story_addr);\r\n\t\t\r\n\t}", "public LoginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public LoginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "private void initControlsPage()\r\n {\n \tString keyTitleString = \"KEYBOARD\";\r\n \tkeyTitleText = new OText(25, 200, 300, keyTitleString);\r\n \tkeyTitleText.setFont(\"Courier New\", 20, 1.0, 'C', Settings.themes.textColor);\r\n \t\r\n \t//Initialize the keyboard movement text\r\n \tString keyMoveString = \"Move Optimus with the WASD keys \"\r\n \t\t\t + \" <br> \"\r\n \t\t\t + \"as if they were the arrow keys.\";\r\n \tkeyMoveText = new OText(25, 225, 300, keyMoveString);\r\n \tkeyMoveText.setFont(\"Courier New\", 14, 1.0, 'C', Settings.themes.textColor);\r\n \t\r\n \t\r\n \t//Initialize the mouse title text\r\n \tString mouseTitleString = \"MOUSE\";\r\n \tmouseTitleText = new OText(375, 200, 300, mouseTitleString);\r\n \tmouseTitleText.setFont(\"Courier New\", 20, 1.0, 'C', Settings.themes.textColor);\r\n \t\r\n \t//Initialize the mouse text\r\n \tString mouseMoveString = \"Aim by moving the mouse and shoot bullets from Optimus in the direction of the cursor using both clicks. \";\r\n \tmouseText = new OText(375, 225, 300, mouseMoveString);\r\n \tmouseText.setFont(\"Courier New\", 14, 1.0, 'C', Settings.themes.textColor);\r\n }", "public GuruDepositPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public Page1() {\n initComponents();\n }", "@BeforeMethod\n\tpublic void setup() {\n\t\tinitialization();\n\t\tloginpage = new LoginPage();\n\t\tcontactpage=new ContactPage();\n\t\ttestutil = new TestUtil();\n\t\thomepage=loginpage.login(prop.getProperty(\"username\"), prop.getProperty(\"password\"));\n\t}", "public PropertyClassificationPage() {\n initComponents();\n }", "private void initialization() {\n\t\tprogressbar = (ProgressBar) findViewById(R.id.progressBar1);\n\t\tprogressbar.getIndeterminateDrawable().setColorFilter(0xFFFFC107,\n\t\t\t\tandroid.graphics.PorterDuff.Mode.MULTIPLY);\n\t\ttheBrow = (WebView) findViewById(R.id.clickBrower);\n\t\trel = (RelativeLayout) findViewById(R.id.reL);\n\t\tbringBack = (Button) findViewById(R.id.bBack);\n\t\tbringForward = (Button) findViewById(R.id.bForward);\n\t\tbRefresh = (Button) findViewById(R.id.brefresh);\n\t\tinputText = (EditText) findViewById(R.id.editUrl);\n\t\tbingo = (Button) findViewById(R.id.bGo);\n\t}", "private void initViewPager() {\n }", "public HomePage(WebDriver driver) {\n\t\tthis.driver = driver;\n\t\tPageFactory.initElements(driver, this); //now all Page Factory elements will have access to the driver, \n\t\t\t\t\t\t\t\t\t\t\t\t//which is need to get a hold of all the elements. w/o it, tests will fail. \n\t\t\t\t\t\t\t\t\t\t\t\t//\"this\" is referring to the Class HomePage\n\t}", "private void initializeObjects() {\n\n showActionBarAndCalendar();\n\t\t\n\t\tmAverageHeartRate = (DashboardItemHeartRate) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_HEART_RATE);\n\t\tmStepsMetric = (DashboardItemMetric) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_STEPS);\n\t\tmDistanceMetric = (DashboardItemMetric) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_DISTANCE);\n\t\tmCalorieMetric = (DashboardItemMetric) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_CALORIES);\n\t\tmSleepMetric = (DashboardItemSleep) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_SLEEP);\n\t\tmWorkoutInfo = (DashboardItemWorkout) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_WORKOUT);\n\t\tmActigraphy = (DashboardItemActigraphy) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_ACTIGRAPHY);\n\t\tmLightExposure = (DashboardItemLightExposure) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_LIGHT_EXPOSURE);\n\t\t\n\t\tarrangeDashboardItems();\n\t}", "public void init() {\n // Perform initializations inherited from our superclass\n super.init();\n // Perform application initialization that must complete\n // *before* managed components are initialized\n // TODO - add your own initialiation code here\n \n // <editor-fold defaultstate=\"collapsed\" desc=\"Managed Component Initialization\">\n // Initialize automatically managed components\n // *Note* - this logic should NOT be modified\n try {\n _init();\n } catch (Exception e) {\n log(\"Page1 Initialization Failure\", e);\n throw e instanceof FacesException ? (FacesException) e: new FacesException(e);\n }\n \n // </editor-fold>\n // Perform application initialization that must complete\n // *after* managed components are initialized\n // TODO - add your own initialization code here\n }", "public VideoPage()\r\n\t{\r\n\t}", "public void initialize() {\n this.loadNewsList();\n }" ]
[ "0.8037806", "0.80011", "0.7711023", "0.75793236", "0.73900175", "0.737596", "0.73641855", "0.73495543", "0.73357296", "0.7333177", "0.73097944", "0.71256375", "0.7107024", "0.70893973", "0.7086403", "0.707994", "0.70737773", "0.7066427", "0.7060488", "0.70514864", "0.70514864", "0.70514864", "0.70514864", "0.7003241", "0.69616604", "0.69330233", "0.6927358", "0.690117", "0.6878842", "0.68755764", "0.6870691", "0.68608177", "0.684941", "0.68296045", "0.68204004", "0.68078125", "0.6803177", "0.67889524", "0.6788147", "0.67738277", "0.67719257", "0.6766647", "0.6755534", "0.6748511", "0.6724255", "0.67135286", "0.670103", "0.6695606", "0.66885936", "0.6679633", "0.6665181", "0.66611516", "0.6659531", "0.6657465", "0.66523236", "0.66478014", "0.6637595", "0.6626369", "0.66149896", "0.6586886", "0.6564322", "0.65637374", "0.6556575", "0.65470564", "0.654516", "0.65406334", "0.65398514", "0.6528633", "0.6520456", "0.651685", "0.6513823", "0.65052193", "0.6491215", "0.64624244", "0.646063", "0.6454723", "0.6453271", "0.6449437", "0.6447745", "0.6447745", "0.64405733", "0.6419882", "0.6416786", "0.6411675", "0.6409113", "0.6408", "0.6401004", "0.6401004", "0.63940006", "0.63735056", "0.63423604", "0.6340007", "0.6332564", "0.63256186", "0.6323319", "0.63165885", "0.63161564", "0.6312905", "0.63117105", "0.6306643" ]
0.72531855
11
return the cell[row][col] along with its neighbours
private List<Cell> getNeighbours(int row,int col){ List<Cell> neighbours = new ArrayList<Cell>(); for(int i = row -1 ; i <= row+1 ; i++ ) for(int j = col -1 ; j <= col+1 ; j++) if(i>=0 && i<cells.length && j>=0 && j<cells[0].length) neighbours.add(cells[i][j]); return neighbours; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Cell[] getNeighbours() {\r\n\t\treturn this.neighbours;\r\n\t}", "private int getNeighbours(Cell cell) {\n\n //Get the X, Y co-ordinates of the cell\n int cellX = cell.getXCord();\n int cellY = cell.getYCord();\n\n // Helper variable initially set to check all neighbours.\n int[][] neighbourCords = allCords;\n\n //Checks what location the cell is and which of its neighbours to check\n //This avoids any array out of bounds issues by trying to look outside the grid\n if (cellX == 0 && cellY == 0) {\n neighbourCords = topLeftCords;\n } else if (cellX == this.width - 1 && cellY == this.height - 1) {\n neighbourCords = bottomRightCords;\n } else if (cellX == this.width - 1 && cellY == 0) {\n neighbourCords = topRightCords;\n } else if (cellX == 0 && cellY == this.height - 1) {\n neighbourCords = bottomLeftCords;\n } else if (cellY == 0) {\n neighbourCords = topCords;\n } else if (cellX == 0) {\n neighbourCords = leftCords;\n } else if (cellX == this.width - 1) {\n neighbourCords = rightCords;\n } else if (cellY == this.height - 1) {\n neighbourCords = bottomCords;\n }\n\n // Return the number of neighbours\n return searchNeighbours(neighbourCords, cellX, cellY);\n }", "@Override\n\tpublic List<Cell> calcNeighbors(int row, int col) {\n\t\tList<Cell> neighborLocs = new ArrayList<>();\n\t\tint shift_constant = 1 - 2*((row+col) % 2);\n\t\tif(!includesDiagonals) {\n\t\t\tfor(int a = col - 1; a <= col + 1; a++) {\n\t\t\t\tif(a == col)\n\t\t\t\t\taddLocation(row + shift_constant,a,neighborLocs);\n\t\t\t\telse \n\t\t\t\t\taddLocation(row,a,neighborLocs);\n\t\t\t}\n\t\t\treturn neighborLocs;\n\t\t}\n\t\tfor(int b = col - 2; b <= col + 2; b++) {\n\t\t\tfor(int a = row; a != row + 2*shift_constant; a += shift_constant) {\n\t\t\t\tif(a == row && b == col)\n\t\t\t\t\tcontinue;\n\t\t\t\taddLocation(a,b,neighborLocs);\n\t\t\t}\n\t\t}\n\t\tfor(int b = col -1; b <= col + 1; b++) {\n\t\t\taddLocation(row - shift_constant,b,neighborLocs);\n\t\t}\n\t\treturn neighborLocs;\n\t}", "public Cell[] getNeighbors(Cell cell) {\n int index = 0;\n Cell neighbors[] = new Cell[4];\n //check top neighbour\n if (cell.getRow() > 0) {\n neighbors[index] = cells[cell.getRow() - 1][cell.getColumn()];\n index++;\n }\n //check left neighbor\n if (cell.getColumn() > 0) {\n neighbors[index] = cells[cell.getRow()][cell.getColumn()-1];\n index++;\n }\n //check bottom neighbor\n if (cell.getRow() < height - 1) {\n neighbors[index] = cells[cell.getRow() + 1][cell.getColumn()];\n index++;\n }\n //check right neighbor\n if (cell.getColumn() < width - 1) {\n neighbors[index] = cells[cell.getRow()][cell.getColumn()+1];\n index++;\n }\n\n //if there are only 3 neighbor cells, copy cells into smaller array\n if (index == 3) {\n Cell neighbors2[] = new Cell[3];\n for (int i = 0; i < neighbors2.length; i++) {\n neighbors2[i] = neighbors[i];\n }\n return neighbors2;\n //if there are only 2 neighbor cells, copy cells into smaller array\n } else if (index == 2) {\n Cell neighbors2[] = new Cell[2];\n for (int i = 0; i < neighbors2.length; i++) {\n neighbors2[i] = neighbors[i];\n }\n return neighbors2;\n }\n return neighbors;\n }", "public MapCell[] getNeighbors(){\n\t\tMapCell[] neighbors = new MapCell[4];\n\t\tneighbors[0] = getNeighbor(\"east\");\n\t\tneighbors[1] = getNeighbor(\"north\");;\n\t\tneighbors[2] = getNeighbor(\"west\");\n\t\tneighbors[3] = getNeighbor(\"south\");\n\t\treturn neighbors;\n\t}", "public int[] getNeighborColIndex() {\n if (myRow % 2 == 0) {\n return neighborEvenColIndex;\n } else {\n return neighborOddColIndex;\n }\n }", "public void getNeighbors(){\n // North \n if(this.row - this.value>=0){\n this.north = adjacentcyList[((this.row - this.value)*col_size)+col];\n }\n // South\n if(this.row + value<row_size){\n this.south = adjacentcyList[((this.row+this.value)*row_size)+col];\n }\n // East\n if(this.col + this.value<col_size){\n this.east = adjacentcyList[((this.col+this.value)+(this.row)*(col_size))];\n }\n // West\n if(this.col - this.value>=0){\n this.west = adjacentcyList[((this.row*col_size)+(this.col - this.value))];\n }\n }", "public Square[] adjacentCells() {\n\t\tArrayList<Square> cells = new ArrayList <Square>();\n\t\tSquare aux;\n\t\tfor (int i = -1;i <= 1; i++) {\n\t\t\tfor (int j = -1; j <= 1 ; j++) {\n\t\t\t\taux = new Square(tractor.getRow()+i, tractor.getColumn()+j); \n\t\t\t\tif (isInside(aux) && abs(i+j) == 1) { \n\t\t\t\t\tcells.add(getSquare(aux));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn cells.toArray(new Square[cells.size()]);\n\t}", "@Override\n\tpublic List<Cell> getImmediateNeighbors(Cell cell) {\n\t\tList<Cell> neighbors = new ArrayList<Cell>();\n\t\tint north, east, south, west;\n\t\t\n\t\tnorth = getNorthCell(cell);\n\t\teast = getEastCell(cell);\n\t\tsouth = getSouthCell(cell);\n\t\twest = getWestCell(cell);\n\t\t\n\t\tif (north != -1) { neighbors.add(getCellList().get(north)); }\n\t\tif (east != -1) { neighbors.add(getCellList().get(east)); }\n\t\tif (south != -1) { neighbors.add(getCellList().get(south)); }\n\t\tif (west != -1) { neighbors.add(getCellList().get(west)); }\n\t\t\n\t\treturn neighbors;\n\t}", "public int neighborCount(int row, int col) {//these are your current positions\n\t\tint neighborCell = 0;\n\t\t//array is zero based index\n\n\t\t//down one or row down one\n\t\tif(cellAt((row + 1) % rowCount, col)) //lets say our arrayCell is arrayCell(4,4)\n\t\t\tneighborCell++;\t\t\t\t\t\t// row here is your current cell(this is where you start and put your cell) and you add + 1 \n\t\t\t\t\t\t\t\t\t\t\t\t//lets say row is 1 then it is 1+1 = 2 \n\t\t\t\t\t\t\t\t\t\t\t\t//then 2 % 4(rowCount is 4) = 2\n\t\t\t\t\t\t\t\t\t\t\t\t//then your row is 2 and column 1\n\t\t\n\t\t//row up one\n\t\tif(cellAt((row + rowCount - 1) % rowCount , col))\n\t\t\tneighborCell++;\n\n\t\t//column right or column + 1\n\t\tif(cellAt(row, (col + 1)% colCount))\n\t\t\tneighborCell++;\n\n\t\t//column left or column -1\n\t\tif(cellAt(row,(col + colCount -1)% colCount))\n\t\t\tneighborCell++;\n\n\t\t//row up one and column right one\n\t\tif(cellAt((row + rowCount - 1) % rowCount,(col + 1)% colCount ))\n\t\t\tneighborCell++;\n\n\t\t//row down one and column right \n\t\tif(cellAt((row + 1) % rowCount,(col + 1)% colCount)) \n\t\t\tneighborCell++;\n\n\t\t//row down one and column left\n\t\tif(cellAt((row + 1) % rowCount,(col + colCount -1)% colCount)) \n\t\t\tneighborCell++;\n\n\t\t//row up one and column left\n\t\tif(cellAt((row + rowCount - 1) % rowCount, (col + colCount -1)% colCount))\n\t\t\tneighborCell++;\n\n\t\treturn neighborCell;\n\n\t}", "public void populateNeighbors(Cell[][] cells) {\n\t\tint limitHoriz = cells[0].length;\n\t\tint limitVert = cells.length;\n\t\t// above left\n\t\tif (myRow > 0 && myRow < limitVert - 1) {\n\t\t\tif (myCol > 0 && myCol < limitHoriz - 1) {\n\t\t\t\tneighbors.add(cells[myRow][myCol]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol +1]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol +1]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol-1]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol-1]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol+1]);\n\t\t\t\t// ADD 8 cells to neighbors (see the diagram from the textbook)\n\t\t\t}\n\t\t\tif (myCol == 0) { // left edge not corner\n\t\t\t\t// ADD 5 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow+1][myCol+1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol+1]);\n\t\t\t\tneighbors.add(cells[myRow+1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol+1]);\n\t\t\t}\n\t\t\tif (myCol == limitHoriz - 1) { // right edge not corner\n\t\t\t\t// ADD 5 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow +1][myCol-1]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow-1][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow -1][myCol]);\n\t\t\t}\n\t\t}\n\t\tif (myRow == 0) {\n\t\t\tif (myCol > 0 && myCol < limitHoriz - 1) { // top edge not corner\n\t\t\t\t// ADD 5 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow][myCol + 1]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol+1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol-1]);\n\t\t\t\tneighbors.add(cells[myRow+1][myCol -1]);\n\t\t\t}\n\t\t\tif (myCol == 0) { // top left corner\n\t\t\t\t// ADD 3 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow][myCol + 1]);\n\t\t\t\tneighbors.add(cells[myRow + 1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow + 1][myCol+1]);\n\t\t\t}\n\t\t\tif (myCol == limitHoriz - 1) { // top right corner\n\t\t\t\t// ADD 3 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow +1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow +1][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol -1]);\n\t\t\t}\n\t\t}\n\t\tif (myRow == limitVert - 1) {\n\t\t\tif (myCol > 0 && myCol < limitHoriz - 1) { // bottom edge\n\t\t\t\t// ADD 5 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow-1][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow - 1][myCol+1]);\n\t\t\t\tneighbors.add(cells[myRow - 1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow][myCol +1]);\n\t\t\t}\n\t\t\tif (myCol == 0) { // bottom left corner\n\t\t\t\t// ADD 3 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow - 1][myCol+1]);\n\t\t\t\tneighbors.add(cells[myRow - 1][myCol]);\n\t\t\t\tneighbors.add(cells[myRow][myCol +1]);\n\t\t\t}\n\t\t\tif (myCol == limitHoriz - 1) { // bottom right corner\n\t\t\t\t// ADD 3 cells to neighbors (see the diagram from the textbook)\n\t\t\t\tneighbors.add(cells[myRow-1][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow][myCol -1]);\n\t\t\t\tneighbors.add(cells[myRow - 1][myCol]);\n\t\t\t}\n\t\t}\n\t}", "public List<Cell> getNeighbors() {\n return this.neighbors;\n }", "public Cell getCellAt (int x, int y) {\n return grid[x-1][y-1];\n }", "int getCell(int x, int y) {\n try {\n return hiddenGrid[x][y];\n } catch (IndexOutOfBoundsException hiddenIndex) {}\n return hiddenGrid[x][y];\n }", "private List<CellIndex> getNeighbours( CellIndex index )\r\n {\n List<CellIndex> neighbours = new ArrayList<World.CellIndex>();\r\n if( index.x % EnvSettings.getMAX_X() != 0 )\r\n {\r\n neighbours.add( new CellIndex( index.x - 1, index.y, index.z ) );\r\n }\r\n if( index.x % EnvSettings.getMAX_X() != EnvSettings.getMAX_X() - 1 )\r\n {\r\n neighbours.add( new CellIndex( index.x + 1, index.y, index.z ) );\r\n }\r\n if( index.y % EnvSettings.getMAX_Y() != 0 )\r\n {\r\n neighbours.add( new CellIndex( index.x, index.y - 1, index.z ) );\r\n }\r\n if( index.y % EnvSettings.getMAX_Y() != EnvSettings.getMAX_Y() - 1 )\r\n {\r\n neighbours.add( new CellIndex( index.x, index.y + 1, index.z ) );\r\n }\r\n if( index.z % EnvSettings.getMAX_Z() != 0 )\r\n {\r\n neighbours.add( new CellIndex( index.x, index.y, index.z - 1 ) );\r\n }\r\n if( index.z % EnvSettings.getMAX_Z() != EnvSettings.getMAX_Z() - 1 )\r\n {\r\n neighbours.add( new CellIndex( index.x, index.y, index.z + 1 ) );\r\n }\r\n return neighbours;\r\n }", "private static Iterable<Cell> getNeighbors(Grid<Cell> grid, Cell cell) {\n\t\tMooreQuery<Cell> query = new MooreQuery<Cell>(grid, cell);\n\t\tIterable<Cell> neighbors = query.query();\n\t\treturn neighbors;\n\t}", "public int get_cell(int row,int col)\n{\n\treturn cell[row][col] ;\t\n}", "public SubCell neighbor(Direction dir) {\n switch (dir) {\n case N:\n return new SubCell(x(), y() - 1);\n case E:\n return new SubCell(x() + 1, y());\n case S:\n return new SubCell(x(), y() + 1);\n case W:\n return new SubCell(x() - 1, y());\n default:\n return new SubCell(x(), y());\n }\n }", "public abstract boolean getCell(int x, int y);", "private GoLNeighborhood getNeighborhood(int x, int y) {\n\n \tGoLCell[][] tempArray = new GoLCell[3][3];\n\n \ttempArray[0][0] = ((x>0)&&(y>0))?myGoLCell[x-1][y-1]:(new GoLCell(false));\n \ttempArray[1][0] = (y>0)?myGoLCell[x][y-1]:(new GoLCell(false));\n \ttempArray[2][0] = ((x<19)&&(y>0))?myGoLCell[x+1][y-1]:(new GoLCell(false));\n \ttempArray[0][1] = ((x>0))?myGoLCell[x-1][y]:(new GoLCell(false));\n \ttempArray[1][1] = myGoLCell[x][y];\n \ttempArray[2][1] = ((x<19))?myGoLCell[x+1][y]:(new GoLCell(false));\n \ttempArray[0][2] = ((x>0)&&(y<19))?myGoLCell[x-1][y+1]:(new GoLCell(false));\n \ttempArray[1][2] = (y<19)?myGoLCell[x][y+1]:(new GoLCell(false));\n \ttempArray[2][2] = ((x<19)&&(y<19))?myGoLCell[x+1][y+1]:(new GoLCell(false));\n\n \treturn new GoLNeighborhood(tempArray);\n\n }", "@Override\r\n\tpublic Integer getCell(Integer x, Integer y) {\n\t\treturn game[x][y];\r\n\t}", "private void getNeighbors() {\n\t\tRowIterator iterator = currentGen.iterateRows();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElemIterator elem = iterator.next();\n\t\t\twhile (elem.hasNext()) {\n\t\t\t\tMatrixElem mElem = elem.next();\n\t\t\t\tint row = mElem.rowIndex();\n\t\t\t\tint col = mElem.columnIndex();\n\t\t\t\tint numNeighbors = 0;\n\t\t\t\tfor (int i = -1; i < 2; i++) { // loops through row above,\n\t\t\t\t\t\t\t\t\t\t\t\t// actual row, and row below\n\t\t\t\t\tfor (int j = -1; j < 2; j++) { // loops through column left,\n\t\t\t\t\t\t\t\t\t\t\t\t\t// actual column, coloumn\n\t\t\t\t\t\t\t\t\t\t\t\t\t// right\n\t\t\t\t\t\tif (!currentGen.elementAt(row + i, col + j).equals(\n\t\t\t\t\t\t\t\tfalse)) // element is alive, add 1 to neighbor\n\t\t\t\t\t\t\t\t\t\t// total\n\t\t\t\t\t\t\tnumNeighbors += 1;\n\t\t\t\t\t\telse { // element is not alive, add 1 to its total\n\t\t\t\t\t\t\t\t// number of neighbors\n\t\t\t\t\t\t\tInteger currentNeighbors = (Integer) neighbors\n\t\t\t\t\t\t\t\t\t.elementAt(row + i, col + j);\n\t\t\t\t\t\t\tneighbors.setValue(row + i, col + j,\n\t\t\t\t\t\t\t\t\tcurrentNeighbors + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tneighbors.setValue(row, col, numNeighbors - 1); // -1 to account\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// for counting\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// itself as a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// neighbor\n\t\t\t}\n\t\t}\n\t}", "private LinkedList<int[]> neighborFinder(){\n LinkedList<int[]> neighborhood= new LinkedList<>();\n int[] curr_loc = blankFinder();\n int x = curr_loc[0];\n int y = curr_loc[1];\n if(x >0){\n neighborhood.add(new int[]{x-1, y});\n }\n if(x < n-1){\n neighborhood.add(new int[]{x+1, y});\n }\n if(y > 0){\n neighborhood.add(new int[]{x, y-1});\n }\n if(y < n-1) {\n neighborhood.add(new int[]{x, y+1});\n }\n\n\n return neighborhood;\n }", "protected int countNeighbours(int col, int row){\n int Total = 0;\r\n Total = getCell(col-1,row-1)? ++Total : Total;\r\n Total = getCell(col,row-1)? ++Total : Total;\r\n Total = getCell(col+1,row-1)? ++Total : Total;\r\n Total = getCell(col-1,row)? ++Total : Total;\r\n Total = getCell(col+1,row)? ++Total : Total;\r\n Total = getCell(col-1,row+1)? ++Total : Total;\r\n Total = getCell(col,row+1)? ++Total : Total;\r\n Total = getCell(col+1,row+1)? ++Total : Total;\r\n return Total;\r\n }", "Cell getCellAt(Coord coord);", "private double[] getNeighbors(double[] row) {\n\n double[] neighbors = {0};\n return neighbors;\n }", "private Cell get_cell(int row, int col){\n if (! cell_in_bounds(row,col)) return null;\n return this.cells[row][col];\n }", "public GoLCell getCell(int x, int y)\n\t{\n \treturn myGoLCell[x][y];\n\t}", "public Cell containingCell() {\n return new Cell(x() / SUBCELL_COUNT, y() / SUBCELL_COUNT);\n }", "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 }", "private static boolean isCellAlive(int[][] coordinates, int row, int column) {\n\t\tboolean cellAlive = coordinates[row][column] == 1;\r\n\t\tint numberOfNeighbours = 0;\r\n\t\t//check one to the right of col\r\n\t\tif (coordinates[row].length > column + 1) {\r\n\t\t\tif (coordinates[row][column + 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one to the left of col\r\n\t\tif (coordinates[row].length > column - 1 && column - 1 >= 0) {\r\n\t\t\tif (coordinates[row][column - 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one above col\r\n\t\tif (coordinates.length > row - 1 && row - 1 >= 0) {\r\n\t\t\tif (coordinates[row - 1][column] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one below col\r\n\t\tif (coordinates.length > row + 1) {\r\n\t\t\tif (coordinates[row + 1][column] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one top left diagonal to col\r\n\t\tif (coordinates.length > row - 1 && coordinates[row].length > column - 1 && row - 1 >= 0 && column - 1 >= 0) {\r\n\t\t\tif (coordinates[row - 1][column - 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one top right diagonal to col\r\n\t\tif (coordinates.length > row - 1 && coordinates[row].length > column + 1 && row - 1 >= 0) {\r\n\t\t\tif (coordinates[row - 1][column + 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one bottom left diagonal to col\r\n\t\tif (coordinates.length > row + 1 && coordinates[row].length > column - 1 && column - 1 >= 0) {\r\n\t\t\tif (coordinates[row + 1][column - 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one bottom right diagonal to col\r\n\t\tif (coordinates.length > row + 1 && coordinates[row].length > column + 1) {\r\n\t\t\tif (coordinates[row + 1][column + 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t System.out.println(\"Number of neighbours for \" + row + \", \" + column\r\n\t\t + \" was \" + numberOfNeighbours);\r\n\t\t//if the number of neighbours was 2 or 3, the cell is alive\r\n\t\tif ((numberOfNeighbours == 2) && cellAlive) {\r\n\t\t\treturn true;\r\n\t\t} else if (numberOfNeighbours == 3) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private ArrayList<GridPiece> getDirectNeighbors(GridPiece piece) {\n neighbors.clear();\n\n //Top\n if (game.gridMap.size() > piece.row + 1) {\n neighbors.add(game.gridMap.get(piece.row + 1).get(piece.column));\n }\n //Bottom\n if (piece.row > 0) {\n neighbors.add(game.gridMap.get(piece.row - 1).get(piece.column));\n }\n\n //Right\n if (game.gridMap.get(0).size() > piece.column + 1) {\n neighbors.add(game.gridMap.get(piece.row).get(piece.column + 1));\n }\n\n //Left\n if (piece.column > 0) {\n neighbors.add(game.gridMap.get(piece.row).get(piece.column - 1));\n }\n\n return neighbors;\n }", "protected abstract double getCell(\r\n int row,\r\n int col);", "public ArrayList<Cell> getNeighbours(int radius) {\r\n return locateCell.getAdjacentCells(radius);\r\n }", "public double getCell(int row, int col) {\n int di = row - col;\n\n if (di == 0) {\n return B[row];\n } else if (di == -1) {\n return C[row];\n } else if (di == 1) {\n return A[row];\n } else return 0;\n }", "@Override\n\tpublic List<Cell> getSurroundingNeighbors(Cell cell, int vision) {\n\t\tList<Cell> neighbors = new ArrayList<Cell>();\n\t\tCell northCell = cell, eastCell = cell, southCell = cell, westCell = cell;\n\t\tint north, east, south, west;\n\t\tfor (int i = 1; i <= vision; i++) {\n\t\t\tnorth = getNorthCell(northCell);\n\t\t\teast = getEastCell(eastCell);\n\t\t\tsouth = getSouthCell(southCell);\n\t\t\twest = getWestCell(westCell);\n\t\t\tif (north != -1) { \n\t\t\t\tnorthCell = getCellList().get(north);\n\t\t\t\tneighbors.add(northCell); }\n\t\t\tif (east != -1) { \n\t\t\t\teastCell = getCellList().get(east);\n\t\t\t\tneighbors.add(eastCell); }\n\t\t\tif (south != -1) { \n\t\t\t\tsouthCell = getCellList().get(south);\n\t\t\t\tneighbors.add(getCellList().get(south)); }\n\t\t\tif (west != -1) { \n\t\t\t\twestCell = getCellList().get(west);\n\t\t\t\tneighbors.add(getCellList().get(west)); }\n\t\t}\n\t\treturn neighbors;\n\t}", "@Override\n\tpublic List<Cell> getDiagonalNeighbors(Cell cell) {\n\t\tList<Cell> neighbors = new ArrayList<Cell>();\n\t\tint northEast, northWest, southEast, southWest;\n\t\t\n\t\tnorthEast = getNorthEastCell(cell);\n\t\tnorthWest = getNorthWestCell(cell);\n\t\tsouthEast = getSouthEastCell(cell);\n\t\tsouthWest = getSouthWestCell(cell);\n\t\t\n\t\tif (northEast != -1) { neighbors.add(getCellList().get(northEast)); }\n\t\tif (northWest != -1) { neighbors.add(getCellList().get(northWest)); }\n\t\tif (southEast != -1) { neighbors.add(getCellList().get(southEast)); }\n\t\tif (southWest != -1) { neighbors.add(getCellList().get(southWest)); }\n\t\t\n\t\treturn neighbors;\n\t}", "public TriangleElt3D[] getNeighbours() {\n\t\tint counter = 0;\n\t\tif (this.eltZero != null)\n\t\t\tcounter++;\n\t\tif (this.eltOne != null)\n\t\t\tcounter++;\n\t\tif (this.eltTwo != null)\n\t\t\tcounter++;\n\n\t\tTriangleElt3D[] neighbours = new TriangleElt3D[counter];\n\n\t\tcounter = 0;\n\t\tif (this.eltZero != null) {\n\t\t\tneighbours[counter] = this.eltZero;\n\t\t\tcounter++;\n\t\t}\n\t\tif (this.eltOne != null) {\n\t\t\tneighbours[counter] = this.eltOne;\n\t\t\tcounter++;\n\t\t}\n\t\tif (this.eltTwo != null) {\n\t\t\tneighbours[counter] = this.eltTwo;\n\t\t}\n\n\t\treturn neighbours;\n\t}", "protected boolean computeCell( int col, int row){\n boolean liveCell = getCell(col, row);\r\n\r\n // neighbours is the number of live neighbours to cell (col,row)\r\n int neighbours = countNeighbours(col, row);\r\n //System.out.println(neighbours);\r\n boolean nextCell =false;\r\n //System.out.println(neighbours);\r\n //A live cell with less than two neighbours dies (underpopulation)\r\n if (liveCell && neighbours < 2) {//A live cell with two or three neighbours lives (a balanced population)\r\n nextCell = false;\t\t\t\t//2 stays alive if alive already... see 3 below\r\n }\r\n else if(liveCell & neighbours == 2){\r\n nextCell = true;\r\n }\r\n //A live cell with with more than three neighbours dies (overcrowding)\r\n else if(neighbours > 3){\r\n nextCell = false;\r\n }\r\n //A dead cell with exactly three live neighbours comes alive\r\n // 3 live neighbours guarantees\r\n else if(neighbours == 3){\r\n nextCell = true;\r\n }\r\n return nextCell;\r\n }", "public abstract T getCell(int row, int column);", "public List<Tile> getNeighbours() {\n \r\n return neighbours;\r\n }", "public Iterable<Board> neighbors() {\n int emptyRow = -1; // Row of the empty tile\n int emptyCol = -1; // Column of the empty tile\n\n // Iterate through each tile in the board, searching for empty tile\n search:\n for (int row = 0; row < N; row++) // For each row in the board\n for (int col = 0; col < N; col++) // For each column in the row\n if (tiles[row][col] == 0) { // If the current tile is empty (value of 0)\n emptyRow = row; // Store the row of the empty tile\n emptyCol = col; // Store the column of the empty tile\n break search; // Break from search\n }\n\n Stack<Board> neighbors = new Stack<Board>(); // Initialize a stack of neighboring board states\n\n if (emptyRow - 1 >= 0) // If there is a row of tiles above the empty tile\n neighbors.push(swap(emptyRow, emptyCol, emptyRow - 1, emptyCol)); // Swap empty tile with the above adjacent tile and add to neighbors stack\n\n if (emptyRow + 1 < N) // If there is a row of tiles below the empty tile\n neighbors.push(swap(emptyRow, emptyCol, emptyRow + 1, emptyCol)); // Swap empty tile with the below adjacent tile and add to neighbors stack\n\n if (emptyCol - 1 >= 0) // If there is a column of tiles to the left of the empty tile\n neighbors.push(swap(emptyRow, emptyCol, emptyRow, emptyCol - 1)); // Swap empty tile with the left adjacent tile and add to neighbors stack\n\n if (emptyCol + 1 < N) // If there is a column of tiles to the right of the empty tile\n neighbors.push(swap(emptyRow, emptyCol, emptyRow, emptyCol + 1)); // Swap empty tile with the right adjacent tile and add to neighbors stack\n\n return neighbors; // Return iterable stack of neighboring board states\n }", "public HexCell getAdjacentCell(HexCell currentCell, MyValues.HEX_POSITION position){\n int cellX = currentCell.x;\n int cellY = currentCell.y;\n HexCell adjacentCell = null;\n switch (position){\n case TOP:\n if(isInBound(cellY-1, y)){\n adjacentCell = getCell(cellX,\n cellY-1);\n }\n break;\n case BOT:\n if(isInBound(cellY+1, y)){\n adjacentCell = getCell(cellX, cellY+1);\n }\n break;\n case TOP_LEFT:\n if(isInBound(cellX -1, x)){\n if(cellX % 2 ==0){\n if(isInBound(cellY-1, y)){\n adjacentCell = getCell(cellX-1, cellY-1);\n }\n } else{\n adjacentCell = getCell(cellX-1, cellY);\n }\n }\n break;\n case TOP_RIGHT:\n if(isInBound(cellX +1, x)){\n if(cellX % 2 ==0){\n if(isInBound(cellY-1, y)){\n adjacentCell = getCell(cellX+1, cellY-1);\n }\n } else{\n adjacentCell = getCell(cellX+1, cellY);\n }\n }\n break;\n case BOT_LEFT:\n if(isInBound(cellX -1, x)){\n if(cellX % 2 ==1){\n if(isInBound(cellY+1, y)){\n adjacentCell = getCell(cellX-1, cellY+1);\n }\n } else{\n adjacentCell = getCell(cellX-1, cellY);\n }\n }\n break;\n case BOT_RIGHT:\n if(isInBound(cellX +1, x)){\n if(cellX % 2 ==1){\n if(isInBound(cellY+1, y)){\n adjacentCell = getCell(cellX+1, cellY+1);\n }\n } else{\n adjacentCell = getCell(cellX+1, cellY);\n }\n }\n break;\n }\n return adjacentCell;\n }", "public int getCellIndex(int column, int row) {\n\t\treturn ((row - 1) * width) + (column - 1);\n\t}", "private int nextColumnNeighbours(Cell[][] cells, int i, int j) {\n\t\tint no = 0;\n\t\tif (cells[i - 1][j].isAlive())\n\t\t\tno++;\n\t\tif (cells[i + 1][j].isAlive())\n\t\t\tno++;\n\t\tif (cells[i - 1][j + 1].isAlive())\n\t\t\tno++;\n\t\tif (cells[i][j + 1].isAlive())\n\t\t\tno++;\n\t\tif (cells[i + 1][j + 1].isAlive())\n\t\t\tno++;\n\t\treturn no;\n\t}", "public void findNeighbours(ArrayList<int[]> visited , Grid curMap) {\r\n\t\tArrayList<int[]> visitd = visited;\r\n\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS cur pos:\" +Arrays.toString(nodePos));\r\n\t\t//for(int j=0; j<visitd.size();j++) {\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +Arrays.toString(visited.get(j)));\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS getvstd\" +Arrays.toString(visited.get(j)));\r\n\t\t//}\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +visited);\r\n\t\tCell left=curMap.getCell(0, 0);\r\n\t\tCell right=curMap.getCell(0, 0);\r\n\t\tCell upper=curMap.getCell(0, 0);\r\n\t\tCell down=curMap.getCell(0, 0);\r\n\t\t//the getStart() method returns x,y coordinates representing the point in x,y axes\r\n\t\t//so if either of [0] or [1] coordinate is zero then we have one less neighbor\r\n\t\tif (nodePos[1]> 0) {\r\n\t\t\tupper=curMap.getCell(nodePos[0], nodePos[1]-1) ; \r\n\t\t}\r\n\t\tif (nodePos[1] < M-1) {\r\n\t\t\tdown=curMap.getCell(nodePos[0], nodePos[1]+1);\r\n\t\t}\r\n\t\tif (nodePos[0] > 0) {\r\n\t\t\tleft=curMap.getCell(nodePos[0] - 1, nodePos[1]);\r\n\t\t}\r\n\t\tif (nodePos[0] < N-1) {\r\n\t\t\tright=curMap.getCell(nodePos[0]+1, nodePos[1]);\r\n\t\t}\r\n\t\t//for(int i=0;i<visitd.size();i++) {\r\n\t\t\t//System.out.println(Arrays.toString(visitd.get(i)));\t\r\n\t\t//}\r\n\t\t\r\n\t\t//check if the neighbor is wall,if its not add to the list\r\n\t\tif(nodePos[1]>0 && !upper.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] - 1}))) {\r\n\t\t\t//Node e=new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1},curMap);\r\n\t\t\t//if(e.getVisited()!=true) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1}, curMap)); // father of the new nodes is this node\r\n\t\t\t//}\r\n\t\t}\r\n\t\tif(nodePos[1]<M-1 &&!down.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] + 1}))){\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] + 1}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]>0 && !left.isWall() && (!exists(visitd,new int[] {nodePos[0] - 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] - 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]<N-1 && !right.isWall() && (!exists(visitd,new int[] {nodePos[0] + 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] + 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\t//for(int i=0; i<NodeChildren.size();i++) {\r\n\t\t\t//System.out.println(\"Paidia sth find:\" + Arrays.toString(NodeChildren.get(i).getNodePos()));\r\n\t\t//}\r\n\t\t\t\t\t\t\r\n\t}", "private List<Integer> getCells(Edge e) {\r\n\t\treturn getCells(e.getMBR());\r\n\t}", "@Override\n public Iterable<WorldState> neighbors() {\n Queue<WorldState> neighbor = new ArrayDeque<>();\n int xDim = 0, yDim = 0;\n int[][] tiles = new int[_N][_N];\n\n for (int i = 0; i < _N; i++) {\n for (int j = 0; j < _N; j++) {\n tiles[i][j] = _tiles[i][j];\n if (_tiles[i][j] == 0) {\n xDim = i;\n yDim = j;\n }\n }\n }\n\n for (int i = 0; i < _N; i++) {\n for (int j = 0; j < _N; j++) {\n if (Math.abs(i - xDim) + Math.abs(j - yDim) == 1) {\n tiles[i][j] = _tiles[xDim][yDim];\n tiles[xDim][yDim] = _tiles[i][j];\n neighbor.add(new Board(tiles));\n // System.out.println(new Board(tiles));\n tiles[xDim][yDim] = _tiles[xDim][yDim];\n tiles[i][j] = _tiles[i][j];\n }\n }\n }\n return neighbor;\n }", "private MapCell nextCell(MapCell cell) {\r\n\t\t\r\n\t\t//This is an array that holds the possible neighbouring tiles.\r\n\t\tMapCell[] potentialCells = {null,null,null,null};\r\n\t\t\r\n\t\t//This variable is an indicator. If it remains -1, that means no possible neighbouring tiles were found.\r\n\t\tint next = -1; \r\n\t\t\t\r\n\t\t//If the cell is a north road, check that its neighbour to the north is not null or marked. Then, see if it's either\r\n\t\t//an intersection, the destination, or another north road.\r\n\t\tif(cell.getNeighbour(0)!=null && cell.isNorthRoad()) {\r\n\r\n\t\t\tif(!cell.getNeighbour(0).isMarked()) {\r\n\r\n\t\t\t\tif(cell.getNeighbour(0).isIntersection()||cell.getNeighbour(0).isDestination()||cell.getNeighbour(0).isNorthRoad()) {\r\n\r\n\t\t\t\t\t//Add the north neighbour to the array of potential next tiles.\r\n\t\t\t\t\tpotentialCells[0] = cell.getNeighbour(0);\r\n\t\t\t\t\tnext = 0;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t//If the cell is an east road, check that its neighbour to the east is not null or marked. Then, see if it's either\r\n\t\t//an intersection, the destination, or another east road.\r\n\t\t} else if (cell.getNeighbour(1)!=null && cell.isEastRoad()) {\r\n\r\n\t\t\tif(!cell.getNeighbour(1).isMarked()) {\r\n\r\n\t\t\t\tif(cell.getNeighbour(1).isIntersection()||cell.getNeighbour(1).isDestination()||cell.getNeighbour(1).isEastRoad()) {\r\n\r\n\t\t\t\t\t//Add the east neighbour to the potential next tiles.\r\n\t\t\t\t\tpotentialCells[1] = cell.getNeighbour(1);\r\n\t\t\t\t\tnext = 0;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t//If the cell is a south road, check that its neighbour to the south is not null or marked. Then, see if it's either\r\n\t\t//an intersection, the destination, or another south road.\r\n\t\t} else if (cell.getNeighbour(2)!=null && cell.isSouthRoad()) {\r\n\r\n\t\t\tif(!cell.getNeighbour(2).isMarked()) {\r\n\r\n\t\t\t\tif(cell.getNeighbour(2).isIntersection()||cell.getNeighbour(2).isDestination()||cell.getNeighbour(2).isSouthRoad()) {\r\n\r\n\t\t\t\t\t//Add the south neighbour to the potential next tiles.\r\n\t\t\t\t\tpotentialCells[2] = cell.getNeighbour(2);\r\n\t\t\t\t\tnext = 0;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t//If the cell is a west road, check that its neighbour to the west is not null or marked. Then, see if it's either\r\n\t\t//an intersection, the destination, or another west road.\r\n\t\t} else if (cell.getNeighbour(3)!=null && cell.isWestRoad()) {\r\n\r\n\t\t\tif(!cell.getNeighbour(3).isMarked()) {\r\n\r\n\t\t\t\tif(cell.getNeighbour(3).isIntersection()||cell.getNeighbour(3).isDestination()||cell.getNeighbour(3).isWestRoad()) {\r\n\r\n\t\t\t\t\t//Add the west neighbour to the potential next tiles.\r\n\t\t\t\t\tpotentialCells[3] = cell.getNeighbour(3);\r\n\t\t\t\t\tnext = 0;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t//If the current cell is an intersection, go through all 4 of its potential neighbours.\r\n\t\t} else {\r\n\r\n\t\t\tfor(int i = 0; i<4; i++) {\r\n\r\n\t\t\t\t//Check that the neighbour isn't null or marked.\r\n\t\t\t\tif(cell.getNeighbour(i)!=null) {\r\n\r\n\t\t\t\t\tif(!cell.getNeighbour(i).isMarked()) {\r\n\r\n\t\t\t\t\t\t//Check to see if the neighbour is either an intersection, or a one-way road in the proper orientation to\r\n\t\t\t\t\t\t//continue the path.\r\n\t\t\t\t\t\tif(cell.getNeighbour(i).isIntersection()||cell.getNeighbour(i).isDestination()||(i==0\r\n\t\t\t\t\t\t\t\t&&cell.getNeighbour(i).isNorthRoad())||(i==1&&cell.getNeighbour(i).isEastRoad())||(i==2\r\n\t\t\t\t\t\t\t\t&&cell.getNeighbour(i).isSouthRoad())||(i==3&&cell.getNeighbour(i).isWestRoad())) {\r\n\r\n\t\t\t\t\t\t\t//Add the tile to the possible next tiles.\r\n\t\t\t\t\t\t\tpotentialCells[i] = cell.getNeighbour(i);\r\n\t\t\t\t\t\t\tnext = 0;\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t//If no tiles were found, return null.\r\n\t\tif(next == -1) {\r\n\r\n\t\t\treturn null;\r\n\r\n\t\t//Otherwise, select one (or one of) the next possible tiles and return it.\r\n\t\t} else {\r\n\r\n\t\t\tfor(int i = 3; i >= 0; i--) {\r\n\r\n\t\t\t\tif(potentialCells[i]!=null) {\r\n\r\n\t\t\t\t\tnext = i;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\treturn potentialCells[next];\r\n\r\n\t\t}\r\n\t\t\r\n\t}", "public abstract int getNeighboursNumber(int index);", "public void checkNeighbours(int row, int column)\r\n {\r\n int counter = 0;\r\n //*************************************************\r\n //Following code was adapted from Harry Tang 2015-04-27\r\n for (int columnNeighbours = column - 1; columnNeighbours <= column + 1; columnNeighbours ++)\r\n {\r\n for (int rowNeighbours = row - 1; rowNeighbours <= row + 1; rowNeighbours ++)\r\n {\r\n try \r\n {\r\n if (cellGrid[columnNeighbours][rowNeighbours].isAlive()\r\n && cellGrid[columnNeighbours][rowNeighbours] != cellGrid[column][row])\r\n {\r\n counter ++;\r\n }\r\n }\r\n catch (IndexOutOfBoundsException e)\r\n {\r\n // do nothing\r\n }\r\n } // end of for (int y = indexY - 1; y == indexY; y++)\r\n } // end of for (int x = indexX - 1; x == indexX; x++)\r\n //*************************************************\r\n \r\n decisionOnCellState(counter, row, column);\r\n }", "public List<Point> getPossibleNeighbours() {\n List<Point> points = new ArrayList<>();\n int x = point.getX();\n int y = point.getY();\n Arrays.asList(x - 1, x, x + 1).forEach(i -> {\n Arrays.asList(y - 1, y, y + 1).forEach(j -> {\n points.add(new Point(i, j));\n });\n });\n // remove self\n points.remove(new Point(x, y));\n return points;\n }", "public Cell[] getNeighbors(Cell cell, boolean visited) {\n //get all neighbors\n Cell neighbors[] = getNeighbors(cell);\n //visited-Counter\n int visitedNeighborCounter = 0;\n //count visited neighbors\n for (int i = 0; i < neighbors.length;i++) {\n if (neighbors[i].isVisited()) {\n visitedNeighborCounter++;\n }\n }\n //if visited==true\n if (visited == true) {\n Cell neighbors2[] = new Cell[visitedNeighborCounter];\n for (int i = 0; i < neighbors2.length; i++) {\n if (neighbors[i].isVisited()) {\n neighbors2[i] = neighbors[i];\n }\n }\n return neighbors2;\n }\n //if visited==false\n Cell neighbors2[] = new Cell[neighbors.length - visitedNeighborCounter];\n for (int i = 0; i < neighbors2.length; i++) {\n if (neighbors[i].isVisited() == false) {\n neighbors2[i] = neighbors[i];\n }\n }\n return neighbors2;\n }", "public ArrayList<CoordinateTile> getListOfNeighbours(int i, int j)\n\t{\n\t\tArrayList<CoordinateTile> allNeighbours = new ArrayList<CoordinateTile>();\n\t\tif(this.checkValidCoordinate(i, j+1))\n\t\t{\n\t\t\tallNeighbours.add(this.board[i][j+1]);\n\t\t}\n\t\tif(this.checkValidCoordinate(i, j-1))\n\t\t{\n\t\t\tallNeighbours.add(this.board[i][j-1]);\n\t\t}\n\t\tif(this.checkValidCoordinate(i+1, j))\n\t\t{\n\t\t\tallNeighbours.add(this.board[i+1][j]);\n\t\t}\n\t\tif(this.checkValidCoordinate(i-1, j))\n\t\t{\n\t\t\tallNeighbours.add(this.board[i-1][j]);\n\t\t}\n\t\treturn allNeighbours;\n\t}", "public Cell containingCell() {\n return new Cell(x / NBROFSUBCELLINCELL, y / NBROFSUBCELLINCELL);\n }", "public int[] getNeighborRowIndex() {\n return neighborRowIndex;\n }", "private Cell get_top_left_diagnoal_cell(int row, int col) {\n return get_cell(--row, --col);\n }", "public Cell getCell(int row, int col) {\n return board[row][col];\n }", "@Override\n\tpublic List<Cell> getOrderedNeighbors(Cell cell) {\n\t\tList<Cell> neighbors = new ArrayList<Cell>();\n\t\tint northwest, north, northeast, east, southeast, south, southwest, west;\n\t\t\n\t\tnorthwest = getNorthWestCell(cell);\n\t\tnorth = getNorthCell(cell);\n\t\tnortheast = getNorthEastCell(cell);\n\t\teast = getEastCell(cell);\n\t\tsoutheast = getSouthEastCell(cell);\n\t\tsouth = getSouthCell(cell);\n\t\tsouthwest = getSouthWestCell(cell);\n\t\twest = getWestCell(cell);\n\t\t\n\t\tneighbors.add(getCellList().get(northwest));\n\t\tneighbors.add(getCellList().get(north));\n\t\tneighbors.add(getCellList().get(northeast));\n\t\tneighbors.add(getCellList().get(east));\n\t\tneighbors.add(getCellList().get(southeast));\n\t\tneighbors.add(getCellList().get(south));\n\t\tneighbors.add(getCellList().get(southwest));\n\t\tneighbors.add(getCellList().get(west));\n\t\t\n\t\treturn neighbors;\n\t}", "public int getCell() {\n return this.cell;\n }", "public GoLCell[][] getCells()\n\t{\n\t\treturn this.myGoLCell;\n\t}", "private static Point GetRandomNeighbour(Point current)\n {\n List<Cell> neighbours = new ArrayList<Cell>();\n\n int cX = current.X;\n int cY = current.Y;\n\n //right\n if (cX + 1 <= Size - 1)\n {\n neighbours.add(cells[cX + 1][cY]);\n }\n //left\n if (cX - 1 >= 0)\n {\n neighbours.add(cells[cX - 1][ cY]);\n }\n //Upper\n if (cY - 1 >= 0)\n {\n neighbours.add(cells[cX][cY - 1]);\n }\n //Lower\n if (cY + 1 <= Size - 1)\n {\n neighbours.add(cells[cX][cY + 1]);\n }\n\n\n //Declare and initialize a new list called toRemove\n //We then run a foreach loop that iterates over every Cell in neighbours\n //If Cell n is already visited, add it to toRemove list\n List<Cell> toRemove = new ArrayList<>();\n\n for (Cell n : neighbours)\n {\n if (n.Visited)\n {\n toRemove.add(n);\n }\n }\n //After the foreach loop, remove all cells in neighbours that matches the cells in toRemove\n //We need to do it this way because Java doesn't like to change a list while we iterate over it\n neighbours.removeAll(toRemove);\n\n //Check if neighbours list is empty, if not then return a randomly chosen neighbour\n if (neighbours.size() > 0)\n {\n return neighbours.get(RandomNum.Next(0, neighbours.size())).Point;\n }\n\n return null;\n }", "public abstract void manageCell(int x, int y, int livingNeighbours);", "private Cell get_bottom_left_diagnoal_cell(int row, int col) {\n return get_cell(++row, --col);\n }", "public Collection<N> neighbors();", "public ArrayList<Cell> fillNeighbors(Biochip grid, Cell cell, double value, int dest_x, int dest_y){\n\t\tint i = grid.findRow(cell); \n\t\tint j = grid.findColumn(cell); \n\t\tArrayList<Cell> new_filled_cells = new ArrayList<Cell>();\n\t\t//System.out.println(\"fill for : \" + i + \" \" + j); \n\n\t\t// right neighbor - only if it has one \n\t\tif (j+1<grid.width){\n\t\t\tCell right_n = grid.getCell(i, j+1);\n\t\t\tif (right_n.isFaulty==false && right_n.value<0){\n\t\t\t\t\tright_n.value = value; \n\t\t\t\t\tif (grid.findColumn(right_n)==dest_y && grid.findRow(right_n)==dest_x){\n\t\t\t\t\t\treturn new ArrayList<Cell>();\n\t\t\t\t\t}\n\t\t\t\t\telse new_filled_cells.add(right_n);\n\t\t\t}\n\t\t}\n\t\t// left neighbor - only if it has one\n\t\tif (j-1>=0){\n\t\t\tCell left_n = grid.getCell(i, j-1);\n\t\t\tif (left_n.isFaulty==false && left_n.value<0){\n\t\t\t\tleft_n.value = value; \n\t\t\t\tif (grid.findColumn(left_n)==dest_y && grid.findRow(left_n)==dest_x){\n\t\t\t\t\treturn new ArrayList<Cell>();\n\t\t\t\t}\n\t\t\t\telse new_filled_cells.add(left_n);\n\t\t\t}\n\t\t}\n\t\t// up neighbor\n\t\tif (i-1>=0){\n\t\t\tCell up_n = grid.getCell(i-1, j);\n\t\t\tif (up_n.isFaulty==false && up_n.value<0){\n\t\t\t\tup_n.value = value;\n\t\t\t\tif (grid.findColumn(up_n)==dest_y && grid.findRow(up_n)==dest_x){\n\t\t\t\t\treturn new ArrayList<Cell>();\n\t\t\t\t}\n\t\t\t\telse new_filled_cells.add(up_n);\n\t\t\t}\n\t\t}\n\t\t// down neighbor\n\t\tif (i+1<grid.height){\n\t\t\tCell down_n = grid.getCell(i+1, j);\n\t\t\tif (down_n.isFaulty==false && down_n.value<0){\n\t\t\t\tdown_n.value = value; \n\t\t\t\tif (grid.findColumn(down_n)==dest_y && grid.findRow(down_n)==dest_x){\n\t\t\t\t\treturn new ArrayList<Cell>();\n\t\t\t\t}\n\t\t\t\telse new_filled_cells.add(down_n);\n\t\t\t}\n\t\t}\n\t\t\n\t//\tthis.printGrid(grid);\n\t\treturn new_filled_cells; \n\n\t}", "public boolean isNeighbor(Cell cell){\n \tif((Math.pow(x - cell.getX(), 2) + (Math.pow(y - cell.getY(), 2)) <= 10* 10)){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n }", "public abstract List<AStarNode> getNeighbours();", "public abstract ArrayList<String> neighbours(String vertLabel);", "public List<Location> neighbors (Location pos);", "private List<Cell> getBananaAffectedCell(int x, int y) {\n ArrayList<Cell> cells = new ArrayList<>();\n for (int i = x - 2; i <= x + 2; i++) {\n for (int j = y - 2; j <= y + 2; j++) {\n // Don't include the current position\n if (isValidCoordinate(i, j) && euclideanDistance(i, j, x, y) <= 2) {\n cells.add(gameState.map[j][i]);\n }\n }\n }\n\n return cells;\n }", "private int searchNeighbours(int[][] neighbourCords, int cellX, int cellY) {\n int neighbours = 0;\n for (int[] offset : neighbourCords) {\n if (getCell(cellX + offset[0], cellY + offset[1]).isAlive()) {\n neighbours++;\n }\n }\n\n return neighbours;\n }", "private static Cell isAdjacent(char[][] board, Character ch, int row, int col, Set<Cell> visited) {\n if(isValidCell(row-1, col, board) && board[row-1][col] == ch && !visited.contains(new Cell(row-1, col))) return new Cell(row-1, col);\n //if(isValidCell(row-1, col+1, board) && board[row-1][col+1] == ch && !visited.contains(new Cell(row-1, col+1))) return new Cell(row-1, col+1);\n if(isValidCell(row, col-1, board) && board[row][col-1] == ch && !visited.contains(new Cell(row, col-1))) return new Cell(row, col-1);\n if(isValidCell(row, col+1, board) && board[row][col+1] == ch && !visited.contains(new Cell(row, col+1))) return new Cell(row, col+1);\n //if(isValidCell(row+1, col-1, board) && board[row+1][col-1] == ch && !visited.contains(new Cell(row+1, col-1))) return new Cell(row+1, col-1);\n if(isValidCell(row+1, col, board) && board[row+1][col] == ch && !visited.contains(new Cell(row+1, col))) return new Cell(row+1, col);\n //if(isValidCell(row+1, col+1, board) && board[row+1][col+1] == ch && !visited.contains(new Cell(row+1, col+1))) return new Cell(row+1, col+1);\n return null;\n }", "public Vector getNeighbors()\n\t{\n\t\tVector neighbors = new Vector(8);\n\t\t\n\t\tneighbors.addElement(getNeighbor(NORTH));\n\t\tneighbors.addElement(getNeighbor(NORTHEAST));\n\t\tneighbors.addElement(getNeighbor(EAST));\n\t\tneighbors.addElement(getNeighbor(SOUTHEAST));\n\t\tneighbors.addElement(getNeighbor(SOUTH));\n\t\tneighbors.addElement(getNeighbor(SOUTHWEST));\n\t\tneighbors.addElement(getNeighbor(WEST));\n\t\tneighbors.addElement(getNeighbor(NORTHWEST));\n\n\t\treturn neighbors;\n\t}", "public Cell getCell(int row, int column) {\n return cells[row][column];\n }", "public MapCell getNeighbor(String neighbor){\n\t\tMapCell neighborCell = null;\n\t\ttry {\n\t\t\tif(neighbor.equalsIgnoreCase(\"east\")){\t\t\t\t\n\t\t\t\tneighborCell = eastCell;\n\t\t\t}else if(neighbor.equalsIgnoreCase(\"north\")){\t\t\t\t\n\t\t\t\tneighborCell = northCell;\n\t\t\t}else if(neighbor.equalsIgnoreCase(\"west\")){\t\t\t\t\n\t\t\t\tneighborCell = westCell;\n\t\t\t}else if(neighbor.equalsIgnoreCase(\"south\")){\t\t\t\t\n\t\t\t\tneighborCell = southCell;\n\t\t\t}\n\t\t}catch(NullPointerException np){\n\t\t\treturn neighborCell;\n\t\t}catch(Exception e){\n\t\t\treturn neighborCell;\n\t\t}\n\t\treturn neighborCell;\n\t}", "public Iterable<Board> neighbors() {\n int[] pos = zeroPosition();\n int x = pos[0];\n int y = pos[1];\n\n Stack<Board> q = new Stack<>();\n if (x > 0) {\n q.push(twinBySwitching(x, y, x-1, y));\n }\n\n if (x < dimension() - 1) {\n q.push(twinBySwitching(x, y, x+1, y));\n }\n\n if (y > 0) {\n q.push(twinBySwitching(x, y, x, y-1));\n }\n\n if (y < dimension() - 1) {\n q.push(twinBySwitching(x, y, x, y+1));\n }\n\n return q;\n }", "private ArrayList<GameSquare> getAdjacentSquares()\n {\n ArrayList<GameSquare> list = new ArrayList<GameSquare>();\n for (int r = row - 1; r <= row + 1; r++)\n {\n if (r >= 0 && r < grid.length)\n {\n for (int c = col - 1; c <= col + 1; c++)\n {\n if (c >= 0 && c < grid[0].length)\n {\n list.add(grid[r][c]);\n }\n }\n }\n }\n return list;\n }", "Map<Coord, ICell> getAllCells();", "public int visibleCell(int row, int column) {\n return column;\n }", "public Cell getCell(int row, int col) {\n\t\treturn board[row][col];\n\t}", "private int nextLineNeighbours(Cell[][] cells, int i, int j) {\n\t\tint no = 0;\n\t\tif (j != 0) {\n\t\t\tif (cells[i][j - 1].isAlive())\n\t\t\t\tno++;\n\t\t\tif (cells[i + 1][j - 1].isAlive())\n\t\t\t\tno++;\n\t\t}\n\t\tif (j != cells.length - 1) {\n\t\t\tif (cells[i][j + 1].isAlive())\n\t\t\t\tno++;\n\t\t\tif (cells[i + 1][j + 1].isAlive())\n\t\t\t\tno++;\n\t\t}\n\t\tif (cells[i + 1][j].isAlive())\n\t\t\tno++;\n\t\treturn no;\n\t}", "private List<Cell> getSurroundingCells(int x, int y) {\n ArrayList<Cell> cells = new ArrayList<>();\n for (int i = x - 1; i <= x + 1; i++) {\n for (int j = y - 1; j <= y + 1; j++) {\n // Don't include the current position i != x && j != y &&\n if ( isValidCoordinate(i, j)) {\n if (i == x && j == y) {\n continue;\n } else {\n cells.add(gameState.map[j][i]);\n }\n }\n }\n }\n return cells;\n }", "public Point2D getCellCoordinates(JmtCell cell) {\r\n \t\tRectangle2D bounds = GraphConstants.getBounds(cell.getAttributes());\r\n \t\treturn new Point2D.Double(bounds.getMinX(), bounds.getMinY());\r\n \t}", "public BoardCell getCell(int row, int col) {\n\t\treturn this.grid[row][col]; \n\t}", "private ArrayList<Position3D> findNeighbors(Position3D current, Maze3D myMaze,boolean [][][]VisitedCells) throws Exception {\n ArrayList<Position3D> neighbors = new ArrayList<>();\n //for each neighbor, add him into the neighbors array, if it's on the grid (maze), if it's not a corner, not the current position itself, and it's unvisited\n //iterate over all neighbors in the same depth\n for (int x = current.getRowIndex()-2; x < current.getRowIndex()+3; x=x+2) {\n for (int y = current.getColumnIndex()-2; y < current.getColumnIndex()+3 ; y=y+2) {\n if (pointOnGrid(current.getDepthIndex(),x, y, myMaze) && pointNotCorner(current ,current.getDepthIndex(), x, y)\n && pointNotMyCell(current,current.getDepthIndex(), x, y) && !(Visited(current.getDepthIndex(),x,y,VisitedCells))) {\n neighbors.add(new Position3D(current.getDepthIndex(),x, y));\n }\n }\n }\n //check the options from the other depths\n\n if (pointOnGrid(current.getDepthIndex()+2,current.getRowIndex(), current.getColumnIndex(), myMaze) && !(Visited(current.getDepthIndex()+2,current.getRowIndex(),current.getColumnIndex(),VisitedCells))){\n neighbors.add(new Position3D(current.getDepthIndex()+2,current.getRowIndex(), current.getColumnIndex()));\n }\n if (pointOnGrid(current.getDepthIndex()-2,current.getRowIndex(), current.getColumnIndex(), myMaze) && !(Visited(current.getDepthIndex()-2,current.getRowIndex(),current.getColumnIndex(),VisitedCells))){\n neighbors.add(new Position3D(current.getDepthIndex()-2,current.getRowIndex(), current.getColumnIndex()));\n }\n return neighbors;\n }", "private int previousColumnNeighbours(Cell[][] cells, int i, int j) {\n\t\tint no = 0;\n\t\tif (cells[i - 1][j].isAlive())\n\t\t\tno++;\n\t\tif (cells[i + 1][j].isAlive())\n\t\t\tno++;\n\t\tif (cells[i - 1][j - 1].isAlive())\n\t\t\tno++;\n\t\tif (cells[i][j - 1].isAlive())\n\t\t\tno++;\n\t\tif (cells[i + 1][j - 1].isAlive())\n\t\t\tno++;\n\t\treturn no;\n\t}", "private Cell get_top_right_diagnoal_cell(int row, int col) {\n return get_cell(--row, ++col);\n }", "public int[] getUnderlyingNeighbours(int node) {\n ArrayList ns = new ArrayList(10);// should be plenty\n for (int i = 0; i < nodeCount; i++)\n if (roads[node][i] > 0 || roads[i][node] > 0)\n ns.add(Integer.valueOf(i));\n int[] nbs = new int[ns.size()];\n for (int i = 0; i < ns.size(); i++)\n nbs[i] = ((Integer) ns.get(i)).intValue();\n return nbs;\n }", "public Thing neighbor ( Animal animal, int direction ) {\n\n\t\tif ( direction == Direction.NONE ) {\n\t\t\treturn null;\n\t\t}\n\n\t\tint drow = rowChange(direction), dcol = colChange(direction);\n\t\ttry {\n\n\t\t\treturn at(animal.getRow() + drow,animal.getColumn() + dcol);\n\n\t\t} catch ( ArrayIndexOutOfBoundsException e ) {\n\t\t\treturn null;\n\t\t}\n\t}", "public int[] getCellPosition(int i, int j)\n {\n int[] position = {firstCellPosition[0]+i*cellSize,firstCellPosition[1]+j*cellSize};\n return position;\n }", "private Cell get_right_cell(int row, int col) {\n return get_cell(row, ++col);\n }", "public Image getCellImage(int row, int col) {\n\t\tif (images == null) {\n\t\t\tcreateImageSet();\n\t\t}\n\t\tif ( cells[row][col] < 0 ) {\n\t\t\tif(!images.containsKey(\"not_navigable\"+cells[row][col])) {\n\t\t\t\tcreateImage(\"not_navigable\"+cells[row][col], cells[row][col] );\n\t\t\t}\n\t\t\treturn images.get(\"not_navigable\"+cells[row][col]);\n\t\t} else {\n\t\t\treturn images.get(\"navigable\");\n\t\t}\n\t}", "public boolean[][] getCells() {\n return cells;\n }", "public GameCell[] getBoardCells(){\r\n return this.boardCells;\r\n }", "public List<Tile> getNeighbors() {\n List<Tile> list = new ArrayList<Tile>();\n\n if (this.tileNorth != null) {\n list.add(this.tileNorth);\n }\n\n if (this.tileEast != null) {\n list.add(this.tileEast);\n }\n\n if (this.tileSouth != null) {\n list.add(this.tileSouth);\n }\n\n if (this.tileWest != null) {\n list.add(this.tileWest);\n }\n\n return list;\n }", "public GoLCell[][] getCellArray() {\n return gameBoard;\n }", "@Override\n public ColorCell getCell(int row, int column) {\n List<Pair> pairs = prototypes.get(current).getSegments().get(0).getPairs();\n return new ColorCell(row, column, Color.BLUE, Collections.emptyList(), pairs);\n }", "public Cell(int row, int col, int startingState, int[] neighborRowIndexes,\n int[] neighborColIndexes) {\n myState = startingState;\n myRow = row;\n myCol = col;\n neighborRowIndex = neighborRowIndexes;\n if (hexagon) {\n neighborEvenColIndex = new int[]{-1, -1, 0, 1, 0, -1};\n neighborOddColIndex = new int[]{-1, 0, 1, 1, 1, 0};\n neighborRowIndex = new int[]{0, -1, -1, 0, 1, 1};\n } else {\n neighborEvenColIndex = neighborColIndexes;\n neighborOddColIndex = neighborColIndexes;\n }\n }", "private List<Integer> generateAdjacentCells(int i, String s) {\r\n LinkedList<Integer> validNeighbors = new LinkedList<Integer>();\r\n int iX = this.rowPos(i);\r\n int iY = this.colPos(i);\r\n int nX = iX - 1;\r\n int nY = iY - 1;\r\n //counter for validNeighbors array\r\n int c = 0;\r\n int t = 0;\r\n for (int k = 0; k < 9; k++) {\r\n if (nX >= 0 && nY >= 0 && nX < squareDimension && nY < squareDimension \r\n && !markBoard[nX][nY] && (nX != iX || nY != iY) \r\n && s.toUpperCase().startsWith(wordBoard[nX][nY])) {\r\n \r\n validNeighbors.add((nX * squareDimension + nY));\r\n }\r\n \r\n t++;\r\n nY++;\r\n \r\n if (t == 3) {\r\n nX++;\r\n nY -= 3;\r\n t = 0;\r\n }\r\n }\r\n //no valid neighbors so return null\r\n if (validNeighbors.size() == 0) {\r\n return new LinkedList<Integer>();\r\n }\r\n return validNeighbors;\r\n }" ]
[ "0.76063824", "0.7364697", "0.72480977", "0.71688825", "0.7163309", "0.7144989", "0.711227", "0.71026707", "0.70712346", "0.698697", "0.6935475", "0.6885562", "0.68752885", "0.6817891", "0.6813398", "0.6812131", "0.6789001", "0.67698866", "0.67624176", "0.67055696", "0.6705407", "0.6688165", "0.66781914", "0.6674046", "0.6657242", "0.6628272", "0.65714467", "0.65610856", "0.6528545", "0.6508994", "0.6498624", "0.6485684", "0.64495236", "0.6441943", "0.6439416", "0.6437536", "0.64309764", "0.642566", "0.64243406", "0.63656926", "0.6365252", "0.63608897", "0.63599277", "0.6355501", "0.63552797", "0.6346492", "0.63455045", "0.6339442", "0.6337527", "0.6311636", "0.6302807", "0.63022006", "0.62985194", "0.6293942", "0.62920976", "0.628872", "0.6270706", "0.6267238", "0.62666035", "0.62587035", "0.62511003", "0.6247639", "0.6247615", "0.62475353", "0.62243605", "0.62212193", "0.6217791", "0.62144256", "0.62096244", "0.6198555", "0.6191838", "0.61872905", "0.61819136", "0.6174418", "0.6145471", "0.6142821", "0.6136362", "0.61361694", "0.61291057", "0.6127538", "0.61204106", "0.61100644", "0.61053044", "0.61036247", "0.6089185", "0.6081778", "0.607823", "0.6075195", "0.6074489", "0.6070585", "0.60697925", "0.6068905", "0.605838", "0.605547", "0.6051752", "0.6049777", "0.6049606", "0.60457855", "0.6038895", "0.60303396" ]
0.811916
0
This will be the main method for lab 3, which will call the toString method
public static void main(String[] args) { // create new Lab3 objects Lab3 lab = new Lab3(); Lab3 lab2 = new Lab3(24); Lab3 lab3 = new Lab3("James"); // Display lab 3 objects System.out.println(lab); System.out.println(lab2); System.out.println(lab3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() ;", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "public String toString() {\n\t}", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "abstract public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString() {\r\n String string; //a string is created to hold the information about the student\r\n string = \"Name: \" + getName(); //the name is added to the string\r\n string = string + \", Gender: \" + getGender(); //gender is added\r\n string = string + \", Age: \" + getAge(); //age is added\r\n string = string + \", Courses enroled: \";\r\n if (getCourse().length == 0) {\r\n string = string + \"None\"; //returns none if the student is not enroled into a course\r\n } else {\r\n for (Course course : getCourse())\r\n string = string + course.getSubject().getDescription() + \" \"; //adds the subject description if theyre in a course\r\n }\r\n string = string + \", Certificates: \";\r\n if (getCertificates().size() == 0) {\r\n string = string + \"None\"; //displays none if the student has no certificates\r\n }\r\n for (Integer id : getCertificates().toArray(new Integer[getCertificates().size()])) {\r\n string = string + id + \" \"; //adds each id of each course completed\r\n }\r\n return string + \"\\n\";\r\n }", "public String toString(){\r\n\t\tString temp = \"\";\r\n\t\tfor (String p : Persons.keySet()){\r\n\t\t\tPerson person = Persons.get(p);\r\n\t\t\ttemp += person.toString() + \"\\n\";\r\n\t\t}\r\n\r\n\t\tfor (String prj : LargeProjects){\r\n\t\t\ttemp += \"large-project(\" + prj +\")\\n\";\r\n\t\t}\r\n\r\n\t\ttemp += \"\\n\";\r\n\r\n\t\tfor (String prj : Projects){\r\n\t\t\ttemp += \"project(\" + prj + \")\\n\";\r\n\t\t}\r\n\r\n\t\ttemp += \"\\n\";\r\n\r\n\t\tfor (String r : Rooms.keySet()){\r\n\t\t\tRoom room = Rooms.get(r);\r\n\t\t\tif(room.getSize() == 1){\r\n\t\t\t\ttemp += \"small-room(\" + r + \")\\n\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (String r : Rooms.keySet()) {\r\n\t\t\tRoom room = Rooms.get(r);\r\n\t\t\tif (room.getSize() == 2) {\r\n\t\t\t\ttemp += \"medium-room(\" + r + \")\\n\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (String r : Rooms.keySet()){\r\n\t\t\tRoom room = Rooms.get(r);\r\n\t\t\tif(room.getSize() == 3){\r\n\t\t\t\ttemp += \"large-room(\" + r + \")\\n\";\r\n\t\t\t}\r\n\t\t}\r\n\t\ttemp += \"\\n\";\r\n\r\n\t\tfor (String r : Rooms.keySet()){\r\n\t\t\tRoom room = Rooms.get(r);\r\n\t\t\tfor(String c : room.getCloseTo()){\r\n\t\t\t\ttemp += \"close(\" + r + \", \" + c + \")\\n\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttemp += \"\\n\";\r\n\r\n\t\tfor (String g : Groups.keySet()){\r\n\t\t\ttemp += \"group(\" + g + \")\\n\";\r\n\t\t}\r\n\r\n\t\ttemp += \"\\n\";\r\n\t\t//assignments.removeAll(null);\r\n\t\tfor (Assignment assignment : Assignments){\r\n\t\t\tPerson[] people = assignment.getPerson();\r\n\t\t\tString room = assignment.getRoom().getName();\r\n\t\t\tif (people.length == 2){\r\n\t\t\t\ttemp += \"assign-to(\" + people[0].getName() + \", \" + room + \")\\n\";\r\n\t\t\t\ttemp += \"assign-to(\" + people[1].getName() + \", \" + room + \")\\n\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ttemp += \"assign-to(\" + assignment.toString() + \")\\n\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tint i = 0;\r\n\r\n\r\n\t\treturn temp;\r\n\t}", "abstract public String toString ();", "@Test\n public void testToString() {\n System.out.println(\"Animal.toString\");\n assertEquals(\"Abstract Axe (17 yo Aardvark) resides in cage #202\", animal1.toString());\n assertEquals(\"Brave Beard (3 yo Beaver) resides in cage #112\", animal2.toString());\n }", "@Override\n\tString toString();", "public String toString()\n\t{\n\t\tString output=\"\";\n\n\n\n\n\n\n\t\treturn output+\"\\n\\n\";\n\t}", "@Override\n\tpublic abstract String toString();", "public static void main(String[] args) {\n\t\ttoString Obj = new toString(7,7,2015);\n\n\t}", "@Override\n\tpublic abstract String toString ();", "public String toString()\r\n/* 736: */ {\r\n/* 737:804 */ return toStringBuilder().toString();\r\n/* 738: */ }", "public void toStrings() {\n String output = \"\";\n output += \"Gen Price: $\" + genPrice + \"0\"+ \"\\n\";\n output += \"Bronze Price: $\" + bronzePrice +\"0\"+ \"\\n\";\n output += \"Silver Price: $\" + silverPrice +\"0\"+ \"\\n\";\n output += \"Gold Price: $\" + goldPrice +\"0\"+ \"\\n\";\n output += \"Vip Price: $\" + vipPrice +\"0\"+ \"\\n\";\n System.out.println(output);\n }", "public String toString() {\n // PUT YOUR CODE HERE\n }", "public String toString()\r\n {\r\n System.out.println(\"SOUT\");\r\n return \"Vroom!!\";\r\n }", "@Test\r\n public void testToString() {\r\n System.out.println(\"toString\");\r\n RevisorParentesis instance = null;\r\n String expResult = \"\";\r\n String result = instance.toString();\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 }", "public String toString()\n {\n String output = new String();\n output = \"The student's first name is \" + fname + \", and his/her last name is \" + lname + \". His/her grade is \" + grade + \" and his/her student number is \" + studentNumber + \".\";\n return output;\n }", "@Override\n public String toString() {\n String str = \"\";\n\n //TODO: Complete Method\n\n return str;\n }", "public String toString()\r\n/* 16: */ {\r\n/* 17:14 */ return \"Hello, myNumber is \" + this.myNumber;\r\n/* 18: */ }", "public String toString() { return \"\"; }", "public String toString() { return \"\"; }", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n\tpublic String toString();", "@Override\n String toString();", "@Override\n String toString();", "@Test\n public void testToString() {\n System.out.println(\"toString\");\n Library instance = new Library();\n instance.setName(\"Test\");\n instance.setSize(5);\n String expResult = \"Library{\" + \"name=\" + instance.getName() + \", size=\" + instance.getSize() + \"}\";\n String result = instance.toString();\n assertEquals(expResult, result);\n \n }", "@Test\n\tpublic void testToString() {\n\t\tSystem.out.println(\"toString\");\n\t\tDeleteTask task = new DeleteTask(1);\n\t\tassertEquals(task.toString(), \"DeleteTask -- [filePath=1]\");\n\t}" ]
[ "0.7337314", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7332814", "0.7304632", "0.72780067", "0.72780067", "0.72780067", "0.72780067", "0.72780067", "0.72780067", "0.72780067", "0.72780067", "0.72780067", "0.72780067", "0.72780067", "0.72780067", "0.72780067", "0.72780067", "0.72780067", "0.72780067", "0.72305655", "0.71905065", "0.71905065", "0.71905065", "0.71905065", "0.71905065", "0.71905065", "0.71905065", "0.71905065", "0.71905065", "0.71905065", "0.71905065", "0.71905065", "0.71905065", "0.71905065", "0.71905065", "0.71905065", "0.71905065", "0.71905065", "0.71905065", "0.71905065", "0.71905065", "0.71905065", "0.7024698", "0.70208734", "0.70160925", "0.69963187", "0.6991093", "0.6951984", "0.68580204", "0.6846475", "0.68238187", "0.6818229", "0.6808134", "0.6807585", "0.6763273", "0.67458236", "0.6734558", "0.6729548", "0.6726985", "0.67175734", "0.67127365", "0.67127365", "0.67053497", "0.67053497", "0.67053497", "0.67053497", "0.67053497", "0.67053497", "0.67053497", "0.6704221", "0.6703263", "0.6703263", "0.66995215", "0.6699002" ]
0.0
-1
import the graph from file
@Test public void testDijkstra() throws Exception { String graphFileName = "algorithm/graph/shortestpath/weighted/weightedGraph.txt"; Graph graph = Graph.createGraphFromFile(WeightedShortestPath.class.getResource("/").getPath() + File.separator + graphFileName); System.out.println("==============Graph before weighted shortest path found=============="); graph.printGraph(); WeightedShortestPath.dijkstra(graph, graph.getVertex("v1")); System.out.println("======Graph after weighted shortest path found by Dijkstra's algorithm====="); graph.printGraph(); System.out.println("===================Print the path to each vertex===================="); for (Vertex v: graph.getVertexMap().values()) { graph.printPath(v); System.out.println(); } System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Graph<V,E> load(String filename);", "void readGraphFromFile();", "public void createGraphFromFile() {\n\t\t//如果图未初始化\n\t\tif(graph==null)\n\t\t{\n\t\t\tFileGetter fileGetter= new FileGetter();\n\t\t\ttry(BufferedReader bufferedReader=new BufferedReader(new FileReader(fileGetter.readFileFromClasspath())))\n\t\t\t{\n\t\t\t\tString line = null;\n\t\t\t\twhile((line=bufferedReader.readLine())!=null)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t}\n\t\t\t\t//create the graph from file\n\t\t\t\tgraph = new Graph();\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public Graph load(String filename, Graph g) throws IOException\n {\n return load(filename, g, null);\n }", "public Graph loadFile(){\r\n String path = \"\";\r\n JFileChooser choix = new JFileChooser();\r\n choix.setAcceptAllFileFilterUsed(false);\r\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Only xml files\", \"xml\");\r\n choix.addChoosableFileFilter(filter);\r\n if (choix.showOpenDialog(null) == JFileChooser.APPROVE_OPTION){\r\n path = choix.getSelectedFile().getAbsolutePath();\r\n }\r\n Graph g = new Graph();\r\n boolean quit = false;\r\n int max = 0;\r\n try{\r\n BufferedReader br = new BufferedReader(new FileReader(path));\r\n do {\r\n String line = br.readLine();\r\n if (line.indexOf(\"<node\") != -1){\r\n String[] node_xml = line.split(\"\\\"\");\r\n Node node = new Node(Integer.parseInt(node_xml[1]),(int)Double.parseDouble(node_xml[3]),(int)Double.parseDouble(node_xml[5]),TypeNode.valueOf(node_xml[7]));\r\n max = Math.max(max, node.getId());\r\n if (node.getType() == TypeNode.INCENDIE){\r\n node.kindleFire((int)Double.parseDouble(node_xml[9]));\r\n }\r\n g.getListNodes().add(node);\r\n }\r\n if (line.indexOf(\"<edge\") != -1){\r\n String[] edge_xml = line.split(\"\\\"\");\r\n Edge edge = new Edge(findNode(g,Integer.parseInt(edge_xml[1])),findNode(g,Integer.parseInt(edge_xml[3])),TypeEdge.valueOf(edge_xml[5]));\r\n g.getListEdges().add(edge);\r\n }\r\n if (line.startsWith(\"</osm>\")){\r\n quit = true;\r\n } \r\n Node.setNb_node(max+1);\r\n } while (!quit);\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"File not found : \"+e.getMessage());\r\n } catch (IOException e) {\r\n System.out.println(\"Listening file error : \"+e.getMessage());\r\n }\r\n return g;\r\n }", "@Override\n\tpublic boolean load(String file) {\n\t\ttry {\n GsonBuilder builder=new GsonBuilder();\n builder.registerTypeAdapter(DWGraph_DS.class,new DWG_JsonDeserializer());\n Gson gson=builder.create();\n\n FileReader reader=new FileReader(file);\n directed_weighted_graph dwg=gson.fromJson(reader,DWGraph_DS.class);\n this.init(dwg);\n }\n catch (FileNotFoundException e){\n e.printStackTrace();\n return false;\n }\n return true;\n }", "public Graph load(String filename) throws IOException\n {\n return load(filename, new SparseGraph(), null);\n }", "@Override\n public boolean load(String file) {\n try {\n BufferedReader br = new BufferedReader(new FileReader(file));\n StringBuilder jsonString = new StringBuilder();\n String line = null;\n line = br.readLine();\n while (line != null) {\n jsonString.append(line);\n line = br.readLine();\n }\n br.close();\n /*\n Create a builder for the specific JSON format\n */\n GsonBuilder gsonBuilder = new GsonBuilder();\n JsonDeserializer<DWGraph_DS> deserializer = new JsonDeserializer<DWGraph_DS>() {\n @Override\n public DWGraph_DS deserialize(JsonElement json, Type type, JsonDeserializationContext context) throws JsonParseException {\n JsonObject jsonObject = json.getAsJsonObject();\n DWGraph_DS graph = new DWGraph_DS();\n JsonArray Nodes = jsonObject.getAsJsonArray(\"Nodes\");\n JsonArray Edges = jsonObject.getAsJsonArray(\"Edges\");\n Iterator<JsonElement> iterNodes = Nodes.iterator();\n while (iterNodes.hasNext()) {\n JsonElement node = iterNodes.next();\n\n graph.addNode(new DWGraph_DS.Node(node.getAsJsonObject().get(\"id\").getAsInt()));\n\n String coordinates[] = node.getAsJsonObject().get(\"pos\").getAsString().split(\",\");\n double coordinatesAsDouble[] = {0, 0, 0};\n for (int i = 0; i < 3; i++) {\n coordinatesAsDouble[i] = Double.parseDouble(coordinates[i]);\n }\n DWGraph_DS.Position pos = new DWGraph_DS.Position(coordinatesAsDouble[0], coordinatesAsDouble[1], coordinatesAsDouble[2]);\n graph.getNode(node.getAsJsonObject().get(\"id\").getAsInt()).setLocation(pos);\n }\n Iterator<JsonElement> iterEdges = Edges.iterator();\n int src, dest;\n double w;\n while (iterEdges.hasNext()) {\n JsonElement edge = iterEdges.next();\n src = edge.getAsJsonObject().get(\"src\").getAsInt();\n dest = edge.getAsJsonObject().get(\"dest\").getAsInt();\n w = edge.getAsJsonObject().get(\"w\").getAsDouble();\n graph.connect(src, dest, w);\n }\n return graph;\n }\n };\n gsonBuilder.registerTypeAdapter(DWGraph_DS.class, deserializer);\n Gson graphGson = gsonBuilder.create();\n G = graphGson.fromJson(jsonString.toString(), DWGraph_DS.class);\n return true;\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found!\");\n e.printStackTrace();\n return false;\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n }", "public void loadOrCreateGraph() {\n if(new File(graphPath + OVERLAY_GRAPH).exists())\n loadGraph();\n else {\n System.out.println(\"No file with the graph exists\");\n createGraph();\n }\n //graph.print();\n }", "public void loadGraph() {\n System.out.println(\"The overlay graph will be loaded from an external file\");\n try(FileInputStream fis = new FileInputStream(graphPath + OVERLAY_GRAPH);\n ObjectInputStream ois = new ObjectInputStream(fis))\n {\n graph = (MatrixOverlayGraph) ois.readObject();\n System.out.println(\"Overlay graph loaded\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n loadSupporters();\n }", "@Override\n public boolean load(String file) {\n try {\n FileInputStream streamIn = new FileInputStream(file);\n ObjectInputStream objectinputstream = new ObjectInputStream(streamIn);\n WGraph_Algo readCase = (WGraph_Algo) objectinputstream.readObject();\n this.ga=null;//initialize the graph\n this.ga=readCase.ga;//take the graph from readCase to this.ga\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n return false;\n }", "public static Model loadGraph(String filename) throws FileNotFoundException, IOException {\r\n\t\tFileInputStream stream;\t\t\t//A stream from the file\r\n\t\tModel returnValue;\r\n\t\t\r\n\t\tSystem.out.print(\"Loading \\\"\" + filename + \"\\\"...\");\r\n\t\tstream = new FileInputStream(filename);\r\n\t\treturnValue = ModelFactory.createDefaultModel();\r\n\t\treturnValue.read(stream,null);\r\n\t\tstream.close();\r\n\t\tSystem.out.println(\" Done.\");\r\n\t\r\n\t\treturn returnValue;\r\n\t}", "public static void loadGraph_File(String filename) {\n // Graph aus Datei laden\n Application.graph = null;\n double time_graph = System.currentTimeMillis();\n filename = filename + \".DAT\";\n Application.println(\"============================================================\");\n Application.println(\"Fetching Data from \" + filename + \" and building graph\");\n try {\n FileInputStream fis = new FileInputStream(filename);\n ObjectInputStream obj_in = new ObjectInputStream(fis);\n Object obj = obj_in.readObject();\n if (obj instanceof NavGraph) {\n Application.graph = (NavGraph) obj;\n } else {\n throw new Exception(\"Saved Data != NavGraph\");\n }\n obj_in.close();\n fis.close();\n time_graph = (System.currentTimeMillis() - time_graph) / 1000;\n double time_init = System.currentTimeMillis();\n Application.println(\"Init Graph\");\n graph.initGraph();\n time_init = (System.currentTimeMillis() - time_init) / 1000;\n Application.println(\"Init Graph took \" + time_init + \" Secs\");\n Application.println(\"Fetching Data and building graph took: \" + time_graph + \"sec\");\n Application.println(\"============================================================\");\n } catch (Exception e) {\n Application.println(\"Error: \" + e.toString());\n }\n }", "public void loadGraph2(String path) throws FileNotFoundException, IOException {\n\n\t\ttry (BufferedReader br = new BufferedReader(\n\n\t\t\t\tnew InputStreamReader(new FileInputStream(path), StandardCharsets.UTF_8), 1024 * 1024)) {\n\n\t\t\tString line;\n\n\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\tif (line == null) // end of file\n\t\t\t\t\tbreak;\n\n\n\t\t\t\tint a = 0;\n\t\t\t\tint left = -1;\n\t\t\t\tint right = -1;\n\n\t\t\t\tfor (int pos = 0; pos < line.length(); pos++) {\n\t\t\t\t\tchar c = line.charAt(pos);\n\t\t\t\t\tif (c == ' ' || c == '\\t') {\n\t\t\t\t\t\tif (left == -1)\n\t\t\t\t\t\t\tleft = a;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tright = a;\n\n\t\t\t\t\t\ta = 0;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\t\tSystem.out.println(\"Erreur format ligne \");\n\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t}\n\t\t\t\t\ta = 10 * a + c - '0';\n\t\t\t\t}\n\t\t\t\tright = a;\n\t\t\n\t\t\t\t// s'assurer qu'on a toujours de la place dans le tableau\n\t\t\t\tif (adjVertices.length <= left || adjVertices.length <= right) {\n\t\t\t\t\tensureCapacity(Math.max(left, right) + 1);\n\t\t\t\t}\n\n\t\t\t\tif (adjVertices[left] == null) {\n\t\t\t\t\tadjVertices[left] = new Sommet(left);\n\t\t\t\t}\n\n\t\t\t\tif (adjVertices[right] == null) {\n\t\t\t\t\tadjVertices[right] = new Sommet(right);\n\t\t\t\t}\n\n\t\t\t\tif (adjVertices[left].listeAdjacence.contains(adjVertices[right])) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tadjVertices[left].listeAdjacence.add(adjVertices[right]);\n\t\t\t\t\tadjVertices[right].listeAdjacence.add(adjVertices[left]);\n\t\t\t\t\tnombreArrete++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < adjVertices.length; i++) {\n\t\t\tif (adjVertices[i] == null)\n\t\t\t\tnombreTrous++;\n\t\t}\n\t\tnumberOfNode = adjVertices.length - nombreTrous;\n\t\tSystem.out.println(\"-----------------------------------------------------------------\");\n\t\tSystem.out.println(\"Loading graph done !\");\n\t\tSystem.out.println(\"-----------------------------------------------------------------\");\n\n\t\tSystem.out.println(\"nombreTrous \" + nombreTrous);\n\t\tSystem.out.println(\"numberOfNode \" + numberOfNode);\n\t\t\n\t}", "void createGraphForSingleLoad();", "public Graph load(String filename, Graph g, NumberEdgeValue nev) throws IOException\n {\n Reader reader = new FileReader(filename);\n Graph graph = load(reader, g, nev);\n reader.close();\n return graph;\n }", "public static DSAGraph readFile(String filename)\n {\n DSAGraph graph = new DSAGraph();\n System.out.println(\"Reading file: \" + filename);\n try {\n File inFile = new File(filename);\n Scanner sc = new Scanner(inFile);\n sc.skip(\"#\"); //skips comment at beggining\n //sc.useDelimiter(\" \");\n\n while(sc.hasNextLine())\n {\n //sc.nextLine(); //currently always skipping the first line\n String command = sc.next();\n\n if(command.equals(\"Node\"))//case finds NODE\n {\n String label = sc.next();\n graph.addVertex(label);\n }\n else if(command.equals(\"Edge\")) //case finds EDGE\n {\n String l1 = sc.next();\n String l2 = sc.next();\n graph.addEdge(l1, l2);\n }\n // else if(command.equals(\"#\"))\n // {\n // System.out.println(\"Comment line\"); //may crash if there's a comment after the '#'\n // }\n\n }\n sc.close();\n } catch (Exception e) //file not found\n {\n throw new IllegalArgumentException(\"Unable to load object from file\" + e.getMessage());\n }\n\n return graph;\n\n\n }", "public void readGraph(String filename)\n {\n Scanner fileIn = null;\n int vertex1, vertex2;\n\n try {\n fileIn = new Scanner (new FileReader(filename));\n numVertices = fileIn.nextInt();\n clearGraph();\n vertex1 = fileIn.nextInt();\n while (vertex1 != -1) {\n vertex2 = fileIn.nextInt();\n addEdge(vertex1, vertex2);\n vertex1 = fileIn.nextInt();\n }\n fileIn.close();\n } catch (IOException ioe)\n {\n System.out.println (ioe.getMessage());\n System.exit(0);\n }\n }", "public void readFromTxtFile(String filename){\n try{\n File graphFile = new File(filename); \n Scanner myReader = new Scanner(graphFile); \n parseFile(myReader);\n myReader.close();\n } \n catch(FileNotFoundException e){\n System.out.println(\"ERROR: DGraphEdges, readFromTxtFile: file not found.\");\n e.printStackTrace();\n } \n }", "public AdjacencyLists(String filename)\n {\n readGraph(filename);\n }", "public Graph loadGraph(String graphName) {\n\t\tString fileName = getFileName(graphName);\n\t\t\n\t\tParser parser = new Parser();\n\t\treturn parser.createGraph(fileName);\t\t\n\t}", "private void openGraphML()\r\n {\r\n // Create the file filter.\r\n SimpleFileFilter[] filters = new SimpleFileFilter[] {\r\n new SimpleFileFilter(\"xml\", \"Graph ML (*.xml)\")\r\n };\r\n \r\n // Open the file.\r\n String file = openFileChooser(true, filters);\r\n \r\n // Process the file.\r\n if (file != null)\r\n {\r\n m_graph = Loader.loadGraphML(file);\r\n GraphDisplay2 disp = new GraphDisplay2(m_graph, GRAPH_DISTANCE_FILTER,0,0,\"\");\r\n GraphPanel2 panel = new GraphPanel2(disp, LEGEND, HOPS_CONTROL_WIDGET);\r\n m_tabbedPane.setComponentAt(2, panel);\r\n }\r\n }", "private static void readGraph() throws FileNotFoundException{ \n\n @SuppressWarnings(\"resource\")\n\tScanner scan = new Scanner (new FileReader(file)); \n scan.nextLine();\n\n while (scan.hasNextLine()){\n \n String ligne = scan.nextLine();\n\n if (ligne.equals(\"$\")){break;}\n\n \n String num1=ligne.substring(0,4);\n String num2=ligne.substring(4,ligne.length());\n\n Station st = new Station (num1,num2);\n //remplir les stations voisines ds le tableau Array\n ParisMetro.voisins[Integer.parseInt(st.getStationNum())]= st;\n //remplir les stations \n ParisMetro.stations.add(st);\n \n }\n \n\n while(scan.hasNextLine()){\n String temp = scan.nextLine();\n \n StringTokenizer st; \n\t\t st=new StringTokenizer(temp);\n\t\t \n\t\t int num =Integer.parseInt(st.nextToken());\n\t\t int voisinNum =Integer.parseInt(st.nextToken());\n\t\t int time=Integer.parseInt(st.nextToken());\n\t\t\n \n Chemin che = new Chemin (ParisMetro.voisins[num],ParisMetro.voisins[voisinNum],time);//create a new edge\n \n \n //ajout des chemins\n ParisMetro.chemins.add(che); \n //ajout des sorties stations voisines\n ParisMetro.voisins[num].addSortie(che);\n //ajout des sorties stations voisines\n ParisMetro.voisins[voisinNum].addArrivee(che);\n }\n \n }", "public static void loadGraph(CITS2200Project project, String path) {\n\t\t// The graph is in the following format:\n\t\t// Every pair of consecutive lines represent a directed edge.\n\t\t// The edge goes from the URL in the first line to the URL in the second line.\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(path));\n\t\t\twhile (reader.ready()) {\n\t\t\t\tString from = reader.readLine();\n\t\t\t\tString to = reader.readLine();\n\t\t\t\tSystem.out.println(\"Adding edge from \" + from + \" to \" + to);\n\t\t\t\tproject.addEdge(from, to);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"There was a problem:\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Graph load(String filename, NumberEdgeValue nev) throws IOException\n {\n return load(filename, new SparseGraph(), nev);\n }", "public static Graph readGraph(String path) throws IOException {\r\n\t\tFileReader arq = null;\r\n\t\tBufferedReader lerArq = null;\r\n\t\tGraph grafo = null;\r\n\t\ttry {\r\n\t\t\tarq = new FileReader(path);\r\n\t\t\tlerArq = new BufferedReader(arq);\r\n\r\n\t\t\tString linha = lerArq.readLine(); // 1a linha\r\n\t\t\tint numeroDeVertices = Integer.parseInt(linha);\r\n\r\n\t\t\tgrafo = new Graph(numeroDeVertices);\r\n\r\n\t\t\tlinha = lerArq.readLine(); // 2a ate ultima linha\r\n\t\t\twhile (linha != null && !linha.isEmpty()) {\r\n\t\t\t\tgrafo.addAresta(new Aresta(linha.split(\" \")));\r\n\t\t\t\tlinha = lerArq.readLine();\r\n\t\t\t}\r\n\r\n\t\t\tassociaGraphAresta(grafo);\r\n\t\t\tcriaListaDeVertices(grafo);\r\n\t\t\tresetStatusVertex(grafo);\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.printf(\"Erro na abertura do arquivo: %s.\\n\", e.getMessage());\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.printf(\"Conteudo do arquivo invalido: %s - %s\\n\", path, e.getMessage());\r\n\t\t} finally {\r\n\t\t\tif (arq != null) {\r\n\t\t\t\tarq.close();\r\n\t\t\t}\r\n\t\t\tif (lerArq != null) {\r\n\t\t\t\tlerArq.close();\r\n\t\t\t}\r\n\t\t}\r\n//\t\tshowGraph(grafo);\r\n\t\treturn grafo;\r\n\t}", "public Graph createGraph() {\n String fileName;\n// fileName =\"./428333.edges\";\n String line;\n Graph g = new Graph();\n// List<String> vertexNames = new ArrayList<>();\n// try\n// {\n// BufferedReader in=new BufferedReader(new FileReader(fileName));\n// line=in.readLine();\n// while (line!=null) {\n////\t\t\t\tSystem.out.println(line);\n// String src = line.split(\" \")[0];\n// String dst = line.split(\" \")[1];\n//// vertexNames.add(src);\n//// vertexNames.add(dst);\n//// System.out.println(src+\" \"+dst);\n// g.addEdge(src, dst, 1);\n// line=in.readLine();\n// }\n// in.close();\n// } catch (Exception e) {\n//\t\t\te.printStackTrace();\n// }\n\n fileName=\"./788813.edges\";\n// List<String> vertexNames = new ArrayList<>();\n try\n {\n BufferedReader in=new BufferedReader(new FileReader(fileName));\n line=in.readLine();\n while (line!=null) {\n//\t\t\t\tSystem.out.println(line);\n String src = line.split(\" \")[0];\n String dst = line.split(\" \")[1];\n g.addEdge(src, dst, 1);\n line=in.readLine();\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n// Graph g = new Graph(new String[]{\"v0\", \"v1\", \"v2\", \"v3\", \"v4\", \"v5\", \"v6\", \"v7\", \"v8\"});\n// // Add the required edges.\n// g.addEdge(\"v0\", \"v1\", 4); g.addEdge(\"v0\", \"v7\", 8);\n// g.addEdge(\"v1\", \"v2\", 8); g.addEdge(\"v1\", \"v7\", 11); g.addEdge(\"v2\", \"v1\", 8);\n// g.addEdge(\"v2\", \"v8\", 2); g.addEdge(\"v2\", \"v5\", 4); g.addEdge(\"v2\", \"v3\", 7);\n// g.addEdge(\"v3\", \"v2\", 7); g.addEdge(\"v3\", \"v5\", 14); g.addEdge(\"v3\", \"v4\", 9);\n// g.addEdge(\"v4\", \"v3\", 9); g.addEdge(\"v4\", \"v5\", 10);\n// g.addEdge(\"v5\", \"v4\", 10); g.addEdge(\"v5\", \"v3\", 9); g.addEdge(\"v5\", \"v2\", 4);\n// g.addEdge(\"v5\", \"v6\", 2);\n// g.addEdge(\"v6\", \"v7\", 1); g.addEdge(\"v6\", \"v8\", 6); g.addEdge(\"v6\", \"v5\", 2);\n// g.addEdge(\"v7\", \"v0\", 8); g.addEdge(\"v7\", \"v8\", 7); g.addEdge(\"v7\", \"v1\", 11);\n// g.addEdge(\"v7\", \"v6\", 1);\n// g.addEdge(\"v8\", \"v2\", 2); g.addEdge(\"v8\", \"v7\", 7); g.addEdge(\"v8\", \"v6\", 6);\n\n//\n return g;\n }", "public static DSAGraph load(String filename) throws IllegalArgumentException\n {\n FileInputStream fileStrm;\n ObjectInputStream objStrm;\n DSAGraph inObj = null;\n try\n {\n fileStrm = new FileInputStream(filename);//Underlying stream\n objStrm = new ObjectInputStream(fileStrm);//Object serialization stream\n inObj = (DSAGraph)objStrm.readObject();//Deserialize.\n objStrm.close();//Clean up\n }\n catch (ClassNotFoundException e)\n {\n System.out.println(\"Class not found: \" + e);\n }\n catch (Exception e)\n {\n throw new IllegalArgumentException(\"Unable to load object from file: \" + e.getMessage());\n }\n return inObj;\n\n }", "public CSGraph(String fileName) {\n hashTable = new CSHashing();\n words = readWords(fileName);\n\n// createGraph(); // Minimal lösning\n\n createHashTable(); // Frivillig bra lösning\n createGraphWithHashTable(); // Frivillig bra lösning\n\n// shortestPaths(); // Metod som endast används till textfilen utan par.\n\n readPairs(\"files/5757Pairs\");\n }", "public static Graph readGraphml(String fileName) throws IOException {\n\t\tBufferedReader inputFile = new BufferedReader(new FileReader(fileName));\n\t\tString line;\n\n\t\tline = inputFile.readLine();\n\t\t\t\t\n\t\tString[] parts = line.split(\"\\\"\");\n\t\tString graphName = parts[1];\n\t\tboolean directed = parts[3].equals(\"directed\");\n\t\tint numNodes = 0;\n\t\t\n\t\tline = inputFile.readLine(); //linha do \"key\" ignorada\n\n\t\tline = inputFile.readLine().trim();\t\t\n\t\twhile (!line.startsWith(\"<edge\")) {\n\t\t\tnumNodes ++;\n\t\t\tline = inputFile.readLine().trim();\n\t\t}\n\n\t\t//System.out.printf(\"Graph named %s, %sdirected, with %s nodes\\n\", graphName, directed?\"\":\"UN\", numNodes);\n\t\tGraph graph = new Graph(numNodes, GraphDataRepr.MIXED);\n\t\t\n\t\twhile (line.startsWith(\"<edge\")) {\n\t\t\tparts = line.split(\"\\\"\");\n\t\t\t\n\t\t\tint source = Integer.parseInt( parts[3].substring(1) );\n\t\t\tint target = Integer.parseInt( parts[5].substring(1) );\n\t\t\t\n\t\t\tline = inputFile.readLine();\n\t\t\t\n\t\t\tint startWeightIndex = line.indexOf('>') + 1; \n\t\t\tline = line.substring(startWeightIndex, line.indexOf('<', startWeightIndex));\n\t\t\t\n\t\t\tint capacity = Integer.parseInt(line);\n\t\t\t\n\t\t\t//System.out.printf(\"Aresta: (%s,%s) %s\\n\", source, target, capacity);\n\t\t\t\n\t\t\tif (directed) {\n\t\t\t\tgraph.addDirectedEdge(source, target, capacity);\n\t\t\t} else {\n\t\t\t\tgraph.addUndirectedEdge(source, target, capacity);\n\t\t\t}\n\t\t\t\n\t\t\tline = inputFile.readLine().trim();\n\t\t}\n\t\t\n\t\tinputFile.close();\n\t\treturn graph;\n\t}", "public void readNetworkFromFile() {\r\n\t\tFileReader fr = null;\r\n\t\t// open file with name given by filename\r\n\t\ttry {\r\n\t\t\ttry {\r\n\t\t\t\tfr = new FileReader (filename);\r\n\t\t\t\tScanner in = new Scanner (fr);\r\n\r\n\t\t\t\t// get number of vertices\r\n\t\t\t\tString line = in.nextLine();\r\n\t\t\t\tint numVertices = Integer.parseInt(line);\r\n\r\n\t\t\t\t// create new network with desired number of vertices\r\n\t\t\t\tnet = new Network (numVertices);\r\n\r\n\t\t\t\t// now add the edges\r\n\t\t\t\twhile (in.hasNextLine()) {\r\n\t\t\t\t\tline = in.nextLine();\r\n\t\t\t\t\tString [] tokens = line.split(\"[( )]+\");\r\n\t\t\t\t\t// this line corresponds to add vertices adjacent to vertex u\r\n\t\t\t\t\tint u = Integer.parseInt(tokens[0]);\r\n\t\t\t\t\t// get corresponding Vertex object\r\n\t\t\t\t\tVertex uu = net.getVertexByIndex(u);\r\n\t\t\t\t\tint i=1;\r\n\t\t\t\t\twhile (i<tokens.length) {\r\n\t\t\t\t\t\t// get label of vertex v adjacent to u\r\n\t\t\t\t\t\tint v = Integer.parseInt(tokens[i++]);\r\n\t\t\t\t\t\t// get corresponding Vertex object\r\n\t\t\t\t\t\tVertex vv = net.getVertexByIndex(v);\r\n\t\t\t\t\t\t// get capacity c of (uu,vv)\r\n\t\t\t\t\t\tint c = Integer.parseInt(tokens[i++]);\r\n\t\t\t\t\t\t// add edge (uu,vv) with capacity c to network \r\n\t\t\t\t\t\tnet.addEdge(uu, vv, c);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfinally { \r\n\t\t\t\tif (fr!=null) fr.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (IOException e) {\r\n\t\t\tSystem.err.println(\"IO error:\");\r\n\t\t\tSystem.err.println(e);\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t}", "public void importWorkflow() {\n int returnVal = this.graphFileChooser.showOpenDialog(this.engine.getGUI().getFrame());\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n File file = this.graphFileChooser.getSelectedFile();\n try {\n\n String path = file.getPath();\n Workflow importedWorkflow;\n if (path.endsWith(XBayaConstants.GRAPH_FILE_SUFFIX)) {\n WSGraph importedGraph = WSGraphFactory.createGraph(file);\n importedWorkflow = Workflow.graphToWorkflow(importedGraph);\n } else {\n XmlElement importedWorkflowElement = XMLUtil.loadXML(file);\n importedWorkflow = new Workflow(importedWorkflowElement);\n }\n GraphCanvas newGraphCanvas = engine.getGUI().newGraphCanvas(true);\n newGraphCanvas.setWorkflow(importedWorkflow);\n this.engine.getGUI().setWorkflow(importedWorkflow);\n engine.getGUI().getGraphCanvas().setWorkflowFile(file);\n\n } catch (IOException e) {\n this.engine.getGUI().getErrorWindow().error(ErrorMessages.OPEN_FILE_ERROR, e);\n } catch (GraphException e) {\n this.engine.getGUI().getErrorWindow().error(ErrorMessages.GRAPH_FORMAT_ERROR, e);\n } catch (ComponentException e) {\n this.engine.getGUI().getErrorWindow().error(ErrorMessages.GRAPH_FORMAT_ERROR, e);\n } catch (RuntimeException e) {\n this.engine.getGUI().getErrorWindow().error(ErrorMessages.UNEXPECTED_ERROR, e);\n } catch (Error e) {\n this.engine.getGUI().getErrorWindow().error(ErrorMessages.UNEXPECTED_ERROR, e);\n }\n }\n }", "public IGraph<String,Double> read(String filename) throws FileNotFoundException, IOException {\n // Open the file\n Graph r = new Graph;\n INode n = r.nodeMaker(value);\n INode s = new Node;\n INode d = new Node;\n double w;\n\n\n\n BufferedReader br = new BufferedReader(new FileReader(filename));\n String st;\n char col;\n while ((st = br.readLine()) != null) {\n String[] var = s.split(\":\");\n s = (V) var[0];\n d = (V) var[1];\n w = (double) var[2];\n r.addNode(s);\n r.addNode(d);\n r.addEdge(s, d, w);\n\n }\n\n // Parse the lines. If a line does not have exactly 3 fields, ignore the line\n // For each line, add the nodes and edge\n //How many feilds and what is in each fields\n //After i have the right fields, need make nodes, weights, and add to graphs\n //...making nodes could be tricky... Could get multiple nodes with the same value\n\n // Return the graph instance\n return r;\n }", "public static GraphUndirected<NodeCppOSM, EdgeCppOSM> importOsmUndirected(final String filename) {\n \t\t// setting up\n \t\tGraphUndirected<NodeCppOSM, EdgeCppOSM> osmGraph = new GraphUndirected<>();\n \t\tFileReader fis = null;\n \t\tHashMap<Long, WayNodeOSM> osmNodes = new HashMap<>();\n \t\ttry {\n \t\t\t// create a StAX XML parser\n \t\t\tfis = new FileReader(filename);\n \t\t\tXMLInputFactory factory = XMLInputFactory.newInstance();\n \t\t\tXMLStreamReader parser = factory.createXMLStreamReader(fis);\n \t\t\t// go through all events\n \t\t\tfor (int event = parser.next(); \n \t\t\t\t\tevent != XMLStreamConstants.END_DOCUMENT;\n \t\t\t\t\tevent = parser.next()){\n \t\t\t\tif (event == XMLStreamConstants.START_ELEMENT) {\n \t\t\t\t\t//we are only interested in node|way elements\n \t\t\t\t\tif (parser.getLocalName().equals(\"node\")) {\n \t\t\t\t\t\t// get the node and store it\n \t\t\t\t\t\tWayNodeOSM node = processNode(parser);\n \t\t\t\t\t\tosmNodes.put(node.getID(), node);\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tif (parser.getLocalName().equals(\"way\")) {\n \t\t\t\t\t\t\t// get the way and add it to the graph\n \t\t\t\t\t\t\t// this also creates all the included nodes\n \t\t\t\t\t\t\tOSMWay way = processWay(parser,osmNodes);\n \t\t\t\t\t\t\taddWay(osmGraph,osmNodes,way);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\t// tear down the parser\n \t\t\tparser.close();\n \t\t\tparser = null;\n \t\t\tfactory = null;\n \t\t}\n \t\tcatch (IOException e){\n \t\t\tSystem.out.println(\"IOExcpetions\");\n \t\t\tSystem.exit(0);\n \t\t} catch (XMLStreamException e) {\n \t\t\tSystem.out.println(\"XMLStreamExcpetions\");\n \t\t\tSystem.exit(0);\n \t\t}\n \t\tif(fis!=null){\n \t\t\ttry {\n \t\t\t\tfis.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\tSystem.exit(0);\n \t\t\t} \n \t\t}\n \t\t// reduce the number of nodes\n \t\treturn osmGraph;\n \t}", "public void importGraphUndirective() {\n }", "static public Graph readGraph(String file, boolean list_graph) {\n\t\tGraph G;\n\t\ttry {\n\t\t\tScanner S = new Scanner(new File(file));\n\t\t\tint n = S.nextInt();\n\t\t\tG = list_graph ? new ListGraph(n) : new MatrixGraph(n);\n\n\t\t\twhile (S.hasNext()) {\n\t\t\t\tint u = S.nextInt();\n\t\t\t\tint v = S.nextInt();\n\t\t\t\tDouble w = S.nextDouble();\n\t\t\t\tG.setWeight(u, v, w);\n\t\t\t}\n\t\t\tS.close();\n\t\t\treturn G;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.out);\n\t\t}\n\n\t\treturn null;\n\t}", "public Graph<String, DefaultWeightedEdge> loadGraphFrom(String filepath) throws FileNotFoundException{\n\t\tif (!isGraphFile(filepath)){\n\t\t\tthrow new IllegalArgumentException(\"'\" + filepath + \"' is not a .graph file\");\n\t\t}\n\t\t\n\t\tFile file = new File(filepath);\n\t\tScanner graphdata;\n\t\t\n\t\t//wirft eine FileNotFoundException, wenn File nicht vorhanden\n\t\tgraphdata = new Scanner(file);\n\n\t\tWeightedGraph<String, DefaultWeightedEdge> graph = new DirectedWeightedMultigraph<String, DefaultWeightedEdge>(DefaultWeightedEdge.class);\n\t\tDefaultWeightedEdge aktEdge;\n\t\t\n\n\t\t//Graph einlesen:\n\t\twhile(graphdata.hasNext()){\n\t\t\tString aktSting = graphdata.next().trim();\n\t\t\t\t\t\t\t\t\n\t\t\tString[] aktAry = aktSting.split(\",\");\n\t\t\tString ecke1 = aktAry[0].trim();\n\t\t\tString ecke2 = aktAry[1].trim();\n\t\t\tDouble weight = Double.parseDouble(aktAry[2].trim());\n\t\t\tif(!graph.containsVertex(ecke1)){\n\t\t\t\tgraph.addVertex(ecke1);\n\t\t\t}\n\t\t\tif(!graph.containsVertex(ecke2)){\n\t\t\t\tgraph.addVertex(ecke2);\n\t\t\t}\n\t\t\t\n\t\t\tif (!graph.containsEdge(ecke1, ecke2)){\n\t\t\t\taktEdge = graph.addEdge(ecke1, ecke2);\n\t\t\t\tgraph.setEdgeWeight(aktEdge, weight);\n\t\t\t\taktEdge = graph.addEdge(ecke2, ecke1);\n\t\t\t\tgraph.setEdgeWeight(aktEdge, weight);\n\t\t\t}else{\n\t\t\t\taktEdge = graph.getEdge(ecke1, ecke2);\n\t\t\t\tgraph.setEdgeWeight(aktEdge, graph.getEdgeWeight(aktEdge) + weight);\n\t\t\t\taktEdge = graph.getEdge(ecke2,ecke1);\n\t\t\t\tgraph.setEdgeWeight(aktEdge, graph.getEdgeWeight(aktEdge) + weight);\n\t\t\t}\n\t\t}\n\t\treturn graph;\n\t}", "public interface GraphFile<V,E> {\n\t\n\t/**\n\t * Loads a graph from a file per the appropriate format\n\t * @param filename the location and name of the file\n\t * @return the graph\n\t */\n\tGraph<V,E> load(String filename);\n\t\n\t/**\n\t * Save a graph to disk per the appropriate format\n\t * @param graph the location and name of the file\n\t * @param filename the graph\n\t */\n\tvoid save(Graph<V,E> graph, String filename);\n}", "static public Graph readNamedGraph(String file, boolean list_graph) {\n\t\tGraph G;\n\t\ttry {\n\t\t\tScanner S = new Scanner(new File(file));\n\t\t\tint n = S.nextInt();\n\t\t\tG = list_graph ? new ListGraph(n) : new MatrixGraph(n);\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tG.addName(i, S.next());\n\n\t\t\twhile (S.hasNext()) {\n\t\t\t\tString u = S.next();\n\t\t\t\tString v = S.next();\n\t\t\t\tDouble w = S.nextDouble();\n\n\t\t\t\tG.setWeight(u, v, w);\n\t\t\t}\n\t\t\tS.close();\n\t\t\treturn G;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.out);\n\t\t}\n\n\t\treturn null;\n\t}", "public void openGraph(String dirName, String fileName) {\r\n try {\r\n ObjectInputStream in = new ObjectInputStream(new FileInputStream(dirName + fileName));\r\n\r\n /* Type of the graph */\r\n int type = in.readInt();\r\n\r\n /* Graph */\r\n switch (type) {\r\n case GRAPH_UNORIENTED:\r\n this.graph = (GraphUnoriented) in.readObject();\r\n break;\r\n case GRAPH_ORIENTED:\r\n this.graph = (GraphOriented) in.readObject();\r\n break;\r\n }\r\n this.graphX = (GraphX) in.readObject();\r\n\r\n /* Scroll Rectangle */\r\n this.scrollRectangle = (Rectangle) in.readObject();\r\n\r\n in.close();\r\n\r\n repaintGraph();\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n } catch (ClassNotFoundException e) {\r\n System.out.println(e);\r\n }\r\n\r\n indexTool = SELECT_TOOL;\r\n }", "public void createGraphFromFile(String newDataFileName) throws IOException {\n\n File inFile = new File(newDataFileName); /* XML */\n\n Scanner sc = new Scanner(inFile);\n String line = sc.nextLine();/*Pass the first line */\n\n /* Until Start of the Edges */\n while (line.compareTo(\" <Edges>\") != 0) {\n /* Take the next line */\n line = sc.nextLine();\n }\n\n /* Take the next line */\n line = sc.nextLine();\n\n /* Until End of the Edges */\n while (line.compareTo(\" </Edges>\") != 0) {\n\n /* Add element in the Linked List */\n insert(loadEdgesFromString(line));\n\n /* Take the next line */\n line = sc.nextLine();\n }\n\n /* Close the file */\n sc.close();\n }", "public static Graph<Integer,String> fromFile (String fileName) {\n\t\t\r\n\t\tGraph<Integer,String> g = new SparseGraph<Integer,String>();\r\n\t\tFileReader file = null;\r\n\t\ttry {\r\n\t\t\tfile = new FileReader(fileName);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.print(\"File not found: \" + fileName +\"\\n\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tScanner scan = new Scanner(file);\r\n\r\n\t\twhile (scan.hasNext()){\r\n\t\t\tInteger a = scan.nextInt();\r\n\t\t\tInteger b = scan.nextInt();\r\n\t\t\tg.addEdge(\"e:\"+a+\"-\"+b, a, b);\r\n\t\t}\r\n\t\t\r\n\t\treturn g;\r\n\t}", "public static GraphDirected<NodeCppOSMDirected, EdgeCppOSMDirected> importOsmDirected(final String filename) {\n \t\t// setting up\n \t\tGraphDirected<NodeCppOSMDirected, EdgeCppOSMDirected> osmGraph = new GraphDirected<>();\n \t\tFileReader fis = null;\n \t\tHashMap<Long, WayNodeOSM> osmNodes = new HashMap<>();\n \t\ttry {\n \t\t\t// create a StAX XML parser\n \t\t\tfis = new FileReader(filename);\n \t\t\tXMLInputFactory factory = XMLInputFactory.newInstance();\n \t\t\tXMLStreamReader parser = factory.createXMLStreamReader(fis);\n \t\t\t// go through all events\n \t\t\tfor (int event = parser.next(); \n \t\t\t\t\tevent != XMLStreamConstants.END_DOCUMENT;\n \t\t\t\t\tevent = parser.next()){\n \t\t\t\tif (event == XMLStreamConstants.START_ELEMENT) {\n \t\t\t\t\t//we are only interested in node|way elements\n \t\t\t\t\tif (parser.getLocalName().equals(\"node\")) {\n \t\t\t\t\t\t// get the node and store it\n \t\t\t\t\t\tWayNodeOSM node = processNode(parser);\n \t\t\t\t\t\tosmNodes.put(node.getID(), node);\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tif (parser.getLocalName().equals(\"way\")) {\n \t\t\t\t\t\t\t// get the way and add it to the graph\n \t\t\t\t\t\t\t// this also creates all the included nodes\n \t\t\t\t\t\t\tOSMWay way = processWay(parser,osmNodes);\n \t\t\t\t\t\t\taddWay(osmGraph,osmNodes,way);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\t// tear down the parser\n \t\t\tparser.close();\n \t\t\tparser = null;\n \t\t\tfactory = null;\n \t\t}\n \t\tcatch (IOException e){\n \t\t\tSystem.out.println(\"IOExcpetions\");\n \t\t\tSystem.exit(0);\n \t\t} catch (XMLStreamException e) {\n \t\t\tSystem.out.println(\"XMLStreamExcpetions\");\n \t\t\tSystem.exit(0);\n \t\t}\n \t\tif(fis!=null){\n \t\t\ttry {\n \t\t\t\tfis.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\tSystem.exit(0);\n \t\t\t} \n \t\t}\n \t\t// reduce the number of nodes\n \t\tsimplify(osmGraph);\n \t\treturn osmGraph;\n \t}", "void createGraphForMassiveLoad();", "private static void parseEdges(File fileNameWithPath) throws Exception{\n\n\t\ttry {\n\n BufferedReader in = new BufferedReader(new FileReader(fileNameWithPath));\n\n\t\t /*\n\t\t * Read the first five lines from file as follows\n\t\t *\n\t\t * NAME: berlin52\n\t\t * COMMENT: 52 locations in Berlin (Groetschel)\n\t\t * DIMENSION: 52\n\t\t * EDGE_WEIGHT_TYPE: EUC_2D\n\t\t * OPTIMAL_COST: 7542\n\t\t * NODE_COORD_SECTION\n\t\t */ \n\t\t for (int i=0;i<6;i++){\n \tString str = in.readLine().trim();\n\t\t\tString[] strArray = str.split(\":\\\\s+\");\n\t\t\tif (strArray[0].equals(\"NAME\")) {\n\t\t\t\tProject.name = strArray[1]; \n\t\t\t} else if (strArray[0].equals(\"DIMENSION\")) {\n\t\t\t\tProject.dimension = new Integer(Integer.parseInt(strArray[1]));\n\t\t\t} else if (strArray[0].equals(\"OPTIMAL_COST\")) {\n\t\t\t\tProject.optimalCost = new Double(Double.parseDouble(strArray[1])); \n\t\t\t} else if (strArray[0].equals(\"EDGE_WEIGHT_TYPE\")) {\n\t\t\t\tProject.edgeWeightType = strArray[1]; }\n\t\t }\n\n\t\t if ( dimension == -1 ){\n\t\t\t throw new Exception(\"ERROR:Failed to read the file contents correctly from \"+fileNameWithPath.getPath());\n\t\t }\n\n\t\t /* read each vertex and its coordinates */\n\t\t Integer[] vertices = new Integer[Project.dimension];\n\t\t Double[] xCord = new Double[Project.dimension];\n\t\t Double[] yCord = new Double[Project.dimension];\n\t\t int vertexCount = 0;\n\n\t\t String str;\n while ((str = in.readLine().trim()) != null) {\n\t\t\tif (str.equals(\"EOF\"))\n\t\t\t\tbreak;\n\n\t\t \tString[] ar=str.split(\"\\\\s+\");\n\n\t\t\tvertices[vertexCount] =new Integer(Integer.parseInt(ar[0]));\n\t\t\txCord[vertexCount] =new Double(Double.parseDouble(ar[1]));\n\t\t\tyCord[vertexCount] =new Double(Double.parseDouble(ar[2]));\n\n\t\t\tvertexCount++;\n\t\t}\n\n in.close();\n\n\t\t/* \n\t\t * Generate the cost matrix between each pair of vertices\n\t\t * as a java HashMap<Integer,HashMap<Integer,Double>>\n\t\t*/\n\t\tfor (int i=0;i<Project.dimension;i++) {\n\t\t\tint vi = vertices[i].intValue();\n\t\t\tfor (int j=i+1;j<Project.dimension;j++) {\n\n\t\t\t\tint vj = vertices[j].intValue();\n\t\t\t\tdouble cost_ij = 0;\n\t\t\t\tif ( vi != vj)\n\t\t\t\t{\n\n\t\t\t\t\tif (Project.edgeWeightType.equals(\"GEO\")){\n\t\t\t\t\t\tint deg;\n\t\t\t\t\t\tdouble min;\n\t\n\t \t\t\t\t\tdeg = (int)(xCord[i].doubleValue());\n\t \t\t\t\t\tmin = xCord[i]- deg; \n\t \t\t\t\t\tdouble latitude_i = PI * (deg + 5.0 * min/ 3.0) / 180.0; \n\t\n\t \t\t\t\t\tdeg = (int)(yCord[i].doubleValue());\n\t \t\t\t\t\tmin = yCord[i]- deg; \n\t \t\t\t\t\tdouble longitude_i = PI * (deg + 5.0 * min/ 3.0) / 180.0; \n\t\n\t \t\t\t\t\tdeg = (int)(xCord[j].doubleValue());\n\t \t\t\t\t\tmin = xCord[j]- deg; \n\t \t\t\t\t\tdouble latitude_j = PI * (deg + 5.0 * min/ 3.0) / 180.0; \n\t\n\t \t\t\t\t\tdeg = (int)(yCord[j].doubleValue());\n\t \t\t\t\t\tmin = yCord[j]- deg; \n\t \t\t\t\t\tdouble longitude_j = PI * (deg + 5.0 * min/ 3.0) / 180.0; \n\t\n\t \t\t\t\t\tdouble q1 = Math.cos( longitude_i - longitude_j ); \n\t \t\t\t\t\tdouble q2 = Math.cos( latitude_i - latitude_j ); \n\t \t\t\t\t\tdouble q3 = Math.cos( latitude_i + latitude_j ); \n\n\t \t\t\t\t\tcost_ij = Math.floor( earthRadius * Math.acos( 0.5*((1.0+q1)*q2 - (1.0-q1)*q3) ) + 1.0);\n\n\t\t\t\t\t} else if (Project.edgeWeightType.equals(\"EUC_2D\")){\n\t\t\t\t\t\tdouble xd = xCord[i]-xCord[j];\n\t\t\t\t\t\tdouble yd = yCord[i]-yCord[j];\n\t\t\t\t\t\t\n\t\t\t\t\t\t//cost_ij = new Double(Math.sqrt( (xd*xd) + (yd*yd))).intValue();\n\t\t\t\t\t\tcost_ij = Math.round(Math.sqrt( (xd*xd) + (yd*yd)));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new Exception(\"ERROR:EDGE_WEIGHT_TYPE of GEO and EUC_WD are implemented , not implemented \"+Project.edgeWeightType);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\n\t\t \t\tif (!sourceGTree.containsKey(vi)){\n\t\t \t\t\tsourceGTree.put(vi,new HashMap<Integer,Double>());\n\t\t \t\t}\n\n\t\t \t\tif (!sourceGTree.containsKey(vj)){\n\t\t \t\t\tsourceGTree.put(vj,new HashMap<Integer,Double>());\n\t\t \t\t}\n\n\t\t \t\tsourceGTree.get(vi).put(vj,cost_ij);\n\t\t \t\tsourceGTree.get(vj).put(vi,cost_ij);\n\n\t\t\t}\n\t\t}\n\n } catch (IOException e) {\n System.out.println(\"ERROR: Failed reading file \" + fileNameWithPath.getPath());\n\t\t throw e;\n }\n\n\t}", "void createGraphForDistributedSingleLoad();", "public static void main(String[] args) throws IOException {\n InputStream is = ClassLoader.getSystemResourceAsStream(\"graph.gr\");\n \n //Loading the DSL script into the ANTLR stream.\n CharStream cs = new ANTLRInputStream(is);\n \n // generate lexer from input stream from dsl statements.\n GraphLexer lexer = new GraphLexer(cs);\n CommonTokenStream tokens = new CommonTokenStream(lexer);\n \n // generate parser tree from lexer tokens stream.\n GraphParser parser = new GraphParser(tokens);\n \n //Semantic model to be populated\n Graph g = new Graph();\n GraphDslListener dslRuleListener = new GraphDslListener(g, parser);\n \n //Adding the listener to facilitate walking through parse tree. \n parser.addParseListener(dslRuleListener);\n \n //invoking the parser. \n parser.graph();\n \n Graph.printGraph(g);\n }", "public Graph(String filename) {\n \tvertices = new HashSet<String>();\n \tedges = new HashMap<String, Integer>();\n \tneighbors = new HashMap<String, Set<String>>();\n \ttry {\n \t\tJSONParser parser = new JSONParser();\n \t\tJSONObject jsonObject = (JSONObject)parser.parse(new FileReader(filename));\n \t\tJSONArray vertices = (JSONArray)jsonObject.get(\"vertices\");\n \t\tfor (Object v : vertices) {\n \t\t\tthis.vertices.add((String) v);\n \t\t\tneighbors.put((String)v, new HashSet<String>());\n \t\t}\n \t\tJSONArray edges = (JSONArray)jsonObject.get(\"edges\");\n \t\tfor (Object e : edges) {\n \t\t\tint weight = Integer.parseInt((String)((JSONObject)e).get(\"weight\"));\n \t\t\tString v1 = (String)((JSONObject)e).get(\"v1\");\n \t\t\tString v2 = (String)((JSONObject)e).get(\"v2\");\n \t\t\tthis.edges.put(v1 + \" \" + v2, weight);\n \t\t\tthis.edges.put(v2 + \" \" + v1, weight);\n \t\t\tneighbors.get(v1).add(v2);\n \t\t\tneighbors.get(v2).add(v1);\n \t\t}\n \t}\n \tcatch (Exception exception) {}\n }", "private static Graph fileToGraph(String fileName) throws IOException {\n Graph graph = new Graph();\n // line counter to help keep track of the first line in the array\n // we will add those characters to a arrayList of characters\n int lineCounter = 0;\n ArrayList<Character> nodeArray = new ArrayList<>();\n\n // check if its a existing file\n if (new File(fileName).isFile()) {\n Scanner scanner = new Scanner(new File(fileName));\n // loop over each line in the file\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n String[] stringNums = line.trim().split(\"\\\\s+\");\n // System.out.println(Arrays.toString(stringNums));\n if (lineCounter == 0) {\n for (int i = 0; i < stringNums.length; i++) {\n // add the character to the array list\n nodeArray.add(stringNums[i].charAt(0));\n // add the character to the graph\n // creating a key based on the character\n // and creating a node with the name of that same character\n graph.addNode(stringNums[i].charAt(0));\n }\n } else {\n // the first index is always going to be a character\n Character nodeName = stringNums[0].charAt(0);\n // we will get the node based on what character we are at\n Node currentNode = graph.getNode(nodeName);\n // loop over the array\n for (int i = 1; i < stringNums.length; i++) {\n // convert to an int\n int weight = Integer.parseInt(stringNums[i]);\n // create node by getting\n Node destination = graph.getNode(nodeArray.get(i - 1));\n // connect the destination node and weight to current node that we are at\n if (weight != 0) {\n currentNode.addEdge(destination, weight);\n }\n }\n }\n lineCounter++;\n }\n }\n return graph;\n }", "public Graph load(Reader reader, Graph g) throws IOException\n {\n return load(reader, g, null);\n }", "void readQueryGraph(boolean isProtein, File file, int queryID) throws IOException {\n if(isProtein) {\n FileReader fileReader = new FileReader(file.getPath());\n BufferedReader br = new BufferedReader(fileReader);\n String line = null;\n int lineread = -1;\n boolean edgesEncountered = false;\n while ((line = br.readLine()) != null) {\n lineread++;\n if (lineread == 0)\n continue;\n String lineData[] = line.split(\" \");\n if (lineData.length == 2) {\n if (!edgesEncountered) {\n int id = Integer.parseInt(lineData[0]);\n String label = lineData[1];\n vertexClass vc = new vertexClass();\n vc.id1 = id;\n vc.label = label;\n vc.isProtein = true;\n queryGraphNodes.put(id, vc);\n\n } else {\n int id1 = Integer.parseInt(lineData[0]);\n int id2 = Integer.parseInt(lineData[1]);\n queryGraphNodes.get(id1).edges.put(id2, -1);\n }\n } else {\n edgesEncountered = true;\n }\n\n }\n\n }\n else {\n FileReader fileReader = new FileReader(file);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n String line = null;\n boolean reachedDest = false;\n while ((line = bufferedReader.readLine()) != null) {\n String[] lineData = line.split(\" \");\n if (lineData[0].equals(\"t\")) {\n // new graph\n if (Integer.parseInt(lineData[2]) == queryID) {\n reachedDest = true;\n nodesHuman = new HashMap<>();\n }\n else\n reachedDest = false;\n\n } else if (lineData[0].equals(\"v\")) {\n if (reachedDest) {\n // vertex in the graph\n int id1 = Integer.parseInt(lineData[1]);\n HashMap<String, Object> insertData = new HashMap<>();\n insertData.put(\"id\", id1);\n //insertData.put(\"graphID\", id);\n int count = 0;\n vertexClass vc = new vertexClass();\n for (int i = 2; i < lineData.length; i++) {\n vc.labels.add(Integer.parseInt(lineData[i]));\n\n }\n vc.id1 = id1;\n queryGraphNodes.put(id1, vc);\n }\n } else if (lineData[0].equals(\"e\")) {\n // edge in the graph\n if (reachedDest) {\n int id1 = Integer.parseInt(lineData[1]);\n int id2 = Integer.parseInt(lineData[2]);\n int label = Integer.parseInt(lineData[3]);\n queryGraphNodes.get(id1).edges.put(id2, label);\n }\n\n }\n }\n }\n }", "public static void main(String[] argv) throws Exception {\n // This code should work without modification once your reader code is working\n IGraphReader r = new DiGraphReader();\n IGraph<String,Double> g = r.read(\"graphfile.cs2\");\n IEdge<String,Double>[] edges = g.getEdgeSet();\n for(int i=0; i<edges.length; i++) {\n System.out.println(edges[i].getSource().getValue()+\" -> \"+edges[i].getDestination().getValue()+\" w: \"+edges[i].getWeight());\n }\n }", "private void readNodes() throws FileNotFoundException{\n\t\tScanner sc = new Scanner(new File(\"Resources\\\\ListOfNodes.csv\"));\n\t\tsc.nextLine(); //Skip first line of headers\n\t\twhile(sc.hasNext()) { \n\t\t\tCSVdata = sc.nextLine().split(\",\"); // Add contents of each row to String[]\n\t\t\tnodes.add(new GraphNode<String>(CSVdata[0], CSVdata[1])); // Add new node to object list\n\t\t}\n\t\tsc.close();\n\t}", "public void readIn() throws FileNotFoundException{\n\t\tScanner sc;\n\t\tif (species.equals(\"Human\")){\n\t\t\tsc= new Scanner(PhenoGeneNetwork.class.getResourceAsStream(\"/GenePhenoEdgeList\"));\t\n\t\t}\t\t\n\t\telse{\n\t\t\tsc= new Scanner(PhenoGeneNetwork.class.getResourceAsStream(\"/GenePhenoEdgeListMouse\"));\t\n\t\t}\n\t\tnodeNameMap = new HashMap<String, CyNode>();\n\t\tproteinNameMap = new HashMap<String, CyNode>();\n\t\tphenotypeNameMap = new HashMap<String, CyNode>();\n\t\twhile (sc.hasNextLine()){\n\t\t\tString line = sc.nextLine();\n\t\t\tString [] nodes = line.split(\"\\t\");\n\t\t\tCyNode node1 = null;\n\t\t\tCyNode node2 = null;\n\t\t\t// for Node1\n\t\t\tif (nodeNameMap.containsKey(nodes[0])){\n\t\t\t\t\n\t\t\t\tnode1 = (CyNode) nodeNameMap.get(nodes[0]);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tnode1 = network.addNode();\n\t\t\t\tCyRow attributes = network.getRow(node1);\n\t\t\t\tattributes.set(\"name\", nodes[0]);\n\t\t\t\tnodeNameMap.put(nodes[0], node1);\n\t\t\t\tphenotypeNameMap.put(nodes[0], node1);\t\t\t\t\n\t\t\t}\n\t\t\tif (nodeNameMap.containsKey(nodes[1])){\n\t\t\t\t\n\t\t\t\tnode2 = (CyNode) nodeNameMap.get(nodes[1]);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tnode2 = network.addNode();\n\t\t\t\tCyRow attributes = network.getRow(node2);\n\t\t\t\tattributes.set(\"name\", nodes[1]);\n\t\t\t\tnodeNameMap.put(nodes[1], node2);\n\t\t\t\tproteinNameMap.put(nodes[1], node2);\n\t\t\t}\n\t\t\tif (!network.containsEdge(node1, node2)){\n\t\t\t\t\n\t\t\t\tCyEdge myEdge =network.addEdge(node1, node2, true);\n\t\t\t\tnetwork.getRow(myEdge).set(\"interaction\", \"phenotype\");\n\t\t\t\tnetwork.getRow(myEdge).set(\"name\", nodes[0]+ \" (phenotype) \" +nodes[1]);\n\t\t\t}\n\t\t\t\n\n\n\t\t}\n\n\t\tsc.close();\n\n\t}", "public void decode(Reader inputStream, DomGraph graph, NodeLabels labels)\r\n throws IOException, ParserException, MalformedDomgraphException {\r\n // set up XML parser\r\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder db;\r\n Document doc;\r\n \r\n try {\r\n db = dbf.newDocumentBuilder();\r\n\r\n // Parse the input file to get a Document object\r\n doc = db.parse(new InputSource(inputStream));\r\n } catch (Exception e) {\r\n throw new ParserException(e);\r\n }\r\n \r\n \r\n graph.clear();\r\n labels.clear();\r\n \r\n Element gxl = doc.getDocumentElement(); // First gxl element\r\n\r\n NodeList graph_list = gxl.getChildNodes();\r\n if (graph_list.getLength() == 0) {\r\n return;\r\n }\r\n\r\n for (int graph_index = 0; graph_index < graph_list.getLength(); graph_index++) {\r\n Node graph_node = graph_list.item(graph_index);\r\n if (graph_node.getNodeName().equals(\"graph\")) {\r\n // the \"graph\" element in the XML file\r\n Element graph_elem = (Element) graph_node;\r\n \r\n /*\r\n // set graph id\r\n String graphId = getAttribute(graph_elem, \"id\");\r\n if( graphId != null )\r\n graph.setName(graphId);\r\n */\r\n \r\n NodeList list = graph_elem.getChildNodes();\r\n\r\n // Loop over all nodes\r\n for (int i = 0; i < list.getLength(); i++) {\r\n Node node = list.item(i); // a \"node\" or \"edge\" element\r\n String id = getAttribute(node, \"id\");\r\n String edgeOrNode = node.getNodeName();\r\n String type = getType(node);\r\n Map<String,String> attrs = getStringAttributes(node);\r\n\r\n // TODO: check for unique ID\r\n \r\n if( edgeOrNode.equals(\"node\") ) {\r\n NodeData data;\r\n \r\n if( type.equals(\"hole\") ) {\r\n data = new NodeData(NodeType.UNLABELLED);\r\n } else {\r\n data = new NodeData(NodeType.LABELLED);\r\n labels.addLabel(id, attrs.get(\"label\"));\r\n }\r\n\r\n graph.addNode(id, data);\r\n\r\n /*\r\n // add popup menu\r\n NodeList children = node.getChildNodes();\r\n for (int j = 0; j < children.getLength(); j++) {\r\n Node popupNode = children.item(j); \r\n if( popupNode.getNodeName().equals(\"popup\") ) {\r\n data.addMenuItem(getAttribute(popupNode, \"id\"),\r\n getAttribute(popupNode, \"label\"));\r\n }\r\n }\r\n */\r\n\r\n }\r\n }\r\n \r\n // Loop over all edges\r\n for (int i = 0; i < list.getLength(); i++) {\r\n Node node = list.item(i); // a \"node\" or \"edge\" element\r\n //String id = getAttribute(node, \"id\");\r\n String edgeOrNode = node.getNodeName();\r\n String type = getType(node);\r\n //Map<String,String> attrs = getStringAttributes(node);\r\n \r\n \r\n if( edgeOrNode.equals(\"edge\")) {\r\n EdgeData data;\r\n \r\n if( type.equals(\"solid\")) {\r\n data = new EdgeData(EdgeType.TREE);\r\n } else {\r\n data = new EdgeData(EdgeType.DOMINANCE);\r\n }\r\n \r\n /*\r\n // add popup menu\r\n NodeList children = node.getChildNodes();\r\n for (int j = 0; j < children.getLength(); j++) {\r\n Node popupNode = children.item(j); \r\n if( popupNode.getNodeName().equals(\"popup\") ) {\r\n data.addMenuItem(getAttribute(popupNode, \"id\"),\r\n getAttribute(popupNode, \"label\"));\r\n }\r\n }\r\n */\r\n\r\n String src = getAttribute(node, \"from\");\r\n String tgt = getAttribute(node, \"to\");\r\n \r\n if( (src != null) && (tgt != null)) {\r\n graph.addEdge(src, tgt, data);\r\n }\r\n \r\n }\r\n }\r\n }\r\n } // end of document loop\r\n \r\n // graph.computeAdjacency();\r\n }", "public void readFile(File file) {\n\ttry (BufferedReader br = new BufferedReader(new FileReader(file)))\n\t{\n\n\t\tString sCurrentLine;\n\t\tString [] lineElements;\n\t\t\n\t\t// read the headlines\n\t\tsCurrentLine = br.readLine();\n\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\tnumVertices = Integer.parseInt(lineElements[1]);\n\t\tsCurrentLine = br.readLine();\n\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\tnumPaths = Integer.parseInt(lineElements[1]);\n\t\tsCurrentLine = br.readLine();\n\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\ttmax = Double.parseDouble(lineElements[1]);\n\t\t\n//\t\tSystem.out.println(numVertices + \", \" + numPaths + \", \" + tmax);\n\n\t\t/* read benefits1 */\n\t\tint index = 0;\n\t\twhile ((sCurrentLine = br.readLine()) != null) {\n//\t\t\t\tSystem.out.println(sCurrentLine);\n\t\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\t\tdouble x = Double.parseDouble(lineElements[0]);\n\t\t\tdouble y = Double.parseDouble(lineElements[1]);\n\t\t\tList<Double> scores = new ArrayList<Double>();\n\t\t\tfor (int i = 2; i < lineElements.length; i++) {\n\t\t\t\tdouble score = Double.parseDouble(lineElements[i]);\n\t\t\t\tscores.add(new Double(score));\n\t\t\t}\n\t\t\tPOI POI = new POI(index, x, y, scores);\n\t\t\t//POI.printMe();\n\t\t\t\n\t\t\tvertices.add(POI);\n\t\t\tindex ++;\n\t\t}\n\t\t\n\t\t// create the arcs and the graph\n\t\tfor (int i = 0; i < vertices.size(); i++) {\n\t\t\tfor (int j = 0; j < vertices.size(); j++) {\n\t\t\t\tArc arc = new Arc(vertices.get(i), vertices.get(j));\n\t\t\t\tarcs.add(arc);\n\t\t\t\tgraph.put(new Tuple2<POI, POI>(vertices.get(i), vertices.get(j)), arc);\n\t\t\t}\n\t\t}\n\t} catch (IOException e) {\n\t\te.printStackTrace();\n\t}\n}", "@SuppressWarnings(\"unchecked\")\n\tpublic void readData(String fileName) {\n\t\ttry {\n\t\t\tFile file = new File(fileName);;\n\t\t\tif( !file.isFile() ) {\n\t\t\t\tSystem.out.println(\"ERRO\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\tBufferedReader buffer = new BufferedReader( new FileReader(file) );\n\t\t\t/* Reconhece o valor do numero de vertices */\n\t\t\tString line = buffer.readLine();\n\t\t\tStringTokenizer token = new StringTokenizer(line, \" \");\n\t\t\tthis.num_nodes = Integer.parseInt( token.nextToken() );\n\t\t\tthis.nodesWeigths = new int[this.num_nodes];\n\t\t\t\n\t\t\t/* Le valores dos pesos dos vertices */\n\t\t\tfor(int i=0; i<this.num_nodes; i++) { // Percorre todas a linhas onde seta valorado os pesos dos vertices\n\t\t\t\tif( (line = buffer.readLine()) == null ) // Verifica se existe a linha a ser lida\n\t\t\t\t\tbreak;\n\t\t\t\ttoken = new StringTokenizer(line, \" \");\n\t\t\t\tthis.nodesWeigths[i] = Integer.parseInt( token.nextToken() ); // Adiciona o peso de vertice a posicao do arranjo correspondente ao vertice\n\t\t\t}\n\t\t\t\n\t\t\t/* Mapeia em um array de lista todas as arestas */\n\t\t\tthis.edges = new LinkedList[this.num_nodes];\n\t\t\tint cont = 0; // Contador com o total de arestas identificadas\n\t\t\t\n\t\t\t/* Percorre todas as linhas */\n\t\t\tfor(int row=0, col; row<this.num_nodes; row++) {\n\t\t\t\tif( (line = buffer.readLine()) == null ) // Verifica se ha a nova linha no arquivo\n\t\t\t\t\tbreak;\n\t\t\t\tthis.edges[row] = new LinkedList<Integer>(); // Aloca nova lista no arranjo, representado a linha o novo vertice mapeado\n\t\t\t\tcol = 0;\n\t\t\t\ttoken = new StringTokenizer(line, \" \"); // Divide a linha pelos espacos em branco\n\t\t\t\t\n\t\t\t\t/* Percorre todas as colunas */\n\t\t\t\twhile( token.hasMoreTokens() ) { // Enquanto ouver mais colunas na linha\n\t\t\t\t\tif( token.nextToken().equals(\"1\") ) { // Na matriz binaria, onde possui 1, e onde ha arestas\n//\t\t\t\t\t\tif( row != col ) { // Ignora-se os lacos\n\t\t\t\t\t\t\t//System.out.println(cont + \" = \" + (row+1) + \" - \" + (col+1) );\n\t\t\t\t\t\t\tthis.edges[row].add(col); // Adiciona no arranjo de listas a aresta\n\t\t\t\t\t\t\tcont++; // Incrementa-se o total de arestas encontradas\n//\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcol++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tthis.num_edges = cont; // Atribui o total de arestas encontradas\n\n\t\t\tif(true) {\n//\t\t\t\tfor(int i=0; i<this.num_nodes; i++) {\n//\t\t\t\t\tSystem.out.print(this.nodesWeigths[i] + \"\\n\");\n//\t\t\t\t}\n\t\t\t\tSystem.out.print(\"num edges = \" + cont + \"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tbuffer.close(); // Fecha o buffer\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void loadFileToBackend(String fileName) throws Exception {\r\n\t\tArticleParser articleParser = null;\r\n\t\ttry {\r\n\t\t\tLOGGER.log(Level.FINEST,\"Parsing file\" + fileName);\r\n\t\t\tarticleParser = new ArticleParser(fileName,idGenerator,pubmedDump);\r\n\t\t\tarticleParser.parse();\r\n\t\t\tLOGGER.log(Level.FINEST,\"Parsing of {0} successfull \", fileName);\r\n\t\t\tgraphDelegator.updateGraph(articleParser.getPubmedId(),\r\n\t\t\t\t\t\tarticleParser.getKeywords(),\r\n\t\t\t\t\t\tarticleParser.getCitations());\r\n\t\t\t\r\n\t\t\tarticleParser = null;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tLOGGER.warning(\"Exception while parsing ::\" + ex.getMessage());\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n if (args.length < 3){\n System.out.println(\"please run the program using params as \\\"filename fromCity toCity\\\"\");\n return;\n }\n\n CityGraph<City> graph = CityGraph.newInstance();\n\n String fileName = args[0];\n String line = null;\n try {\n FileReader fileReader = new FileReader(\"./\" + fileName);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n while ((line = bufferedReader.readLine()) != null) {\n String[] arr = line.split(\",\");\n graph.addEdge(new City(arr[0].trim()), new City(arr[1].trim()));\n }\n\n bufferedReader.close();\n } catch (FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n } catch (IOException ex) {\n System.out.println(\"Error reading file '\" + fileName + \"'\");\n }\n if (graph.isConnected(new City(args[1]), new City(args[2]))){\n System.out.println(\"yes\");\n }else {\n System.out.println(\"no\");\n }\n\n\n }", "public static void main(String[] args) throws Exception {\n\t\tSystem.out.print(\"Enter a file name: \");\n\t\tScanner fileName = new Scanner(System.in);\n\t\tjava.io.File file = new java.io.File(fileName.nextLine());\n\n\t\t// Test if file exists\n\t\tif (!file.exists()) {\n\t\t\tSystem.out.println(\"The file \\\"\" + file + \"\\\" does not exist.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\t// Crate a Scanner for the file\n\t\tScanner input = new Scanner(file);\n\t\tint NUMBER_OF_VERTICES = input.nextInt();\n\n\t\t// Create a list of AbstractGraph.Edge objects\n\t\tArrayList<AbstractGraph.Edge> edgeList = new ArrayList<>();\n\n\t\t// Create an array of vertices\n\t\tString[] vertices = new String[NUMBER_OF_VERTICES];\n\n\t\t// Read data from file\n\t\tinput.nextLine();\n\t\tfor (int j = 0; j < NUMBER_OF_VERTICES; j++) {\n\t\t\tString s = input.nextLine();\n\t\t\tString[] line = s.split(\"[\\\\s+]\");\n\t\t\tString u = line[0];\n\t\t\tvertices[j] = u; // Add vertex\n\n\t\t\t// Add edges for vertex u\n\t\t\tfor (int i = 1; i < line.length; i++) {\n\t\t\t\tedgeList.add(new AbstractGraph.Edge(Integer.parseInt(u), \n\t\t\t\t\tInteger.parseInt(line[i])));\n\t\t\t}\t\n\t\t}\n\n\t\t// Crate a graph\n\t\tGraph<String> graph = new UnweightedGraph<>(\n\t\t\tArrays.asList(vertices), edgeList);\n\n\t\t// Display the number of vertices\n\t\tSystem.out.println(\"The number of vertices is \" + graph.getSize());\n\n\t\t// Display edges\n\t\tfor (int u = 0; u < NUMBER_OF_VERTICES; u++) {\n\t\t\tSystem.out.print(\"Vertex \" + graph.getVertex(u) + \":\");\n\t\t\tfor (Integer e : graph.getNeighbors(u))\n\t\t\t\tSystem.out.print(\" (\" + u + \", \" + e + \")\");\n\t\t\tSystem.out.println();\n\t\t}\t\t\n\n\t\t// Obtain an instance tree of AbstractGraph.Tree\n\t\tAbstractGraph.Tree tree = graph.dfs(0);\n\n\t\t// Test if graph is connected and print results\n\t\tSystem.out.println(\"The graph is \" +\n\t\t(tree.getNumberOfVerticesFound() != graph.getSize() ? \n\t\t\t\"not \" : \"\") + \"connected\");\n\n\t\t// Close the file\n\t\tinput.close();\n\t}", "private void deserialize(String file_name) {\n\t\t// Reading the object from a file\n\t\ttry {\n\t\t\tFileInputStream file = new FileInputStream(file_name);\n\t\t\tObjectInputStream in = new ObjectInputStream(file);\n\t\t\t// Method for deserialization of object\n\t\t\tthis.GA = (graph) in.readObject();\n\n\t\t\tin.close();\n\t\t\tfile.close();\n\n\t\t\tSystem.out.println(\"Object has been deserialized\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"IOException is caught,object didnt uploaded\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tSystem.err.println(\"ClassNotFoundException is caught,object didnt uploaded\");\n\t\t}\n\t}", "public static void main( String [ ] args )\n {\n Graph g = new Graph( );\n try\n {\n \t//String filePath = System.getProperty(\"user.dir\") + \"/\"+ args[0];\n \t\t\t\t\n FileReader fin = new FileReader( args[0]);\n Scanner graphFile = new Scanner( fin );\n\n // Read the edges and insert\n String line;\n while( graphFile.hasNextLine( ) )\n {\n line = graphFile.nextLine( );\n StringTokenizer st = new StringTokenizer( line );\n\n try\n {\n if( st.countTokens( ) != 3 )\n {\n System.err.println( \"Skipping ill-formatted line \" + line );\n continue;\n }\n String source = st.nextToken( );\n String dest = st.nextToken( );\n double\tdistance = Double.parseDouble(st.nextToken());\n g.addEdge( source, dest,distance );\n g.addEdge( dest, source,distance );\n }\n catch( NumberFormatException e )\n { System.err.println( \"Skipping ill-formatted line \" + line ); }\n }\n }\n catch( IOException e )\n { System.err.println( e ); }\n\n // System.out.println( \"File read...\" );\n // System.out.println( g.vertexMap.size( ) + \" vertices\" );\n\n Scanner in = new Scanner( System.in );\n while( processRequest( in, g ) )\n ;\n }", "public void printGraph(File file) throws OrccException {\r\n \t\ttry {\r\n \t\t\tOutputStream out = new FileOutputStream(file);\r\n \t\t\tDOTExporter<State, UniqueEdge> exporter = new DOTExporter<State, UniqueEdge>(\r\n \t\t\t\t\tnew StringNameProvider<State>(), null,\r\n \t\t\t\t\tnew StringEdgeNameProvider<UniqueEdge>());\r\n \t\t\texporter.export(new OutputStreamWriter(out), getGraph());\r\n \t\t} catch (IOException e) {\r\n \t\t\tthrow new OrccException(\"I/O error\", e);\r\n \t\t}\r\n \t}", "public Dijkstra(String graphFilename) {\n try {\n\n ScotlandYardGraphReader graphReader = new ScotlandYardGraphReader();\n this.graph = graphReader.readGraph(graphFilename);\n nodes = graph.getNodes();\n pageRank = new PageRank(graph);\n pageRank.iterate(100);\n } catch (IOException e) {\n System.err.println(e);\n }\n }", "public static void parseForNewGraph( InputStream is, Graph g ) {\n CGXParser parser = new CGXParser( is );\n parser._topLevelGraph = g;\n parser.setKeepIDs( true );\n parser.setOffset( offsetZero );\n parser.setMakeList( false );\n parser.setPreserveGraph( false );\n\n parser.parseCGXMLCG( g );\n \n }", "private void parse() throws IOException {\r\n\t\tClassLoader cl = getClass().getClassLoader();\r\n\t\tFile file = new File(cl.getResource(\"./OBOfiles/go.obo\").getFile());\r\n\t\tFile file2 = new File(cl.getResource(\"./OBOfiles/go.obo\").getFile());\r\n\t FileReader fr = new FileReader(file);\r\n\t FileReader fr2 = new FileReader(file2);\r\n\t\tin=new BufferedReader(fr);\r\n\t\tin2=new BufferedReader(fr2);\r\n\t\tString line;\r\n\t\twhile((line=next(0))!=null) {\r\n\t\t\tif(line.equals(\"[Term]\")) parseTerm();\r\n\t\t}\r\n\t\tin.close();\r\n\t\tfr.close();\r\n\t\t\r\n\t\t//terms.printTerms();\r\n\t\tbuffer=null;\r\n\t\twhile((line=next(1))!=null) {\r\n\t\t\tif(line.equals(\"[Term]\")) createEdges();\r\n\t\t}\r\n\t\tin2.close();\r\n\t\tfr2.close();\r\n\t\tLOGGER.info(\"Finished Building DAGs!\");\r\n\t\t\r\n\t}", "public HashMap<Node, int[]> importCsv(String name) throws Exception {\n\t\t\n\t\tString path = \"./\" + name + \".csv\";\n\t\tCsvReader reader = new CsvReader(path, ';');\n\t\t\n\t\tboolean end = false;\n\t\tString[] headers;\n\t\tGraph graph = null;\n\t\tHashMap<Node, int[]> nodeDraws = new HashMap<Node, int[]>();\n\t\twhile(!end) {\n\t\t\treader.readHeaders();\n\t\t\theaders = reader.getHeaders();\n\t\t\tif(headers[0].equals(\"Graph\")) {\n\t\t\t\treader.readRecord();\n\t\t\t\tgraph = new Graph(reader.get(\"Graph\"));\n\t\t\t\tManagerMatlab.getInstance().createGraph(reader.get(\"Graph\"));\n\t\t\t\treader.skipRecord();\n\t\t\t} else if(headers[0].equals(\"Nodes\")) {\n\t\t\t\treader.readHeaders();\n\t\t\t\twhile(reader.readRecord() && reader.getColumnCount() > 1 && !reader.get(\"ID\").equals(\"\")) {\n\t\t\t\t\t//Possible problem with the encoding, so we replace  if we find it\n\t\t\t\t\tString nom = reader.get(\"Name\").replace(\"Â\", \"\");\n\t\t\t\t\tNode node = new Node(Integer.valueOf(reader.get(\"ID\")),nom);\n\t\t\t\t\tgraph.addNode(node);\n\t\t\t\t\tnodeDraws.put(node, new int[]{Integer.valueOf(reader.get(\"X\")),Integer.valueOf(reader.get(\"Y\"))});\n\t\t\t\t}\n\t\t\t }else if(headers[0].equals(\"Arcs\")) {\n\t\t\t\treader.readHeaders();\n\t\t\t\twhile(reader.readRecord() && reader.getColumnCount() > 1) {\n\t\t\t\t\tArc arc = new Arc(Integer.valueOf(reader.get(\"ID\")),\n\t\t\t\t\t\t\tgraph.getNode(Integer.valueOf(reader.get(\"headId\"))),graph.getNode(Integer.valueOf(reader.get(\"tailId\"))),\n\t\t\t\t\t\t\tBoolean.valueOf(reader.get(\"directed\")),Integer.valueOf(reader.get(\"color\")));\n\t\t\t\t\tgraph.addArc(arc);\n\t\t\t\t}\n\t\t\t\tif (reader.readRecord() == false) {\n\t\t\t\t\tend = true;\n\t\t\t\t} else {\n\t\t\t\t\treader.readHeaders();\n\t\t\t\t\twhile(reader.readRecord() && reader.getColumnCount() > 1) {\n\t\t\t\t\t\tint ID = Integer.valueOf(reader.get(\"ID\"));\n\t\t\t\t\t\tColor color = new Color(Integer.valueOf(reader.get(\"red\")),\n\t\t\t\t\t\t\t\tInteger.valueOf(reader.get(\"green\")), \n\t\t\t\t\t\t\t\tInteger.valueOf(reader.get(\"blue\")));\n\t\t\t\t\t\tManagerGraph.getInstance().addColor(ID, color);\n\t\t\t\t\t}\n\t\t\t\t\tend = true;\n\t\t\t\t}\n\t\t\t }\n\t\t}\n\t\tManagerGraph.getInstance().setGraph(graph);\n\t\treturn nodeDraws;\n\t}", "@Test\n public void testGetGraph_File_STRICT() throws Exception {\n System.out.println(\"getGraph with a well formed file in parameter and \"\n + \"with the strict building method\");\n\n String filePath = \"testfiles/WellFormedFileJUnit.txt\";\n Graph graph = factory.getGraph(new File(filePath), GraphBuildingMethod.STRICT);\n\n Graph expResult = new Graph();\n Node barbara = new Node(\"barbara\");\n Node carol = new Node(\"carol\");\n Node elizabeth = new Node(\"elizabeth\");\n Node anna = new Node(\"anna\");\n\n Link friend1 = new Link(\"friend\", barbara, carol);\n friend1.addAttribute(\"since\", \"1999\");\n barbara.addLink(friend1);\n carol.addLink(friend1);\n Link friend2 = new Link(\"friend\", barbara, elizabeth);\n friend2.addAttribute(\"since\", \"1999\");\n List<String> values2 = new ArrayList<>();\n values2.add(\"books\");\n values2.add(\"movies\");\n values2.add(\"tweets\");\n friend2.addAttribute(\"share\", values2);\n barbara.addLink(friend2);\n elizabeth.addLink(friend2);\n Link friend3 = new Link(\"friend\", barbara, anna);\n friend3.addAttribute(\"since\", \"2011\");\n barbara.addLink(friend3);\n anna.addLink(friend3);\n\n expResult.addNode(barbara);\n expResult.addNode(elizabeth);\n expResult.addNode(carol);\n expResult.addNode(anna);\n\n System.out.println(\"*************************\");\n System.out.println(expResult);\n System.out.println(\"--------------------------\");\n System.out.println(graph);\n System.out.println(\"***************************\");\n\n assertEquals(expResult, graph);\n }", "public Graph load(Reader reader) throws IOException\n {\n return load(reader, new SparseGraph(), null);\n }", "@Override\r\n\tpublic void initializeFromFile(File inputXmlFile) {\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n\t\ttry {\r\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\r\n\t\t\tDocument doc = builder.parse(inputXmlFile);\r\n\t\t\tNodeList xmlNodeList;\r\n\t\t\tNodeList xmlEdgeList;\r\n\t\t\txmlNodeList = doc.getElementsByTagName(\"node\");\r\n\r\n\t\t\tfor(int i=0;i<xmlNodeList.getLength();i++) {\r\n\r\n\t\t\t\tNode p=xmlNodeList.item(i);\r\n\t\t\t\tElement xmlNode =(Element) p;\r\n\t\t\t\tNodeList.add(xmlNode);\r\n\t\t\t\tNodeMap.put(Integer.parseInt(xmlNode.getAttribute(\"id\")),xmlNode);\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\txmlEdgeList = doc.getElementsByTagName(\"edge\");\r\n\r\n\r\n\t\t\tfor(int j=0;j<xmlEdgeList.getLength();j++) {\r\n\t\t\t\tNode p = xmlEdgeList.item(j);\r\n\t\t\t\tElement xmlNode = (Element) p;\r\n\t\t\t\tEdgeList.add(xmlNode);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SAXException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch(IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public void readGraph(File gmlFile) throws IOException,\n\t\t\tParserConfigurationException, SAXException, GraphIOException {\n\t\tthis.copy(GraphIOUtils.readFromGraphML2(gmlFile));\n\t}", "public ProcessingTarget buildGraph(){\n \t\tgetTibbrGraph();\n \n \t\t//Init a project - and therefore a workspace\n \t\tProjectController pc = Lookup.getDefault().lookup(ProjectController.class);\n \t\tpc.newProject();\n \t\tWorkspace workspace = pc.getCurrentWorkspace();\n \n \t\t//Get a graph model - it exists because we have a workspace\n \t\tGraphModel graphModel = Lookup.getDefault().lookup(GraphController.class).getModel();\n \t\tAttributeModel attributeModel = Lookup.getDefault().lookup(AttributeController.class).getModel();\n \t\tImportController importController = Lookup.getDefault().lookup(ImportController.class);\n \n \t\t//Import file \n \t\tContainer container;\n \t\ttry {\n \t\t\tFile f = new File(this.filename);\n \t\t\tcontainer = importController.importFile(f);\n \t\t\tcontainer.getLoader().setEdgeDefault(EdgeDefault.DIRECTED); //Force DIRECTED\n \t\t container.setAllowAutoNode(false); //Don't create missing nodes\n \t\t} catch (Exception ex) {\n \t\t\tex.printStackTrace();\n \t\t\treturn null;\n \t\t}\n \n \t\t//Append imported data to GraphAPI\n \t\timportController.process(container, new DefaultProcessor(), workspace);\n \n \t\t//See if graph is well imported\n \t\t//DirectedGraph graph = graphModel.getDirectedGraph();\n \t\t//---------------------------\n \n \t\t//Layout for 1 minute\n \t\tAutoLayout autoLayout = new AutoLayout(5, TimeUnit.SECONDS);\n \t\tautoLayout.setGraphModel(graphModel);\n \t\t//YifanHuLayout firstLayout = new YifanHuLayout(null, new StepDisplacement(1f));\n \t\tForceAtlasLayout secondLayout = new ForceAtlasLayout(null);\n \t\tAutoLayout.DynamicProperty adjustBySizeProperty = AutoLayout.createDynamicProperty(\"forceAtlas.adjustSizes.name\", Boolean.TRUE, 0.1f);//True after 10% of layout time\n \t\tAutoLayout.DynamicProperty repulsionProperty = AutoLayout.createDynamicProperty(\"forceAtlas.repulsionStrength.name\", new Double(10000.), 0f);//500 for the complete period\n \t\t//autoLayout.addLayout( firstLayout, 0.5f );\n \t\tautoLayout.addLayout(secondLayout, 1f, new AutoLayout.DynamicProperty[]{adjustBySizeProperty, repulsionProperty});\n \t\tautoLayout.execute();\n \n \n \n \n \n \t\t//Rank color by Degree\n \t\tRankingController rankingController = Lookup.getDefault().lookup(RankingController.class);\n\t\tRanking<?> degreeRanking = rankingController.getModel().getRanking(Ranking.NODE_ELEMENT, Ranking.DEGREE_RANKING);\n\t\tAbstractColorTransformer<?> colorTransformer = (AbstractColorTransformer<?>) rankingController.getModel().getTransformer(Ranking.NODE_ELEMENT, Transformer.RENDERABLE_COLOR);\n \n \t\tcolorTransformer.setColors(new Color[]{new Color(0xFEF0D9), new Color(0xB30000)});\n \t\trankingController.transform(degreeRanking,colorTransformer);\n \n \t\t//Get Centrality\n \t\tGraphDistance distance = new GraphDistance();\n \t\tdistance.setDirected(true);\n \t\tdistance.execute(graphModel, attributeModel);\n \n \t\t//Rank size by centrality\n \t\tAttributeColumn centralityColumn = attributeModel.getNodeTable().getColumn(GraphDistance.BETWEENNESS);\n\t\tRanking<?> centralityRanking = rankingController.getModel().getRanking(Ranking.NODE_ELEMENT, centralityColumn.getId());\n\t\tAbstractSizeTransformer<?> sizeTransformer = (AbstractSizeTransformer<?>) rankingController.getModel().getTransformer(Ranking.NODE_ELEMENT, Transformer.RENDERABLE_SIZE);\n \t\tsizeTransformer.setMinSize(3);\n \t\tsizeTransformer.setMaxSize(20);\n \t\trankingController.transform(centralityRanking,sizeTransformer);\n \n \t\t//Rank label size - set a multiplier size\n\t\tRanking<?> centralityRanking2 = rankingController.getModel().getRanking(Ranking.NODE_ELEMENT, centralityColumn.getId());\n\t\tAbstractSizeTransformer<?> labelSizeTransformer = (AbstractSizeTransformer<?>) rankingController.getModel().getTransformer(Ranking.NODE_ELEMENT, Transformer.LABEL_SIZE);\n \t\tlabelSizeTransformer.setMinSize(1);\n \t\tlabelSizeTransformer.setMaxSize(3);\n \t\trankingController.transform(centralityRanking2,labelSizeTransformer);\n \n \t\tfloat[] positions = {0f,0.33f,0.66f,1f};\n \t\tcolorTransformer.setColorPositions(positions);\n \t\tColor[] colors = new Color[]{new Color(0x0000FF), new Color(0xFFFFFF),new Color(0x00FF00),new Color(0xFF0000)};\n \t\tcolorTransformer.setColors(colors);\n \n \t\t\n \t\t//---------------------------------\n \t\t//Preview configuration\n \t\tPreviewController previewController = Lookup.getDefault().lookup(PreviewController.class);\n \t\tPreviewModel previewModel = previewController.getModel();\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.DIRECTED, Boolean.TRUE);\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.BACKGROUND_COLOR, Color.BLACK);\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.SHOW_NODE_LABELS, Boolean.TRUE);\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.NODE_LABEL_COLOR, new DependantOriginalColor(Color.YELLOW));\n \t\t\n \t\t\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_CURVED, Boolean.TRUE);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_OPACITY, 100);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_RADIUS, 1f);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_THICKNESS,0.2f);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.ARROW_SIZE,0.2f);\n \n \t\tpreviewController.refreshPreview();\n \n \t\t//----------------------------\n \n \t\t//New Processing target, get the PApplet\n \t\tProcessingTarget target = (ProcessingTarget) previewController.getRenderTarget(RenderTarget.PROCESSING_TARGET);\n \t\t\n \t\tPApplet applet = target.getApplet();\n \t\tapplet.init();\n \n \t\t// Add .1 second delay to fix stability issue - per Gephi forums\n try {\n \t\t\t\tThread.sleep(100);\n \t\t\t} catch (InterruptedException e) {\n \t\t\t\t// TODO Auto-generated catch block\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \n \t\t\n \t\t//Refresh the preview and reset the zoom\n \t\tpreviewController.render(target);\n \t\ttarget.refresh();\n \t\ttarget.resetZoom();\n \t\ttarget.zoomMinus();\n \t\ttarget.zoomMinus();\n \t\t\n \t\treturn target;\n \t\t\n \n \t}", "public void readInFile(String filename) {\r\n String lineOfData = new String (\"\");\r\n boolean done = false;\r\n //set up the BufferedReader\r\n BufferedReader fin = null;\r\n\ttry {\r\n fin = new BufferedReader(new InputStreamReader(new FileInputStream(filename)));\r\n lineOfData = fin.readLine();\r\n\t}\r\n catch(Exception c) {\r\n System.out.println(\"ERROR: Input read failed!\");\r\n }\r\n\r\n //read in additional strings until the file is empty\r\n while (done != true){\r\n String temp[] = lineOfData.split(\" \");\r\n graph.add(new Edge(temp[0], temp[1], Integer.parseInt(temp[2]))); //add current string to graph\r\n try {\r\n lineOfData = fin.readLine();\r\n if (lineOfData == null){\r\n done = true;\r\n }\r\n }\r\n catch(IOException ioe){\r\n System.out.println(\"ERROR: Input read failed!\");\r\n }\r\n }\r\n }", "public static void exportRouteGraph() {\n try {\n var nodeRouteNr = new ArrayList<Integer>();\n var links = new ArrayList<Pair<Integer, Integer>>();\n\n int[] idx = {0};\n Files.lines(Path.of(Omnibus.class.getResource(\"segments.txt\").getFile())).forEach(line -> {\n String[] parts = line.split(\",\");\n int routeNr = Integer.parseInt(parts[0]) - 1;\n nodeRouteNr.add(routeNr);\n if (parts.length > 5) {\n String[] connections = parts[5].split(\";\");\n for (String c : connections)\n links.add(new Pair(idx[0], Integer.parseInt(c)));\n }\n ++idx[0];\n });\n\n\n File f = Paths.get(\"route-graph.graphml\").toFile();\n var out = new PrintStream(f);\n out.println(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n out.println(\"<graphml xmlns=\\\"http://graphml.graphdrawing.org/xmlns\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" xsi:schemaLocation=\\\"http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd\\\">\");\n out.println(\"<key attr.name=\\\"r\\\" attr.type=\\\"int\\\" for=\\\"node\\\" id=\\\"r\\\"/>\");\n out.println(\"<key attr.name=\\\"g\\\" attr.type=\\\"int\\\" for=\\\"node\\\" id=\\\"g\\\"/>\");\n out.println(\"<key attr.name=\\\"b\\\" attr.type=\\\"int\\\" for=\\\"node\\\" id=\\\"b\\\"/>\");\n out.println(\"<graph id=\\\"G\\\" edgedefault=\\\"directed\\\">\");\n for (int n = 0; n < nodeRouteNr.size(); ++n) {\n out.println(\"<node id=\\\"n\" + n + \"\\\">\");\n out.println(\"<data key=\\\"r\\\">\" + (COLOR[nodeRouteNr.get(n)]>>16) + \"</data>\");\n out.println(\"<data key=\\\"g\\\">\" + ((COLOR[nodeRouteNr.get(n)]>>8)&0xff) + \"</data>\");\n out.println(\"<data key=\\\"b\\\">\" + (COLOR[nodeRouteNr.get(n)]&0xff) + \"</data>\");\n out.println(\"</node>\");\n }\n int e = 0;\n for (var link : links)\n out.println(\"<edge id=\\\"e\" + (e++) + \"\\\" source=\\\"n\" + link.p + \"\\\" target=\\\"n\" + link.q + \"\\\"/>\");\n out.println(\"</graph>\");\n out.println(\"</graphml>\");\n out.close();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public static void main(String args[]){\n FileInputStream textFile = null;\n Graph graph = new Graph();\n try {\n textFile = new FileInputStream(\"/Users/DoMinhHai/Documents/12_Cousera/Algorithm2/src/week1/edges.txt\");\n Scanner inFile = new Scanner (textFile);\n System.out.println(\"File data.txt has been opened.\");\n String oneLine = inFile.nextLine();\n String first_line[] = oneLine.split(\" \");\n Integer numberOfVerticles = Integer.parseInt(first_line[0]);\n Integer numberOfEdges = Integer.parseInt(first_line[1]);\n\n for(int i=0; i< numberOfEdges; i++) {\n String line = inFile.nextLine();\n String ed[] = line.split(\" \");\n Integer v1 = Integer.parseInt(ed[0]);\n Integer v2 = Integer.parseInt(ed[1]);\n Integer distance = Integer.parseInt(ed[2]);\n Edge e = new Edge(v1, v2, distance);\n graph.addEdge(e);\n }\n System.out.println(graph.verticles.size() + \"--\" + numberOfVerticles);\n System.out.println(graph.edges.size() + \"--\" + numberOfEdges);\n\n MST(graph);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n //FileInputStream textFile = new FileInputStream (\"/Users/DoMinhHai/Documents/12_Cousera/Algorithm2/src/week1/test2.txt\");\n }", "public void loadNodes(String nodeFile) throws Exception {\r\n \tBufferedReader br = new BufferedReader( new FileReader(nodeFile) );\r\n while(true) {\r\n String line = br.readLine();\r\n if(line == null)\r\n \tbreak;\r\n Scanner sr = new Scanner(line);\r\n if(!sr.hasNextLine())\r\n \tbreak;\r\n sr.useDelimiter(\"\\\\t\");\r\n int id = sr.nextInt(); // node id\r\n double weight = 1.0;\r\n String description = sr.next(); // description\r\n mNodes.add( new Node(id, weight, description) );\r\n }\r\n br.close();\r\n System.out.println(\"Loading graph nodes completed. Number of nodes:\" + getNodeCnt() );\r\n // initialize empty neighbor sets for each node\r\n for (int i = 0; i < getNodeCnt(); i++) {\r\n \tSet<Integer> outEdges = new HashSet<Integer> ();\r\n\t\t\tSet<Integer> inEdges = new HashSet<Integer> ();\r\n\t\t\tmOutEdges.add( outEdges );\r\n\t\t\tmInEdges.add( inEdges );\r\n\t\t}\r\n \r\n }", "public Graph load(Reader reader, Graph g, NumberEdgeValue nev) throws IOException\n {\n return load(reader, g, nev, new TypedVertexGenerator(g));\n }", "public FileSourceGraphML() {\n\t\tevents = new Stack<XMLEvent>();\n\t\tkeys = new HashMap<String, Key>();\n\t\tdatas = new LinkedList<Data>();\n\t\tgraphId = new Stack<String>();\n\t\tgraphCounter = 0;\n\t\tsourceId = String.format(\"<GraphML stream %x>\", System.nanoTime());\n\t}", "void load(File file);", "public static void main(String[] args) throws IOException {\n AdjListGraph adjListGraph = null;\r\n AdjMatrixGraph adjMatGraph = null;\r\n AdjMatrixMoreEfficientGraph adjEffGraph = null;\r\n \r\n // Create object for input sequence according to the file name\r\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n System.out.print(\"Enter input filename: \");\r\n String filename = br.readLine();\r\n \r\n // Inserting data to each graph, pay attention to different path representation for ubuntu and windows\r\n In inputFile = new In(\"data/\" + filename);\r\n adjListGraph = new AdjListGraph(inputFile);\r\n inputFile = new In(\"data/\" + filename);\r\n adjMatGraph = new AdjMatrixGraph(inputFile);\r\n inputFile = new In(\"data/\" + filename);\r\n adjEffGraph = new AdjMatrixMoreEfficientGraph(inputFile);\r\n \r\n /*\r\n * Step 2\r\n * get the size of graph of each representation\r\n * AdjListGraph.java: adj\r\n * AdjMatrixGraph.java: adj\r\n\t\t * Please use adjListGraph.sizeOfGraph() to get the memory usage of the graph with list implementation. \r\n\t\t * Please use adjMatGraph.sizeOfGraph() to get the memory usage of the graph with matrix implementation. \r\n */\r\n \r\n // Output every required data from all versions\r\n System.out.format(\"1. Number of vertices = %d \\n\", adjListGraph.V());\r\n System.out.format(\"2. Number of edges = %d \\n\", adjListGraph.E());\r\n System.out.format(\"3. Output of the graph using adjacency list:\\n\");\r\n //adjListGraph.printGraph();\r\n System.out.format(\"4. Adjacency list\\n (a) Memory needed to record edges = %d\\n\", adjListGraph.E() * Size.INTEGER);\r\n System.out.format(\" (b) Total amount of memory used = %d\\n\", adjListGraph.sizeOfGraph());\r\n System.out.format(\" (c) Efficiency = %f\\n\", 100.0 * adjListGraph.E() * Size.INTEGER / adjListGraph.sizeOfGraph());\r\n System.out.format(\"5. Output of the graph using matrix:\\n\");\r\n //adjMatGraph.printGraph();\r\n System.out.format(\"6. Adjacency matrix\\n (a) Memory needed to record edges = %d\\n\", adjMatGraph.E() * Size.BOOLEAN);\r\n System.out.format(\" (b) Total amount of memory used = %d\\n\", adjMatGraph.sizeOfGraph());\r\n System.out.format(\" (c) Efficiency = %f\\n\", 100.0 * adjMatGraph.E() * Size.BOOLEAN / adjMatGraph.sizeOfGraph());\r\n //adjEffGraph.printGraph();\r\n System.out.format(\"Additional task: Efficient Adjacency matrix\\n (a) Memory needed to record edges = %d\\n\", adjEffGraph.E() * Size.BOOLEAN);\r\n System.out.format(\" (b) Total amount of memory used = %d\\n\", adjEffGraph.sizeOfGraph());\r\n System.out.format(\" (c) Efficiency = %f\\n\", 100.0 * adjEffGraph.E() * Size.BOOLEAN / adjEffGraph.sizeOfGraph());\r\n }", "public void loadWorkflow(String filename);", "public void load (File file) throws Exception;", "public static void main(String[] args) throws IOException {\n File file = new File(args[0]);\r\n //FileOutputStream f = new FileOutputStream(\"prat_dfs_data2.txt\");\r\n //System.setOut(new PrintStream(f));\r\n BufferedReader reader = new BufferedReader(new FileReader(file));\r\n String line;\r\n line = reader.readLine();\r\n int nodecount = 0;\r\n HashMap <String , Integer> nodeMap = new HashMap <String , Integer>(); \r\n while ((line = reader.readLine()) != null ) {\r\n String data[] = line.split(\",(?=(?:[^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\");\r\n if (!nodeMap.containsKey(data[0].replaceAll(\"^\\\"|\\\"$\", \"\"))){\r\n nodeMap.put(data[0].replaceAll(\"^\\\"|\\\"$\", \"\"), nodecount);\r\n nodecount++;\r\n }\r\n }\r\n reader.close();\r\n Vertex adjList[] = new Vertex[nodecount];\r\n Vertex sortVer[] = new Vertex[nodecount];\r\n for(int it = 0; it < nodecount; it++){\r\n adjList[it] = new Vertex(it);\r\n }\r\n nodeMap.forEach((k, v) -> adjList[v].val = k);\r\n File file2 = new File(args[1]);\r\n BufferedReader reader2 = new BufferedReader(new FileReader(file2));\r\n line = reader2.readLine();\r\n while ((line = reader2.readLine()) !=null) {\r\n String data[] = line.split(\",(?=(?:[^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\");\r\n String source = data[0].replaceAll(\"^\\\"|\\\"$\", \"\");\r\n String target = data[1].replaceAll(\"^\\\"|\\\"$\", \"\");\r\n\r\n int weight = Integer.parseInt(data[2]);\r\n Vertex current = adjList[nodeMap.get(source)];\r\n Vertex newbie = new Vertex(nodeMap.get(target));\r\n current.countN++;\r\n current.co_occur += weight;\r\n if (adjList[nodeMap.get(source)].next == null){\r\n current.next = newbie;\r\n newbie.prev = current;\r\n }\r\n else{\r\n current.next.prev = newbie;\r\n newbie.next = current.next;\r\n current.next = newbie;\r\n newbie.prev = current;\r\n }\r\n Vertex current1 = adjList[nodeMap.get(target)];\r\n Vertex newbie1 = new Vertex(nodeMap.get(source));\r\n current1.co_occur += weight;\r\n current1.countN++;\r\n if (current1.next == null){\r\n current1.next = newbie1;\r\n newbie1.prev = current1;\r\n }\r\n else{\r\n current1.next.prev = newbie1;\r\n newbie1.next = current1.next;\r\n current1.next = newbie1;\r\n newbie1.prev = current1;\r\n }\r\n }\r\n reader2.close();\r\n \r\n for(int it = 0; it < nodecount; it++){\r\n sortVer[it] = new Vertex(adjList[it].id);\r\n sortVer[it].val = adjList[it].val;\r\n sortVer[it].co_occur = adjList[it].co_occur;\r\n }\r\n if (args[2].equals(\"average\")){\r\n double countdeg = 0;\r\n for(int it = 0; it<nodecount; it++){\r\n countdeg+= (double) adjList[it].countN;\r\n }\r\n countdeg = countdeg / (double) (nodecount);\r\n System.out.printf(\"%.2f\", countdeg);\r\n System.out.println();\r\n //long toc= System.nanoTime();\r\n //System.out.println((toc- startTime)/1000000000.0);\r\n }\r\n \r\n if(args[2].equals(\"rank\")){\r\n Graph.mergesort(sortVer, 0, nodecount-1);\r\n // long toc= System.nanoTime();\r\n // System.out.println((toc- startTime)/1000000000.0);\r\n System.out.print(sortVer[0].val);\r\n for(int kk=1; kk<nodecount; kk++){\r\n System.out.print(\",\" + sortVer[kk].val.toString());\r\n }\r\n System.out.println();\r\n }\r\n if(args[2].equals(\"independent_storylines_dfs\")){\r\n boolean visited[] = new boolean[nodecount];\r\n int ind = 0;\r\n ArrayList<ArrayList<Vertex>> comps = new ArrayList<ArrayList<Vertex>>();\r\n for(int it1 = 0; it1<nodecount; it1++){\r\n visited[it1] = false;\r\n }\r\n for(int it1 = 0; it1<nodecount; it1++){\r\n if (visited[it1] == false){\r\n ArrayList<Vertex> temp = new ArrayList<Vertex>();\r\n Graph.dfs(it1, visited, ind, adjList, temp);\r\n ind++;\r\n Graph.mergesort2(temp, 0, temp.size()-1);\r\n comps.add(temp);\r\n }\r\n }\r\n Graph.mergesort3(comps, 0, comps.size()-1);\r\n // long toc= System.nanoTime();\r\n // System.out.println((toc- startTime)/1000000000.0);\r\n for(int a1 = 0; a1 < ind; a1++){\r\n System.out.print(comps.get(a1).get(0).val);\r\n for(int j1 = 1; j1<comps.get(a1).size(); j1++){\r\n System.out.print(\",\" + comps.get(a1).get(j1).val);\r\n }\r\n System.out.println();\r\n }\r\n }\r\n }", "Object importAggregate(String filePath, Settings settings) throws IOException;", "private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Sub>>(){}.getType();\n subList = gson.fromJson(in, listType);\n\n } catch (FileNotFoundException e) {\n subList = new ArrayList<Sub>();\n }\n }", "public static void main(String[] args){\n String testFiles = \"D:\\\\self\\\\algorithms\\\\assignment specification\\\\wordnet\\\\\";\n String digraphFile = \"digraph4.txt\";\n\t In inputFile = new In(testFiles+digraphFile);\n\t Digraph D = new Digraph(inputFile);\n\t \n\t SAP testAgent = new SAP(D);\n\t System.out.println(testAgent.D.toString());\n }", "public void load() throws ClassNotFoundException, IOException;", "public static Model loadModel(File f)\n\t{\n\t\ttry\n\t\t{\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(f));\n\n\t\t\tModel m = new Model(f.getPath());\n\t\t\tMaterial cur = null;\n\t\t\tList<Material> mats = new ArrayList<Material>();\n\n\t\t\tString line;\n\t\t\twhile ((line = reader.readLine()) != null)\n\t\t\t{\n\t\t\t\t//Indicates a vertex\n\t\t\t\tif (line.startsWith(\"v \")) \n\t\t\t\t{\n\t\t\t\t\tfloat x = Float.valueOf(line.split(\" \")[1]);\n\t\t\t\t\tfloat y = Float.valueOf(line.split(\" \")[2]);\n\t\t\t\t\tfloat z = Float.valueOf(line.split(\" \")[3]);\n\t\t\t\t\tm.verts.add(new Vector3f(x, y, z));\n\t\t\t\t} \n\t\t\t\t//Indicates a vertex normal\n\t\t\t\telse if (line.startsWith(\"vn \")) \n\t\t\t\t{\n\t\t\t\t\tfloat x = Float.valueOf(line.split(\" \")[1]);\n\t\t\t\t\tfloat y = Float.valueOf(line.split(\" \")[2]);\n\t\t\t\t\tfloat z = Float.valueOf(line.split(\" \")[3]);\n\t\t\t\t\tm.norms.add(new Vector3f(x, y, z));\n\t\t\t\t} \n\t\t\t\t//Indicates a texture coordinate\n\t\t\t\telse if (line.startsWith(\"vt \")) \n\t\t\t\t{\n\t\t\t\t\tfloat x = Float.valueOf(line.split(\" \")[1]);\n\t\t\t\t\tfloat y = Float.valueOf(line.split(\" \")[2]);\n\t\t\t\t\tm.textureCoords.add(new Vector2f(x, y));\n\t\t\t\t} \n\t\t\t\t//Indicates a face\n\t\t\t\telse if (line.startsWith(\"f \")) \n\t\t\t\t{\n\t\t\t\t\t//If face is triangulated\n\t\t\t\t\tif(line.split(\" \").length == 4)\n\t\t\t\t\t{\t\t\t\n\t\t\t\t\t\tVector3f vertexIndices = new Vector3f(\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1].split(\"/\")[0]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2].split(\"/\")[0]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3].split(\"/\")[0]));\n\n\n\t\t\t\t\t\t//Instantiate as null for scope reasons\n\t\t\t\t\t\tVector3f textureIndices = null;\n\n\t\t\t\t\t\tif(!line.split(\" \")[1].split(\"/\")[1].equals(\"\")&&!(line.split(\" \")[1].split(\"/\")[1].equals(null)))\n\t\t\t\t\t\t\ttextureIndices = new Vector3f(\n\t\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1].split(\"/\")[1]),\n\t\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2].split(\"/\")[1]),\n\t\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3].split(\"/\")[1]));\n\n\t\t\t\t\t\tVector3f normalIndices = new Vector3f(\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1].split(\"/\")[2]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2].split(\"/\")[2]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3].split(\"/\")[2]));\n\n\t\t\t\t\t\tFace mf = new Face();\n\n\t\t\t\t\t\t//Instantiate all the arrays\n\t\t\t\t\t\tmf.normals = new Vector3f[3];\n\t\t\t\t\t\tmf.points = new Vector3f[3];\n\n\t\t\t\t\t\t//// SETUP NORMALS ////\n\t\t\t\t\t\tVector3f n1 = m.norms.get((int)normalIndices.x - 1);\n\t\t\t\t\t\tmf.normals[0] = n1;\n\t\t\t\t\t\tVector3f n2 = m.norms.get((int)normalIndices.y - 1);\n\t\t\t\t\t\tmf.normals[1] = n2;\n\t\t\t\t\t\tVector3f n3 = m.norms.get((int)normalIndices.z - 1);\n\t\t\t\t\t\tmf.normals[2] = n3;\n\n\t\t\t\t\t\t//// SETUP VERTICIES ////\n\t\t\t\t\t\tVector3f v1 = m.verts.get((int)vertexIndices.x - 1);\n\t\t\t\t\t\tmf.points[0] = v1;\n\t\t\t\t\t\tVector3f v2 = m.verts.get((int)vertexIndices.y - 1);\n\t\t\t\t\t\tmf.points[1] = v2;\n\t\t\t\t\t\tVector3f v3 = m.verts.get((int)vertexIndices.z - 1);\n\t\t\t\t\t\tmf.points[2] = v3;\n\n\t\t\t\t\t\t//// SETUP TEXTURE COORDS ////\n\t\t\t\t\t\tif(textureIndices!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmf.textureCoords = new Vector2f[3];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfloat x1 = m.textureCoords.get((int)textureIndices.x - 1).x;\n\t\t\t\t\t\t\tfloat y1 = 1 - m.textureCoords.get((int)textureIndices.x - 1).y;\n\t\t\t\t\t\t\tVector2f t1 = new Vector2f(x1, y1);\n\t\t\t\t\t\t\tmf.textureCoords[0] = t1;\n\t\t\t\t\t\t\tfloat x2 = m.textureCoords.get((int)textureIndices.y - 1).x;\n\t\t\t\t\t\t\tfloat y2 = 1 - m.textureCoords.get((int)textureIndices.y - 1).y;\n\t\t\t\t\t\t\tVector2f t2 = new Vector2f(x2, y2);\n\t\t\t\t\t\t\tmf.textureCoords[1] = t2;\n\t\t\t\t\t\t\tfloat x3 = m.textureCoords.get((int)textureIndices.z - 1).x;\n\t\t\t\t\t\t\tfloat y3 = 1 - m.textureCoords.get((int)textureIndices.z - 1).y;\n\t\t\t\t\t\t\tVector2f t3 = new Vector2f(x3, y3);\n\t\t\t\t\t\t\tmf.textureCoords[2] = t3;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Set the face's material to the current material\n\t\t\t\t\t\tif(cur != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmf.material = cur;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Tell face to set up AABB\n\t\t\t\t\t\tmf.setUpAABB();\n\n\t\t\t\t\t\tm.faces.add(mf);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//Indicates a reference to an exterior .mtl file\n\t\t\t\telse if(line.startsWith(\"mtllib \"))\n\t\t\t\t{\n\t\t\t\t\t//The file being referenced by mtllib call\n\t\t\t\t\tFile lib = new File(f.getParentFile()+File.separator+line.split(\" \")[1]);\n\n\t\t\t\t\t//Parse it and add all generated Materials to the mats list\n\t\t\t\t\tmats.addAll(parseMTL(lib, m));\n\t\t\t\t}\n\t\t\t\t//Telling us to use a material\n\t\t\t\telse if(line.startsWith(\"usemtl \"))\n\t\t\t\t{\n\t\t\t\t\tString name = line.split(\" \")[1];\n\n\t\t\t\t\tif(mats!=null)\n\t\t\t\t\t\t//Find material with correct name and use it\n\t\t\t\t\t\tfor(Material material : mats)\n\t\t\t\t\t\t\tif(material.name.equals(name))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcur = material;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.close();\n\n\t\t\t//Tell model to set up AABB\n\t\t\tm.setUpAABB();\n\t\t\t\n\t\t\t//Remove the first element, because...\n\t\t\tm.faces.remove(0);\n\n\t\t\treturn m;\n\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "static Graph readGraph(Scanner in) {\n String s;\n s = in.next();\n if (s.charAt(0) == '#') {\n s = in.nextLine();\n\n }\n int n = in.nextInt(); // number of vertices in the graph\n int m = in.nextInt(); // number of edges in the graph\n\n // create a graph instance\n Graph g = new Graph(n);\n\n\n for (int i = 1; i <= n; i++) {\n g.V[i].duration = in.nextInt();\n }\n\n for (int i = 0; i < m; i++) // Loop to read all the edges\n {\n int u = in.nextInt();\n int v = in.nextInt();\n\n g.addEdge(u, v);\n }\n in.close();\n return g;\n }", "public void loadOrCreateGraph(String graphPath, String dumpPath) {\n setGraphPath(graphPath);\n setDumpsDirectoryToCreateGraph(dumpPath);\n loadOrCreateGraph();\n }", "private void loadScheme(File file)\n\t{\n\t\tString name = file.getName();\n\n\t\ttry\n\t\t{\n\t\t\tBedrockScheme particle = BedrockScheme.parse(FileUtils.readFileToString(file, Charset.defaultCharset()));\n\n\t\t\tthis.presets.put(name.substring(0, name.indexOf(\".json\")), particle);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void readInput(String fileName){\n\n BufferedReader reader;\n try {\n reader = new BufferedReader(new FileReader(fileName));\n String line = reader.readLine(); //read first line\n int numLine =1; //keep track the number of line\n while (line != null) {\n String[] tokens = line.trim().split(\"\\\\s+\"); //split line into token\n if(numLine==1){ //for the first line\n intersection = Integer.parseInt(tokens[0]); //set the number of intersection\n roadways = Integer.parseInt(tokens[1]); // set the number of roadways\n coor = new Coordinates[intersection];\n g = new Graph(intersection);//create a graph\n line = reader.readLine();\n numLine++;\n }\n else if(numLine>1&&numLine<intersection+2){ //for all intersection\n while(numLine>1&&numLine<intersection+2){\n tokens = line.trim().split(\"\\\\s+\");\n coor[Integer.parseInt(tokens[0])] = new Coordinates(Integer.parseInt(tokens[1]),Integer.parseInt(tokens[2])); //add into coor array to keep track the coor of intersection\n line = reader.readLine();\n numLine++;\n }\n }\n else if(numLine ==intersection+2){ //skip the space line\n line = reader.readLine();\n numLine++;\n while(numLine<roadways+intersection+3){ // for all the roadways, only include the number of roadways mention in the first line\n tokens = line.trim().split(\"\\\\s+\");\n int fst = Integer.parseInt(tokens[0]);\n int snd = Integer.parseInt(tokens[1]);\n g.addEgde(fst,snd,coor[fst].distTo(coor[snd]));\n line = reader.readLine();\n numLine++;\n }\n }\n else if(numLine >= roadways+intersection+3)\n break;\n }\n reader.close();\n } catch (FileNotFoundException e){\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void load(final String filePath) {\n\t\tsuper.load(filePath);\n\t\ttry {\n\t\t\tfinal JCL_facade jcl = JCL_FacadeImpl.getInstance();\n\t\t\tfinal Object2DoubleMap<String> distances = new Object2DoubleOpenHashMap<>();\n\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(filePath));\n\t\t\tString str = null;\n\n\t\t\tList<String> inputLimpos = new LinkedList<>();\n\n\t\t\tdouble lower = 0;\n\n\t\t\t// ler o arquivo\n\t\t\twhile ((str = in.readLine()) != null) {\n\t\t\t\tif (!str.trim().equals(\"EOF\")) {\n\t\t\t\t\tString[] inputDetalhes = str.split(\" \");\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\tfor (final String frag : inputDetalhes) {\n\t\t\t\t\t\tif (!frag.equals(\"\")) {\n\t\t\t\t\t\t\tsb.append(frag + \":\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tinputLimpos.add(sb.toString());\n\t\t\t\t\tsb = null;\n\t\t\t\t\tinputDetalhes = null;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tin.close();\n\t\t\tin = null;\n\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tfinal ObjectSet<String> vertices = (ObjectSet<String>) jcl.getValue(\"vertices\").getCorrectResult();\n\n\t\t\tdouble lowest = Double.MAX_VALUE;\n\t\t\t/*\n\t\t\t * transitar todo projeto para DOUBLE tirar todos floats para que aceite o\n\t\t\t * permutation\n\t\t\t */\n\t\t\t// montando distancias\n\t\t\tfor (final String umaEntrada : inputLimpos) {\n\t\t\t\tString[] umaEntradaDetalhe = umaEntrada.split(\":\");\n\t\t\t\tdouble menorD = Double.MAX_VALUE;\n\t\t\t\tdouble maiorD = Double.MIN_VALUE;\n\t\t\t\tvertices.add(\"$\" + umaEntradaDetalhe[0] + \"$\");\n\t\t\t\tfor (final String outraEntrada : inputLimpos) {\n\t\t\t\t\tString[] outraEntradaDetalhe = outraEntrada.split(\":\");\n\t\t\t\t\tif (!umaEntradaDetalhe[0].equals(outraEntradaDetalhe[0])) {\n\t\t\t\t\t\tfinal double dx = (Double.parseDouble(outraEntradaDetalhe[1])\n\t\t\t\t\t\t\t\t- Double.parseDouble(umaEntradaDetalhe[1]));\n\t\t\t\t\t\tfinal double dy = (Double.parseDouble(outraEntradaDetalhe[2])\n\t\t\t\t\t\t\t\t- Double.parseDouble(umaEntradaDetalhe[2]));\n\n\t\t\t\t\t\tfinal double d = Math.hypot(dx, dy);\n\n\t\t\t\t\t\tdistances.put(\"$\" + umaEntradaDetalhe[0] + \"$:$\" + outraEntradaDetalhe[0] + \"$\", d);\n\n\t\t\t\t\t\tif (d < menorD) {\n\t\t\t\t\t\t\tmenorD = d;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (d > maiorD) {\n\t\t\t\t\t\t\tmaiorD = d;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\toutraEntradaDetalhe = null;\n\t\t\t\t}\n\n\t\t\t\tdistances.put(\"$\" + umaEntradaDetalhe[0] + \"$:$shorterD$\", menorD);\n\t\t\t\tdistances.put(\"$\" + umaEntradaDetalhe[0] + \"$:$longerD$\", maiorD);\n\n\t\t\t\tlower += menorD;\n\t\t\t\tif (lowest > menorD) {\n\t\t\t\t\tlowest = menorD;\n\t\t\t\t}\n\n\t\t\t\tdistances.put(\"$\" + umaEntradaDetalhe[0] + \"$:$X$\", Float.parseFloat(umaEntradaDetalhe[1]));\n\t\t\t\tdistances.put(\"$\" + umaEntradaDetalhe[0] + \"$:$Y$\", Float.parseFloat(umaEntradaDetalhe[2]));\n\t\t\t\tumaEntradaDetalhe = null;\n\t\t\t}\n\n\t\t\tlower += lowest;\n\n\t\t\tinputLimpos.clear();\n\t\t\tinputLimpos = null;\n\n\t\t\tjcl.instantiateGlobalVar(\"numOfVertices\", vertices.size());\n\n\t\t\tjcl.setValueUnlocking(\"vertices\", vertices);\n\n\t\t\tjcl.setValueUnlocking(\"lower\", lower);\n\n\t\t\tJcldataAccess.instantiateVarInJCL(\"distances\", distances);\n\n\t\t\tSystem.out.println(vertices.toString());\n\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private void load() {\r\n\t\tswitch (this.stepPanel.getStep()) {\r\n\t\tcase StepPanel.STEP_HOST_GRAPH:\r\n\t\t\tloadGraph(StepPanel.STEP_HOST_GRAPH);\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_STOP_GRAPH:\r\n\t\t\tloadGraph(StepPanel.STEP_STOP_GRAPH);\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_CRITICAL_PAIRS:\r\n\t\t\tloadPairs();\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_FINISH:\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public BicamSymbolGraph(File _fileIn, boolean _verbose, String ..._nodeSeparator) throws FileNotFoundException{\n\n\t\tproperties = new PropertyList();\n\t\t\n\t\tfileIn = _fileIn;\n\t\t\n\t\tthis.verbose = _verbose;\n\t\n\t\tif(_nodeSeparator.length > 0) this.nodeSeparator = _nodeSeparator[0];\n\t\telse this.nodeSeparator = \" \";\n\n\t\tvertices = new LinkedHashSet<>(); // HashSet porque n�o pode ser repetido\n\t\t\t\t\t\t\t\t\t // a ordena��o (LinkedHashSet) apenas ajuda em debug porque \n\t\t\t\t\t\t\t\t\t // faz com que a ordem de entrada do vertice de filein\n\t\t\t\t\t\t\t\t\t // tenha a mesma ordem do conjunto \"vertices\n\n\t\tvertexIndex = new LinkedHashMap<>(); \n\t\tNodeIndex = new LinkedHashMap<String, BicamNode>();\n\t\tcreateGraph();\n\t\tverbose();\n\t}", "public static void main(String[] args) throws IOException {\n File graphFile = new File(args[0]);\r\n\r\n int source = 0;\r\n\r\n ArrayList<String> alpha = new ArrayList<String>();\r\n\r\n BufferedReader br = new BufferedReader(new FileReader(graphFile));\r\n\r\n // read in # of vertices from first line\r\n int numVertices = Integer.parseInt(br.readLine());\r\n\r\n System.out.println(\"File contains \" + numVertices + \" vertices.\");\r\n\r\n Graph graph = new Graph(numVertices);\r\n\r\n // following the alphabetical ordering for index\r\n String str;\r\n\r\n for (String alphabet : \"A B C D E F G H I J K L M N O P Q R S T U V W X Y Z\".split(\" \")) {\r\n alpha.add(alphabet);\r\n }\r\n\r\n // reading through the data file, building new edges and adding them to graph\r\n\r\n while ((str = br.readLine()) != null) {\r\n String[] lineData = str.split(\" \");\r\n String v1 = lineData[0];\r\n String v2 = lineData[1];\r\n int weight = Integer.parseInt(lineData[2]);\r\n int indexV1 = alpha.indexOf(v1); // first vertex becomes index in the arrayList\r\n int indexV2 = alpha.indexOf(v2);\r\n\r\n graph.addEdge(indexV1, indexV2, weight);\r\n }\r\n\r\n graph.getMinDistances(source);\r\n\r\n }", "public static void buildGraph(Graph<String,String> someGraph, String fileName) {\n\t\tSet<String> characters = new HashSet<String>();\n\t\tMap<String, List<String>> books = new HashMap<String, List<String>>();\n\t\t\n\t\ttry {\n\t\t\tMarvelParser.parseData(fileName, characters, books);\n\t\t} catch (MalformedDataException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// add all the characters as nodes\n\t\tIterator<String> itr = characters.iterator();\n\t\twhile(itr.hasNext()) {\n\t\t\tString character = itr.next();\n\t\t\tif(character != null) {\n\t\t\t\tNode<String> value = new Node<String>(character);\n\t\t\t\tsomeGraph.addNode(value);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// add all the edges\n\t\tfor(String book : books.keySet()) {\n\t\t\tList<String> charList = books.get(book);\n\t\t\tfor(int i = 0; i < charList.size() - 1; i++) {\n\t\t\t\tfor(int j= i+1; j < charList.size(); j++) {\n\t\t\t\t\tsomeGraph.addEdge(new Edge<String,String>(new Node<String>(charList.get(i)), \n\t\t\t\t\t\t\tnew Node<String>(charList.get(j)), book));\n\t\t\t\t\tsomeGraph.addEdge(new Edge<String,String>(new Node<String>(charList.get(j)),\n\t\t\t\t\t\tnew Node<String>(charList.get(i)), book));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public interface GraphReader {\n\n /**\n * Generate graph from file\n */\n void readGraphFromFile();\n\n /**\n * Get Edges of the graph\n *\n * @return Edge string\n */\n String getEdges();\n\n /**\n * Get graph attributes\n *\n * @return Attribute string\n */\n String getAttributes();\n}", "public static void main(String[] args) throws IOException\n {\n \tgraph G = new graph(\"graph.txt\");\n\n \t// If you want to use a Link List graph, uncomment this out and comment\n\t// out the graph object above\n\t// graphLinkList G = new graphLinkList(\"unweighted.txt\",\"u\");\n\n\t// create a randomgraph object using adjacency matrix\n \t// randomgraph G = new randomgraph(20, 20, 20);\n\n\n // call dijkstra function\n dijkstra_function(G,0);\n\n\n }", "public DFSGraph(File file) throws FileNotFoundException {\r\n\t\tout = new PrintWriter(file);\r\n\t}", "public Mesh load(String filename)\r\n\t{\r\n\t\tMesh mesh = new Mesh(); mesh.addFileMetaData(filename);\r\n \r\n\t\t//Open file and read in vertices/faces\r\n\t\tScanner sc;\r\n\t\tString line;\r\n\t\t\r\n\t\ttry{\r\n\t\t\tBufferedReader ins = new BufferedReader(new FileReader(filename));\r\n\t\t\tins.readLine(); //ID; always \"nff\"\r\n\t\t\tins.readLine(); //Version\r\n\t\t\t\r\n\t\t\t//We need to move through the header to find the start of the first object\r\n\t\t\t//This will be the first line that contains text that does not start with\r\n\t\t\t//\"viewpos\" or \"viewdir\" (optional features) or \"//\" (comment)\r\n\t\t\twhile(true){\r\n\t\t\t\tline = ins.readLine();\r\n\t\t\t\tsc = new Scanner(line);\r\n\t\t\t\t\r\n\t\t\t\tif(sc.hasNext() == true){\r\n\t\t\t\t\tString token = sc.next();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif((\"viewpos\".equalsIgnoreCase(token) == false) && \r\n\t\t\t\t\t\t\t(\"viewdir\".equalsIgnoreCase(token) == false) &&\r\n\t\t\t\t\t\t\t(\"//\".equals(token.substring(0, 2)) == false)){\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tsc.close();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsc.close();\r\n\t\t\t\r\n\t\t\t//The rest of the file is filled up with objects\r\n\t\t\twhile(true){\r\n\t\t\t\tsc = new Scanner(line);\r\n\t\t\t\tString name = sc.next();\r\n\t\t\t\tsc.close();\r\n\t\t\t\t\r\n\t\t\t\tsc = new Scanner(ins.readLine());\r\n\r\n\t\t\t\tVector<Point> vertices = new Vector<Point>();\r\n\t\t\t\tVector<Face> faces = new Vector<Face>();\r\n\t\t\t\t\r\n\t\t\t\tint vertexCount = sc.nextInt();\r\n\t\t\t\t\r\n\t\t\t\t//We have vertexCount lines next with 3 floats per line\r\n\t\t\t\twhile(vertexCount > 0){\r\n\t\t\t\t\tsc.close();\r\n\t\t\t\t\tsc = new Scanner(ins.readLine());\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(sc.hasNextFloat() == false){\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tfloat x = sc.nextFloat();\r\n\t\t\t\t\t\tfloat y = sc.nextFloat();\r\n\t\t\t\t\t\tfloat z = sc.nextFloat();\r\n\t\t\t\t\t\tvertices.add(new Point(x, y, z));\r\n\t\t\t\t\t\tvertexCount--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tsc.close();\r\n\t\t\t\tsc = new Scanner(ins.readLine());\r\n\t\t\t\tint polygonCount = sc.nextInt();\r\n\t\t\t\t\r\n\t\t\t\t//We have polygonCount lines defining the faces\r\n\t\t\t\t//The first int on each line gives the number of\r\n\t\t\t\t//vertices making up that particular face\r\n\t\t\t\t//Then the indexes of those vertices are listed\r\n\t\t\t\twhile(polygonCount > 0){\r\n\t\t\t\t\tsc.close();\r\n\t\t\t\t\tsc = new Scanner(ins.readLine());\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(sc.hasNextInt() == false){\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tvertexCount = sc.nextInt();\r\n\t\t\t\t\t\tArrayList<Integer> al = new ArrayList<Integer>();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\twhile(vertexCount > 0){\r\n\t\t\t\t\t\t\tal.add(sc.nextInt());\r\n\t\t\t\t\t\t\tvertexCount--;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfaces.add(new Face(al));\r\n\t\t\t\t\t\tpolygonCount--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tmesh.addData(vertices, faces, -1, name);\r\n\t\t\t\t\r\n\t\t\t\t//The last thing we need to do is read up to and including\r\n\t\t\t\t//the next object's name or until we reach the end of the file\r\n\t\t\t\t\r\n\t\t\t\twhile((line = ins.readLine()) != null){\r\n\t\t\t\t\tsc.close();\r\n\t\t\t\t\tsc = new Scanner(line);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//The next non-blank line that doesn't start with \"//\" is the start of the next object\r\n\t\t\t\t\tif((sc.hasNext() == true) && (sc.next().substring(0, 2).equals(\"//\") == false)){\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tsc.close();\r\n\t\t\t\tif(line == null){ //EOF\r\n\t\t\t\t\tbreak;\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\treturn null; \r\n\t\t}\r\n\t\t\r\n\t\tmesh.initialize();\r\n \r\n\t\treturn mesh;\r\n\t}" ]
[ "0.8041179", "0.8038927", "0.7904926", "0.7202139", "0.717419", "0.69475275", "0.69416976", "0.68967694", "0.68954414", "0.6819828", "0.67837447", "0.6764178", "0.6754527", "0.6716968", "0.6693803", "0.6670498", "0.6646936", "0.66360635", "0.6585896", "0.6522019", "0.6512261", "0.6453371", "0.6447469", "0.64358366", "0.6428574", "0.6402111", "0.6362152", "0.63606286", "0.6342669", "0.6331886", "0.6289215", "0.6247166", "0.62343717", "0.6216229", "0.6206631", "0.620098", "0.62003523", "0.6174377", "0.6149071", "0.60786235", "0.6077706", "0.60770446", "0.60549074", "0.6053591", "0.60331696", "0.60311294", "0.6010525", "0.60092485", "0.6008062", "0.6007954", "0.6000842", "0.59912497", "0.59527624", "0.5950858", "0.59500945", "0.59223366", "0.5895924", "0.58915126", "0.58595026", "0.5852818", "0.58512837", "0.5842401", "0.57906175", "0.5789138", "0.5787844", "0.5787382", "0.5782129", "0.57782936", "0.57722896", "0.5770517", "0.57591707", "0.574746", "0.57382816", "0.57370615", "0.57226354", "0.57117605", "0.5644879", "0.5632904", "0.56300294", "0.56201494", "0.5618912", "0.56181943", "0.5591609", "0.5584888", "0.5579143", "0.5565508", "0.55634755", "0.5560879", "0.5558681", "0.5550028", "0.55264044", "0.55253166", "0.5522587", "0.5519892", "0.5512196", "0.55116594", "0.55006546", "0.54885864", "0.5488255", "0.5480012", "0.5473341" ]
0.0
-1